public class AnnotationModelImpl extends Object implements AnnotationModel
Constructor and Description |
---|
AnnotationModelImpl(AnnotatedElement element,
AnnotationType type) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(String name,
Object value) |
AnnotatedElement |
getElement()
Returns the annotated element with this annotation instance
|
AnnotationType |
getType()
Returns the annotation type for this model
|
Map<String,Object> |
getValues()
Returns an unmodifiable collection of annotation values.
|
String |
toString() |
public AnnotationModelImpl(AnnotatedElement element, AnnotationType type)
public Map<String,Object> getValues()
AnnotationModel
getValues
in interface AnnotationModel
public AnnotationType getType()
AnnotationModel
getType
in interface AnnotationModel
public AnnotatedElement getElement()
AnnotationModel
getElement
in interface AnnotationModel
Copyright © 2009–2023 Oracle Corporation. All rights reserved.