public class AnnotationModelImpl extends java.lang.Object implements AnnotationModel
Modifier and Type | Field and Description |
---|---|
(package private) AnnotatedElement |
element |
(package private) AnnotationType |
type |
private java.util.Map<java.lang.String,java.lang.Object> |
values |
Constructor and Description |
---|
AnnotationModelImpl(AnnotatedElement element,
AnnotationType type) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(java.lang.String name,
java.lang.Object value) |
AnnotatedElement |
getElement()
Returns the annotated element with this annotation instance
|
AnnotationType |
getType()
Returns the annotation type for this model
|
java.util.Map<java.lang.String,java.lang.Object> |
getValues()
Returns an unmodifiable collection of annotation values.
|
java.lang.String |
toString() |
private java.lang.Object |
unwrap(java.lang.Object value) |
final AnnotationType type
final AnnotatedElement element
private final java.util.Map<java.lang.String,java.lang.Object> values
public AnnotationModelImpl(AnnotatedElement element, AnnotationType type)
public java.lang.String toString()
toString
in class java.lang.Object
public void addValue(java.lang.String name, java.lang.Object value)
private java.lang.Object unwrap(java.lang.Object value)
public java.util.Map<java.lang.String,java.lang.Object> getValues()
AnnotationModel
getValues
in interface AnnotationModel
public AnnotationType getType()
AnnotationModel
getType
in interface AnnotationModel
public AnnotatedElement getElement()
AnnotationModel
getElement
in interface AnnotationModel