public final class ArrayType extends ReferenceType
Constructor and Description |
---|
ArrayType(byte type,
int dimensions)
Convenience constructor for array type, e.g.
|
ArrayType(String className,
int dimensions)
Convenience constructor for reference array type, e.g.
|
ArrayType(Type type,
int dimensions)
Constructor for array of given type
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object type) |
Type |
getBasicType() |
String |
getClassName()
Gets the name of referenced class.
|
int |
getDimensions() |
Type |
getElementType() |
int |
hashCode() |
firstCommonSuperclass, getFirstCommonSuperclass, isAssignmentCompatibleWith, isCastableTo
getArgumentTypes, getMethodSignature, getReturnType, getSignature, getSignature, getSize, getType, getType, getType, getTypes, normalizeForStackOrLocal, toString
public ArrayType(byte type, int dimensions)
type
- array type, e.g. T_INTdimensions
- array dimensionspublic ArrayType(String className, int dimensions)
className
- complete name of class (java.lang.String, e.g.)dimensions
- array dimensionspublic ArrayType(Type type, int dimensions)
type
- type of array (may be an array itself)dimensions
- array dimensionspublic boolean equals(Object type)
public Type getBasicType()
public String getClassName()
getClassName
in class Type
public int getDimensions()
public Type getElementType()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.