java.io.SerializableArrayType, ObjectType, UninitializedObjectTypepublic abstract class ReferenceType extends Type
| Modifier | Constructor | Description |
|---|---|---|
protected |
ReferenceType(byte t,
java.lang.String s) |
| Modifier and Type | Method | Description |
|---|---|---|
ReferenceType |
firstCommonSuperclass(ReferenceType t) |
Deprecated.
use getFirstCommonSuperclass(ReferenceType t) which has
slightly changed semantics.
|
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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, hashCode, toStringpublic boolean isCastableTo(Type t) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - if any classes or interfaces required
to determine assignment compatibility can't be foundpublic boolean isAssignmentCompatibleWith(Type t) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - if any classes or interfaces required
to determine assignment compatibility can't be foundpublic ReferenceType getFirstCommonSuperclass(ReferenceType t) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - on failure to find superclasses of this
type, or the type passed as a parameterpublic ReferenceType firstCommonSuperclass(ReferenceType t) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - on failure to find superclasses of this
type, or the type passed as a parameter