public class ClassGraphBuilder extends Object
Constructor and Description |
---|
ClassGraphBuilder(Collection<ClassInfo> classInfoFromScan) |
Modifier and Type | Method and Description |
---|---|
String |
generateClassGraphDotFile(float sizeX,
float sizeY)
Generates a .dot file which can be fed into GraphViz for layout and visualization of the class graph.
|
List<String> |
getNamesOfAllAnnotationClasses()
Return the sorted unique names of all annotation classes found during the scan.
|
List<String> |
getNamesOfAllClasses()
Return the sorted unique names of all classes, interfaces and annotations found during the scan.
|
List<String> |
getNamesOfAllInterfaceClasses()
Return the sorted unique names of all interface classes found during the scan.
|
List<String> |
getNamesOfAllStandardClasses()
Return the sorted unique names of all standard classes (non-interface, non-annotation classes) found during
the scan.
|
List<String> |
getNamesOfAnnotationsOnClass(String classOrInterfaceName)
Return the sorted list of names of all annotations and meta-annotations on the named class.
|
List<String> |
getNamesOfAnnotationsWithMetaAnnotation(String metaAnnotationName)
Return the names of all annotations that have the named meta-annotation.
|
List<String> |
getNamesOfClassesImplementing(String interfaceName)
Return the sorted list of names of all classes implementing the named interface.
|
List<String> |
getNamesOfClassesWithAnnotation(String annotationName)
Return the sorted list of names of all classes with the named class annotation or meta-annotation.
|
List<String> |
getNamesOfClassesWithFieldOfType(String fieldTypeName)
Return a sorted list of classes that have a field of the named type, where the field type is in a whitelisted
(non-blacklisted) package.
|
List<String> |
getNamesOfMetaAnnotationsOnAnnotation(String annotationName)
Return the sorted list of names of all meta-annotations on the named annotation.
|
List<String> |
getNamesOfSubclassesOf(String className)
Return the sorted list of names of all subclasses of the named class.
|
List<String> |
getNamesOfSubinterfacesOf(String interfaceName)
Return the sorted list of names of all subinterfaces of the named interface.
|
List<String> |
getNamesOfSuperclassesOf(String className)
Return the sorted list of names of all superclasses of the named class.
|
List<String> |
getNamesOfSuperinterfacesOf(String interfaceName)
Return the names of all superinterfaces of the named interface.
|
public ClassGraphBuilder(Collection<ClassInfo> classInfoFromScan)
public List<String> getNamesOfAllClasses()
public List<String> getNamesOfAllStandardClasses()
public List<String> getNamesOfAllInterfaceClasses()
public List<String> getNamesOfAllAnnotationClasses()
public List<String> getNamesOfSubclassesOf(String className)
public List<String> getNamesOfSuperclassesOf(String className)
public List<String> getNamesOfClassesWithFieldOfType(String fieldTypeName)
public List<String> getNamesOfSubinterfacesOf(String interfaceName)
public List<String> getNamesOfSuperinterfacesOf(String interfaceName)
public List<String> getNamesOfClassesImplementing(String interfaceName)
public List<String> getNamesOfClassesWithAnnotation(String annotationName)
public List<String> getNamesOfAnnotationsOnClass(String classOrInterfaceName)
public List<String> getNamesOfMetaAnnotationsOnAnnotation(String annotationName)
public List<String> getNamesOfAnnotationsWithMetaAnnotation(String metaAnnotationName)
public String generateClassGraphDotFile(float sizeX, float sizeY)
Copyright © 2015. All rights reserved.