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
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
MULTIANEWARRAY
public MULTIANEWARRAY(int index,
short dimensions)
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