/** * Creates a stack assignment for incrementing the given offset of the local variable array. * * @param offset The offset of the variable where {@code double} and {@code long} types count two slots. * @param value The incremented value. * @return A stack manipulation representing the variable write. */ public StackManipulation increment(int offset, int value) { if (this != INTEGER) { throw new IllegalStateException("Cannot increment type: " + this); } return new OffsetIncrementing(offset, value); }