Uses of Interface
org.apache.velocity.context.Context
-
-
Uses of Context in org.apache.velocity
Classes in org.apache.velocity that implement Context Modifier and Type Class Description class
VelocityContext
General purpose implemention of the application Context interface for general application use.Methods in org.apache.velocity with parameters of type Context Modifier and Type Method Description void
Template. merge(Context context, java.io.Writer writer)
The AST node structure is merged with the context to produce the final output.void
Template. merge(Context context, java.io.Writer writer, java.util.List macroLibraries)
The AST node structure is merged with the context to produce the final output.Constructors in org.apache.velocity with parameters of type Context Constructor Description VelocityContext(java.util.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 Context Modifier and Type Method Description static boolean
Velocity. evaluate(Context context, java.io.Writer writer, java.lang.String logTag, java.io.InputStream instream)
static boolean
Velocity. evaluate(Context context, java.io.Writer writer, java.lang.String logTag, java.io.Reader reader)
Renders the input reader using the context into the output writer.static boolean
Velocity. evaluate(Context context, java.io.Writer out, java.lang.String logTag, java.lang.String instring)
renders the input string using the context into the output writer.boolean
VelocityEngine. evaluate(Context context, java.io.Writer writer, java.lang.String logTag, java.io.InputStream instream)
boolean
VelocityEngine. evaluate(Context context, java.io.Writer writer, java.lang.String logTag, java.io.Reader reader)
Renders the input reader using the context into the output writer.boolean
VelocityEngine. evaluate(Context context, java.io.Writer out, java.lang.String logTag, java.lang.String instring)
renders the input string using the context into the output writer.static boolean
Velocity. invokeVelocimacro(java.lang.String vmName, java.lang.String logTag, java.lang.String[] params, Context context, java.io.Writer writer)
Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.boolean
VelocityEngine. invokeVelocimacro(java.lang.String vmName, java.lang.String logTag, java.lang.String[] params, Context context, java.io.Writer writer)
Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.static boolean
Velocity. mergeTemplate(java.lang.String templateName, java.lang.String encoding, Context context, java.io.Writer writer)
merges a template and puts the rendered stream into the writerstatic boolean
Velocity. mergeTemplate(java.lang.String templateName, Context context, java.io.Writer writer)
boolean
VelocityEngine. mergeTemplate(java.lang.String templateName, java.lang.String encoding, Context context, java.io.Writer writer)
merges a template and puts the rendered stream into the writerboolean
VelocityEngine. mergeTemplate(java.lang.String templateName, Context context, java.io.Writer writer)
-
Uses of Context in org.apache.velocity.app.event
Fields in org.apache.velocity.app.event declared as Context Modifier and Type Field Description private 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 Context Modifier and Type Method Description boolean
EventCartridge. attachToContext(Context context)
Attached the EventCartridge to the context Final because not something one should mess with lightly :)java.lang.Object
InvalidReferenceEventHandler. invalidGetMethod(Context context, java.lang.String reference, java.lang.Object object, java.lang.String property, Info info)
Called when object is null or there is no getter for the given property.java.lang.Object
InvalidReferenceEventHandler. invalidMethod(Context context, java.lang.String reference, java.lang.Object object, java.lang.String method, Info info)
Called when object is null or the given method does not exist.boolean
InvalidReferenceEventHandler. invalidSetMethod(Context context, java.lang.String leftreference, java.lang.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 Context Constructor Description IncludeEventExecutor(Context context, java.lang.String includeResourcePath, java.lang.String currentResourcePath, java.lang.String directiveName)
InvalidGetMethodExecutor(Context context, java.lang.String reference, java.lang.Object object, java.lang.String property, Info info)
InvalidMethodExecutor(Context context, java.lang.String reference, java.lang.Object object, java.lang.String method, Info info)
InvalidSetMethodExecutor(Context context, java.lang.String leftreference, java.lang.String rightreference, Info info)
MethodExceptionExecutor(Context context, java.lang.Class claz, java.lang.String method, java.lang.Exception e)
referenceInsertExecutor(Context context, java.lang.String reference, java.lang.Object value)
ShouldLogOnNullSetExecutor(Context context, java.lang.String lhs, java.lang.String rhs)
-
Uses of Context in org.apache.velocity.app.event.implement
Fields in org.apache.velocity.app.event.implement declared as Context Modifier and Type Field Description (package private) Context
IncludeNotFound. context
Methods in org.apache.velocity.app.event.implement with parameters of type Context Modifier and Type Method Description java.lang.Object
ReportInvalidReferences. invalidGetMethod(Context context, java.lang.String reference, java.lang.Object object, java.lang.String property, Info info)
Collect the error and/or throw an exception, depending on configuration.java.lang.Object
ReportInvalidReferences. invalidMethod(Context context, java.lang.String reference, java.lang.Object object, java.lang.String method, Info info)
Collect the error and/or throw an exception, depending on configuration.boolean
ReportInvalidReferences. invalidSetMethod(Context context, java.lang.String leftreference, java.lang.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 Context Modifier and Type Field Description (package private) Context
VelocityFormatter. context
Deprecated.Constructors in org.apache.velocity.app.tools with parameters of type Context Constructor Description VelocityFormatter(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.context Modifier and Type Interface Description interface
InternalContextAdapter
interface to bring all necessary internal and user contexts together.Classes in org.apache.velocity.context that implement Context Modifier and Type Class Description class
AbstractContext
This class is the abstract base class for all conventional Velocity Context implementations.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.0class
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 Context Modifier and Type Field Description (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 Context Modifier and Type Method Description Context
AbstractContext. getChainedContext()
returns innerContext if one is chainedContext
ChainedInternalContextAdapter. getInternalUserContext()
Return the inner / user context.Context
InternalContextAdapterImpl. getInternalUserContext()
returns the user data context that we are wrappingContext
InternalWrapperContext. getInternalUserContext()
Returns the wrapped user context.Constructors in org.apache.velocity.context with parameters of type Context Constructor Description AbstractContext(Context inner)
Chaining constructor accepts a Context argument.InternalContextAdapterImpl(Context c)
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 Context Modifier and Type Method Description boolean
RuntimeInstance. evaluate(Context context, java.io.Writer writer, java.lang.String logTag, java.io.Reader reader)
Renders the input reader using the context into the output writer.boolean
RuntimeInstance. evaluate(Context context, java.io.Writer out, java.lang.String logTag, java.lang.String instring)
Renders the input string using the context into the output writer.boolean
RuntimeServices. evaluate(Context context, java.io.Writer writer, java.lang.String logTag, java.io.Reader reader)
Renders the input reader using the context into the output writer.boolean
RuntimeServices. evaluate(Context context, java.io.Writer out, java.lang.String logTag, java.lang.String instring)
Renders the input string using the context into the output writer.boolean
RuntimeInstance. invokeVelocimacro(java.lang.String vmName, java.lang.String logTag, java.lang.String[] params, Context context, java.io.Writer writer)
Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.boolean
RuntimeServices. invokeVelocimacro(java.lang.String vmName, java.lang.String logTag, java.lang.String[] params, Context context, java.io.Writer writer)
Invokes a currently registered Velocimacro with the params provided and places the rendered stream into the writer.boolean
RuntimeInstance. render(Context context, java.io.Writer writer, java.lang.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 Context Modifier and Type Class Description protected static class
Foreach.NullHolderContext
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 Context Modifier and Type Method Description java.lang.Object
ASTReference. getVariableValue(Context context, java.lang.String variable)
static java.lang.String
NodeUtils. interpolate(java.lang.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 Context Modifier and Type Method Description void
ContextAware. setContext(Context context)
Initialize the EventHandler.
-