Description Usage Arguments Details Value Author(s) References See Also Examples
The $
methods allow one to invoke Java methods in the form
jobj$methodName(arg1,arg2,....)
The [[
methods allow access to class fields as
jobj[["fieldName"]]
jobj[["fieldName"]] <- value
1 2 3 4 5 6 7 8 |
obj |
A reference to the Java object. |
x |
A reference to the Java object. |
name |
The name of the Java method or field being accessed. |
value |
The value to be assigned to the field. |
... |
Additional arguments; ignored for |
The $
method is equivalent to .Java(obj, name,)
The [[
method is equivalent to
.Java(NULL, "getField", name, x)
.
The [[<-
method is equivalent to
.Java(NULL, "setField", name, x, value)
.
The return value of $
is a function which remembers the
arguments to this function call and, when called, results in a call to
.Java
using those arguments.
The return value of [[
is the field value.
print
is called for its side effect, i.e., providing a compact
represntation of the object.
Duncan Temple Lang
http://www.omegahat.org/RSJava
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.