Top Description Fields Constructors Methods
org.apache.commons.jexl2.parser

public Class TokenMgrError

extends Error
Class Inheritance

Token Manager Error.

Field Summary

Modifier and TypeField 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

Hides java.lang.Error.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.

Constructor Summary

AccessConstructor and Description
public
TokenMgrError(String message, int reason)

Constructor with message and reason.

public
TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason)

Full Constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string after which the error occured
getAfter
()

Gets the last correct input.

public int

Returns:

the column.
getColumn
()

Gets the column number.

public int

Returns:

one of the 4 lexical error codes
getErrorCode
()

Gets the reason why the exception is thrown.

public int

Returns:

line number.
getLine
()

Gets the line number.

public String

Returns:

the message
getMessage
()

Overrides java.lang.Throwable.getMessage.

Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error.

Field Detail

afterback to summary
private String after

Last correct input before error occurs.

columnback to summary
private int column

Error column.

currentback to summary
private char current

The current character.

eofback to summary
private boolean eof
errorCodeback to summary
private int errorCode

Indicates the reason why the exception is thrown. It will have one of the above 4 values.

INVALID_LEXICAL_STATEback to summary
public static final int INVALID_LEXICAL_STATE

Tried to change to an invalid lexical state.

LEXICAL_ERRORback to summary
public static final int LEXICAL_ERROR

Lexical error occurred.

lineback to summary
private int line

Error line.

LOOP_DETECTEDback to summary
public static final int LOOP_DETECTED

Detected (and bailed out of) an infinite loop in the token manager.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Error.serialVersionUID.

The version identifier for this Serializable class. Increment only if the serialized form of the class changes.

stateback to summary
private int state

The lexer state.

Annotations
@SuppressWarnings:unused
STATIC_LEXER_ERRORback to summary
public static final int STATIC_LEXER_ERROR

An attempt was made to create a second instance of a static token manager.

Constructor Detail

TokenMgrErrorback to summary
public TokenMgrError(String message, int reason)

Constructor with message and reason.

TokenMgrErrorback to summary
public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason)

Full Constructor.

Method Detail

getAfterback to summary
public String getAfter()

Gets the last correct input.

Returns:String

the string after which the error occured

getColumnback to summary
public int getColumn()

Gets the column number.

Returns:int

the column.

getErrorCodeback to summary
public int getErrorCode()

Gets the reason why the exception is thrown.

Returns:int

one of the 4 lexical error codes

getLineback to summary
public int getLine()

Gets the line number.

Returns:int

line number.

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Returns a detailed message for the Error when it is thrown by the token manager to indicate a lexical error.

Returns:String

the message

Annotations
@Override