|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.sezpoz.IndexItem<A,I>
public final class IndexItem<A extends java.lang.annotation.Annotation,I>
One index item.
May be associated with a class, method, or field.
Caches result of element
and instance
after first call.
Not thread-safe.
Method Summary | |
---|---|
A |
annotation()
Get the annotation itself. |
java.lang.String |
className()
Get the name of the class which is the annotated element or of which the annotated element is a member. |
java.lang.reflect.AnnotatedElement |
element()
Get the live annotated element. |
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
I |
instance()
Get an instance referred to by the element. |
java.lang.annotation.ElementType |
kind()
Determine what kind of element is annotated. |
java.lang.String |
memberName()
Get the name of the annotated member element. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public A annotation()
Annotation
contract and should be equal to (but not identical
to) the "real" annotation available from AnnotatedElement.getAnnotation(java.lang.Class)
on element
(if in fact it has runtime retention, which is encouraged but not required).
public java.lang.annotation.ElementType kind()
ElementType.TYPE
, ElementType.METHOD
, or ElementType.FIELD
public java.lang.String className()
public java.lang.String memberName()
public java.lang.reflect.AnnotatedElement element() throws java.lang.InstantiationException
Class
, Method
, or Field
java.lang.InstantiationException
- if the class cannot be loaded or there is some other reflective problempublic I instance() throws java.lang.InstantiationException
Indexable.type()
if specified
(or may be null, in the case of a method or field)
java.lang.InstantiationException
- for the same reasons as element
,
or if creating the object failspublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |