org.apache.bcel.generic
public final class ArrayType extends ReferenceType
Constructor Summary | |
---|---|
ArrayType(byte type, int dimensions)
Convenience constructor for array type, e.g. int[]
| |
ArrayType(String class_name, int dimensions)
Convenience constructor for reference array type, e.g. | |
ArrayType(Type type, int dimensions)
Constructor for array of given type
|
Method Summary | |
---|---|
boolean | equals(Object _type) |
Type | getBasicType() |
int | getDimensions() |
Type | getElementType() |
int | hashCode() |
Parameters: type array type, e.g. T_INT
Parameters: class_name complete name of class (java.lang.String, e.g.)
Parameters: type type of array (may be an array itself)
Returns: true if both type objects refer to the same array type.
Returns: basic type of array, i.e., for int[][][] the basic type is int
Returns: number of dimensions of array
Returns: element type of array, i.e., for int[][][] the element type is int[][]
Returns: a hash code value for the object.