aspoev.interpreter.base
Class AssignmentElement

java.lang.Object
  extended byaspoev.interpreter.base.Element
      extended byaspoev.interpreter.base.StatementElement
          extended byaspoev.interpreter.base.AssignmentElement
All Implemented Interfaces:
java.lang.Cloneable, aspoev.Executable, pJ.jasmine.PRI, java.io.Serializable

public class AssignmentElement
extends StatementElement
implements pJ.jasmine.PRI

This Element is the AST equivalent of an '=' sign. Only VariableReferenceElements can be modified by this Element. TODO: maybe combine this with 'two sided element'?

See Also:
Serialized Form

Field Summary
protected  VariableReferenceElement leftValue
           
protected  RValuedElement rightValue
           
 
Fields inherited from class aspoev.interpreter.base.Element
parent
 
Fields inherited from interface pJ.jasmine.PRI
DELETECHANGE, MODIFYCHANGE, NOCHANGE
 
Constructor Summary
AssignmentElement()
           
AssignmentElement(RValuedElement rVal)
           
 
Method Summary
 java.lang.Object clone()
           
protected  java.lang.Object executeElement()
           
 java.util.Collection getChildrenByType(java.lang.Class childClass)
           
 java.lang.String getCodeString()
           
 void setLValue(VariableReferenceElement lValue)
           
 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

rightValue

protected RValuedElement rightValue

leftValue

protected VariableReferenceElement leftValue
Constructor Detail

AssignmentElement

public AssignmentElement(RValuedElement rVal)

AssignmentElement

public AssignmentElement()
Method Detail

clone

public java.lang.Object clone()
Specified by:
clone in class Element

executeElement

protected java.lang.Object executeElement()
Overrides:
executeElement in class StatementElement

setLValue

public void setLValue(VariableReferenceElement lValue)

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