| Modifier and Type | Method and Description |
|---|---|
ClassInfoList |
ClassInfoList.directOnly()
Get the list of classes that were directly related, as opposed to reachable through multiple steps.
|
static ClassInfoList |
ClassInfoList.emptyList()
Return an unmodifiable empty
ClassInfoList. |
ClassInfoList |
ClassInfoList.exclude(ClassInfoList other)
Find the set difference between this
ClassInfoList and another ClassInfoList, i.e. |
ClassInfoList |
ClassInfoList.filter(ClassInfoList.ClassInfoFilter filter)
Find the subset of this
ClassInfoList for which the given filter predicate is true. |
ClassInfoList |
ScanResult.getAllAnnotations()
Get all annotation classes found during the scan.
|
ClassInfoList |
ScanResult.getAllClasses()
Get all classes, interfaces and annotations found during the scan.
|
ClassInfoList |
ScanResult.getAllEnums()
Get all
Enum classes found during the scan. |
ClassInfoList |
ScanResult.getAllInterfaces()
Get all interface classes found during the scan (not including annotations, which are also technically
interfaces).
|
ClassInfoList |
ScanResult.getAllInterfacesAndAnnotations()
Get all interface or annotation classes found during the scan.
|
ClassInfoList |
ScanResult.getAllRecords()
Get all
record classes found during the scan (JDK 14+). |
ClassInfoList |
ScanResult.getAllStandardClasses()
Get all standard (non-interface/non-annotation) classes found during the scan.
|
ClassInfoList |
ClassInfoList.getAnnotations()
Filter this
ClassInfoList to include only annotations. |
ClassInfoList |
ClassInfo.getAnnotations()
Get the annotations and meta-annotations on this class.
|
ClassInfoList |
ScanResult.getAnnotationsOnClass(String className)
Get annotations on the named class.
|
ClassInfoList |
ClassInfoList.getAssignableTo(ClassInfo superclassOrInterface)
Filter this
ClassInfoList to include only classes that are assignable to the requested class,
assignableToClass (i.e. |
ClassInfoList |
ClassInfo.getClassDependencies()
Get the class dependencies.
|
ClassInfoList |
ClassInfo.getClassesImplementing()
Get the classes (and their subclasses) that implement this interface, if this is an interface.
|
ClassInfoList |
ScanResult.getClassesImplementing(Class<?> interfaceClass)
Get all classes that implement (or have superclasses that implement) the interface (or one of its
subinterfaces).
|
ClassInfoList |
ScanResult.getClassesImplementing(String interfaceName)
Get all classes that implement (or have superclasses that implement) the named interface (or one of its
subinterfaces).
|
ClassInfoList |
ScanResult.getClassesWithAllAnnotations(Class<? extends Annotation>... annotations)
Get classes with all of the specified class annotations or meta-annotation.
|
ClassInfoList |
ScanResult.getClassesWithAllAnnotations(String... annotationNames)
Get classes with all of the named class annotations or meta-annotation.
|
ClassInfoList |
ClassInfo.getClassesWithAnnotation()
Get the classes that have this class as an annotation.
|
ClassInfoList |
ScanResult.getClassesWithAnnotation(Class<? extends Annotation> annotation)
Get classes with the class annotation or meta-annotation.
|
ClassInfoList |
ScanResult.getClassesWithAnnotation(String annotationName)
Get classes with the named class annotation or meta-annotation.
|
ClassInfoList |
ScanResult.getClassesWithAnyAnnotation(Class<? extends Annotation>... annotations)
Get classes with any of the specified class annotations or meta-annotation.
|
ClassInfoList |
ScanResult.getClassesWithAnyAnnotation(String... annotationNames)
Get classes with any of the named class annotations or meta-annotation.
|
ClassInfoList |
ClassInfo.getClassesWithFieldAnnotation()
Get the classes that have this class as a field annotation or meta-annotation.
|
ClassInfoList |
ScanResult.getClassesWithFieldAnnotation(Class<? extends Annotation> fieldAnnotation)
Get classes that have a field with an annotation of the named type.
|
ClassInfoList |
ScanResult.getClassesWithFieldAnnotation(String fieldAnnotationName)
Get classes that have a field with an annotation of the named type.
|
ClassInfoList |
ClassInfo.getClassesWithMethodAnnotation()
Get all classes that have this class as a method annotation, and their subclasses, if the method is
non-private.
|
ClassInfoList |
ScanResult.getClassesWithMethodAnnotation(Class<? extends Annotation> methodAnnotation)
Get classes that have a method with an annotation of the named type.
|
ClassInfoList |
ScanResult.getClassesWithMethodAnnotation(String methodAnnotationName)
Get classes that have a method with an annotation of the named type.
|
ClassInfoList |
ClassInfo.getClassesWithMethodParameterAnnotation()
Get all classes that have this class as a method parameter annotation, and their subclasses, if the method is
non-private.
|
ClassInfoList |
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.
|
ClassInfoList |
ScanResult.getClassesWithMethodParameterAnnotation(String methodParameterAnnotationName)
Get classes that have a method with a parameter that is annotated with an annotation of the named type.
|
ClassInfoList |
PackageInfo.getClassInfo()
Get the
ClassInfo objects for all classes that are members of this package. |
ClassInfoList |
ModuleInfo.getClassInfo()
Get the list of
ClassInfo objects for all classes that are members of this package. |
ClassInfoList |
PackageInfo.getClassInfoRecursive()
Get the
ClassInfo objects for all classes that are members of this package or a sub-package. |
ClassInfoList |
ClassInfoList.getEnums()
Filter this
ClassInfoList to include only Enum classes. |
ClassInfoList |
ClassInfo.getFieldAnnotations()
Get all field annotations.
|
ClassInfoList |
ClassInfoList.getImplementedInterfaces()
Filter this
ClassInfoList to include only implemented interfaces, i.e. |
ClassInfoList |
ClassInfo.getInnerClasses()
Get the inner classes contained within this class, if this is an outer class.
|
ClassInfoList |
ClassInfoList.getInterfaces()
Filter this
ClassInfoList to include only interfaces that are not annotations. |
ClassInfoList |
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 |
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.
|
ClassInfoList |
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 |
ClassInfoList.getInterfacesAndAnnotations()
Filter this
ClassInfoList to include only interfaces and annotations (annotations are interfaces, and
can be implemented). |
ClassInfoList |
ClassInfo.getMethodAnnotations()
Get all method annotations.
|
ClassInfoList |
ClassInfo.getMethodParameterAnnotations()
Get all method parameter annotations.
|
ClassInfoList |
ClassInfo.getOuterClasses()
Get the containing outer classes, if this is an inner class.
|
ClassInfoList |
ClassInfoList.getRecords()
Filter this
ClassInfoList to include only record classes. |
ClassInfoList |
ClassInfoList.getStandardClasses()
Filter this
ClassInfoList to include only standard classes (classes that are not interfaces or
annotations). |
ClassInfoList |
ClassInfo.getSubclasses()
Get the subclasses of this class, sorted in order of name.
|
ClassInfoList |
ScanResult.getSubclasses(Class<?> superclass)
Get all subclasses of the superclass.
|
ClassInfoList |
ScanResult.getSubclasses(String superclassName)
Get all subclasses of the named superclass.
|
ClassInfoList |
ClassInfo.getSuperclasses()
Get all superclasses of this class, in ascending order in the class hierarchy, not including
Object
for simplicity, since that is the superclass of all classes. |
ClassInfoList |
ScanResult.getSuperclasses(Class<?> subclass)
Get superclasses of the subclass.
|
ClassInfoList |
ScanResult.getSuperclasses(String subclassName)
Get superclasses of the named subclass.
|
ClassInfoList |
MethodInfo.getThrownExceptions()
Returns the list of exceptions thrown by the method, as a
ClassInfoList. |
ClassInfoList |
ClassInfoList.intersect(ClassInfoList... others)
Find the intersection of this
ClassInfoList with one or more others. |
ClassInfoList |
ClassInfoList.union(ClassInfoList... others)
Find the union of this
ClassInfoList with one or more others. |
| Modifier and Type | Method and Description |
|---|---|
Map<ClassInfo,ClassInfoList> |
ScanResult.getClassDependencyMap()
Get a map from the
ClassInfo object for each accepted class to a list of the classes referenced by
that class (i.e. |
Map<ClassInfo,ClassInfoList> |
ScanResult.getReverseClassDependencyMap()
Get the reverse class dependency map, i.e.
|
| Modifier and Type | Method and Description |
|---|---|
ClassInfoList |
ClassInfoList.exclude(ClassInfoList other)
Find the set difference between this
ClassInfoList and another ClassInfoList, i.e. |
ClassInfoList |
ClassInfoList.intersect(ClassInfoList... others)
Find the intersection of this
ClassInfoList with one or more others. |
ClassInfoList |
ClassInfoList.union(ClassInfoList... others)
Find the union of this
ClassInfoList with one or more others. |
Copyright © 2024. All rights reserved.