Changeset 14127 for trunk/abcl/src/org/armedbear/lisp/java.lisp
- Timestamp:
- 08/19/12 13:20:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/java.lisp
r14104 r14127 397 397 398 398 (defmacro chain (target op &rest ops) 399 "Performs chained method invocations. `target' is the receiver object (when the first call is a virtual method call) or a list in the form (:static <jclass>) when the first method call is a static method call. `op' and each of the `ops' are either method designators or lists in the form (<method designator> &rest args), where a method designator is either a string naming a method, or a jmethod object. `chain' will perform the method call specified by `op' on `target'; then, for each of the `ops', `chain' will perform the specified method call using the object returned by the previous method call as the receiver, and will ultimately return the result of the last method call. 399 "Performs chained method invocations. `target' is the receiver 400 object (when the first call is a virtual method call) or a list in the 401 form (:static <jclass>) when the first method call is a static method 402 call. `op' and each of the `ops' are either method designators or lists 403 in the form (<method designator> &rest args), where a method designator 404 is either a string naming a method, or a jmethod object. `chain' will 405 perform the method call specified by `op' on `target'; then, for each 406 of the `ops', `chain' will perform the specified method call using the 407 object returned by the previous method call as the receiver, and will 408 ultimately return the result of the last method call. 400 409 For example, the form: 401 410
Note: See TracChangeset
for help on using the changeset viewer.