de.fub.bytecode.generic
Class NEWARRAY
java.lang.Object
|
+--de.fub.bytecode.generic.Instruction
|
+--de.fub.bytecode.generic.NEWARRAY
- public class NEWARRAY
- extends Instruction
- implements AllocationInstruction, ExceptionThrower
NEWARRAY - Create new array of basic type (int, short, ...)
Stack: ..., count -> ..., arrayref
type mus be one of T_INT, T_SHORT, ...
- Version:
- $Id: NEWARRAY.java,v 1.8 1999/09/09 07:42:59 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Method Summary |
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 (e.g. |
java.lang.String |
toString(boolean verbose)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
NEWARRAY
public NEWARRAY(byte type)
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 Instruction
toString
public java.lang.String toString(boolean verbose)
- Returns:
- mnemonic for instruction
- Overrides:
- toString in class Instruction
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide)
throws java.io.IOException
- Read needed data (e.g. index) from file.
- Overrides:
- initFromFile in class Instruction
getExceptions
public java.lang.Class[] getExceptions()
- Specified by:
- getExceptions in interface ExceptionThrower