public class InvokeInterfaceInstruction extends ImmediateShortInstruction
Constructor and Description |
---|
InvokeInterfaceInstruction(Opcode opcode)
Constructor.
|
InvokeInterfaceInstruction(Opcode opcode,
int immediateShort,
int count)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Get the argument count of this instruction.
|
int |
getSize()
Get the size in bytes of this instruction.
|
void |
read(ByteCodeInput in)
Read this instruction from the given ByteCodeInput.
|
void |
setCount(int count)
Set the argument count of this instruction.
|
void |
write(ByteCodeOutput out)
Write this instruction to the given ByteCodeOutput.
|
getImmediateShort, setImmediateShort
getOffset, getOpcode, setOffset, setOpcode
public InvokeInterfaceInstruction(Opcode opcode)
opcode
- the opcode.public InvokeInterfaceInstruction(Opcode opcode, int immediateShort, int count)
opcode
- the opcodeimmediateShort
- the immediate short value.count
- the argument count.public int getSize()
AbstractInstruction
getSize
in class ImmediateShortInstruction
public int getCount()
public void setCount(int count)
count
- the argument countpublic 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