| Modifier and Type | Field and Description |
|---|---|
| private final boolean | inherited
Whether this annotation type is inherited. |
| private final Map | memberDefaults
Member name -> default value mapping. |
| private final Map | members
Member name -> Method object mapping. |
| private final Map | memberTypes
Member name -> type mapping. |
| private final RetentionPolicy | retention
The retention policy for this annotation type. |
| Access | Constructor and Description |
|---|---|
| private | AnnotationType(final Class<? extends Annotation>
the class object for the annotation type annotationClass)Sole constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public static AnnotationType | getInstance(Class<? extends Annotation> annotationClass)
Returns an AnnotationType instance for the specified annotation type. |
| public static Class | invocationHandlerReturnType(Class<?> type)
Returns the type that must be returned by the invocation handler of a dynamic proxy in order to have the dynamic proxy return the specified type (which is assumed to be a legal member type for an annotation). |
| public boolean | |
| public Map | memberDefaults()
Returns the default values for this annotation type (Member name -> default value mapping). |
| public Map | |
| public Map | |
| public RetentionPolicy | |
| public String |
| inherited | back to summary |
|---|---|
| private final boolean inherited Whether this annotation type is inherited. | |
| memberDefaults | back to summary |
|---|---|
| private final Map<String, Object> memberDefaults Member name -> default value mapping. | |
| members | back to summary |
|---|---|
| private final Map<String, Method> members Member name -> Method object mapping. This (and its associated accessor) are used only to generate AnnotationTypeMismatchExceptions. | |
| memberTypes | back to summary |
|---|---|
| private final Map<String, Class<?>> memberTypes Member name -> type mapping. Note that primitive types are represented by the class objects for the corresponding wrapper types. This matches the return value that must be used for a dynamic proxy, allowing for a simple isInstance test. | |
| retention | back to summary |
|---|---|
| private final RetentionPolicy retention The retention policy for this annotation type. | |
| AnnotationType | back to summary |
|---|---|
| private AnnotationType(final Class<? extends Annotation> annotationClass) Sole constructor.
| |
| getInstance | back to summary |
|---|---|
| public static AnnotationType getInstance(Class<? extends Annotation> annotationClass) Returns an AnnotationType instance for the specified annotation type.
| |
| invocationHandlerReturnType | back to summary |
|---|---|
| public static Class Returns the type that must be returned by the invocation handler of a dynamic proxy in order to have the dynamic proxy return the specified type (which is assumed to be a legal member type for an annotation). | |
| isInherited | back to summary |
|---|---|
| public boolean isInherited() Returns true if this annotation type is inherited. | |
| memberDefaults | back to summary |
|---|---|
| public Map Returns the default values for this annotation type (Member name -> default value mapping). | |
| members | back to summary |
|---|---|
| public Map Returns members of this annotation type (member name -> associated Method object mapping). | |
| memberTypes | back to summary |
|---|---|
| public Map Returns member types for this annotation type (member name -> type mapping). | |
| retention | back to summary |
|---|---|
| public RetentionPolicy retention() Returns the retention policy for this annotation type. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. For debugging. | |