In this and the immediately following sections, the ``reader'' generic functions which simply return information associated with a particular kind of metaobject are presented together. General information is presented first, followed by a description of the purpose of each, and ending with the specified methods for these generic functions.
The reader generic functions which simply return information associated with class metaobjects are presented together in this section.
Each of the reader generic functions for class metaobjects has the same syntax, accepting one required argument called class, which must be an class metaobject; otherwise, an error is signaled. An error is also signaled if the class metaobject has not been initialized.
These generic functions can be called by the user or the implementation.
For any of these generic functions which returns a list, such lists will not be mutated by the implementation. The results are undefined if a portable program allows such a list to be mutated.
Generic Function | class-default-initargs |
Generic Function | class-direct-default-initargs |
Generic Function | class-direct-slots |
Generic Function | class-direct-subclasses |
Generic Function | class-direct-superclasses |
Generic Function | class-finalized-p |
Generic Function | class-name |
Generic Function | class-precedence-list |
Generic Function | class-prototype |
Generic Function | class-slots |
The specified methods for the class metaobject reader generic functions are presented below.
Each entry in the table indicates a method on one of the reader generic functions, specialized to a specified class. The number in each entry is a reference to the full description of the method. The full descriptions appear after the table.
standard-class and | forward-referenced-class | built-in-class | |
funcallable-standard-class | |||
class-default-initargs | 2 | 3 | 4 |
class-direct-default-initargs | 1 | 4 | 4 |
class-direct-slots | 1 | 4 | 4 |
class-direct-subclasses | 9 | 9 | 7 |
class-direct-superclasses | 1 | 4 | 7 |
class-finalized-p | 2 | 6 | 5 |
class-name | 1 | 1 | 8 |
class-precedence-list | 2 | 3 | 7 |
class-prototype | 10 | 10 | 10 |
class-slots | 2 | 3 | 4 |
This method returns the value which was associated with the class metaobject during initialization or reinitialization.
This method returns the value associated with the class metaobject by finalize-inheritance (class standard-class) or finalize-inheritance (class funcallable-standard-class).
This method signals an error.
This method returns the empty list.
This method returns true.
This method returns false.
This method returns a value derived from the information in this table, except that implementation-specific modifications are permitted as described in section ``Implementation and User Specialization.''
This method returns the name of the built-in class.
This methods returns a value which is maintained by add-direct-subclass (superclass class) (subclass class) and remove-direct-subclass (superclass class) (subclass class) This method can be overridden only if those methods are overridden as well.
No behavior is specified for this method beyond that specified for the generic function.
It is not clear what is meant by the phrase "Each entry in the table indicates a method on one of the reader generic functions" above. It clearly does not mean that each number represents one method, because the same number appears in different rows of the table. One interpretation is that there are exactly 30 methods, but this can not be the case because the specification does not mention a common superclass for standard-class and funcallable-standard-class, so there can not be a single method for the two. Another interpretation, then, is that there are exactly 40 methods. However, in other parts of the document, there is mention of a single method specialized for class that does not correspond to the table above.