org.apache.commons.jexl.parser
Class ASTReference

java.lang.Object
  |
  +--org.apache.commons.jexl.parser.SimpleNode
        |
        +--org.apache.commons.jexl.parser.ASTReference
All Implemented Interfaces:
Node

public class ASTReference
extends SimpleNode

reference - any variable expression

Version:
$Id: ASTReference.java,v 1.4 2004/09/01 00:35:38 dion Exp $

Fields inherited from class org.apache.commons.jexl.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTReference(int id)
           
ASTReference(Parser p, int id)
           
 
Method Summary
 Object execute(Object obj, JexlContext jc)
          Used to let a node calcuate it's value..
 String getRootString()
           
 Object jjtAccept(ParserVisitor visitor, Object data)
          Accept the visitor.
 void jjtClose()
          This method is called after all the child nodes have been added.
 Object value(JexlContext jc)
          Returns the value of the node.
 
Methods inherited from class org.apache.commons.jexl.parser.SimpleNode
childrenAccept, dump, interpret, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTReference

public ASTReference(int id)

ASTReference

public ASTReference(Parser p,
                    int id)
Method Detail

jjtAccept

public Object jjtAccept(ParserVisitor visitor,
                        Object data)
Accept the visitor.
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

jjtClose

public void jjtClose()
Description copied from interface: Node
This method is called after all the child nodes have been added.
Overrides:
jjtClose in class SimpleNode

execute

public Object execute(Object obj,
                      JexlContext jc)
               throws Exception
Description copied from class: SimpleNode
Used to let a node calcuate it's value..
Overrides:
execute in class SimpleNode

getRootString

public String getRootString()
                     throws Exception


Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.