public class MULTIANEWARRAY extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower
Stack: ..., count1, [count2, ...] -> ..., arrayref
Modifier and Type | Field and Description |
---|---|
private short |
dimensions |
private static long |
serialVersionUID |
index
length, opcode
Constructor and Description |
---|
MULTIANEWARRAY()
Empty constructor needed for the Class.newInstance() statement in
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, setIndex
copy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toString
private static final long serialVersionUID
private short dimensions
MULTIANEWARRAY()
public MULTIANEWARRAY(int index, short dimensions)
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
- may be thrown if the implementation needs to read data from the filepublic 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