Package org.kie.dmn.feel.lang.ast
Class ASTBuilderFactory
- java.lang.Object
-
- org.kie.dmn.feel.lang.ast.ASTBuilderFactory
-
public class ASTBuilderFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ASTBuilderFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BaseNodenewAtLiteralNode(FEEL_1_1Parser.AtLiteralContext ctx, StringNode stringLiteral)static BetweenNodenewBetweenNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode value, BaseNode start, BaseNode end)static BooleanNodenewBooleanNode(org.antlr.v4.runtime.ParserRuleContext ctx)static ContextEntryNodenewContextEntry(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode name, BaseNode value)static ContextNodenewContextNode(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode list)static CTypeNodenewCTypeNode(org.antlr.v4.runtime.ParserRuleContext ctx, Type type)static DashNodenewDashNode(org.antlr.v4.runtime.ParserRuleContext ctx)static FilterExpressionNodenewFilterExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr, BaseNode filter)static ForExpressionNodenewForExpression(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode list, BaseNode expr)static FormalParameterNodenewFormalParameter(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, TypeNode type)static FunctionDefNodenewFunctionDefinition(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode parameters, boolean external, BaseNode body)static FunctionInvocationNodenewFunctionInvocationNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode name, ListNode params)static IfExpressionNodenewIfExpression(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode c, BaseNode t, BaseNode e)static InfixOpNodenewInfixOpNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode left, java.lang.String op, BaseNode right)static InNodenewInNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode value, BaseNode list)static InstanceOfNodenewInstanceOfNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr, TypeNode type)static RangeNodenewIntervalNode(org.antlr.v4.runtime.ParserRuleContext ctx, RangeNode.IntervalBoundary low, BaseNode start, BaseNode end, RangeNode.IntervalBoundary up)static IterationContextNodenewIterationContextNode(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, BaseNode expr)static IterationContextNodenewIterationContextNode(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, BaseNode expr, BaseNode rangeEndExpr)static ListNodenewListNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.List<BaseNode> exprs)static NameDefNodenewNameDefNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String name)static NameDefNodenewNameDefNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.List<java.lang.String> tokens)static NamedParameterNodenewNamedParameterNode(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, BaseNode value)static NameRefNodenewNameRefNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String name, Type type)static NameRefNodenewNameRefNode(org.antlr.v4.runtime.ParserRuleContext ctx, Type type)static NullNodenewNullNode(org.antlr.v4.runtime.ParserRuleContext ctx)static NumberNodenewNumberNode(org.antlr.v4.runtime.ParserRuleContext ctx)static PathExpressionNodenewPathExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr, BaseNode name)static QualifiedNameNodenewQualifiedNameNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.ArrayList<NameRefNode> parts, Type type)static QuantifiedExpressionNodenewQuantifiedExpression(org.antlr.v4.runtime.ParserRuleContext ctx, QuantifiedExpressionNode.Quantifier quant, ListNode list, BaseNode expr)static SignedUnaryNodenewSignedUnaryNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr)static StringNodenewStringNode(org.antlr.v4.runtime.ParserRuleContext ctx)static UnaryTestListNodenewUnaryTestListNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.List<BaseNode> exprs, UnaryTestListNode.State state)static UnaryTestNodenewUnaryTestNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String op, BaseNode value)
-
-
-
Method Detail
-
newNumberNode
public static NumberNode newNumberNode(org.antlr.v4.runtime.ParserRuleContext ctx)
-
newBooleanNode
public static BooleanNode newBooleanNode(org.antlr.v4.runtime.ParserRuleContext ctx)
-
newSignedUnaryNode
public static SignedUnaryNode newSignedUnaryNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr)
-
newNullNode
public static NullNode newNullNode(org.antlr.v4.runtime.ParserRuleContext ctx)
-
newStringNode
public static StringNode newStringNode(org.antlr.v4.runtime.ParserRuleContext ctx)
-
newInfixOpNode
public static InfixOpNode newInfixOpNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode left, java.lang.String op, BaseNode right)
-
newBetweenNode
public static BetweenNode newBetweenNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode value, BaseNode start, BaseNode end)
-
newUnaryTestListNode
public static UnaryTestListNode newUnaryTestListNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.List<BaseNode> exprs, UnaryTestListNode.State state)
-
newListNode
public static ListNode newListNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.List<BaseNode> exprs)
-
newInNode
public static InNode newInNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode value, BaseNode list)
-
newIntervalNode
public static RangeNode newIntervalNode(org.antlr.v4.runtime.ParserRuleContext ctx, RangeNode.IntervalBoundary low, BaseNode start, BaseNode end, RangeNode.IntervalBoundary up)
-
newUnaryTestNode
public static UnaryTestNode newUnaryTestNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String op, BaseNode value)
-
newNameDefNode
public static NameDefNode newNameDefNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.List<java.lang.String> tokens)
-
newNameDefNode
public static NameDefNode newNameDefNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String name)
-
newContextEntry
public static ContextEntryNode newContextEntry(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode name, BaseNode value)
-
newContextNode
public static ContextNode newContextNode(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode list)
-
newFunctionDefinition
public static FunctionDefNode newFunctionDefinition(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode parameters, boolean external, BaseNode body)
-
newFormalParameter
public static FormalParameterNode newFormalParameter(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, TypeNode type)
-
newIterationContextNode
public static IterationContextNode newIterationContextNode(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, BaseNode expr)
-
newIterationContextNode
public static IterationContextNode newIterationContextNode(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, BaseNode expr, BaseNode rangeEndExpr)
-
newForExpression
public static ForExpressionNode newForExpression(org.antlr.v4.runtime.ParserRuleContext ctx, ListNode list, BaseNode expr)
-
newNameRefNode
public static NameRefNode newNameRefNode(org.antlr.v4.runtime.ParserRuleContext ctx, Type type)
-
newNameRefNode
public static NameRefNode newNameRefNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.lang.String name, Type type)
-
newQualifiedNameNode
public static QualifiedNameNode newQualifiedNameNode(org.antlr.v4.runtime.ParserRuleContext ctx, java.util.ArrayList<NameRefNode> parts, Type type)
-
newIfExpression
public static IfExpressionNode newIfExpression(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode c, BaseNode t, BaseNode e)
-
newQuantifiedExpression
public static QuantifiedExpressionNode newQuantifiedExpression(org.antlr.v4.runtime.ParserRuleContext ctx, QuantifiedExpressionNode.Quantifier quant, ListNode list, BaseNode expr)
-
newInstanceOfNode
public static InstanceOfNode newInstanceOfNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr, TypeNode type)
-
newPathExpressionNode
public static PathExpressionNode newPathExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr, BaseNode name)
-
newFilterExpressionNode
public static FilterExpressionNode newFilterExpressionNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode expr, BaseNode filter)
-
newNamedParameterNode
public static NamedParameterNode newNamedParameterNode(org.antlr.v4.runtime.ParserRuleContext ctx, NameDefNode name, BaseNode value)
-
newFunctionInvocationNode
public static FunctionInvocationNode newFunctionInvocationNode(org.antlr.v4.runtime.ParserRuleContext ctx, BaseNode name, ListNode params)
-
newDashNode
public static DashNode newDashNode(org.antlr.v4.runtime.ParserRuleContext ctx)
-
newCTypeNode
public static CTypeNode newCTypeNode(org.antlr.v4.runtime.ParserRuleContext ctx, Type type)
-
newAtLiteralNode
public static BaseNode newAtLiteralNode(FEEL_1_1Parser.AtLiteralContext ctx, StringNode stringLiteral)
-
-