org.aspectj.apache.bcel.generic
Class ObjectType

java.lang.Object
  extended by org.aspectj.apache.bcel.generic.Type
      extended by org.aspectj.apache.bcel.generic.ReferenceType
          extended by org.aspectj.apache.bcel.generic.ObjectType

public class ObjectType
extends ReferenceType

Denotes reference such as java.lang.String.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.aspectj.apache.bcel.generic.Type
Type.TypeHolder
 
Field Summary
 
Fields inherited from class org.aspectj.apache.bcel.generic.Type
BOOLEAN, BYTE, CHAR, CLASS, DOUBLE, EXCEPTION, FLOAT, INT, INTEGER, ITERATOR, LIST, LONG, NO_ARGS, NULL, OBJECT, OBJECT_ARRAY, SHORT, signature, STRING, STRING_ARRAY, STRINGARRAY1, STRINGARRAY2, STRINGARRAY3, STRINGARRAY4, STRINGARRAY5, STRINGARRAY6, STRINGARRAY7, STRINGBUFFER, STRINGBUILDER, THROWABLE, type, UNKNOWN, VOID
 
Constructor Summary
ObjectType(java.lang.String class_name)
           
ObjectType(java.lang.String classname, java.lang.String signature)
           
 
Method Summary
 boolean accessibleTo(ObjectType accessor)
          Java Virtual Machine Specification edition 2, � 5.4.4 Access Control
 boolean equals(java.lang.Object type)
           
 java.lang.String getClassName()
           
 int hashCode()
           
 boolean referencesClass()
          If "this" doesn't reference a class, it references an interface or a non-existant entity.
 boolean referencesInterface()
          If "this" doesn't reference an interface, it references a class or a non-existant entity.
 boolean subclassOf(ObjectType superclass)
           
 
Methods inherited from class org.aspectj.apache.bcel.generic.ReferenceType
getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTo
 
Methods inherited from class org.aspectj.apache.bcel.generic.Type
getArgumentSizes, getArgumentTypes, getReturnType, getSignature, getSignature, getSignature, getSize, getType, getType, getType, getTypeInternal, getTypeSize, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectType

public ObjectType(java.lang.String class_name)
Parameters:
class_name - fully qualified class name, e.g. java.lang.String

ObjectType

public ObjectType(java.lang.String classname,
                  java.lang.String signature)
Parameters:
classname - eg. java.lang.String
signature - eg. Ljava/lang/String;
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
name of referenced class

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for the object.

equals

public boolean equals(java.lang.Object type)
Overrides:
equals in class java.lang.Object
Returns:
true if both type objects refer to the same class.

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)

accessibleTo

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