public class ParseException
extends java.lang.Exception
Modifier and Type | Field | Description |
---|---|---|
Token |
currentToken |
This is the last token that has been consumed successfully.
|
int[][] |
expectedTokenSequences |
Each entry in this array is an array of integers.
|
java.lang.String[] |
tokenImage |
This is a reference to the "tokenImage" array of the generated
parser within which the parse error occurred.
|
Constructor | Description |
---|---|
ParseException() |
Creates a new
ParseException instance. |
ParseException(java.lang.String message) |
Creates a new
ParseException instance with the given message. |
ParseException(java.lang.Throwable e) |
Creates a new
ParseException instance that will warp the given Throwable . |
ParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal) |
Creates a new
ParseException instance with the fields "currentToken",
"expectedTokenSequences", and "tokenImage" set. |
public Token currentToken
public int[][] expectedTokenSequences
public java.lang.String[] tokenImage
public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, java.lang.String[] tokenImageVal)
ParseException
instance with the fields "currentToken",
"expectedTokenSequences", and "tokenImage" set.
This constructor is used by the method "generateParseException" in the generated javacc parser.
public ParseException()
ParseException
instance.public ParseException(java.lang.String message)
ParseException
instance with the given message.message
- a message that report the problem encountered.public ParseException(java.lang.Throwable e)
ParseException
instance that will warp the given Throwable
.e
- an Exception
or Error
that you want to warp into a ParseException
.