/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
/** * Returns a rop-style catches list equivalent to this one. * * @return {@code non-null;} the converted instance */ public TypeList toRopCatchList() { int sz = size(); if (sz == 0) { return StdTypeList.EMPTY; } StdTypeList result = new StdTypeList(sz); for (int i = 0; i < sz; i++) { result.set(i, get(i).getExceptionClass().getClassType()); } result.setImmutable(); return result; }
result.add(get(i).getHandlerPc());
result.add(get(i).getHandlerPc());
result.add(get(i).getHandlerPc());
/** * 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; }
ByteCatchList.Item item = catches.get(i); int start = item.getStartPc(); int end = item.getEndPc();
ByteCatchList.Item item = catches.get(i); int start = item.getStartPc(); int end = item.getEndPc();
ByteCatchList.Item item = catches.get(i); int start = item.getStartPc(); int end = item.getEndPc();
ByteCatchList.Item item = catches.get(i); int start = item.getStartPc(); int end = item.getEndPc();
ByteCatchList.Item item = catches.get(i); int start = item.getStartPc(); int end = item.getEndPc();