Module org.glassfish.hk2.classmodel
Class AnnotationModelImpl
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotationModelImpl
- All Implemented Interfaces:
AnnotationModel
Model a annotation instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the annotated element with this annotation instancegetType()Returns the annotation type for this model<T> TReturns the value to which the key is mapped or annotation default value if mapping not found<T> TReturns the value to which the key is mapped or specified default value if mapping not foundReturns an unmodifiable collection of annotation values.toString()
-
Constructor Details
-
AnnotationModelImpl
-
-
Method Details
-
toString
-
addValue
-
getValues
Description copied from interface:AnnotationModelReturns an unmodifiable collection of annotation values.- Specified by:
getValuesin interfaceAnnotationModel- Returns:
- collection of value elements of this annotation
-
getValue
Description copied from interface:AnnotationModelReturns the value to which the key is mapped or specified default value if mapping not found- Specified by:
getValuein interfaceAnnotationModel- Parameters:
key- the key whose associated value is to be returnedtype- value typedefaultValue- the default mapping of the key- Returns:
- the annotation value.
-
getValue
Description copied from interface:AnnotationModelReturns the value to which the key is mapped or annotation default value if mapping not found- Specified by:
getValuein interfaceAnnotationModel- Parameters:
key- the key whose associated value is to be returnedtype- value type- Returns:
- the annotation value.
-
getType
Description copied from interface:AnnotationModelReturns the annotation type for this model- Specified by:
getTypein interfaceAnnotationModel- Returns:
- the annotation type
-
getElement
Description copied from interface:AnnotationModelReturns the annotated element with this annotation instance- Specified by:
getElementin interfaceAnnotationModel- Returns:
- the annotated element
-