Package javassist.bytecode.analysis
Class MultiArrayType
java.lang.Object
javassist.bytecode.analysis.Type
javassist.bytecode.analysis.MultiArrayType
Represents an array of
MultiType
instances.- Author:
- Jason T. Greene
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the array component if this type is an array.Returns the class this type represents.int
Returns the number of dimensions of this array.int
getSize()
Gets the word size of this type.int
hashCode()
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
Returns whether or not this type is a normal java reference, i.e.toString()
-
Constructor Details
-
MultiArrayType
-
-
Method Details
-
getCtClass
Description copied from class:Type
Returns the class this type represents. If the type is special, null will be returned.- Overrides:
getCtClass
in classType
- Returns:
- the class for this type, or null if special
-
getDimensions
public int getDimensions()Description copied from class:Type
Returns the number of dimensions of this array. If the type is not an array zero is returned.- Overrides:
getDimensions
in classType
- Returns:
- zero if not an array, otherwise the number of array dimensions.
-
getComponent
Description copied from class:Type
Returns the array component if this type is an array. If the type is not an array null is returned.- Overrides:
getComponent
in classType
- Returns:
- the array component if an array, otherwise null
-
getSize
public int getSize()Description copied from class:Type
Gets the word size of this type. Double-word types, such as long and double will occupy two positions on the local variable table or stack. -
isArray
public boolean isArray()Description copied from class:Type
Returns whether or not this type is an array. -
isAssignableFrom
Description copied from class:Type
Determines 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:
isAssignableFrom
in 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:Type
Returns whether or not this type is a normal java reference, i.e. it is or extends java.lang.Object.- Overrides:
isReference
in classType
- Returns:
- true if a java reference, false if a primitive or special
-
isAssignableTo
-
hashCode
public int hashCode() -
equals
-
toString
-