Uses of Interface
org.apache.velocity.context.InternalContextAdapter
Package
Description
-
Uses of InternalContextAdapter in org.apache.velocity.app.event
Modifier and TypeMethodDescriptionstatic String
EventHandlerUtil.includeEvent
(RuntimeServices rsvc, InternalContextAdapter context, String includeResourcePath, String currentResourcePath, String directiveName) Called when an include-type directive is encountered (#include or #parse).static Object
EventHandlerUtil.invalidGetMethod
(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object object, String property, Info info) Called when an invalid get method is encountered.static Object
EventHandlerUtil.invalidMethod
(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object object, String method, Info info) Called when an invalid method is encountered.static void
EventHandlerUtil.invalidSetMethod
(RuntimeServices rsvc, InternalContextAdapter context, String leftreference, String rightreference, Info info) Called when an invalid set method is encountered.static Object
EventHandlerUtil.methodException
(RuntimeServices rsvc, InternalContextAdapter context, Class<?> claz, String method, Exception e, Info info) Called when a method exception is generated during Velocity merge.EventCartridge.referenceInsert
(InternalContextAdapter context, String reference, Object value) Call reference insertion handlersstatic Object
EventHandlerUtil.referenceInsert
(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object value) Called before a reference is inserted. -
Uses of InternalContextAdapter in org.apache.velocity.context
Modifier and TypeClassDescriptionclass
This is an abstract internal-use-only context implementation to be used as a subclass for other internal-use-only contexts that wrap other internal-use-only contexts.final class
This adapter class is the container for all context types for internal use.Modifier and TypeFieldDescriptionprotected InternalContextAdapter
ChainedInternalContextAdapter.wrappedContext
the parent contextModifier and TypeMethodDescriptionChainedInternalContextAdapter.getBaseContext()
InternalContextAdapterImpl.getBaseContext()
Returns the base context that we are wrapping.InternalWrapperContext.getBaseContext()
Returns the base full context impl.ModifierConstructorDescriptionCTOR, wraps an ICA -
Uses of InternalContextAdapter in org.apache.velocity.runtime
Modifier and TypeMethodDescriptionboolean
Renderable.render
(InternalContextAdapter context, Writer writer) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.directive
Modifier and TypeMethodDescriptionprotected void
VelocimacroProxy.checkDepth
(InternalContextAdapter context) check that we aren't already at the max call depth and throws a MacroOverflowException if we are there.protected void
Foreach.clean
(InternalContextAdapter context, Object o) protected String
InputBase.getInputEncoding
(InternalContextAdapter context) Decides the encoding used during input processing of this directive.protected Object[]
VelocimacroProxy.handleArgValues
(InternalContextAdapter context, Node node, int callArgNum) Gets the macro argument values and puts them in the context under the argument names.protected String
Block.id
(InternalContextAdapter context) Creates a string identifying the source and location of the block definition, and the current template being rendered if that is different.void
Block.init
(RuntimeServices rs, InternalContextAdapter context, Node node) simple init - get the keyvoid
BlockMacro.init
(RuntimeServices rs, String macroName, InternalContextAdapter context, Node node) Initializes the directive.void
Break.init
(RuntimeServices rs, InternalContextAdapter context, Node node) void
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
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, String name, InternalContextAdapter context, Node node) Initialize the Runtime macro.void
Stop.init
(RuntimeServices rs, InternalContextAdapter context, Node node) protected void
Directive.postRender
(InternalContextAdapter context) This cleans up any scope control for this directive after rendering, assuming the scope control was turned on.protected void
Directive.preRender
(InternalContextAdapter context) This creates and places the scope control for this directive into the context (if scope provision is turned on).protected void
Foreach.put
(InternalContextAdapter context, String key, Object value) Extension hook to allow subclasses to control whether loop vars are set locally or not.boolean
Block.Reference.render
(InternalContextAdapter context, Writer writer) Render the AST of this block into the writer using the context.boolean
Block.render
(InternalContextAdapter context, Writer writer) renders block directiveboolean
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) This directive throws a StopCommand which signals either the nearest Scope or the specified scope to stop rendering its content.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
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) Render the macro AST nodeboolean
VelocimacroProxy.render
(InternalContextAdapter context, Writer writer, Node node, Renderable body) Renders the macro using the context.protected void
Foreach.renderBlock
(InternalContextAdapter context, Writer writer, Node block) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.directive.contrib
Modifier and TypeMethodDescriptionvoid
For.init
(RuntimeServices rs, InternalContextAdapter context, Node node) boolean
For.render
(InternalContextAdapter context, Writer writer, Node node) protected void
For.renderBlock
(InternalContextAdapter context, Writer writer, Node node) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.parser.node
Modifier and TypeMethodDescriptionstatic Object
ASTIndex.adjMinusIndexArg
(Object argument, Object o, InternalContextAdapter context, SimpleNode node) If argument is an Integer and negative, then return (o.size() - argument).boolean
ASTAndNode.evaluate
(InternalContextAdapter context) logical and :boolean
ASTComparisonNode.evaluate
(InternalContextAdapter context) boolean
ASTElseIfStatement.evaluate
(InternalContextAdapter context) An ASTElseStatement is true if the expression it contains evaluates to true.boolean
ASTElseStatement.evaluate
(InternalContextAdapter context) An ASTElseStatement always evaluates to true.boolean
ASTExpression.evaluate
(InternalContextAdapter context) boolean
ASTFalse.evaluate
(InternalContextAdapter context) boolean
ASTFloatingPointLiteral.evaluate
(InternalContextAdapter context) boolean
ASTIntegerLiteral.evaluate
(InternalContextAdapter context) boolean
ASTMap.evaluate
(InternalContextAdapter context) boolean
ASTNegateNode.evaluate
(InternalContextAdapter context) boolean
ASTNENode.evaluate
(InternalContextAdapter context) boolean
ASTNotNode.evaluate
(InternalContextAdapter context) boolean
ASTObjectArray.evaluate
(InternalContextAdapter context) boolean
ASTOrNode.evaluate
(InternalContextAdapter context) the logical or :boolean
ASTReference.evaluate
(InternalContextAdapter context) Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not nullboolean
ASTStringLiteral.evaluate
(InternalContextAdapter context) boolean
ASTTrue.evaluate
(InternalContextAdapter context) boolean
Node.evaluate
(InternalContextAdapter context) boolean
SimpleNode.evaluate
(InternalContextAdapter context) ASTIdentifier.execute
(Object o, InternalContextAdapter context) ASTIndex.execute
(Object o, InternalContextAdapter context) ASTMethod.execute
(Object o, InternalContextAdapter context) invokes the method.ASTReference.execute
(Object o, InternalContextAdapter context) gets an Object that 'is' the value of the referenceNode.execute
(Object o, InternalContextAdapter context) SimpleNode.execute
(Object o, InternalContextAdapter context) protected String
SimpleNode.getLocation
(InternalContextAdapter context) Return a string that tells the current location of this node.ASTReference.getRootVariableValue
(InternalContextAdapter context) protected Object
ASTAddNode.handleSpecial
(Object left, Object right, InternalContextAdapter context) protected Object
ASTMathNode.handleSpecial
(Object left, Object right, InternalContextAdapter context) Extension hook to allow special behavior by subclasses If this method returns a non-null value, that is returned, rather than the result of the math operation.ASTAssignment.init
(InternalContextAdapter context, Object data) ASTBinaryOperator.init
(InternalContextAdapter context, Object data) ASTBlock.init
(InternalContextAdapter context, Object data) ASTComment.init
(InternalContextAdapter context, Object data) We need to make sure we catch any of the dreaded MORE tokens.ASTDirective.init
(InternalContextAdapter context, Object data) ASTDirectiveAssign.init
(InternalContextAdapter context, Object data) ASTElseIfStatement.init
(InternalContextAdapter context, Object data) ASTElseStatement.init
(InternalContextAdapter context, Object data) ASTEscape.init
(InternalContextAdapter context, Object data) ASTEscapedDirective.init
(InternalContextAdapter context, Object data) ASTExpression.init
(InternalContextAdapter context, Object data) ASTFalse.init
(InternalContextAdapter context, Object data) ASTFloatingPointLiteral.init
(InternalContextAdapter context, Object data) Initialization method - doesn't do much but do the object creation.ASTIdentifier.init
(InternalContextAdapter context, Object data) simple init - don't do anything that is context specific.ASTIfStatement.init
(InternalContextAdapter context, Object data) ASTIncludeStatement.init
(InternalContextAdapter context, Object data) ASTIndex.init
(InternalContextAdapter context, Object data) ASTIntegerLiteral.init
(InternalContextAdapter context, Object data) ASTIntegerRange.init
(InternalContextAdapter context, Object data) ASTLogicalOperator.init
(InternalContextAdapter context, Object data) ASTMap.init
(InternalContextAdapter context, Object data) ASTMathNode.init
(InternalContextAdapter context, Object data) ASTMethod.init
(InternalContextAdapter context, Object data) simple init - init our subtree and get what we can from the ASTASTModNode.init
(InternalContextAdapter context, Object data) ASTMulNode.init
(InternalContextAdapter context, Object data) ASTNegateNode.init
(InternalContextAdapter context, Object data) ASTNotNode.init
(InternalContextAdapter context, Object data) ASTObjectArray.init
(InternalContextAdapter context, Object data) ASTprocess.init
(InternalContextAdapter context, Object data) ASTReference.init
(InternalContextAdapter context, Object data) ASTSetDirective.init
(InternalContextAdapter context, Object data) simple init.ASTStringLiteral.init
(InternalContextAdapter context, Object data) init : we don't have to do much.ASTText.init
(InternalContextAdapter context, Object data) ASTTextblock.init
(InternalContextAdapter context, Object data) ASTTrue.init
(InternalContextAdapter context, Object data) ASTVariable.init
(InternalContextAdapter context, Object data) ASTWord.init
(InternalContextAdapter context, Object data) Node.init
(InternalContextAdapter context, Object data) SimpleNode.init
(InternalContextAdapter context, Object data) ASTAddNode.perform
(Number left, Number right, InternalContextAdapter context) ASTDivNode.perform
(Number left, Number right, InternalContextAdapter context) abstract Number
ASTMathNode.perform
(Number left, Number right, InternalContextAdapter context) Performs the math operation represented by this node.ASTModNode.perform
(Number left, Number right, InternalContextAdapter context) ASTMulNode.perform
(Number left, Number right, InternalContextAdapter context) ASTSubtractNode.perform
(Number left, Number right, InternalContextAdapter context) void
ASTIfStatement.process
(InternalContextAdapter context, StandardParserVisitor visitor) boolean
ASTBlock.render
(InternalContextAdapter context, Writer writer) boolean
ASTComment.render
(InternalContextAdapter context, Writer writer) boolean
ASTDirective.render
(InternalContextAdapter context, Writer writer) boolean
ASTElseIfStatement.render
(InternalContextAdapter context, Writer writer) boolean
ASTEscape.render
(InternalContextAdapter context, Writer writer) boolean
ASTEscapedDirective.render
(InternalContextAdapter context, Writer writer) boolean
ASTIfStatement.render
(InternalContextAdapter context, Writer writer) boolean
ASTReference.render
(InternalContextAdapter context, Writer writer) gets the value of the reference and outputs it to the writer.boolean
ASTSetDirective.render
(InternalContextAdapter context, Writer writer) puts the value of the RHS into the context under the key of the LHSboolean
ASTText.render
(InternalContextAdapter context, Writer writer) boolean
ASTTextblock.render
(InternalContextAdapter context, Writer writer) boolean
Node.render
(InternalContextAdapter context, Writer writer) boolean
SimpleNode.render
(InternalContextAdapter context, Writer writer) boolean
ASTReference.setValue
(InternalContextAdapter context, Object value) Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference()ASTAndNode.value
(InternalContextAdapter context) Returns the value of the expression.ASTComparisonNode.value
(InternalContextAdapter context) ASTExpression.value
(InternalContextAdapter context) ASTFalse.value
(InternalContextAdapter context) ASTFloatingPointLiteral.value
(InternalContextAdapter context) ASTIntegerLiteral.value
(InternalContextAdapter context) ASTIntegerRange.value
(InternalContextAdapter context) does the real work.ASTMap.value
(InternalContextAdapter context) ASTMathNode.value
(InternalContextAdapter context) gets the two args and performs the operation on themASTNegateNode.value
(InternalContextAdapter context) ASTNotNode.value
(InternalContextAdapter context) ASTObjectArray.value
(InternalContextAdapter context) ASTOrNode.value
(InternalContextAdapter context) Returns the value of the expression.ASTReference.value
(InternalContextAdapter context) ASTStringLiteral.value
(InternalContextAdapter context) renders the value of the string literal If the properties allow, and the string literal contains a $ or a # the literal is rendered against the context Otherwise, the stringlit is returned.ASTTrue.value
(InternalContextAdapter context) Node.value
(InternalContextAdapter context) SimpleNode.value
(InternalContextAdapter context) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.visitor
Modifier and TypeFieldDescriptionprotected InternalContextAdapter
BaseVisitor.context
Context used during traversal -
Uses of InternalContextAdapter in org.apache.velocity.util
Modifier and TypeMethodDescriptionstatic VelMethod
ClassUtils.getMethod
(String methodName, Object[] params, Class<?>[] paramClasses, Object o, InternalContextAdapter context, SimpleNode node, boolean strictRef) Lookup a VelMethod object given the method signature that is specified in the passed in parameters.