Module org.glassfish.hk2.classmodel
Class AnnotationTypeImpl
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl<InterfaceModel>
org.glassfish.hk2.classmodel.reflect.impl.InterfaceModelImpl
org.glassfish.hk2.classmodel.reflect.impl.AnnotationTypeImpl
- All Implemented Interfaces:
AnnotatedElement
,AnnotationType
,ExtensibleType<InterfaceModel>
,InterfaceModel
,Type
Implementation of an annotation model
-
Field Summary
Fields inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDefaultValue
(String name, Object value) Returns an unmodifiable collection of annotated element with this annotationgetDefaultValue
(String key) Returns the value to which the key is mappedReturns an unmodifiable collection of annotation default values.protected void
print
(StringBuffer sb) prints a meaningful stringMethods inherited from class org.glassfish.hk2.classmodel.reflect.impl.InterfaceModelImpl
allImplementations, implementations
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
allSubTypes, getFormalTypeParameters, getInterfaces, getParameterizedInterface, getParameterizedInterfaces, getParent, getSimpleName, getStaticFields, isInstanceOf, setFormalTypeParameters, setParent, subTypes
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
getDefiningURIs, getMethods, getReferences, wasDefinedIn
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.ExtensibleType
allSubTypes, getFormalTypeParameters, getInterfaces, getParameterizedInterface, getParameterizedInterfaces, getParent, getSimpleName, getStaticFields, isInstanceOf, subTypes
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.InterfaceModel
allImplementations, implementations
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.Type
getDefiningURIs, getMethods, getReferences, wasDefinedIn
-
Constructor Details
-
AnnotationTypeImpl
-
-
Method Details
-
allAnnotatedTypes
Description copied from interface:AnnotationType
Returns an unmodifiable collection of annotated element with this annotation- Specified by:
allAnnotatedTypes
in interfaceAnnotationType
- Returns:
- collection of elements annotated with this annotation
-
addDefaultValue
-
getDefaultValues
Description copied from interface:AnnotationType
Returns an unmodifiable collection of annotation default values.- Specified by:
getDefaultValues
in interfaceAnnotationType
- Returns:
- collection of default value elements of this annotation
-
getDefaultValue
Description copied from interface:AnnotationType
Returns the value to which the key is mapped- Specified by:
getDefaultValue
in interfaceAnnotationType
- Parameters:
key
- the key whose associated value is to be returned- Returns:
- the default value.
-
print
Description copied from class:ExtensibleTypeImpl
prints a meaningful string- Overrides:
print
in classInterfaceModelImpl
- Parameters:
sb
- the string buffer to write to.
-