org.apache.velocity.runtime.parser.node
Class ASTMethod
- Node
ASTMethod.java
Method support for references : $foo.method()
NOTE :
introspection is now done at render time.
Please look at the Parser.jjt file which is
what controls the generation of this class.
Version:
- Jason van Zyl
- Geir Magnusson Jr.
childrenAccept , dump , evaluate , execute , getColumn , getFirstToken , getInfo , getLastToken , getLine , getType , init , isInvalid , jjtAccept , jjtAddChild , jjtClose , jjtGetChild , jjtGetNumChildren , jjtGetParent , jjtOpen , jjtSetParent , literal , render , setFirstToken , setInfo , setInvalid , toString , value |
methodName
private String methodName
paramCount
private int paramCount
ASTMethod
public ASTMethod(int id)
ASTMethod
public ASTMethod(Parser p,
int id)
doIntrospection
private Method doIntrospection(InternalContextAdapter context,
Class data,
Object[] params)
throws MethodInvocationException,
Exception
does the instrospection of the class for the method needed.
Note, as this calls value() on the args if any, this must
only be called at execute() / render() time
Copyright © 2003 Apache Software Foundation. All Rights Reserved.