Learn R Programming

J4R (version 1.0.7)

getJavaField: Get the value of a public field

Description

This function gets the value of a particular field, which can be either static or not. If the field is static, the source should be a valid class name.

Usage

getJavaField(source, fieldName)

Arguments

source

this should be either a java.list instance or a single java.object instance for non-static methods or a string representing the Java class name in case of static method

fieldName

the name of the field to be set