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<String> macroLibraries)
The AST node structure is merged with the
context to produce the final output.
|
boolean |
Template.process()
gets the named resource as a stream, parses and inits
|
Modifier and Type | Method and Description |
---|---|
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.
|
Template |
VelocityEngine.getTemplate(String name)
Returns a
Template from the Velocity
resource management system. |
static Template |
Velocity.getTemplate(String name)
Returns a
Template from the Velocity
resource management system. |
Template |
VelocityEngine.getTemplate(String name,
String encoding)
Returns a
Template from the Velocity
resource management system. |
static Template |
Velocity.getTemplate(String name,
String encoding)
Returns a
Template from the Velocity
resource management system. |
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 |
---|---|
static ContentResource |
RuntimeSingleton.getContent(String name)
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeServices.getContent(String name)
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeInstance.getContent(String name)
Returns a static content resource from the
resource manager.
|
static ContentResource |
RuntimeSingleton.getContent(String name,
String encoding)
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeServices.getContent(String name,
String encoding)
Returns a static content resource from the
resource manager.
|
ContentResource |
RuntimeInstance.getContent(String name,
String encoding)
Returns a static content resource from the
resource manager.
|
static Template |
RuntimeSingleton.getTemplate(String name)
Returns a
Template from the resource manager. |
Template |
RuntimeServices.getTemplate(String name)
Returns a
Template from the resource manager. |
Template |
RuntimeInstance.getTemplate(String name)
Returns a
Template from the resource manager. |
static Template |
RuntimeSingleton.getTemplate(String name,
String encoding)
Returns a
Template from the resource manager |
Template |
RuntimeServices.getTemplate(String name,
String encoding)
Returns a
Template from the resource manager |
Template |
RuntimeInstance.getTemplate(String name,
String encoding)
Returns a
Template from the resource manager |
boolean |
Renderable.render(InternalContextAdapter context,
Writer writer) |
Modifier and Type | Method and Description |
---|---|
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 |
Include.render(InternalContextAdapter context,
Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
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 |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleNode.render(InternalContextAdapter context,
Writer writer) |
boolean |
Node.render(InternalContextAdapter context,
Writer writer) |
boolean |
ASTIfStatement.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) |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceManagerImpl.getResource(String resourceName,
int resourceType,
String encoding)
Gets the named resource.
|
Resource |
ResourceManager.getResource(String resourceName,
int resourceType,
String encoding)
Gets the named resource.
|
protected Resource |
ResourceManagerImpl.loadResource(String resourceName,
int resourceType,
String encoding)
Loads a resource from the current set of resource loaders.
|
abstract boolean |
Resource.process()
Perform any subsequent processing that might need
to be done by a resource.
|
boolean |
ContentResource.process()
Pull in static content and store it.
|
protected Resource |
ResourceManagerImpl.refreshResource(Resource resource,
String encoding)
Takes an existing resource, and 'refreshes' it.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
JarHolder.getResource(String theentry) |
Reader |
URLResourceLoader.getResourceReader(String name,
String encoding)
Get a Reader so that the Runtime can build a
template with it.
|
Reader |
StringResourceLoader.getResourceReader(String name,
String encoding)
Get a reader so that the Runtime can build a
template with it.
|
abstract Reader |
ResourceLoader.getResourceReader(String source,
String encoding)
Get the Reader that the Runtime will parse
to create a template.
|
Reader |
JarResourceLoader.getResourceReader(String source,
String encoding)
Get a Reader so that the Runtime can build a
template with it.
|
Reader |
FileResourceLoader.getResourceReader(String templateName,
String encoding)
Get a Reader so that the Runtime can build a
template with it.
|
Reader |
DataSourceResourceLoader.getResourceReader(String name,
String encoding)
Get an InputStream so that the Runtime can build a
template with it.
|
Reader |
ClasspathResourceLoader.getResourceReader(String name,
String encoding)
Get a Reader so that the Runtime can build a
template with it.
|
Modifier and Type | Method and Description |
---|---|
Reader |
VelocityScriptEngine.SingleResourceReader.getResourceReader(String source,
String encoding) |
Modifier and Type | Method and Description |
---|---|
Reader |
SpringResourceLoader.getResourceReader(String source,
String encoding)
Get the Reader that the Runtime will parse
to create a template.
|
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.