|
||||||||||
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
org.apache.bcel.generic.ObjectType
public class ObjectType
Denotes reference such as java.lang.String.
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 | |
---|---|
ObjectType(String class_name)
|
Method Summary | |
---|---|
boolean |
accessibleTo(ObjectType accessor)
Java Virtual Machine Specification edition 2, ß 5.4.4 Access Control |
boolean |
equals(Object type)
|
String |
getClassName()
|
int |
hashCode()
|
boolean |
referencesClass()
Deprecated. this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesClassExact() instead |
boolean |
referencesClassExact()
Return true if this type references a class, false if it references an interface. |
boolean |
referencesInterface()
Deprecated. this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesInterfaceExact() instead |
boolean |
referencesInterfaceExact()
Return true if this type references an interface, false if it references a class. |
boolean |
subclassOf(ObjectType superclass)
Return true if this type is a subclass of given ObjectType. |
Methods inherited from class org.apache.bcel.generic.ReferenceType |
---|
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTo |
Methods inherited from class org.apache.bcel.generic.Type |
---|
getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObjectType(String class_name)
class_name
- fully qualified class name, e.g. java.lang.StringMethod Detail |
---|
public String getClassName()
public int hashCode()
hashCode
in class Type
public boolean equals(Object type)
equals
in class Type
public boolean referencesClass()
public boolean referencesInterface()
public boolean referencesClassExact() throws ClassNotFoundException
ClassNotFoundException
- if the class or interface
referenced by this type can't be foundpublic boolean referencesInterfaceExact() throws ClassNotFoundException
ClassNotFoundException
- if the class or interface
referenced by this type can't be foundpublic boolean subclassOf(ObjectType superclass) throws ClassNotFoundException
ClassNotFoundException
- if any of this class's superclasses
can't be foundpublic boolean accessibleTo(ObjectType accessor) throws ClassNotFoundException
ClassNotFoundException
- if the class referenced by this type
can't be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |