Class ObjectType
java.lang.Object
org.aspectj.apache.bcel.generic.Type
org.aspectj.apache.bcel.generic.ReferenceType
org.aspectj.apache.bcel.generic.ObjectType
Denotes reference such as java.lang.String.
- Version:
- $Id: ObjectType.java,v 1.7 2009/09/28 16:39:46 aclement Exp $
- Author:
- M. Dahm
-
Nested Class Summary
Nested classes/interfaces inherited from class Type
Type.TypeHolder -
Field Summary
Fields inherited from class Type
BOOLEAN, BYTE, CHAR, CLASS, CLASS_ARRAY, 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, VOIDModifier and TypeFieldDescriptionstatic final BasicTypestatic final BasicTypestatic final BasicTypestatic final ObjectTypestatic final ArrayTypestatic final BasicTypestatic final ObjectTypestatic final BasicTypestatic final BasicTypestatic final ObjectTypestatic final ObjectTypestatic final ObjectTypestatic final BasicTypestatic final Type[]static final ReferenceTypestatic final ObjectTypestatic final ArrayTypestatic final BasicTypeprotected Stringstatic final ObjectTypestatic final ArrayTypestatic final Type[]static final Type[]static final Type[]static final Type[]static final Type[]static final Type[]static final Type[]static final ObjectTypestatic final ObjectTypestatic final ObjectTypeprotected bytestatic final Typestatic final BasicType -
Constructor Summary
ConstructorsConstructorDescriptionObjectType(String class_name) ObjectType(String classname, String signature) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccessibleTo(ObjectType accessor) Java Virtual Machine Specification edition 2, 5.4.4 Access ControlbooleaninthashCode()booleanIf "this" doesn't reference a class, it references an interface or a non-existant entity.booleanIf "this" doesn't reference an interface, it references a class or a non-existant entity.booleansubclassOf(ObjectType superclass) Methods inherited from class ReferenceType
getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableToModifier and TypeMethodDescriptionThis commutative operation returns the first common superclass (narrowest ReferenceType referencing a class, not an interface).booleanReturn true iff this is assignment compatible with another type t as defined in the JVM specification; see the AASTORE definition there.booleanisCastableTo(Type t) Return true iff this type is castable to another type t as defined in the JVM specification.Methods inherited from class Type
getArgumentSizes, getArgumentTypes, getReturnType, getSignature, getSignature, getSignature, getSize, getType, getType, getType, getTypeInternal, getTypeSize, toStringModifier and TypeMethodDescriptionstatic intgetArgumentSizes(String signature) Work out the type of each argument in the signature and return the cumulative sizes of all the types (size means number of stack slots it consumes, eg double=2, int=1).static Type[]getArgumentTypes(String signature) Convert arguments of a method (signature) to an array of Type objects.static TypegetReturnType(String signature) Convert return value of a method (signature) to a Type object.static StringgetSignature(Constructor<?> cons) static StringgetSignature(Method meth) intgetSize()bytegetType()static TypeConvert runtime java.lang.Class to BCEL Type object.static final Typestatic final Type.TypeHoldergetTypeInternal(String signature) Convert signature to a Type object.static intgetTypeSize(String signature) Return the size of the type expressed in the signature.toString()
-
Constructor Details
-
ObjectType
- Parameters:
class_name- fully qualified class name, e.g. java.lang.String
-
ObjectType
-
-
Method Details
-
getClassName
- Returns:
- name of referenced class
-
hashCode
-
equals
-
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
-
accessibleTo
Java Virtual Machine Specification edition 2, 5.4.4 Access Control
-