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