All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.fub.bytecode.generic.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

Constructor Index

 o MULTIANEWARRAY(int, short)

Method Index

 o consumeStack(ConstantPoolGen)
Also works for instructions whose stack effect depends on the constant pool entry they reference.
 o dump(DataOutputStream)
Dump instruction as byte code to stream out.
 o getDimensions()
 o getExceptions()
 o initFromFile(ByteSequence, boolean)
Read needed data (i.e.
 o toString(boolean)
 o toString(ConstantPool)

Constructors

 o MULTIANEWARRAY
 public MULTIANEWARRAY(int index,
                       short dimensions)

Methods

 o dump
 public void dump(DataOutputStream out) throws IOException
Dump instruction as byte code to stream out.

Parameters:
out - Output stream
Overrides:
dump in class CPInstruction
 o initFromFile
 protected void initFromFile(ByteSequence bytes,
                             boolean wide) throws IOException
Read needed data (i.e. no. dimension) from file.

Overrides:
initFromFile in class CPInstruction
 o getDimensions
 public final short getDimensions()
Returns:
number of dimensions to be created
 o toString
 public String toString(boolean verbose)
Returns:
mnemonic for instruction
Overrides:
toString in class CPInstruction
 o toString
 public String toString(ConstantPool cp)
Returns:
mnemonic for instruction with symbolic references resolved
Overrides:
toString in class CPInstruction
 o 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
 o getExceptions
 public Class[] getExceptions()

All Packages  Class Hierarchy  This Package  Previous  Next  Index