|
ej-technologies | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.gjt.jclasslib.bytecode.AbstractInstruction
|
+--org.gjt.jclasslib.bytecode.ImmediateByteInstruction
Describes an instruction that is followed by an immediate unsigned byte.
| Field Summary | |
protected boolean |
wide
Indicates whether the instuction is subject to a wide instruction or not. |
| Constructor Summary | |
ImmediateByteInstruction(int opcode,
boolean wide)
Constructor. |
|
ImmediateByteInstruction(int opcode,
boolean wide,
int immediateByte)
Constructor. |
|
| Method Summary | |
int |
getImmediateByte()
Get the immediate unsigned byte of this instruction. |
int |
getSize()
Get the size in bytes of this instruction. |
boolean |
isWide()
Check whether the instuction is subject to a wide instruction or not. |
void |
read(ByteCodeInput in)
Read this instruction from the given ByteCodeInput. |
void |
setImmediateByte(int immediateByte)
Set the immediate unsigned byte of this instruction. |
void |
setWide(boolean wide)
Set whether the instuction is subject to a wide instruction or not. |
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 |
| Field Detail |
protected boolean wide
| Constructor Detail |
public ImmediateByteInstruction(int opcode,
boolean wide)
opcode - the opcodewide - whether the instruction is a wide instruction.
public ImmediateByteInstruction(int opcode,
boolean wide,
int immediateByte)
opcode - the opcodewide - whether the instruction is a wide instruction.immediateByte - the immediate byte value.| Method Detail |
public int getSize()
AbstractInstruction
getSize in class AbstractInstructionpublic int getImmediateByte()
public void setImmediateByte(int immediateByte)
immediateByte - the bytepublic boolean isWide()
public void setWide(boolean wide)
wide - wide or not
public void read(ByteCodeInput in)
throws IOException
AbstractInstructionExcpects ByteCodeInput to be in JVM class file format and just before a instruction of this kind.
read in class AbstractInstructionin - the ByteCodeInput from which to read
IOException - if an exception occurs with the ByteCodeInput
public void write(ByteCodeOutput out)
throws IOException
AbstractInstruction
write in class AbstractInstructionout - 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 | |||||||||