freemarker.core
Class FMParser

java.lang.Object
  extended by freemarker.core.FMParser

public class FMParser
extends Object

This class is generated by JavaCC from a grammar file.


Field Summary
static int _INCLUDE
           
static int AND
           
static int AS
           
static int ASSIGN
           
static int ATTEMPT
           
static int BLANK
           
static int BREAK
           
static int BUILT_IN
           
static int CALL
           
static int CASE
           
static int CLOSE_BRACE
           
static int CLOSE_BRACKET
           
static int CLOSE_PAREN
           
static int CLOSE_TAG1
           
static int CLOSE_TAG2
           
static int COLON
           
static int COMMA
           
static int COMMENT
           
static int COMPRESS
           
static int DECIMAL
           
static int DEFAUL
           
static int DEFAULT
           
static int DIGIT
           
static int DIRECTIVE_END
           
static int DIVIDE
           
static int DOT
           
static int DOT_DOT
           
static int DOUBLE_EQUALS
           
static int DOUBLE_STAR
           
static int ELLIPSIS
           
static int ELSE
           
static int ELSE_IF
           
static int EMPTY_DIRECTIVE_END
           
static int END_ASSIGN
           
static int END_ATTEMPT
           
static int END_COMPRESS
           
static int END_ESCAPE
           
static int END_FOREACH
           
static int END_FUNCTION
           
static int END_GLOBAL
           
static int END_IF
           
static int END_LIST
           
static int END_LOCAL
           
static int END_MACRO
           
static int END_NOESCAPE
           
static int END_RECOVER
           
static int END_SWITCH
           
static int END_TAG
           
static int END_TRANSFORM
           
static int EOF
           
static int EQUALS
           
static int ESCAPE
           
static int ESCAPED_CHAR
           
static int ESCAPED_GT
           
static int ESCAPED_GTE
           
static int EXCLAM
           
static int EXISTS
           
static int EXPRESSION_COMMENT
           
static int FALLBACK
           
static int FALSE
           
static int FALSE_ALERT
           
static int FLUSH
           
static int FM_EXPRESSION
           
static int FOREACH
           
static int FTL_HEADER
           
static int FUNCTION
           
static int GLOBALASSIGN
           
static int HALT
           
static int ID
           
static int IF
           
static int IMPORT
           
static int IN
           
static int IN_PAREN
           
static int INTEGER
           
 freemarker.core.Token jj_nt
           
static int KEEP_GOING
           
static int LESS_THAN
           
static int LESS_THAN_EQUALS
           
static int LETTER
           
static int LIST
           
static int LOCALASSIGN
           
static int LONE_LESS_THAN_OR_DASH
           
 boolean lookingAhead
           
static int LTRIM
           
static int MACRO
           
static int MAYBE_END
           
static int MINUS
           
static int NAMED_PARAMETER_EXPRESSION
           
static int NATURAL_GT
           
static int NATURAL_GTE
           
static int NESTED
           
static int NO_PARSE
           
static int NO_SPACE_EXPRESSION
           
static int NODIRECTIVE
           
static int NOESCAPE
           
static int NOPARSE
           
static int NOT_EQUALS
           
static int NOTRIM
           
static int NUMERICAL_ESCAPE
           
static int OPEN_BRACE
           
static int OPEN_BRACKET
           
static int OPEN_PAREN
           
static int OR
           
static int OUTPUT_ESCAPE
           
static int PERCENT
           
static int PLUS
           
static int PRINTABLE_CHARS
           
static int RAW_STRING
           
static int RECOVER
           
static int RECURSE
           
static int RETURN
           
static int RTRIM
           
static int SEMICOLON
           
static int SETTING
           
static int SIMPLE_NESTED
           
static int SIMPLE_RECURSE
           
static int SIMPLE_RETURN
           
static int START_TAG
           
static int STOP
           
static int STRING_LITERAL
           
static int SWITCH
           
static int TERMINATING_EXCLAM
           
static int TERMINATING_WHITESPACE
           
static int TERSE_COMMENT
           
static int TERSE_COMMENT_END
           
static int TIMES
           
 freemarker.core.Token token
           
 freemarker.core.FMParserTokenManager token_source
           
static String[] tokenImage
           
static int TRANSFORM
           
static int TRIM
           
static int TRIVIAL_FTL_HEADER
           
static int TRUE
           
static int UNIFIED_CALL
           
static int UNIFIED_CALL_END
           
static int UNKNOWN_DIRECTIVE
           
static int USING
           
static int VISIT
           
static int WHITESPACE
           
 
Constructor Summary
FMParser(freemarker.core.FMParserTokenManager tm)
           
FMParser(InputStream stream)
           
FMParser(Reader stream)
           
FMParser(String template)
           
FMParser(freemarker.template.Template template, Reader reader, boolean strictEscapeSyntax, boolean stripWhitespace)
          Constructs a new parser object.
FMParser(freemarker.template.Template template, Reader reader, boolean strictEscapeSyntax, boolean stripWhitespace, int tagSyntax)
           
 
Method Summary
 freemarker.core.Expression AdditiveExpression()
           
 freemarker.core.Expression AddSubExpression(freemarker.core.Expression exp)
          Production that builds up an expression using the dot or dynamic key name or the args list if this is a method invocation.
 freemarker.core.Expression AndExpression()
           
 freemarker.core.TemplateElement Assign()
           
 freemarker.core.AttemptBlock Attempt()
           
 freemarker.core.Expression BooleanLiteral()
           
 freemarker.core.BreakInstruction Break()
          Production used to break out of a loop or a switch block.
 freemarker.core.Expression BuiltIn(freemarker.core.Expression exp)
           
 freemarker.core.BuiltinVariable BuiltinVariable()
           
 freemarker.core.TemplateElement Call()
           
 freemarker.core.Case Case()
           
 freemarker.core.Comment Comment()
           
 freemarker.core.CompressedBlock Compress()
           
 freemarker.core.TemplateElement Content()
           
static FMParser createExpressionParser(String s)
          Create an FM expression parser using a string.
 freemarker.core.Expression DefaultTo(freemarker.core.Expression exp)
           
 void disable_tracing()
           
 freemarker.core.Expression DotVariable(freemarker.core.Expression exp)
          production for when a key is specified by + keyname
 freemarker.core.Expression DynamicKey(freemarker.core.Expression exp)
          production for when the key is specified in brackets.
 void enable_tracing()
           
 freemarker.core.Expression EqualityExpression()
           
 freemarker.core.EscapeBlock Escape()
           
 freemarker.core.Expression Exists(freemarker.core.Expression exp)
           
 freemarker.core.Expression Expression()
          This is the same as OrExpression, since the OR is the operator with the lowest precedence.
 freemarker.core.FallbackInstruction FallBack()
           
 freemarker.core.TemplateElement Flush()
           
 freemarker.core.IteratorBlock ForEach()
           
 freemarker.core.TemplateElement FreemarkerDirective()
          A production for FreeMarker directives.
 freemarker.core.TemplateElement FreeMarkerText()
          A production freemarker text that may contain ${...} and #{...} but no directives.
 freemarker.core.ParseException generateParseException()
           
 freemarker.core.Token getNextToken()
           
 freemarker.core.Token getToken(int index)
           
 freemarker.core.HashLiteral HashLiteral()
           
 void HeaderElement()
           
 freemarker.core.Identifier Identifier()
           
 freemarker.core.Expression IdentifierOrStringLiteral()
           
 freemarker.core.TemplateElement If()
           
 freemarker.core.LibraryLoad Import()
           
 freemarker.core.Include Include()
           
 freemarker.core.IteratorBlock List()
           
 freemarker.core.ListLiteral ListLiteral()
           
 freemarker.core.Token LooseDirectiveEnd()
          Production to terminate potentially empty elements.
 freemarker.core.Macro Macro()
           
 freemarker.core.MethodCall MethodArgs(freemarker.core.Expression exp)
          production for an arglist part of a method invocation.
 freemarker.core.Expression MultiplicativeExpression()
          A unary expression followed by zero or more unary expressions with operators in between.
 HashMap NamedArgs()
           
 freemarker.core.TemplateElement Nested()
           
 freemarker.core.NoEscapeBlock NoEscape()
           
 freemarker.core.TextBlock NoParse()
           
 freemarker.core.Expression NotExpression()
           
 freemarker.core.Expression NumberLiteral()
           
 freemarker.core.NumericalOutput NumericalOutput()
           
 freemarker.core.TemplateElement OptionalBlock()
          A production for a block of optional content.
 freemarker.core.Expression OrExpression()
           
 Map ParamList()
           
 freemarker.core.Expression Parenthesis()
           
 freemarker.core.TextBlock PCData()
          Production for a block of raw text i.e.
 ArrayList PositionalArgs()
           
 freemarker.core.Expression PrimaryExpression()
          Lowest level expression, a literal, a variable, or a possibly more complex expression bounded by parentheses.
 freemarker.core.Expression RangeExpression()
           
 freemarker.core.RecoveryBlock Recover()
           
 freemarker.core.RecurseNode Recurse()
           
 void ReInit(freemarker.core.FMParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 freemarker.core.Expression RelationalExpression()
           
 freemarker.core.ReturnInstruction Return()
          Production used to jump out of a macro.
 freemarker.core.TemplateElement Root()
          Root production to be used when parsing an entire file.
 freemarker.core.PropertySetting Setting()
           
 freemarker.core.StopInstruction Stop()
           
 freemarker.core.StringLiteral StringLiteral(boolean interpolate)
           
 freemarker.core.DollarVariable StringOutput()
          A production representing the ${...} that outputs a variable.
 freemarker.core.SwitchBlock Switch()
           
 freemarker.core.TransformBlock Transform()
           
 freemarker.core.TemplateElement Trim()
           
 freemarker.core.Expression UnaryExpression()
          A primary expression preceded by zero or more unary operators.
 freemarker.core.Expression UnaryPlusMinusExpression()
           
 freemarker.core.TemplateElement UnifiedMacroTransform()
           
 freemarker.core.Token UnparsedContent(StringBuffer buf)
          Production for dealing with unparsed content, i.e.
 freemarker.core.VisitNode Visit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public freemarker.core.FMParserTokenManager token_source

token

public freemarker.core.Token token

jj_nt

public freemarker.core.Token jj_nt

lookingAhead

public boolean lookingAhead

EOF

public static final int EOF
See Also:
Constant Field Values

BLANK

public static final int BLANK
See Also:
Constant Field Values

START_TAG

public static final int START_TAG
See Also:
Constant Field Values

END_TAG

public static final int END_TAG
See Also:
Constant Field Values

CLOSE_TAG1

public static final int CLOSE_TAG1
See Also:
Constant Field Values

CLOSE_TAG2

public static final int CLOSE_TAG2
See Also:
Constant Field Values

ATTEMPT

public static final int ATTEMPT
See Also:
Constant Field Values

RECOVER

public static final int RECOVER
See Also:
Constant Field Values

IF

public static final int IF
See Also:
Constant Field Values

ELSE_IF

public static final int ELSE_IF
See Also:
Constant Field Values

LIST

public static final int LIST
See Also:
Constant Field Values

FOREACH

public static final int FOREACH
See Also:
Constant Field Values

SWITCH

public static final int SWITCH
See Also:
Constant Field Values

CASE

public static final int CASE
See Also:
Constant Field Values

ASSIGN

public static final int ASSIGN
See Also:
Constant Field Values

GLOBALASSIGN

public static final int GLOBALASSIGN
See Also:
Constant Field Values

LOCALASSIGN

public static final int LOCALASSIGN
See Also:
Constant Field Values

_INCLUDE

public static final int _INCLUDE
See Also:
Constant Field Values

IMPORT

public static final int IMPORT
See Also:
Constant Field Values

FUNCTION

public static final int FUNCTION
See Also:
Constant Field Values

MACRO

public static final int MACRO
See Also:
Constant Field Values

TRANSFORM

public static final int TRANSFORM
See Also:
Constant Field Values

VISIT

public static final int VISIT
See Also:
Constant Field Values

STOP

public static final int STOP
See Also:
Constant Field Values

RETURN

public static final int RETURN
See Also:
Constant Field Values

CALL

public static final int CALL
See Also:
Constant Field Values

SETTING

public static final int SETTING
See Also:
Constant Field Values

COMPRESS

public static final int COMPRESS
See Also:
Constant Field Values

COMMENT

public static final int COMMENT
See Also:
Constant Field Values

TERSE_COMMENT

public static final int TERSE_COMMENT
See Also:
Constant Field Values

NOPARSE

public static final int NOPARSE
See Also:
Constant Field Values

END_IF

public static final int END_IF
See Also:
Constant Field Values

END_LIST

public static final int END_LIST
See Also:
Constant Field Values

END_RECOVER

public static final int END_RECOVER
See Also:
Constant Field Values

END_ATTEMPT

public static final int END_ATTEMPT
See Also:
Constant Field Values

END_FOREACH

public static final int END_FOREACH
See Also:
Constant Field Values

END_LOCAL

public static final int END_LOCAL
See Also:
Constant Field Values

END_GLOBAL

public static final int END_GLOBAL
See Also:
Constant Field Values

END_ASSIGN

public static final int END_ASSIGN
See Also:
Constant Field Values

END_FUNCTION

public static final int END_FUNCTION
See Also:
Constant Field Values

END_MACRO

public static final int END_MACRO
See Also:
Constant Field Values

END_COMPRESS

public static final int END_COMPRESS
See Also:
Constant Field Values

END_TRANSFORM

public static final int END_TRANSFORM
See Also:
Constant Field Values

END_SWITCH

public static final int END_SWITCH
See Also:
Constant Field Values

ELSE

public static final int ELSE
See Also:
Constant Field Values

BREAK

public static final int BREAK
See Also:
Constant Field Values

SIMPLE_RETURN

public static final int SIMPLE_RETURN
See Also:
Constant Field Values

HALT

public static final int HALT
See Also:
Constant Field Values

FLUSH

public static final int FLUSH
See Also:
Constant Field Values

TRIM

public static final int TRIM
See Also:
Constant Field Values

LTRIM

public static final int LTRIM
See Also:
Constant Field Values

RTRIM

public static final int RTRIM
See Also:
Constant Field Values

NOTRIM

public static final int NOTRIM
See Also:
Constant Field Values

DEFAUL

public static final int DEFAUL
See Also:
Constant Field Values

SIMPLE_NESTED

public static final int SIMPLE_NESTED
See Also:
Constant Field Values

NESTED

public static final int NESTED
See Also:
Constant Field Values

SIMPLE_RECURSE

public static final int SIMPLE_RECURSE
See Also:
Constant Field Values

RECURSE

public static final int RECURSE
See Also:
Constant Field Values

FALLBACK

public static final int FALLBACK
See Also:
Constant Field Values

ESCAPE

public static final int ESCAPE
See Also:
Constant Field Values

END_ESCAPE

public static final int END_ESCAPE
See Also:
Constant Field Values

NOESCAPE

public static final int NOESCAPE
See Also:
Constant Field Values

END_NOESCAPE

public static final int END_NOESCAPE
See Also:
Constant Field Values

UNIFIED_CALL

public static final int UNIFIED_CALL
See Also:
Constant Field Values

UNIFIED_CALL_END

public static final int UNIFIED_CALL_END
See Also:
Constant Field Values

FTL_HEADER

public static final int FTL_HEADER
See Also:
Constant Field Values

TRIVIAL_FTL_HEADER

public static final int TRIVIAL_FTL_HEADER
See Also:
Constant Field Values

UNKNOWN_DIRECTIVE

public static final int UNKNOWN_DIRECTIVE
See Also:
Constant Field Values

WHITESPACE

public static final int WHITESPACE
See Also:
Constant Field Values

PRINTABLE_CHARS

public static final int PRINTABLE_CHARS
See Also:
Constant Field Values

FALSE_ALERT

public static final int FALSE_ALERT
See Also:
Constant Field Values

OUTPUT_ESCAPE

public static final int OUTPUT_ESCAPE
See Also:
Constant Field Values

NUMERICAL_ESCAPE

public static final int NUMERICAL_ESCAPE
See Also:
Constant Field Values

ESCAPED_CHAR

public static final int ESCAPED_CHAR
See Also:
Constant Field Values

STRING_LITERAL

public static final int STRING_LITERAL
See Also:
Constant Field Values

RAW_STRING

public static final int RAW_STRING
See Also:
Constant Field Values

FALSE

public static final int FALSE
See Also:
Constant Field Values

TRUE

public static final int TRUE
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

DECIMAL

public static final int DECIMAL
See Also:
Constant Field Values

DOT

public static final int DOT
See Also:
Constant Field Values

DOT_DOT

public static final int DOT_DOT
See Also:
Constant Field Values

BUILT_IN

public static final int BUILT_IN
See Also:
Constant Field Values

EXISTS

public static final int EXISTS
See Also:
Constant Field Values

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

DOUBLE_EQUALS

public static final int DOUBLE_EQUALS
See Also:
Constant Field Values

NOT_EQUALS

public static final int NOT_EQUALS
See Also:
Constant Field Values

LESS_THAN

public static final int LESS_THAN
See Also:
Constant Field Values

LESS_THAN_EQUALS

public static final int LESS_THAN_EQUALS
See Also:
Constant Field Values

ESCAPED_GT

public static final int ESCAPED_GT
See Also:
Constant Field Values

ESCAPED_GTE

public static final int ESCAPED_GTE
See Also:
Constant Field Values

PLUS

public static final int PLUS
See Also:
Constant Field Values

MINUS

public static final int MINUS
See Also:
Constant Field Values

TIMES

public static final int TIMES
See Also:
Constant Field Values

DOUBLE_STAR

public static final int DOUBLE_STAR
See Also:
Constant Field Values

ELLIPSIS

public static final int ELLIPSIS
See Also:
Constant Field Values

DIVIDE

public static final int DIVIDE
See Also:
Constant Field Values

PERCENT

public static final int PERCENT
See Also:
Constant Field Values

AND

public static final int AND
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values

EXCLAM

public static final int EXCLAM
See Also:
Constant Field Values

COMMA

public static final int COMMA
See Also:
Constant Field Values

SEMICOLON

public static final int SEMICOLON
See Also:
Constant Field Values

COLON

public static final int COLON
See Also:
Constant Field Values

OPEN_BRACKET

public static final int OPEN_BRACKET
See Also:
Constant Field Values

CLOSE_BRACKET

public static final int CLOSE_BRACKET
See Also:
Constant Field Values

OPEN_PAREN

public static final int OPEN_PAREN
See Also:
Constant Field Values

CLOSE_PAREN

public static final int CLOSE_PAREN
See Also:
Constant Field Values

OPEN_BRACE

public static final int OPEN_BRACE
See Also:
Constant Field Values

CLOSE_BRACE

public static final int CLOSE_BRACE
See Also:
Constant Field Values

IN

public static final int IN
See Also:
Constant Field Values

AS

public static final int AS
See Also:
Constant Field Values

USING

public static final int USING
See Also:
Constant Field Values

ID

public static final int ID
See Also:
Constant Field Values

LETTER

public static final int LETTER
See Also:
Constant Field Values

DIGIT

public static final int DIGIT
See Also:
Constant Field Values

DIRECTIVE_END

public static final int DIRECTIVE_END
See Also:
Constant Field Values

EMPTY_DIRECTIVE_END

public static final int EMPTY_DIRECTIVE_END
See Also:
Constant Field Values

NATURAL_GT

public static final int NATURAL_GT
See Also:
Constant Field Values

NATURAL_GTE

public static final int NATURAL_GTE
See Also:
Constant Field Values

TERMINATING_WHITESPACE

public static final int TERMINATING_WHITESPACE
See Also:
Constant Field Values

TERMINATING_EXCLAM

public static final int TERMINATING_EXCLAM
See Also:
Constant Field Values

TERSE_COMMENT_END

public static final int TERSE_COMMENT_END
See Also:
Constant Field Values

MAYBE_END

public static final int MAYBE_END
See Also:
Constant Field Values

KEEP_GOING

public static final int KEEP_GOING
See Also:
Constant Field Values

LONE_LESS_THAN_OR_DASH

public static final int LONE_LESS_THAN_OR_DASH
See Also:
Constant Field Values

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

NODIRECTIVE

public static final int NODIRECTIVE
See Also:
Constant Field Values

FM_EXPRESSION

public static final int FM_EXPRESSION
See Also:
Constant Field Values

IN_PAREN

public static final int IN_PAREN
See Also:
Constant Field Values

NAMED_PARAMETER_EXPRESSION

public static final int NAMED_PARAMETER_EXPRESSION
See Also:
Constant Field Values

EXPRESSION_COMMENT

public static final int EXPRESSION_COMMENT
See Also:
Constant Field Values

NO_SPACE_EXPRESSION

public static final int NO_SPACE_EXPRESSION
See Also:
Constant Field Values

NO_PARSE

public static final int NO_PARSE
See Also:
Constant Field Values

tokenImage

public static final String[] tokenImage
Constructor Detail

FMParser

public FMParser(freemarker.template.Template template,
                Reader reader,
                boolean strictEscapeSyntax,
                boolean stripWhitespace)
Constructs a new parser object.

Parameters:
template - The template associated with this parser.
reader - The character stream to use as input
strictEscapeSyntax - Whether FreeMarker directives must start with a #

FMParser

public FMParser(freemarker.template.Template template,
                Reader reader,
                boolean strictEscapeSyntax,
                boolean stripWhitespace,
                int tagSyntax)

FMParser

public FMParser(String template)

FMParser

public FMParser(InputStream stream)

FMParser

public FMParser(Reader stream)

FMParser

public FMParser(freemarker.core.FMParserTokenManager tm)
Method Detail

createExpressionParser

public static FMParser createExpressionParser(String s)
Create an FM expression parser using a string.


Expression

public final freemarker.core.Expression Expression()
                                            throws freemarker.core.ParseException
This is the same as OrExpression, since the OR is the operator with the lowest precedence.

Throws:
freemarker.core.ParseException

PrimaryExpression

public final freemarker.core.Expression PrimaryExpression()
                                                   throws freemarker.core.ParseException
Lowest level expression, a literal, a variable, or a possibly more complex expression bounded by parentheses.

Throws:
freemarker.core.ParseException

Parenthesis

public final freemarker.core.Expression Parenthesis()
                                             throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

UnaryExpression

public final freemarker.core.Expression UnaryExpression()
                                                 throws freemarker.core.ParseException
A primary expression preceded by zero or more unary operators. (The only unary operator we currently have is the NOT.)

Throws:
freemarker.core.ParseException

NotExpression

public final freemarker.core.Expression NotExpression()
                                               throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

UnaryPlusMinusExpression

public final freemarker.core.Expression UnaryPlusMinusExpression()
                                                          throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

AdditiveExpression

public final freemarker.core.Expression AdditiveExpression()
                                                    throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

MultiplicativeExpression

public final freemarker.core.Expression MultiplicativeExpression()
                                                          throws freemarker.core.ParseException
A unary expression followed by zero or more unary expressions with operators in between.

Throws:
freemarker.core.ParseException

EqualityExpression

public final freemarker.core.Expression EqualityExpression()
                                                    throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

RelationalExpression

public final freemarker.core.Expression RelationalExpression()
                                                      throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

RangeExpression

public final freemarker.core.Expression RangeExpression()
                                                 throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

AndExpression

public final freemarker.core.Expression AndExpression()
                                               throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

OrExpression

public final freemarker.core.Expression OrExpression()
                                              throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

ListLiteral

public final freemarker.core.ListLiteral ListLiteral()
                                              throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

NumberLiteral

public final freemarker.core.Expression NumberLiteral()
                                               throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Identifier

public final freemarker.core.Identifier Identifier()
                                            throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

IdentifierOrStringLiteral

public final freemarker.core.Expression IdentifierOrStringLiteral()
                                                           throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

BuiltinVariable

public final freemarker.core.BuiltinVariable BuiltinVariable()
                                                      throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

AddSubExpression

public final freemarker.core.Expression AddSubExpression(freemarker.core.Expression exp)
                                                  throws freemarker.core.ParseException
Production that builds up an expression using the dot or dynamic key name or the args list if this is a method invocation.

Throws:
freemarker.core.ParseException

DefaultTo

public final freemarker.core.Expression DefaultTo(freemarker.core.Expression exp)
                                           throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Exists

public final freemarker.core.Expression Exists(freemarker.core.Expression exp)
                                        throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

BuiltIn

public final freemarker.core.Expression BuiltIn(freemarker.core.Expression exp)
                                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

DotVariable

public final freemarker.core.Expression DotVariable(freemarker.core.Expression exp)
                                             throws freemarker.core.ParseException
production for when a key is specified by + keyname

Throws:
freemarker.core.ParseException

DynamicKey

public final freemarker.core.Expression DynamicKey(freemarker.core.Expression exp)
                                            throws freemarker.core.ParseException
production for when the key is specified in brackets.

Throws:
freemarker.core.ParseException

MethodArgs

public final freemarker.core.MethodCall MethodArgs(freemarker.core.Expression exp)
                                            throws freemarker.core.ParseException
production for an arglist part of a method invocation.

Throws:
freemarker.core.ParseException

StringLiteral

public final freemarker.core.StringLiteral StringLiteral(boolean interpolate)
                                                  throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

BooleanLiteral

public final freemarker.core.Expression BooleanLiteral()
                                                throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

HashLiteral

public final freemarker.core.HashLiteral HashLiteral()
                                              throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

StringOutput

public final freemarker.core.DollarVariable StringOutput()
                                                  throws freemarker.core.ParseException
A production representing the ${...} that outputs a variable.

Throws:
freemarker.core.ParseException

NumericalOutput

public final freemarker.core.NumericalOutput NumericalOutput()
                                                      throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

If

public final freemarker.core.TemplateElement If()
                                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Attempt

public final freemarker.core.AttemptBlock Attempt()
                                           throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Recover

public final freemarker.core.RecoveryBlock Recover()
                                            throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

List

public final freemarker.core.IteratorBlock List()
                                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

ForEach

public final freemarker.core.IteratorBlock ForEach()
                                            throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Visit

public final freemarker.core.VisitNode Visit()
                                      throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Recurse

public final freemarker.core.RecurseNode Recurse()
                                          throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

FallBack

public final freemarker.core.FallbackInstruction FallBack()
                                                   throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Break

public final freemarker.core.BreakInstruction Break()
                                             throws freemarker.core.ParseException
Production used to break out of a loop or a switch block.

Throws:
freemarker.core.ParseException

Return

public final freemarker.core.ReturnInstruction Return()
                                               throws freemarker.core.ParseException
Production used to jump out of a macro. The stop instruction terminates the rendering of the template.

Throws:
freemarker.core.ParseException

Stop

public final freemarker.core.StopInstruction Stop()
                                           throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Nested

public final freemarker.core.TemplateElement Nested()
                                             throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Flush

public final freemarker.core.TemplateElement Flush()
                                            throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Trim

public final freemarker.core.TemplateElement Trim()
                                           throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Assign

public final freemarker.core.TemplateElement Assign()
                                             throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Include

public final freemarker.core.Include Include()
                                      throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Import

public final freemarker.core.LibraryLoad Import()
                                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Macro

public final freemarker.core.Macro Macro()
                                  throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Compress

public final freemarker.core.CompressedBlock Compress()
                                               throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

UnifiedMacroTransform

public final freemarker.core.TemplateElement UnifiedMacroTransform()
                                                            throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Call

public final freemarker.core.TemplateElement Call()
                                           throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

NamedArgs

public final HashMap NamedArgs()
                        throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

PositionalArgs

public final ArrayList PositionalArgs()
                               throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Comment

public final freemarker.core.Comment Comment()
                                      throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

NoParse

public final freemarker.core.TextBlock NoParse()
                                        throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Transform

public final freemarker.core.TransformBlock Transform()
                                               throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Switch

public final freemarker.core.SwitchBlock Switch()
                                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Case

public final freemarker.core.Case Case()
                                throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Escape

public final freemarker.core.EscapeBlock Escape()
                                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

NoEscape

public final freemarker.core.NoEscapeBlock NoEscape()
                                             throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

LooseDirectiveEnd

public final freemarker.core.Token LooseDirectiveEnd()
                                              throws freemarker.core.ParseException
Production to terminate potentially empty elements. Either a ">" or "/>"

Throws:
freemarker.core.ParseException

Setting

public final freemarker.core.PropertySetting Setting()
                                              throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

FreemarkerDirective

public final freemarker.core.TemplateElement FreemarkerDirective()
                                                          throws freemarker.core.ParseException
A production for FreeMarker directives.

Throws:
freemarker.core.ParseException

PCData

public final freemarker.core.TextBlock PCData()
                                       throws freemarker.core.ParseException
Production for a block of raw text i.e. text that contains no FreeMarker directives.

Throws:
freemarker.core.ParseException

UnparsedContent

public final freemarker.core.Token UnparsedContent(StringBuffer buf)
                                            throws freemarker.core.ParseException
Production for dealing with unparsed content, i.e. what is inside a comment or noparse tag. It returns the ending token. The content of the tag is put in buf.

Throws:
freemarker.core.ParseException

Content

public final freemarker.core.TemplateElement Content()
                                              throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

FreeMarkerText

public final freemarker.core.TemplateElement FreeMarkerText()
                                                     throws freemarker.core.ParseException
A production freemarker text that may contain ${...} and #{...} but no directives.

Throws:
freemarker.core.ParseException

OptionalBlock

public final freemarker.core.TemplateElement OptionalBlock()
                                                    throws freemarker.core.ParseException
A production for a block of optional content. Returns an empty Text block if there is no content.

Throws:
freemarker.core.ParseException

HeaderElement

public final void HeaderElement()
                         throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

ParamList

public final Map ParamList()
                    throws freemarker.core.ParseException
Throws:
freemarker.core.ParseException

Root

public final freemarker.core.TemplateElement Root()
                                           throws freemarker.core.ParseException
Root production to be used when parsing an entire file.

Throws:
freemarker.core.ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(freemarker.core.FMParserTokenManager tm)

getNextToken

public final freemarker.core.Token getNextToken()

getToken

public final freemarker.core.Token getToken(int index)

generateParseException

public freemarker.core.ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.