| Modifier and Type | Field and Description |
|---|---|
| private CharStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| protected String | |
| protected String | |
| public void | recover(Parser
the parser instance recognizer, RecognitionException the recognition exception to recover from e)Overrides org. Implements org. e, re-throw it wrapped
in a ParseCancellationException so it is not caught by the
rule function catches.
|
| public Token | recoverInline(Parser
the parser instance recognizer)Overrides org. Implements org. |
| protected void | reportFailedPredicate(Parser
the parser instance recognizer, FailedPredicateException the recognition exception e)Overrides org. reportError when the exception is a
FailedPredicateException.
|
| protected void | reportInputMismatch(Parser
the parser instance recognizer, InputMismatchException the recognition exception e)Overrides org. reportError when the exception is an
InputMismatchException.
|
| protected void | reportNoViableAlternative(Parser
the parser instance recognizer, NoViableAltException the recognition exception e)Overrides org. reportError when the exception is a
NoViableAltException.
|
| charStream | back to summary |
|---|---|
| private CharStream charStream | |
| DescriptiveErrorStrategy | back to summary |
|---|---|
| public DescriptiveErrorStrategy(CharStream charStream) | |
| createFailedPredicateErrorMessage | back to summary |
|---|---|
| protected String createFailedPredicateErrorMessage(Parser recognizer, FailedPredicateException e) | |
| createInputMismatchErrorMessage | back to summary |
|---|---|
| protected String createInputMismatchErrorMessage(Parser recognizer, InputMismatchException e) | |
| createNoViableAlternativeErrorMessage | back to summary |
|---|---|
| protected String createNoViableAlternativeErrorMessage(Parser recognizer, NoViableAltException e) | |
| recover | back to summary |
|---|---|
| public void recover(Parser recognizer, RecognitionException e) Overrides org. Implements org. Doc from org. Instead of recovering from exception
| |
| recoverInline | back to summary |
|---|---|
| public Token recoverInline(Parser recognizer) throws RecognitionException Overrides org. Implements org. Doc from org. Make sure we don't attempt to recover inline; if the parser successfully recovers, it won't throw an exception.
| |
| reportFailedPredicate | back to summary |
|---|---|
| protected void reportFailedPredicate(Parser recognizer, FailedPredicateException e) Overrides org. Doc from org. This is called by
| |
| reportInputMismatch | back to summary |
|---|---|
| protected void reportInputMismatch(Parser recognizer, InputMismatchException e) Overrides org. Doc from org. This is called by
| |
| reportNoViableAlternative | back to summary |
|---|---|
| protected void reportNoViableAlternative(Parser recognizer, NoViableAltException e) Overrides org. Doc from org. This is called by
| |