Class MultiArrayOperand
java.lang.Object
EDU.purdue.cs.bloat.editor.MultiArrayOperand
MultiArrayOperand encapsulates the operands to the
multianewarray instruction. Each MultiArrayOperand
contains the type descriptor of the new multidimensional array the
instruction creates, as well as the number of dimensions in the array.
-
Constructor Details
-
MultiArrayOperand
Constructor.- Parameters:
type- The element type of the array.dim- The number of dimensions of the array.
-
-
Method Details
-
type
-
dimensions
public int dimensions()Get the number of dimensions of the array.- Returns:
- The number of dimensions of the array.
-
toString
-