jelan.simple
Class Variable
java.lang.Object
jelan.simple.GrammarElement
jelan.simple.Expression
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)
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Variable
public Variable(java.lang.String s)
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