/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** * Gets the size of the tries list, in entries. * * @return {@code >= 0;} the tries list size */ public int triesSize() { finishProcessingIfNecessary(); return table.size(); }
/** {@inheritDoc} */ @Override public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ @Override public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** {@inheritDoc} */ public int compareTo(CatchTable other) { if (this == other) { // Easy out. return 0; } int thisSize = size(); int otherSize = other.size(); int checkSize = Math.min(thisSize, otherSize); for (int i = 0; i < checkSize; i++) { Entry thisEntry = get(i); Entry otherEntry = other.get(i); int compare = thisEntry.compareTo(otherEntry); if (compare != 0) { return compare; } } if (thisSize < otherSize) { return -1; } else if (thisSize > otherSize) { return 1; } return 0; }
/** * Adds all exception types. */ private static void processCatchTable(CatchTable catchTable, Map<String, Set<String>> dependencies) { if (catchTable.size() == 0) { return; } for (int i= 0; i < catchTable.size(); ++i) { Entry entry= catchTable.get(i); CatchHandlerList catchHandlers= entry.getHandlers(); for (int j= 0; j < catchHandlers.size(); ++j) { // TODO: Do we need these? Shouldn't they be handled by code, if // accessed? // dependencies.add(catchHandlers.get(j).getExceptionType().toHuman()); } } }
/** * Writes this instance to the given stream. * * @param file {@code non-null;} file this instance is part of * @param out {@code non-null;} where to write to */ public void writeTo(DexFile file, AnnotatedOutput out) { finishProcessingIfNecessary(); if (out.annotates()) { annotateEntries(" ", null, out); } int tableSize = table.size(); for (int i = 0; i < tableSize; i++) { CatchTable.Entry one = table.get(i); int start = one.getStart(); int end = one.getEnd(); int insnCount = end - start; if (insnCount >= 65536) { throw new UnsupportedOperationException( "bogus exception range: " + Hex.u4(start) + ".." + Hex.u4(end)); } out.writeInt(start); out.writeShort(insnCount); out.writeShort(handlerOffsets.get(one.getHandlers())); } out.write(encodedHandlers); }
/** * Writes this instance to the given stream. * * @param file {@code non-null;} file this instance is part of * @param out {@code non-null;} where to write to */ public void writeTo(DexFile file, AnnotatedOutput out) { finishProcessingIfNecessary(); if (out.annotates()) { annotateEntries(" ", null, out); } int tableSize = table.size(); for (int i = 0; i < tableSize; i++) { CatchTable.Entry one = table.get(i); int start = one.getStart(); int end = one.getEnd(); int insnCount = end - start; if (insnCount >= 65536) { throw new UnsupportedOperationException( "bogus exception range: " + Hex.u4(start) + ".." + Hex.u4(end)); } out.writeInt(start); out.writeShort(insnCount); out.writeShort(handlerOffsets.get(one.getHandlers())); } out.write(encodedHandlers); }
/** * Writes this instance to the given stream. * * @param file {@code non-null;} file this instance is part of * @param out {@code non-null;} where to write to */ public void writeTo(DexFile file, AnnotatedOutput out) { finishProcessingIfNecessary(); if (out.annotates()) { annotateEntries(" ", null, out); } int tableSize = table.size(); for (int i = 0; i < tableSize; i++) { CatchTable.Entry one = table.get(i); int start = one.getStart(); int end = one.getEnd(); int insnCount = end - start; if (insnCount >= 65536) { throw new UnsupportedOperationException( "bogus exception range: " + Hex.u4(start) + ".." + Hex.u4(end)); } out.writeInt(start); out.writeShort(insnCount); out.writeShort(handlerOffsets.get(one.getHandlers())); } out.write(encodedHandlers); }