Uses of Class
io.github.classgraph.ClassInfo
Packages that use ClassInfo
-
Uses of ClassInfo in io.github.classgraph
Subclasses of ClassInfo in io.github.classgraphFields in io.github.classgraph declared as ClassInfoModifier and TypeFieldDescriptionprivate final ClassInfo
ClassTypeSignature.classInfo
The class info.private ClassInfo
ScanResultObject.classInfo
The associatedClassInfo
object.private ClassInfo
ArrayClassInfo.elementClassInfo
The element class info.Fields in io.github.classgraph with type parameters of type ClassInfoModifier and TypeFieldDescriptionScanResult.SerializationFormat.classInfo
The list of allClassInfo
objects.ModuleInfo.classInfoSet
Set of classes in the module.ScanResult.classNameToClassInfo
The map from class name toClassInfo
.ClassInfo.ReachableAndDirectlyRelatedClasses.directlyRelatedClasses
The directly related classes.ClassInfoList.directlyRelatedClasses
Directly related classes.PackageInfo.memberClassNameToClassInfo
Set of classes in the package.ClassInfo.methodOverrideOrder
The override order for a class' methods (base class, followed by superclasses, followed by interfaces).ClassInfo.overrideOrder
The override order for a class' fields or methods (base class, followed by interfaces, followed by superclasses).ClassInfo.ReachableAndDirectlyRelatedClasses.reachableClasses
The reachable classes.private Map
<ClassInfo.RelType, Set<ClassInfo>> ClassInfo.relatedClasses
The set of classes related to this one.Methods in io.github.classgraph that return ClassInfoModifier and TypeMethodDescription(package private) static ClassInfo
ClassInfo.addScannedClass
(String className, int classModifiers, boolean isExternalClass, Map<String, ClassInfo> classNameToClassInfo, ClasspathElement classpathElement, Resource classfileResource) Add a class that has just been scanned (as opposed to just referenced by a scanned class).AnnotationClassRef.getClassInfo()
Get the class info.AnnotationInfo.getClassInfo()
Return theClassInfo
object for the annotation class.protected ClassInfo
AnnotationParameterValue.getClassInfo()
protected ClassInfo
ArrayTypeSignature.getClassInfo()
protected ClassInfo
BaseTypeSignature.getClassInfo()
protected ClassInfo
ClassInfo.getClassInfo()
ClassMemberInfo.getClassInfo()
Get theClassInfo
object for the class that declares this class member.ClassRefTypeSignature.getClassInfo()
Get theClassInfo
object for the referenced class.protected ClassInfo
ClassTypeSignature.getClassInfo()
protected ClassInfo
MethodTypeSignature.getClassInfo()
ModuleInfo.getClassInfo
(String className) Get theClassInfo
object for the named class in this module, or null if the class was not found in this module.protected ClassInfo
ObjectTypedValueWrapper.getClassInfo()
PackageInfo.getClassInfo
(String className) Get theClassInfo
object for the named class in this package, or null if the class was not found in this package.ScanResult.getClassInfo
(String className) Get theClassInfo
object for the named class, or null if no class of the requested name was found in an accepted/non-rejected package during the scan.(package private) ClassInfo
ScanResultObject.getClassInfo()
Get theClassInfo
object for the referenced class, or null if the referenced class was not encountered during scanning (i.e.protected ClassInfo
TypeArgument.getClassInfo()
protected ClassInfo
TypeParameter.getClassInfo()
ArrayClassInfo.getElementClassInfo()
Get theClassInfo
instance for the array element type.(package private) static ClassInfo
ClassInfo.getOrCreateClassInfo
(String className, Map<String, ClassInfo> classNameToClassInfo) Get a ClassInfo object, or create it if it doesn't exist.ClassInfo.getSuperclass()
Get the single direct superclass of this class, or null if none.Methods in io.github.classgraph that return types with arguments of type ClassInfoModifier and TypeMethodDescriptionClassInfo.filterClassInfo
(Collection<ClassInfo> classes, ScanSpec scanSpec, boolean strictAccept, ClassInfo.ClassType... classTypes) Filter classes according to scan spec and class type.ScanResultObject.findReferencedClassInfo
(LogNode log) GetClassInfo
objects for any classes referenced by this object.ScanResult.getAllClassesAsMap()
Get a map from class name toClassInfo
object for all classes, interfaces and annotations found during the scan.ScanResult.getClassDependencyMap()
Get a map from theClassInfo
object for each accepted class to a list of the classes referenced by that class (i.e.ClassInfo.getFieldOverrideOrder()
Get the order that fields are overridden in (base class first).ClassInfo.getFieldOverrideOrder
(Set<ClassInfo> visited, List<ClassInfo> overrideOrderOut) Recurse to interfaces and superclasses to get the order that fields are overridden in.ClassInfo.getMethodOverrideOrder()
Get the order that methods are overridden in.ClassInfo.getMethodOverrideOrder
(Set<ClassInfo> visited, List<ClassInfo> overrideOrderOut) Recurse to collect classes and interfaces in the order of overridden methods, in descending priority.ScanResult.getReverseClassDependencyMap()
Get the reverse class dependency map, i.e.Methods in io.github.classgraph with parameters of type ClassInfoModifier and TypeMethodDescriptionboolean
Whether or not to allow aClassInfo
list item through the filter.(package private) void
ModuleInfo.addClassInfo
(ClassInfo classInfo) Add aClassInfo
object to thisModuleInfo
.(package private) void
PackageInfo.addClassInfo
(ClassInfo classInfo) Merge aClassInfo
object for a package-info.class file into this PackageInfo.(package private) boolean
ClassInfo.addRelatedClass
(ClassInfo.RelType relType, ClassInfo classInfo) Add a class with a given relationship type.int
Compare based on class name.(package private) void
AnnotationParameterValue.convertWrapperArraysToPrimitiveArrays
(ClassInfo annotationClassInfo) For primitive array type params, replace Object[] arrays containing boxed types with primitive arrays (need to check the type of each method of the annotation class to determine if it is a primitive array type).(package private) void
AnnotationParameterValueList.convertWrapperArraysToPrimitiveArrays
(ClassInfo annotationClassInfo) For primitive array type params, replace Object[] arrays containing boxed types with primitive arrays (need to check the type of each method of the annotation class to determine if it is a primitive array type).(package private) void
ObjectTypedValueWrapper.convertWrapperArraysToPrimitiveArrays
(ClassInfo annotationClassInfo, String paramName) Replace Object[] arrays containing boxed types with primitive arrays.private Object
ObjectTypedValueWrapper.getArrayValueClassOrName
(ClassInfo annotationClassInfo, String paramName, boolean getClass) Get the element type of an array element.ClassInfoList.getAssignableTo
(ClassInfo superclassOrInterface) Filter thisClassInfoList
to include only classes that are assignable to the requested class, assignableToClass (i.e.(package private) static AnnotationInfoList
AnnotationInfoList.getIndirectAnnotations
(AnnotationInfoList directAnnotationInfo, ClassInfo annotatedClass) Get the indirect annotations on a class (meta-annotations and/or inherited annotations).(package private) void
AnnotationInfoList.handleRepeatableAnnotations
(Set<String> allRepeatableAnnotationNames, ClassInfo containingClassInfo, ClassInfo.RelType forwardRelType, ClassInfo.RelType reverseRelType0, ClassInfo.RelType reverseRelType1) HandleRepeatable
annotations.(package private) Object
AnnotationParameterValue.instantiate
(ClassInfo annotationClassInfo) Instantiate an annotation parameter value.(package private) Object
ObjectTypedValueWrapper.instantiateOrGet
(ClassInfo annotationClassInfo, String paramName) Instantiate or get the wrapped value.private static void
GraphvizDotfileGenerator.labelClassNodeHTML
(ClassInfo ci, String shape, String boxBgColor, boolean showFields, boolean showMethods, boolean useSimpleNames, ScanSpec scanSpec, StringBuilder buf) Produce HTML label for class node.(package private) static ClassTypeSignature
Parse a class type signature or class type descriptor.Method parameters in io.github.classgraph with type arguments of type ClassInfoModifier and TypeMethodDescription(package private) void
ClassInfo.addClassAnnotation
(AnnotationInfo classAnnotationInfo, Map<String, ClassInfo> classNameToClassInfo) Add an annotation to this class.(package private) static void
ClassInfo.addClassContainment
(List<Classfile.ClassContainment> classContainmentEntries, Map<String, ClassInfo> classNameToClassInfo) Add class containment info.(package private) void
ClassInfo.addFieldInfo
(FieldInfoList fieldInfoList, Map<String, ClassInfo> classNameToClassInfo) Add field info.private void
ClassInfo.addFieldOrMethodAnnotationInfo
(AnnotationInfoList annotationInfoList, boolean isField, int modifiers, Map<String, ClassInfo> classNameToClassInfo) Add field or method annotation cross-links.(package private) void
ClassInfo.addImplementedInterface
(String interfaceName, Map<String, ClassInfo> classNameToClassInfo) Add an implemented interface to this class.(package private) void
ClassInfo.addMethodInfo
(MethodInfoList methodInfoList, Map<String, ClassInfo> classNameToClassInfo) Add method info.(package private) static ClassInfo
ClassInfo.addScannedClass
(String className, int classModifiers, boolean isExternalClass, Map<String, ClassInfo> classNameToClassInfo, ClasspathElement classpathElement, Resource classfileResource) Add a class that has just been scanned (as opposed to just referenced by a scanned class).(package private) void
ClassInfo.addSuperclass
(String superclassName, Map<String, ClassInfo> classNameToClassInfo) Add a superclass to this class.ClassInfo.filterClassInfo
(Collection<ClassInfo> classes, ScanSpec scanSpec, boolean strictAccept, ClassInfo.ClassType... classTypes) Filter classes according to scan spec and class type.private static void
AnnotationInfoList.findMetaAnnotations
(AnnotationInfo ai, AnnotationInfoList allAnnotationsOut, Set<ClassInfo> visited) Find the transitive closure of meta-annotations.protected void
AnnotationInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
AnnotationInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
AnnotationInfoList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in this list.protected void
AnnotationInfoList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in this list.protected void
AnnotationParameterValue.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the annotation parameters.protected void
AnnotationParameterValue.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the annotation parameters.protected void
AnnotationParameterValueList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the methods in this list.protected void
AnnotationParameterValueList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the methods in this list.protected void
ArrayClassInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
ArrayClassInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
ClassInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in this class' type descriptor, or the type descriptors of fields, methods or annotations.protected void
ClassInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in this class' type descriptor, or the type descriptors of fields, methods or annotations.protected void
ClassTypeSignature.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
ClassTypeSignature.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
FieldInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
FieldInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
FieldInfoList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the list.protected void
FieldInfoList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the list.protected void
MethodInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
MethodInfo.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
MethodInfoList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
MethodInfoList.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
MethodTypeSignature.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
MethodTypeSignature.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type descriptor or type signature.protected void
ObjectTypedValueWrapper.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in annotation parameters.protected void
ObjectTypedValueWrapper.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in annotation parameters.protected void
ScanResultObject.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced by this object.protected void
ScanResultObject.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced by this object.protected final void
TypeSignature.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type signature.protected final void
TypeSignature.findReferencedClassInfo
(Map<String, ClassInfo> classNameToClassInfo, Set<ClassInfo> refdClassInfo, LogNode log) GetClassInfo
objects for any classes referenced in the type signature.(package private) static ClassInfoList
ClassInfo.getAllAnnotationClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all annotation classes found during the scan.(package private) static ClassInfoList
ClassInfo.getAllClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all classes found during the scan.(package private) static ClassInfoList
ClassInfo.getAllEnums
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get allEnum
classes found during the scan.(package private) static ClassInfoList
ClassInfo.getAllImplementedInterfaceClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all implemented interface (non-annotation interface) classes found during the scan.(package private) static ClassInfoList
ClassInfo.getAllInterfacesOrAnnotationClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all interface or annotation classes found during the scan.(package private) static ClassInfoList
ClassInfo.getAllRecords
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get allrecord
classes found during the scan.(package private) static ClassInfoList
ClassInfo.getAllStandardClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all standard classes found during the scan.ClassInfo.getFieldOverrideOrder
(Set<ClassInfo> visited, List<ClassInfo> overrideOrderOut) Recurse to interfaces and superclasses to get the order that fields are overridden in.ClassInfo.getFieldOverrideOrder
(Set<ClassInfo> visited, List<ClassInfo> overrideOrderOut) Recurse to interfaces and superclasses to get the order that fields are overridden in.ClassInfo.getMethodOverrideOrder
(Set<ClassInfo> visited, List<ClassInfo> overrideOrderOut) Recurse to collect classes and interfaces in the order of overridden methods, in descending priority.ClassInfo.getMethodOverrideOrder
(Set<ClassInfo> visited, List<ClassInfo> overrideOrderOut) Recurse to collect classes and interfaces in the order of overridden methods, in descending priority.(package private) static ClassInfo
ClassInfo.getOrCreateClassInfo
(String className, Map<String, ClassInfo> classNameToClassInfo) Get a ClassInfo object, or create it if it doesn't exist.(package private) void
Classfile.link
(Map<String, ClassInfo> classNameToClassInfo, Map<String, PackageInfo> packageNameToPackageInfo, Map<String, ModuleInfo> moduleNameToModuleInfo) Link classes.private void
PackageInfo.obtainClassInfoRecursive
(Set<ClassInfo> reachableClassInfo) Get theClassInfo
objects within this package recursively.Constructors in io.github.classgraph with parameters of type ClassInfoModifierConstructorDescription(package private)
ClassTypeSignature
(ClassInfo classInfo, ClassInfo superclass, ClassInfoList interfaces) Constructor used to create synthetic class type descriptor (#662).private
ClassTypeSignature
(ClassInfo classInfo, List<TypeParameter> typeParameters, ClassRefTypeSignature superclassSignature, List<ClassRefTypeSignature> superinterfaceSignatures, List<ClassRefOrTypeVariableSignature> throwsSignatures) Constructor.Constructor parameters in io.github.classgraph with type arguments of type ClassInfoModifierConstructorDescriptionClassInfoList
(Collection<ClassInfo> classInfoCollection) Construct a new modifiable emptyClassInfoList
, given an initial list ofClassInfo
objects.(package private)
ClassInfoList
(Set<ClassInfo> reachableClasses, boolean sortByName) Construct a modifiable list ofClassInfo
objects, where each class is directly related.(package private)
ClassInfoList
(Set<ClassInfo> reachableClasses, Set<ClassInfo> directlyRelatedClasses, boolean sortByName) Construct a modifiable list ofClassInfo
objects, consisting of reachable classes (obtained through the transitive closure) and directly related classes (one step away in the graph).private
ReachableAndDirectlyRelatedClasses
(Set<ClassInfo> reachableClasses, Set<ClassInfo> directlyRelatedClasses) Constructor.(package private)
ScanResult
(ScanSpec scanSpec, List<ClasspathElement> classpathOrder, List<String> rawClasspathEltOrderStrs, ClasspathFinder classpathFinder, Map<String, ClassInfo> classNameToClassInfo, Map<String, PackageInfo> packageNameToPackageInfo, Map<String, ModuleInfo> moduleNameToModuleInfo, Map<File, Long> fileToLastModified, NestedJarHandler nestedJarHandler, LogNode topLevelLog) The result of a scan.SerializationFormat
(String serializationFormatStr, ScanSpec scanSpec, List<ClassInfo> classInfo, List<PackageInfo> packageInfo, List<ModuleInfo> moduleInfo, List<String> classpath) Constructor.