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
-
NEWARRAY(byte)
-
-
dump(DataOutputStream)
- Dump instruction as byte code to stream out.
-
getExceptions()
-
-
getType()
-
-
getTypecode()
-
-
initFromFile(ByteSequence, boolean)
- Read needed data (e.g.
-
toString(boolean)
-
NEWARRAY
public NEWARRAY(byte type)
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
getTypecode
public final byte getTypecode()
- Returns:
- numeric code for basic element type
getType
public final Type getType()
- Returns:
- type of constructed array
toString
public String toString(boolean verbose)
- Returns:
- mnemonic for instruction
- Overrides:
- toString in class Instruction
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide) throws IOException
- Read needed data (e.g. index) from file.
- Overrides:
- initFromFile in class Instruction
getExceptions
public Class[] getExceptions()
All Packages Class Hierarchy This Package Previous Next Index