Class ArrayType
java.lang.Object
org.apache.bcel.generic.Type
org.apache.bcel.generic.ReferenceType
org.apache.bcel.generic.ArrayType
Denotes array type, such as int[][]
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionArrayType(byte type, int dimensions) Convenience constructor for array type, for example int[]Convenience constructor for reference array type, for example Object[]Constructor for array of given type -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the basic type of array, that is, for int[][][] the basic type is int.Gets the name of referenced class.intGets the number of dimensions of array.Gets the element type of array, that is, for int[][][] the element type is int[][].inthashCode()Gets the hash code of this Type.Methods inherited from class ReferenceType
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableToMethods inherited from class Type
getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, normalizeForStackOrLocal, toString
-
Constructor Details
-
ArrayType
Convenience constructor for array type, for example int[]- Parameters:
type- array type, for example T_INT.dimensions- array dimensions.
-
ArrayType
-
ArrayType
-
-
Method Details
-
equals
-
getBasicType
Gets the basic type of array, that is, for int[][][] the basic type is int.- Returns:
- basic type of array, that is, for int[][][] the basic type is int.
-
getClassName
Gets the name of referenced class.- Overrides:
getClassNamein classType- Returns:
- name of referenced class.
- Since:
- 6.7.0
-
getDimensions
Gets the number of dimensions of array.- Returns:
- number of dimensions of array.
-
getElementType
Gets the element type of array, that is, for int[][][] the element type is int[][].- Returns:
- element type of array, that is, for int[][][] the element type is int[][].
-
hashCode
-