public class ClassGraphBuilder extends Object
Constructor and Description |
---|
ClassGraphBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
finalizeNodes()
Find all superclasses and subclasses for each class and superinterfaces and subinterfaces of each interface.
|
Set<String> |
getNamesOfAllClasses()
Return all class names reached during the scan.
|
List<String> |
getNamesOfClassesImplementing(String interfaceName)
Return the names of all classes implementing the named interface.
|
List<String> |
getNamesOfClassesWithAnnotation(String annotationName)
Return the names of all classes with the named class annotation.
|
List<String> |
getNamesOfSubclassesOf(String className)
Return the names of all subclasses of the named class.
|
List<String> |
getNamesOfSubinterfacesOf(String interfaceName)
Return the names of all subinterfaces of the named interface.
|
List<String> |
getNamesOfSuperclassesOf(String className)
Return the names of all superclasses of the named class.
|
List<String> |
getNamesOfSuperinterfacesOf(String interfaceName)
Return the names of all superinterfaces of the named interface.
|
void |
linkToSuperclassAndInterfaces(String className,
String superclassName,
ArrayList<String> interfaces,
HashSet<String> annotations)
Link a class to its superclass and to the interfaces it implements, and save the class annotations.
|
void |
linkToSuperinterfaces(String interfaceName,
ArrayList<String> superInterfaces)
Save the mapping from an interface to its superinterfaces.
|
void |
reset() |
public List<String> getNamesOfClassesWithAnnotation(String annotationName)
public List<String> getNamesOfClassesImplementing(String interfaceName)
public List<String> getNamesOfSubclassesOf(String className)
public List<String> getNamesOfSuperclassesOf(String className)
public List<String> getNamesOfSubinterfacesOf(String interfaceName)
public List<String> getNamesOfSuperinterfacesOf(String interfaceName)
public Set<String> getNamesOfAllClasses()
public void linkToSuperclassAndInterfaces(String className, String superclassName, ArrayList<String> interfaces, HashSet<String> annotations)
public void linkToSuperinterfaces(String interfaceName, ArrayList<String> superInterfaces)
public void finalizeNodes()
public void reset()
Copyright © 2015. All rights reserved.