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 TypeMethodDescriptionvoidProxyVMContext.addVMProxyArg(InternalContextAdapter context, String macroArgumentName, String literalMacroArgumentName, Node argumentValue) Used to put Velocity macro arguments into this context.private booleanProxyVMContext.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 TypeMethodDescriptionbooleanRuntimeInstance.addVelocimacro(String name, Node macro, String[] argArray, String sourceTemplate) Adds a new Velocimacro.booleanRuntimeServices.addVelocimacro(String name, Node macro, String[] argArray, String sourceTemplate) Adds a new Velocimacro.static booleanRuntimeSingleton.addVelocimacro(String name, Node macro, String[] argArray, String sourceTemplate) Adds a new Velocimacro.booleanVelocimacroFactory.addVelocimacro(String name, Node macroBody, String[] argArray, String sourceTemplate) Adds a macro to the factory.booleanVelocimacroManager.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 NodeModifierConstructorDescriptionprivateMacroEntry(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 NodeBlock.blockprivate NodeRuntimeMacro.nodeNode of the macro callMethods in org.apache.velocity.runtime.directive with parameters of type NodeModifier and TypeMethodDescriptionprivate StringVelocimacroProxy.buildErrorMsg(Node node, int numArgsProvided) Build an error message for not providing the correct number of argumentsstatic voidMacro.checkArgs(RuntimeServices rs, Token t, Node node, String sourceTemplate) Used by Parser.java to do further parameter checking for macro arguments.voidVelocimacroProxy.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).voidBlock.init(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - get the keyvoidBlockMacro.init(RuntimeServices rs, InternalContextAdapter context, Node node) Initializes the directive.voidBreak.init(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - init the tree and get the elementKey from the ASTvoidDefine.init(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - get the keyvoidDirective.init(RuntimeServices rs, InternalContextAdapter context, Node node) How this directive is to be initialized.voidEvaluate.init(RuntimeServices rs, InternalContextAdapter context, Node node) Initialize and check arguments.voidForeach.init(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - init the tree and get the elementKey from the ASTvoidInclude.init(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - init the tree and get the elementKey from the ASTvoidLiteral.init(RuntimeServices rs, InternalContextAdapter context, Node node) Deprecated.Store the literal rendition of a node using the Node.literal().voidMacro.init(RuntimeServices rs, InternalContextAdapter context, Node node) voidParse.init(RuntimeServices rs, InternalContextAdapter context, Node node) Init's the #parse directive.voidRuntimeMacro.init(RuntimeServices rs, InternalContextAdapter context, Node node) Intialize the Runtime macro.voidStop.init(RuntimeServices rs, InternalContextAdapter context, Node node) booleanBlockMacro.render(InternalContextAdapter context, Writer writer, Node node) Renders content using the selected macro and the passed AST body.booleanBreak.render(InternalContextAdapter context, Writer writer, Node node) Break directive does not actually do any rendering.booleanDefine.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 booleanDirective.render(InternalContextAdapter context, Writer writer, Node node) How this directive is to be renderedbooleanEvaluate.render(InternalContextAdapter context, Writer writer, Node node) Evaluate the argument, convert to a String, and evaluate again (with the same context).booleanForeach.render(InternalContextAdapter context, Writer writer, Node node) renders the #foreach() blockbooleanInclude.render(InternalContextAdapter context, Writer writer, Node node) iterates through the argument list and renders every argument that is appropriate.booleanLiteral.render(InternalContextAdapter context, Writer writer, Node node) Deprecated.Throw the literal rendition of the block between #literal()/#end into the writer.booleanMacro.render(InternalContextAdapter context, Writer writer, Node node) render() doesn't do anything in the final output rendering.booleanParse.render(InternalContextAdapter context, Writer writer, Node node) iterates through the argument list and renders every argument that is appropriate.booleanRuntimeMacro.render(InternalContextAdapter context, Writer writer, Node node) Velocimacro implementation is not known at the init time.booleanRuntimeMacro.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.booleanStop.render(InternalContextAdapter context, Writer writer, Node node) booleanVelocimacroProxy.render(InternalContextAdapter context, Writer writer, Node node) booleanVelocimacroProxy.render(InternalContextAdapter context, Writer writer, Node node, Renderable body) Renders the macro using the context.private booleanInclude.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 StringLog.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 TypeMethodDescriptionvoidJJTParserState.clearNodeScope(Node n) voidJJTParserState.closeNodeScope(Node n, boolean condition) voidJJTParserState.closeNodeScope(Node n, int num) voidJJTParserState.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 TypeClassDescriptionclassHandles number addition of nodes.
Please look at the Parser.jjt file which is what controls the generation of this class.classPlease look at the Parser.jjt file which is what controls the generation of this class.classclassclassRepresents all comments...classThis class is responsible for handling the pluggable directives in VTL.classHandles number division of nodes
Please look at the Parser.jjt file which is what controls the generation of this class.classThis class is responsible for handling the ElseIf VTL control statement.classThis class is responsible for handling the Else VTL control statement.classHandlesarg1 == arg2This operator requires that the LHS and RHS are both of the same Class OR both are subclasses of java.lang.NumberclassThis class is responsible for handling Escapes in VTL.classThis class is responsible for handling EscapedDirectives in VTL.classclassclassHandles floating point numbers.classHandles 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.classHandles 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.classASTIdentifier.java Method support for identifiers : $foo mainly used by ASTRefrence Introspection is now moved to 'just in time' or at render / execution time.classclassclassThis node is responsible for the bracket notation at the end of a reference, e.g., $foo[1]classHandles integer numbers.classhandles the range 'operator' [ n ..classHandles 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.classHandles 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.classAST Node for creating a map / dictionary.classHelps handle math
Please look at the Parser.jjt file which is what controls the generation of this class.classASTMethod.java Method support for references : $foo.method() NOTE : introspection is now done at render time.classHandles modulus division
Please look at the Parser.jjt file which is what controls the generation of this class.classHandles multiplication
Please look at the Parser.jjt file which is what controls the generation of this class.classHandlesarg1 != arg2This operator requires that the LHS and RHS are both of the same Class OR both are subclasses of java.lang.NumberclassclassclassPlease look at the Parser.jjt file which is what controls the generation of this class.classclassclassThis class is responsible for handling the references in VTL ($foo).classNode for the #set directiveclassASTStringLiteral support.classHandles subtraction of nodes (in #set() )
Please look at the Parser.jjt file which is what controls the generation of this class.classclassThis node holds the "Textblock" data which should not be interpreted by Velocity.classclassclassclassFields in org.apache.velocity.runtime.parser.node declared as NodeModifier and TypeFieldDescriptionprotected Node[]SimpleNode.childrenprotected NodeSimpleNode.parentprivate NodeASTSetDirective.rightMethods in org.apache.velocity.runtime.parser.node that return NodeModifier and TypeMethodDescriptionprivate NodeASTSetDirective.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 TypeMethodDescriptionvoidASTStringLiteral.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.voidNode.jjtAddChild(Node n, int i) This method tells the node to add its argument to the node's list of children.voidSimpleNode.jjtAddChild(Node n, int i) voidNode.jjtSetParent(Node n) This pair of methods are used to inform the node of its parent.voidSimpleNode.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