org.apache.bcel.generic
Class ObjectType
- java.io.Serializable
Denotes reference such as java.lang.String.
$Id: ObjectType.java 386056 2006-03-15 11:31:56Z tcurdt $
BOOLEAN , BYTE , CHAR , CLASS , DOUBLE , FLOAT , INT , LONG , NO_ARGS , NULL , OBJECT , SHORT , STRING , STRINGBUFFER , THROWABLE , UNKNOWN , VOID , consumed_chars , signature , type |
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() - 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() - 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.
|
equals , getArgumentTypes , getMethodSignature , getReturnType , getSignature , getSignature , getSize , getType , getType , getType , getTypes , hashCode , toString , unwrap , wrap |
class_name
private String class_name
ObjectType
public ObjectType(String class_name)
class_name
- fully qualified class name, e.g. java.lang.String
accessibleTo
public boolean accessibleTo(ObjectType accessor)
throws ClassNotFoundException
Java Virtual Machine Specification edition 2, ? 5.4.4 Access Control
equals
public boolean equals(Object type)
- equals in interface Type
- true if both type objects refer to the same class.
getClassName
public String getClassName()
hashCode
public int hashCode()
- hashCode in interface Type
- a hash code value for the object.
referencesClass
public boolean referencesClass()
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.
referencesClassExact
public boolean referencesClassExact()
throws ClassNotFoundException
Return true if this type references a class,
false if it references an interface.
- true if the type references a class, false if
it references an interface
referencesInterface
public boolean referencesInterface()
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.
referencesInterfaceExact
public boolean referencesInterfaceExact()
throws ClassNotFoundException
Return true if this type references an interface,
false if it references a class.
- true if the type references an interface, false if
it references a class
subclassOf
public boolean subclassOf(ObjectType superclass)
throws ClassNotFoundException
Return true if this type is a subclass of given ObjectType.