External Interfaces/API    

Finding the Public Data Fields of an Object

To list the public fields that belong to a Java object, use the fieldnames function, which takes either of these forms.

Calling fieldnames without '-full' returns the names of all the data fields (including inherited) on the object. With the '-full' qualifier, fieldnames returns the full description of the data fields defined for the object, including type, attributes, and inheritance information.

Suppose, for example, that you constructed a Frame object with

To obtain the full description of the data fields on frame, you could use the command

Sample output from this command follows.


  Saving and Loading Java Objects to MAT-Files Accessing Private and Public Data