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
public class AnnotationTypeImpl extends InterfaceModelImpl implements AnnotationType
Implementation of an annotation model
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>
defValues
private java.util.Set<AnnotatedElement>
references
-
Constructor Summary
Constructors Constructor Description AnnotationTypeImpl(java.lang.String name, TypeProxy<Type> sink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDefaultValue(java.lang.String name, java.lang.Object value)
java.util.Collection<AnnotatedElement>
allAnnotatedTypes()
Returns an unmodifiable collection of annotated element with this annotation(package private) java.util.Set<AnnotatedElement>
getAnnotatedElements()
java.util.Map<java.lang.String,java.lang.Object>
getDefaultValues()
Returns an unmodifiable collection of annotation default values.protected void
print(java.lang.StringBuffer sb)
prints a meaningful string-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.InterfaceModelImpl
allImplementations, implementations
-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.ExtensibleTypeImpl
addField, addStaticField, allSubTypes, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, isImplementing, isImplementing, setParent, subTypes
-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.TypeImpl
addDefiningURI, addMethod, getDefiningURIs, getMethods, getProxy, getReferences, wasDefinedIn
-
Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
addAnnotation, 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, getInterfaces, getParameterizedInterfaces, getParent, getStaticFields, 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
-
-
-
-
Field Detail
-
references
private final java.util.Set<AnnotatedElement> references
-
defValues
private final java.util.Map<java.lang.String,java.lang.Object> defValues
-
-
Method Detail
-
allAnnotatedTypes
public java.util.Collection<AnnotatedElement> 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
public void addDefaultValue(java.lang.String name, java.lang.Object value)
-
getDefaultValues
public java.util.Map<java.lang.String,java.lang.Object> 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
-
getAnnotatedElements
java.util.Set<AnnotatedElement> getAnnotatedElements()
-
print
protected void print(java.lang.StringBuffer sb)
Description copied from class:ExtensibleTypeImpl
prints a meaningful string- Overrides:
print
in classInterfaceModelImpl
- Parameters:
sb
- the string buffer to write to.
-
-