Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.LocalVariableInstruction
org.apache.bcel.generic.IINC
public class IINC
extends LocalVariableInstruction
Field Summary |
Fields inherited from class org.apache.bcel.generic.LocalVariableInstruction | |
n |
Fields inherited from class org.apache.bcel.generic.Instruction | |
length , opcode |
Constructor Summary | |
|
Method Summary | |
void | |
void |
|
int | |
Type | |
protected void |
|
void |
|
void |
|
String |
|
Methods inherited from class org.apache.bcel.generic.LocalVariableInstruction | |
dump , getCanonicalTag , getIndex , getType , initFromFile , setIndex , toString |
Methods inherited from class org.apache.bcel.generic.Instruction | |
accept , consumeStack , copy , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , toString , toString , toString |
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.
- Overrides:
- accept in interface Instruction
- Parameters:
v
- Visitor object
public void dump(DataOutputStream out) throws IOException
Dump instruction as byte code to stream out.
- Overrides:
- dump in interface LocalVariableInstruction
- Parameters:
out
- Output stream
public final int getIncrement()
- Returns:
- increment factor
public Type getType(ConstantPoolGen cp)
- Specified by:
- getType in interface TypedInstruction
- Overrides:
- getType in interface LocalVariableInstruction
- Returns:
- int type
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
Read needed data (e.g. index) from file.
- Overrides:
- initFromFile in interface LocalVariableInstruction
public final void setIncrement(int c)
Set increment factor.
public final void setIndex(int n)
Set index of local variable.
- Specified by:
- setIndex in interface IndexedInstruction
- Overrides:
- setIndex in interface LocalVariableInstruction
public String toString(boolean verbose)
- Overrides:
- toString in interface LocalVariableInstruction
- Returns:
- mnemonic for instruction