aspoev.interpreter.base
Class IfElement
java.lang.Object
aspoev.interpreter.base.Element
aspoev.interpreter.base.StatementElement
aspoev.interpreter.base.BranchElement
aspoev.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
| Fields inherited from class aspoev.interpreter.base.Element |
parent |
| Fields inherited from interface pJ.jasmine.PRI |
DELETECHANGE, MODIFYCHANGE, NOCHANGE |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
elseBlock
protected BlockElement elseBlock
IfElement
public IfElement(ConditionalElement cond,
BlockElement body)
IfElement
public IfElement(ConditionalElement cond,
StatementElement statement)
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