类 ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sh.compile.express.ParseException
- 所有已实现的接口:
Serializable
Description:
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2014年12月11日
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明This is the last token that has been consumed successfully.protected static final StringThe end of line string for this machine.int[][]Each entry in this array is an array of integers.protected booleanThis variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).String[]This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred. -
构造器概要
构造器构造器说明The following constructors are for use by you for whatever purpose you can think of.ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal) ParseException(Token currentTokenVal, String message) ParseException(String message) -
方法概要
修饰符和类型方法说明This method has the standard behavior when this object has been created using the standard constructors.
-
字段详细资料
-
specialConstructor
protected boolean specialConstructorThis variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below). -
currentToken
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. -
eol
The end of line string for this machine. -
expectedTokenSequences
public int[][] expectedTokenSequencesEach 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
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.
-
-
构造器详细资料
-
ParseException
-
ParseException
public ParseException()The following constructors are for use by you for whatever purpose you can think of. Constructing the exception in this manner makes the exception behave in the normal way - i.e., as documented in the class "Throwable". The fields "errorToken", "expectedTokenSequences", and "tokenImage" do not contain relevant information. The JavaCC generated code does not use these constructors. -
ParseException
-
ParseException
-
-
方法详细资料
-
getMessage
This method has the standard behavior when this object has been created using the standard constructors. Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it. If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.- 覆盖:
getMessage在类中Throwable
-
getErrorInfo
-