|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hecl.ObjectThing
public class ObjectThing
The ObjectThing class provides a wrapper for objects
that are not directly representable as strings. FIXME - I am
uncertain if this will actually work or not.
| Constructor Summary | |
|---|---|
ObjectThing()
Creates a new ObjectThing instance equal to 0. |
|
ObjectThing(java.lang.Object o)
Creates a new ObjectThing instance with value i. |
|
| Method Summary | |
|---|---|
static Thing |
create(java.lang.Object o)
The create method creates and returns a newly allocated
Thing with an ObjectThing internal representation. |
RealThing |
deepcopy()
deepcopy makes a copy. |
java.lang.Object |
get()
Retrieve the object associated with this instance. |
static java.lang.Object |
get(Thing thing)
get attempts to fetch an Object from the Thing. |
java.lang.String |
getStringRep()
getStringRep creates a string representation of the
ObjectThing. |
java.lang.String |
thingclass()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectThing()
ObjectThing instance equal to 0.
public ObjectThing(java.lang.Object o)
ObjectThing instance with value i.
o - an Object.| Method Detail |
|---|
public java.lang.String thingclass()
thingclass in interface RealThingpublic java.lang.Object get()
public static Thing create(java.lang.Object o)
create method creates and returns a newly allocated
Thing with an ObjectThing internal representation.
o - an Object
Thing value
public static java.lang.Object get(Thing thing)
throws HeclException
get attempts to fetch an Object from the Thing.
thing - a Thing value
Object value
HeclException - if an error occurspublic RealThing deepcopy()
deepcopy makes a copy.
deepcopy in interface RealThingRealThing valuepublic java.lang.String getStringRep()
getStringRep creates a string representation of the
ObjectThing.
getStringRep in interface RealThingString value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||