This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <A extends Annotation> A | getAnnotation(Class<A> annoType)
Implements javax. Returns this construct's annotation of the specified type if
such an annotation is present, else |
| public abstract List | getAnnotationMirrors()
Redeclares javax. Returns the annotations that are directly present on this construct. |
| public <A extends Annotation> A[] | getAnnotationsByType(Class<A> annoType)
Implements javax. Returns annotations of the specified type that are associated with this construct. |
| protected <A extends Annotation> Attribute. | |
| private static Class | |
| protected <A extends Annotation> A[] | |
| private static Attribute[] | |
| private Attribute. |
| AnnoConstruct | back to summary |
|---|---|
| public AnnoConstruct() | |
| getAnnotation | back to summary |
|---|---|
| public <A extends Annotation> A getAnnotation(Class<A> annoType) Implements javax. Doc from javax. Returns this construct's annotation of the specified type if
such an annotation is present, else The annotation returned by this method could contain an element
whose value is of type Note This method is unlike others in this and related interfaces. It operates on runtime reflective information — representations of annotation interfaces currently loaded into the VM — rather than on the representations defined by and used throughout these interfaces. Consequently, calling methods on the returned annotation object can throw many of the exceptions that can be thrown when calling methods on an annotation object returned by core reflection. This method is intended for callers that are written to operate on a known, fixed set of annotation interfaces.
| |
| getAnnotationMirrors | back to summary |
|---|---|
| public abstract List Redeclares javax. Doc from javax. Returns the annotations that are directly present on this construct.
| |
| getAnnotationsByType | back to summary |
|---|---|
| public <A extends Annotation> A[] getAnnotationsByType(Class<A> annoType) Implements javax. Doc from javax. Returns annotations of the specified type that are associated
with this construct.
If there are no annotations of the specified type associated with this
construct, the return value is an array of length 0.
The order of annotations which are directly or indirectly
present on a construct C is computed as if indirectly present
annotations on C are directly present on C in place of their
container annotation, in the order in which they appear in the
value element of the container annotation.
The difference between this method and The annotations returned by this method could contain an element
whose value is of type Note This method is unlike others in this and related interfaces. It operates on runtime reflective information — representations of annotation interfaces currently loaded into the VM — rather than on the representations defined by and used throughout these interfaces. Consequently, calling methods on the returned annotation object can throw many of the exceptions that can be thrown when calling methods on an annotation object returned by core reflection. This method is intended for callers that are written to operate on a known, fixed set of annotation interfaces.
| |
| getAttribute | back to summary |
|---|---|
| protected <A extends Annotation> Attribute. | |
| getContainer | back to summary |
|---|---|
| private static Class | |
| getInheritedAnnotations | back to summary |
|---|---|
protected <A extends Annotation> A[] getInheritedAnnotations(Class<A> annoType)
| |
| unpackAttributes | back to summary |
|---|---|
| private static Attribute[] unpackAttributes(Attribute. | |
| unpackContained | back to summary |
|---|---|
| private Attribute. | |