|
Java Annotation Indexer 1.0.0.Final | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jandex.ClassInfo
public final class ClassInfo
Represents a class entry in an index. A ClassInfo is only a partial view of a Java class, it is not intended as a complete replacement for Java reflection. Only the methods and fields which are references by an annotation are stored.
Global information including the parent class, implemented interfaces, and access flags are also provided since this information is often necessary.
Note that a parent class and interface may exist outside of the scope of the index (e.g. classes in a different jar) so the references are stored as names instead of direct references. It is expected that multiple indexes may need to be queried to assemble a full hierarchy in a complex multi-jar environment (e.g. an application server).
Thread-Safety
This class is immutable and can be shared between threads without safe publication.
Method Summary | |
---|---|
Map<DotName,List<AnnotationInstance>> |
annotations()
|
static ClassInfo |
create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
Map<DotName,List<AnnotationInstance>> annotations)
Constructs a "mock" ClassInfo using the passed values. |
short |
flags()
|
DotName[] |
interfaces()
|
DotName |
name()
|
DotName |
superName()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static final ClassInfo create(DotName name, DotName superName, short flags, DotName[] interfaces, Map<DotName,List<AnnotationInstance>> annotations)
name
- the name of this classsuperName
- the name of the parent classflags
- the class attributesinterfaces
- the interfaces this class implementsannotations
- the annotations on this class
public String toString()
toString
in class Object
public final DotName name()
public final short flags()
public final DotName superName()
public final DotName[] interfaces()
public final Map<DotName,List<AnnotationInstance>> annotations()
|
Java Annotation Indexer 1.0.0.Final | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |