org.apache.bcel.generic
public class ObjectType extends ReferenceType
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() |
static ObjectType | getInstance(String class_name) |
int | hashCode() |
boolean | referencesClass()
If "this" doesn't reference a class, it references an interface
or a non-existant entity. |
boolean | referencesClassExact()
Return true if this type references a class,
false if it references an interface. |
boolean | referencesInterface()
If "this" doesn't reference an interface, it references a class
or a non-existant entity. |
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. |
Parameters: class_name fully qualified class name, e.g. java.lang.String
Throws: ClassNotFoundException if the class referenced by this type can't be found
Returns: true if both type objects refer to the same class.
Returns: name of referenced class
Returns: a hash code value for the object.
Deprecated: this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesClassExact() instead
If "this" doesn't reference a class, it references an interface or a non-existant entity.Returns: true if the type references a class, false if it references an interface
Throws: ClassNotFoundException if the class or interface referenced by this type can't be found
Deprecated: this method returns an inaccurate result if the class or interface referenced cannot be found: use referencesInterfaceExact() instead
If "this" doesn't reference an interface, it references a class or a non-existant entity.Returns: true if the type references an interface, false if it references a class
Throws: ClassNotFoundException if the class or interface referenced by this type can't be found
Throws: ClassNotFoundException if any of this class's superclasses can't be found