com.yosokumo.core
Class Value

java.lang.Object
  extended by com.yosokumo.core.Value
Direct Known Subclasses:
EmptyValue, IntegerValue, NaturalValue, RealValue, SpecialValue

public abstract class Value
extends java.lang.Object

An abstract base class for value classes which store specific primitive data types, e.g., IntegerValue and RealValue.


Nested Class Summary
static class Value.Type
          Indicates the data type stored in the Value, e.g., integer or real.
 
Constructor Summary
Value()
           
 
Method Summary
abstract  Value.Type getType()
          Return the type of the value.
abstract  java.lang.String toString()
          Return the value as a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Value

public Value()
Method Detail

getType

public abstract Value.Type getType()
Return the type of the value.

Returns:
the type of the value.

toString

public abstract java.lang.String toString()
Return the value as a String.

Overrides:
toString in class java.lang.Object
Returns:
the value as a String.