orc.orchard.oil
Class Option

java.lang.Object
  extended by orc.orchard.oil.Expression
      extended by orc.orchard.oil.Argument
          extended by orc.orchard.oil.Value
              extended by orc.orchard.oil.Option
All Implemented Interfaces:
java.io.Serializable

public class Option
extends Value

Rather than using two different classes for NoneValue and SomeValue, we assume use null to represent NoneValue, and Constant(null) to represent a null SomeValue.

Author:
quark
See Also:
Serialized Form

Constructor Summary
Option()
           
Option(Value value)
           
 
Method Summary
 java.lang.String toString()
           
 Arg unmarshal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Option

public Option()

Option

public Option(Value value)
Method Detail

toString

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

unmarshal

public Arg unmarshal()
              throws InvalidOilException
Specified by:
unmarshal in class Value
Throws:
InvalidOilException