org.hecl
Class ObjectThing
- java.lang.Object
-
- org.hecl.ObjectThing
-
-
Constructor Summary
Constructors Constructor and Description ObjectThing()Creates a newObjectThinginstance equal to 0.ObjectThing(java.lang.Object o)Creates a newObjectThinginstance with value i.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Thingcreate(java.lang.Object o)Thecreatemethod creates and returns a newly allocated Thing with an ObjectThing internal representation.RealThingdeepcopy()deepcopymakes a copy.java.lang.Objectget()Retrieve the object associated with this instance.static java.lang.Objectget(Thing thing)getattempts to fetch an Object from the Thing.java.lang.StringgetStringRep()getStringRepcreates a string representation of the ObjectThing.java.lang.Stringthingclass()
-
-
-
Constructor Detail
-
ObjectThing
public ObjectThing()
Creates a newObjectThinginstance equal to 0.
-
ObjectThing
public ObjectThing(java.lang.Object o)
Creates a newObjectThinginstance with value i.- Parameters:
o- anObject.
-
-
Method Detail
-
thingclass
public java.lang.String thingclass()
- Specified by:
thingclassin interfaceRealThing
-
get
public java.lang.Object get()
Retrieve the object associated with this instance.
-
create
public static Thing create(java.lang.Object o)
Thecreatemethod creates and returns a newly allocated Thing with an ObjectThing internal representation.- Parameters:
o- anObject- Returns:
- a
Thingvalue
-
get
public static java.lang.Object get(Thing thing) throws HeclException
getattempts to fetch an Object from the Thing.- Parameters:
thing- aThingvalue- Returns:
- an
Objectvalue - Throws:
HeclException- if an error occurs
-
deepcopy
public RealThing deepcopy()
deepcopymakes a copy.
-
getStringRep
public java.lang.String getStringRep()
getStringRepcreates a string representation of the ObjectThing.- Specified by:
getStringRepin interfaceRealThing- Returns:
- a
Stringvalue
-
-
DataMelt 3.0 © DataMelt by jWork.ORG