Package de.neuland.jade4j.parser.node
Class ConditionalNode
- java.lang.Object
-
- de.neuland.jade4j.parser.node.Node
-
- de.neuland.jade4j.parser.node.ConditionalNode
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ConditionalNode extends Node
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IfConditionNode>conditions
-
Constructor Summary
Constructors Constructor Description ConditionalNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleancheckCondition(JadeModel model, java.lang.String condition, ExpressionHandler expressionHandler)ConditionalNodeclone()voidexecute(IndentWriter writer, JadeModel model, JadeTemplate template)java.util.List<IfConditionNode>getConditions()voidsetConditions(java.util.List<IfConditionNode> conditions)-
Methods inherited from class de.neuland.jade4j.parser.node.Node
getBlock, getFileName, getLineNumber, getName, getNodes, getValue, hasBlock, hasNodes, pollNode, push, setBlock, setFileName, setLineNumber, setName, setNodes, setValue
-
-
-
-
Field Detail
-
conditions
private java.util.List<IfConditionNode> conditions
-
-
Method Detail
-
execute
public void execute(IndentWriter writer, JadeModel model, JadeTemplate template) throws JadeCompilerException
- Specified by:
executein classNode- Throws:
JadeCompilerException
-
checkCondition
private boolean checkCondition(JadeModel model, java.lang.String condition, ExpressionHandler expressionHandler) throws ExpressionException
- Throws:
ExpressionException
-
getConditions
public java.util.List<IfConditionNode> getConditions()
-
setConditions
public void setConditions(java.util.List<IfConditionNode> conditions)
-
clone
public ConditionalNode clone() throws java.lang.CloneNotSupportedException
-
-