Serializable, Comparable<AnnotationTarget>public enum AnnotationTarget extends Enum<AnnotationTarget>
JsonbTransient, JsonbNumberFormatter, etc.) is being applied on
getter method, setter method or directly on the property.| Enum Constant | Description |
|---|---|
CLASS |
Indicates annotation has been applied on class level
|
GETTER |
Indicates annotation has been applied on the getter method of the property
|
PROPERTY |
Indicates annotation has been applied on property level
|
SETTER |
Indicates annotation has been applied on the setter method of the property
|
| Modifier and Type | Method | Description |
|---|---|---|
static AnnotationTarget |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AnnotationTarget[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationTarget CLASS
public static final AnnotationTarget PROPERTY
public static final AnnotationTarget GETTER
public static final AnnotationTarget SETTER
public static AnnotationTarget[] values()
for (AnnotationTarget c : AnnotationTarget.values()) System.out.println(c);
public static AnnotationTarget valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018 Oracle Corporation. All rights reserved.