slogo.expression
Class Number

java.lang.Object
  extended by slogo.language.GrammarElement
      extended by slogo.expression.Expression
          extended by slogo.expression.Number

public class Number
extends Expression


Field Summary
protected  double myValue
           
 
Fields inherited from class slogo.language.GrammarElement
gelementsToValue
 
Constructor Summary
Number(double d)
           
 
Method Summary
 java.lang.String toString()
           
 double value(Context c)
           
 
Methods inherited from class slogo.expression.Expression
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myValue

protected double myValue
Constructor Detail

Number

public Number(double d)
Method Detail

value

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

toString

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