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
-
MULTIANEWARRAY(int, short)
-
-
consumeStack(ConstantPoolGen)
- Also works for instructions whose stack effect depends on the
constant pool entry they reference.
-
dump(DataOutputStream)
- Dump instruction as byte code to stream out.
-
getDimensions()
-
-
getExceptions()
-
-
initFromFile(ByteSequence, boolean)
- Read needed data (i.e.
-
toString(boolean)
-
-
toString(ConstantPool)
-
MULTIANEWARRAY
public MULTIANEWARRAY(int index,
short dimensions)
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
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide) throws IOException
- Read needed data (i.e. no. dimension) from file.
- Overrides:
- initFromFile in class CPInstruction
getDimensions
public final short getDimensions()
- Returns:
- number of dimensions to be created
toString
public String toString(boolean verbose)
- Returns:
- mnemonic for instruction
- Overrides:
- toString in class CPInstruction
toString
public 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 Class[] getExceptions()
All Packages Class Hierarchy This Package Previous Next Index