freemarker.core
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by freemarker.core.ParseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Template.WrongEncodingException

public class ParseException
extends java.io.IOException

This exception is thrown when parse errors are encountered. You can explicitly create objects of this exception type by calling the method generateParseException in the generated parser. You can modify this class to customize your error reporting mechanisms so long as you retain the public fields.

See Also:
Serialized Form

Field Summary
static int _INCLUDE
          RegularExpression Id.
static int AND
          RegularExpression Id.
static int AS
          RegularExpression Id.
static int ASSIGN
          RegularExpression Id.
static int ATTEMPT
          RegularExpression Id.
static int BLANK
          RegularExpression Id.
static int BREAK
          RegularExpression Id.
static int BUILT_IN
          RegularExpression Id.
static int CALL
          RegularExpression Id.
static int CASE
          RegularExpression Id.
static int CLOSE_BRACE
          RegularExpression Id.
static int CLOSE_BRACKET
          RegularExpression Id.
static int CLOSE_PAREN
          RegularExpression Id.
static int CLOSE_TAG1
          RegularExpression Id.
static int CLOSE_TAG2
          RegularExpression Id.
static int COLON
          RegularExpression Id.
 int columnNumber
           
static int COMMA
          RegularExpression Id.
static int COMMENT
          RegularExpression Id.
static int COMPRESS
          RegularExpression Id.
 freemarker.core.Token currentToken
          This is the last token that has been consumed successfully.
static int DECIMAL
          RegularExpression Id.
static int DEFAUL
          RegularExpression Id.
static int DEFAULT
          Lexical state.
static int DIGIT
          RegularExpression Id.
static int DIRECTIVE_END
          RegularExpression Id.
static int DIVIDE
          RegularExpression Id.
static int DOT
          RegularExpression Id.
static int DOT_DOT
          RegularExpression Id.
static int DOUBLE_EQUALS
          RegularExpression Id.
static int DOUBLE_STAR
          RegularExpression Id.
static int ELLIPSIS
          RegularExpression Id.
static int ELSE
          RegularExpression Id.
static int ELSE_IF
          RegularExpression Id.
static int EMPTY_DIRECTIVE_END
          RegularExpression Id.
static int END_ASSIGN
          RegularExpression Id.
static int END_ATTEMPT
          RegularExpression Id.
static int END_COMPRESS
          RegularExpression Id.
static int END_ESCAPE
          RegularExpression Id.
static int END_FOREACH
          RegularExpression Id.
static int END_FUNCTION
          RegularExpression Id.
static int END_GLOBAL
          RegularExpression Id.
static int END_IF
          RegularExpression Id.
static int END_LIST
          RegularExpression Id.
static int END_LOCAL
          RegularExpression Id.
static int END_MACRO
          RegularExpression Id.
static int END_NOESCAPE
          RegularExpression Id.
static int END_RECOVER
          RegularExpression Id.
static int END_SWITCH
          RegularExpression Id.
static int END_TAG
          RegularExpression Id.
static int END_TRANSFORM
          RegularExpression Id.
static int EOF
          End of File.
protected  java.lang.String eol
          The end of line string for this machine.
static int EQUALS
          RegularExpression Id.
static int ESCAPE
          RegularExpression Id.
static int ESCAPED_CHAR
          RegularExpression Id.
static int ESCAPED_GT
          RegularExpression Id.
static int ESCAPED_GTE
          RegularExpression Id.
static int EXCLAM
          RegularExpression Id.
static int EXISTS
          RegularExpression Id.
 int[][] expectedTokenSequences
          Each entry in this array is an array of integers.
static int EXPRESSION_COMMENT
          Lexical state.
static int FALLBACK
          RegularExpression Id.
static int FALSE
          RegularExpression Id.
static int FALSE_ALERT
          RegularExpression Id.
static int FLUSH
          RegularExpression Id.
static int FM_EXPRESSION
          Lexical state.
static int FOREACH
          RegularExpression Id.
static int FTL_HEADER
          RegularExpression Id.
static int FUNCTION
          RegularExpression Id.
static int GLOBALASSIGN
          RegularExpression Id.
static int HALT
          RegularExpression Id.
static int ID
          RegularExpression Id.
static int IF
          RegularExpression Id.
static int IMPORT
          RegularExpression Id.
static int IN
          RegularExpression Id.
static int IN_PAREN
          Lexical state.
static int INTEGER
          RegularExpression Id.
static int KEEP_GOING
          RegularExpression Id.
static int LESS_THAN
          RegularExpression Id.
static int LESS_THAN_EQUALS
          RegularExpression Id.
static int LETTER
          RegularExpression Id.
 int lineNumber
           
static int LIST
          RegularExpression Id.
static int LOCALASSIGN
          RegularExpression Id.
static int LONE_LESS_THAN_OR_DASH
          RegularExpression Id.
static int LTRIM
          RegularExpression Id.
static int MACRO
          RegularExpression Id.
static int MAYBE_END
          RegularExpression Id.
static int MINUS
          RegularExpression Id.
static int NAMED_PARAMETER_EXPRESSION
          Lexical state.
static int NATURAL_GT
          RegularExpression Id.
static int NATURAL_GTE
          RegularExpression Id.
static int NESTED
          RegularExpression Id.
static int NO_PARSE
          Lexical state.
static int NO_SPACE_EXPRESSION
          Lexical state.
static int NODIRECTIVE
          Lexical state.
static int NOESCAPE
          RegularExpression Id.
static int NOPARSE
          RegularExpression Id.
static int NOT_EQUALS
          RegularExpression Id.
static int NOTRIM
          RegularExpression Id.
static int NUMERICAL_ESCAPE
          RegularExpression Id.
static int OPEN_BRACE
          RegularExpression Id.
static int OPEN_BRACKET
          RegularExpression Id.
static int OPEN_PAREN
          RegularExpression Id.
static int OR
          RegularExpression Id.
static int OUTPUT_ESCAPE
          RegularExpression Id.
static int PERCENT
          RegularExpression Id.
static int PLUS
          RegularExpression Id.
static int PRINTABLE_CHARS
          RegularExpression Id.
static int RAW_STRING
          RegularExpression Id.
static int RECOVER
          RegularExpression Id.
static int RECURSE
          RegularExpression Id.
static int RETURN
          RegularExpression Id.
static int RTRIM
          RegularExpression Id.
static int SEMICOLON
          RegularExpression Id.
static int SETTING
          RegularExpression Id.
static int SIMPLE_NESTED
          RegularExpression Id.
static int SIMPLE_RECURSE
          RegularExpression Id.
static int SIMPLE_RETURN
          RegularExpression Id.
protected  boolean specialConstructor
          This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).
static int START_TAG
          RegularExpression Id.
static int STOP
          RegularExpression Id.
static int STRING_LITERAL
          RegularExpression Id.
static int SWITCH
          RegularExpression Id.
static int TERMINATING_EXCLAM
          RegularExpression Id.
static int TERMINATING_WHITESPACE
          RegularExpression Id.
static int TERSE_COMMENT
          RegularExpression Id.
static int TERSE_COMMENT_END
          RegularExpression Id.
static int TIMES
          RegularExpression Id.
 java.lang.String[] tokenImage
          This is a reference to the "tokenImage" array of the generated parser within which the parse error occurred.
static int TRANSFORM
          RegularExpression Id.
static int TRIM
          RegularExpression Id.
static int TRIVIAL_FTL_HEADER
          RegularExpression Id.
static int TRUE
          RegularExpression Id.
static int UNIFIED_CALL
          RegularExpression Id.
static int UNIFIED_CALL_END
          RegularExpression Id.
static int UNKNOWN_DIRECTIVE
          RegularExpression Id.
static int USING
          RegularExpression Id.
static int VISIT
          RegularExpression Id.
static int WHITESPACE
          RegularExpression Id.
 
Constructor Summary
protected ParseException()
          The following constructors are for use by you for whatever purpose you can think of.
  ParseException(java.lang.String message, int lineNumber, int columnNumber)
           
  ParseException(java.lang.String message, TemplateObject tobj)
           
  ParseException(freemarker.core.Token currentTokenVal, int[][] expectedTokenSequencesVal, java.lang.String[] tokenImageVal)
          This constructor is used by the method "generateParseException" in the generated parser.
 
Method Summary
protected  java.lang.String add_escapes(java.lang.String str)
          Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.
 int getColumnNumber()
           
 int getLineNumber()
           
 java.lang.String getMessage()
          This method has the standard behavior when this object has been created using the standard constructors.
 void setTemplateName(java.lang.String templateName)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

specialConstructor

protected boolean specialConstructor
This variable determines which constructor was used to create this object and thereby affects the semantics of the "getMessage" method (see below).


currentToken

public freemarker.core.Token currentToken
This is the last token that has been consumed successfully. If this object has been created due to a parse error, the token following this token will (therefore) be the first error token.


columnNumber

public int columnNumber

lineNumber

public int lineNumber

expectedTokenSequences

public int[][] expectedTokenSequences
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

public java.lang.String[] 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.


eol

protected java.lang.String eol
The end of line string for this machine.


EOF

public static final int EOF
End of File.

See Also:
Constant Field Values

BLANK

public static final int BLANK
RegularExpression Id.

See Also:
Constant Field Values

START_TAG

public static final int START_TAG
RegularExpression Id.

See Also:
Constant Field Values

END_TAG

public static final int END_TAG
RegularExpression Id.

See Also:
Constant Field Values

CLOSE_TAG1

public static final int CLOSE_TAG1
RegularExpression Id.

See Also:
Constant Field Values

CLOSE_TAG2

public static final int CLOSE_TAG2
RegularExpression Id.

See Also:
Constant Field Values

ATTEMPT

public static final int ATTEMPT
RegularExpression Id.

See Also:
Constant Field Values

RECOVER

public static final int RECOVER
RegularExpression Id.

See Also:
Constant Field Values

IF

public static final int IF
RegularExpression Id.

See Also:
Constant Field Values

ELSE_IF

public static final int ELSE_IF
RegularExpression Id.

See Also:
Constant Field Values

LIST

public static final int LIST
RegularExpression Id.

See Also:
Constant Field Values

FOREACH

public static final int FOREACH
RegularExpression Id.

See Also:
Constant Field Values

SWITCH

public static final int SWITCH
RegularExpression Id.

See Also:
Constant Field Values

CASE

public static final int CASE
RegularExpression Id.

See Also:
Constant Field Values

ASSIGN

public static final int ASSIGN
RegularExpression Id.

See Also:
Constant Field Values

GLOBALASSIGN

public static final int GLOBALASSIGN
RegularExpression Id.

See Also:
Constant Field Values

LOCALASSIGN

public static final int LOCALASSIGN
RegularExpression Id.

See Also:
Constant Field Values

_INCLUDE

public static final int _INCLUDE
RegularExpression Id.

See Also:
Constant Field Values

IMPORT

public static final int IMPORT
RegularExpression Id.

See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
RegularExpression Id.

See Also:
Constant Field Values

MACRO

public static final int MACRO
RegularExpression Id.

See Also:
Constant Field Values

TRANSFORM

public static final int TRANSFORM
RegularExpression Id.

See Also:
Constant Field Values

VISIT

public static final int VISIT
RegularExpression Id.

See Also:
Constant Field Values

STOP

public static final int STOP
RegularExpression Id.

See Also:
Constant Field Values

RETURN

public static final int RETURN
RegularExpression Id.

See Also:
Constant Field Values

CALL

public static final int CALL
RegularExpression Id.

See Also:
Constant Field Values

SETTING

public static final int SETTING
RegularExpression Id.

See Also:
Constant Field Values

COMPRESS

public static final int COMPRESS
RegularExpression Id.

See Also:
Constant Field Values

COMMENT

public static final int COMMENT
RegularExpression Id.

See Also:
Constant Field Values

TERSE_COMMENT

public static final int TERSE_COMMENT
RegularExpression Id.

See Also:
Constant Field Values

NOPARSE

public static final int NOPARSE
RegularExpression Id.

See Also:
Constant Field Values

END_IF

public static final int END_IF
RegularExpression Id.

See Also:
Constant Field Values

END_LIST

public static final int END_LIST
RegularExpression Id.

See Also:
Constant Field Values

END_RECOVER

public static final int END_RECOVER
RegularExpression Id.

See Also:
Constant Field Values

END_ATTEMPT

public static final int END_ATTEMPT
RegularExpression Id.

See Also:
Constant Field Values

END_FOREACH

public static final int END_FOREACH
RegularExpression Id.

See Also:
Constant Field Values

END_LOCAL

public static final int END_LOCAL
RegularExpression Id.

See Also:
Constant Field Values

END_GLOBAL

public static final int END_GLOBAL
RegularExpression Id.

See Also:
Constant Field Values

END_ASSIGN

public static final int END_ASSIGN
RegularExpression Id.

See Also:
Constant Field Values

END_FUNCTION

public static final int END_FUNCTION
RegularExpression Id.

See Also:
Constant Field Values

END_MACRO

public static final int END_MACRO
RegularExpression Id.

See Also:
Constant Field Values

END_COMPRESS

public static final int END_COMPRESS
RegularExpression Id.

See Also:
Constant Field Values

END_TRANSFORM

public static final int END_TRANSFORM
RegularExpression Id.

See Also:
Constant Field Values

END_SWITCH

public static final int END_SWITCH
RegularExpression Id.

See Also:
Constant Field Values

ELSE

public static final int ELSE
RegularExpression Id.

See Also:
Constant Field Values

BREAK

public static final int BREAK
RegularExpression Id.

See Also:
Constant Field Values

SIMPLE_RETURN

public static final int SIMPLE_RETURN
RegularExpression Id.

See Also:
Constant Field Values

HALT

public static final int HALT
RegularExpression Id.

See Also:
Constant Field Values

FLUSH

public static final int FLUSH
RegularExpression Id.

See Also:
Constant Field Values

TRIM

public static final int TRIM
RegularExpression Id.

See Also:
Constant Field Values

LTRIM

public static final int LTRIM
RegularExpression Id.

See Also:
Constant Field Values

RTRIM

public static final int RTRIM
RegularExpression Id.

See Also:
Constant Field Values

NOTRIM

public static final int NOTRIM
RegularExpression Id.

See Also:
Constant Field Values

DEFAUL

public static final int DEFAUL
RegularExpression Id.

See Also:
Constant Field Values

SIMPLE_NESTED

public static final int SIMPLE_NESTED
RegularExpression Id.

See Also:
Constant Field Values

NESTED

public static final int NESTED
RegularExpression Id.

See Also:
Constant Field Values

SIMPLE_RECURSE

public static final int SIMPLE_RECURSE
RegularExpression Id.

See Also:
Constant Field Values

RECURSE

public static final int RECURSE
RegularExpression Id.

See Also:
Constant Field Values

FALLBACK

public static final int FALLBACK
RegularExpression Id.

See Also:
Constant Field Values

ESCAPE

public static final int ESCAPE
RegularExpression Id.

See Also:
Constant Field Values

END_ESCAPE

public static final int END_ESCAPE
RegularExpression Id.

See Also:
Constant Field Values

NOESCAPE

public static final int NOESCAPE
RegularExpression Id.

See Also:
Constant Field Values

END_NOESCAPE

public static final int END_NOESCAPE
RegularExpression Id.

See Also:
Constant Field Values

UNIFIED_CALL

public static final int UNIFIED_CALL
RegularExpression Id.

See Also:
Constant Field Values

UNIFIED_CALL_END

public static final int UNIFIED_CALL_END
RegularExpression Id.

See Also:
Constant Field Values

FTL_HEADER

public static final int FTL_HEADER
RegularExpression Id.

See Also:
Constant Field Values

TRIVIAL_FTL_HEADER

public static final int TRIVIAL_FTL_HEADER
RegularExpression Id.

See Also:
Constant Field Values

UNKNOWN_DIRECTIVE

public static final int UNKNOWN_DIRECTIVE
RegularExpression Id.

See Also:
Constant Field Values

WHITESPACE

public static final int WHITESPACE
RegularExpression Id.

See Also:
Constant Field Values

PRINTABLE_CHARS

public static final int PRINTABLE_CHARS
RegularExpression Id.

See Also:
Constant Field Values

FALSE_ALERT

public static final int FALSE_ALERT
RegularExpression Id.

See Also:
Constant Field Values

OUTPUT_ESCAPE

public static final int OUTPUT_ESCAPE
RegularExpression Id.

See Also:
Constant Field Values

NUMERICAL_ESCAPE

public static final int NUMERICAL_ESCAPE
RegularExpression Id.

See Also:
Constant Field Values

ESCAPED_CHAR

public static final int ESCAPED_CHAR
RegularExpression Id.

See Also:
Constant Field Values

STRING_LITERAL

public static final int STRING_LITERAL
RegularExpression Id.

See Also:
Constant Field Values

RAW_STRING

public static final int RAW_STRING
RegularExpression Id.

See Also:
Constant Field Values

FALSE

public static final int FALSE
RegularExpression Id.

See Also:
Constant Field Values

TRUE

public static final int TRUE
RegularExpression Id.

See Also:
Constant Field Values

INTEGER

public static final int INTEGER
RegularExpression Id.

See Also:
Constant Field Values

DECIMAL

public static final int DECIMAL
RegularExpression Id.

See Also:
Constant Field Values

DOT

public static final int DOT
RegularExpression Id.

See Also:
Constant Field Values

DOT_DOT

public static final int DOT_DOT
RegularExpression Id.

See Also:
Constant Field Values

BUILT_IN

public static final int BUILT_IN
RegularExpression Id.

See Also:
Constant Field Values

EXISTS

public static final int EXISTS
RegularExpression Id.

See Also:
Constant Field Values

EQUALS

public static final int EQUALS
RegularExpression Id.

See Also:
Constant Field Values

DOUBLE_EQUALS

public static final int DOUBLE_EQUALS
RegularExpression Id.

See Also:
Constant Field Values

NOT_EQUALS

public static final int NOT_EQUALS
RegularExpression Id.

See Also:
Constant Field Values

LESS_THAN

public static final int LESS_THAN
RegularExpression Id.

See Also:
Constant Field Values

LESS_THAN_EQUALS

public static final int LESS_THAN_EQUALS
RegularExpression Id.

See Also:
Constant Field Values

ESCAPED_GT

public static final int ESCAPED_GT
RegularExpression Id.

See Also:
Constant Field Values

ESCAPED_GTE

public static final int ESCAPED_GTE
RegularExpression Id.

See Also:
Constant Field Values

PLUS

public static final int PLUS
RegularExpression Id.

See Also:
Constant Field Values

MINUS

public static final int MINUS
RegularExpression Id.

See Also:
Constant Field Values

TIMES

public static final int TIMES
RegularExpression Id.

See Also:
Constant Field Values

DOUBLE_STAR

public static final int DOUBLE_STAR
RegularExpression Id.

See Also:
Constant Field Values

ELLIPSIS

public static final int ELLIPSIS
RegularExpression Id.

See Also:
Constant Field Values

DIVIDE

public static final int DIVIDE
RegularExpression Id.

See Also:
Constant Field Values

PERCENT

public static final int PERCENT
RegularExpression Id.

See Also:
Constant Field Values

AND

public static final int AND
RegularExpression Id.

See Also:
Constant Field Values

OR

public static final int OR
RegularExpression Id.

See Also:
Constant Field Values

EXCLAM

public static final int EXCLAM
RegularExpression Id.

See Also:
Constant Field Values

COMMA

public static final int COMMA
RegularExpression Id.

See Also:
Constant Field Values

SEMICOLON

public static final int SEMICOLON
RegularExpression Id.

See Also:
Constant Field Values

COLON

public static final int COLON
RegularExpression Id.

See Also:
Constant Field Values

OPEN_BRACKET

public static final int OPEN_BRACKET
RegularExpression Id.

See Also:
Constant Field Values

CLOSE_BRACKET

public static final int CLOSE_BRACKET
RegularExpression Id.

See Also:
Constant Field Values

OPEN_PAREN

public static final int OPEN_PAREN
RegularExpression Id.

See Also:
Constant Field Values

CLOSE_PAREN

public static final int CLOSE_PAREN
RegularExpression Id.

See Also:
Constant Field Values

OPEN_BRACE

public static final int OPEN_BRACE
RegularExpression Id.

See Also:
Constant Field Values

CLOSE_BRACE

public static final int CLOSE_BRACE
RegularExpression Id.

See Also:
Constant Field Values

IN

public static final int IN
RegularExpression Id.

See Also:
Constant Field Values

AS

public static final int AS
RegularExpression Id.

See Also:
Constant Field Values

USING

public static final int USING
RegularExpression Id.

See Also:
Constant Field Values

ID

public static final int ID
RegularExpression Id.

See Also:
Constant Field Values

LETTER

public static final int LETTER
RegularExpression Id.

See Also:
Constant Field Values

DIGIT

public static final int DIGIT
RegularExpression Id.

See Also:
Constant Field Values

DIRECTIVE_END

public static final int DIRECTIVE_END
RegularExpression Id.

See Also:
Constant Field Values

EMPTY_DIRECTIVE_END

public static final int EMPTY_DIRECTIVE_END
RegularExpression Id.

See Also:
Constant Field Values

NATURAL_GT

public static final int NATURAL_GT
RegularExpression Id.

See Also:
Constant Field Values

NATURAL_GTE

public static final int NATURAL_GTE
RegularExpression Id.

See Also:
Constant Field Values

TERMINATING_WHITESPACE

public static final int TERMINATING_WHITESPACE
RegularExpression Id.

See Also:
Constant Field Values

TERMINATING_EXCLAM

public static final int TERMINATING_EXCLAM
RegularExpression Id.

See Also:
Constant Field Values

TERSE_COMMENT_END

public static final int TERSE_COMMENT_END
RegularExpression Id.

See Also:
Constant Field Values

MAYBE_END

public static final int MAYBE_END
RegularExpression Id.

See Also:
Constant Field Values

KEEP_GOING

public static final int KEEP_GOING
RegularExpression Id.

See Also:
Constant Field Values

LONE_LESS_THAN_OR_DASH

public static final int LONE_LESS_THAN_OR_DASH
RegularExpression Id.

See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
Lexical state.

See Also:
Constant Field Values

NODIRECTIVE

public static final int NODIRECTIVE
Lexical state.

See Also:
Constant Field Values

FM_EXPRESSION

public static final int FM_EXPRESSION
Lexical state.

See Also:
Constant Field Values

IN_PAREN

public static final int IN_PAREN
Lexical state.

See Also:
Constant Field Values

NAMED_PARAMETER_EXPRESSION

public static final int NAMED_PARAMETER_EXPRESSION
Lexical state.

See Also:
Constant Field Values

EXPRESSION_COMMENT

public static final int EXPRESSION_COMMENT
Lexical state.

See Also:
Constant Field Values

NO_SPACE_EXPRESSION

public static final int NO_SPACE_EXPRESSION
Lexical state.

See Also:
Constant Field Values

NO_PARSE

public static final int NO_PARSE
Lexical state.

See Also:
Constant Field Values
Constructor Detail

ParseException

public ParseException(freemarker.core.Token currentTokenVal,
                      int[][] expectedTokenSequencesVal,
                      java.lang.String[] tokenImageVal)
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. The boolean flag "specialConstructor" is also set to true to indicate that this constructor was used to create this object. This constructor calls its super class with the empty string to force the "toString" method of parent class "Throwable" to print the error message in the form: ParseException:


ParseException

protected 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

public ParseException(java.lang.String message,
                      int lineNumber,
                      int columnNumber)

ParseException

public ParseException(java.lang.String message,
                      TemplateObject tobj)
Method Detail

setTemplateName

public void setTemplateName(java.lang.String templateName)

getMessage

public java.lang.String 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.

Overrides:
getMessage in class java.lang.Throwable

getLineNumber

public int getLineNumber()

getColumnNumber

public int getColumnNumber()

add_escapes

protected java.lang.String add_escapes(java.lang.String str)
Used to convert raw characters to their escaped version when these raw version cannot be used as part of an ASCII string literal.