Class ParserHelper


  • public class ParserHelper
    extends Object
    • Constructor Detail

      • ParserHelper

        public ParserHelper()
      • ParserHelper

        public ParserHelper​(org.kie.dmn.feel.lang.impl.FEELEventListenersManager eventsManager)
    • Method Detail

      • getSymbolTable

        public org.kie.dmn.feel.lang.types.SymbolTable getSymbolTable()
      • pushScope

        public void pushScope()
      • pushScope

        public void pushScope​(org.kie.dmn.feel.lang.Type type)
      • setTypeRegistry

        public void setTypeRegistry​(org.kie.dmn.feel.lang.types.FEELTypeRegistry typeRegistry)
      • pushTypeScope

        public void pushTypeScope()
      • popScope

        public void popScope()
      • pushName

        public void pushName​(String name)
      • pushName

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

        public void popName()
      • recoverScope

        public void recoverScope()
      • recoverScope

        public void recoverScope​(String name)
      • dismissScope

        public void dismissScope()
      • validateVariable

        public void validateVariable​(org.antlr.v4.runtime.ParserRuleContext ctx,
                                     List<String> qn,
                                     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​(String variable)
      • defineVariable

        public void defineVariable​(String variable,
                                   org.kie.dmn.feel.lang.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 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 List<org.antlr.v4.runtime.Token> getAllTokens​(org.antlr.v4.runtime.tree.ParseTree ctx,
                                                                    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)