public static enum AnnotationDescription.AnnotationValue.Loaded.State extends Enum<AnnotationDescription.AnnotationValue.Loaded.State>
AnnotationDescription.AnnotationValue.Loaded
annotation property.Enum Constant and Description |
---|
NON_DEFINED
A non-defined annotation value describes an annotation property which is missing such that
an
IncompleteAnnotationException would be thrown. |
NON_RESOLVED
A non-resolved annotation value describes an annotation property which does not represent a
valid value but an exceptional state.
|
RESOLVED
A resolved annotation value describes an annotation property with an actual value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDefined()
Returns
true if the related annotation value is defined, i.e. |
boolean |
isResolved()
Returns
true if the related annotation value is resolved, i.e. |
String |
toString() |
static AnnotationDescription.AnnotationValue.Loaded.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnnotationDescription.AnnotationValue.Loaded.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnnotationDescription.AnnotationValue.Loaded.State NON_DEFINED
IncompleteAnnotationException
would be thrown.public static final AnnotationDescription.AnnotationValue.Loaded.State NON_RESOLVED
public static final AnnotationDescription.AnnotationValue.Loaded.State RESOLVED
public static AnnotationDescription.AnnotationValue.Loaded.State[] values()
for (AnnotationDescription.AnnotationValue.Loaded.State c : AnnotationDescription.AnnotationValue.Loaded.State.values()) System.out.println(c);
public static AnnotationDescription.AnnotationValue.Loaded.State 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 nullpublic boolean isDefined()
true
if the related annotation value is defined, i.e. either represents
an actual value or an exceptional state.true
if the related annotation value is defined.public boolean isResolved()
true
if the related annotation value is resolved, i.e. represents an actual
value.true
if the related annotation value is resolved.public String toString()
toString
in class Enum<AnnotationDescription.AnnotationValue.Loaded.State>
Copyright © 2014–2016. All rights reserved.