Class XPathLexer

    • Constructor Detail

      • XPathLexer

        public XPathLexer​(CharStream input)
    • Method Detail

      • getTokenNames

        @Deprecated
        public java.lang.String[] getTokenNames()
        Deprecated.
        Description copied from class: Lexer
        Used to print out token names like ID during debugging and error reporting. The generated parsers implement a method that overrides this to point to their String[] tokenNames.
        Overrides:
        getTokenNames in class Lexer
      • getGrammarFileName

        public java.lang.String getGrammarFileName()
        Description copied from class: Recognizer
        For debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.
        Specified by:
        getGrammarFileName in class Recognizer<java.lang.Integer,​LexerATNSimulator>
      • getSerializedATN

        public java.lang.String getSerializedATN()
        Description copied from class: Recognizer
        If this recognizer was generated, it will have a serialized ATN representation of the grammar.

        For interpreters, we don't know their serialized ATN despite having created the interpreter from it.

        Overrides:
        getSerializedATN in class Recognizer<java.lang.Integer,​LexerATNSimulator>
      • getModeNames

        public java.lang.String[] getModeNames()
        Overrides:
        getModeNames in class Lexer
      • getATN

        public ATN getATN()
        Description copied from class: Recognizer
        Get the ATN used by the recognizer for prediction.
        Specified by:
        getATN in class Recognizer<java.lang.Integer,​LexerATNSimulator>
        Returns:
        The ATN used by the recognizer for prediction.