File tom/State


class tom.State

Inherits

Behaviour supers
All

variables

State isa;
Our class. The `State' class is an instance of the State meta-class. The same is true for every other class.
private int asi;
Information used, in cunning ways, by the runtime.

methods

instance (id)
  alloc;
Return a newly created instance of the receiving class. All values, apart from the isa will have been initialized to their default value.

boolean
  classp;
Return TRUE, since we're a class object.

boolean
  coding-permanent-object-p;
Return YES. This should not be changed; this method is used in situations where it is not known whether the object is a class or not. In other situations, where it is known to be a class, this method is not invoked as it is known to return YES.

boolean
  dump_simple_p;
Return YES.

class (id)
  kind;
Return the class of the receiving object, i.e. the value of isa.

ByteString
  name;
Return the name of this class.

int (n)
  num_instances;
Return the number of currently live direct instances of this class, non-transitively.

Unit (unit)
  unit
post
  unit != nil;
Return the unit of this class. The postcondition states that such a unit must exit.

instance (id)
  new;
Return a newly created and initialized instance of the receiving class.

OutputStream
  write OutputStream s;
Write a description of this class object to the stream s.

instance tom.State

Inherits

Behaviour supers
All

variables

class (id) isa;
Our class.
private int asi;
Information used, in cunning ways, by the runtime.

methods

boolean
  classp;
Return FALSE, as we're an instance, and not a class.

protected void
    dump MutableKeyed done
  indent MutableByteString prefix
  simple boolean allow_simple
   level int level
      to OutputStream s;
Hard worker for dump.

id
  init;
Designated initializer. Does nothing.

class (id)
  kind;
Return the class of the receiving object.

void
  set_kind class (State) a_class;
Change the class of the receiving object (i.e., the isa) into the a_class. Currently both the original and the new class must carry exactly the same state. Looser restrictions could be implemented...

OutputStream
  write OutputStream s;
Write the class and address of the receiving object to the stream s.

OutputStream
  writeFields OutputStream s;
Subsidiary for write to allow subclasses to write their fields to the stream s. The default implementation does nothing.

Garbage collection

void
  dealloc;
Invoked by the garbage collector when an object has become garbage. Some important notes apply to this method:

Do not message any other objects from within this method as they might have become garbage too.

Since class objects can not become garbage, it is safe to message class objects.

When overriding this method, it is not necessary to invoke State's implementation.

void
  gc_mark_elements;
This method is invoked by the garbage collector for instances which employ pointer typed instance variables, to have the receiving object mark the elements it references through said pointers. The default implementation marks the object referencing variables.


Generated by tm 1.01.