|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.parser.ParserVisitor
org.apache.commons.jexl3.internal.InterpreterBase
org.apache.commons.jexl3.internal.Interpreter
org.apache.commons.jexl3.internal.TemplateInterpreter
public class TemplateInterpreter
The type of interpreter to use during evaluation of templates.
This context exposes its writer as '$jexl' to the scripts.
public for introspection purpose.
Field Summary |
---|
Fields inherited from class org.apache.commons.jexl3.internal.Interpreter |
---|
cache, frame, functions, functors, ns, operators |
Fields inherited from class org.apache.commons.jexl3.internal.InterpreterBase |
---|
arithmetic, AUTOCLOSEABLE, cancelled, context, EMPTY_PARAMS, jexl, logger, uberspect |
Method Summary | |
---|---|
void |
include(TemplateScript script,
Object... args)
Includes a call to another template. |
void |
print(int e)
Prints a unified expression evaluation result. |
protected Object |
resolveNamespace(String prefix,
JexlNode node)
Resolves a namespace, eventually allocating an instance using context as constructor argument. |
protected Object |
visit(ASTFunctionNode node,
Object data)
|
protected Object |
visit(ASTIdentifier node,
Object data)
|
Methods inherited from class org.apache.commons.jexl3.internal.Interpreter |
---|
call, executeAssign, getAttribute, getAttribute, interpret, isLocalVariable, isTernaryProtected, processAnnotation, processAnnotation, setAttribute, setAttribute, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class org.apache.commons.jexl3.internal.InterpreterBase |
---|
annotationError, cancel, closeIfSupported, findNullOperand, invocationException, isCancellable, isCancelled, isSilent, isStrictEngine, operatorError, unsolvableMethod, unsolvableProperty, unsolvableVariable |
Methods inherited from class org.apache.commons.jexl3.parser.ParserVisitor |
---|
visit, visit |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void include(TemplateScript script, Object... args)
Includes another template using this template initial context and writer.
script
- the TemplateScript to evaluateargs
- the argumentspublic void print(int e)
e
- the expression numberprotected Object resolveNamespace(String prefix, JexlNode node)
Interpreter
The lifetime of such instances span the current expression or script evaluation.
resolveNamespace
in class Interpreter
prefix
- the prefix name (may be null for global namespace)node
- the AST node
protected Object visit(ASTFunctionNode node, Object data)
visit
in class Interpreter
protected Object visit(ASTIdentifier node, Object data)
visit
in class Interpreter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |