org.apache.commons.jexl.parser
public class ASTSizeMethod extends SimpleNode
Version: $Id: ASTSizeMethod.java 398324 2006-04-30 12:20:24Z dion $
Constructor Summary | |
---|---|
ASTSizeMethod(int id)
Create the node given an id.
| |
ASTSizeMethod(Parser p, int id)
Create a node with the given parser and id.
|
Method Summary | |
---|---|
Object | execute(Object obj, JexlContext jc)
evaluate size as part of an expression on a base object.
foo.bar.size
|
Object | jjtAccept(ParserVisitor visitor, Object data) |
Parameters: id node id.
Parameters: p a parser. id node id.
Parameters: jc the JexlContext to evaluate against. obj not used.
Returns: the value of the array expression.
Throws: Exception on any error