@Retention(value=RUNTIME) @Target(value=FIELD) public @interface UseField
The class generator will reference the annotated field when generating methods, and set it from the constructor arguments
Any field in an abstract class without this field will not be set automatically, even if it matches a property from the implemented event.
Modifier and Type | Optional Element and Description |
---|---|
boolean |
overrideToString
Indicates whether to use the annotated field directly in the
generated '
Annotation.toString() ' method, rather than calling the
normal accessor method. |
public abstract boolean overrideToString
Annotation.toString()
' method, rather than calling the
normal accessor method.
This should only be used when there are special restrictions
on calling the accessor (for example,
AffectEntityEvent.getEntitySnapshots()
).