org.bbop.expression.parser
Class ASTExpressionExpression

java.lang.Object
  extended by org.bbop.expression.parser.SimpleNode
      extended by org.bbop.expression.parser.ASTExpressionExpression
All Implemented Interfaces:
Node

public class ASTExpressionExpression
extends SimpleNode


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.bbop.expression.parser.SimpleNode
children, first_token, id, last_token, parent, parser
 
Constructor Summary
ASTExpressionExpression(int id)
          Create the node given an id.
ASTExpressionExpression(Parser p, int id)
          Create a node with the given parser and id.
 
Method Summary
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 java.lang.Object value(JexlContext context)
          Gets the value of this node.
 
Methods inherited from class org.bbop.expression.parser.SimpleNode
childrenAccept, dump, execute, getCharNum, getEnclosingScript, getLineNum, interpret, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setValue, throwExpressionException, throwExpressionException, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

ASTExpressionExpression

public ASTExpressionExpression(int id)
Create the node given an id.

Parameters:
id - node id.

ASTExpressionExpression

public ASTExpressionExpression(Parser p,
                               int id)
Create a node with the given parser and id.

Parameters:
p - a parser.
id - node 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
Parameters:
visitor - a ParserVisitor.
data - data to be passed along to the visitor.
Returns:
the value from visiting.
See Also:
ParserVisitor.visit(org.bbop.expression.parser.SimpleNode, java.lang.Object)

value

public java.lang.Object value(JexlContext context)
                       throws java.lang.Exception
Gets the value of this node.

Overrides:
value in class SimpleNode
Parameters:
context - the context to retrieve values from.
Returns:
the value of the node.
Throws:
java.lang.Exception - when evaluating the operands fails.