Commit 0bb77c56 authored by ehuelsmann@1c010e3e-69d0-11dd-93a8-456734b0d56f's avatar ehuelsmann@1c010e3e-69d0-11dd-93a8-456734b0d56f
Browse files

Reindent documentation string.

parent eaf5f316
......@@ -396,7 +396,16 @@ calls on the java.util.Enumeration `jenumeration`."
;;; higher-level operators
(defmacro chain (target op &rest ops)
"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.
"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.
For example, the form:
(chain (:static \"java.lang.Runtime\") \"getRuntime\" (\"exec\" \"ls\"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment