File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,10 @@ \subsection{基本クラス}
242
242
このリストに{\bf assoc}を適用することにより、スロットの詳細値が得られる。
243
243
しかしながら、それらを変更することはできない。}
244
244
245
+ \methoddesc {:methods}{\& optional subname}{
246
+ このオブジェクトから呼べる全てのメソッドのリストを返す。
247
+ {\em subname}を指定すると、メソッド名のなかにそれを含むメソッドのみ返す。}
248
+
245
249
\classdesc {propertied-object}{object}
246
250
{plist}
247
251
{property-listを持つオブジェクトを定義する。
Original file line number Diff line number Diff line change @@ -283,9 +283,8 @@ \subsection{Basic Classes}
283
283
\methoddesc {:slots}{}{
284
284
returns a list of variable and value pairs of this object.}
285
285
286
- \methoddesc {:methods}{}{
287
- returns a list of all method names defined for this object.
288
- In other words, this object can accept method calls listed by :methods. }
286
+ \methoddesc {:methods}{\& optional subname}{
287
+ returns a list of all methods callable by this object. If {\em subname} is given, returns only methods with names that include {\em subname}. }
289
288
290
289
\methoddesc {:get-val}{variable-name}{
291
290
returns the value of the slot designated by {\it variable-name}.
Original file line number Diff line number Diff line change 26
26
(dotimes (i (length vars))
27
27
(push (cons (elt vars i) (slot self (class self) i)) slots))
28
28
(nreverse slots)))
29
- (:methods () (apply #' append (mapcar #' cadr (send (class self) :all-method-names ))))
29
+ (:methods (&optional (pattern " " ))
30
+ " (self class &optional (pattern \"\" ))
31
+ Returns the list of all methods callable by the object. If pattern is given, returns only methods with names that include pattern."
32
+ (mapcan #' cadr (send (class self) :all-method-names pattern)))
30
33
; ; (:all-methods () (send (class self) :all-method-names))
31
34
(:super () (send (class self) :super ))
32
35
(:get-val (s) (slot self (class self) s))
You can’t perform that action at this time.
0 commit comments