Serializable
EarlyExitException
, FailedPredicateException
, MismatchedRangeException
, MismatchedSetException
, MismatchedTokenException
, MismatchedTreeNodeException
, NoViableAltException
public class RecognitionException extends Exception
Modifier and Type | Field | Description |
---|---|---|
boolean |
approximateLineInfo |
If you are parsing a tree node stream, you will encounter som
imaginary nodes w/o line/col info.
|
int |
c |
The current char when an error occurred.
|
int |
charPositionInLine |
|
int |
index |
What is index of token/char were we looking at when the error occurred?
|
IntStream |
input |
What input stream did the error occur in?
|
int |
line |
Track the line at which the error occurred in case this is
generated from a lexer.
|
Object |
node |
If this is a tree parser exception, node is set to the node with
the problem.
|
Token |
token |
The current Token when an error occurred.
|
Constructor | Description |
---|---|
RecognitionException() |
Used for remote debugger deserialization
|
RecognitionException(IntStream input) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
extractInformationFromTreeNodeStream(IntStream input) |
|
int |
getUnexpectedType() |
Return the token type or char of the unexpected input element
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public transient IntStream input
public int index
public Token token
public Object node
public int c
public int line
public int charPositionInLine
public boolean approximateLineInfo
public RecognitionException()
public RecognitionException(IntStream input)
protected void extractInformationFromTreeNodeStream(IntStream input)
public int getUnexpectedType()
Copyright © 1992–2018 ANTLR. All rights reserved.