public class ASTMethod extends SimpleNode
Modifier and Type | Class and Description |
---|---|
static class |
ASTMethod.MethodCacheKey
Internal class used as key for method cache.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
strictRef
Indicates if we are running in strict reference mode.
|
protected Info |
uberInfo |
Constructor and Description |
---|
ASTMethod(int id) |
ASTMethod(Parser p,
int id) |
Modifier and Type | Method and Description |
---|---|
Object |
execute(Object o,
InternalContextAdapter context)
invokes the method.
|
String |
getMethodName() |
Object |
init(InternalContextAdapter context,
Object data)
simple init - init our subtree and get what we can from
the AST
|
Object |
jjtAccept(ParserVisitor visitor,
Object data) |
childrenAccept, cleanupParserAndTokens, dump, dump, dump, evaluate, getColumn, getFirstToken, getFirstTokenImage, getInfo, getLastToken, getLastTokenImage, getLine, getLocation, getRuntimeServices, getTemplate, getTemplateName, getType, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, saveTokenImages, setFirstToken, setInfo, setInvalid, toString, toString, value
protected Info uberInfo
protected boolean strictRef
public ASTMethod(int id)
id
- public ASTMethod(Parser p, int id)
p
- id
- public Object jjtAccept(ParserVisitor visitor, Object data)
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
SimpleNode.jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor, java.lang.Object)
public Object init(InternalContextAdapter context, Object data) throws TemplateInitException
init
in interface Node
init
in class SimpleNode
context
- data
- TemplateInitException
Node.init(org.apache.velocity.context.InternalContextAdapter, java.lang.Object)
public Object execute(Object o, InternalContextAdapter context) throws MethodInvocationException
execute
in interface Node
execute
in class SimpleNode
o
- context
- MethodInvocationException
Node.execute(java.lang.Object, org.apache.velocity.context.InternalContextAdapter)
public String getMethodName()
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.