Defines a Java field accessor.
define-field-accessor name class-name field-name static-p &optional is-final => name
define-field-accessor defines a field accessor for a field in a Java class.
The arguments are interpreted as by setup-field-accessor.
define-field-accessor does not look up anything. The accessor does the look up first time it is called, and signals an error if something failed. This error should be of type:
Failed to find the class.
Failed to find the field, or found the field but wrong static-p value.
Got an exception trying to access the field.
In general, accessing fields should be avoided, because they are typically a less well-defined and implemented interface than methods, but sometimes it is necessary.
The importing interface generates appropriate
define-field-accessor forms for public fields.
LispWorks User Guide and Reference Manual - 20 Sep 2017