Changeset 12778
- Timestamp:
- 07/03/10 22:05:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generic-class-file/abcl/src/org/armedbear/lisp/jvm-class-file.lisp
r12777 r12778 391 391 392 392 (defun class-methods-by-name (class name) 393 (remove (map-method-name name)(class-file-methods class)393 (remove name (class-file-methods class) 394 394 :test-not #'string= :key #'method-name)) 395 395 396 (defun class-method (class descriptor) 397 (find descriptor (class-file-methods class) 398 :test #'string= :key #'method-name)) 396 (defun class-method (class name return &rest args) 397 (let ((return-and-args (cons return args))) 398 (find-if #'(lambda (c) 399 (and (string= (method-name c) name) 400 (equal (method-descriptor c) return-and-args))) 401 (class-file-methods class)))) 402 403 (defun class-add-attribute (class attribute) 404 (push atttribute (class-file-attributes class))) 405 406 (defun class-attribute (class name) 407 (find name (class-file-attributes class) 408 :test #'string= :key #'attribute-name)) 399 409 400 410 … … 522 532 :descriptor type)) 523 533 524 (defun add-field-attribute (field attribute)534 (defun field-add-attribute (field attribute) 525 535 (push attribute (field-attributes field))) 526 536 537 (defun field-attribute (field name) 538 (find name (field-attributes field) 539 :test #'string= :key #'attribute-name)) 527 540 528 541 (defun finalize-field (field class)
Note: See TracChangeset
for help on using the changeset viewer.