public class MULTIANEWARRAY extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower
Stack: ..., count1, [count2, ...] -> ..., arrayref
index
length, opcode
Constructor and Description |
---|
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(DataOutputStream out)
Dump instruction as byte code to stream out.
|
short |
getDimensions() |
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.
|
String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< constant pool index>">"
|
String |
toString(ConstantPool cp) |
getIndex, getType, setIndex
copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString
public void dump(DataOutputStream out) throws IOException
dump
in class CPInstruction
out
- Output streamIOException
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile
in class CPInstruction
bytes
- input streamwide
- wide prefix?IOException
- may be thrown if the implementation needs to read data from the filepublic final short getDimensions()
public String toString(boolean verbose)
CPInstruction
toString
in class CPInstruction
verbose
- long/short format switchpublic String toString(ConstantPool cp)
toString
in class CPInstruction
public int consumeStack(ConstantPoolGen cpg)
consumeStack
in class Instruction
public 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 objectCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.