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

lists the fields for the named class.

lists the fields for the class of the specified JavaObject.

Details and OptionsDetails 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.