aspoev.interpreter.base
Class ForElement

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

public class ForElement
extends BranchElement
implements pJ.jasmine.PRI

An Element class that executes its child elements as long as its conditional is 'true'.

See Also:
Serialized Form

Field Summary
protected  StatementElement increment
           
protected  StatementElement initialization
           
 
Fields inherited from class aspoev.interpreter.base.BranchElement
block, conditional
 
Fields inherited from class aspoev.interpreter.base.Element
parent
 
Fields inherited from interface pJ.jasmine.PRI
DELETECHANGE, MODIFYCHANGE, NOCHANGE
 
Constructor Summary
ForElement(StatementElement init, ConditionalElement cond, StatementElement incr, BlockElement block)
           
 
Method Summary
 java.lang.Object clone()
           
protected  java.lang.Object executeElement()
           
 java.lang.String getCodeString()
           
 java.lang.String toString()
           
 
Methods inherited from class aspoev.interpreter.base.BranchElement
getChildrenByType
 
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

initialization

protected StatementElement initialization

increment

protected StatementElement increment
Constructor Detail

ForElement

public ForElement(StatementElement init,
                  ConditionalElement cond,
                  StatementElement incr,
                  BlockElement block)
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

getCodeString

public java.lang.String getCodeString()
Specified by:
getCodeString in class Element

toString

public java.lang.String toString()
Overrides:
toString in class Element