Uses of Class
io.github.classgraph.ClassInfoList
Packages that use ClassInfoList
-
Uses of ClassInfoList in io.github.classgraph
Fields in io.github.classgraph declared as ClassInfoListModifier and TypeFieldDescription(package private) static final ClassInfoList
ClassInfoList.EMPTY_LIST
An unmodifiable emptyClassInfoList
.private ClassInfoList
ClassInfo.referencedClasses
A list of ClassInfo objects for classes referenced by this class.private ClassInfoList
MethodInfo.thrownExceptions
Methods in io.github.classgraph that return ClassInfoListModifier and TypeMethodDescriptionClassInfoList.directOnly()
Get the list of classes that were directly related, as opposed to reachable through multiple steps.static ClassInfoList
ClassInfoList.emptyList()
Return an unmodifiable emptyClassInfoList
.ClassInfoList.exclude
(ClassInfoList other) Find the set difference between thisClassInfoList
and anotherClassInfoList
, i.e.ClassInfoList.filter
(ClassInfoList.ClassInfoFilter filter) Find the subset of thisClassInfoList
for which the given filter predicate is true.(package private) static ClassInfoList
ClassInfo.getAllAnnotationClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all annotation classes found during the scan.ScanResult.getAllAnnotations()
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.ScanResult.getAllClasses()
Get all classes, interfaces and annotations found during the scan.(package private) static ClassInfoList
ClassInfo.getAllEnums
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get allEnum
classes found during the scan.ScanResult.getAllEnums()
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.ScanResult.getAllInterfaces()
Get all interface classes found during the scan (not including annotations, which are also technically interfaces).ScanResult.getAllInterfacesAndAnnotations()
Get all interface or annotation 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.ScanResult.getAllRecords()
Get allrecord
classes found during the scan (JDK 14+).(package private) static ClassInfoList
ClassInfo.getAllStandardClasses
(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all standard classes found during the scan.ScanResult.getAllStandardClasses()
Get all standard (non-interface/non-annotation) classes found during the scan.ClassInfo.getAnnotations()
Get the annotations and meta-annotations on this class.ClassInfoList.getAnnotations()
Filter thisClassInfoList
to include only annotations.ScanResult.getAnnotationsOnClass
(String className) Get annotations on the named class.ClassInfoList.getAssignableTo
(ClassInfo superclassOrInterface) Filter thisClassInfoList
to include only classes that are assignable to the requested class, assignableToClass (i.e.ClassInfo.getClassDependencies()
Get the class dependencies.ClassInfo.getClassesImplementing()
Get the classes (and their subclasses) that implement this interface, if this is an interface.ScanResult.getClassesImplementing
(Class<?> interfaceClass) Get all classes that implement (or have superclasses that implement) the interface (or one of its subinterfaces).ScanResult.getClassesImplementing
(String interfaceName) Get all classes that implement (or have superclasses that implement) the named interface (or one of its subinterfaces).ClassInfo.getClassesWithAnnotation()
Get the classes that have this class as an annotation.ScanResult.getClassesWithAnnotation
(Class<? extends Annotation> annotation) Get classes with the class annotation or meta-annotation.ScanResult.getClassesWithAnnotation
(String annotationName) Get classes with the named class annotation or meta-annotation.(package private) ClassInfoList
ClassInfo.getClassesWithAnnotationDirectOnly()
Get the classes that have this class as a direct annotation.ClassInfo.getClassesWithFieldAnnotation()
Get the classes that have this class as a field annotation or meta-annotation.ScanResult.getClassesWithFieldAnnotation
(Class<? extends Annotation> fieldAnnotation) Get classes that have a field with an annotation of the named type.ScanResult.getClassesWithFieldAnnotation
(String fieldAnnotationName) Get classes that have a field with an annotation of the named type.(package private) ClassInfoList
ClassInfo.getClassesWithFieldAnnotationDirectOnly()
Get the classes that have this class as a direct field annotation.private ClassInfoList
ClassInfo.getClassesWithFieldOrMethodAnnotation
(ClassInfo.RelType relType) Get the classes that have this class as a field, method or method parameter annotation.ClassInfo.getClassesWithMethodAnnotation()
Get all classes that have this class as a method annotation, and their subclasses, if the method is non-private.ScanResult.getClassesWithMethodAnnotation
(Class<? extends Annotation> methodAnnotation) Get classes that have a method with an annotation of the named type.ScanResult.getClassesWithMethodAnnotation
(String methodAnnotationName) Get classes that have a method with an annotation of the named type.(package private) ClassInfoList
ClassInfo.getClassesWithMethodAnnotationDirectOnly()
Get the classes that have this class as a direct method annotation.ClassInfo.getClassesWithMethodParameterAnnotation()
Get all classes that have this class as a method parameter annotation, and their subclasses, if the method is non-private.ScanResult.getClassesWithMethodParameterAnnotation
(Class<? extends Annotation> methodParameterAnnotation) Get classes that have a method with a parameter that is annotated with an annotation of the named type.ScanResult.getClassesWithMethodParameterAnnotation
(String methodParameterAnnotationName) Get classes that have a method with a parameter that is annotated with an annotation of the named type.(package private) ClassInfoList
Get the classes that have this class as a direct method parameter annotation.ModuleInfo.getClassInfo()
Get the list ofClassInfo
objects for all classes that are members of this package.PackageInfo.getClassInfo()
Get theClassInfo
objects for all classes that are members of this package.PackageInfo.getClassInfoRecursive()
Get theClassInfo
objects for all classes that are members of this package or a sub-package.ClassInfoList.getEnums()
Filter thisClassInfoList
to include onlyEnum
classes.ClassInfo.getFieldAnnotations()
Get all field annotations.private ClassInfoList
ClassInfo.getFieldOrMethodAnnotations
(ClassInfo.RelType relType) Get the annotations or meta-annotations on fields, methods or method parametres declared by the class, (not including fields, methods or method parameters declared by the interfaces or superclasses of this class).ClassInfoList.getImplementedInterfaces()
Filter thisClassInfoList
to include only implemented interfaces, i.e.ClassInfo.getInnerClasses()
Get the inner classes contained within this class, if this is an outer class.ClassInfo.getInterfaces()
Get the interfaces implemented by this class or by one of its superclasses, if this is a standard class, or the superinterfaces extended by this interface, if this is an interface.ClassInfoList.getInterfaces()
Filter thisClassInfoList
to include only interfaces that are not annotations.ScanResult.getInterfaces
(Class<?> classRef) Get all interfaces implemented by the class or by one of its superclasses, if the given class is a standard class, or the superinterfaces extended by this interface, if it is an interface.ScanResult.getInterfaces
(String className) Get all interfaces implemented by the named class or by one of its superclasses, if the named class is a standard class, or the superinterfaces extended by this interface, if it is an interface.ClassInfoList.getInterfacesAndAnnotations()
Filter thisClassInfoList
to include only interfaces and annotations (annotations are interfaces, and can be implemented).ClassInfo.getMethodAnnotations()
Get all method annotations.ClassInfo.getMethodParameterAnnotations()
Get all method parameter annotations.ClassInfo.getOuterClasses()
Get the containing outer classes, if this is an inner class.ClassInfoList.getRecords()
Filter thisClassInfoList
to include onlyrecord
classes.ClassInfoList.getStandardClasses()
Filter thisClassInfoList
to include only standard classes (classes that are not interfaces or annotations).ClassInfo.getSubclasses()
Get the subclasses of this class, sorted in order of name.ScanResult.getSubclasses
(Class<?> superclass) Get all subclasses of the superclass.ScanResult.getSubclasses
(String superclassName) Get all subclasses of the named superclass.ClassInfo.getSuperclasses()
Get all superclasses of this class, in ascending order in the class hierarchy, not includingObject
for simplicity, since that is the superclass of all classes.ScanResult.getSuperclasses
(Class<?> subclass) Get superclasses of the subclass.ScanResult.getSuperclasses
(String subclassName) Get superclasses of the named subclass.MethodInfo.getThrownExceptions()
Returns the list of exceptions thrown by the method, as aClassInfoList
.ClassInfoList.intersect
(ClassInfoList... others) Find the intersection of thisClassInfoList
with one or more others.ClassInfoList.union
(ClassInfoList... others) Find the union of thisClassInfoList
with one or more others.Methods in io.github.classgraph that return types with arguments of type ClassInfoListModifier and TypeMethodDescriptionScanResult.getClassDependencyMap()
Get a map from theClassInfo
object for each accepted class to a list of the classes referenced by that class (i.e.ScanResult.getReverseClassDependencyMap()
Get the reverse class dependency map, i.e.Methods in io.github.classgraph with parameters of type ClassInfoListModifier and TypeMethodDescriptionClassInfoList.exclude
(ClassInfoList other) Find the set difference between thisClassInfoList
and anotherClassInfoList
, i.e.(package private) static String
GraphvizDotfileGenerator.generateGraphVizDotFile
(ClassInfoList classInfoList, float sizeX, float sizeY, boolean showFields, boolean showFieldTypeDependencyEdges, boolean showMethods, boolean showMethodTypeDependencyEdges, boolean showAnnotations, boolean useSimpleNames, ScanSpec scanSpec) Generates a .dot file which can be fed into GraphViz for layout and visualization of the class graph.(package private) static String
GraphvizDotfileGenerator.generateGraphVizDotFileFromInterClassDependencies
(ClassInfoList classInfoList, float sizeX, float sizeY, boolean includeExternalClasses) Generate a .dot file which can be fed into GraphViz for layout and visualization of the class graph.ClassInfoList.intersect
(ClassInfoList... others) Find the intersection of thisClassInfoList
with one or more others.(package private) void
ClassInfo.setReferencedClasses
(ClassInfoList refdClasses) Set the list of ClassInfo objects for classes referenced by this class.ClassInfoList.union
(ClassInfoList... others) Find the union of thisClassInfoList
with one or more others.Constructors in io.github.classgraph with parameters of type ClassInfoListModifierConstructorDescription(package private)
ClassTypeSignature
(ClassInfo classInfo, ClassInfo superclass, ClassInfoList interfaces) Constructor used to create synthetic class type descriptor (#662).