|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of Node in org.apache.velocity.runtime.directive |
---|
Methods in org.apache.velocity.runtime.directive with parameters of type Node | |
---|---|
private java.lang.String[] |
VelocimacroProxy.getArgArray(Node node)
gets the args to the VM from the instance-use AST |
private static java.lang.String[] |
Macro.getArgArray(Node node)
creates an array containing the literal strings in the macro arguement |
private static java.util.List |
Macro.getASTAsStringArray(Node rootNode)
Returns an array of the literal rep of the AST |
void |
Directive.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
How this directive is to be initialized. |
void |
VelocimacroProxy.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
The major meat of VelocimacroProxy, init() checks the # of arguments, patches the macro body, renders the macro into an AST, and then inits the AST, so it is ready for quick rendering. |
void |
Include.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - init the tree and get the elementKey from the AST |
void |
Foreach.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - init the tree and get the elementKey from the AST |
void |
Macro.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
|
void |
Literal.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
Store the literal rendition of a node using the Node.literal(). |
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 |
boolean |
Parse.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every argument that is appropriate. |
abstract boolean |
Directive.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
How this directive is to be rendered |
boolean |
VelocimacroProxy.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
Renders the macro using the context |
boolean |
Include.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every argument that is appropriate. |
boolean |
Foreach.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
renders the #foreach() block |
boolean |
Macro.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
render() doesn't do anything in the final output rendering. |
boolean |
Literal.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
Throw the literal rendition of the block between #literal()/#end into the writer. |
private boolean |
Include.renderOutput(Node node,
InternalContextAdapter context,
java.io.Writer writer)
does the actual rendering of the included file |
Uses of Node in org.apache.velocity.runtime.exception |
---|
Constructors in org.apache.velocity.runtime.exception with parameters of type Node | |
---|---|
NodeException(java.lang.String exceptionMessage,
Node node)
|
|
ReferenceException(java.lang.String exceptionMessage,
Node node)
|
Uses of Node in org.apache.velocity.runtime.parser |
---|
Methods in org.apache.velocity.runtime.parser that return Node | |
---|---|
(package private) Node |
JJTParserState.peekNode()
|
(package private) Node |
JJTParserState.popNode()
|
(package private) Node |
JJTParserState.rootNode()
|
Methods in org.apache.velocity.runtime.parser with parameters of type Node | |
---|---|
(package private) void |
JJTParserState.clearNodeScope(Node n)
|
(package private) void |
JJTParserState.closeNodeScope(Node n,
boolean condition)
|
(package private) void |
JJTParserState.closeNodeScope(Node n,
int num)
|
(package private) void |
JJTParserState.openNodeScope(Node n)
|
(package private) void |
JJTParserState.pushNode(Node n)
|
Uses of Node in org.apache.velocity.runtime.parser.node |
---|
Classes in org.apache.velocity.runtime.parser.node that implement Node | |
---|---|
class |
ASTAddNode
|
class |
|