src/main/java/org/plumelib/bcelutil/StackTypes.java
public void set(@IndexFor({"loc_arr", "os_arr"}) int offset, Frame f) {

    OperandStack os = f.getStack();
    // logger.info ("stack[" + offset + "] = " + toString(os));

    loc_arr[offset] = (LocalVariables) (f.getLocals().clone());
    os_arr[offset] = (OperandStack) (os.clone());
  }
public void set(@IndexFor({"loc_arr", "os_arr"}) int offset, Frame f) {

    OperandStack os = f.getStack();
    // logger.info ("stack[" + offset + "] = " + toString(os));

    loc_arr[offset] = (LocalVariables) (f.getLocals().clone());
    os_arr[offset] = (OperandStack) (os.clone());
  }
Sets the stack for the instruction at the specified offset to a copy of the information in the
given frame.

@param offset the offset at which the instruction appears
@param f the stack frame to use for the instruction