public class WideBranchInstruction extends AbstractBranchInstruction
Constructor and Description |
---|
WideBranchInstruction(Opcode opcode)
Constructor.
|
WideBranchInstruction(Opcode opcode,
int branchOffset)
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.
|
getBranchOffset, setBranchOffset
getOffset, getOpcode, setOffset, setOpcode
public WideBranchInstruction(Opcode opcode)
opcode
- the opcode.public WideBranchInstruction(Opcode opcode, int branchOffset)
opcode
- the opcode.branchOffset
- the immediate int value.public int getSize()
AbstractInstruction
getSize
in class AbstractInstruction
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 AbstractInstruction
in
- the ByteCodeInput from which to readIOException
- if an exception occurs with the ByteCodeInputpublic void write(ByteCodeOutput out) throws IOException
AbstractInstruction
write
in class AbstractInstruction
out
- the ByteCodeOutput to which to writeIOException
- if an exception occurs with the ByteCodeOutput