public final class ClassHierarchyStore extends java.lang.Object implements ClassHierarchyProvider
| Constructor and Description |
|---|
ClassHierarchyStore()
Create an empty store.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsClass(java.lang.String cl) |
java.lang.String[] |
getSubClasses(java.lang.String cl) |
java.lang.String |
getSuperClass(java.lang.String cl) |
java.lang.String[] |
getSuperInterfaces(java.lang.String cl) |
int |
isInterface(java.lang.String cl) |
java.util.Iterator<java.lang.String> |
iterateOverClasses()
Iterate through all classes in the store.
|
void |
removeClassInfo(java.lang.String cl)
Delete the class information from the store.
|
void |
setClassInfo(java.lang.String cl,
boolean isInterface,
boolean isFinal,
java.lang.String superClass,
java.lang.String[] superInterfaces)
Append some class information to the store.
|
public boolean containsClass(java.lang.String cl)
public void setClassInfo(java.lang.String cl,
boolean isInterface,
boolean isFinal,
java.lang.String superClass,
java.lang.String[] superInterfaces)
throws java.lang.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 interfacesjava.lang.IllegalArgumentExceptionpublic void removeClassInfo(java.lang.String cl)
public java.util.Iterator<java.lang.String> iterateOverClasses()
public java.lang.String getSuperClass(java.lang.String cl)
getSuperClass in interface ClassHierarchyProviderpublic java.lang.String[] getSuperInterfaces(java.lang.String cl)
getSuperInterfaces in interface ClassHierarchyProviderpublic java.lang.String[] getSubClasses(java.lang.String cl)
getSubClasses in interface ClassHierarchyProviderpublic int isInterface(java.lang.String cl)
isInterface in interface ClassHierarchyProvider