InsnIIncpublic class InsnIInc extends Insn Special instruction form for the opc_iinc instruction |
Fields Summary |
---|
private int | localVarIndex | private int | value |
Constructors Summary |
---|
public InsnIInc(int localVarIndex, int value)Constructor for opc_iinc instruction
this(localVarIndex, value, NO_OFFSET);
| InsnIInc(int localVarIndex, int value, int pc)
super(opc_iinc, pc);
this.localVarIndex = localVarIndex;
this.value =value;
|
Methods Summary |
---|
public java.lang.String | argTypes()What are the types of the stack operands ?
return "";//NOI18N
| public boolean | branches()
return false;
| public int | incrValue()The amount by which the slot is to be incremented
return value;
| private boolean | isWide()
return (value > 127 || value < -128 || localVarIndex > 255);
| public int | nStackArgs()
return 0;
| public int | nStackResults()
return 0;
| void | print(java.io.PrintStream out, int indent)
ClassPrint.spaces(out, indent);
out.println(offset() + " opc_iinc " + //NOI18N
localVarIndex + "," + value);//NOI18N
| public java.lang.String | resultTypes()What are the types of the stack results?
return "";//NOI18N
| int | size()
return isWide() ? 6 : 3;
| int | store(byte[] buf, int index)
if (isWide())
buf[index++] = (byte) opc_wide;
buf[index++] = (byte) opcode();
if (isWide()) {
index = storeShort(buf, index, (short) localVarIndex);
index = storeShort(buf, index, (short) value);
} else {
buf[index++] = (byte)localVarIndex;
buf[index++] = (byte)value;
}
return index;
| public int | varIndex()The local variable slot to be incremented
return localVarIndex;
|
|