Methods Summary |
---|
public void | accept(com.sun.org.apache.bcel.internal.generic.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.
v.visitLocalVariableInstruction(this);
v.visitIINC(this);
|
public void | dump(java.io.DataOutputStream out)Dump instruction as byte code to stream out.
if(wide) // Need WIDE prefix ?
out.writeByte(com.sun.org.apache.bcel.internal.Constants.WIDE);
out.writeByte(opcode);
if(wide) {
out.writeShort(n);
out.writeShort(c);
} else {
out.writeByte(n);
out.writeByte(c);
}
|
public final int | getIncrement() return c;
|
public com.sun.org.apache.bcel.internal.generic.Type | getType(com.sun.org.apache.bcel.internal.generic.ConstantPoolGen cp)
return Type.INT;
|
protected void | initFromFile(com.sun.org.apache.bcel.internal.util.ByteSequence bytes, boolean wide)Read needed data (e.g. index) from file.
this.wide = wide;
if(wide) {
length = 6;
n = bytes.readUnsignedShort();
c = bytes.readShort();
} else {
length = 3;
n = bytes.readUnsignedByte();
c = bytes.readByte();
}
|
public final void | setIncrement(int c)Set increment factor.
this.c = c;
setWide();
|
public final void | setIndex(int n)Set index of local variable.
if(n < 0)
throw new ClassGenException("Negative index value: " + n);
this.n = n;
setWide();
|
private final void | setWide()
if(wide = ((n > com.sun.org.apache.bcel.internal.Constants.MAX_SHORT) ||
(Math.abs(c) > Byte.MAX_VALUE)))
length = 6; // wide byte included
else
length = 3;
|
public java.lang.String | toString(boolean verbose)
return super.toString(verbose) + " " + c;
|