Node:Classes, Next:, Up:Introspection



3.10.1 Classes

class-name class primitive procedure
Return the name of class class. This is the value of the class metaobject's name slot.

class-direct-supers class primitive procedure
Return a list containing the direct superclasses of class. This is the value of the class metaobject's direct-supers slot.

class-direct-slots class primitive procedure
Return a list containing the slot definitions of the direct slots of class. This is the value of the class metaobject's direct-slots slot.

class-direct-subclasses class primitive procedure
Return a list containing the direct subclasses of class. This is the value of the class metaobject's direct-subclasses slot.

class-direct-methods class primitive procedure
Return a list of all the generic function methods that use class as a formal parameter specializer. This is the value of the class metaobject's direct-methods slot.

class-precedence-list class primitive procedure
Return the class precedence list for class class (see Class precedence list). This is the value of the class metaobject's cpl slot.

class-slots class primitive procedure
Return a list containing the slot definitions for all class's slots, including any slots that are inherited from superclasses. This is the value of the class metaobject's slots slot.

class-environment class primitive procedure
Return the value of class's environment slot. [ *fixme* I don't know what this value is used for. ]

class-subclasses class procedure
Return a list of all subclasses of class.

class-methods class procedure
Return a list of all methods that use class or a subclass of class as one of its formal parameter specializers.