Class Overview
Represents an annotation type at run time. Used to type-check annotations
and apply member defaults.
Summary
Public Methods |
synchronized
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, Class>
|
memberTypes()
Returns member types for this annotation type
(member name -> type mapping).
|
Map<String, Method>
|
members()
Returns members of this annotation type
(member name -> associated Method object mapping).
|
RetentionPolicy
|
retention()
Returns the retention policy for this annotation type.
|
String
|
toString()
For debugging.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Methods
public
static
synchronized
AnnotationType
getInstance
(Class 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
isInherited
()
Returns true if this this annotation type is inherited.
Returns the default values for this annotation type
(Member name -> default value mapping).
Returns member types for this annotation type
(member name -> type mapping).
Returns members of this annotation type
(member name -> associated Method object mapping).
Returns the retention policy for this annotation type.
public
String
toString
()
Returns
- a string representation of the object.