JLink`
JLink`

Fields

Fields[javaclass]

returns a list of the Java declarations for all fields of the specified JavaClass.

Fields["classname"]

lists the fields for the named class.

Fields[javaobject]

lists the fields for the class of the specified JavaObject.

Details and Options

  • To use Fields, you first need to load J/Link using Needs["JLink`"].
  • The resulting lists are returned in TableForm.
  • To make them easier to read, the declarations have had the keywords "transient" and "volatile" removed. The "public" keyword is also removed, as the fields are always public.