| Modifier and Type | Field and Description |
|---|---|
| private String | after
Last correct input before error occurs. |
| private int | column
Error column. |
| private char | current
The current character. |
| private boolean | |
| private int | errorCode
Indicates the reason why the exception is thrown. |
| public static final int | INVALID_LEXICAL_STATE
Tried to change to an invalid lexical state. |
| public static final int | LEXICAL_ERROR
Lexical error occurred. |
| private int | line
Error line. |
| public static final int | LOOP_DETECTED
Detected (and bailed out of) an infinite loop in the token manager. |
| private static final long | serialVersionUID
The version identifier for this Serializable class.
|
| private int | state
The lexer state. |
| public static final int | STATIC_LEXER_ERROR
An attempt was made to create a second instance of a static token manager. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason)
Full Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public int | |
| public int | |
| public int | |
| public String | Returns: the messageOverrides java. |
| after | back to summary |
|---|---|
| private String after Last correct input before error occurs. | |
| column | back to summary |
|---|---|
| private int column Error column. | |
| current | back to summary |
|---|---|
| private char current The current character. | |
| eof | back to summary |
|---|---|
| private boolean eof | |
| errorCode | back to summary |
|---|---|
| private int errorCode Indicates the reason why the exception is thrown. It will have one of the above 4 values. | |
| INVALID_LEXICAL_STATE | back to summary |
|---|---|
| public static final int INVALID_LEXICAL_STATE Tried to change to an invalid lexical state. | |
| LEXICAL_ERROR | back to summary |
|---|---|
| public static final int LEXICAL_ERROR Lexical error occurred. | |
| line | back to summary |
|---|---|
| private int line Error line. | |
| LOOP_DETECTED | back to summary |
|---|---|
| public static final int LOOP_DETECTED Detected (and bailed out of) an infinite loop in the token manager. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. The version identifier for this Serializable class. Increment only if the serialized form of the class changes. | |
| state | back to summary |
|---|---|
| private int state The lexer state.
| |
| STATIC_LEXER_ERROR | back to summary |
|---|---|
| public static final int STATIC_LEXER_ERROR An attempt was made to create a second instance of a static token manager. | |
| TokenMgrError | back to summary |
|---|---|
| public TokenMgrError(String message, int reason) Constructor with message and reason. | |
| TokenMgrError | back to summary |
|---|---|
| public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) Full Constructor. | |
| getAfter | back to summary |
|---|---|
| public String getAfter() Gets the last correct input.
| |
| getColumn | back to summary |
|---|---|
| public int getColumn() Gets the column number.
| |
| getErrorCode | back to summary |
|---|---|
| public int getErrorCode() Gets the reason why the exception is thrown.
| |
| getLine | back to summary |
|---|---|
| public int getLine() Gets the line number.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error. | |