org.apache.bcel.generic

Class IINC

public class IINC extends LocalVariableInstruction

IINC - Increment local variable by constant
Constructor Summary
IINC(int n, int c)
Method Summary
voidaccept(Visitor v)
Call corresponding visitor method(s).
voiddump(DataOutputStream out)
Dump instruction as byte code to stream out.
intgetIncrement()
TypegetType(ConstantPoolGen cp)
protected voidinitFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.
voidsetIncrement(int c)
Set increment factor.
voidsetIndex(int n)
Set index of local variable.
StringtoString(boolean verbose)

Constructor Detail

IINC

public IINC(int n, int c)

Parameters: n index of local variable c increment factor

Method Detail

accept

public void accept(Visitor v)
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.

Parameters: v Visitor object

dump

public void dump(DataOutputStream out)
Dump instruction as byte code to stream out.

Parameters: out Output stream

getIncrement

public final int getIncrement()

Returns: increment factor

getType

public Type getType(ConstantPoolGen cp)

Returns: int type

initFromFile

protected void initFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.

setIncrement

public final void setIncrement(int c)
Set increment factor.

setIndex

public final void setIndex(int n)
Set index of local variable.

toString

public String toString(boolean verbose)

Returns: mnemonic for instruction