public final class IndexItem<A extends Annotation,I> extends Object
Modifier and Type | Method and Description |
---|---|
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() |
public A annotation()
Annotation
contract and should be equal to (but not identical
to) the "real" annotation available from AnnotatedElement.getAnnotation(java.lang.Class<T>)
on element
(if in fact it has runtime retention, which is encouraged but not required).public ElementType kind()
ElementType.TYPE
, ElementType.METHOD
, or ElementType.FIELD
public 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 problempublic 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 failsCopyright © 2014. All rights reserved.