Class AnnotationModelImpl
- java.lang.Object
-
- org.glassfish.hk2.classmodel.reflect.impl.AnnotationModelImpl
-
- All Implemented Interfaces:
AnnotationModel
public class AnnotationModelImpl extends Object implements AnnotationModel
Model a annotation instance
-
-
Constructor Summary
Constructors Constructor Description AnnotationModelImpl(AnnotatedElement element, AnnotationType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(String name, Object value)
AnnotatedElement
getElement()
Returns the annotated element with this annotation instanceAnnotationType
getType()
Returns the annotation type for this modelMap<String,Object>
getValues()
Returns an unmodifiable collection of annotation values.String
toString()
-
-
-
Constructor Detail
-
AnnotationModelImpl
public AnnotationModelImpl(AnnotatedElement element, AnnotationType type)
-
-
Method Detail
-
getValues
public Map<String,Object> getValues()
Description copied from interface:AnnotationModel
Returns an unmodifiable collection of annotation values.- Specified by:
getValues
in interfaceAnnotationModel
- Returns:
- collection of value elements of this annotation
-
getType
public AnnotationType getType()
Description copied from interface:AnnotationModel
Returns the annotation type for this model- Specified by:
getType
in interfaceAnnotationModel
- Returns:
- the annotation type
-
getElement
public AnnotatedElement getElement()
Description copied from interface:AnnotationModel
Returns the annotated element with this annotation instance- Specified by:
getElement
in interfaceAnnotationModel
- Returns:
- the annotated element
-
-