.jconstructors
returns a character vector with all constructors for
a given class or object.
.jmethods
returns a character vector with all methods for
a given class or object.
.jfields
returns a character vector with all fileds (aka attributes) for a given class or object..jconstructors(o)
.jmethods(o, name = NULL)
.jfields(o)
^$
.toString()
call on the Constructor
resp. Method
resp. Field
object..jcall
, .jnew
, .jcast
or link{$.jobjRef}
.jconstructors("java/util/Vector")
v <- .jnew("java/util/Vector")
.jmethods(v, "add")
Run the code above in your browser using DataLab