org.apache.commons.jexl.parser
Class ASTSizeMethod

java.lang.Object
  extended byorg.apache.commons.jexl.parser.SimpleNode
      extended byorg.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 $

Field Summary
 
Fields inherited from class org.apache.commons.jexl.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTSizeMethod(int id)
           
ASTSizeMethod(Parser p, int id)
           
 
Method Summary
 Object execute(Object obj, JexlContext jc)
          returns the value of itself applied to the object.
 Object jjtAccept(ParserVisitor visitor, Object data)
          Accept the visitor.
 
Methods inherited from class org.apache.commons.jexl.parser.SimpleNode
childrenAccept, dump, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTSizeMethod

public ASTSizeMethod(int id)

ASTSizeMethod

public ASTSizeMethod(Parser p,
                     int id)
Method Detail

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.