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 java.lang.StringEventHandlerUtil. includeEvent(RuntimeServices rsvc, InternalContextAdapter context, java.lang.String includeResourcePath, java.lang.String currentResourcePath, java.lang.String directiveName)Called when an include-type directive is encountered (#include or #parse).static java.lang.ObjectEventHandlerUtil. invalidGetMethod(RuntimeServices rsvc, InternalContextAdapter context, java.lang.String reference, java.lang.Object object, java.lang.String property, Info info)Called when an invalid get method is encountered.static java.lang.ObjectEventHandlerUtil. invalidMethod(RuntimeServices rsvc, InternalContextAdapter context, java.lang.String reference, java.lang.Object object, java.lang.String method, Info info)Called when an invalid method is encountered.static java.lang.ObjectEventHandlerUtil. invalidReferenceHandlerCall(EventHandlerMethodExecutor methodExecutor, RuntimeServices rsvc, InternalContextAdapter context)Calls event handler method with appropriate chaining across event handlers.static voidEventHandlerUtil. invalidSetMethod(RuntimeServices rsvc, InternalContextAdapter context, java.lang.String leftreference, java.lang.String rightreference, Info info)Called when an invalid set method is encountered.static java.lang.ObjectEventHandlerUtil. methodException(RuntimeServices rsvc, InternalContextAdapter context, java.lang.Class claz, java.lang.String method, java.lang.Exception e)Called when a method exception is generated during Velocity merge.static java.lang.ObjectEventHandlerUtil. referenceInsert(RuntimeServices rsvc, InternalContextAdapter context, java.lang.String reference, java.lang.Object value)Called before a reference is inserted.static booleanEventHandlerUtil. shouldLogOnNullSet(RuntimeServices rsvc, InternalContextAdapter context, java.lang.String lhs, java.lang.String rhs)Called when a null is evaluated during a #set. -
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.classEvaluateContextDeprecated.Will be removed in 2.0classInternalContextAdapterImplThis adapter class is the container for all context types for internal use.classProxyVMContextContext for Velocity macro arguments.Fields in org.apache.velocity.context declared as InternalContextAdapter Modifier and Type Field Description protected InternalContextAdapterChainedInternalContextAdapter. innerContextthe 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.Methods in org.apache.velocity.context with parameters of type InternalContextAdapter Modifier and Type Method Description voidProxyVMContext. addVMProxyArg(InternalContextAdapter context, java.lang.String macroArgumentName, java.lang.String literalMacroArgumentName, Node argumentValue)Used to put Velocity macro arguments into this context.voidProxyVMContext. addVMProxyArg(InternalContextAdapter context, java.lang.String macroArgumentName, java.lang.String literalMacroArgumentName, Renderable argumentValue)Used to put Velocity macro bodyContext arguments into this context.Constructors in org.apache.velocity.context with parameters of type InternalContextAdapter Constructor Description ChainedInternalContextAdapter(InternalContextAdapter inner)CTOR, wraps an ICAEvaluateContext(InternalContextAdapter inner, RuntimeServices rsvc)Deprecated.CTOR, wraps an ICAProxyVMContext(InternalContextAdapter inner, RuntimeServices rsvc, boolean localContextScope) -
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, java.io.Writer writer) -
Uses of InternalContextAdapter in org.apache.velocity.runtime.directive
Classes in org.apache.velocity.runtime.directive that implement InternalContextAdapter Modifier and Type Class Description protected static classForeach.NullHolderContextA special context to use when the foreach iterator returns a null.Fields in org.apache.velocity.runtime.directive declared as InternalContextAdapter Modifier and Type Field Description private InternalContextAdapterBlock.Reference. contextMethods in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter Modifier and Type Method Description voidVelocimacroProxy. checkArgs(InternalContextAdapter context, Node node, boolean hasBody)check if we are calling this macro with the right number of arguments.protected voidForeach. clean(InternalContextAdapter context, java.lang.Object o, java.lang.Object savedCounter, java.lang.Object nextFlag)protected java.lang.StringInputBase. getInputEncoding(InternalContextAdapter context)Decides the encoding used during input processing of this directive.protected java.lang.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, 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)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, java.lang.String key, java.lang.Object value)Extension hook to allow subclasses to control whether loop vars are set locally or not.booleanBlock.Reference. render(InternalContextAdapter context, java.io.Writer writer)Render the AST of this block into the writer using the context.booleanBlock. render(InternalContextAdapter context, java.io.Writer writer)booleanBlockMacro. render(InternalContextAdapter context, java.io.Writer writer, Node node)Renders content using the selected macro and the passed AST body.booleanBreak. render(InternalContextAdapter context, java.io.Writer writer, Node node)Break directive does not actually do any rendering.booleanDefine. render(InternalContextAdapter context, java.io.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, java.io.Writer writer, Node node)How this directive is to be renderedbooleanEvaluate. render(InternalContextAdapter context, java.io.Writer writer, Node node)Evaluate the argument, convert to a String, and evaluate again (with the same context).booleanForeach. render(InternalContextAdapter context, java.io.Writer writer, Node node)renders the #foreach() blockbooleanInclude. render(InternalContextAdapter context, java.io.Writer writer, Node node)iterates through the argument list and renders every argument that is appropriate.booleanLiteral. render(InternalContextAdapter context, java.io.Writer writer, Node node)Deprecated.Throw the literal rendition of the block between #literal()/#end into the writer.booleanMacro. render(InternalContextAdapter context, java.io.Writer writer, Node node)render() doesn't do anything in the final output rendering.booleanParse. render(InternalContextAdapter context, java.io.Writer writer, Node node)iterates through the argument list and renders every argument that is appropriate.booleanRuntimeMacro. render(InternalContextAdapter context, java.io.Writer writer, Node node)Velocimacro implementation is not known at the init time.booleanRuntimeMacro. render(InternalContextAdapter context, java.io.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, java.io.Writer writer, Node node)booleanVelocimacroProxy. render(InternalContextAdapter context, java.io.Writer writer, Node node)booleanVelocimacroProxy. render(InternalContextAdapter context, java.io.Writer writer, Node node, Renderable body)Renders the macro using the context.private booleanInclude. renderOutput(Node node, InternalContextAdapter context, java.io.Writer writer)does the actual rendering of the included fileConstructors in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter Constructor Description NullHolderContext(java.lang.String key, InternalContextAdapter context)Create the context as a wrapper to be used within the foreachReference(InternalContextAdapter context, Block parent) -
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 java.lang.ObjectASTIndex. adjMinusIndexArg(java.lang.Object argument, java.lang.Object o, InternalContextAdapter context, SimpleNode node)If argument is an Integer and negative, then return (o.size() - argument).booleanASTAndNode. evaluate(InternalContextAdapter context)logical and : null && right = false left && null = false null && null = falsebooleanASTElseIfStatement. 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.booleanASTEQNode. evaluate(InternalContextAdapter context)Calculates the value of the logical expression arg1 == arg2 All class types are supported.booleanASTExpression. evaluate(InternalContextAdapter context)booleanASTFalse. evaluate(InternalContextAdapter context)booleanASTGENode. evaluate(InternalContextAdapter context)booleanASTGTNode. evaluate(InternalContextAdapter context)booleanASTLENode. evaluate(InternalContextAdapter context)booleanASTLTNode. evaluate(InternalContextAdapter context)booleanASTNENode. evaluate(InternalContextAdapter context)booleanASTNotNode. evaluate(InternalContextAdapter context)booleanASTOrNode. evaluate(InternalContextAdapter context)the logical or : the rule : left || null -> left null || right -> right null || null -> false left || right -> left || rightbooleanASTReference. evaluate(InternalContextAdapter context)Computes boolean value of this reference Returns the actual value of reference return type boolean, and 'true' if value is not nullbooleanASTTrue. evaluate(InternalContextAdapter context)booleanNode. evaluate(InternalContextAdapter context)booleanSimpleNode. evaluate(InternalContextAdapter context)java.lang.ObjectASTIdentifier. execute(java.lang.Object o, InternalContextAdapter context)java.lang.ObjectASTIndex. execute(java.lang.Object o, InternalContextAdapter context)java.lang.ObjectASTMethod. execute(java.lang.Object o, InternalContextAdapter context)invokes the method.java.lang.ObjectASTReference. execute(java.lang.Object o, InternalContextAdapter context)gets an Object that 'is' the value of the referencejava.lang.ObjectNode. execute(java.lang.Object o, InternalContextAdapter context)java.lang.ObjectSimpleNode. execute(java.lang.Object o, InternalContextAdapter context)protected java.lang.StringSimpleNode. getLocation(InternalContextAdapter context)Return a string that tells the current location of this node.private java.lang.StringASTReference. getNullString(InternalContextAdapter context)This method helps to implement the "render literal if null" functionality.private java.lang.ObjectASTMethod. handleInvocationException(java.lang.Object o, InternalContextAdapter context, java.lang.Throwable t)protected java.lang.ObjectASTAddNode. handleSpecial(java.lang.Object left, java.lang.Object right, InternalContextAdapter context)protected java.lang.ObjectASTMathNode. handleSpecial(java.lang.Object left, java.lang.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.java.lang.ObjectASTComment. init(InternalContextAdapter context, java.lang.Object data)We need to make sure we catch any of the dreaded MORE tokens.java.lang.ObjectASTDirective. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTEscape. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTFloatingPointLiteral. init(InternalContextAdapter context, java.lang.Object data)Initialization method - doesn't do much but do the object creation.java.lang.ObjectASTIdentifier. init(InternalContextAdapter context, java.lang.Object data)simple init - don't do anything that is context specific.java.lang.ObjectASTIndex. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTIntegerLiteral. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTMathNode. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTMethod. init(InternalContextAdapter context, java.lang.Object data)simple init - init our subtree and get what we can from the ASTjava.lang.ObjectASTReference. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTSetDirective. init(InternalContextAdapter context, java.lang.Object data)simple init.java.lang.ObjectASTStringLiteral. init(InternalContextAdapter context, java.lang.Object data)init : we don't have to do much.java.lang.ObjectASTText. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectASTTextblock. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectNode. init(InternalContextAdapter context, java.lang.Object data)java.lang.ObjectSimpleNode. init(InternalContextAdapter context, java.lang.Object data)java.lang.NumberASTAddNode. perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)java.lang.NumberASTDivNode. perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)abstract java.lang.NumberASTMathNode. perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)Performs the math operation represented by this node.java.lang.NumberASTModNode. perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)java.lang.NumberASTMulNode. perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)java.lang.NumberASTSubtractNode. perform(java.lang.Number left, java.lang.Number right, InternalContextAdapter context)voidASTIfStatement. process(InternalContextAdapter context, ParserVisitor visitor)booleanASTBlock. render(InternalContextAdapter context, java.io.Writer writer)booleanASTComment. render(InternalContextAdapter context, java.io.Writer writer)booleanASTDirective. render(InternalContextAdapter context, java.io.Writer writer)booleanASTElseIfStatement. render(InternalContextAdapter context, java.io.Writer writer)booleanASTEscape. render(InternalContextAdapter context, java.io.Writer writer)booleanASTEscapedDirective. render(InternalContextAdapter context, java.io.Writer writer)booleanASTIfStatement. render(InternalContextAdapter context, java.io.Writer writer)booleanASTReference. render(InternalContextAdapter context, java.io.Writer writer)gets the value of the reference and outputs it to the writer.booleanASTSetDirective. render(InternalContextAdapter context, java.io.Writer writer)puts the value of the RHS into the context under the key of the LHSbooleanASTText. render(InternalContextAdapter context, java.io.Writer writer)booleanASTTextblock. render(InternalContextAdapter context, java.io.Writer writer)booleanNode. render(InternalContextAdapter context, java.io.Writer writer)booleanSimpleNode. render(InternalContextAdapter context, java.io.Writer writer)booleanASTReference. setValue(InternalContextAdapter context, java.lang.Object value)Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference()java.lang.ObjectASTAndNode. value(InternalContextAdapter context)Returns the value of the expression.java.lang.ObjectASTEQNode. value(InternalContextAdapter context)java.lang.ObjectASTExpression. value(InternalContextAdapter context)java.lang.ObjectASTFalse. value(InternalContextAdapter context)java.lang.ObjectASTFloatingPointLiteral. value(InternalContextAdapter context)java.lang.ObjectASTGENode. value(InternalContextAdapter context)java.lang.ObjectASTGTNode. value(InternalContextAdapter context)java.lang.ObjectASTIntegerLiteral. value(InternalContextAdapter context)java.lang.ObjectASTIntegerRange. value(InternalContextAdapter context)does the real work.java.lang.ObjectASTLENode. value(InternalContextAdapter context)java.lang.ObjectASTLTNode. value(InternalContextAdapter context)java.lang.ObjectASTMap. value(InternalContextAdapter context)java.lang.ObjectASTMathNode. value(InternalContextAdapter context)gets the two args and performs the operation on themjava.lang.ObjectASTNENode. value(InternalContextAdapter context)java.lang.ObjectASTNotNode. value(InternalContextAdapter context)java.lang.ObjectASTObjectArray. value(InternalContextAdapter context)java.lang.ObjectASTOrNode. value(InternalContextAdapter context)Returns the value of the expression.java.lang.ObjectASTReference. value(InternalContextAdapter context)java.lang.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.java.lang.ObjectASTTrue. value(InternalContextAdapter context)java.lang.ObjectNode. value(InternalContextAdapter context)java.lang.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(java.lang.String methodName, java.lang.Object[] params, java.lang.Class[] paramClasses, java.lang.Object o, InternalContextAdapter context, SimpleNode node, boolean strictRef)Lookup a VelMethod object given the method signature that is specified in the passed in parameters.
-