public class PaddedInstruction extends AbstractInstruction
Constructor and Description |
---|
PaddedInstruction(Opcode opcode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getPaddedSize(int offset)
Get the padded 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.
|
public PaddedInstruction(Opcode opcode)
opcode
- the opcode.public int getPaddedSize(int offset)
offset
- the offset at which this instruction is found.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