public final class ClassHierarchy
extends java.lang.Object
Because ClassHierarchyProvider sometimes only provides partial information, these routines sometimes answer "don't know".
| Modifier and Type | Field and Description |
|---|---|
static int |
MAYBE
Equals Constants.MAYBE
|
static int |
NO
Equals Constants.NO
|
static int |
YES
Equals Constants.YES
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final int NO
public static final int YES
public static final int MAYBE
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 formatpublic 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