|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.wala.shrikeBT.analysis.ClassHierarchy
public final class ClassHierarchy
This class takes the raw information from a ClassHierarchyProvider and computes type operations (subtype check, type union). All operations are static. Because ClassHierarchyProvider sometimes only provides partial information, these routines sometimes answer "don't know".
| Field Summary | |
|---|---|
static int |
MAYBE
Equals Constants.MAYBE |
static int |
NO
Equals Constants.NO |
static int |
YES
Equals Constants.YES |
| Method Summary | |
|---|---|
static java.lang.String |
findCommonSupertype(ClassHierarchyProvider hierarchy,
java.lang.String t1,
java.lang.String t2)
Compute the most specific common supertype. |
static int |
isSubtypeOf(ClassHierarchyProvider hierarchy,
java.lang.String t1,
java.lang.String t2)
Perform subtype check. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO
public static final int YES
public static final int MAYBE
| Method Detail |
|---|
public static int isSubtypeOf(ClassHierarchyProvider hierarchy,
java.lang.String t1,
java.lang.String t2)
hierarchy - the hierarchy information to use for the decisiont1 - a type in JVM formatt2 - a type in JVM format
public static java.lang.String findCommonSupertype(ClassHierarchyProvider hierarchy,
java.lang.String t1,
java.lang.String t2)
hierarchy - the hierarchy information to use for the decisiont1 - a type in JVM formatt2 - a type in JVM format
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||