public class IINC extends LocalVariableInstruction
| Modifier and Type | Field and Description |
|---|---|
private int |
c |
private static long |
serialVersionUID |
private boolean |
wide |
nlength, opcode| Constructor and Description |
|---|
IINC()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
IINC(int n,
int c) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
int |
getIncrement() |
Type |
getType(ConstantPoolGen cp)
Returns the type associated with the instruction -
in case of ALOAD or ASTORE Type.OBJECT is returned.
|
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (e.g.
|
void |
setIncrement(int c)
Set increment factor.
|
void |
setIndex(int n)
Set index of local variable.
|
private void |
setWide() |
java.lang.String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< local variable index>">"
|
getCanonicalTag, getIndexconsumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toString, toStringprivate static final long serialVersionUID
private boolean wide
private int c
IINC()
public IINC(int n,
int c)
n - index of local variablec - increment factorpublic void dump(java.io.DataOutputStream out)
throws java.io.IOException
dump in class LocalVariableInstructionout - Output streamjava.io.IOExceptionprivate void setWide()
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile in class LocalVariableInstructionbytes - byte sequence to read fromwide - "wide" instruction flagjava.io.IOException - may be thrown if the implementation needs to read data from the filepublic java.lang.String toString(boolean verbose)
LocalVariableInstructiontoString in class LocalVariableInstructionverbose - long/short format switchpublic final void setIndex(int n)
setIndex in interface IndexedInstructionsetIndex in class LocalVariableInstructionpublic final int getIncrement()
public final void setIncrement(int c)
public Type getType(ConstantPoolGen cp)
LocalVariableInstructiongetType in interface TypedInstructiongetType in class LocalVariableInstructionpublic void accept(Visitor v)
accept in class Instructionv - Visitor object