Constructor and Description |
---|
IfExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx,
BaseNode condition,
BaseNode thenExpression,
BaseNode elseExpression) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(EvaluationContext ctx) |
BaseNode |
getCondition() |
BaseNode |
getElseExpression() |
Type |
getResultType() |
BaseNode |
getThenExpression() |
void |
setCondition(BaseNode condition) |
void |
setElseExpression(BaseNode elseExpression) |
void |
setThenExpression(BaseNode thenExpression) |
astEvent, astEvent, getEndChar, getEndColumn, getEndLine, getStartChar, getStartColumn, getStartLine, getText, setEndChar, setEndColumn, setEndLine, setStartChar, setStartColumn, setStartLine, setText, toString
public BaseNode getCondition()
public void setCondition(BaseNode condition)
public BaseNode getThenExpression()
public void setThenExpression(BaseNode thenExpression)
public BaseNode getElseExpression()
public void setElseExpression(BaseNode elseExpression)
public Object evaluate(EvaluationContext ctx)
public Type getResultType()
getResultType
in interface ASTNode
getResultType
in class BaseNode
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.