Class ASTExprHelper

java.lang.Object
com.espertech.esper.compiler.internal.parse.ASTExprHelper

public class ASTExprHelper extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addOptionalNumber(com.espertech.esper.common.internal.epl.expression.core.ExprNode exprNode, EsperEPL2GrammarParser.NumberContext number)
     
    static void
    addOptionalSimpleProperty(com.espertech.esper.common.internal.epl.expression.core.ExprNode exprNode, org.antlr.v4.runtime.Token token, com.espertech.esper.common.internal.epl.variable.compiletime.VariableCompileTimeResolver variableCompileTimeResolver, com.espertech.esper.common.internal.compile.stage1.spec.StatementSpecRaw spec)
     
    static void
    exprCollectAddSingle(com.espertech.esper.common.internal.epl.expression.core.ExprNode parentNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    static void
    exprCollectAddSubNodes(com.espertech.esper.common.internal.epl.expression.core.ExprNode parentNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    static void
    exprCollectAddSubNodesAddParentNode(com.espertech.esper.common.internal.epl.expression.core.ExprNode exprNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    static void
    exprCollectAddSubNodesExpressionCtx(com.espertech.esper.common.internal.epl.expression.core.ExprNode parentNode, List<EsperEPL2GrammarParser.ExpressionContext> expressionContexts, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    static List<com.espertech.esper.common.internal.epl.expression.core.ExprNode>
    exprCollectSubNodes(org.antlr.v4.runtime.tree.Tree parentNode, int startIndex, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    static com.espertech.esper.common.internal.epl.expression.core.ExprNode[]
    exprCollectSubNodesPerNode(List<EsperEPL2GrammarParser.ExpressionContext> expression, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    protected static List<com.espertech.esper.common.internal.compile.stage1.spec.OnTriggerSetAssignment>
    getOnTriggerSetAssignments(EsperEPL2GrammarParser.OnSetAssignmentListContext ctx, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
     
    static com.espertech.esper.common.internal.epl.expression.core.ExprNode
    mathGetExpr(org.antlr.v4.runtime.tree.ParseTree ctx, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap, com.espertech.esper.common.client.configuration.Configuration configurationInformation)
     
    static void
    patternCollectAddSubnodesAddParentNode(com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode evalNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode> astPatternNodeMap)
     
    static com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode
    patternGetRemoveTopNode(org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode> astPatternNodeMap)
     
    static void
    regExApplyActionRecursive(org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRegExNodeMap, com.espertech.esper.compiler.internal.parse.ASTExprHelper.RegExAction action)
     
    static void
    regExCollectAddSubNodes(com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode regexNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRegExNodeMap)
     
    static void
    regExCollectAddSubNodesAddParentNode(com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode exprNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRegExNodeMap)
     
    static com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode
    regExGetRemoveTopNode(org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRowRegexNodeMap)
     
    static com.espertech.esper.common.internal.epl.expression.core.ExprNode
    resolvePropertyOrVariableIdentifier(String identifier, com.espertech.esper.common.internal.epl.variable.compiletime.VariableCompileTimeResolver variableCompileTimeResolver, com.espertech.esper.common.internal.compile.stage1.spec.StatementSpecRaw spec)
     
    static com.espertech.esper.common.internal.epl.expression.time.node.ExprTimePeriod
    timePeriodGetExprAllParams(EsperEPL2GrammarParser.TimePeriodContext ctx, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap, com.espertech.esper.common.internal.epl.variable.compiletime.VariableCompileTimeResolver variableCompileTimeResolver, com.espertech.esper.common.internal.compile.stage1.spec.StatementSpecRaw spec, com.espertech.esper.common.client.configuration.Configuration config, com.espertech.esper.common.internal.epl.expression.time.abacus.TimeAbacus timeAbacus)
     
    static com.espertech.esper.common.internal.epl.expression.time.node.ExprTimePeriod
    timePeriodGetExprJustSeconds(EsperEPL2GrammarParser.ExpressionContext expression, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap, com.espertech.esper.common.internal.epl.expression.time.abacus.TimeAbacus timeAbacus)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ASTExprHelper

      public ASTExprHelper()
  • Method Details

    • resolvePropertyOrVariableIdentifier

      public static com.espertech.esper.common.internal.epl.expression.core.ExprNode resolvePropertyOrVariableIdentifier(String identifier, com.espertech.esper.common.internal.epl.variable.compiletime.VariableCompileTimeResolver variableCompileTimeResolver, com.espertech.esper.common.internal.compile.stage1.spec.StatementSpecRaw spec)
    • timePeriodGetExprAllParams

      public static com.espertech.esper.common.internal.epl.expression.time.node.ExprTimePeriod timePeriodGetExprAllParams(EsperEPL2GrammarParser.TimePeriodContext ctx, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap, com.espertech.esper.common.internal.epl.variable.compiletime.VariableCompileTimeResolver variableCompileTimeResolver, com.espertech.esper.common.internal.compile.stage1.spec.StatementSpecRaw spec, com.espertech.esper.common.client.configuration.Configuration config, com.espertech.esper.common.internal.epl.expression.time.abacus.TimeAbacus timeAbacus)
    • timePeriodGetExprJustSeconds

      public static com.espertech.esper.common.internal.epl.expression.time.node.ExprTimePeriod timePeriodGetExprJustSeconds(EsperEPL2GrammarParser.ExpressionContext expression, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap, com.espertech.esper.common.internal.epl.expression.time.abacus.TimeAbacus timeAbacus)
    • getOnTriggerSetAssignments

      protected static List<com.espertech.esper.common.internal.compile.stage1.spec.OnTriggerSetAssignment> getOnTriggerSetAssignments(EsperEPL2GrammarParser.OnSetAssignmentListContext ctx, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
    • patternCollectAddSubnodesAddParentNode

      public static void patternCollectAddSubnodesAddParentNode(com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode evalNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode> astPatternNodeMap)
    • patternGetRemoveTopNode

      public static com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode patternGetRemoveTopNode(org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.pattern.core.EvalForgeNode> astPatternNodeMap)
    • regExCollectAddSubNodesAddParentNode

      public static void regExCollectAddSubNodesAddParentNode(com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode exprNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRegExNodeMap)
    • regExCollectAddSubNodes

      public static void regExCollectAddSubNodes(com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode regexNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRegExNodeMap)
    • regExApplyActionRecursive

      public static void regExApplyActionRecursive(org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRegExNodeMap, com.espertech.esper.compiler.internal.parse.ASTExprHelper.RegExAction action)
    • exprCollectAddSubNodesAddParentNode

      public static void exprCollectAddSubNodesAddParentNode(com.espertech.esper.common.internal.epl.expression.core.ExprNode exprNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
    • exprCollectAddSubNodes

      public static void exprCollectAddSubNodes(com.espertech.esper.common.internal.epl.expression.core.ExprNode parentNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
    • exprCollectAddSingle

      public static void exprCollectAddSingle(com.espertech.esper.common.internal.epl.expression.core.ExprNode parentNode, org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
    • exprCollectAddSubNodesExpressionCtx

      public static void exprCollectAddSubNodesExpressionCtx(com.espertech.esper.common.internal.epl.expression.core.ExprNode parentNode, List<EsperEPL2GrammarParser.ExpressionContext> expressionContexts, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
    • exprCollectSubNodes

      public static List<com.espertech.esper.common.internal.epl.expression.core.ExprNode> exprCollectSubNodes(org.antlr.v4.runtime.tree.Tree parentNode, int startIndex, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)
    • regExGetRemoveTopNode

      public static com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode regExGetRemoveTopNode(org.antlr.v4.runtime.tree.Tree node, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.rowrecog.expr.RowRecogExprNode> astRowRegexNodeMap)
    • mathGetExpr

      public static com.espertech.esper.common.internal.epl.expression.core.ExprNode mathGetExpr(org.antlr.v4.runtime.tree.ParseTree ctx, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap, com.espertech.esper.common.client.configuration.Configuration configurationInformation)
    • addOptionalNumber

      public static void addOptionalNumber(com.espertech.esper.common.internal.epl.expression.core.ExprNode exprNode, EsperEPL2GrammarParser.NumberContext number)
    • addOptionalSimpleProperty

      public static void addOptionalSimpleProperty(com.espertech.esper.common.internal.epl.expression.core.ExprNode exprNode, org.antlr.v4.runtime.Token token, com.espertech.esper.common.internal.epl.variable.compiletime.VariableCompileTimeResolver variableCompileTimeResolver, com.espertech.esper.common.internal.compile.stage1.spec.StatementSpecRaw spec)
    • exprCollectSubNodesPerNode

      public static com.espertech.esper.common.internal.epl.expression.core.ExprNode[] exprCollectSubNodesPerNode(List<EsperEPL2GrammarParser.ExpressionContext> expression, Map<org.antlr.v4.runtime.tree.Tree,com.espertech.esper.common.internal.epl.expression.core.ExprNode> astExprNodeMap)