Class MultiArrayOperand


  • public class MultiArrayOperand
    extends java.lang.Object
    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 Summary

      Constructors 
      Constructor Description
      MultiArrayOperand​(Type type, int dim)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int dimensions()
      Get the number of dimensions of the array.
      java.lang.String toString()
      Convert the operand to a string.
      Type type()
      Get the element type of the array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MultiArrayOperand

        public MultiArrayOperand​(Type type,
                                 int dim)
        Constructor.
        Parameters:
        type - The element type of the array.
        dim - The number of dimensions of the array.
    • Method Detail

      • type

        public Type type()
        Get the element type of the array.
        Returns:
        The element type of the array.
      • dimensions

        public int dimensions()
        Get the number of dimensions of the array.
        Returns:
        The number of dimensions of the array.
      • toString

        public java.lang.String toString()
        Convert the operand to a string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the operand.