org.apache.bcel.generic

Class ObjectType

public final class ObjectType extends ReferenceType

Denotes reference such as java.lang.String.

Version: $Id: ObjectType.java 152690 2001-10-29 19:59:54Z jvanzyl $

Author: M. Dahm

Constructor Summary
ObjectType(String class_name)
Method Summary
booleanaccessibleTo(ObjectType accessor)
Java Virtual Machine Specification edition 2, ' 5.4.4 Access Control
booleanequals(Object type)
StringgetClassName()
inthashCode()
booleanreferencesClass()
If "this" doesn't reference a class, it references an interface or a non-existant entity.
booleanreferencesInterface()
If "this" doesn't reference an interface, it references a class or a non-existant entity.
booleansubclassOf(ObjectType superclass)

Constructor Detail

ObjectType

public ObjectType(String class_name)

Parameters: class_name fully qualified class name, e.g. java.lang.String

Method Detail

accessibleTo

public boolean accessibleTo(ObjectType accessor)
Java Virtual Machine Specification edition 2, ' 5.4.4 Access Control

equals

public boolean equals(Object type)

Returns: true if both type objects refer to the same class.

getClassName

public String getClassName()

Returns: name of referenced class

hashCode

public int hashCode()

Returns: a hash code value for the object.

referencesClass

public boolean referencesClass()
If "this" doesn't reference a class, it references an interface or a non-existant entity.

referencesInterface

public boolean referencesInterface()
If "this" doesn't reference an interface, it references a class or a non-existant entity.

subclassOf

public boolean subclassOf(ObjectType superclass)