Package | Description |
---|---|
org.apache.velocity.runtime | |
org.apache.velocity.runtime.directive | |
org.apache.velocity.runtime.parser |
Modifier and Type | Method and Description |
---|---|
static SimpleNode |
Runtime.parse(java.io.Reader reader,
java.lang.String templateName)
Deprecated.
Parse the input and return the root of
AST node structure.
|
SimpleNode |
RuntimeInstance.parse(java.io.Reader reader,
java.lang.String templateName)
Parse the input and return the root of
AST node structure.
|
SimpleNode |
RuntimeServices.parse(java.io.Reader reader,
java.lang.String templateName)
Parse the input and return the root of
AST node structure.
|
static SimpleNode |
RuntimeSingleton.parse(java.io.Reader reader,
java.lang.String templateName)
Parse the input and return the root of
AST node structure.
|
static SimpleNode |
Runtime.parse(java.io.Reader reader,
java.lang.String templateName,
boolean dumpNamespace)
Deprecated.
Parse the input and return the root of the AST node structure.
|
SimpleNode |
RuntimeInstance.parse(java.io.Reader reader,
java.lang.String templateName,
boolean dumpNamespace)
Parse the input and return the root of the AST node structure.
|
SimpleNode |
RuntimeServices.parse(java.io.Reader reader,
java.lang.String templateName,
boolean dumpNamespace)
Parse the input and return the root of the AST node structure.
|
static SimpleNode |
RuntimeSingleton.parse(java.io.Reader reader,
java.lang.String templateName,
boolean dumpNamespace)
Parse the input and return the root of the AST node structure.
|
Modifier and Type | Class and Description |
---|---|
class |
MacroParseException
Exception to indicate problem happened while constructing #macro()
For internal use in parser - not to be passed to app level
|
Modifier and Type | Method and Description |
---|---|
static void |
Macro.processAndRegister(RuntimeServices rs,
Node node,
java.lang.String sourceTemplate)
Used by Parser.java to process VMs withing the parsing process
processAndRegister() doesn't actually render the macro to the output
Processes the macro body into the internal representation used by the
VelocimacroProxy objects, and if not currently used, adds it
to the macro Factory
|
Modifier and Type | Method and Description |
---|---|
ParseException |
Parser.generateParseException() |
Modifier and Type | Method and Description |
---|---|
void |
Parser.AdditiveExpression() |
void |
Parser.Assignment() |
void |
Parser.Comment() |
void |
Parser.ConditionalAndExpression() |
void |
Parser.ConditionalOrExpression() |
SimpleNode |
Parser.Directive()
Supports the Pluggable Directives
#foo( arg+ )
|
int |
Parser.DirectiveArg()
Supports the arguments for the Pluggable Directives
We add whitespace in here as a token so the VMs can
easily reconstruct a macro body from the token stream
See Directive()
|
void |
Parser.ElseIfStatement() |
void |
Parser.ElseStatement() |
void |
Parser.EqualityExpression() |
void |
Parser.Escape()
Used to catch and process escape sequences in grammatical constructs
as escapes outside of VTL are just characters.
|
void |
Parser.EscapedDirective()
used to separate the notion of a valid directive that has been
escaped, versus something that looks like a directive and
is just schmoo.
|
void |
Parser.Expression() |
void |
Parser.False() |
void |
Parser.Identifier()
This method corresponds to variable
references in Velocity templates.
|
void |
Parser.IfStatement() |
void |
Parser.IntegerRange()
supports the [n..m] vector generator for use in
the #foreach() to generate measured ranges w/o
needing explicit support from the app/servlet
|
private Token |
Parser.jj_consume_token(int kind) |
void |
Parser.Method()
This method has yet to be fully implemented
but will allow arbitrarily nested method
calls
|
void |
Parser.MultiplicativeExpression() |
void |
Parser.NumberLiteral() |
void |
Parser.ObjectArray() |
void |
Parser.Parameter()
This method has yet to be fully implemented
but will allow arbitrarily nested method
calls
|
SimpleNode |
Parser.parse(java.io.Reader reader,
java.lang.String templateName)
This was also added to allow parsers to be
re-usable.
|
void |
Parser.PrimaryExpression() |
SimpleNode |
Parser.process()
This method is what starts the whole parsing
process.
|
void |
Parser.Reference() |
void |
Parser.RelationalExpression() |
void |
Parser.SetDirective()
Currently support both types of set :
#set( expr )
#set expr
|
void |
Parser.Statement()
These are the types of statements that
are acceptable in Velocity templates.
|
void |
Parser.StopStatement()
This method corresponds to the #stop
directive which just simulates and EOF
so that parsing stops.
|
void |
Parser.StringLiteral() |
void |
Parser.Text()
This method is responsible for allowing
all non-grammar text to pass through
unscathed.
|
void |
Parser.True() |
void |
Parser.UnaryExpression() |
void |
Parser.Word() |
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.