org.apache.bcel.generic
Class ArrayType
- java.io.Serializable
public final class ArrayType
Denotes array type, such as int[][]
$Id: ArrayType.java 386056 2006-03-15 11:31:56Z tcurdt $
BOOLEAN , BYTE , CHAR , CLASS , DOUBLE , FLOAT , INT , LONG , NO_ARGS , NULL , OBJECT , SHORT , STRING , STRINGBUFFER , THROWABLE , UNKNOWN , VOID , consumed_chars , signature , type |
ArrayType(String class_name, int dimensions) - Convenience constructor for reference array type, e.g.
|
ArrayType(byte type, int dimensions) - Convenience constructor for array type, e.g.
|
ArrayType(Type type, int dimensions) - Constructor for array of given type
|
equals , getArgumentTypes , getMethodSignature , getReturnType , getSignature , getSignature , getSize , getType , getType , getType , getTypes , hashCode , toString , unwrap , wrap |
basic_type
private Type basic_type
dimensions
private int dimensions
ArrayType
public ArrayType(String class_name,
int dimensions)
Convenience constructor for reference array type, e.g. Object[]
class_name
- complete name of class (java.lang.String, e.g.)
ArrayType
public ArrayType(byte type,
int dimensions)
Convenience constructor for array type, e.g. int[]
type
- array type, e.g. T_INT
ArrayType
public ArrayType(Type type,
int dimensions)
Constructor for array of given type
type
- type of array (may be an array itself)
equals
public boolean equals(Object _type)
- equals in interface Type
- true if both type objects refer to the same array type.
getBasicType
public Type getBasicType()
- basic type of array, i.e., for int[][][] the basic type is int
getDimensions
public int getDimensions()
- number of dimensions of array
getElementType
public Type getElementType()
- element type of array, i.e., for int[][][] the element type is int[][]
hashCode
public int hashCode()
- hashCode in interface Type
- a hash code value for the object.