aspoev.interpreter.base
Class VariableDeclarationElement

java.lang.Object
  extended byaspoev.interpreter.base.Element
      extended byaspoev.interpreter.base.StatementElement
          extended byaspoev.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

Field Summary
protected  AssignmentElement assign
           
protected  java.lang.Object contents
           
protected  VariableReferenceElement reference
           
protected  TypeReferenceElement type
           
 
Fields inherited from class aspoev.interpreter.base.Element
parent
 
Fields inherited from interface pJ.jasmine.PRI
DELETECHANGE, MODIFYCHANGE, NOCHANGE
 
Constructor Summary
VariableDeclarationElement()
           
VariableDeclarationElement(TypeReferenceElement type, VariableReferenceElement reference)
           
 
Method Summary
 void assign(AssignmentElement assign)
           
 java.lang.Object clone()
           
protected  java.lang.Object executeElement()
          Register this variable with the current scope of the environment.
 java.util.Collection getChildrenByType(java.lang.Class childClass)
           
 ClassDeclarationElement getClassDeclaration()
           
 java.lang.String getCodeString()
           
 java.lang.String getHandle()
           
 java.lang.Object getObject()
           
 java.lang.Object getValue()
           
 void setHandle(VariableReferenceElement handle)
           
 void setValue(java.lang.Object newVal)
           
 java.lang.String toString()
           
 
Methods inherited from class aspoev.interpreter.base.Element
execute, getRValue, persist
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

assign

protected AssignmentElement assign

type

protected TypeReferenceElement type

reference

protected VariableReferenceElement reference

contents

protected transient java.lang.Object contents
Constructor Detail

VariableDeclarationElement

public VariableDeclarationElement()

VariableDeclarationElement

public VariableDeclarationElement(TypeReferenceElement type,
                                  VariableReferenceElement reference)
Method Detail

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