org.apache.commons.jexl.parser
Class ASTSizeFunction
java.lang.Object
org.apache.commons.jexl.parser.SimpleNode
org.apache.commons.jexl.parser.ASTSizeFunction
- All Implemented Interfaces:
- Node
- public class ASTSizeFunction
- extends SimpleNode
generalized size() function for all classes we can think of
- Version:
- $Id: ASTSizeFunction.java,v 1.6 2004/08/15 16:01:12 dion Exp $
Methods inherited from class org.apache.commons.jexl.parser.SimpleNode |
childrenAccept, dump, execute, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString |
ASTSizeFunction
public ASTSizeFunction(int id)
ASTSizeFunction
public ASTSizeFunction(Parser p,
int id)
jjtAccept
public Object jjtAccept(ParserVisitor visitor,
Object data)
- Accept the visitor.
- Specified by:
jjtAccept
in interface Node
- Overrides:
jjtAccept
in class SimpleNode
value
public Object value(JexlContext jc)
throws Exception
- Description copied from class:
SimpleNode
- Returns the value of the node.
- Overrides:
value
in class SimpleNode
- Throws:
Exception
sizeOf
public static int sizeOf(Object val)
throws Exception
- Throws:
Exception
Copyright © 2003-2005 The Apache Software Foundation. All Rights Reserved.