Uses of Class
org.jboss.jandex.ClassInfo
Packages that use ClassInfo
Package
Description
Jandex is a space efficient Java class file indexer and offline reflection library.
-
Uses of ClassInfo in org.jboss.jandex
Fields in org.jboss.jandex declared as ClassInfoModifier and TypeFieldDescriptionprivate ClassInfo
FieldInfo.clazz
private final ClassInfo
FieldInfoGenerator.clazz
private ClassInfo
MethodInfo.clazz
private final ClassInfo
MethodInfoGenerator.clazz
private ClassInfo
RecordComponentInfo.clazz
private final ClassInfo
RecordComponentInfoGenerator.clazz
private ClassInfo
Indexer.currentClass
private final ClassInfo
ModuleInfo.moduleInfoClass
Fields in org.jboss.jandex with type parameters of type ClassInfoModifier and TypeFieldDescriptionIndex.classes
Indexer.classes
(package private) Map
<DotName, Collection<ClassInfo>> Index.classesInPackage
Index.EMPTY_CLASSINFO_LIST
Indexer.implementors
Indexer.subclasses
Indexer.subinterfaces
Indexer.users
Methods in org.jboss.jandex that return ClassInfoModifier and TypeMethodDescriptionAnnotationTarget.asClass()
Casts and returns this target as aClassInfo
if it is of kindCLASS
ClassInfo.asClass()
final ClassInfo
FieldInfo.asClass()
final ClassInfo
MethodInfo.asClass()
final ClassInfo
MethodParameterInfo.asClass()
final ClassInfo
RecordComponentInfo.asClass()
final ClassInfo
TypeTarget.asClass()
static ClassInfo
ClassInfo.create
(DotName name, DotName superName, short flags, DotName[] interfaces, Map<DotName, List<AnnotationInstance>> annotations, boolean hasNoArgsConstructor) Deprecated.final ClassInfo
FieldInfo.declaringClass()
Returns the class which declared the fieldfinal ClassInfo
MethodInfo.declaringClass()
Returns the class that declared this methodfinal ClassInfo
RecordComponentInfo.declaringClass()
Returns the (record) class declaring this record component.ClassExtendsTypeTarget.enclosingTarget()
CompositeIndex.getClassByName
(DotName className) Gets the class (or interface, or annotation) that was scanned during the indexing phase.EmptyIndex.getClassByName
(DotName className) Index.getClassByName
(DotName className) Gets the class (or interface, or annotation) that was scanned during the indexing phase.default ClassInfo
IndexView.getClassByName
(Class<?> clazz) Gets the class (or interface, or annotation) that was scanned during the indexing phase.default ClassInfo
IndexView.getClassByName
(String className) Gets the class (or interface, or annotation) that was scanned during the indexing phase.IndexView.getClassByName
(DotName className) Gets the class (or interface, or annotation) that was scanned during the indexing phase.StackedIndex.getClassByName
(DotName className) Indexer.index$$bridge
(InputStream stream) Indexer.indexClass$$bridge
(Class<?> clazz) ModuleInfo.moduleInfoClass()
private ClassInfo
IndexReaderV2.readClassEntry
(PackedDataInputStream stream, Map<DotName, List<AnnotationInstance>> masterAnnotations) static ClassInfo
Index.singleClass
(byte[] classData) static ClassInfo
Index.singleClass
(InputStream classData) static ClassInfo
Index.singleClass
(Class<?> clazz) Methods in org.jboss.jandex that return types with arguments of type ClassInfoModifier and TypeMethodDescriptionCompositeIndex.getAllKnownImplementors
(DotName interfaceName) Returns all known classes that implement the given interface, directly and indirectly.EmptyIndex.getAllKnownImplementors
(DotName interfaceName) Index.getAllKnownImplementors
(DotName interfaceName) Returns all known classes that implement the given interface, directly and indirectly.default Collection
<ClassInfo> IndexView.getAllKnownImplementors
(Class<?> interfaceClass) Returns all known classes that implement the given interface, directly and indirectly.default Collection
<ClassInfo> IndexView.getAllKnownImplementors
(String interfaceName) Returns all known classes that implement the given interface, directly and indirectly.IndexView.getAllKnownImplementors
(DotName interfaceName) Returns all known classes that implement the given interface, directly and indirectly.StackedIndex.getAllKnownImplementors
(DotName interfaceName) CompositeIndex.getAllKnownSubclasses
(DotName className) Returns all known (including non-direct) subclasses of the given class.EmptyIndex.getAllKnownSubclasses
(DotName className) Index.getAllKnownSubclasses
(DotName className) default Collection
<ClassInfo> IndexView.getAllKnownSubclasses
(Class<?> clazz) Returns all known (including non-direct) subclasses of the given class.default Collection
<ClassInfo> IndexView.getAllKnownSubclasses
(String className) Returns all known (including non-direct) subclasses of the given class.IndexView.getAllKnownSubclasses
(DotName className) Returns all known (including non-direct) subclasses of the given class.StackedIndex.getAllKnownSubclasses
(DotName className) CompositeIndex.getAllKnownSubinterfaces
(DotName interfaceName) Returns all known interfaces that extend the given interface, directly and indirectly.EmptyIndex.getAllKnownSubinterfaces
(DotName interfaceName) Index.getAllKnownSubinterfaces
(DotName interfaceName) Returns all known interfaces that extend the given interface, directly and indirectly.default Collection
<ClassInfo> IndexView.getAllKnownSubinterfaces
(Class<?> interfaceClass) Returns all known interfaces that extend the given interface, directly and indirectly.default Collection
<ClassInfo> IndexView.getAllKnownSubinterfaces
(String interfaceName) Returns all known interfaces that extend the given interface, directly and indirectly.IndexView.getAllKnownSubinterfaces
(DotName interfaceName) Returns all known interfaces that extend the given interface, directly and indirectly.StackedIndex.getAllKnownSubinterfaces
(DotName interfaceName) CompositeIndex.getClassesInPackage
(DotName packageName) Returns all classes known to this index that are present in given package.EmptyIndex.getClassesInPackage
(DotName packageName) Index.getClassesInPackage
(DotName packageName) Returns all classes known to this index that are present in given package.default Collection
<ClassInfo> IndexView.getClassesInPackage
(String packageName) Returns all classes known to this index that are present in given package.IndexView.getClassesInPackage
(DotName packageName) Returns all classes known to this index that are present in given package.StackedIndex.getClassesInPackage
(DotName packageName) CompositeIndex.getKnownClasses()
Gets all known classes by this index (those which were scanned).EmptyIndex.getKnownClasses()
Index.getKnownClasses()
Gets all known classes by this index (those which were scanned).IndexView.getKnownClasses()
Gets all known classes by this index (those which were scanned).StackedIndex.getKnownClasses()
CompositeIndex.getKnownDirectImplementors
(DotName interfaceName) Gets all known direct implementors of the specified interface.EmptyIndex.getKnownDirectImplementors
(DotName interfaceName) Index.getKnownDirectImplementors
(DotName interfaceName) Gets all known direct implementors of the specified interface.default Collection
<ClassInfo> IndexView.getKnownDirectImplementors
(Class<?> interfaceClass) Gets all known direct implementors of the specified interface name.default Collection
<ClassInfo> IndexView.getKnownDirectImplementors
(String interfaceName) Gets all known direct implementors of the specified interface name.IndexView.getKnownDirectImplementors
(DotName interfaceName) Gets all known direct implementors of the specified interface.StackedIndex.getKnownDirectImplementors
(DotName interfaceName) CompositeIndex.getKnownDirectSubclasses
(DotName className) Gets all known direct subclasses of the specified class.EmptyIndex.getKnownDirectSubclasses
(DotName className) Index.getKnownDirectSubclasses
(DotName className) Gets all known direct subclasses of the specified class.default Collection
<ClassInfo> IndexView.getKnownDirectSubclasses
(Class<?> clazz) Gets all known direct subclasses of the specified class.default Collection
<ClassInfo> IndexView.getKnownDirectSubclasses
(String className) Gets all known direct subclasses of the specified class.IndexView.getKnownDirectSubclasses
(DotName className) Gets all known direct subclasses of the specified class.StackedIndex.getKnownDirectSubclasses
(DotName className) CompositeIndex.getKnownDirectSubinterfaces
(DotName interfaceName) Gets all known direct subinterfaces of the specified interface.EmptyIndex.getKnownDirectSubinterfaces
(DotName interfaceName) Index.getKnownDirectSubinterfaces
(DotName interfaceName) Gets all known direct subinterfaces of the specified interface.default Collection
<ClassInfo> IndexView.getKnownDirectSubinterfaces
(Class<?> interfaceClass) Gets all known direct subinterfaces of the specified interface.default Collection
<ClassInfo> IndexView.getKnownDirectSubinterfaces
(String interfaceName) Gets all known direct subinterfaces of the specified interface.IndexView.getKnownDirectSubinterfaces
(DotName interfaceName) Gets all known direct subinterfaces of the specified interface.StackedIndex.getKnownDirectSubinterfaces
(DotName interfaceName) CompositeIndex.getKnownUsers
(DotName className) Returns a list of classes in this index that use the specified class.EmptyIndex.getKnownUsers
(DotName className) Index.getKnownUsers
(DotName className) Returns a list of classes in this index that use the specified class.default Collection
<ClassInfo> IndexView.getKnownUsers
(Class<?> clazz) Returns a list of classes in this index that use the specified class.default Collection
<ClassInfo> IndexView.getKnownUsers
(String className) Returns a list of classes in this index that use the specified class.IndexView.getKnownUsers
(DotName className) Returns a list of classes in this index that use the specified class.StackedIndex.getKnownUsers
(DotName className) Methods in org.jboss.jandex with parameters of type ClassInfoModifier and TypeMethodDescriptionAdds a class-valued annotation member with givenname
.Adds a class array-valued annotation member with givenname
.Adds an enum-valued annotation member with givenname
.Adds an enum array-valued annotation member with givenname
.private void
private void
IndexReaderV1.addClassToMap
(HashMap<DotName, List<ClassInfo>> map, DotName name, ClassInfo currentClass) private void
IndexReaderV2.addClassToMap
(HashMap<DotName, List<ClassInfo>> map, DotName name, ClassInfo currentClass) private void
Indexer.addImplementor
(DotName interfaceName, ClassInfo currentClass) private void
Indexer.addSubclass
(DotName superName, ClassInfo currentClass) private void
Indexer.addSubinterface
(DotName superName, ClassInfo currentClass) static AnnotationInstanceBuilder
Creates a builder of annotation instances of givenannotationType
.static FieldInfo
Construct a new mock Field instance.static MethodInfo
MethodInfo.create
(ClassInfo clazz, String name, String[] parameterNames, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions) Construct a new mock Method instance.static MethodInfo
MethodInfo.create
(ClassInfo clazz, String name, Type[] parameterTypes, Type returnType, short flags) Construct a new mock Method instance.static MethodInfo
MethodInfo.create
(ClassInfo clazz, String name, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions) Construct a new mock Method instance.static RecordComponentInfo
Constructs a new mock record component infostatic Class
<?> Loads a class corresponding to givenClassInfo
from the thread context classloader.Returns an equivalence key for given class.private void
Indexer.parseClassSignature
(String signature, ClassInfo clazz) private void
Indexer.processEnclosingMethod
(DataInputStream data, ClassInfo target) private void
Indexer.processInnerClasses
(DataInputStream data, ClassInfo target) private void
Indexer.processModule
(DataInputStream data, ClassInfo target) private void
Indexer.processModuleMainClass
(DataInputStream data, ClassInfo target) private void
Indexer.processModulePackages
(DataInputStream data, ClassInfo target) private void
Indexer.processPermittedSubclasses
(DataInputStream data, ClassInfo target) private void
IndexReaderV1.readAnnotations
(PackedDataInputStream stream, Map<DotName, List<AnnotationInstance>> annotations, ClassInfo clazz) private FieldInternal[]
IndexReaderV2.readClassFields
(PackedDataInputStream stream, ClassInfo clazz) private MethodInternal[]
IndexReaderV2.readClassMethods
(PackedDataInputStream stream, ClassInfo clazz) private RecordComponentInternal[]
IndexReaderV2.readClassRecordComponents
(PackedDataInputStream stream, ClassInfo clazz) private MethodInfo
IndexReaderV1.readMethod
(ClassInfo clazz, PackedDataInputStream stream) private ModuleInfo
IndexReaderV2.readModuleEntry
(PackedDataInputStream stream, ClassInfo moduleInfoClass) (package private) final Type
MethodInternal.receiverType
(ClassInfo clazz) (package private) static String
GenericSignatureReconstruction.reconstructGenericSignature
(ClassInfo clazz, Function<String, Type> typeVariableSubstitution) (package private) static boolean
GenericSignatureReconstruction.requiresGenericSignature
(ClassInfo clazz) (package private) void
FieldInfo.setClassInfo
(ClassInfo clazz) (package private) final void
MethodInfo.setClassInfo
(ClassInfo clazz) (package private) void
RecordComponentInfo.setClassInfo
(ClassInfo clazz) private void
IndexReaderV2.updateAnnotationTargetInfo
(AnnotationInstance[] annotations, ClassInfo clazz) Adds a class-valued annotation member calledvalue
.Adds a class array-valued annotation member calledvalue
.Adds an enum-valued annotation member calledvalue
.Adds an enum array-valued annotation member calledvalue
.private void
IndexWriterV2.writeClassEntry
(PackedDataOutputStream stream, ClassInfo clazz) private void
IndexWriterV2.writeUsersSet
(PackedDataOutputStream stream, DotName user, ClassInfo[] uses) Method parameters in org.jboss.jandex with type arguments of type ClassInfoModifier and TypeMethodDescriptionprivate void
IndexReaderV1.addClassToMap
(HashMap<DotName, List<ClassInfo>> map, DotName name, ClassInfo currentClass) private void
IndexReaderV2.addClassToMap
(HashMap<DotName, List<ClassInfo>> map, DotName name, ClassInfo currentClass) private void
CompositeIndex.getAllKnownSubClasses
(DotName className, Set<ClassInfo> allKnown, Set<DotName> processedClasses) private void
CompositeIndex.getAllKnownSubClasses
(DotName name, Set<ClassInfo> allKnown, Set<DotName> subClassesToProcess, Set<DotName> processedClasses) private void
Index.getAllKnownSubClasses
(DotName className, Set<ClassInfo> allKnown, Set<DotName> processedClasses) private void
Index.getAllKnownSubClasses
(DotName name, Set<ClassInfo> allKnown, Set<DotName> subClassesToProcess, Set<DotName> processedClasses) private void
CompositeIndex.getKnownImplementors
(DotName name, Set<ClassInfo> allKnown, Set<DotName> subInterfacesToProcess, Set<DotName> processedClasses) private void
Index.getKnownImplementors
(DotName name, Set<ClassInfo> allKnown, Set<DotName> subInterfacesToProcess, Set<DotName> processedClasses) Adds a predicate that tests whether the current class matches givenpredicate
.Constructors in org.jboss.jandex with parameters of type ClassInfoModifierConstructorDescription(package private)
ClassExtendsTypeTarget
(ClassInfo enclosingTarget, int position) (package private)
(package private)
FieldInfo
(ClassInfo clazz, FieldInternal internal) FieldInfoGenerator
(ClassInfo clazz, FieldInternal[] fields, byte[] positions) (package private)
MethodInfo
(ClassInfo clazz, byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags) (package private)
MethodInfo
(ClassInfo clazz, byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags, Type[] typeParameters, Type[] exceptions) (package private)
MethodInfo
(ClassInfo clazz, MethodInternal methodInternal) MethodInfoGenerator
(ClassInfo clazz, MethodInternal[] methods, byte[] positions) (package private)
ModuleInfo
(ClassInfo moduleInfoClass, DotName name, short flags, String version) (package private)
RecordComponentInfo
(ClassInfo clazz, byte[] name, Type type) (package private)
RecordComponentInfo
(ClassInfo clazz, RecordComponentInternal internal) RecordComponentInfoGenerator
(ClassInfo clazz, RecordComponentInternal[] recordComponents, byte[] positions)