Constructor and Description |
---|
MultiArrayType(MultiType component,
int dims) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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.
|
java.lang.String |
toString() |
public MultiArrayType(MultiType component, int dims)
public CtClass getCtClass()
Type
getCtClass
in class Type
public int getDimensions()
Type
getDimensions
in class Type
public Type getComponent()
Type
getComponent
in class Type
public int getSize()
Type
public boolean isArray()
Type
public boolean isAssignableFrom(Type type)
Type
isAssignableFrom
in class Type
type
- the type to test assignability topublic boolean isReference()
Type
isReference
in class Type
public boolean isAssignableTo(Type type)
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.