Package | Description |
---|---|
org.apache.velocity | |
org.apache.velocity.app | |
org.apache.velocity.runtime | |
org.apache.velocity.runtime.directive | |
org.apache.velocity.runtime.parser.node |
Modifier and Type | Method and 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<java.lang.String> macroLibraries)
The AST node structure is merged with the
context to produce the final output.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
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 out,
java.lang.String logTag,
java.lang.String instring)
renders the input string using the context into the output 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 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 writer
|
Modifier and Type | Method and Description |
---|---|
boolean |
Renderable.render(InternalContextAdapter context,
java.io.Writer writer) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Directive.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
How this directive is to be rendered
|
boolean |
Parse.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
boolean |
Include.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
boolean |
Evaluate.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
Evaluate the argument, convert to a String, and evaluate again
(with the same context).
|
boolean |
RuntimeMacro.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
Velocimacro implementation is not known at the init time.
|
boolean |
RuntimeMacro.render(InternalContextAdapter context,
java.io.Writer writer,
Node node,
Renderable body)
This method is used with BlockMacro when we want to render a macro with a body AST.
|
private boolean |
Include.renderOutput(Node node,
InternalContextAdapter context,
java.io.Writer writer)
does the actual rendering of the included file
|
Modifier and Type | Method and Description |
---|---|
boolean |
ASTOrNode.evaluate(InternalContextAdapter context)
the logical or :
|
boolean |
ASTNegateNode.evaluate(InternalContextAdapter context) |
boolean |
ASTComparisonNode.evaluate(InternalContextAdapter context) |
boolean |
ASTAndNode.evaluate(InternalContextAdapter context)
logical and :
|
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 |
SimpleNode.evaluate(InternalContextAdapter context) |
boolean |
ASTNotNode.evaluate(InternalContextAdapter context) |
boolean |
ASTExpression.evaluate(InternalContextAdapter context) |
boolean |
Node.evaluate(InternalContextAdapter context) |
boolean |
ASTElseIfStatement.evaluate(InternalContextAdapter context)
An ASTElseStatement is true if the expression
it contains evaluates to true.
|
boolean |
ASTNENode.evaluate(InternalContextAdapter context) |
java.lang.Object |
ASTIndex.execute(java.lang.Object o,
InternalContextAdapter context) |
java.lang.Object |
ASTMethod.execute(java.lang.Object o,
InternalContextAdapter context)
invokes the method.
|
java.lang.Object |
ASTReference.execute(java.lang.Object o,
InternalContextAdapter context)
gets an Object that 'is' the value of the reference
|
java.lang.Object |
SimpleNode.execute(java.lang.Object o,
InternalContextAdapter context) |
java.lang.Object |
ASTIdentifier.execute(java.lang.Object o,
InternalContextAdapter context) |
java.lang.Object |
Node.execute(java.lang.Object o,
InternalContextAdapter context) |
boolean |
ASTBlock.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTReference.render(InternalContextAdapter context,
java.io.Writer writer)
gets the value of the reference and outputs it to the
writer.
|
boolean |
SimpleNode.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTDirective.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
Node.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTIfStatement.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTElseIfStatement.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTSetDirective.render(InternalContextAdapter context,
java.io.Writer writer)
puts the value of the RHS into the context under the key of the LHS
|
boolean |
ASTComment.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTReference.setValue(InternalContextAdapter context,
java.lang.Object value)
Sets the value of a complex reference (something like $foo.bar)
Currently used by ASTSetReference()
|
java.lang.Object |
ASTMathNode.value(InternalContextAdapter context)
gets the two args and performs the operation on them
|
java.lang.Object |
ASTOrNode.value(InternalContextAdapter context)
Returns the value of the expression.
|
java.lang.Object |
ASTNegateNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTComparisonNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTAndNode.value(InternalContextAdapter context)
Returns the value of the expression.
|
java.lang.Object |
ASTReference.value(InternalContextAdapter context) |
java.lang.Object |
SimpleNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTNotNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTIntegerRange.value(InternalContextAdapter context)
does the real work.
|
java.lang.Object |
ASTExpression.value(InternalContextAdapter context) |
java.lang.Object |
Node.value(InternalContextAdapter context) |
java.lang.Object |
ASTObjectArray.value(InternalContextAdapter context) |
java.lang.Object |
ASTMap.value(InternalContextAdapter context) |