org.millscript.millscript.datatypes
Class SpiceClass

java.lang.Object
  extended by org.millscript.millscript.datatypes.SpiceClass

public final class SpiceClass
extends java.lang.Object

This class represents a Spice class.


Constructor Summary
SpiceClass(java.lang.String n, SpiceClass p, SlotFunction[] sf, Action[] siv)
          Constructs a new SpiceClass with the specified name.
 
Method Summary
 java.lang.String getName()
          Returns the name of this class.
 SpiceClass getParentSpiceClass()
          Returns the parent Spice class that this class inherits from.
 void initialiseSlots(SpiceObject protoObject, Machine mc)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpiceClass

public SpiceClass(java.lang.String n,
                  SpiceClass p,
                  SlotFunction[] sf,
                  Action[] siv)
Constructs a new SpiceClass with the specified name.

Parameters:
n - the name of this class
p - the parent Spice class, if any
siv - an array of slot initial value actions
Method Detail

initialiseSlots

public void initialiseSlots(SpiceObject protoObject,
                            Machine mc)
See Also:
Action.action(org.millscript.millscript.vm.Machine)

getName

public java.lang.String getName()
Returns the name of this class.

Returns:
a String holding the name of this class

getParentSpiceClass

public SpiceClass getParentSpiceClass()
Returns the parent Spice class that this class inherits from.

Returns:
the SpiceClass this class inherits from

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.