/** * Gets the list of items active at the given address. The result is * automatically made immutable. * * @param pc which address * @return {@code non-null;} list of exception handlers active at * {@code pc} */ public ByteCatchList listFor(int pc) { int sz = size(); Item[] resultArr = new Item[sz]; int resultSz = 0; for (int i = 0; i < sz; i++) { Item one = get(i); if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { resultArr[resultSz] = one; resultSz++; } } if (resultSz == 0) { return EMPTY; } ByteCatchList result = new ByteCatchList(resultSz); for (int i = 0; i < resultSz; i++) { result.set(i, resultArr[i]); } result.setImmutable(); return result; }
/** * Gets the list of items active at the given address. The result is * automatically made immutable. * * @param pc which address * @return {@code non-null;} list of exception handlers active at * {@code pc} */ public ByteCatchList listFor(int pc) { int sz = size(); Item[] resultArr = new Item[sz]; int resultSz = 0; for (int i = 0; i < sz; i++) { Item one = get(i); if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { resultArr[resultSz] = one; resultSz++; } } if (resultSz == 0) { return EMPTY; } ByteCatchList result = new ByteCatchList(resultSz); for (int i = 0; i < resultSz; i++) { result.set(i, resultArr[i]); } result.setImmutable(); return result; }
/** * Gets the list of items active at the given address. The result is * automatically made immutable. * * @param pc which address * @return {@code non-null;} list of exception handlers active at * {@code pc} */ public ByteCatchList listFor(int pc) { int sz = size(); Item[] resultArr = new Item[sz]; int resultSz = 0; for (int i = 0; i < sz; i++) { Item one = get(i); if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { resultArr[resultSz] = one; resultSz++; } } if (resultSz == 0) { return EMPTY; } ByteCatchList result = new ByteCatchList(resultSz); for (int i = 0; i < resultSz; i++) { result.set(i, resultArr[i]); } result.setImmutable(); return result; }
/** * Gets the list of items active at the given address. The result is * automatically made immutable. * * @param pc which address * @return {@code non-null;} list of exception handlers active at * {@code pc} */ public ByteCatchList listFor(int pc) { int sz = size(); Item[] resultArr = new Item[sz]; int resultSz = 0; for (int i = 0; i < sz; i++) { Item one = get(i); if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { resultArr[resultSz] = one; resultSz++; } } if (resultSz == 0) { return EMPTY; } ByteCatchList result = new ByteCatchList(resultSz); for (int i = 0; i < resultSz; i++) { result.set(i, resultArr[i]); } result.setImmutable(); return result; }
/** * Gets the list of items active at the given address. The result is * automatically made immutable. * * @param pc which address * @return {@code non-null;} list of exception handlers active at * {@code pc} */ public ByteCatchList listFor(int pc) { int sz = size(); Item[] resultArr = new Item[sz]; int resultSz = 0; for (int i = 0; i < sz; i++) { Item one = get(i); if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { resultArr[resultSz] = one; resultSz++; } } if (resultSz == 0) { return EMPTY; } ByteCatchList result = new ByteCatchList(resultSz); for (int i = 0; i < resultSz; i++) { result.set(i, resultArr[i]); } result.setImmutable(); return result; }
/** * Gets the list of items active at the given address. The result is * automatically made immutable. * * @param pc which address * @return {@code non-null;} list of exception handlers active at * {@code pc} */ public ByteCatchList listFor(int pc) { int sz = size(); Item[] resultArr = new Item[sz]; int resultSz = 0; for (int i = 0; i < sz; i++) { Item one = get(i); if (one.covers(pc) && typeNotFound(one, resultArr, resultSz)) { resultArr[resultSz] = one; resultSz++; } } if (resultSz == 0) { return EMPTY; } ByteCatchList result = new ByteCatchList(resultSz); for (int i = 0; i < resultSz; i++) { result.set(i, resultArr[i]); } result.setImmutable(); return result; }
int catchTypeIdx = bytes.getUnsignedShort(offset + 6); CstType catchType = (CstType) pool.get0Ok(catchTypeIdx); catches.set(i, startPc, endPc, handlerPc, catchType); if (observer != null) { observer.parsed(bytes, offset, 8,
int catchTypeIdx = bytes.getUnsignedShort(offset + 6); CstType catchType = (CstType) pool.get0Ok(catchTypeIdx); catches.set(i, startPc, endPc, handlerPc, catchType); if (observer != null) { observer.parsed(bytes, offset, 8,
int catchTypeIdx = bytes.getUnsignedShort(offset + 6); CstType catchType = (CstType) pool.get0Ok(catchTypeIdx); catches.set(i, startPc, endPc, handlerPc, catchType); if (observer != null) { observer.parsed(bytes, offset, 8,
int catchTypeIdx = bytes.getUnsignedShort(offset + 6); CstType catchType = (CstType) pool.get0Ok(catchTypeIdx); catches.set(i, startPc, endPc, handlerPc, catchType); if (observer != null) { observer.parsed(bytes, offset, 8,
int catchTypeIdx = bytes.getUnsignedShort(offset + 6); CstType catchType = (CstType) pool.get0Ok(catchTypeIdx); catches.set(i, startPc, endPc, handlerPc, catchType); if (observer != null) { observer.parsed(bytes, offset, 8,
int catchTypeIdx = bytes.getUnsignedShort(offset + 6); CstType catchType = (CstType) pool.get0Ok(catchTypeIdx); catches.set(i, startPc, endPc, handlerPc, catchType); if (observer != null) { observer.parsed(bytes, offset, 8,