For IntelliJ IDEA,

Android Studio or Eclipse

- Common ways to obtain RegisterSpecSet

private void myMethod () {RegisterSpecSet r =

- new RegisterSpecSet(maxSize)
- LocalVariableInfo localVariableInfo;BasicBlock block;localVariableInfo.getStarts(block)
- LocalVariableInfo localVariableInfo;localVariableInfo.mutableCopyOfStarts(label)
- Smart code suggestions by Codota
}

/** * Returns an instance that is identical to this one, except that * all register numbers are offset by the given amount. Mutability * of the result is inherited from the original. * * @param delta the amount to offset the register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpecSet withOffset(int delta) { int len = specs.length; RegisterSpecSet result = new RegisterSpecSet(len + delta); for (int i = 0; i < len; i++) { RegisterSpec spec = specs[i]; if (spec != null) { result.put(spec.withOffset(delta)); } } result.size = size; if (isImmutable()) { result.setImmutable(); } return result; }

/** * Returns an instance that is identical to this one, except that * all register numbers are offset by the given amount. Mutability * of the result is inherited from the original. * * @param delta the amount to offset the register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpecSet withOffset(int delta) { int len = specs.length; RegisterSpecSet result = new RegisterSpecSet(len + delta); for (int i = 0; i < len; i++) { RegisterSpec spec = specs[i]; if (spec != null) { result.put(spec.withOffset(delta)); } } result.size = size; if (isImmutable()) { result.setImmutable(); } return result; }

/** * Returns an instance that is identical to this one, except that * all register numbers are offset by the given amount. Mutability * of the result is inherited from the original. * * @param delta the amount to offset the register numbers by * @return {@code non-null;} an appropriately-constructed instance */ public RegisterSpecSet withOffset(int delta) { int len = specs.length; RegisterSpecSet result = new RegisterSpecSet(len + delta); for (int i = 0; i < len; i++) { RegisterSpec spec = specs[i]; if (spec != null) { result.put(spec.withOffset(delta)); } } result.size = size; if (isImmutable()) { result.setImmutable(); } return result; }