|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bcel.generic.Instruction
org.apache.bcel.generic.LocalVariableInstruction
org.apache.bcel.generic.IINC
public class IINC
IINC - Increment local variable by constant
| Field Summary | |
|---|---|
private int |
c
|
private boolean |
wide
|
| Fields inherited from class org.apache.bcel.generic.LocalVariableInstruction |
|---|
n |
| Fields inherited from class org.apache.bcel.generic.Instruction |
|---|
length, opcode |
| Constructor Summary | |
|---|---|
IINC()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). |
|
IINC(int n,
int c)
|
|
| Method Summary | |
|---|---|
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>">" |
| Methods inherited from class org.apache.bcel.generic.LocalVariableInstruction |
|---|
getCanonicalTag, getIndex |
| Methods inherited from class org.apache.bcel.generic.Instruction |
|---|
consumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private boolean wide
private int c
| Constructor Detail |
|---|
IINC()
public IINC(int n,
int c)
n - index of local variablec - increment factor| Method Detail |
|---|
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
dump in class LocalVariableInstructionout - Output stream
java.io.IOExceptionprivate final void setWide()
protected void initFromFile(ByteSequence bytes,
boolean wide)
throws java.io.IOException
initFromFile in class LocalVariableInstructionbytes - byte sequence to read fromwide - "wide" instruction flag
java.io.IOExceptionpublic java.lang.String toString(boolean verbose)
LocalVariableInstruction
toString in class LocalVariableInstructionverbose - long/short format switch
public 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)
LocalVariableInstruction
getType in interface TypedInstructiongetType in class LocalVariableInstructionpublic void accept(Visitor v)
accept in class Instructionv - Visitor object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||