public final class ClassHierarchyStore extends Object implements ClassHierarchyProvider
| Constructor and Description |
|---|
ClassHierarchyStore()
Create an empty store.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsClass(String cl) |
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 boolean containsClass(String cl)
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 interfacesIllegalArgumentExceptionpublic void removeClassInfo(String cl)
public Iterator<String> iterateOverClasses()
public String getSuperClass(String cl)
getSuperClass in interface ClassHierarchyProviderpublic String[] getSuperInterfaces(String cl)
getSuperInterfaces in interface ClassHierarchyProviderpublic String[] getSubClasses(String cl)
getSubClasses in interface ClassHierarchyProviderpublic int isInterface(String cl)
isInterface in interface ClassHierarchyProviderCopyright © 2019. All rights reserved.