ca.uwaterloo.cs.ql.interp
Class Type
java.lang.Object
ca.uwaterloo.cs.ql.interp.Type
public class Type
- extends java.lang.Object
|
Constructor Summary |
Type()
|
|
Method Summary |
static int |
distanceTo(java.lang.Class[] argTypes,
java.lang.Class[] paramTypes)
|
static int |
distanceTo(java.lang.Class t1,
java.lang.Class t2)
Computes the distance between two classes: t1, t2. |
static java.lang.String |
findName(java.lang.Class type)
|
static java.lang.Class |
findType(java.lang.String name)
Find a type. |
static boolean |
isIdentical(java.lang.Class t1,
java.lang.Class t2)
|
static boolean |
isPrimitive(java.lang.Class t)
|
static boolean |
isRelatedTo(java.lang.Class t1,
java.lang.Class t2)
|
static boolean |
isSubtypeOf(java.lang.Class t1,
java.lang.Class t2)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MATCH
public static final int MATCH
- See Also:
- Constant Field Values
NOT_MATCH
public static final int NOT_MATCH
- See Also:
- Constant Field Values
Type
public Type()
findType
public static java.lang.Class findType(java.lang.String name)
- Find a type.
findName
public static java.lang.String findName(java.lang.Class type)
distanceTo
public static int distanceTo(java.lang.Class t1,
java.lang.Class t2)
- Computes the distance between two classes: t1, t2.
If t1 is subtype of t2, the distance is equal to or
greater than 0. Otherwise, the distance is less than 0.
distanceTo
public static int distanceTo(java.lang.Class[] argTypes,
java.lang.Class[] paramTypes)
isPrimitive
public static boolean isPrimitive(java.lang.Class t)
isIdentical
public static boolean isIdentical(java.lang.Class t1,
java.lang.Class t2)
isSubtypeOf
public static boolean isSubtypeOf(java.lang.Class t1,
java.lang.Class t2)
isRelatedTo
public static boolean isRelatedTo(java.lang.Class t1,
java.lang.Class t2)