public class AnnotationDescriptor<A extends Annotation> extends Object implements Serializable
Annotation
instance
and the values of its elements.
The "elements" we're talking about are the annotation attributes,
not its targets (the term "element" is used ambiguously
in Java's annotations documentation).Modifier and Type | Class and Description |
---|---|
static class |
AnnotationDescriptor.Builder<S extends Annotation> |
Constructor and Description |
---|
AnnotationDescriptor(A annotation) |
AnnotationDescriptor(AnnotationDescriptor<A> descriptor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
A |
getAnnotation() |
Object |
getAttribute(String attributeName) |
<T> T |
getAttribute(String attributeName,
Class<T> attributeType) |
Map<String,Object> |
getAttributes() |
<T> T |
getMandatoryAttribute(String attributeName,
Class<T> attributeType) |
Class<A> |
getType() |
int |
hashCode()
Calculates the hash code of this annotation descriptor as described in
Annotation.hashCode() . |
String |
toString() |
public AnnotationDescriptor(A annotation)
public AnnotationDescriptor(AnnotationDescriptor<A> descriptor)
public <T> T getMandatoryAttribute(String attributeName, Class<T> attributeType)
public A getAnnotation()
public int hashCode()
Annotation.hashCode()
.hashCode
in class Object
Annotation.hashCode()
Copyright © 2021 JBoss by Red Hat. All rights reserved.