|
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
public abstract class AbstractInstruction
Base class for all opcode instruction wrappers.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
protected |
AbstractInstruction(int opcode)
Constructor. |
| Method Summary | |
|---|---|
int |
getOffset()
Get the offset of this instruction in its parent Code attribute. |
int |
getOpcode()
Get the opcode of this instruction. |
java.lang.String |
getOpcodeVerbose()
Get the verbose description of the opcode 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 |
setOffset(int offset)
Set the offset of this instruction in its parent Code attribute. |
void |
setOpcode(int opcode)
Set the opcode of this instruction. |
void |
write(ByteCodeOutput out)
Write this instruction to the given ByteCodeOutput. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractInstruction(int opcode)
opcode - the opcode.| Method Detail |
|---|
public int getSize()
public int getOpcode()
public void setOpcode(int opcode)
opcode - the opcodepublic java.lang.String getOpcodeVerbose()
public int getOffset()
public void setOffset(int offset)
offset - the offset
public void read(ByteCodeInput in)
throws java.io.IOException
Excpects ByteCodeInput to be in JVM class file format and just before a instruction of this kind.
in - the ByteCodeInput from which to read
java.io.IOException - if an exception occurs with the ByteCodeInput
public void write(ByteCodeOutput out)
throws java.io.IOException
out - the ByteCodeOutput to which to write
java.io.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 | ||||||||