org.apache.bcel.generic
Class IINC
- Cloneable, IndexedInstruction, Serializable, TypedInstruction
IINC - Increment local variable by constant
Version:
- M. Dahm
accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString |
IINC
public IINC(int n,
int c)n - index of local variablec - increment factor
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.
- accept in interface Instruction
v - Visitor object
dump
public void dump(DataOutputStream out)
throws IOException Dump instruction as byte code to stream out.
- dump in interface LocalVariableInstruction
out - Output stream
getIncrement
public final int getIncrement()
- increment factor
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide)
throws IOException Read needed data (e.g. index) from file.
- initFromFile in interface LocalVariableInstruction
setIncrement
public final void setIncrement(int c)
Set increment factor.