| Modifier and Type | Class and Description |
|---|---|
| private static class | AnnotationInfo.
|
| Modifier and Type | Field and Description |
|---|---|
| private AnnotationParameterValueList | annotationParamValues
The annotation param values. |
| private transient boolean | annotationParamValuesHasBeenConvertedToPrimitive
Set to true once any Object[] arrays of boxed types in annotationParamValues have been lazily converted to primitive arrays. |
| private transient AnnotationParameterValueList | annotationParamValuesWithDefaults
The annotation param values with defaults. |
| private String | name
The name. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | AnnotationInfo(final String
The name of the annotation. name, final AnnotationParameterValueList The annotation parameter values, or null if none. annotationParamValues)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(final AnnotationInfo
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| pack-priv void | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| protected void | findReferencedClassInfo(final Map<String, ClassInfo>
the map from class name to classNameToClassInfo, final Set<ClassInfo> ClassInfo.the referenced class info refdClassInfo, final LogNode the log log)Overrides io. Get |
| public ClassInfo | getClassInfo()
Overrides io. Return the |
| protected String | Returns: the class nameImplements abstract io. Get the name of the annotation class, for |
| public AnnotationParameterValueList | Returns: the list of default parameter values for this annotation, or the empty list if none.Get the default parameter values. |
| public String | Returns: The name of the annotation class.Implements io. Get the name. |
| public AnnotationParameterValueList | Returns: The parameter values of this annotation, including any default parameter values inherited from the annotation class definition (if requested), or the empty list if none.if true, include default values for any annotation parameter value that is missing. includeDefaultValues)Get the parameter values. |
| public AnnotationParameterValueList | Returns: The parameter values of this annotation, including any default parameter values inherited from the annotation class definition, or the empty list if none.Get the parameter values. |
| public int | |
| public boolean | Returns: true if this annotation is meta-annotated withInherited.Checks if the annotation is inherited. |
| public Annotation | Returns: The newAnnotation instance, as a dynamic proxy object that can be cast to the expected
annotation type.Load the |
| pack-priv void | setScanResult(final ScanResult
the scan result scanResult)Overrides io. Set ScanResult backreferences in info objects after scan has completed. |
| protected void | toString(final boolean
if true, use just the simple name of each class. useSimpleNames, final StringBuilder the buf buf)Implements abstract io. Render to string. |
| annotationParamValues | back to summary |
|---|---|
| private AnnotationParameterValueList annotationParamValues The annotation param values. | |
| annotationParamValuesHasBeenConvertedToPrimitive | back to summary |
|---|---|
| private transient boolean annotationParamValuesHasBeenConvertedToPrimitive Set to true once any Object[] arrays of boxed types in annotationParamValues have been lazily converted to primitive arrays. | |
| annotationParamValuesWithDefaults | back to summary |
|---|---|
| private transient AnnotationParameterValueList annotationParamValuesWithDefaults The annotation param values with defaults. | |
| name | back to summary |
|---|---|
| private String name The name. | |
| AnnotationInfo | back to summary |
|---|---|
| pack-priv AnnotationInfo() Default constructor for deserialization. | |
| AnnotationInfo | back to summary |
|---|---|
| pack-priv AnnotationInfo(final String name, final AnnotationParameterValueList annotationParamValues) Constructor.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(final AnnotationInfo o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| convertWrapperArraysToPrimitiveArrays | back to summary |
|---|---|
| pack-priv void convertWrapperArraysToPrimitiveArrays() Convert wrapper arrays to primitive arrays. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| findReferencedClassInfo | back to summary |
|---|---|
| protected void findReferencedClassInfo(final Map<String, ClassInfo> classNameToClassInfo, final Set<ClassInfo> refdClassInfo, final LogNode log) Overrides io. Get | |
| getClassInfo | back to summary |
|---|---|
| public ClassInfo getClassInfo() Overrides io. Return the
| |
| getClassName | back to summary |
|---|---|
| protected String getClassName() Implements abstract io. Get the name of the annotation class, for | |
| getDefaultParameterValues | back to summary |
|---|---|
| public AnnotationParameterValueList getDefaultParameterValues() Get the default parameter values.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements io. Get the name. | |
| getParameterValues | back to summary |
|---|---|
| public AnnotationParameterValueList getParameterValues(final boolean includeDefaultValues) Get the parameter values.
| |
| getParameterValues | back to summary |
|---|---|
| public AnnotationParameterValueList getParameterValues() Get the parameter values.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isInherited | back to summary |
|---|---|
| public boolean isInherited() Checks if the annotation is inherited.
| |
| loadClassAndInstantiate | back to summary |
|---|---|
| public Annotation loadClassAndInstantiate() Load the
Note that the returned
Of course another option you have for getting the concrete annotations, rather than instantiating the
annotations on a
| |
| setScanResult | back to summary |
|---|---|
| pack-priv void setScanResult(final ScanResult scanResult) Overrides io. Doc from io. Set ScanResult backreferences in info objects after scan has completed.
| |
| toString | back to summary |
|---|---|
| protected void toString(final boolean useSimpleNames, final StringBuilder buf) Implements abstract io. Doc from io. Render to string.
| |
InvocationHandler for dynamically instantiating an Annotation object.
| Modifier and Type | Field and Description |
|---|---|
| private final Class | annotationClass
The annotation class. |
| private final AnnotationInfo | annotationInfo
The |
| private final Map | annotationParameterValuesInstantiated
The annotation parameter values instantiated. |
| Access | Constructor and Description |
|---|---|
| pack-priv | AnnotationInvocationHandler(final Class<? extends Annotation>
the annotation class annotationClass, final AnnotationInfo the annotation info annotationInfo)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(final Object
the proxy instance that the method was invoked on proxy, final Method the method, final Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. Processes a method invocation on a proxy instance and returns the result. |
| annotationClass | back to summary |
|---|---|
| private final Class<? extends Annotation> annotationClass The annotation class. | |
| annotationInfo | back to summary |
|---|---|
| private final AnnotationInfo annotationInfo The | |
| annotationParameterValuesInstantiated | back to summary |
|---|---|
| private final Map<String, Object> annotationParameterValuesInstantiated The annotation parameter values instantiated. | |
| AnnotationInvocationHandler | back to summary |
|---|---|
| pack-priv AnnotationInvocationHandler(final Class<? extends Annotation> annotationClass, final AnnotationInfo annotationInfo) Constructor.
| |
| invoke | back to summary |
|---|---|
| public Object invoke(final Object proxy, final Method method, final Object[] args) Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |