Uses of Interface
org.apache.velocity.runtime.parser.node.Node
Packages that use Node
Package
Description
-
Uses of Node in org.apache.velocity.context
Methods in org.apache.velocity.context with parameters of type NodeModifier and TypeMethodDescriptionvoid
ProxyVMContext.addVMProxyArg
(InternalContextAdapter context, String macroArgumentName, String literalMacroArgumentName, Node argumentValue) Used to put Velocity macro arguments into this context.private boolean
ProxyVMContext.isConstant
(Node node) AST nodes that are considered constants can be directly saved into the context. -
Uses of Node in org.apache.velocity.runtime
Methods in org.apache.velocity.runtime with parameters of type NodeModifier and TypeMethodDescriptionboolean
RuntimeInstance.addVelocimacro
(String name, Node macro, String[] argArray, String sourceTemplate) Adds a new Velocimacro.boolean
RuntimeServices.addVelocimacro
(String name, Node macro, String[] argArray, String sourceTemplate) Adds a new Velocimacro.static boolean
RuntimeSingleton.addVelocimacro
(String name, Node macro, String[] argArray, String sourceTemplate) Adds a new Velocimacro.boolean
VelocimacroFactory.addVelocimacro
(String name, Node macroBody, String[] argArray, String sourceTemplate) Adds a macro to the factory.boolean
VelocimacroManager.addVM
(String vmName, Node macroBody, String[] argArray, String namespace, boolean canReplaceGlobalMacro) Adds a VM definition to the cache.Constructors in org.apache.velocity.runtime with parameters of type NodeModifierConstructorDescriptionprivate
MacroEntry
(String vmName, Node macro, String[] argArray, String sourceTemplate, RuntimeServices rsvc) -
Uses of Node in org.apache.velocity.runtime.directive
Fields in org.apache.velocity.runtime.directive declared as NodeModifier and TypeFieldDescriptionprotected Node
Block.block
private Node
RuntimeMacro.node
Node of the macro callMethods in org.apache.velocity.runtime.directive with parameters of type NodeModifier and TypeMethodDescriptionprivate String
VelocimacroProxy.buildErrorMsg
(Node node, int numArgsProvided) Build an error message for not providing the correct number of argumentsstatic void
Macro.checkArgs
(RuntimeServices rs, Token t, Node node, String sourceTemplate) Used by Parser.java to do further parameter checking for macro arguments.void
VelocimacroProxy.checkArgs
(InternalContextAdapter context, Node node, boolean hasBody) check if we are calling this macro with the right number of arguments.private static String[]
Macro.getArgArray
(Node node, RuntimeServices rsvc) Creates an array containing the literal text from the macro arguement(s) (including the macro's name as the first arg).void
Block.init
(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - get the keyvoid
BlockMacro.init
(RuntimeServices rs, InternalContextAdapter context, Node node) Initializes the directive.void
Break.init
(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - init the tree and get the elementKey from the ASTvoid
Define.init
(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - get the keyvoid
Directive.init
(RuntimeServices rs, InternalContextAdapter context, Node node) How this directive is to be initialized.void
Evaluate.init
(RuntimeServices rs, InternalContextAdapter context, Node node) Initialize and check arguments.void
Foreach.init
(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - init the tree and get the elementKey from the ASTvoid
Include.init
(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - init the tree and get the elementKey from the ASTvoid
Literal.init
(RuntimeServices rs, InternalContextAdapter context, Node node) Deprecated.Store the literal rendition of a node using the Node.literal().void
Macro.init
(RuntimeServices rs, InternalContextAdapter context, Node node) void
Parse.init
(RuntimeServices rs, InternalContextAdapter context, Node node) Init's the #parse directive.void
RuntimeMacro.init
(RuntimeServices rs, InternalContextAdapter context, Node node) Intialize the Runtime macro.void
Stop.init
(RuntimeServices rs, InternalContextAdapter context, Node node) boolean
BlockMacro.render
(InternalContextAdapter context, Writer writer, Node node) Renders content using the selected macro and the passed AST body.boolean
Break.render
(InternalContextAdapter context, Writer writer, Node node) Break directive does not actually do any rendering.boolean
Define.render
(InternalContextAdapter context, Writer writer, Node node) directive.render() simply makes an instance of the Block inner class and places it into the context as indicated.abstract boolean
Directive.render
(InternalContextAdapter context, Writer writer, Node node) How this directive is to be renderedboolean
Evaluate.render
(InternalContextAdapter context, Writer writer, Node node) Evaluate the argument, convert to a String, and evaluate again (with the same context).boolean
Foreach.render
(InternalContextAdapter context, Writer writer, Node node) renders the #foreach() blockboolean
Include.render
(InternalContextAdapter context, Writer writer, Node node) iterates through the argument list and renders every argument that is appropriate.boolean
Literal.render
(InternalContextAdapter context, Writer writer, Node node) Deprecated.Throw the literal rendition of the block between #literal()/#end into the writer.boolean
Macro.render
(InternalContextAdapter context, Writer writer, Node node) render() doesn't do anything in the final output rendering.boolean
Parse.render
(InternalContextAdapter context, Writer writer, Node node) iterates through the argument list and renders every argument that is appropriate.boolean
RuntimeMacro.render
(InternalContextAdapter context, Writer writer, Node node) Velocimacro implementation is not known at the init time.boolean
RuntimeMacro.render
(InternalContextAdapter context, Writer writer, Node node, Renderable body) This method is used with BlockMacro when we want to render a macro with a body AST.boolean
Stop.render
(InternalContextAdapter context, Writer writer, Node node) boolean
VelocimacroProxy.render
(InternalContextAdapter context, Writer writer, Node node) boolean
VelocimacroProxy.render
(InternalContextAdapter context, Writer writer, Node node, Renderable body) Renders the macro using the context.private boolean
Include.renderOutput
(Node node, InternalContextAdapter context, Writer writer) does the actual rendering of the included file -
Uses of Node in org.apache.velocity.runtime.log
Methods in org.apache.velocity.runtime.log with parameters of type NodeModifier and TypeMethodDescriptionstatic final String
Log.formatFileString
(Node node) Creates a string that formats the template filename with line number and column of the given Node. -
Uses of Node in org.apache.velocity.runtime.parser
Methods in org.apache.velocity.runtime.parser that return NodeModifier and TypeMethodDescriptionJJTParserState.peekNode()
JJTParserState.popNode()
JJTParserState.rootNode()
Methods in org.apache.velocity.runtime.parser with parameters of type NodeModifier and TypeMethodDescriptionvoid
JJTParserState.clearNodeScope
(Node n) void
JJTParserState.closeNodeScope
(Node n, boolean condition) void
JJTParserState.closeNodeScope
(Node n, int num) void
JJTParserState.openNodeScope
(Node n) void
-
Uses of Node in org.apache.velocity.runtime.parser.node
Classes in org.apache.velocity.runtime.parser.node that implement NodeModifier and TypeClassDescriptionclass
Handles number addition of nodes.
Please look at the Parser.jjt file which is what controls the generation of this class.class
Please look at the Parser.jjt file which is what controls the generation of this class.class
class
class
Represents all comments...class
This class is responsible for handling the pluggable directives in VTL.class
Handles number division of nodes
Please look at the Parser.jjt file which is what controls the generation of this class.class
This class is responsible for handling the ElseIf VTL control statement.class
This class is responsible for handling the Else VTL control statement.class
Handlesarg1 == arg2
This operator requires that the LHS and RHS are both of the same Class OR both are subclasses of java.lang.Numberclass
This class is responsible for handling Escapes in VTL.class
This class is responsible for handling EscapedDirectives in VTL.class
class
class
Handles floating point numbers.class
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
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.java Method support for identifiers : $foo mainly used by ASTRefrence Introspection is now moved to 'just in time' or at render / execution time.class
class
class
This node is responsible for the bracket notation at the end of a reference, e.g., $foo[1]class
Handles integer numbers.class
handles the range 'operator' [ n ..class
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
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
AST Node for creating a map / dictionary.class
Helps handle math
Please look at the Parser.jjt file which is what controls the generation of this class.class
ASTMethod.java Method support for references : $foo.method() NOTE : introspection is now done at render time.class
Handles modulus division
Please look at the Parser.jjt file which is what controls the generation of this class.class
Handles multiplication
Please look at the Parser.jjt file which is what controls the generation of this class.class
Handlesarg1 != arg2
This operator requires that the LHS and RHS are both of the same Class OR both are subclasses of java.lang.Numberclass
class
class
Please look at the Parser.jjt file which is what controls the generation of this class.class
class
class
This class is responsible for handling the references in VTL ($foo).class
Node for the #set directiveclass
ASTStringLiteral support.class
Handles subtraction of nodes (in #set() )
Please look at the Parser.jjt file which is what controls the generation of this class.class
class
This node holds the "Textblock" data which should not be interpreted by Velocity.class
class
class
class
Fields in org.apache.velocity.runtime.parser.node declared as NodeModifier and TypeFieldDescriptionprotected Node[]
SimpleNode.children
protected Node
SimpleNode.parent
private Node
ASTSetDirective.right
Methods in org.apache.velocity.runtime.parser.node that return NodeModifier and TypeMethodDescriptionprivate Node
ASTSetDirective.getRightHandSide()
returns the RHS Node of the set statementNode.jjtGetChild
(int i) This method returns a child node.SimpleNode.jjtGetChild
(int i) Node.jjtGetParent()
SimpleNode.jjtGetParent()
Methods in org.apache.velocity.runtime.parser.node with parameters of type NodeModifier and TypeMethodDescriptionvoid
ASTStringLiteral.adjTokenLineNums
(Node node) Adjust all the line and column numbers that comprise a node so that they are corrected for the string literals position within the template file.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) -
Uses of Node in org.apache.velocity.runtime.visitor
Methods in org.apache.velocity.runtime.visitor with parameters of type Node -
Uses of Node in org.apache.velocity.util.introspection
Constructors in org.apache.velocity.util.introspection with parameters of type Node