getJavaField: Get the value of a public field

Description Usage Arguments Details

View source: R/j4rFunctions.R

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

1
getJavaField(source, fieldName, affinity = 1)

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

affinity

a parameter used by the mclapply.j4r function in case of multithreading.

Details

When the source is a java.object instance, this function can be substituted for the $ operator.


J4R documentation built on July 23, 2020, 9:06 a.m.