public final class ClassHierarchyStore extends Object implements ClassHierarchyProvider
Constructor and Description |
---|
ClassHierarchyStore()
Create an empty store.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getSubClasses(String cl) |
String |
getSuperClass(String cl) |
String[] |
getSuperInterfaces(String cl) |
int |
isInterface(String cl) |
Iterator<String> |
iterateOverClasses()
Iterate through all classes in the store.
|
void |
removeClassInfo(String cl)
Delete the class information from the store.
|
void |
setClassInfo(String cl,
boolean isInterface,
boolean isFinal,
String superClass,
String[] superInterfaces)
Append some class information to the store.
|
public void setClassInfo(String cl, boolean isInterface, boolean isFinal, String superClass, String[] superInterfaces) throws IllegalArgumentException
cl
- the JVM type of the class being added (e.g., Ljava/lang/Object;)isInterface
- true iff it's an interfaceisFinal
- true iff it's finalsuperClass
- the JVM type of the superclass, or null if this is ObjectsuperInterfaces
- the JVM types of its implemented interfacesIllegalArgumentException
public void removeClassInfo(String cl)
public Iterator<String> iterateOverClasses()
public String getSuperClass(String cl)
getSuperClass
in interface ClassHierarchyProvider
ClassHierarchyProvider.getSuperClass(String)
public String[] getSuperInterfaces(String cl)
getSuperInterfaces
in interface ClassHierarchyProvider
public String[] getSubClasses(String cl)
getSubClasses
in interface ClassHierarchyProvider
public int isInterface(String cl)
isInterface
in interface ClassHierarchyProvider