entryElement.setAttribute("end", String.valueOf(entry.getEnd())); CatchHandlerList catchHandlers= entry.getHandlers(); for (int j= 0; j < catchHandlers.size(); ++j)
CatchHandlerList handlers = entry.getHandlers(); String s1 = subPrefix + "try " + Hex.u2or4(entry.getStart()) + ".." + Hex.u2or4(entry.getEnd());
CatchHandlerList handlers = entry.getHandlers(); String s1 = subPrefix + "try " + Hex.u2or4(entry.getStart()) + ".." + Hex.u2or4(entry.getEnd());
CatchHandlerList handlers = entry.getHandlers(); String s1 = subPrefix + "try " + Hex.u2or4(entry.getStart()) + ".." + Hex.u2or4(entry.getEnd());
handlerOffsets.put(table.get(i).getHandlers(), null);
handlerOffsets.put(table.get(i).getHandlers(), null);
handlerOffsets.put(table.get(i).getHandlers(), null);
handlerOffsets.put(table.get(i).getHandlers(), null);
handlerOffsets.put(table.get(i).getHandlers(), null);
handlerOffsets.put(table.get(i).getHandlers(), null);
CatchHandlerList handlers= catches.get(i).getHandlers(); for (int j= 0; j < handlers.size(); ++j)
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }