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

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

Uses of InternalContextAdapter in org.apache.velocity.context
 

Classes in org.apache.velocity.context that implement InternalContextAdapter
 class InternalContextAdapterImpl
          This adapter class is the container for all context types for internal use.
 class VMContext
          This is a special, internal-use-only context implementation to be used for the new Velocimacro implementation.
 

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

Constructors in org.apache.velocity.context with parameters of type InternalContextAdapter
VMContext(InternalContextAdapter inner, RuntimeServices rsvc)
          CTOR, wraps an ICA
 

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

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

Methods in org.apache.velocity.runtime.directive that return InternalContextAdapter
 InternalContextAdapter Foreach.NullHolderContext.getBaseContext()
           
 

Methods in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter
protected  String InputBase.getInputEncoding(InternalContextAdapter context)
          Decides the encoding used during input processing of this directive.
 Object VMProxyArg.getObject(InternalContextAdapter context)
          returns the value of the reference.
 void Macro.init(RuntimeServices rs, InternalContextAdapter context, Node node)
           
 void Literal.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          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 Directive.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          How this directive is to be initialized.
 void VelocimacroProxy.init(RuntimeServices rs, InternalContextAdapter context, Node node)
          The major meat of VelocimacroProxy, init() checks the # of arguments, patches the macro body, renders the macro into an AST, and then inits the AST, so it is ready for quick rendering.
 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)
          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
abstract  boolean Directive.render(InternalContextAdapter context, Writer writer, Node node)
          How this directive is to be rendered
 boolean VelocimacroProxy.render(InternalContextAdapter context, Writer writer, Node node)
          Renders the macro using the context
 Object VMProxyArg.setObject(InternalContextAdapter context, Object o)
          Invoked by VMContext when Context.put() is called for a proxied reference.
 

Constructors in org.apache.velocity.runtime.directive with parameters of type InternalContextAdapter
VMProxyArg(VMProxyArg model, InternalContextAdapter c)
          not used in current impl Constructor for alternate impl where VelProxy class would make new VMProxyArg objects, and use this contructor to avoid reparsing the reference args that impl also had the VMProxyArg carry it's context
 

Uses of InternalContextAdapter in org.apache.velocity.runtime.parser.node
 

Methods in org.apache.velocity.runtime.parser.node with parameters of type InternalContextAdapter
 boolean ASTNotNode.evaluate(InternalContextAdapter context)
           
 boolean ASTTrue.evaluate(InternalContextAdapter context)
           
 boolean ASTFalse.evaluate(InternalContextAdapter context)
           
 boolean SimpleNode.evaluate(InternalContextAdapter context)
           
 boolean ASTOrNode.evaluate(InternalContextAdapter context)
          the logical or : the rule : left || null -> left null || right -> right null || null -> false left || right -> left || right
 boolean ASTGENode.evaluate(InternalContextAdapter context)
           
 boolean ASTEQNode.evaluate(InternalContextAdapter context)
          Calculates the value of the logical expression arg1 == arg2 All class types are supported.
 boolean Node.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 ASTLTNode.evaluate(InternalContextAdapter context)
           
 boolean ASTElseStatement.evaluate(InternalContextAdapter context)
          An ASTElseStatement always evaluates to true.
 boolean ASTNENode.evaluate(InternalContextAdapter context)
           
 boolean ASTGTNode.evaluate(InternalContextAdapter context)
           
 boolean ASTLENode.evaluate(InternalContextAdapter context)
           
 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
 boolean ASTExpression.evaluate(InternalContextAdapter context)
           
 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 ASTIdentifier.execute(Object o, InternalContextAdapter context)
          invokes the method on the object passed in
 String SimpleNode.getLocation(InternalContextAdapter ctx)
           
 String Node.getLocation(InternalContextAdapter ctx)
          Get the location of the node.
 Object SimpleNode.init(InternalContextAdapter context, Object data)
           
 Object ASTText.init(InternalContextAdapter context, Object data)
           
 Object ASTFloatingPointLiteral.init(InternalContextAdapter context, Object data)
          Initialization method - doesn't do much but do the object creation.
 Object Node.init(InternalContextAdapter context, Object data)
           
 Object ASTReference.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.
 Object ASTEscape.init(InternalContextAdapter context, Object data)
           
 Object ASTSetDirective.init(InternalContextAdapter context, Object data)
          simple init.
 Object ASTStringLiteral.init(InternalContextAdapter context, Object data)
          init : we don't have to do much.
 Object ASTMethod.init(InternalContextAdapter context, Object data)
          simple init - init our subtree and get what we can from the AST
 Object ASTDirective.init(InternalContextAdapter context, Object data)
           
 Object ASTIntegerLiteral.init(InternalContextAdapter context, Object data)
          Initialization method - doesn't do much but do the object creation.
 Object ASTIdentifier.init(InternalContextAdapter context, Object data)
          simple init - don't do anything that is context specific.
 Object GetExecutor.OLDexecute(Object o, InternalContextAdapter context)
          Execute method against context.
 void ASTIfStatement.process(InternalContextAdapter context, ParserVisitor visitor)
           
 boolean ASTBlock.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTEscapedDirective.render(InternalContextAdapter context, Writer writer)
           
 boolean SimpleNode.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTText.render(InternalContextAdapter context, Writer writer)
           
 boolean Node.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 ASTIfStatement.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTComment.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTEscape.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 ASTElseIfStatement.render(InternalContextAdapter context, Writer writer)
          renders the block
 boolean ASTDirective.render(InternalContextAdapter context, Writer writer)
           
 boolean ASTStop.render(InternalContextAdapter context, Writer writer)
          Do not output anything, just shut off the rendering.
 boolean ASTReference.setValue(InternalContextAdapter context, Object value)
          Sets the value of a complex reference (something like $foo.bar) Currently used by ASTSetReference()
 Object ASTNotNode.value(InternalContextAdapter context)
           
 Object ASTTrue.value(InternalContextAdapter context)
           
 Object ASTFalse.value(InternalContextAdapter context)
           
 Object SimpleNode.value(InternalContextAdapter context)
           
 Object ASTOrNode.value(InternalContextAdapter context)
          Returns the value of the expression.
 Object ASTGENode.value(InternalContextAdapter context)
           
 Object ASTEQNode.value(InternalContextAdapter context)
           
 Object ASTMap.value(InternalContextAdapter context)
          Evaluate the node.
 Object ASTFloatingPointLiteral.value(InternalContextAdapter context)
           
 Object Node.value(InternalContextAdapter context)
           
 Object ASTDivNode.value(InternalContextAdapter context)
          computes the result of the division.
 Object ASTReference.value(InternalContextAdapter context)
           
 Object ASTLTNode.value(InternalContextAdapter context)
           
 Object ASTObjectArray.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 ASTNENode.value(InternalContextAdapter context)
           
 Object ASTAddNode.value(InternalContextAdapter context)
          computes the sum of the two nodes.
 Object ASTGTNode.value(InternalContextAdapter context)
           
 Object ASTMulNode.value(InternalContextAdapter context)
          computes the product of the two args.
 Object ASTSubtractNode.value(InternalContextAdapter context)
          computes the value of the subtraction.
 Object ASTLENode.value(InternalContextAdapter context)
           
 Object ASTAndNode.value(InternalContextAdapter context)
          Returns the value of the expression.
 Object ASTIntegerLiteral.value(InternalContextAdapter context)
           
 Object ASTIntegerRange.value(InternalContextAdapter context)
          does the real work.
 Object ASTExpression.value(InternalContextAdapter context)
           
 Object ASTModNode.value(InternalContextAdapter context)
           
 

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)
           
 



Copyright © 2002 Apache Software Foundation. All Rights Reserved.