Uses of Class
org.antlr.runtime.RecognitionException
Packages that use RecognitionException
-
Uses of RecognitionException in org.antlr.runtime
Subclasses of RecognitionException in org.antlr.runtimeModifier and TypeClassDescriptionclass
The recognizer did not match anything for a (..)+ loop.class
A semantic predicate failed during validation.class
class
class
class
A mismatched char or Token or tree nodeclass
class
We were expecting a token but it's not found.class
class
An extra token while parsing a TokenStreamMethods in org.antlr.runtime with parameters of type RecognitionExceptionModifier and TypeMethodDescriptionvoid
BaseRecognizer.displayRecognitionError
(String[] tokenNames, RecognitionException e) BaseRecognizer.getErrorHeader
(RecognitionException e) What is the error header, normally line/character position information?BaseRecognizer.getErrorMessage
(RecognitionException e, String[] tokenNames) What error message should be generated for the various exception types? Not very object-oriented code, but I like having all error message generation within one method rather than spread among all of the exception classes.Lexer.getErrorMessage
(RecognitionException e, String[] tokenNames) protected Object
BaseRecognizer.getMissingSymbol
(IntStream input, RecognitionException e, int expectedTokenType, BitSet follow) Conjure up a missing token during error recovery.protected Object
Parser.getMissingSymbol
(IntStream input, RecognitionException e, int expectedTokenType, BitSet follow) void
BaseRecognizer.recover
(IntStream input, RecognitionException re) Recover from an error found on the input stream.void
Lexer.recover
(RecognitionException re) Lexers can normally match any char in it's vocabulary after matching a token, so do the easy thing and just kill a character and hope it all works out.BaseRecognizer.recoverFromMismatchedSet
(IntStream input, RecognitionException e, BitSet follow) Not currently usedvoid
BaseRecognizer.reportError
(RecognitionException e) Report a recognition problem.void
Lexer.reportError
(RecognitionException e) Methods in org.antlr.runtime that throw RecognitionExceptionModifier and TypeMethodDescriptionMatch current input symbol against ttype.abstract void
Lexer.mTokens()
This is the lexer entry point that sets instance var 'token'int
From the input stream, predict what alternative will succeed using this DFA (representing the covering regular approximation to the underlying CFL).BaseRecognizer.recoverFromMismatchedSet
(IntStream input, RecognitionException e, BitSet follow) Not currently usedprotected Object
BaseRecognizer.recoverFromMismatchedToken
(IntStream input, int ttype, BitSet follow) Attempt to recover from a single missing or extra token. -
Uses of RecognitionException in org.antlr.runtime.debug
Methods in org.antlr.runtime.debug with parameters of type RecognitionExceptionModifier and TypeMethodDescriptionDebugTreeAdaptor.errorNode
(TokenStream input, Token start, Token stop, RecognitionException e) protected Object
DebugTreeParser.getMissingSymbol
(IntStream input, RecognitionException e, int expectedTokenType, BitSet follow) void
BlankDebugEventListener.recognitionException
(RecognitionException e) void
DebugEventHub.recognitionException
(RecognitionException e) void
DebugEventListener.recognitionException
(RecognitionException e) A recognition exception occurred such as NoViableAltException.void
DebugEventRepeater.recognitionException
(RecognitionException e) void
DebugEventSocketProxy.recognitionException
(RecognitionException e) void
ParseTreeBuilder.recognitionException
(RecognitionException e) void
Profiler.recognitionException
(RecognitionException e) void
DebugParser.reportError
(RecognitionException e) void
DebugTreeParser.reportError
(RecognitionException e) -
Uses of RecognitionException in org.antlr.runtime.tree
Fields in org.antlr.runtime.tree declared as RecognitionExceptionMethods in org.antlr.runtime.tree with parameters of type RecognitionExceptionModifier and TypeMethodDescriptionBaseTreeAdaptor.errorNode
(TokenStream input, Token start, Token stop, RecognitionException e) create tree node that holds the start and stop tokens associated with an error.TreeAdaptor.errorNode
(TokenStream input, Token start, Token stop, RecognitionException e) Return a tree node representing an error.TreeParser.getErrorHeader
(RecognitionException e) Prefix error message with the grammar name because message is always intended for the programmer because the parser built the input tree not the user.TreeParser.getErrorMessage
(RecognitionException e, String[] tokenNames) Tree parsers parse nodes they usually have a token object as payload.protected Object
TreeParser.getMissingSymbol
(IntStream input, RecognitionException e, int expectedTokenType, BitSet follow) Methods in org.antlr.runtime.tree that throw RecognitionExceptionModifier and TypeMethodDescriptionvoid
TreeFilter.bottomup()
TreeRewriter.bottomup()
protected Object
TreeParser.recoverFromMismatchedToken
(IntStream input, int ttype, BitSet follow) We have DOWN/UP nodes in the stream that have no line info; override.void
TreeFilter.fptr.rule()
TreeRewriter.fptr.rule()
void
TreeFilter.topdown()
TreeRewriter.topdown()
Constructors in org.antlr.runtime.tree with parameters of type RecognitionExceptionModifierConstructorDescriptionCommonErrorNode
(TokenStream input, Token start, Token stop, RecognitionException e)