Modifier and Type | Class and Description |
---|---|
class |
VelocityContext
General purpose implemention of the application Context
interface for general application use.
|
Modifier and Type | Method and Description |
---|---|
void |
Template.merge(Context context,
Writer writer)
The AST node structure is merged with the
context to produce the final output.
|
void |
Template.merge(Context context,
Writer writer,
List macroLibraries)
The AST node structure is merged with the
context to produce the final output.
|
Constructor and Description |
---|
VelocityContext(Context innerContext)
Chaining constructor, used when you want to
wrap a context in another.
|
VelocityContext(Map context,
Context innerContext)
Initializes internal storage (never to
null ), and
inner context. |
Modifier and Type | Method and Description |
---|---|
boolean |
VelocityEngine.evaluate(Context context,
Writer writer,
String logTag,
InputStream instream)
|
static boolean |
Velocity.evaluate(Context context,
Writer writer,
String logTag,
InputStream instream)
|
boolean |
VelocityEngine.evaluate(Context context,
Writer writer,
String logTag,
Reader reader)
Renders the input reader using the context into the output writer.
|
static boolean |
Velocity.evaluate(Context context,
Writer writer,
String logTag,
Reader reader)
Renders the input reader using the context into the output writer.
|
boolean |
VelocityEngine.evaluate(Context context,
Writer out,
String logTag,
String instring)
renders the input string using the context into the output writer.
|
static boolean |
Velocity.evaluate(Context context,
Writer out,
String logTag,
String instring)
renders the input string using the context into the output 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.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.mergeTemplate(String templateName,
Context context,
Writer writer)
|
static 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 writer
|
static boolean |
Velocity.mergeTemplate(String templateName,
String encoding,
Context context,
Writer writer)
merges a template and puts the rendered stream into the writer
|
Modifier and Type | Method and Description |
---|---|
boolean |
EventCartridge.attachToContext(Context context)
Attached the EventCartridge to the context
Final because not something one should mess with lightly :)
|
Object |
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.
|
Object |
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
ReportInvalidReferences.invalidGetMethod(Context context,
String reference,
Object object,
String property,
Info info)
Collect the error and/or throw an exception, depending on configuration.
|
Object |
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) |
Constructor and Description |
---|
VelocityFormatter(Context context)
Deprecated.
Constructor needs a backpointer to the context.
|
Modifier and Type | Interface and Description |
---|---|
interface |
InternalContextAdapter
interface to bring all necessary internal and user contexts together.
|
Modifier and Type | Class and 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.0
|
class |
InternalContextAdapterImpl
This adapter class is the container for all context types for internal
use.
|
class |
ProxyVMContext
Context for Velocity macro arguments.
|
Modifier and Type | Method and Description |
---|---|
Context |
AbstractContext.getChainedContext()
returns innerContext if one is chained
|
Context |
InternalWrapperContext.getInternalUserContext()
Returns the wrapped user context.
|
Context |
ChainedInternalContextAdapter.getInternalUserContext()
Return the inner / user context.
|
Context |
InternalContextAdapterImpl.getInternalUserContext()
returns the user data context that
we are wrapping
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RuntimeServices.evaluate(Context context,
Writer writer,
String logTag,
Reader reader)
Renders the input reader using the context into the output writer.
|
boolean |
RuntimeInstance.evaluate(Context context,
Writer writer,
String logTag,
Reader reader)
Renders the input reader using the context into the output writer.
|
boolean |
RuntimeServices.evaluate(Context context,
Writer out,
String logTag,
String instring)
Renders the input string using the context into the output writer.
|
boolean |
RuntimeInstance.evaluate(Context context,
Writer out,
String logTag,
String instring)
Renders the input string using the context into the output 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.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 AST
SimpleNode using the context
into the output writer. |
Modifier and Type | Class and Description |
---|---|
protected static class |
Foreach.NullHolderContext
A special context to use when the foreach iterator returns a null.
|
Modifier and Type | Method and Description |
---|---|
Object |
ASTReference.getVariableValue(Context context,
String variable) |
static String |
NodeUtils.interpolate(String argStr,
Context vars)
Deprecated.
this method isn't called by any class
|
Modifier and Type | Method and Description |
---|---|
protected Context |
VelocityServlet.createContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated.
Returns a context suitable to pass to the handleRequest() method
Default implementation will create a VelocityContext object, put the HttpServletRequest and HttpServletResponse into the context accessable via the keys VelocityServlet.REQUEST and VelocityServlet.RESPONSE, respectively. |
Modifier and Type | Method and Description |
---|---|
protected Template |
VelocityServlet.handleRequest(Context ctx)
|
protected Template |
VelocityServlet.handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Context ctx)
Deprecated.
Implement this method to add your application data to the context,
calling the
getTemplate() method to produce your return
value. |
protected void |
VelocityServlet.mergeTemplate(Template template,
Context context,
javax.servlet.http.HttpServletResponse response)
Deprecated.
merges the template with the context.
|
protected void |
VelocityServlet.requestCleanup(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Context context)
Deprecated.
A cleanup routine which is called at the end of the
VelocityServlet.doRequest(HttpServletRequest, HttpServletResponse)
processing sequence, allowing a derived class to do resource
cleanup or other end of process cycle tasks. |
Modifier and Type | Method and Description |
---|---|
protected Context |
Generator.getContext(Hashtable objs)
Create a new context and fill it with the elements of the
objs Hashtable.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Generator.fillContextDefaults(Context context)
Add properties that will aways be in the context by default
|
protected void |
Generator.fillContextHash(Context context,
Hashtable objs)
Add all the contents of a Hashtable to the context.
|
protected void |
Generator.fillContextProperties(Context context)
Add objects to the context from the current properties.
|
String |
Generator.parse(String controlTemplate,
Context controlContext)
Parse the control template and merge it with the control
context.
|
Modifier and Type | Method and Description |
---|---|
Context |
TexenTask.initControlContext()
Creates a VelocityContext.
|
Modifier and Type | Method and Description |
---|---|
protected void |
TexenTask.populateInitialContext(Context context)
Place useful objects into the initial context.
|
Modifier and Type | Method and Description |
---|---|
void |
ContextAware.setContext(Context context)
Initialize the EventHandler.
|
Copyright © 2000–2016. All rights reserved.