public class NEWARRAY extends Instruction implements AllocationInstruction, ExceptionThrower, StackProducer
Stack: ..., count -> ..., arrayreftype must be one of T_INT, T_SHORT, ...
| Modifier and Type | Field and Description |
|---|---|
private byte |
type |
length, opcode| Constructor and Description |
|---|
NEWARRAY()
Empty constructor needed for Instruction.readInstruction.
|
NEWARRAY(BasicType type) |
NEWARRAY(byte type) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
java.lang.Class<?>[] |
getExceptions() |
Type |
getType() |
byte |
getTypecode() |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (e.g.
|
java.lang.String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")"
|
consumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, setLength, setOpcode, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitproduceStackNEWARRAY()
public NEWARRAY(byte type)
public NEWARRAY(BasicType type)
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
dump in class Instructionout - Output streamjava.io.IOExceptionpublic final byte getTypecode()
public final Type getType()
public java.lang.String toString(boolean verbose)
InstructiontoString in class Instructionverbose - long/short format switchprotected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile in class Instructionbytes - byte sequence to read fromwide - "wide" instruction flagjava.io.IOException - may be thrown if the implementation needs to read data from the filepublic java.lang.Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic void accept(Visitor v)
accept in class Instructionv - Visitor object