FileDocCategorySizeDatePackage
InsnIInc.javaAPI DocGlassfish v2 API3985Fri May 04 22:34:28 BST 2007com.sun.jdo.api.persistence.enhancer.classfile

InsnIInc

public 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.StringargTypes()
What are the types of the stack operands ?

      return "";//NOI18N
  
public booleanbranches()

    return false;
  
public intincrValue()
The amount by which the slot is to be incremented

    return value;
  
private booleanisWide()

    return (value > 127 || value < -128 || localVarIndex > 255);
  
public intnStackArgs()

    return 0;
  
public intnStackResults()

    return 0;
  
voidprint(java.io.PrintStream out, int indent)

    ClassPrint.spaces(out, indent);
    out.println(offset() + "  opc_iinc  " + //NOI18N
		localVarIndex + "," + value);//NOI18N
  
public java.lang.StringresultTypes()
What are the types of the stack results?

      return "";//NOI18N
  
intsize()

    return isWide() ? 6 : 3;
  
intstore(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 intvarIndex()
The local variable slot to be incremented

    return localVarIndex;