This class is generated by JavaCC from a grammar file.
AddSubExpression
public final Expression AddSubExpression(Expression exp)
throws ParseException
Production that builds up an expression
using the dot or dynamic key name
or the args list if this is a method invocation.
Attempt
public final freemarker.core.AttemptBlock Attempt()
throws ParseException
Break
public final freemarker.core.BreakInstruction Break()
throws ParseException
Production used to break out of a loop or a switch block.
BuiltinVariable
public final freemarker.core.BuiltinVariable BuiltinVariable()
throws ParseException
Compress
public final freemarker.core.CompressedBlock Compress()
throws ParseException
Escape
public final freemarker.core.EscapeBlock Escape()
throws ParseException
Expression
public final Expression Expression()
throws ParseException
This is the same as OrExpression, since
the OR is the operator with the lowest
precedence.
FallBack
public final freemarker.core.FallbackInstruction FallBack()
throws ParseException
ForEach
public final freemarker.core.IteratorBlock ForEach()
throws ParseException
FreeMarkerText
public final TemplateElement FreeMarkerText()
throws ParseException
A production freemarker text that may contain
${...} and #{...} but no directives.
HashLiteral
public final freemarker.core.HashLiteral HashLiteral()
throws ParseException
Identifier
public final freemarker.core.Identifier Identifier()
throws ParseException
Include
public final freemarker.core.Include Include()
throws ParseException
List
public final freemarker.core.IteratorBlock List()
throws ParseException
ListLiteral
public final freemarker.core.ListLiteral ListLiteral()
throws ParseException
LooseDirectiveEnd
public final freemarker.core.Token LooseDirectiveEnd()
throws ParseException
Production to terminate potentially empty elements. Either a ">" or "/>"
MethodArgs
public final freemarker.core.MethodCall MethodArgs(Expression exp)
throws ParseException
production for an arglist part of a method invocation.
MultiplicativeExpression
public final Expression MultiplicativeExpression()
throws ParseException
A unary expression followed by zero or more
unary expressions with operators in between.
NoEscape
public final freemarker.core.NoEscapeBlock NoEscape()
throws ParseException
NumericalOutput
public final freemarker.core.NumericalOutput NumericalOutput()
throws ParseException
OptionalBlock
public final TemplateElement OptionalBlock()
throws ParseException
A production for a block of optional content.
Returns an empty Text block if there is no
content.
PCData
public final TextBlock PCData()
throws ParseException
Production for a block of raw text
i.e. text that contains no
FreeMarker directives.
PositionalArgs
public final ArrayList PositionalArgs()
throws ParseException
PrimaryExpression
public final Expression PrimaryExpression()
throws ParseException
Lowest level expression, a literal, a variable,
or a possibly more complex expression bounded
by parentheses.
ReInit
public void ReInit(freemarker.core.FMParserTokenManager tm)
Reinitialise.
ReInit
public void ReInit(java.io.InputStream stream)
Reinitialise.
ReInit
public void ReInit(java.io.InputStream stream,
String encoding)
Reinitialise.
ReInit
public void ReInit(java.io.Reader stream)
Reinitialise.
Recover
public final freemarker.core.RecoveryBlock Recover()
throws ParseException
Recurse
public final freemarker.core.RecurseNode Recurse()
throws ParseException
Return
public final ReturnInstruction Return()
throws ParseException
Production used to jump out of a macro.
The stop instruction terminates the rendering of the template.
Setting
public final freemarker.core.PropertySetting Setting()
throws ParseException
Stop
public final freemarker.core.StopInstruction Stop()
throws ParseException
StringLiteral
public final freemarker.core.StringLiteral StringLiteral(boolean interpolate)
throws ParseException
StringOutput
public final freemarker.core.DollarVariable StringOutput()
throws ParseException
A production representing the ${...}
that outputs a variable.
Switch
public final freemarker.core.SwitchBlock Switch()
throws ParseException
Transform
public final freemarker.core.TransformBlock Transform()
throws ParseException
UnaryExpression
public final Expression UnaryExpression()
throws ParseException
A primary expression preceded by zero or
more unary operators. (The only unary operator we
currently have is the NOT.)
UnparsedContent
public final freemarker.core.Token UnparsedContent(StringBuffer buf)
throws 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.
Visit
public final freemarker.core.VisitNode Visit()
throws ParseException
createExpressionParser
public static FMParser createExpressionParser(String s)
Create an FM expression parser using a string.
disable_tracing
public final void disable_tracing()
Disable tracing.
enable_tracing
public final void enable_tracing()
Enable tracing.
generateParseException
public ParseException generateParseException()
Generate ParseException.
getNextToken
public final freemarker.core.Token getNextToken()
Get the next Token.
getToken
public final freemarker.core.Token getToken(int index)
Get the specific Token.