aspoev.interpreter.base
Class VariableDeclarationElement
java.lang.Object
aspoev.interpreter.base.Element
aspoev.interpreter.base.StatementElement
aspoev.interpreter.base.VariableDeclarationElement
- All Implemented Interfaces:
- java.lang.Cloneable, aspoev.Executable, pJ.jasmine.PRI, java.io.Serializable
- Direct Known Subclasses:
- FieldDeclarationElement
- public class VariableDeclarationElement
- extends StatementElement
- implements pJ.jasmine.PRI
- See Also:
- Serialized Form
| Fields inherited from class aspoev.interpreter.base.Element |
parent |
| Fields inherited from interface pJ.jasmine.PRI |
DELETECHANGE, MODIFYCHANGE, NOCHANGE |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
assign
protected AssignmentElement assign
type
protected TypeReferenceElement type
reference
protected VariableReferenceElement reference
contents
protected transient java.lang.Object contents
VariableDeclarationElement
public VariableDeclarationElement()
VariableDeclarationElement
public VariableDeclarationElement(TypeReferenceElement type,
VariableReferenceElement reference)
clone
public java.lang.Object clone()
- Specified by:
clone in class Element
assign
public void assign(AssignmentElement assign)
executeElement
protected java.lang.Object executeElement()
- Register this variable with the current scope of the environment.
- Overrides:
executeElement in class StatementElement
getClassDeclaration
public ClassDeclarationElement getClassDeclaration()
getHandle
public java.lang.String getHandle()
getObject
public java.lang.Object getObject()
getValue
public java.lang.Object getValue()
setHandle
public void setHandle(VariableReferenceElement handle)
setValue
public void setValue(java.lang.Object newVal)
getChildrenByType
public java.util.Collection getChildrenByType(java.lang.Class childClass)
- Specified by:
getChildrenByType in class Element
getCodeString
public java.lang.String getCodeString()
- Specified by:
getCodeString in class Element
toString
public java.lang.String toString()
- Overrides:
toString in class Element