Uses of Interface
org.apache.velocity.context.InternalContextAdapter
-
-
Uses of InternalContextAdapter in org.apache.velocity.app.event
Methods in org.apache.velocity.app.event with parameters of type InternalContextAdapter Modifier and Type Method Description static StringEventHandlerUtil. includeEvent(RuntimeServices rsvc, InternalContextAdapter context, String includeResourcePath, String currentResourcePath, String directiveName)Called when an include-type directive is encountered (#include or #parse).static ObjectEventHandlerUtil. invalidGetMethod(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object object, String property, Info info)Called when an invalid get method is encountered.static ObjectEventHandlerUtil. invalidMethod(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object object, String method, Info info)Called when an invalid method is encountered.static voidEventHandlerUtil. invalidSetMethod(RuntimeServices rsvc, InternalContextAdapter context, String leftreference, String rightreference, Info info)Called when an invalid set method is encountered.static ObjectEventHandlerUtil. methodException(RuntimeServices rsvc, InternalContextAdapter context, Class<?> claz, String method, Exception e, Info info)Called when a method exception is generated during Velocity merge.ObjectEventCartridge. referenceInsert(InternalContextAdapter context, String reference, Object value)Call reference insertion handlersstatic ObjectEventHandlerUtil. referenceInsert(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object value)Called before a reference is inserted. -
Uses of InternalContextAdapter in org.apache.velocity.context
Classes in org.apache.velocity.context that implement InternalContextAdapter Modifier and Type Class Description classChainedInternalContextAdapterThis 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.classInternalContextAdapterImplThis adapter class is the container for all context types for internal use.Fields in org.apache.velocity.context declared as InternalContextAdapter Modifier and Type Field Description protected InternalContextAdapterChainedInternalContextAdapter. wrappedContextthe parent contextMethods in org.apache.velocity.context that return InternalContextAdapter Modifier and Type Method Description InternalContextAdapterChainedInternalContextAdapter. getBaseContext()InternalContextAdapterInternalContextAdapterImpl. getBaseContext()Returns the base context that we are wrapping.InternalContextAdapterInternalWrapperContext. getBaseContext()Returns the base full context impl.Constructors in org.apache.velocity.context with parameters of type InternalContextAdapter Constructor Description ChainedInternalContextAdapter(InternalContextAdapter inner)CTOR, wraps an ICA -
Uses of InternalContextAdapter in org.apache.velocity.runtime
Methods in org.apache.velocity.runtime with parameters of type InternalContextAdapter Modifier and Type Method Description booleanRenderable. render(InternalContextAdapter context, Writer writer) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.directive
Methods in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter Modifier and Type Method Description protected voidVelocimacroProxy. checkDepth(InternalContextAdapter context)check that we aren't already at the max call depth and throws a MacroOverflowException if we are there.protected voidForeach. clean(InternalContextAdapter context, Object o)protected StringInputBase. 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 StringBlock. 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.voidBlock. init(RuntimeServices rs, InternalContextAdapter context, Node node)simple init - get the keyvoidBlockMacro. init(RuntimeServices rs, String macroName, InternalContextAdapter context, Node node)Initializes the directive.voidBreak. init(RuntimeServices rs, InternalContextAdapter context, Node node)voidDefine. 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 ASTvoidMacro. init(RuntimeServices rs, InternalContextAdapter context, Node node)voidParse. init(RuntimeServices rs, InternalContextAdapter context, Node node)Init's the #parse directive.voidRuntimeMacro. init(RuntimeServices rs, String name, InternalContextAdapter context, Node node)Initialize the Runtime macro.voidStop. init(RuntimeServices rs, InternalContextAdapter context, Node node)protected voidDirective. postRender(InternalContextAdapter context)This cleans up any scope control for this directive after rendering, assuming the scope control was turned on.protected voidDirective. preRender(InternalContextAdapter context)This creates and places the scope control for this directive into the context (if scope provision is turned on).protected voidForeach. put(InternalContextAdapter context, String key, Object value)Extension hook to allow subclasses to control whether loop vars are set locally or not.booleanBlock.Reference. render(InternalContextAdapter context, Writer writer)Render the AST of this block into the writer using the context.booleanBlock. render(InternalContextAdapter context, Writer writer)renders block directivebooleanBlockMacro. 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)This directive throws a StopCommand which signals either the nearest Scope or the specified scope to stop rendering its content.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.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)Render the macro AST nodebooleanVelocimacroProxy. render(InternalContextAdapter context, Writer writer, Node node, Renderable body)Renders the macro using the context.protected voidForeach. renderBlock(InternalContextAdapter context, Writer writer, Node block)Constructors in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter Constructor Description Reference(InternalContextAdapter context, Block parent) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.directive.contrib
Methods in org.apache.velocity.runtime.directive.contrib with parameters of type InternalContextAdapter Modifier and Type Method Description voidFor. init(RuntimeServices rs, InternalContextAdapter context, Node node)booleanFor. render(InternalContextAdapter context, Writer writer, Node node)protected voidFor. renderBlock(InternalContextAdapter context, Writer writer, Node node) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.parser.node
Methods in org.apache.velocity.runtime.parser.node with parameters of type InternalContextAdapter Modifier and Type Method Description static ObjectASTIndex. adjMinusIndexArg(Object argument, Object o, InternalContextAdapter context, SimpleNode node)If argument is an Integer and negative, then return (o.size() - argument).booleanASTAndNode. evaluate(InternalContextAdapter context)logical and :booleanASTComparisonNode. evaluate(InternalContextAdapter context)booleanASTElseIfStatement. evaluate(InternalContextAdapter context)An ASTElseStatement is true if the expression it contains evaluates to true.booleanASTElseStatement. evaluate(InternalContextAdapter context)An ASTElseStatement always evaluates to true.booleanASTExpression. evaluate(InternalContextAdapter context)booleanASTFalse. evaluate(InternalContextAdapter context)booleanASTFloatingPointLiteral. evaluate(InternalContextAdapter context)booleanASTIntegerLiteral. evaluate(InternalContextAdapter context)booleanASTMap. evaluate(InternalContextAdapter context)booleanASTNegateNode. evaluate(InternalContextAdapter context)booleanASTNENode. evaluate(InternalContextAdapter context)booleanASTNotNode. evaluate(InternalContextAdapter context)booleanASTObjectArray. evaluate(InternalContextAdapter context)booleanASTOrNode. evaluate(InternalContextAdapter context)the logical or :booleanASTReference. evaluate(InternalContextAdapter context)Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not nullbooleanASTStringLiteral. evaluate(InternalContextAdapter context)booleanASTTrue. evaluate(InternalContextAdapter context)booleanNode. evaluate(InternalContextAdapter context)booleanSimpleNode. evaluate(InternalContextAdapter context)ObjectASTIdentifier. execute(Object o, InternalContextAdapter context)ObjectASTIndex. execute(Object o, InternalContextAdapter context)ObjectASTMethod. execute(Object o, InternalContextAdapter context)invokes the method.ObjectASTReference. execute(Object o, InternalContextAdapter context)gets an Object that 'is' the value of the referenceObjectNode. execute(Object o, InternalContextAdapter context)ObjectSimpleNode. execute(Object o, InternalContextAdapter context)protected StringSimpleNode. getLocation(InternalContextAdapter context)Return a string that tells the current location of this node.ObjectASTReference. getRootVariableValue(InternalContextAdapter context)protected ObjectASTAddNode. handleSpecial(Object left, Object right, InternalContextAdapter context)protected ObjectASTMathNode. 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.ObjectASTAssignment. init(InternalContextAdapter context, Object data)ObjectASTBinaryOperator. init(InternalContextAdapter context, Object data)ObjectASTBlock. init(InternalContextAdapter context, Object data)ObjectASTComment. init(InternalContextAdapter context, Object data)We need to make sure we catch any of the dreaded MORE tokens.ObjectASTDirective. init(InternalContextAdapter context, Object data)ObjectASTDirectiveAssign. init(InternalContextAdapter context, Object data)ObjectASTElseIfStatement. init(InternalContextAdapter context, Object data)ObjectASTElseStatement. init(InternalContextAdapter context, Object data)ObjectASTEscape. init(InternalContextAdapter context, Object data)ObjectASTEscapedDirective. init(InternalContextAdapter context, Object data)ObjectASTExpression. init(InternalContextAdapter context, Object data)ObjectASTFalse. init(InternalContextAdapter context, Object data)ObjectASTFloatingPointLiteral. init(InternalContextAdapter context, Object data)Initialization method - doesn't do much but do the object creation.ObjectASTIdentifier. init(InternalContextAdapter context, Object data)simple init - don't do anything that is context specific.ObjectASTIfStatement. init(InternalContextAdapter context, Object data)ObjectASTIncludeStatement. init(InternalContextAdapter context, Object data)ObjectASTIndex. init(InternalContextAdapter context, Object data)ObjectASTIntegerLiteral. init(InternalContextAdapter context, Object data)ObjectASTIntegerRange. init(InternalContextAdapter context, Object data)ObjectASTLogicalOperator. init(InternalContextAdapter context, Object data)ObjectASTMap. init(InternalContextAdapter context, Object data)ObjectASTMathNode. init(InternalContextAdapter context, Object data)ObjectASTMethod. init(InternalContextAdapter context, Object data)simple init - init our subtree and get what we can from the ASTObjectASTModNode. init(InternalContextAdapter context, Object data)ObjectASTMulNode. init(InternalContextAdapter context, Object data)ObjectASTNegateNode. init(InternalContextAdapter context, Object data)ObjectASTNotNode. init(InternalContextAdapter context, Object data)ObjectASTObjectArray. init(InternalContextAdapter context, Object data)ObjectASTprocess. init(InternalContextAdapter context, Object data)ObjectASTReference. init(InternalContextAdapter context, Object data)ObjectASTSetDirective. init(InternalContextAdapter context, Object data)simple init.ObjectASTStringLiteral. init(InternalContextAdapter context, Object data)init : we don't have to do much.ObjectASTText. init(InternalContextAdapter context, Object data)ObjectASTTextblock. init(InternalContextAdapter context, Object data)ObjectASTTrue. init(InternalContextAdapter context, Object data)ObjectASTVariable. init(InternalContextAdapter context, Object data)ObjectASTWord. init(InternalContextAdapter context, Object data)ObjectNode. init(InternalContextAdapter context, Object data)ObjectSimpleNode. init(InternalContextAdapter context, Object data)NumberASTAddNode. perform(Number left, Number right, InternalContextAdapter context)NumberASTDivNode. perform(Number left, Number right, InternalContextAdapter context)abstract NumberASTMathNode. perform(Number left, Number right, InternalContextAdapter context)Performs the math operation represented by this node.NumberASTModNode. perform(Number left, Number right, InternalContextAdapter context)NumberASTMulNode. perform(Number left, Number right, InternalContextAdapter context)NumberASTSubtractNode. perform(Number left, Number right, InternalContextAdapter context)voidASTIfStatement. process(InternalContextAdapter context, StandardParserVisitor visitor)booleanASTBlock. render(InternalContextAdapter context, Writer writer)booleanASTComment. render(InternalContextAdapter context, Writer writer)booleanASTDirective. render(InternalContextAdapter context, Writer writer)booleanASTElseIfStatement. render(InternalContextAdapter context, Writer writer)booleanASTEscape. render(InternalContextAdapter context, Writer writer)booleanASTEscapedDirective. render(InternalContextAdapter context, Writer writer)booleanASTIfStatement. render(InternalContextAdapter context, Writer writer)booleanASTReference. render(InternalContextAdapter context, Writer writer)gets the value of the reference and outputs it to the writer.booleanASTSetDirective. render(InternalContextAdapter context, Writer writer)puts the value of the RHS into the context under the key of the LHSbooleanASTText. render(InternalContextAdapter context, Writer writer)booleanASTTextblock. render(InternalContextAdapter context, Writer writer)booleanNode. render(InternalContextAdapter context, Writer writer)booleanSimpleNode. render(InternalContextAdapter context, Writer writer)booleanASTReference. setValue(InternalContextAdapter context, Object value)Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference()ObjectASTAndNode. value(InternalContextAdapter context)Returns the value of the expression.ObjectASTComparisonNode. value(InternalContextAdapter context)ObjectASTExpression. value(InternalContextAdapter context)ObjectASTFalse. value(InternalContextAdapter context)ObjectASTFloatingPointLiteral. value(InternalContextAdapter context)ObjectASTIntegerLiteral. value(InternalContextAdapter context)ObjectASTIntegerRange. value(InternalContextAdapter context)does the real work.ObjectASTMap. value(InternalContextAdapter context)ObjectASTMathNode. value(InternalContextAdapter context)gets the two args and performs the operation on themObjectASTNegateNode. value(InternalContextAdapter context)ObjectASTNotNode. value(InternalContextAdapter context)ObjectASTObjectArray. value(InternalContextAdapter context)ObjectASTOrNode. value(InternalContextAdapter context)Returns the value of the expression.ObjectASTReference. value(InternalContextAdapter context)ObjectASTStringLiteral. 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.ObjectASTTrue. value(InternalContextAdapter context)ObjectNode. value(InternalContextAdapter context)ObjectSimpleNode. value(InternalContextAdapter context) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.visitor
Fields in org.apache.velocity.runtime.visitor declared as InternalContextAdapter Modifier and Type Field Description protected InternalContextAdapterBaseVisitor. contextContext used during traversalMethods in org.apache.velocity.runtime.visitor with parameters of type InternalContextAdapter Modifier and Type Method Description voidBaseVisitor. setContext(InternalContextAdapter context) -
Uses of InternalContextAdapter in org.apache.velocity.util
Methods in org.apache.velocity.util with parameters of type InternalContextAdapter Modifier and Type Method Description static VelMethodClassUtils. 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.
-