public class MULTIANEWARRAY extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower
Stack: ..., count1, [count2, ...] -> ..., arrayref
| Modifier and Type | Field and Description |
|---|---|
private short |
dimensions |
indexlength, opcode| Constructor and Description |
|---|
MULTIANEWARRAY()
Empty constructor needed for Instruction.readInstruction.
|
MULTIANEWARRAY(int index,
short dimensions) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
int |
consumeStack(ConstantPoolGen cpg)
Also works for instructions whose stack effect depends on the
constant pool entry they reference.
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
short |
getDimensions() |
java.lang.Class<?>[] |
getExceptions() |
ObjectType |
getLoadClassType(ConstantPoolGen cpg)
Returns the ObjectType of the referenced class or interface
that may be loaded and resolved.
|
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (i.e., no.
|
java.lang.String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< constant pool index>">"
|
java.lang.String |
toString(ConstantPool cp) |
getIndex, getType, setIndexcopy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, setLength, setOpcode, toStringMULTIANEWARRAY()
public MULTIANEWARRAY(int index,
short dimensions)
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
dump in class CPInstructionout - Output streamjava.io.IOExceptionprotected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile in class CPInstructionbytes - input streamwide - wide prefix?java.io.IOException - may be thrown if the implementation needs to read data from the filepublic final short getDimensions()
public java.lang.String toString(boolean verbose)
CPInstructiontoString in class CPInstructionverbose - long/short format switchpublic java.lang.String toString(ConstantPool cp)
toString in class CPInstructionpublic int consumeStack(ConstantPoolGen cpg)
consumeStack in class Instructionpublic java.lang.Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClassgetLoadClassType in interface LoadClasspublic void accept(Visitor v)
accept in class Instructionv - Visitor object