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 accept(Visitor v)
accept
in class Instruction
v
- Visitor objectpublic int consumeStack(ConstantPoolGen cpg)
consumeStack
in class Instruction
public void dump(DataOutputStream out) throws IOException
dump
in class CPInstruction
out
- Output streamIOException
- Thrown when an I/O exception of some sort has occurred.public final short getDimensions()
public Class<?>[] getExceptions()
getExceptions
in interface ExceptionThrower
public ObjectType getLoadClassType(ConstantPoolGen cpg)
LoadClass
ObjectType
of the referenced class or interface that may be loaded and resolved.getLoadClassType
in interface LoadClass
cpg
- A ConstantPoolGenprotected 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 String toString(boolean verbose)
CPInstruction
toString
in class CPInstruction
verbose
- long/short format switchpublic String toString(ConstantPool cp)
toString
in class CPInstruction
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.