|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.jclasslib.bytecode.AbstractInstruction
org.gjt.jclasslib.bytecode.PaddedInstruction
Base class for intstructions which need a four byte padding relative to the start of the enclosing code of the parent Code attribute before reading immediate arguments.
Field Summary |
Constructor Summary | |
PaddedInstruction(int opcode)
Constructor. |
Method Summary | |
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. |
Methods inherited from class org.gjt.jclasslib.bytecode.AbstractInstruction |
getOffset, getOpcode, getOpcodeVerbose, getSize, setOffset, setOpcode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PaddedInstruction(int opcode)
opcode
- the opcode.Method Detail |
public int getPaddedSize(int offset)
offset
- the offset at which this instruction is found.
public void read(ByteCodeInput in) throws IOException
AbstractInstruction
Excpects 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 read
IOException
- if an exception occurs with the ByteCodeInputpublic void write(ByteCodeOutput out) throws IOException
AbstractInstruction
write
in class AbstractInstruction
out
- the ByteCodeOutput to which to write
IOException
- if an exception occurs with the ByteCodeOutput
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |