Top Description Methods
org.eclipse.xtend.lib.annotations

public @Interface Accessors

extends Annotation
Annotations
@GwtCompatible
@Target:FIELD, TYPE
@Active:AccessorsProcessor
@Documented
@SuppressWarnings:all
Imports
com.google.common.annotations.Beta, .GwtCompatible, java.lang.annotation.Documented, .ElementType, .Target, org.eclipse.xtend.lib.macro.Active

Creates getters and setters for annotated fields or for all fields in an annotated class.

Annotated on a field

Annotated on a class

Field-level annotations have precedence over a class-level annotation. Accessors can be suppressed completely by using AccessorType#NONE. This annotation can also be used to fine-tune the getters generated by Data.
Since
2.7

Method Summary

Modifier and TypeMethod and Description
public AccessorsDeprecationPolicy
deprecationPolicy()

Describes when @Deprecated will be added to generated accessors.

public AccessorType[]
value()

Describes the access modifiers for generated accessors.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

deprecationPolicyback to summary
public AccessorsDeprecationPolicy deprecationPolicy()

Describes when @Deprecated will be added to generated accessors.
If it is not wanted or needed, pass AccessorsDeprecationPolicy#NEVER to prevent the annotation from being added.

Annotations
@Beta
Since
2.23
valueback to summary
public AccessorType[] value()

Describes the access modifiers for generated accessors. Valid combinations include at most one type for getters and one for setters. Accessors may be suppressed by passing AccessorType#NONE.