public class ASTIndex extends SimpleNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
strictRef
Indicates if we are running in strict reference mode.
|
| Constructor and Description |
|---|
ASTIndex(int i) |
ASTIndex(Parser p,
int i) |
| Modifier and Type | Method and Description |
|---|---|
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, valueprotected boolean strictRef
public ASTIndex(int i)
public ASTIndex(Parser p, int i)
public java.lang.Object init(InternalContextAdapter context, java.lang.Object data) throws TemplateInitException
init in interface Nodeinit in class 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 in interface Nodeexecute in class SimpleNodeMethodInvocationExceptionNode.execute(java.lang.Object, bboss.org.apache.velocity.context.InternalContextAdapter)