| |
|
| java.lang.Object org.hecl.ObjectThing
ObjectThing | public class ObjectThing implements RealThing(Code) | | 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.
author: David N. Welton version: 1.0 |
Constructor Summary | |
public | ObjectThing() Creates a new ObjectThing instance equal to 0. | public | ObjectThing(Object o) Creates a new ObjectThing instance with value i. |
Method Summary | |
public static Thing | create(Object o) The create method creates and returns a newly allocated
Thing with an ObjectThing internal representation. | public RealThing | deepcopy() deepcopy makes a copy. | public Object | get() Retrieve the object associated with this instance. | public static Object | get(Thing thing) get attempts to fetch an Object from the Thing. | public String | getStringRep() getStringRep creates a string representation of the
ObjectThing. | public String | thingclass() |
ObjectThing | public ObjectThing()(Code) | | Creates a new ObjectThing instance equal to 0.
|
ObjectThing | public ObjectThing(Object o)(Code) | | Creates a new ObjectThing instance with value i.
Parameters: o - an Object . |
create | public static Thing create(Object o)(Code) | | The create method creates and returns a newly allocated
Thing with an ObjectThing internal representation.
Parameters: o - an Object a Thing value |
deepcopy | public RealThing deepcopy()(Code) | | deepcopy makes a copy.
a RealThing value |
get | public Object get()(Code) | | Retrieve the object associated with this instance.
|
getStringRep | public String getStringRep()(Code) | | getStringRep creates a string representation of the
ObjectThing.
a String value |
|
|
|