Package org.kie.dmn.feel.lang.ast
Class QuantifiedExpressionNode
- java.lang.Object
-
- org.kie.dmn.feel.lang.ast.BaseNode
-
- org.kie.dmn.feel.lang.ast.QuantifiedExpressionNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQuantifiedExpressionNode.QEIterationstatic classQuantifiedExpressionNode.Quantifier
-
Field Summary
-
Fields inherited from class org.kie.dmn.feel.lang.ast.BaseNode
EMPTY_CHILDREN
-
-
Constructor Summary
Constructors Constructor Description QuantifiedExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, QuantifiedExpressionNode.Quantifier quantifier, ListNode list, BaseNode expression)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(Visitor<T> v)Booleanevaluate(EvaluationContext ctx)ASTNode[]getChildrenNode()BaseNodegetExpression()List<IterationContextNode>getIterationContexts()QuantifiedExpressionNode.QuantifiergetQuantifier()TypegetResultType()static booleannextIteration(EvaluationContext ctx, QuantifiedExpressionNode.QEIteration[] ictx)voidsetExpression(BaseNode expression)voidsetIterationContexts(List<IterationContextNode> iterationContexts)voidsetQuantifier(QuantifiedExpressionNode.Quantifier quantifier)static voidsetValueIntoContext(EvaluationContext ctx, QuantifiedExpressionNode.QEIteration qeIteration)-
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
-
-
-
-
Constructor Detail
-
QuantifiedExpressionNode
public QuantifiedExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, QuantifiedExpressionNode.Quantifier quantifier, ListNode list, BaseNode expression)
-
-
Method Detail
-
getQuantifier
public QuantifiedExpressionNode.Quantifier getQuantifier()
-
setQuantifier
public void setQuantifier(QuantifiedExpressionNode.Quantifier quantifier)
-
getIterationContexts
public List<IterationContextNode> getIterationContexts()
-
setIterationContexts
public void setIterationContexts(List<IterationContextNode> iterationContexts)
-
getExpression
public BaseNode getExpression()
-
setExpression
public void setExpression(BaseNode expression)
-
evaluate
public Boolean evaluate(EvaluationContext ctx)
-
nextIteration
public static boolean nextIteration(EvaluationContext ctx, QuantifiedExpressionNode.QEIteration[] ictx)
-
setValueIntoContext
public static void setValueIntoContext(EvaluationContext ctx, QuantifiedExpressionNode.QEIteration qeIteration)
-
getResultType
public Type getResultType()
- Specified by:
getResultTypein interfaceASTNode- Overrides:
getResultTypein classBaseNode
-
getChildrenNode
public ASTNode[] getChildrenNode()
- Specified by:
getChildrenNodein interfaceASTNode- Overrides:
getChildrenNodein classBaseNode
-
-