org.apache.commons.jexl.parser
Class ASTSizeMethod
java.lang.Object
org.apache.commons.jexl.parser.SimpleNode
org.apache.commons.jexl.parser.ASTSizeMethod
- All Implemented Interfaces:
- Node
- public class ASTSizeMethod
- extends SimpleNode
Simple testcases
- Version:
- $Id: ASTSizeMethod.java,v 1.3 2004/02/28 13:45:20 yoavs Exp $
Methods inherited from class org.apache.commons.jexl.parser.SimpleNode |
childrenAccept, dump, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString, value |
ASTSizeMethod
public ASTSizeMethod(int id)
ASTSizeMethod
public ASTSizeMethod(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
execute
public Object execute(Object obj,
JexlContext jc)
throws Exception
- returns the value of itself applied to the object.
We assume that an identifier can be gotten via a get(String)
- Overrides:
execute
in class SimpleNode
- Throws:
Exception
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.