org.apache.velocity.runtime.directive |
|
Java Source File Name | Type | Comment |
Directive.java | Class | Base class for all directives used in Velocity. |
DirectiveConstants.java | Interface | Base class for all directives used in Velocity. |
Foreach.java | Class | Foreach directive used for moving through arrays,
or objects that provide an Iterator. |
Include.java | Class | Pluggable directive that handles the #include() statement in VTL.
This #include() can take multiple arguments of either
StringLiteral or Reference.
Notes:
- For security reasons, the included source material can only come
from somewhere within the template root tree.
|
InputBase.java | Class | Base class for directives which do input operations
(e.g. |
Literal.java | Class | A very simple directive that leverages the Node.literal()
to grab the literal rendition of a node. |
Macro.java | Class | Macro.java
Macro implements the macro definition directive of VTL.
example :
#macro( isnull $i )
#if( $i )
$i
#end
#end
This object is used at parse time to mainly process and register the
macro. |
MacroParseException.java | Class | Exception to indicate problem happened while constructing #macro()
For internal use in parser - not to be passed to app level
author: Geir Magnusson Jr. author: Henning P. |
Parse.java | Class | Pluggable directive that handles the #parse()
statement in VTL.
Notes:
-----
1) The parsed source material can only come from somewhere in
the TemplateRoot tree for security reasons. |
VelocimacroProxy.java | Class | |
VMProxyArg.java | Class | The function of this class is to proxy for the calling parameter to the VM.
This class is designed to be used in conjunction with the VMContext class
which knows how to get and set values via it, rather than a simple get()
or put() from a hashtable-like object.
There is probably a lot of undocumented subtlty here, so step lightly.
We rely on the observation that an instance of this object has a constant
state throughout its lifetime as it's bound to the use-instance of a VM.
In other words, it's created by the VelocimacroProxy class, to represent
one of the arguments to a VM in a specific template. |