| Constructor and Description |
|---|
MultiArrayType(MultiType component,
int dims) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Type |
getComponent()
Returns the array component if this type is an array.
|
CtClass |
getCtClass()
Returns the class this type represents.
|
int |
getDimensions()
Returns the number of dimensions of this array.
|
int |
getSize()
Gets the word size of this type.
|
boolean |
isArray()
Returns whether or not this type is an array.
|
boolean |
isAssignableFrom(Type type)
Determines whether this type is assignable, to the passed type.
|
boolean |
isAssignableTo(Type type) |
boolean |
isReference()
Returns whether or not this type is a normal java reference, i.e.
|
String |
toString() |
public MultiArrayType(MultiType component, int dims)
public CtClass getCtClass()
TypegetCtClass in class Typepublic int getDimensions()
TypegetDimensions in class Typepublic Type getComponent()
TypegetComponent in class Typepublic int getSize()
Typepublic boolean isArray()
Typepublic boolean isAssignableFrom(Type type)
TypeisAssignableFrom in class Typetype - the type to test assignability topublic boolean isReference()
TypeisReference in class Typepublic boolean isAssignableTo(Type type)
Copyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.