Uses of Class
io.github.classgraph.ClassInfoList
Packages that use ClassInfoList
-
Uses of ClassInfoList in io.github.classgraph
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 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.ScanResult.getAllAnnotations()Get all annotation classes found during the scan.ScanResult.getAllClasses()Get all classes, interfaces and annotations found during the scan.ScanResult.getAllEnums()Get allEnumclasses 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.ScanResult.getAllRecords()Get allrecordclasses found during the scan (JDK 14+).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. where assignableToClass is a superclass or implemented interface of the list element).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.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.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.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.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.ClassInfoList.getImplementedInterfaces()Filter thisClassInfoListto include only implemented interfaces, i.e. non-annotation interfaces, or annotations that have been implemented by a class.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. returns a map from dependents to dependencies).ScanResult.getReverseClassDependencyMap()Get the reverse class dependency map, i.e. a map from theClassInfoobject for each dependency class (accepted or not) to a list of the accepted classes that referenced that class as a dependency (i.e. returns a map from dependencies to dependents).Methods in io.github.classgraph with parameters of type ClassInfoListModifier and TypeMethodDescriptionClassInfoList.exclude(ClassInfoList other) Find the set difference between thisClassInfoListand anotherClassInfoList, i.e.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.