public class MultianewarrayInstruction extends ImmediateShortInstruction
Constructor and Description |
---|
MultianewarrayInstruction(Opcode opcode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getDimensions()
Get the number of dimensions for the new array.
|
int |
getSize()
Get the size in bytes of this instruction.
|
void |
read(ByteCodeInput in)
Read this instruction from the given ByteCodeInput.
|
void |
setDimensions(int dimensions)
Set the number of dimensions for the new array.
|
void |
write(ByteCodeOutput out)
Write this instruction to the given ByteCodeOutput.
|
getImmediateShort, setImmediateShort
getOffset, getOpcode, setOffset, setOpcode
public MultianewarrayInstruction(Opcode opcode)
opcode
- the opcode.public int getSize()
AbstractInstruction
getSize
in class ImmediateShortInstruction
public int getDimensions()
public void setDimensions(int dimensions)
dimensions
- the number of dimensionspublic void read(ByteCodeInput in) throws IOException
AbstractInstruction
Expects ByteCodeInput to be in JVM class file format and just before a instruction of this kind.
read
in class ImmediateShortInstruction
in
- the ByteCodeInput from which to readIOException
- if an exception occurs with the ByteCodeInputpublic void write(ByteCodeOutput out) throws IOException
AbstractInstruction
write
in class ImmediateShortInstruction
out
- the ByteCodeOutput to which to writeIOException
- if an exception occurs with the ByteCodeOutput