edu.cmu.aura.service.query
Class ExpressionNode

java.lang.Object
  |
  +--edu.cmu.aura.service.query.ExpressionNode
Direct Known Subclasses:
BoolNode, LeafNode

public abstract class ExpressionNode
extends java.lang.Object

Abstract class representing a node in an expression tree.


Constructor Summary
ExpressionNode()
           
 
Method Summary
 int getOperator()
          Get this node's operator.
abstract  java.lang.String getOperatorName()
          Get the name of this node's operator.
 boolean isLeafNode()
          Return whether or not this is a leaf node.
abstract  void setOperator(int operator)
          Set this node's operator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionNode

public ExpressionNode()
Method Detail

getOperator

public final int getOperator()
Get this node's operator.

Returns:
this node's operator.

setOperator

public abstract void setOperator(int operator)
Set this node's operator

Parameters:
operator - this node's operator

getOperatorName

public abstract java.lang.String getOperatorName()
Get the name of this node's operator.

Returns:
the name of this node's operator.

isLeafNode

public final boolean isLeafNode()
Return whether or not this is a leaf node.

Returns:
whether or not this is a leaf node