Package | Description |
---|---|
org.apache.velocity | |
org.apache.velocity.app | |
org.apache.velocity.runtime.directive | |
org.apache.velocity.runtime.parser.node | |
org.apache.velocity.servlet |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
VelocityEngine.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.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.
|
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 out,
java.lang.String logTag,
java.lang.String instring)
renders the input string 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.mergeTemplate(java.lang.String templateName,
Context context,
java.io.Writer writer)
merges a template and puts the rendered stream into the writer
|
static 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 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
|
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 |
Include.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
boolean |
Parse.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
iterates through the argument list and renders every
argument that is appropriate.
|
boolean |
VelocimacroProxy.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
Renders the macro using the context
|
boolean |
Foreach.render(InternalContextAdapter context,
java.io.Writer writer,
Node node)
renders the #foreach() block
|
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 |
ASTEQNode.evaluate(InternalContextAdapter context)
Calculates the value of the logical expression
arg1 == arg2
All class types are supported.
|
boolean |
ASTElseIfStatement.evaluate(InternalContextAdapter context)
An ASTElseStatement is true if the expression
it contains evaluates to true.
|
boolean |
ASTLENode.evaluate(InternalContextAdapter context) |
boolean |
ASTNotNode.evaluate(InternalContextAdapter context) |
boolean |
ASTLTNode.evaluate(InternalContextAdapter context) |
boolean |
ASTGENode.evaluate(InternalContextAdapter context) |
boolean |
ASTExpression.evaluate(InternalContextAdapter context) |
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 |
ASTGTNode.evaluate(InternalContextAdapter context) |
boolean |
SimpleNode.evaluate(InternalContextAdapter context) |
boolean |
ASTOrNode.evaluate(InternalContextAdapter context)
the logical or :
the rule :
left || null -> left
null || right -> right
null || null -> false
left || right -> left || right
|
boolean |
Node.evaluate(InternalContextAdapter context) |
boolean |
ASTNENode.evaluate(InternalContextAdapter context) |
boolean |
ASTAndNode.evaluate(InternalContextAdapter context)
logical and :
null && right = false
left && null = false
null && null = false
|
java.lang.Object |
ASTIdentifier.execute(java.lang.Object o,
InternalContextAdapter context)
invokes the method on the object passed in
|
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 |
Node.execute(java.lang.Object o,
InternalContextAdapter context) |
java.lang.Object |
ASTMethod.execute(java.lang.Object o,
InternalContextAdapter context)
invokes the method.
|
java.lang.Object |
GetExecutor.OLDexecute(java.lang.Object o,
InternalContextAdapter context)
Execute method against context.
|
boolean |
ASTElseIfStatement.render(InternalContextAdapter context,
java.io.Writer writer)
renders the block
|
boolean |
ASTBlock.render(InternalContextAdapter context,
java.io.Writer writer) |
boolean |
ASTDirective.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 |
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 |
ASTComment.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 |
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 |
ASTEQNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTAddNode.value(InternalContextAdapter context)
computes the sum of the two nodes.
|
java.lang.Object |
ASTObjectArray.value(InternalContextAdapter context) |
java.lang.Object |
ASTDivNode.value(InternalContextAdapter context)
computes the result of the division.
|
java.lang.Object |
ASTLENode.value(InternalContextAdapter context) |
java.lang.Object |
ASTNotNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTIntegerRange.value(InternalContextAdapter context)
does the real work.
|
java.lang.Object |
ASTLTNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTGENode.value(InternalContextAdapter context) |
java.lang.Object |
ASTSubtractNode.value(InternalContextAdapter context)
computes the value of the subtraction.
|
java.lang.Object |
ASTExpression.value(InternalContextAdapter context) |
java.lang.Object |
ASTReference.value(InternalContextAdapter context) |
java.lang.Object |
ASTGTNode.value(InternalContextAdapter context) |
java.lang.Object |
SimpleNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTOrNode.value(InternalContextAdapter context)
Returns the value of the expression.
|
java.lang.Object |
Node.value(InternalContextAdapter context) |
java.lang.Object |
ASTModNode.value(InternalContextAdapter context) |
java.lang.Object |
ASTNENode.value(InternalContextAdapter context) |
java.lang.Object |
ASTAndNode.value(InternalContextAdapter context)
Returns the value of the expression.
|
java.lang.Object |
ASTMulNode.value(InternalContextAdapter context)
computes the product of the two args.
|
Modifier and Type | Method and Description |
---|---|
protected void |
VelocityServlet.mergeTemplate(Template template,
Context context,
javax.servlet.http.HttpServletResponse response)
merges the template with the context.
|
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.