Uses of Interface
org.apache.velocity.context.InternalContextAdapter

Packages that use InternalContextAdapter
org.apache.velocity.app.event   
org.apache.velocity.context   
org.apache.velocity.runtime   
org.apache.velocity.runtime.directive   
org.apache.velocity.runtime.parser.node   
org.apache.velocity.runtime.visitor   
org.apache.velocity.util   
 

Uses of InternalContextAdapter in org.apache.velocity.app.event
 

Methods in org.apache.velocity.app.event with parameters of type InternalContextAdapter
static 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 Object EventHandlerUtil.invalidReferenceHandlerCall(EventHandlerMethodExecutor methodExecutor, RuntimeServices rsvc, InternalContextAdapter context)
          Calls event handler method with appropriate chaining across event handlers.
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)
          Called when a method exception is generated during Velocity merge.
static Object EventHandlerUtil.referenceInsert(RuntimeServices rsvc, InternalContextAdapter context, String reference, Object value)
          Called before a reference is inserted.
static boolean EventHandlerUtil.shouldLogOnNullSet(RuntimeServices rsvc, InternalContextAdapter context, String lhs, 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
 class ChainedInternalContextAdapter
          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.
 class EvaluateContext
          Deprecated. Will be removed in 2.0
 class InternalContextAdapterImpl
          This adapter class is the container for all context types for internal use.
 class ProxyVMContext
          Context for Velocity macro arguments.
 

Fields in org.apache.velocity.context declared as InternalContextAdapter
protected  InternalContextAdapter ChainedInternalContextAdapter.innerContext
          the parent context
 

Methods in org.apache.velocity.context that return InternalContextAdapter
 InternalContextAdapter InternalWrapperContext.getBaseContext()
          Returns the base full context impl.
 InternalContextAdapter InternalContextAdapterImpl.getBaseContext()
          Returns the base context that we are wrapping.
 InternalContextAdapter ChainedInternalContextAdapter.getBaseContext()
           
 

Methods in org.apache.velocity.context with parameters of type InternalContextAdapter
 void ProxyVMContext.addVMProxyArg(InternalContextAdapter context, String macroArgumentName, String literalMacroArgumentName, Node argumentValue)
          Used to put Velocity macro arguments into this context.
 void ProxyVMContext.addVMProxyArg(InternalContextAdapter context, String macroArgumentName, 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
ChainedInternalContextAdapter(InternalContextAdapter inner)
          CTOR, wraps an ICA
EvaluateContext(InternalContextAdapter inner, RuntimeServices rsvc)
          Deprecated. CTOR, wraps an ICA
ProxyVMContext(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
 boolean Renderable.render(InternalContextAdapter context, Writer writer)
           
 

Uses of InternalContextAdapter in org.apache.velocity.runtime.directive
 

Classes in org.apache.velocity.runtime.directive that implement InternalContextAdapter
protected static class Foreach.NullHolderContext
          A special context to use when the foreach iterator returns a null.
 

Methods in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter
 void VelocimacroProxy.checkArgs(InternalContextAdapter context, Node node, boolean hasBody)
          check if we are calling this macro with the right number of arguments.
protected  void Foreach.clean(InternalContextAdapter context, Object o, Object savedCounter, Object nextFlag)
           
protected  String InputBase.getInputEncoding(InternalContextAdapter context)
          Decides the encoding used during input processing of this directive.
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 Stop.init(RuntimeServices rs, InternalContextAdapter context, Node node)
           
 void RuntimeMacro.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          Intialize the Runtime macro.
 void Parse.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          Init's the #parse directive.
 void Macro.init(RuntimeServices rs, InternalContextAdapter context, Node node)
           
 void Literal.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          Deprecated. Store the literal rendition of a node using the Node.literal().
 void Include.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          simple init - init the tree and get the elementKey from the AST
 void Foreach.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          simple init - init the tree and get the elementKey from the AST
 void Evaluate.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          Initialize and check arguments.
 void Directive.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          How this directive is to be initialized.
 void Define.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          simple init - get the key
 void Break.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          simple init - init the tree and get the elementKey from the AST
 void BlockMacro.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          Initializes the directive.
 void Block.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          simple init - get the key
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.render(InternalContextAdapter context, Writer writer)
           
 boolean Block.Reference.render(InternalContextAdapter context, Writer writer)
          Render the AST of this block into the writer using the context.
 boolean VelocimacroProxy.render(InternalContextAdapter context, Writer writer, Node node)
           
 boolean Stop.render(InternalContextAdapter context, Writer writer, Node node)
           
 boolean RuntimeMacro.render(InternalContextAdapter context, Writer writer, Node node)
          Velocimacro implementation is not known at the init time.
 boolean Parse.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 Literal.render(InternalContextAdapter context, Writer writer, Node node)
          Deprecated. Throw the literal rendition of the block between #literal()/#end into the writer.
 boolean Include.render(InternalContextAdapter context, Writer writer, Node node)
          iterates through the argument list and renders every argument that is appropriate.
 boolean Foreach.render(InternalContextAdapter context, Writer writer, Node node)
          renders the #foreach() block
 boolean Evaluate.render(InternalContextAdapter context, Writer writer, Node node)
          Evaluate the argument, convert to a String, and evaluate again (with the same context).
abstract  boolean Directive.render(InternalContextAdapter context, Writer writer, Node node)
          How this directive is to be rendered
 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.
 boolean Break.render(InternalContextAdapter context, Writer writer, Node node)
          Break directive does not actually do any rendering.
 boolean BlockMacro.render(InternalContextAdapter context, Writer writer, Node node)
          Renders content using the selected macro and the passed AST body.
 boolean VelocimacroProxy.render(InternalContextAdapter context, Writer writer, Node node, Renderable body)
          Renders the macro using the context.
 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.
 

Constructors in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter
Block.Reference(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
static Object ASTIndex.adjMinusIndexArg(Object argument, Object o, InternalContextAdapter context, SimpleNode node)
          If argument is an Integer and negative, then return (o.size() - argument).
 boolean SimpleNode.evaluate(InternalContextAdapter context)
           
 boolean Node.evaluate(InternalContextAdapter context)
           
 boolean ASTTrue.evaluate(InternalContextAdapter context)
           
 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 null
 boolean ASTOrNode.evaluate(InternalContextAdapter context)
          the logical or : the rule : left || null -> left null || right -> right null || null -> false left || right -> left || right
 boolean ASTNotNode.evaluate(InternalContextAdapter context)
           
 boolean ASTNENode.evaluate(InternalContextAdapter context)
           
 boolean ASTLTNode.evaluate(InternalContextAdapter context)
           
 boolean ASTLENode.evaluate(InternalContextAdapter context)
           
 boolean ASTGTNode.evaluate(InternalContextAdapter context)
           
 boolean ASTGENode.evaluate(InternalContextAdapter context)
           
 boolean ASTFalse.evaluate(InternalContextAdapter context)
           
 boolean ASTExpression.evaluate(InternalContextAdapter context)
           
 boolean ASTEQNode.evaluate(InternalContextAdapter context)
          Calculates the value of the logical expression arg1 == arg2 All class types are supported.
 boolean ASTElseStatement.evaluate(InternalContextAdapter context)
          An ASTElseStatement always evaluates to true.
 boolean ASTElseIfStatement.evaluate(InternalContextAdapter context)
          An ASTElseStatement is true if the expression it contains evaluates to true.
 boolean ASTAndNode.evaluate(InternalContextAdapter context)
          logical and : null && right = false left && null = false null && null = false
 Object SimpleNode.execute(Object o, InternalContextAdapter context)
           
 Object Node.execute(Object o, InternalContextAdapter context)
           
 Object ASTReference.execute(Object o, InternalContextAdapter context)
          gets an Object that 'is' the value of the reference
 Object ASTMethod.execute(Object o, InternalContextAdapter context)
          invokes the method.
 Object ASTIndex.execute(Object o, InternalContextAdapter context)
           
 Object ASTIdentifier.execute(Object o, InternalContextAdapter context)
           
protected  String SimpleNode.getLocation(InternalContextAdapter context)
          Return a string that tells the current location of this node.
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.
protected  Object ASTAddNode.handleSpecial(Object left, Object right, InternalContextAdapter context)
           
 Object SimpleNode.init(InternalContextAdapter context, Object data)
           
 Object Node.init(InternalContextAdapter context, Object data)
           
 Object ASTTextblock.init(InternalContextAdapter context, Object data)
           
 Object ASTText.init(InternalContextAdapter context, Object data)
           
 Object ASTStringLiteral.init(InternalContextAdapter context, Object data)
          init : we don't have to do much.
 Object ASTSetDirective.init(InternalContextAdapter context, Object data)
          simple init.
 Object ASTReference.init(InternalContextAdapter context, Object data)
           
 Object ASTMethod.init(InternalContextAdapter context, Object data)
          simple init - init our subtree and get what we can from the AST
 Object ASTMathNode.init(InternalContextAdapter context, Object data)
          
 Object ASTIntegerLiteral.init(InternalContextAdapter context, Object data)
           
 Object ASTIndex.init(InternalContextAdapter context, Object data)
           
 Object ASTIdentifier.init(InternalContextAdapter context, Object data)
          simple init - don't do anything that is context specific.
 Object ASTFloatingPointLiteral.init(InternalContextAdapter context, Object data)
          Initialization method - doesn't do much but do the object creation.
 Object ASTEscape.init(InternalContextAdapter context, Object data)
           
 Object ASTDirective.init(InternalContextAdapter context, Object data)
           
 Object ASTComment.init(InternalContextAdapter context, Object data)
          We need to make sure we catch any of the dreaded MORE tokens.
 Number ASTSubtractNode.perform(Number left, Number right, InternalContextAdapter context)
           
 Number ASTMulNode.perform(Number left, Number right, InternalContextAdapter context)
           
 Number ASTModNode.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.
 Number ASTDivNode.perform(Number left, Number right, InternalContextAdapter context)
           
 Number ASTAddNode.perform(Number left, Number right, InternalContextAdapter context)
           
 void ASTIfStatement.process(InternalContextAdapter context, ParserVisitor visitor)
           
 boolean SimpleNode.render(InternalContextAdapter context, Writer writer)
           
 boolean Node.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTTextblock.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTText.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTSetDirective.render(InternalContextAdapter context, Writer writer)
          puts the value of the RHS into the context under the key of the LHS
 boolean ASTReference.render(InternalContextAdapter context, Writer writer)
          gets the value of the reference and outputs it to the writer.
 boolean ASTIfStatement.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTEscapedDirective.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTEscape.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTElseIfStatement.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTDirective.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTComment.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTBlock.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()
 Object SimpleNode.value(InternalContextAdapter context)
           
 Object Node.value(InternalContextAdapter context)
           
 Object ASTTrue.value(InternalContextAdapter context)
           
 Object 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.
 Object ASTReference.value(InternalContextAdapter context)
           
 Object ASTOrNode.value(InternalContextAdapter context)
          Returns the value of the expression.
 Object ASTObjectArray.value(InternalContextAdapter context)
           
 Object ASTNotNode.value(InternalContextAdapter context)
           
 Object ASTNENode.value(InternalContextAdapter context)
           
 Object ASTMathNode.value(InternalContextAdapter context)
          gets the two args and performs the operation on them
 Object ASTMap.value(InternalContextAdapter context)
           
 Object ASTLTNode.value(InternalContextAdapter context)
           
 Object ASTLENode.value(InternalContextAdapter context)
           
 Object ASTIntegerRange.value(InternalContextAdapter context)
          does the real work.
 Object ASTIntegerLiteral.value(InternalContextAdapter context)
           
 Object ASTGTNode.value(InternalContextAdapter context)
           
 Object ASTGENode.value(InternalContextAdapter context)
           
 Object ASTFloatingPointLiteral.value(InternalContextAdapter context)
           
 Object ASTFalse.value(InternalContextAdapter context)
           
 Object ASTExpression.value(InternalContextAdapter context)
           
 Object ASTEQNode.value(InternalContextAdapter context)
           
 Object ASTAndNode.value(InternalContextAdapter context)
          Returns the value of the expression.
 

Uses of InternalContextAdapter in org.apache.velocity.runtime.visitor
 

Fields in org.apache.velocity.runtime.visitor declared as InternalContextAdapter
protected  InternalContextAdapter BaseVisitor.context
          Context used during traversal
 

Methods in org.apache.velocity.runtime.visitor with parameters of type InternalContextAdapter
 void BaseVisitor.setContext(InternalContextAdapter context)
           
 

Uses of InternalContextAdapter in org.apache.velocity.util
 

Methods in org.apache.velocity.util with parameters of type InternalContextAdapter
static 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.
 



Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.