Modifier and Type | Field and Description |
---|---|
private ClassInfo |
MethodInfoGenerator.clazz |
private ClassInfo |
MethodInfo.clazz |
private ClassInfo |
FieldInfoGenerator.clazz |
private ClassInfo |
FieldInfo.clazz |
private ClassInfo |
Indexer.currentClass |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<DotName,ClassInfo> |
Indexer.classes |
(package private) java.util.Map<DotName,ClassInfo> |
Index.classes |
private static java.util.List<ClassInfo> |
Index.EMPTY_CLASSINFO_LIST |
private java.util.Map<DotName,java.util.List<ClassInfo>> |
Indexer.implementors |
(package private) java.util.Map<DotName,java.util.List<ClassInfo>> |
Index.implementors |
private java.util.Map<DotName,java.util.List<ClassInfo>> |
Indexer.subclasses |
(package private) java.util.Map<DotName,java.util.List<ClassInfo>> |
Index.subclasses |
Modifier and Type | Method and Description |
---|---|
ClassInfo |
TypeTarget.asClass() |
ClassInfo |
MethodParameterInfo.asClass() |
ClassInfo |
MethodInfo.asClass() |
ClassInfo |
FieldInfo.asClass() |
ClassInfo |
ClassInfo.asClass() |
ClassInfo |
AnnotationTarget.asClass()
Casts and returns this target as a
ClassInfo if it is of kind CLASS |
static ClassInfo |
ClassInfo.create(DotName name,
DotName superName,
short flags,
DotName[] interfaces,
java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
boolean hasNoArgsConstructor)
Deprecated.
|
ClassInfo |
MethodInfo.declaringClass()
Returns the class that declared this method
|
ClassInfo |
FieldInfo.declaringClass()
Returns the class which declared the field
|
ClassInfo |
ClassExtendsTypeTarget.enclosingTarget() |
ClassInfo |
IndexView.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
Index.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
CompositeIndex.getClassByName(DotName className)
Gets the class (or interface, or annotation) that was scanned during the
indexing phase.
|
ClassInfo |
Indexer.index(java.io.InputStream stream)
Analyze and index the class file data present in the passed input stream.
|
private ClassInfo |
IndexReaderV2.readClassEntry(PackedDataInputStream stream,
java.util.Map<DotName,java.util.List<AnnotationInstance>> masterAnnotations,
int version) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<ClassInfo> |
IndexView.getAllKnownImplementors(DotName interfaceName)
Returns all known classes that implement the given interface, directly and indirectly.
|
java.util.Set<ClassInfo> |
Index.getAllKnownImplementors(DotName interfaceName) |
java.util.Set<ClassInfo> |
CompositeIndex.getAllKnownImplementors(DotName interfaceName)
Returns all known classes that implement the given interface, directly and indirectly.
|
java.util.Collection<ClassInfo> |
IndexView.getAllKnownSubclasses(DotName className)
Returns all known (including non-direct) sub classes of the given class.
|
java.util.Collection<ClassInfo> |
Index.getAllKnownSubclasses(DotName className) |
java.util.Set<ClassInfo> |
CompositeIndex.getAllKnownSubclasses(DotName className)
Returns all known (including non-direct) sub classes of the given class.
|
java.util.Collection<ClassInfo> |
IndexView.getKnownClasses()
Gets all known classes by this index (those which were scanned).
|
java.util.Collection<ClassInfo> |
Index.getKnownClasses()
Gets all known classes by this index (those which were scanned).
|
java.util.Collection<ClassInfo> |
CompositeIndex.getKnownClasses()
Gets all known classes by this index (those which were scanned).
|
java.util.Collection<ClassInfo> |
IndexView.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface name.
|
java.util.List<ClassInfo> |
Index.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface name.
|
java.util.Collection<ClassInfo> |
CompositeIndex.getKnownDirectImplementors(DotName className)
Gets all known direct implementors of the specified interface name.
|
java.util.Collection<ClassInfo> |
IndexView.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class name.
|
java.util.List<ClassInfo> |
Index.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class name.
|
java.util.Set<ClassInfo> |
CompositeIndex.getKnownDirectSubclasses(DotName className)
Gets all known direct subclasses of the specified class name.
|
Modifier and Type | Method and Description |
---|---|
private void |
IndexWriterV2.addClass(ClassInfo clazz) |
private void |
IndexReaderV2.addClassToMap(java.util.HashMap<DotName,java.util.List<ClassInfo>> map,
DotName name,
ClassInfo currentClass) |
private void |
IndexReaderV1.addClassToMap(java.util.HashMap<DotName,java.util.List<ClassInfo>> map,
DotName name,
ClassInfo currentClass) |
private void |
Indexer.addImplementor(DotName interfaceName,
ClassInfo currentClass) |
private void |
Indexer.addSubclass(DotName superName,
ClassInfo currentClass) |
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
java.lang.String name,
java.lang.String[] parameterNames,
Type[] args,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
java.lang.String name,
Type[] args,
Type returnType,
short flags)
Construct a new mock Method instance.
|
static MethodInfo |
MethodInfo.create(ClassInfo clazz,
java.lang.String name,
Type[] args,
Type returnType,
short flags,
TypeVariable[] typeParameters,
Type[] exceptions)
Construct a new mock Method instance.
|
static FieldInfo |
FieldInfo.create(ClassInfo clazz,
java.lang.String name,
Type type,
short flags)
Construct a new mock Field instance.
|
private void |
Indexer.parseClassSignature(java.lang.String signature,
ClassInfo clazz) |
private void |
Main.printIndexEntryInfo(ClassInfo info) |
private static void |
JarIndexer.printIndexEntryInfo(ClassInfo info,
java.io.PrintStream infoStream) |
private void |
Indexer.processEnclosingMethod(java.io.DataInputStream data,
ClassInfo target) |
private void |
Indexer.processInnerClasses(java.io.DataInputStream data,
ClassInfo target) |
private void |
IndexReaderV1.readAnnotations(PackedDataInputStream stream,
java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
ClassInfo clazz) |
private FieldInternal[] |
IndexReaderV2.readClassFields(PackedDataInputStream stream,
ClassInfo clazz) |
private MethodInternal[] |
IndexReaderV2.readClassMethods(PackedDataInputStream stream,
ClassInfo clazz) |
private MethodInfo |
IndexReaderV1.readMethod(ClassInfo clazz,
PackedDataInputStream stream) |
(package private) Type |
MethodInternal.receiverType(ClassInfo clazz) |
(package private) void |
MethodInfo.setClassInfo(ClassInfo clazz) |
(package private) void |
FieldInfo.setClassInfo(ClassInfo clazz) |
java.lang.String |
FieldInternal.toString(ClassInfo clazz) |
private void |
IndexReaderV2.updateAnnotationTargetInfo(AnnotationInstance[] annotations,
ClassInfo clazz) |
private void |
IndexWriterV2.writeClassEntry(PackedDataOutputStream stream,
ClassInfo clazz,
int version) |
Modifier and Type | Method and Description |
---|---|
private void |
IndexReaderV2.addClassToMap(java.util.HashMap<DotName,java.util.List<ClassInfo>> map,
DotName name,
ClassInfo currentClass) |
private void |
IndexReaderV1.addClassToMap(java.util.HashMap<DotName,java.util.List<ClassInfo>> map,
DotName name,
ClassInfo currentClass) |
static Index |
Index.create(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
static Index |
Index.create(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes)
Constructs a "mock" Index using the passed values.
|
private void |
Index.getAllKnownSubClasses(DotName className,
java.util.Set<ClassInfo> allKnown,
java.util.Set<DotName> processedClasses) |
private void |
CompositeIndex.getAllKnownSubClasses(DotName className,
java.util.Set<ClassInfo> allKnown,
java.util.Set<DotName> processedClasses) |
private void |
Index.getAllKnownSubClasses(DotName name,
java.util.Set<ClassInfo> allKnown,
java.util.Set<DotName> subClassesToProcess,
java.util.Set<DotName> processedClasses) |
private void |
CompositeIndex.getAllKnownSubClasses(DotName name,
java.util.Set<ClassInfo> allKnown,
java.util.Set<DotName> subClassesToProcess,
java.util.Set<DotName> processedClasses) |
private void |
Index.getKnownImplementors(DotName name,
java.util.Set<ClassInfo> allKnown,
java.util.Set<DotName> subInterfacesToProcess,
java.util.Set<DotName> processedClasses) |
private void |
CompositeIndex.getKnownImplementors(DotName name,
java.util.Set<ClassInfo> allKnown,
java.util.Set<DotName> subInterfacesToProcess,
java.util.Set<DotName> processedClasses) |
Constructor and Description |
---|
ClassExtendsTypeTarget(ClassInfo enclosingTarget,
int position) |
FieldInfo(ClassInfo clazz,
byte[] name,
Type type,
short flags) |
FieldInfo(ClassInfo clazz,
FieldInternal internal) |
FieldInfoGenerator(ClassInfo clazz,
FieldInternal[] fields) |
MethodInfo(ClassInfo clazz,
byte[] name,
byte[][] parameterNames,
Type[] parameters,
Type returnType,
short flags) |
MethodInfo(ClassInfo clazz,
byte[] name,
byte[][] parameterNames,
Type[] parameters,
Type returnType,
short flags,
Type[] typeParameters,
Type[] exceptions) |
MethodInfo(ClassInfo clazz,
MethodInternal methodInternal) |
MethodInfoGenerator(ClassInfo clazz,
MethodInternal[] methods) |
Constructor and Description |
---|
Index(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes) |
Index(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes) |
Index(java.util.Map<DotName,java.util.List<AnnotationInstance>> annotations,
java.util.Map<DotName,java.util.List<ClassInfo>> subclasses,
java.util.Map<DotName,java.util.List<ClassInfo>> implementors,
java.util.Map<DotName,ClassInfo> classes) |