public class ASTIndex extends SimpleNode
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
strictRef
Indicates if we are running in strict reference mode.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static java.lang.Object |
adjMinusIndexArg(java.lang.Object argument,
java.lang.Object o,
InternalContextAdapter context,
SimpleNode node)
If argument is an Integer and negative, then return (o.size() - argument).
|
java.lang.Object |
execute(java.lang.Object o,
InternalContextAdapter context) |
java.lang.Object |
init(InternalContextAdapter context,
java.lang.Object data) |
childrenAccept, dump, evaluate, getChildren, getColumn, getFirstToken, getInfo, getLastToken, getLine, getLocation, getRuntimeServices, getTemplateName, getType, isInvalid, jjtAccept, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, toString, valuepublic ASTIndex(int i)
public ASTIndex(Parser p, int i)
public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
init 在接口中 Nodeinit 在类中 SimpleNodeTemplateInitExceptionNode.init(bboss.org.apache.velocity.context.InternalContextAdapter, java.lang.Object)public static java.lang.Object adjMinusIndexArg(java.lang.Object argument,
java.lang.Object o,
InternalContextAdapter context,
SimpleNode node)
context - Used to access the method cache.node - ASTNode used for error reporting.public java.lang.Object execute(java.lang.Object o,
InternalContextAdapter context)
throws MethodInvocationException
execute 在接口中 Nodeexecute 在类中 SimpleNodeMethodInvocationExceptionNode.execute(java.lang.Object, bboss.org.apache.velocity.context.InternalContextAdapter)