|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.bcel.generic.Type
org.apache.bcel.generic.ReferenceType
public abstract class ReferenceType
Super class for object and array types.
Field Summary |
---|
Fields inherited from class org.apache.bcel.generic.Type |
---|
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, FLOAT, INT, LONG, NO_ARGS, NULL, OBJECT, SHORT, signature, STRING, STRINGBUFFER, THROWABLE, type, UNKNOWN, VOID |
Constructor Summary | |
---|---|
protected |
ReferenceType(byte t,
String s)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.bcel.generic.Type |
---|
equals, getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ReferenceType(byte t, String s)
Method Detail |
---|
public boolean isCastableTo(Type t) throws ClassNotFoundException
ClassNotFoundException
- if any classes or interfaces required
to determine assignment compatibility can't be foundpublic boolean isAssignmentCompatibleWith(Type t) throws ClassNotFoundException
ClassNotFoundException
- if any classes or interfaces required
to determine assignment compatibility can't be foundpublic ReferenceType getFirstCommonSuperclass(ReferenceType t) throws ClassNotFoundException
ClassNotFoundException
- on failure to find superclasses of this
type, or the type passed as a parameterpublic ReferenceType firstCommonSuperclass(ReferenceType t) throws ClassNotFoundException
ClassNotFoundException
- on failure to find superclasses of this
type, or the type passed as a parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |