Package org.aspectj.apache.bcel.generic
Class ArrayType
java.lang.Object
org.aspectj.apache.bcel.generic.Type
org.aspectj.apache.bcel.generic.ReferenceType
org.aspectj.apache.bcel.generic.ArrayType
Denotes array type, such as int[][]
- Version:
- $Id: ArrayType.java,v 1.4 2008/08/26 15:02:04 aclement Exp $
- Author:
- M. Dahm
-
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, 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, VOID
-
Constructor Summary
-
Method Summary
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
-
Constructor Details
-
ArrayType
public ArrayType(byte type, int dimensions)Convenience constructor for array type, e.g. int[]- Parameters:
type
- array type, e.g. T_INT
-
ArrayType
Convenience constructor for reference array type, e.g. Object[]- Parameters:
class_name
- complete name of class (java.lang.String, e.g.)
-
ArrayType
Constructor for array of given type- Parameters:
type
- type of array (may be an array itself)
-
-
Method Details
-
getBasicType
- Returns:
- basic type of array, i.e., for int[][][] the basic type is int
-
getElementType
- Returns:
- element type of array, i.e., for int[][][] the element type is int[][]
-
getDimensions
public int getDimensions()- Returns:
- number of dimensions of array
-
hashCode
public int hashCode() -
equals
-