public abstract class ReferenceType extends Type
Type.TypeHolder
BOOLEAN, BYTE, CHAR, CLASS, CLASS_ARRAY, DOUBLE, EXCEPTION, FLOAT, INT, INTEGER, ITERATOR, LIST, LONG, NO_ARGS, NULL, OBJECT, OBJECT_ARRAY, SHORT, signature, STRING, STRING_ARRAY, STRINGARRAY1, STRINGARRAY2, STRINGARRAY3, STRINGARRAY4, STRINGARRAY5, STRINGARRAY6, STRINGARRAY7, STRINGBUFFER, STRINGBUILDER, THROWABLE, type, UNKNOWN, VOID
Modifier | Constructor and Description |
---|---|
protected |
ReferenceType(byte t,
java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
ReferenceType |
getFirstCommonSuperclass(ReferenceType t)
This commutative operation returns the first common superclass (narrowest ReferenceType referencing a class, not an
interface).
|
boolean |
isAssignmentCompatibleWith(Type t)
Return true iff this is assignment compatible with another type t as defined in the JVM specification; see the AASTORE
definition there.
|
boolean |
isCastableTo(Type t)
Return true iff this type is castable to another type t as defined in the JVM specification.
|
getArgumentSizes, getArgumentTypes, getReturnType, getSignature, getSignature, getSignature, getSize, getType, getType, getType, getTypeInternal, getTypeSize, toString
public boolean isCastableTo(Type t)
public boolean isAssignmentCompatibleWith(Type t)
public ReferenceType getFirstCommonSuperclass(ReferenceType t)