1 ;;;; Mostly this file contains generic functions. The exceptions are hacks.
3 ;;;; This software is part of the SBCL system. See the README file for
6 ;;;; This software is in the public domain and is provided with absolutely no
7 ;;;; warranty. See the COPYING and CREDITS files for more information.
13 (defgeneric class-eq-specializer-p (object))
15 (defgeneric classp (object))
17 (defgeneric condition-class-p (object))
19 (defgeneric eql-specializer-p (object))
21 (defgeneric exact-class-specializer-p (object))
23 (defgeneric forward-referenced-class-p (object))
25 (defgeneric funcallable-standard-class-p (object))
27 (defgeneric generic-function-p (object))
29 (defgeneric legal-lambda-list-p (object x))
31 (defgeneric method-combination-p (object))
33 (defgeneric method-p (object))
35 (defgeneric short-method-combination-p (object))
37 (defgeneric slot-class-p (object))
39 (defgeneric specializerp (object))
41 (defgeneric standard-accessor-method-p (object))
43 (defgeneric standard-boundp-method-p (object))
45 (defgeneric standard-class-p (object))
47 (defgeneric standard-generic-function-p (object))
49 (defgeneric standard-method-p (object))
51 (defgeneric standard-reader-method-p (object))
53 (defgeneric standard-writer-method-p (object))
55 (defgeneric structure-class-p (object))
59 (defgeneric accessor-method-slot-definition (standard-accessor-method))
61 (defgeneric class-can-precede-list (pcl-class))
63 (defgeneric class-defstruct-constructor (structure-class))
65 (defgeneric class-defstruct-form (structure-class))
67 (defgeneric class-direct-subclasses (class))
69 (defgeneric class-direct-superclasses (class))
71 (defgeneric class-eq-specializer (class))
73 (defgeneric class-incompatible-superclass-list (pcl-class))
75 (defgeneric class-name (class))
77 (defgeneric class-precedence-list (pcl-class))
79 (defgeneric class-wrapper (pcl-class))
81 (defgeneric definition-source (definition-source-mixin))
83 (defgeneric eql-specializer-object (eql-specializer))
85 (defgeneric generic-function-declarations (standard-generic-function))
87 (defgeneric generic-function-method-class (standard-generic-function))
89 (defgeneric generic-function-method-combination (standard-generic-function))
91 (defgeneric generic-function-methods (standard-generic-function))
93 (defgeneric generic-function-name (standard-generic-function))
95 (defgeneric gf-arg-info (standard-generic-function))
97 (defgeneric gf-dfun-state (standard-generic-function))
99 (defgeneric generic-function-initial-methods (standard-generic-function))
101 (defgeneric long-method-combination-function (long-method-combination))
103 (defgeneric method-combination-documentation (standard-method-combination))
105 (defgeneric method-combination-options (standard-method-combination))
107 (defgeneric method-combination-type-name (standard-method-combination))
109 (defgeneric method-fast-function (standard-method))
111 (defgeneric method-generic-function (standard-method))
113 (defgeneric object-plist (plist-mixin))
115 (defgeneric short-combination-identity-with-one-argument
116 (short-method-combination))
118 (defgeneric short-combination-operator (short-method-combination))
120 (defgeneric slot-definition-boundp-function (effective-slot-definition))
122 (defgeneric slot-definition-class (slot-definition))
124 (defgeneric slot-definition-defstruct-accessor-symbol
125 (structure-slot-definition))
127 (defgeneric slot-definition-initargs (slot-definition))
129 (defgeneric slot-definition-initform (slot-definition))
131 (defgeneric slot-definition-initfunction (slot-definition))
133 (defgeneric slot-definition-internal-reader-function
134 (structure-slot-definition))
136 (defgeneric slot-definition-internal-writer-function
137 (structure-slot-definition))
139 (defgeneric slot-definition-location (standard-effective-slot-definition))
141 (defgeneric slot-definition-name (slot-definition))
143 (defgeneric slot-definition-reader-function (effective-slot-definition))
145 (defgeneric slot-definition-readers (slot-definition))
147 (defgeneric slot-definition-type (slot-definition))
149 (defgeneric slot-definition-writer-function (effective-slot-definition))
151 (defgeneric slot-definition-writers (slot-definition))
153 (defgeneric specializer-object (class-eq-specializer))
155 (defgeneric specializer-type (specializer))
159 (defgeneric (setf class-defstruct-constructor) (new-value structure-class))
161 (defgeneric (setf class-defstruct-form) (new-value structure-class))
163 (defgeneric (setf class-direct-slots) (new-value slot-class))
165 (defgeneric (setf class-incompatible-superclass-list) (new-value pcl-class))
167 (defgeneric (setf class-name) (new-value class))
169 (defgeneric (setf class-slots) (new-value slot-class))
171 (defgeneric (setf generic-function-method-class) (new-value
172 standard-generic-function))
174 (defgeneric (setf generic-function-method-combination)
175 (new-value standard-generic-function))
177 (defgeneric (setf generic-function-declarations) (new-value
178 standard-generic-function))
180 (defgeneric (setf generic-function-methods) (new-value
181 standard-generic-function))
183 (defgeneric (setf generic-function-name) (new-value standard-generic-function))
185 (defgeneric (setf gf-dfun-state) (new-value standard-generic-function))
187 (defgeneric (setf generic-function-initial-methods)
188 (new-value standard-generic-function))
190 (defgeneric (setf method-generic-function) (new-value standard-method))
192 (defgeneric (setf object-plist) (new-value plist-mixin))
194 (defgeneric (setf slot-definition-allocation) (new-value
195 standard-slot-definition))
197 (defgeneric (setf slot-definition-boundp-function)
198 (new-value effective-slot-definition))
200 (defgeneric (setf slot-definition-class) (new-value slot-definition))
202 (defgeneric (setf slot-definition-defstruct-accessor-symbol)
203 (new-value structure-slot-definition))
205 (defgeneric (setf slot-definition-initargs) (new-value slot-definition))
207 (defgeneric (setf slot-definition-initform) (new-value slot-definition))
209 (defgeneric (setf slot-definition-initfunction) (new-value slot-definition))
211 (defgeneric (setf slot-definition-internal-reader-function)
212 (new-value structure-slot-definition))
214 (defgeneric (setf slot-definition-internal-writer-function)
215 (new-value structure-slot-definition))
217 (defgeneric (setf slot-definition-location)
218 (new-value standard-effective-slot-definition))
220 (defgeneric (setf slot-definition-name) (new-value slot-definition))
222 (defgeneric (setf slot-definition-reader-function) (new-value
223 effective-slot-definition))
225 (defgeneric (setf slot-definition-readers) (new-value slot-definition))
227 (defgeneric (setf slot-definition-type) (new-value slot-definition))
229 (defgeneric (setf slot-definition-writer-function)
230 (new-value effective-slot-definition))
232 (defgeneric (setf slot-definition-writers) (new-value slot-definition))
236 (defgeneric accessor-method-class (method))
238 (defgeneric accessor-method-slot-name (m))
240 (defgeneric class-default-initargs (class))
242 (defgeneric class-direct-default-initargs (class))
244 (defgeneric class-direct-slots (class))
246 (defgeneric class-finalized-p (class))
248 (defgeneric class-prototype (class))
250 (defgeneric class-slot-cells (class))
252 (defgeneric class-slots (class))
254 (defgeneric compute-class-precedence-list (root))
256 (defgeneric compute-default-initargs (class))
258 (defgeneric compute-discriminating-function (gf))
260 (defgeneric compute-discriminating-function-arglist-info (generic-function))
262 (defgeneric compute-slots (class))
264 (defgeneric finalize-inheritance (class))
266 (defgeneric function-keywords (method))
268 (defgeneric generic-function-argument-precedence-order (gf))
270 (defgeneric generic-function-lambda-list (gf))
272 (defgeneric generic-function-pretty-arglist (generic-function))
274 (defgeneric gf-fast-method-function-p (gf))
276 (defgeneric initialize-internal-slot-functions (slotd))
278 (defgeneric make-instances-obsolete (class))
280 (defgeneric method-function (method))
282 (defgeneric method-lambda-list (m))
284 (defgeneric method-pretty-arglist (method))
286 (defgeneric method-qualifiers (m))
288 (defgeneric method-specializers (m))
290 (defgeneric raw-instance-allocator (class))
292 (defgeneric slot-definition-allocation (slotd))
294 (defgeneric slots-fetcher (class))
296 (defgeneric specializer-class (specializer))
298 (defgeneric specializer-direct-generic-functions (specializer))
300 (defgeneric specializer-direct-methods (specializer))
302 (defgeneric specializer-method-table (specializer))
304 (defgeneric update-constructors (class))
306 (defgeneric wrapper-fetcher (class))
310 (defgeneric add-dependent (metaobject dependent))
312 (defgeneric add-direct-method (specializer method))
314 (defgeneric add-direct-subclass (class subclass))
316 (defgeneric add-method (generic-function method))
318 (defgeneric (setf class-slot-cells) (new-value class))
320 (defgeneric class-slot-value (class slot-name))
322 (defgeneric compatible-meta-class-change-p (class proto-new-class))
324 (defgeneric compute-applicable-methods (generic-function arguments))
326 (defgeneric compute-applicable-methods-using-classes
327 (generic-function classes))
329 (defgeneric compute-effective-slot-definition-initargs (class direct-slotds))
331 (defgeneric describe-object (object stream))
333 (defgeneric direct-slot-definition-class (class &rest initargs))
335 (defgeneric effective-slot-definition-class (class &rest initargs))
337 (defgeneric legal-documentation-p (object x))
339 (defgeneric legal-method-function-p (object x))
341 (defgeneric legal-qualifier-p (object x))
343 (defgeneric legal-qualifiers-p (object x))
345 (defgeneric legal-slot-name-p (object x))
347 (defgeneric legal-specializer-p (object x))
349 (defgeneric legal-specializers-p (object x))
351 (defgeneric make-boundp-method-function (class slot-name))
353 (defgeneric make-reader-method-function (class slot-name))
355 (defgeneric make-writer-method-function (class slot-name))
357 (defgeneric map-dependents (metaobject function))
359 (defgeneric remove-boundp-method (class generic-function))
361 (defgeneric remove-dependent (metaobject dependent))
363 (defgeneric remove-direct-method (specializer method))
365 (defgeneric remove-direct-subclass (class subclass))
367 (defgeneric remove-method (generic-function method))
369 (defgeneric remove-reader-method (class generic-function))
371 (defgeneric remove-writer-method (class generic-function))
373 (defgeneric same-specializer-p (specl1 specl2))
375 (defgeneric slot-accessor-function (slotd type))
377 (defgeneric slot-accessor-std-p (slotd type))
379 ;;; This controls DESCRIBE-OBJECT (SLOT-OBJECT STREAM) behavior.
380 (defgeneric slots-to-inspect (class object))
382 (defgeneric update-gf-dfun (class gf))
384 (defgeneric validate-superclass (class superclass))
386 (defgeneric (setf documentation) (new-value slotd doc-type)
387 (:argument-precedence-order doc-type slotd new-value))
389 (defgeneric documentation (slotd doc-type)
390 (:argument-precedence-order doc-type slotd))
394 (defgeneric add-boundp-method (class generic-function slot-name))
396 (defgeneric add-reader-method (class generic-function slot-name))
398 (defgeneric add-writer-method (class generic-function slot-name))
400 (defgeneric (setf class-slot-value) (nv class slot-name))
402 ;;; CMUCL comment (from Gerd Moellmann/Pierre Mai, 2002-10-19):
404 ;;; According to AMOP, COMPUTE-EFFECTIVE-METHOD should return two
405 ;;; values. Alas, the second value is only vaguely described in AMOP,
406 ;;; and, when asked on 2002-10-18, Gregor Kiczales said he couldn't
407 ;;; remember what the second value was supposed to be. So, PCL's
408 ;;; COMPUTE-EFFECTIVE-METHOD returns one value as do Allegro and
410 (defgeneric compute-effective-method (generic-function
414 (defgeneric compute-effective-slot-definition (class name dslotds))
416 (defgeneric compute-slot-accessor-info (slotd type gf))
418 (defgeneric default-initargs (class initargs defaults))
420 (defgeneric find-method-combination (generic-function type options))
422 (defgeneric invalid-qualifiers (generic-function combin method))
424 (defgeneric (setf slot-accessor-function) (function slotd type))
426 (defgeneric (setf slot-accessor-std-p) (value slotd type))
428 (defgeneric slot-boundp-using-class (class object slotd))
430 (defgeneric slot-makunbound-using-class (class object slotd))
432 (defgeneric slot-unbound (class instance slot-name))
434 (defgeneric slot-value-using-class (class object slotd))
438 (defgeneric make-method-lambda (proto-generic-function
443 (defgeneric (setf slot-value-using-class) (new-value class object slotd))
447 (defgeneric make-method-initargs-form (proto-generic-function
453 ;;;; optional arguments
455 (defgeneric get-method (generic-function
460 (defgeneric find-method (generic-function
465 (defgeneric slot-missing (class
469 &optional new-value))
473 (defgeneric allocate-instance (class &rest initargs))
475 (defgeneric ensure-class-using-class (class
478 &key &allow-other-keys))
480 (defgeneric ensure-generic-function-using-class (generic-function
482 &key &allow-other-keys))
484 (defgeneric initialize-instance (gf &key &allow-other-keys))
486 (defgeneric make-instance (class &rest initargs &key &allow-other-keys))
488 (defgeneric change-class (instance new-class-name &rest initargs &key &allow-other-keys))
490 (defgeneric no-applicable-method (generic-function &rest args))
492 (defgeneric no-next-method (generic-function method &rest args))
494 (defgeneric no-primary-method (generic-function &rest args))
496 (defgeneric reader-method-class (class direct-slot &rest initargs))
498 (defgeneric reinitialize-instance (gf &rest args &key &allow-other-keys))
500 (defgeneric shared-initialize (generic-function
502 &key &allow-other-keys))
504 (defgeneric update-dependent (metaobject dependent &rest initargs))
506 (defgeneric update-instance-for-different-class (previous
510 (defgeneric update-instance-for-redefined-class (instance
516 (defgeneric writer-method-class (class direct-slot &rest initargs))