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

public Class ParseException

extends Exception
Class Inheritance

This exception is thrown when parse errors are encountered.

Field Summary

Modifier and TypeField and Description
private String
after

Last correct input before error occurs.

private int
column

Error column.

private int
line

Error line.

private static final long

Constructor Summary

AccessConstructor and Description
public
ParseException(Token
This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.
currentToken
,
int[][]
Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse.
expectedTokenSequences
,
String[]
This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface.
tokenImage
)

This constructor is used by the method "generateParseException" in the generated parser.

public
ParseException()

Default ctor.

public
ParseException(String message)

Constructor with message.

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:

line number.
getLine
()

Gets the line number.

Field Detail

afterback to summary
private String after

Last correct input before error occurs.

columnback to summary
private int column

Error column.

lineback to summary
private int line

Error line.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

The version identifier.

Constructor Detail

ParseExceptionback to summary
public ParseException(Token currentToken, int[][] expectedTokenSequences, String[] tokenImage)

This constructor is used by the method "generateParseException" in the generated parser. Calling this constructor generates a new object of this type with the fields "currentToken", "expectedTokenSequences", and "tokenImage" set.

Parameters
currentToken:Token

This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token followng this token will (therefore) be the first error token.

expectedTokenSequences:int[][]

Each entry in this array is an array of integers. Each array of integers represents a sequence of tokens (by their ordinal values) that is expected at this point of the parse.

tokenImage:String[]

This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. This array is defined in the generated ...Constants interface.

ParseExceptionback to summary
public ParseException()

Default ctor.

ParseExceptionback to summary
public ParseException(String message)

Constructor with message.

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.

getLineback to summary
public int getLine()

Gets the line number.

Returns:int

line number.