aspoev.interpreter.base
Class WhileElement

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

public class WhileElement
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
 
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
WhileElement(ConditionalElement cond, BlockElement body)
           
 
Method Summary
 java.lang.Object clone()
           
protected  java.lang.Object executeElement()
           
 java.lang.String getCodeString()
           
 
Methods inherited from class aspoev.interpreter.base.BranchElement
getChildrenByType
 
Methods inherited from class aspoev.interpreter.base.Element
execute, getRValue, persist, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhileElement

public WhileElement(ConditionalElement cond,
                    BlockElement body)
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