de.fub.bytecode.generic
Class MULTIANEWARRAY

java.lang.Object
  |
  +--de.fub.bytecode.generic.Instruction
        |
        +--de.fub.bytecode.generic.CPInstruction
              |
              +--de.fub.bytecode.generic.MULTIANEWARRAY

public class MULTIANEWARRAY
extends CPInstruction
implements LoadClass, AllocationInstruction, ExceptionThrower

MULTIANEWARRAY - Create new mutidimensional array of references

Stack: ..., count1, [count2, ...] -> ..., arrayref

Version:
$Id: MULTIANEWARRAY.java,v 1.11 1999/09/09 07:42:57 dahm Exp $
Author:
M. Dahm
See Also:
Serialized Form

Fields inherited from class de.fub.bytecode.generic.CPInstruction
index
 
Fields inherited from class de.fub.bytecode.generic.Instruction
length, tag
 
Constructor Summary
MULTIANEWARRAY(int index, short dimensions)
           
 
Method Summary
 int consumeStack(ConstantPoolGen cpg)
          Also works for instructions whose stack effect depends on the constant pool entry they reference.
 void dump(java.io.DataOutputStream out)
          Dump instruction as byte code to stream out.
 java.lang.Class[] getExceptions()
           
protected  void initFromFile(ByteSequence bytes, boolean wide)
          Read needed data (i.e.
 java.lang.String toString(boolean verbose)
           
 java.lang.String toString(ConstantPool cp)
           
 
Methods inherited from class de.fub.bytecode.generic.CPInstruction
getIndex, getType, setIndex
 
Methods inherited from class de.fub.bytecode.generic.Instruction
consumeStack, copy, getLength, getTag, produceStack, produceStack, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MULTIANEWARRAY

public MULTIANEWARRAY(int index,
                      short dimensions)
Method Detail

dump

public void dump(java.io.DataOutputStream out)
          throws java.io.IOException
Dump instruction as byte code to stream out.
Parameters:
out - Output stream
Overrides:
dump in class CPInstruction

initFromFile

protected void initFromFile(ByteSequence bytes,
                            boolean wide)
                     throws java.io.IOException
Read needed data (i.e. no. dimension) from file.
Overrides:
initFromFile in class CPInstruction

toString

public java.lang.String toString(boolean verbose)
Returns:
mnemonic for instruction
Overrides:
toString in class CPInstruction

toString

public java.lang.String toString(ConstantPool cp)
Returns:
mnemonic for instruction with symbolic references resolved
Overrides:
toString in class CPInstruction

consumeStack

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

getExceptions

public java.lang.Class[] getExceptions()
Specified by:
getExceptions in interface ExceptionThrower