Class ParserHelper


  • public class ParserHelper
    extends java.lang.Object
    • Field Detail

      • LOG

        public static final org.slf4j.Logger LOG
    • Method Detail

      • pushScope

        public void pushScope()
      • pushScope

        public void pushScope​(Type type)
      • setTypeRegistry

        public void setTypeRegistry​(FEELTypeRegistry typeRegistry)
      • pushTypeScope

        public void pushTypeScope()
      • popScope

        public void popScope()
      • pushName

        public void pushName​(java.lang.String name)
      • pushName

        public void pushName​(org.antlr.v4.runtime.ParserRuleContext ctx)
      • popName

        public void popName()
      • recoverScope

        public void recoverScope()
      • recoverScope

        public void recoverScope​(java.lang.String name)
      • dismissScope

        public void dismissScope()
      • validateVariable

        public void validateVariable​(org.antlr.v4.runtime.ParserRuleContext ctx,
                                     java.util.List<java.lang.String> qn,
                                     java.lang.String name)
      • isDynamicResolution

        public boolean isDynamicResolution()
      • disableDynamicResolution

        public void disableDynamicResolution()
      • enableDynamicResolution

        public void enableDynamicResolution()
      • defineVariable

        public void defineVariable​(org.antlr.v4.runtime.ParserRuleContext ctx)
      • defineVariable

        public void defineVariable​(java.lang.String variable)
      • defineVariable

        public void defineVariable​(java.lang.String variable,
                                   Type type)
      • startVariable

        public void startVariable​(org.antlr.v4.runtime.Token t)
      • followUp

        public boolean followUp​(org.antlr.v4.runtime.Token t,
                                boolean isPredict)
      • getOriginalText

        public static java.lang.String getOriginalText​(org.antlr.v4.runtime.ParserRuleContext ctx)
      • fphStart

        public int fphStart​(org.antlr.v4.runtime.ParserRuleContext ctx,
                            org.antlr.v4.runtime.Parser parser)
        a specific heuristic for scope retrieval for filterPathExpression
      • fphEnd

        public void fphEnd​(int times)
      • getAllTokens

        public static java.util.List<org.antlr.v4.runtime.Token> getAllTokens​(org.antlr.v4.runtime.tree.ParseTree ctx,
                                                                              java.util.List<org.antlr.v4.runtime.Token> tokens)
      • isFeatDMN12EnhancedForLoopEnabled

        public boolean isFeatDMN12EnhancedForLoopEnabled()
      • setFeatDMN12EnhancedForLoopEnabled

        public void setFeatDMN12EnhancedForLoopEnabled​(boolean featDMN12EnhancedForLoopEnabled)
      • isFeatDMN12weekday

        public boolean isFeatDMN12weekday()
      • setFeatDMN12weekday

        public void setFeatDMN12weekday​(boolean featDMN12weekday)