|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Node | |
---|---|
org.apache.velocity.runtime.directive | |
org.apache.velocity.runtime.parser.node |
Uses of Node in org.apache.velocity.runtime.directive |
---|
Methods in org.apache.velocity.runtime.directive with parameters of type Node | |
---|---|
void |
Foreach.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - init the tree and get the elementKey from the AST |
void |
Include.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
simple init - init the tree and get the elementKey from the AST |
void |
Directive.init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
How this directive is to be initialized. |
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(). |
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. |
static void |
Macro.processAndRegister(RuntimeServices rs,
Token t,
Node node,
String sourceTemplate)
Used by Parser.java to process VMs during the parsing process. |
boolean |
Foreach.render(InternalContextAdapter context,
Writer writer,
Node node)
renders the #foreach() block |
boolean |
Include.render(InternalContextAdapter context,
Writer writer,
Node node)
iterates through the argument list and renders every argument that is appropriate. |
boolean |
Parse.render(InternalContextAdapter context,
Writer writer,
Node node)
iterates through the argument list and renders every argument that is appropriate. |
abstract boolean |
Directive.render(InternalContextAdapter context,
Writer writer,
Node node)
How this directive is to be rendered |
boolean |
Macro.render(InternalContextAdapter context,
Writer writer,
Node node)
render() doesn't do anything in the final output rendering. |
boolean |
Literal.render(InternalContextAdapter context,
Writer writer,
Node node)
Throw the literal rendition of the block between #literal()/#end into the writer. |
boolean |
VelocimacroProxy.render(InternalContextAdapter context,
Writer writer,
Node node)
Renders the macro using the context |
Uses of Node in org.apache.velocity.runtime.parser.node |
---|
Classes in org.apache.velocity.runtime.parser.node that implement Node | |
---|---|
class |
ASTAddNode
|
class |
ASTAndNode
Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTAssignment
|
class |
ASTBlock
|
class |
ASTComment
Represents all comments... |
class |
ASTDirective
This class is responsible for handling the pluggable directives in VTL. |
class |
ASTDivNode
Handles number division of nodes Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTElseIfStatement
This class is responsible for handling the ElseIf VTL control statement. |
class |
ASTElseStatement
This class is responsible for handling the Else VTL control statement. |
class |
ASTEQNode
Handles arg1 == arg2
This operator requires that the LHS and RHS are both of the
same Class OR both are subclasses of java.lang.Number |
class |
ASTEscape
This class is responsible for handling Escapes in VTL. |
class |
ASTEscapedDirective
This class is responsible for handling EscapedDirectives in VTL. |
class |
ASTExpression
|
class |
ASTFalse
|
class |
ASTFloatingPointLiteral
Handles floating point numbers. |
class |
ASTGENode
Handles arg1 >= arg2 Only subclasses of Number can be compared. Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTGTNode
Handles arg1 > arg2 Only subclasses of Number can be compared. Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTIdentifier
ASTIdentifier.java Method support for identifiers : $foo mainly used by ASTRefrence Introspection is now moved to 'just in time' or at render / execution time. |
class |
ASTIfStatement
|
class |
ASTIncludeStatement
|
class |
ASTIntegerLiteral
Handles integer numbers. |
class |
ASTIntegerRange
handles the range 'operator' [ n .. |
class |
ASTLENode
Handles arg1 <= arg2 Only subclasses of Number can be compared. Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTLTNode
Handles arg1 < arg2 Only subclasses of Number can be compared. Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTMap
AST Node for creating a map / dictionary. |
class |
ASTMethod
ASTMethod.java Method support for references : $foo.method() NOTE : introspection is now done at render time. |
class |
ASTModNode
|
class |
ASTMulNode
Handles multiplication Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTNENode
Handles arg1 != arg2
This operator requires that the LHS and RHS are both of the
same Class OR both are subclasses of java.lang.Number |
class |
ASTNotNode
|
class |
ASTObjectArray
|
class |
ASTOrNode
Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTParameters
|
class |
ASTprocess
|
class |
ASTReference
This class is responsible for handling the references in VTL ($foo). |
class |
ASTSetDirective
Node for the #set directive |
class |
ASTStop
This class is responsible for handling the #stop directive Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTStringLiteral
ASTStringLiteral support. |
class |
ASTSubtractNode
Handles subtraction of nodes (in #set() ) Please look at the Parser.jjt file which is what controls the generation of this class. |
class |
ASTText
|
class |
ASTTrue
|
class |
ASTVariable
|
class |
ASTWord
|
class |
SimpleNode
|
Fields in org.apache.velocity.runtime.parser.node declared as Node | |
---|---|
protected Node[] |
SimpleNode.children
|
protected Node |
SimpleNode.parent
|
Methods in org.apache.velocity.runtime.parser.node that return Node | |
---|---|
Node |
Node.jjtGetChild(int i)
This method returns a child node. |
Node |
SimpleNode.jjtGetChild(int i)
|
Node |
Node.jjtGetParent()
|
Node |
SimpleNode.jjtGetParent()
|
Methods in org.apache.velocity.runtime.parser.node with parameters of type Node | |
---|---|
void |
Node.jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of children. |
void |
SimpleNode.jjtAddChild(Node n,
int i)
|
void |
Node.jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent. |
void |
SimpleNode.jjtSetParent(Node n)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |