|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.millscript.datatypes.SpiceObject
public final class SpiceObject
This class represents an instance of a Spice class.
| Constructor Summary | |
|---|---|
SpiceObject(SpiceClass sc)
Constructs a new Spice object instance, for the specified class. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getSlotValue(SlotFunction sf)
Returns the value of the specified slot. |
SpiceClass |
getSpiceClass()
Returns the SpiceClass this object is an instance of. |
void |
initialiseSlotValue(SlotFunction sf,
java.lang.Object value)
Initialises the specified slot with the specified value. |
java.lang.String |
toString()
Returns a string describing this Spice object. |
void |
updateSlotValue(SlotFunction sf,
java.lang.Object value)
Updates the value of the specified slot with the specified value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SpiceObject(SpiceClass sc)
sc - the class this object is an instance of| Method Detail |
|---|
public java.lang.Object getSlotValue(SlotFunction sf)
sf - the slot accessor function for the required slot
public SpiceClass getSpiceClass()
public void initialiseSlotValue(SlotFunction sf,
java.lang.Object value)
sf - the slot to initialisevalue - the value to initialise the slot with
public void updateSlotValue(SlotFunction sf,
java.lang.Object value)
sf - the slot to updatevalue - the new value for the specified slotpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||