.jfield
returns the value of the specified field on an object..jfield(o, name, simplify=TRUE, true.class=TRUE)
TRUE
, such object will be converted to scalar type if
possible (see .jsimplify
).java.lang.Object
. If set to TRUE
, the true Java
class is determined and the returned object's class will be
adjusted..jfield
uses reflection to access value of a field of a given
object..jnew
, .jsimplify
z <- .jnew("java/lang/Boolean", TRUE)
.jfield(z, "TYPE")
Run the code above in your browser using DataLab