|
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.ImmediateByteInstruction
org.gjt.jclasslib.bytecode.IncrementInstruction
Describes the iinc instruction.
Field Summary |
Fields inherited from class org.gjt.jclasslib.bytecode.ImmediateByteInstruction |
wide |
Constructor Summary | |
IncrementInstruction(int opcode,
boolean wide)
Constructor. |
|
IncrementInstruction(int opcode,
boolean wide,
int immediateByte,
int incrementConst)
Constructor. |
Method Summary | |
int |
getIncrementConst()
Get the increment 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 |
setIncrementConst(int incrementConst)
Set the increment of this instruction. |
void |
write(ByteCodeOutput out)
Write this instruction to the given ByteCodeOutput. |
Methods inherited from class org.gjt.jclasslib.bytecode.ImmediateByteInstruction |
getImmediateByte, isWide, setImmediateByte, setWide |
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 IncrementInstruction(int opcode, boolean wide)
opcode
- the opcodewide
- whether the instruction is a wide instruction.public IncrementInstruction(int opcode, boolean wide, int immediateByte, int incrementConst)
opcode
- the opcodewide
- whether the instruction is a wide instruction.immediateByte
- the immediate byte value.incrementConst
- the increment.Method Detail |
public int getSize()
AbstractInstruction
getSize
in class ImmediateByteInstruction
public int getIncrementConst()
public void setIncrementConst(int incrementConst)
incrementConst
- the incrementpublic 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 ImmediateByteInstruction
IOException
public void write(ByteCodeOutput out) throws IOException
AbstractInstruction
write
in class ImmediateByteInstruction
IOException
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |