org.apache.commons.jexl.parser
public class ASTSizeFunction extends SimpleNode
Version: $Id: ASTSizeFunction.java 398324 2006-04-30 12:20:24Z dion $
Constructor Summary | |
---|---|
ASTSizeFunction(int id)
Create the node given an id.
| |
ASTSizeFunction(Parser p, int id)
Create a node with the given parser and id.
|
Method Summary | |
---|---|
Object | jjtAccept(ParserVisitor visitor, Object data) |
static int | sizeOf(Object val)
Calculate the size of various types: Collection, Array, Map, String,
and anything that has a int size() method.
|
Object | value(JexlContext jc) |
Parameters: id node id.
Parameters: p a parser. id node id.
size
of various types: Collection, Array, Map, String,
and anything that has a int size() method.
Parameters: val the object to get the size of.
Returns: the size of val
Throws: Exception if the size cannot be determined.