public class TemplateParseException extends ParseException implements ExtendedParseException
ParseException,
序列化表格currentToken, eol, expectedTokenSequences, specialConstructor, tokenImage| 构造器和说明 |
|---|
TemplateParseException()
The following constructors are for use by you for whatever
purpose you can think of.
|
TemplateParseException(java.lang.String message)
Creates a new TemplateParseException object.
|
TemplateParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal)
This constructor is used by the method "generateParseException"
in the generated parser.
|
TemplateParseException(Token currentTokenVal,
int[][] expectedTokenSequencesVal,
java.lang.String[] tokenImageVal,
java.lang.String templateNameVal)
This constructor is used to add a template name
to info cribbed from a ParseException generated in the parser.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
appendTemplateInfo(java.lang.StringBuilder sb) |
int |
getColumnNumber()
returns the column number where this exception occured.
|
int |
getLineNumber()
returns the line number where this exception occured.
|
java.lang.String |
getMessage()
This method has the standard behavior when this object has been
created using the standard constructors.
|
java.lang.String |
getTemplateName()
returns the Template name where this exception occured.
|
add_escapespublic TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, java.lang.String[] tokenImageVal, java.lang.String templateNameVal)
currentTokenVal - expectedTokenSequencesVal - tokenImageVal - templateNameVal - public TemplateParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, java.lang.String[] tokenImageVal)
currentTokenVal - expectedTokenSequencesVal - tokenImageVal - public TemplateParseException()
public TemplateParseException(java.lang.String message)
message - TODO: DOCUMENT ME!public java.lang.String getTemplateName()
getTemplateName 在接口中 ExtendedParseExceptionpublic int getLineNumber()
getLineNumber 在接口中 ExtendedParseExceptionpublic int getColumnNumber()
getColumnNumber 在接口中 ExtendedParseExceptionpublic java.lang.String getMessage()
getMessage 在类中 ParseExceptionprotected void appendTemplateInfo(java.lang.StringBuilder sb)
sb -