java.io.Serializable
, java.lang.Cloneable
, AllocationInstruction
, ExceptionThrower
, IndexedInstruction
, LoadClass
, TypedInstruction
public class MULTIANEWARRAY extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower
Stack: ..., count1, [count2, ...] -> ..., arrayref
index
length, opcode
Constructor | Description |
---|---|
MULTIANEWARRAY(int index,
short dimensions) |
Modifier and Type | Method | 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, setIndex
copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString
public void dump(java.io.DataOutputStream out) throws java.io.IOException
dump
in class CPInstruction
out
- Output streamjava.io.IOException
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile
in class CPInstruction
bytes
- input streamwide
- wide prefix?java.io.IOException
public final short getDimensions()
public java.lang.String toString(boolean verbose)
CPInstruction
toString
in class CPInstruction
verbose
- long/short format switchpublic java.lang.String toString(ConstantPool cp)
toString
in class CPInstruction
public int consumeStack(ConstantPoolGen cpg)
consumeStack
in class Instruction
public java.lang.Class[] getExceptions()
getExceptions
in interface ExceptionThrower
public ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClass
getLoadClassType
in interface LoadClass
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object