public class MULTIANEWARRAY extends CPInstruction implements LoadClass, AllocationInstruction, ExceptionThrower
Stack: ..., count1, [count2, ...] -> ..., arrayref
indexlength, 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, setIndexcopy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toStringpublic MULTIANEWARRAY(int index, short dimensions)
public void accept(Visitor v)
accept in class Instructionv - Visitor objectpublic int consumeStack(ConstantPoolGen cpg)
consumeStack in class Instructionpublic void dump(DataOutputStream out) throws IOException
dump in class CPInstructionout - Output streamIOExceptionpublic final short getDimensions()
public Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClassgetLoadClassType in interface LoadClassprotected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile in class CPInstructionbytes - input streamwide - wide prefix?IOException - may be thrown if the implementation needs to read data from the filepublic String toString(boolean verbose)
CPInstructiontoString in class CPInstructionverbose - long/short format switchpublic String toString(ConstantPool cp)
toString in class CPInstructionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.