|
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.BranchInstruction
Describes an instruction that branches to a different offset.
Field Summary |
Constructor Summary | |
BranchInstruction(int opcode)
Constructor. |
|
BranchInstruction(int opcode,
int branchOffset)
Constructor. |
Method Summary | |
int |
getBranchOffset()
Get the relative offset of the branch 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 |
setBranchOffset(int branchOffset)
Set the relative offset of the branch of this instruction. |
void |
write(ByteCodeOutput out)
Write this instruction to the given ByteCodeOutput. |
Methods inherited from class org.gjt.jclasslib.bytecode.AbstractInstruction |
getOffset, getOpcode, getOpcodeVerbose, setOffset, setOpcode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BranchInstruction(int opcode)
opcode
- the opcode.public BranchInstruction(int opcode, int branchOffset)
opcode
- the opcode.branchOffset
- the branch offset.Method Detail |
public int getSize()
AbstractInstruction
getSize
in class AbstractInstruction
public int getBranchOffset()
public void setBranchOffset(int branchOffset)
branchOffset
- the offsetpublic 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 |