public class Evaluate extends Directive
BLOCK, LINE
Constructor and Description |
---|
Evaluate() |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return name of this directive.
|
int |
getType()
Return type of this directive.
|
void |
init(RuntimeServices rs,
InternalContextAdapter context,
Node node)
Initialize and check arguments.
|
boolean |
render(InternalContextAdapter context,
Writer writer,
Node node)
Evaluate the argument, convert to a String, and evaluate again
(with the same context).
|
checkArgs, getColumn, getLine, getScopeName, getTemplate, getTemplateName, isScopeProvided, makeScope, postRender, preRender, setLocation, setLocation
public String getName()
public int getType()
public void init(RuntimeServices rs, InternalContextAdapter context, Node node) throws TemplateInitException
init
in class Directive
rs
- context
- node
- TemplateInitException
public boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException
render
in class Directive
context
- writer
- node
- IOException
ResourceNotFoundException
ParseErrorException
MethodInvocationException
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.