inria.meije.rc.sugarcubes
Class Argument

java.lang.Object
  |
  +--inria.meije.rc.sugarcubes.Argument
All Implemented Interfaces:
java.io.Serializable

public final class Argument
extends java.lang.Object
implements java.io.Serializable

The Argument class allows one to create a typed value in SugarCubes. Arguments are used in different cases including:

After construction neither the type nor the value of an Argument can be changed.

See Also:
Serialized Form

Field Summary
 java.lang.Class type
          The type of the Value
 java.lang.Object value
          The value of the Argument
 
Constructor Summary
Argument(java.lang.Class type, java.lang.Object value)
          The constructor gets a Class object as first argument, representing the type of the second argument, which is the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public final java.lang.Class type
The type of the Value

value

public final java.lang.Object value
The value of the Argument
Constructor Detail

Argument

public Argument(java.lang.Class type,
                java.lang.Object value)
The constructor gets a Class object as first argument, representing the type of the second argument, which is the value.