jelan.simple
Class Variable

java.lang.Object
  extended by jelan.simple.GrammarElement
      extended by jelan.simple.Expression
          extended by jelan.simple.Variable
All Implemented Interfaces:
java.lang.Comparable<Variable>

public class Variable
extends Expression
implements java.lang.Comparable<Variable>


Constructor Summary
Variable(java.lang.String s)
           
 
Method Summary
 int compareTo(Variable v)
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object evaluate(Context c)
           
 int hashCode()
           
 java.lang.String toString()
           
 double value(Context c)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variable

public Variable(java.lang.String s)
Method Detail

evaluate

public java.lang.Object evaluate(Context c)
Overrides:
evaluate in class Expression

value

public double value(Context c)
Specified by:
value in class Expression

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(Variable v)
Specified by:
compareTo in interface java.lang.Comparable<Variable>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object