|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeBT.analysis.ClassHierarchyStore
public final class ClassHierarchyStore
This implementation of ClassHierarchyProvider is a simple writable data structure representing a class hierarchy. You call setClassInfo to record information about a class.
| Constructor Summary | |
|---|---|
ClassHierarchyStore()
Create an empty store. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassHierarchyStore()
| Method Detail |
|---|
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 interfaces
java.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 ClassHierarchyProviderClassHierarchyProvider.getSuperClass(String)public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||