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 TypeFieldDescriptionprivate ClassInfoListClassInfo.annotationsRefThe annotations, once they are loaded(package private) static final ClassInfoListClassInfoList.EMPTY_LISTAn unmodifiable emptyClassInfoList.private ClassInfoListClassInfo.referencedClassesA list of ClassInfo objects for classes referenced by this class.private ClassInfoListMethodInfo.thrownExceptionsMethods 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 ClassInfoListClassInfoList.emptyList()Return an unmodifiable emptyClassInfoList.ClassInfoList.exclude(ClassInfoList other) Find the set difference between thisClassInfoListand anotherClassInfoList, i.e.ClassInfoList.filter(ClassInfoList.ClassInfoFilter filter) Find the subset of thisClassInfoListfor which the given filter predicate is true.(package private) static ClassInfoListClassInfo.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 ClassInfoListClassInfo.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 ClassInfoListClassInfo.getAllEnums(Collection<ClassInfo> classes, ScanSpec scanSpec) Get allEnumclasses found during the scan.ScanResult.getAllEnums()Get allEnumclasses found during the scan.(package private) static ClassInfoListClassInfo.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 ClassInfoListClassInfo.getAllInterfacesOrAnnotationClasses(Collection<ClassInfo> classes, ScanSpec scanSpec) Get all interface or annotation classes found during the scan.(package private) static ClassInfoListClassInfo.getAllRecords(Collection<ClassInfo> classes, ScanSpec scanSpec) Get allrecordclasses found during the scan.ScanResult.getAllRecords()Get allrecordclasses found during the scan (JDK 14+).(package private) static ClassInfoListClassInfo.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 thisClassInfoListto include only annotations.ScanResult.getAnnotationsOnClass(String className) Get annotations on the named class.ClassInfoList.getAssignableTo(ClassInfo superclassOrInterface) Filter thisClassInfoListto 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).ScanResult.getClassesWithAllAnnotations(Class<? extends Annotation>... annotations) Get classes with all of the specified class annotations or meta-annotation.ScanResult.getClassesWithAllAnnotations(String... annotationNames) Get classes with all of the named class annotations or meta-annotation.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) ClassInfoListClassInfo.getClassesWithAnnotationDirectOnly()Get the classes that have this class as a direct annotation.ScanResult.getClassesWithAnyAnnotation(Class<? extends Annotation>... annotations) Get classes with any of the specified class annotations or meta-annotation.ScanResult.getClassesWithAnyAnnotation(String... annotationNames) Get classes with any of the named class annotations or meta-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) ClassInfoListClassInfo.getClassesWithFieldAnnotationDirectOnly()Get the classes that have this class as a direct field annotation.private ClassInfoListClassInfo.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) ClassInfoListClassInfo.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) ClassInfoListGet the classes that have this class as a direct method parameter annotation.ModuleInfo.getClassInfo()Get the list ofClassInfoobjects for all classes that are members of this package.PackageInfo.getClassInfo()Get theClassInfoobjects for all classes that are members of this package.PackageInfo.getClassInfoRecursive()Get theClassInfoobjects for all classes that are members of this package or a sub-package.ClassInfoList.getEnums()Filter thisClassInfoListto include onlyEnumclasses.ClassInfo.getFieldAnnotations()Get all field annotations.private ClassInfoListClassInfo.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 thisClassInfoListto 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 thisClassInfoListto 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 thisClassInfoListto 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 thisClassInfoListto include onlyrecordclasses.ClassInfoList.getStandardClasses()Filter thisClassInfoListto 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 includingObjectfor 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 thisClassInfoListwith one or more others.ClassInfoList.union(ClassInfoList... others) Find the union of thisClassInfoListwith one or more others.Methods in io.github.classgraph that return types with arguments of type ClassInfoListModifier and TypeMethodDescriptionScanResult.getClassDependencyMap()Get a map from theClassInfoobject 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 thisClassInfoListand anotherClassInfoList, i.e.(package private) static StringGraphvizDotfileGenerator.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 StringGraphvizDotfileGenerator.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 thisClassInfoListwith one or more others.(package private) voidClassInfo.setReferencedClasses(ClassInfoList refdClasses) Set the list of ClassInfo objects for classes referenced by this class.ClassInfoList.union(ClassInfoList... others) Find the union of thisClassInfoListwith 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).