All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

Constructor Index

 o NEWARRAY(byte)

Method Index

 o dump(DataOutputStream)
Dump instruction as byte code to stream out.
 o getExceptions()
 o getType()
 o getTypecode()
 o initFromFile(ByteSequence, boolean)
Read needed data (e.g.
 o toString(boolean)

Constructors

 o NEWARRAY
 public NEWARRAY(byte type)

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 Instruction
 o getTypecode
 public final byte getTypecode()
Returns:
numeric code for basic element type
 o getType
 public final Type getType()
Returns:
type of constructed array
 o toString
 public String toString(boolean verbose)
Returns:
mnemonic for instruction
Overrides:
toString in class Instruction
 o initFromFile
 protected void initFromFile(ByteSequence bytes,
                             boolean wide) throws IOException
Read needed data (e.g. index) from file.

Overrides:
initFromFile in class Instruction
 o getExceptions
 public Class[] getExceptions()

All Packages  Class Hierarchy  This Package  Previous  Next  Index