Class MultiArrayType
java.lang.Object
javassist.bytecode.analysis.Type
javassist.bytecode.analysis.MultiArrayType
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the array component if this type is an array.Returns the class this type represents.intReturns the number of dimensions of this array.intgetSize()Gets the word size of this type.inthashCode()booleanisArray()Returns whether or not this type is an array.booleanisAssignableFrom(Type type) Determines whether this type is assignable, to the passed type.booleanisAssignableTo(Type type) booleanReturns whether or not this type is a normal java reference, i.e.toString()
-
Constructor Details
-
MultiArrayType
-
-
Method Details
-
getCtClass
Description copied from class:TypeReturns the class this type represents. If the type is special, null will be returned.- Overrides:
getCtClassin classType- Returns:
- the class for this type, or null if special
-
getDimensions
public int getDimensions()Description copied from class:TypeReturns the number of dimensions of this array. If the type is not an array zero is returned.- Overrides:
getDimensionsin classType- Returns:
- zero if not an array, otherwise the number of array dimensions.
-
getComponent
Description copied from class:TypeReturns the array component if this type is an array. If the type is not an array null is returned.- Overrides:
getComponentin classType- Returns:
- the array component if an array, otherwise null
-
getSize
-
isArray
-
isAssignableFrom
Description copied from class:TypeDetermines whether this type is assignable, to the passed type. A type is assignable to another if it is either the same type, or a sub-type.- Overrides:
isAssignableFromin classType- Parameters:
type- the type to test assignability to- Returns:
- true if this is assignable to type, otherwise false
-
isReference
public boolean isReference()Description copied from class:TypeReturns whether or not this type is a normal java reference, i.e. it is or extends java.lang.Object.- Overrides:
isReferencein classType- Returns:
- true if a java reference, false if a primitive or special
-
isAssignableTo
-
hashCode
-
equals
-
toString
-