Package de.neuland.jade4j.parser.node
Class CaseNode
- java.lang.Object
-
- de.neuland.jade4j.parser.node.Node
-
- de.neuland.jade4j.parser.node.CaseNode
-
- All Implemented Interfaces:
java.lang.Cloneable
public class CaseNode extends Node
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaseNode.When
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<CaseConditionNode>caseConditionNodes
-
Constructor Summary
Constructors Constructor Description CaseNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.BooleancheckCondition(JadeModel model, Node caseConditionNode, ExpressionHandler expressionHandler)CaseNodeclone()voidexecute(IndentWriter writer, JadeModel model, JadeTemplate template)java.util.List<CaseConditionNode>getCaseConditionNodes()voidsetConditions(java.util.List<CaseConditionNode> caseConditionNodes)-
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
-
caseConditionNodes
private java.util.List<CaseConditionNode> caseConditionNodes
-
-
Method Detail
-
execute
public void execute(IndentWriter writer, JadeModel model, JadeTemplate template) throws JadeCompilerException
- Specified by:
executein classNode- Throws:
JadeCompilerException
-
checkCondition
private java.lang.Boolean checkCondition(JadeModel model, Node caseConditionNode, ExpressionHandler expressionHandler) throws ExpressionException
- Throws:
ExpressionException
-
setConditions
public void setConditions(java.util.List<CaseConditionNode> caseConditionNodes)
-
getCaseConditionNodes
public java.util.List<CaseConditionNode> getCaseConditionNodes()
-
-