AnnotationValueFilter.
| Modifier and Type | Field and Description |
|---|---|
| public static final AnnotationRetention | DISABLED
Disables annotation retention, i.e. annotations within an existing class files are discarded. |
| public static final AnnotationRetention | ENABLED
Enables annotation retention, i.e. annotations within an existing class files are preserved as they are. |
| private final boolean | enabled
|
| Access | Constructor and Description |
|---|---|
| private | AnnotationRetention(boolean
true if annotation retention is enabled.Creates an annotation retention strategy. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if annotation retention is enabled.Returns |
| public static AnnotationRetention | Returns: An enabled annotation retention if the value istrue.true if annotation retention is enabled.Resolves an annotation retention from a boolean value. |
| public static AnnotationRetention | |
| public static AnnotationRetention[] |
| DISABLED | back to summary |
|---|---|
| public static final AnnotationRetention DISABLED Disables annotation retention, i.e. annotations within an existing class files are discarded. | |
| ENABLED | back to summary |
|---|---|
| public static final AnnotationRetention ENABLED Enables annotation retention, i.e. annotations within an existing class files are preserved as they are. | |
| enabled | back to summary |
|---|---|
| private final boolean enabled
| |
| AnnotationRetention | back to summary |
|---|---|
| private AnnotationRetention(boolean enabled) Creates an annotation retention strategy.
| |
| isEnabled | back to summary |
|---|---|
| public boolean isEnabled() Returns
| |
| of | back to summary |
|---|---|
| public static AnnotationRetention of(boolean enabled) Resolves an annotation retention from a boolean value.
| |
| valueOf | back to summary |
|---|---|
| public static AnnotationRetention valueOf(String name) | |
| values | back to summary |
|---|---|
| public static AnnotationRetention[] values() | |