public class NEWARRAY extends Instruction implements AllocationInstruction, ExceptionThrower, StackProducer
Stack: ..., count -> ..., arrayreftype must be one of T_INT, T_SHORT, ...
length, opcode| Constructor and Description |
|---|
NEWARRAY(BasicType type) |
NEWARRAY(byte type) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(DataOutputStream out)
Dump instruction as byte code to stream out.
|
Class[] |
getExceptions() |
Type |
getType() |
byte |
getTypecode() |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (e.g. index) from file.
|
String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")"
|
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitproduceStackpublic NEWARRAY(byte type)
public NEWARRAY(BasicType type)
public void dump(DataOutputStream out) throws IOException
dump in class Instructionout - Output streamIOExceptionpublic final byte getTypecode()
public final Type getType()
public String toString(boolean verbose)
InstructiontoString in class Instructionverbose - long/short format switchprotected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile in class Instructionbytes - byte sequence to read fromwide - "wide" instruction flagIOExceptionpublic Class[] getExceptions()
getExceptions in interface ExceptionThrowerpublic void accept(Visitor v)
accept in class Instructionv - Visitor objectCopyright © 2018–2021 mhoffrogge. All rights reserved.