/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Gets the element at the given index. It is an error to call * this with the index for an element which was never set; if you * do that, this will throw {@code NullPointerException}. * * @param n {@code >= 0, < size();} which index * @return {@code non-null;} element at that index */ public BasicBlock get(int n) { return (BasicBlock) get0(n); }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }
/** * Returns an instance that is identical to this one, except that * the registers in each instruction are offset by the given * amount. Mutability of the result is inherited from the * original. * * @param delta the amount to offset register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public BasicBlockList withRegisterOffset(int delta) { int sz = size(); BasicBlockList result = new BasicBlockList(sz); for (int i = 0; i < sz; i++) { BasicBlock one = (BasicBlock) get0(i); if (one != null) { result.set(i, one.withRegisterOffset(delta)); } } if (isImmutable()) { result.setImmutable(); } return result; }