Class FilterRuleErrorListener

  • All Implemented Interfaces:
    org.antlr.v4.runtime.ANTLRErrorListener

    public class FilterRuleErrorListener
    extends Object
    implements org.antlr.v4.runtime.ANTLRErrorListener
    author Pascal Knueppel
    created at: 16.10.2019 - 09:06

    checks for errors during filter parsing and wraps the error into an InvalidFilterException
    • Constructor Detail

      • FilterRuleErrorListener

        public FilterRuleErrorListener()
    • Method Detail

      • syntaxError

        public void syntaxError​(org.antlr.v4.runtime.Recognizer<?,​?> recognizer,
                                Object o,
                                int i,
                                int i1,
                                String message,
                                org.antlr.v4.runtime.RecognitionException e)
        throws an InvalidFilterException if a parser error occured
        Specified by:
        syntaxError in interface org.antlr.v4.runtime.ANTLRErrorListener
      • reportAmbiguity

        public void reportAmbiguity​(org.antlr.v4.runtime.Parser parser,
                                    org.antlr.v4.runtime.dfa.DFA dfa,
                                    int i,
                                    int i1,
                                    boolean b,
                                    BitSet bitSet,
                                    org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet)
        Specified by:
        reportAmbiguity in interface org.antlr.v4.runtime.ANTLRErrorListener
      • reportAttemptingFullContext

        public void reportAttemptingFullContext​(org.antlr.v4.runtime.Parser parser,
                                                org.antlr.v4.runtime.dfa.DFA dfa,
                                                int i,
                                                int i1,
                                                BitSet bitSet,
                                                org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet)
        Specified by:
        reportAttemptingFullContext in interface org.antlr.v4.runtime.ANTLRErrorListener
      • reportContextSensitivity

        public void reportContextSensitivity​(org.antlr.v4.runtime.Parser parser,
                                             org.antlr.v4.runtime.dfa.DFA dfa,
                                             int i,
                                             int i1,
                                             int i2,
                                             org.antlr.v4.runtime.atn.ATNConfigSet atnConfigSet)
        Specified by:
        reportContextSensitivity in interface org.antlr.v4.runtime.ANTLRErrorListener