com.googlecode.sarasvati.rubric.lang
Class RubricExprSymbol

java.lang.Object
  extended by com.googlecode.sarasvati.rubric.lang.AbstractRubricExpr
      extended by com.googlecode.sarasvati.rubric.lang.RubricExprSymbol
All Implemented Interfaces:
RubricExpr

public class RubricExprSymbol
extends AbstractRubricExpr


Constructor Summary
RubricExprSymbol(String symbol)
           
 
Method Summary
 RubricExprSymbol asSymbol()
           
 boolean eval(PredicateEnv env)
           
 String getSymbol()
           
 boolean isEqualTo(RubricExpr expr)
           
 boolean isSymbol()
           
 void setSymbol(String symbol)
           
 String toString()
           
 void traverse(RubricVisitor visitor)
           
 
Methods inherited from class com.googlecode.sarasvati.rubric.lang.AbstractRubricExpr
asAnd, asNot, asOr, isAnd, isNot, isOr
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubricExprSymbol

public RubricExprSymbol(String symbol)
Method Detail

getSymbol

public String getSymbol()

setSymbol

public void setSymbol(String symbol)

eval

public boolean eval(PredicateEnv env)

traverse

public void traverse(RubricVisitor visitor)

isSymbol

public boolean isSymbol()
Specified by:
isSymbol in interface RubricExpr
Overrides:
isSymbol in class AbstractRubricExpr

asSymbol

public RubricExprSymbol asSymbol()
Specified by:
asSymbol in interface RubricExpr
Overrides:
asSymbol in class AbstractRubricExpr

isEqualTo

public boolean isEqualTo(RubricExpr expr)

toString

public String toString()
Overrides:
toString in class Object