/** * Constructs an instance which is a copy of another. * * @param toCopy {@code non-null;} instance to copy. */ private LocalsArraySet(LocalsArraySet toCopy) { super(toCopy.getMaxLocals() > 0); primary = toCopy.primary.copy(); secondaries = new ArrayList(toCopy.secondaries.size()); int sz = toCopy.secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArray la = toCopy.secondaries.get(i); if (la == null) { secondaries.add(null); } else { secondaries.add(la.copy()); } } }
/** * Constructs an instance which is a copy of another. * * @param toCopy {@code non-null;} instance to copy. */ private LocalsArraySet(LocalsArraySet toCopy) { super(toCopy.getMaxLocals() > 0); primary = toCopy.primary.copy(); secondaries = new ArrayList(toCopy.secondaries.size()); int sz = toCopy.secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArray la = toCopy.secondaries.get(i); if (la == null) { secondaries.add(null); } else { secondaries.add(la.copy()); } } }
/** * Constructs an instance which is a copy of another. * * @param toCopy {@code non-null;} instance to copy. */ private LocalsArraySet(LocalsArraySet toCopy) { super(toCopy.getMaxLocals() > 0); primary = toCopy.primary.copy(); secondaries = new ArrayList(toCopy.secondaries.size()); int sz = toCopy.secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArray la = toCopy.secondaries.get(i); if (la == null) { secondaries.add(null); } else { secondaries.add(la.copy()); } } }
/** * Constructs an instance which is a copy of another. * * @param toCopy {@code non-null;} instance to copy. */ private LocalsArraySet(LocalsArraySet toCopy) { super(toCopy.getMaxLocals() > 0); primary = toCopy.primary.copy(); secondaries = new ArrayList(toCopy.secondaries.size()); int sz = toCopy.secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArray la = toCopy.secondaries.get(i); if (la == null) { secondaries.add(null); } else { secondaries.add(la.copy()); } } }
/** * Constructs an instance which is a copy of another. * * @param toCopy {@code non-null;} instance to copy. */ private LocalsArraySet(LocalsArraySet toCopy) { super(toCopy.getMaxLocals() > 0); primary = toCopy.primary.copy(); secondaries = new ArrayList(toCopy.secondaries.size()); int sz = toCopy.secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArray la = toCopy.secondaries.get(i); if (la == null) { secondaries.add(null); } else { secondaries.add(la.copy()); } } }
/** * Constructs an instance which is a copy of another. * * @param toCopy {@code non-null;} instance to copy. */ private LocalsArraySet(LocalsArraySet toCopy) { super(toCopy.getMaxLocals() > 0); primary = toCopy.primary.copy(); secondaries = new ArrayList(toCopy.secondaries.size()); int sz = toCopy.secondaries.size(); for (int i = 0; i < sz; i++) { LocalsArray la = toCopy.secondaries.get(i); if (la == null) { secondaries.add(null); } else { secondaries.add(la.copy()); } } }
/** * Makes and returns a mutable copy of this instance. The copy * contains copies of the locals and stack (that is, it doesn't * share them with the original). * * @return {@code non-null;} the copy */ public Frame copy() { return new Frame(locals.copy(), stack.copy(), subroutines); }
/** * Makes and returns a mutable copy of this instance. The copy * contains copies of the locals and stack (that is, it doesn't * share them with the original). * * @return {@code non-null;} the copy */ public Frame copy() { return new Frame(locals.copy(), stack.copy(), subroutines); }
/** * Makes and returns a mutable copy of this instance. The copy * contains copies of the locals and stack (that is, it doesn't * share them with the original). * * @return {@code non-null;} the copy */ public Frame copy() { return new Frame(locals.copy(), stack.copy(), subroutines); }
/** * Makes and returns a mutable copy of this instance. The copy * contains copies of the locals and stack (that is, it doesn't * share them with the original). * * @return {@code non-null;} the copy */ public Frame copy() { return new Frame(locals.copy(), stack.copy(), subroutines); }
/** * Makes and returns a mutable copy of this instance. The copy * contains copies of the locals and stack (that is, it doesn't * share them with the original). * * @return {@code non-null;} the copy */ public Frame copy() { return new Frame(locals.copy(), stack.copy(), subroutines); }
/** * Makes and returns a mutable copy of this instance. The copy * contains copies of the locals and stack (that is, it doesn't * share them with the original). * * @return {@code non-null;} the copy */ public Frame copy() { return new Frame(locals.copy(), stack.copy(), subroutines); }