|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.Runtime.TypeCheck
public abstract class TypeCheck
Implements Java type checking.
Field Summary | |
---|---|
static jq_StaticMethod |
_arrayStoreCheck
|
static jq_StaticMethod |
_checkcast
|
static jq_StaticMethod |
_instance_of
|
static boolean |
VerifyAssertions
|
Fields inherited from interface joeq.Compiler.CompilationConstants |
---|
MAYBE, NO, YES |
Constructor Summary | |
---|---|
TypeCheck()
|
Method Summary | |
---|---|
static void |
arrayStoreCheck(HeapAddress value,
Object[] arrayref)
Performs an arrayStoreCheck operation. |
static Object |
checkcast(Object k,
jq_Type t)
Performs a checkcast operation. |
static byte |
declaresInterface(jq_Class T,
Collection interfaces,
boolean loadClasses)
Returns YES iff T declares one of the given interfaces. |
static jq_Type |
findCommonSuperclass(jq_Type t1,
jq_Type t2,
boolean load)
|
static byte |
implementsInterface_noload(jq_Class klass,
jq_Class inter)
Returns YES iff T implements the given interface. |
static boolean |
instance_of(Object k,
jq_Type t)
Performs an instanceof operation. |
static boolean |
isAssignable_graph(jq_Type S,
jq_Type T)
Uses (old) graph traversal algorithm for type check. |
static byte |
isAssignable_noload(jq_Type S,
jq_Type T)
Returns YES iff "T = S;" would be legal. |
static boolean |
isAssignable(jq_Type S,
jq_Type T)
Returns true if "T = S;" would be legal. |
static byte |
isSuperclassOf(jq_Class t1,
jq_Class t2,
boolean loadClasses)
Returns YES iff t1 is a superclass of t2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean VerifyAssertions
public static final jq_StaticMethod _checkcast
public static final jq_StaticMethod _instance_of
public static final jq_StaticMethod _arrayStoreCheck
Constructor Detail |
---|
public TypeCheck()
Method Detail |
---|
public static Object checkcast(Object k, jq_Type t)
public static boolean instance_of(Object k, jq_Type t)
public static void arrayStoreCheck(HeapAddress value, Object[] arrayref) throws ArrayStoreException
ArrayStoreException
public static boolean isAssignable(jq_Type S, jq_Type T)
S
- subtypeT
- type
public static boolean isAssignable_graph(jq_Type S, jq_Type T)
S
- subtypeT
- type
public static byte isSuperclassOf(jq_Class t1, jq_Class t2, boolean loadClasses)
public static byte isAssignable_noload(jq_Type S, jq_Type T)
public static byte declaresInterface(jq_Class T, Collection interfaces, boolean loadClasses)
public static byte implementsInterface_noload(jq_Class klass, jq_Class inter)
public static jq_Type findCommonSuperclass(jq_Type t1, jq_Type t2, boolean load)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |