Uses of Interface
org.apache.velocity.context.Context
Packages that use Context
Package
Description
-
Uses of Context in org.apache.velocity
Classes in org.apache.velocity that implement ContextModifier and TypeClassDescriptionclass
General purpose implemention of the application Context interface for general application use.Methods in org.apache.velocity with parameters of type ContextModifier and TypeMethodDescriptionvoid
The AST node structure is merged with the context to produce the final output.void
The AST node structure is merged with the context to produce the final output.Constructors in org.apache.velocity with parameters of type ContextModifierConstructorDescriptionVelocityContext
(Map context, Context innerContext) Initializes internal storage (never tonull
), and inner context.VelocityContext
(Context innerContext) Chaining constructor, used when you want to wrap a context in another. -
Uses of Context in org.apache.velocity.app
Methods in org.apache.velocity.app with parameters of type ContextModifier and TypeMethodDescriptionstatic boolean
Velocity.evaluate
(Context context, Writer writer, String logTag, InputStream instream) Deprecated.static boolean
Renders the input reader using the context into the output writer.static boolean
renders the input string using the context into the output writer.boolean
VelocityEngine.evaluate
(Context context, Writer writer, String logTag, InputStream instream) boolean
Renders the input reader using the context into the output writer.boolean
renders the input string using the context into the output writer.static boolean
Velocity.invokeVelocimacro
(String vmName, String logTag, String[] params, Context context, Writer writer) Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.boolean
VelocityEngine.invokeVelocimacro
(String vmName, String logTag, String[] params, Context context, Writer writer) Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.static boolean
Velocity.mergeTemplate
(String templateName, String encoding, Context context, Writer writer) merges a template and puts the rendered stream into the writerstatic boolean
Velocity.mergeTemplate
(String templateName, Context context, Writer writer) boolean
VelocityEngine.mergeTemplate
(String templateName, String encoding, Context context, Writer writer) merges a template and puts the rendered stream into the writerboolean
VelocityEngine.mergeTemplate
(String templateName, Context context, Writer writer) -
Uses of Context in org.apache.velocity.app.event
Fields in org.apache.velocity.app.event declared as ContextModifier and TypeFieldDescriptionprivate Context
IncludeEventHandler.IncludeEventExecutor.context
private Context
InvalidReferenceEventHandler.InvalidGetMethodExecutor.context
private Context
InvalidReferenceEventHandler.InvalidMethodExecutor.context
private Context
InvalidReferenceEventHandler.InvalidSetMethodExecutor.context
private Context
MethodExceptionEventHandler.MethodExceptionExecutor.context
private Context
NullSetEventHandler.ShouldLogOnNullSetExecutor.context
private Context
ReferenceInsertionEventHandler.referenceInsertExecutor.context
Methods in org.apache.velocity.app.event with parameters of type ContextModifier and TypeMethodDescriptionfinal boolean
EventCartridge.attachToContext
(Context context) Attached the EventCartridge to the context Final because not something one should mess with lightly :)InvalidReferenceEventHandler.invalidGetMethod
(Context context, String reference, Object object, String property, Info info) Called when object is null or there is no getter for the given property.InvalidReferenceEventHandler.invalidMethod
(Context context, String reference, Object object, String method, Info info) Called when object is null or the given method does not exist.boolean
InvalidReferenceEventHandler.invalidSetMethod
(Context context, String leftreference, String rightreference, Info info) Called when object is null or there is no setter for the given property.Constructors in org.apache.velocity.app.event with parameters of type ContextModifierConstructorDescription(package private)
IncludeEventExecutor
(Context context, String includeResourcePath, String currentResourcePath, String directiveName) (package private)
InvalidGetMethodExecutor
(Context context, String reference, Object object, String property, Info info) (package private)
(package private)
InvalidSetMethodExecutor
(Context context, String leftreference, String rightreference, Info info) (package private)
MethodExceptionExecutor
(Context context, Class claz, String method, Exception e) (package private)
referenceInsertExecutor
(Context context, String reference, Object value) (package private)
ShouldLogOnNullSetExecutor
(Context context, String lhs, String rhs) -
Uses of Context in org.apache.velocity.app.event.implement
Fields in org.apache.velocity.app.event.implement declared as ContextMethods in org.apache.velocity.app.event.implement with parameters of type ContextModifier and TypeMethodDescriptionReportInvalidReferences.invalidGetMethod
(Context context, String reference, Object object, String property, Info info) Collect the error and/or throw an exception, depending on configuration.ReportInvalidReferences.invalidMethod
(Context context, String reference, Object object, String method, Info info) Collect the error and/or throw an exception, depending on configuration.boolean
ReportInvalidReferences.invalidSetMethod
(Context context, String leftreference, String rightreference, Info info) Collect the error and/or throw an exception, depending on configuration.void
IncludeNotFound.setContext
(Context context) -
Uses of Context in org.apache.velocity.app.tools
Fields in org.apache.velocity.app.tools declared as ContextConstructors in org.apache.velocity.app.tools with parameters of type ContextModifierConstructorDescriptionVelocityFormatter
(Context context) Deprecated.Constructor needs a backpointer to the context. -
Uses of Context in org.apache.velocity.context
Subinterfaces of Context in org.apache.velocity.contextModifier and TypeInterfaceDescriptioninterface
interface to bring all necessary internal and user contexts together.Classes in org.apache.velocity.context that implement ContextModifier and TypeClassDescriptionclass
This class is the abstract base class for all conventional Velocity Context implementations.class
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
Deprecated.Will be removed in 2.0final class
This adapter class is the container for all context types for internal use.class
Context for Velocity macro arguments.Fields in org.apache.velocity.context declared as ContextModifier and TypeFieldDescription(package private) Context
InternalContextAdapterImpl.context
the user data Context that we are wrappingprivate Context
AbstractContext.innerContext
the chained Context if any(package private) Context
EvaluateContext.localContext
Deprecated.container for any local itemsMethods in org.apache.velocity.context that return ContextModifier and TypeMethodDescriptionAbstractContext.getChainedContext()
returns innerContext if one is chainedChainedInternalContextAdapter.getInternalUserContext()
Return the inner / user context.InternalContextAdapterImpl.getInternalUserContext()
returns the user data context that we are wrappingInternalWrapperContext.getInternalUserContext()
Returns the wrapped user context.Constructors in org.apache.velocity.context with parameters of type ContextModifierConstructorDescriptionAbstractContext
(Context inner) Chaining constructor accepts a Context argument.CTOR takes a Context and wraps it, delegating all 'data' calls to it. -
Uses of Context in org.apache.velocity.runtime
Methods in org.apache.velocity.runtime with parameters of type ContextModifier and TypeMethodDescriptionboolean
Renders the input reader using the context into the output writer.boolean
Renders the input string using the context into the output writer.boolean
Renders the input reader using the context into the output writer.boolean
Renders the input string using the context into the output writer.boolean
RuntimeInstance.invokeVelocimacro
(String vmName, String logTag, String[] params, Context context, Writer writer) Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.boolean
RuntimeServices.invokeVelocimacro
(String vmName, String logTag, String[] params, Context context, Writer writer) Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.boolean
RuntimeInstance.render
(Context context, Writer writer, String logTag, SimpleNode nodeTree) Initializes and renders the ASTSimpleNode
using the context into the output writer. -
Uses of Context in org.apache.velocity.runtime.directive
Classes in org.apache.velocity.runtime.directive that implement ContextModifier and TypeClassDescriptionprotected static class
A special context to use when the foreach iterator returns a null. -
Uses of Context in org.apache.velocity.runtime.parser.node
Methods in org.apache.velocity.runtime.parser.node with parameters of type ContextModifier and TypeMethodDescriptionASTReference.getVariableValue
(Context context, String variable) static String
NodeUtils.interpolate
(String argStr, Context vars) Deprecated.this method isn't called by any class -
Uses of Context in org.apache.velocity.util
Methods in org.apache.velocity.util with parameters of type ContextModifier and TypeMethodDescriptionvoid
ContextAware.setContext
(Context context) Initialize the EventHandler.
Velocity.evaluate(Context context, Writer writer, String logTag, Reader reader)