|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.annotation.AnnotationType
public class AnnotationType
Represents an annotation type at run time. Used to type-check annotations and apply member defaults.
| Method Summary | |
|---|---|
static AnnotationType |
getInstance(Class annotationClass)
Returns an AnnotationType instance for the specified annotation type. |
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). |
boolean |
isInherited()
Returns true if this this annotation type is inherited. |
Map<String,Object> |
memberDefaults()
Returns the default values for this annotation type (Member name -> default value mapping). |
Map<String,Method> |
members()
Returns members of this annotation type (member name -> associated Method object mapping). |
Map<String,Class> |
memberTypes()
Returns member types for this annotation type (member name -> type mapping). |
RetentionPolicy |
retention()
Returns the retention policy for this annotation type. |
String |
toString()
For debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AnnotationType getInstance(Class annotationClass)
IllegalArgumentException - if the specified class object for
does not represent a valid annotation typepublic static Class invocationHandlerReturnType(Class type)
public Map<String,Class> memberTypes()
public Map<String,Method> members()
public Map<String,Object> memberDefaults()
public RetentionPolicy retention()
public boolean isInherited()
public String toString()
toString in class Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||