aspoev.interpreter.base
Class IfElement

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

public class IfElement
extends BranchElement
implements pJ.jasmine.PRI

An Element class that executes the Elements below it (it's children) if a special child (the conditional) is evaluated to 'true'.

See Also:
Serialized Form

Field Summary
protected  BlockElement elseBlock
           
 
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
IfElement(ConditionalElement cond, BlockElement body)
           
IfElement(ConditionalElement cond, StatementElement statement)
           
 
Method Summary
 void addElse(BlockElement otherwise)
           
 java.lang.Object clone()
           
protected  java.lang.Object executeElement()
           
 java.util.Collection getChildrenByType(java.lang.Class childClass)
           
 java.lang.String getCodeString()
           
 
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
 

Field Detail

elseBlock

protected BlockElement elseBlock
Constructor Detail

IfElement

public IfElement(ConditionalElement cond,
                 BlockElement body)

IfElement

public IfElement(ConditionalElement cond,
                 StatementElement statement)
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

addElse

public void addElse(BlockElement otherwise)

getChildrenByType

public java.util.Collection getChildrenByType(java.lang.Class childClass)
Overrides:
getChildrenByType in class BranchElement

getCodeString

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