Class LexerNoViableAltException

    • Field Detail

      • startIndex

        private final int startIndex
        Matching attempted at what input index?
      • deadEndConfigs

        private final ATNConfigSet deadEndConfigs
        Which configurations did we try at input.index() that couldn't match input.LA(1)?
    • Constructor Detail

      • LexerNoViableAltException

        public LexerNoViableAltException​(Lexer lexer,
                                         CharStream input,
                                         int startIndex,
                                         ATNConfigSet deadEndConfigs)
    • Method Detail

      • getStartIndex

        public int getStartIndex()
      • getDeadEndConfigs

        public ATNConfigSet getDeadEndConfigs()
      • getInputStream

        public CharStream getInputStream()
        Description copied from class: RecognitionException
        Gets the input stream which is the symbol source for the recognizer where this exception was thrown.

        If the input stream is not available, this method returns null.

        Overrides:
        getInputStream in class RecognitionException
        Returns:
        The input stream which is the symbol source for the recognizer where this exception was thrown, or null if the stream is not available.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable