Class MULTIANEWARRAY

All Implemented Interfaces:
Serializable, Cloneable, Constants

public class MULTIANEWARRAY extends InstructionCP
MULTIANEWARRAY - Create new mutidimensional array of references
 Stack: ..., count1, [count2, ...] -> ..., arrayref
 
Version:
$Id: MULTIANEWARRAY.java,v 1.4 2009/10/05 17:35:36 aclement Exp $
Author:
M. Dahm
See Also:
  • Constructor Details

    • MULTIANEWARRAY

      public MULTIANEWARRAY(int index, short dimensions)
  • Method Details

    • dump

      public void dump(DataOutputStream out) throws IOException
      Dump instruction as byte code to stream out.
      Overrides:
      dump in class InstructionCP
      Parameters:
      out - Output stream
      Throws:
      IOException
    • getDimensions

      public final short getDimensions()
      Returns:
      number of dimensions to be created
    • toString

      public String toString(boolean verbose)
      Description copied from class: InstructionCP
      Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">"
      Overrides:
      toString in class InstructionCP
      Parameters:
      verbose - long/short format switch
      Returns:
      mnemonic for instruction
    • toString

      public String toString(ConstantPool cp)
      Overrides:
      toString in class InstructionCP
      Returns:
      mnemonic for instruction with symbolic references resolved
    • consumeStack

      public int consumeStack(ConstantPool cpg)
      Also works for instructions whose stack effect depends on the constant pool entry they reference.
      Overrides:
      consumeStack in class Instruction
      Returns:
      Number of words consumed from stack by this instruction
    • getExceptions

      public Class[] getExceptions()
    • getLoadClassType

      public ObjectType getLoadClassType(ConstantPool cpg)
      Overrides:
      getLoadClassType in class Instruction
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class InstructionCP
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class InstructionCP