Class AnnotationType
java.lang.Object
com.sun.ts.lib.util.sec.reflect.annotation.AnnotationType
Represents an annotation type at run time. Used to type-check annotations and apply member defaults.
- Since:
- 1.5
- Author:
- Josh Bloch
-
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationTypegetInstance(Class annotationClass) Returns an AnnotationType instance for the specified annotation type.static ClassReturns 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).booleanmembers()toString()For debugging.
-
Method Details
-
getInstance
Returns an AnnotationType instance for the specified annotation type.- Parameters:
annotationClass- the class object for the annotation type- Returns:
- an AnnotationType instance for the specified annotation type
-
invocationHandlerReturnType
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).- Parameters:
type- the type to be returned by the invocation handler- Returns:
- the type that must be returned by the invocation handler of a dynamic proxy in order to have the dynamic
-
memberTypes
- Returns:
- member types for this annotation type (member name -> type mapping).
-
members
- Returns:
- members of this annotation type (member name -> associated Method object mapping).
-
memberDefaults
- Returns:
- the default values for this annotation type (Member name -> default value mapping).
-
retention
- Returns:
- the retention policy for this annotation type.
-
isInherited
public boolean isInherited()- Returns:
- true if this this annotation type is inherited.
-
toString
For debugging.
-