jellyj.classfile.classgen
Class NEWARRAY

jellyj.classfile.classgen.Instruction
  |
  +--jellyj.classfile.classgen.NEWARRAY

public class NEWARRAY
extends Instruction

NEWARRAY - Create new array of basic type (int, short, ...) Stack: ..., type -> ..., arrayref type mus be one of T_INT, T_SHORT, ...

Author:
JellyJ Design Group

Constructor Summary
 (package private) NEWARRAY()
          Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
 NEWARRAY(byte type)
           

Method Summary
 voiddump(DataOutputStream out)
          Dump instruction as byte code to stream out.
 StringtoString()
           

Methods inherited from class jellyj.classfile.classgen.Instruction
consumeStack, copy, getLength, getPosition, getTag, produceStack, readInstruction, setPosition

Constructor Detail

NEWARRAY

NEWARRAY()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

NEWARRAY

public NEWARRAY(byte type)
Method Detail

dump

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

toString

public String toString()
Returns: mnemonic for instruction