Defines a Java field accessor.
lw-ji
define-field-accessor name class-name field-name static-p &optional is-final => name
name⇩ |
A symbol. |
class-name⇩ |
A string. |
field-name⇩ |
A string. |
static-p⇩ |
A boolean. |
is-final⇩ |
A boolean. |
name |
A symbol. |
The macro define-field-accessor
defines a field accessor for a field in a Java class.
name, class-name, field-name, static-p and is-final are interpreted as for setup-field-accessor.
Unlike 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. | |
Got an exception trying to access the field. |
define-field-accessor
forms for public fields.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:46