Package org.kie.dmn.feel.lang.ast
Class IfExpressionNode
- java.lang.Object
-
- org.kie.dmn.feel.lang.ast.BaseNode
-
- org.kie.dmn.feel.lang.ast.IfExpressionNode
-
-
Field Summary
-
Fields inherited from class org.kie.dmn.feel.lang.ast.BaseNode
EMPTY_CHILDREN
-
-
Constructor Summary
Constructors Constructor Description IfExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode condition, BaseNode thenExpression, BaseNode elseExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(Visitor<T> v)java.lang.Objectevaluate(EvaluationContext ctx)ASTNode[]getChildrenNode()BaseNodegetCondition()BaseNodegetElseExpression()TypegetResultType()BaseNodegetThenExpression()voidsetCondition(BaseNode condition)voidsetElseExpression(BaseNode elseExpression)voidsetThenExpression(BaseNode thenExpression)-
Methods inherited from class org.kie.dmn.feel.lang.ast.BaseNode
astEvent, astEvent, copyLocationAttributesFrom, getEndChar, getEndColumn, getEndLine, getStartChar, getStartColumn, getStartLine, getText, setEndChar, setEndColumn, setEndLine, setStartChar, setStartColumn, setStartLine, setText, toString
-
-
-
-
Method Detail
-
getCondition
public BaseNode getCondition()
-
setCondition
public void setCondition(BaseNode condition)
-
getThenExpression
public BaseNode getThenExpression()
-
setThenExpression
public void setThenExpression(BaseNode thenExpression)
-
getElseExpression
public BaseNode getElseExpression()
-
setElseExpression
public void setElseExpression(BaseNode elseExpression)
-
evaluate
public java.lang.Object evaluate(EvaluationContext ctx)
-
getResultType
public Type getResultType()
- Specified by:
getResultTypein interfaceASTNode- Overrides:
getResultTypein classBaseNode
-
getChildrenNode
public ASTNode[] getChildrenNode()
- Specified by:
getChildrenNodein interfaceASTNode- Overrides:
getChildrenNodein classBaseNode
-
-