org.apache.commons.jexl.parser
Class ASTReference

java.lang.Object
  extended byorg.apache.commons.jexl.parser.SimpleNode
      extended byorg.apache.commons.jexl.parser.ASTReference
All Implemented Interfaces:
Node

public class ASTReference
extends SimpleNode

reference - any variable expression

Version:
$Id: ASTReference.java,v 1.2 2003/10/09 21:28:55 rdonkin Exp $
Author:
Geir Magnusson Jr.

Field Summary
(package private)  SimpleNode root
           
 
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
 java.lang.Object execute(java.lang.Object obj, JexlContext jc)
          Used to let a node calcuate it's value..
 java.lang.String getRootString()
           
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void jjtClose()
          This method is called after all the child nodes have been added.
 java.lang.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
 

Field Detail

root

SimpleNode root
Constructor Detail

ASTReference

public ASTReference(int id)

ASTReference

public ASTReference(Parser p,
                    int id)
Method Detail

jjtAccept

public java.lang.Object jjtAccept(ParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode

value

public java.lang.Object value(JexlContext jc)
                       throws java.lang.Exception
Description copied from class: SimpleNode
Returns the value of the node.

Overrides:
value in class SimpleNode
Throws:
java.lang.Exception

jjtClose

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

Specified by:
jjtClose in interface Node
Overrides:
jjtClose in class SimpleNode

execute

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

Overrides:
execute in class SimpleNode
Throws:
java.lang.Exception

getRootString

public java.lang.String getRootString()
                               throws java.lang.Exception
Throws:
java.lang.Exception