|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sezpoz.SpaceIndexItem<A,I>
public final class SpaceIndexItem<A extends 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. |
String |
className()
Get the name of the class which is the annotated element or of which the annotated element is a member. |
AnnotatedElement |
element()
Get the live annotated element. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
I |
instance()
Get an instance referred to by the element. |
ElementType |
kind()
Determine what kind of element is annotated. |
String |
memberName()
Get the name of the annotated member element. |
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 ElementType kind()
ElementType.TYPE, ElementType.METHOD, or ElementType.FIELDpublic String className()
public String memberName()
public AnnotatedElement element()
throws InstantiationException
Class, Method, or Field
InstantiationException - if the class cannot be loaded or there is some other reflective problem
public I instance()
throws InstantiationException
Indexable.type() if specified
(or may be null, in the case of a method or field)
InstantiationException - for the same reasons as element,
or if creating the object failspublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||