try_item[] and a
catch_handler_item[].
| Modifier and Type | Field and Description |
|---|---|
| private final DalvCode | code
|
| private int | encodedHandlerHeaderSize
length of the handlers header (encoded size), if known; used for annotation |
| private byte[] | encodedHandlers
|
| private TreeMap | handlerOffsets
|
| private CatchTable | table
|
| private static final int | TRY_ITEM_WRITE_SIZE
the size of a |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | annotateAndConsumeHandlers(CatchHandlerList
non-null; handlers to annotate>= 0; the offset of this handler>= 1; the number of bytes the handlers consumenon-null; prefix for each linenull-ok; where to print tonon-null; where to annotate toHelper for |
| private void | annotateEntries(String
non-null; prefix for each linenull-ok; where to print tonull-ok; where to consume bytes and annotate toHelper method to annotate or simply print the exception handlers. |
| public void | debugPrint(PrintWriter
non-null; where to dumpnon-null; prefix to attach to each line of outputDoes a human-friendly dump of this instance. |
| public void | |
| private void | |
| public int | |
| public int | |
| public void | writeTo(DexFile
non-null; file this instance is part ofnon-null; where to write toWrites this instance to the given stream. |
| code | back to summary |
|---|---|
| private final DalvCode code
| |
| encodedHandlerHeaderSize | back to summary |
|---|---|
| private int encodedHandlerHeaderSize length of the handlers header (encoded size), if known; used for annotation | |
| encodedHandlers | back to summary |
|---|---|
| private byte[] encodedHandlers
| |
| handlerOffsets | back to summary |
|---|---|
| private TreeMap<CatchHandlerList, Integer> handlerOffsets
| |
| table | back to summary |
|---|---|
| private CatchTable table
| |
| TRY_ITEM_WRITE_SIZE | back to summary |
|---|---|
| private static final int TRY_ITEM_WRITE_SIZE the size of a | |
| CatchStructs | back to summary |
|---|---|
| public CatchStructs(DalvCode code) Constructs an instance.
| |
| annotateAndConsumeHandlers | back to summary |
|---|---|
| private static void annotateAndConsumeHandlers(CatchHandlerList handlers, int offset, int size, String prefix, PrintWriter printTo, AnnotatedOutput annotateTo) Helper for
| |
| annotateEntries | back to summary |
|---|---|
| private void annotateEntries(String prefix, PrintWriter printTo, AnnotatedOutput annotateTo) Helper method to annotate or simply print the exception handlers.
Only one of
| |
| debugPrint | back to summary |
|---|---|
| public void debugPrint(PrintWriter out, String prefix) Does a human-friendly dump of this instance.
| |
| encode | back to summary |
|---|---|
| public void encode(DexFile file) Encodes the handler lists.
| |
| finishProcessingIfNecessary | back to summary |
|---|---|
| private void finishProcessingIfNecessary() Finish processing the catches, if necessary. | |
| triesSize | back to summary |
|---|---|
| public int triesSize() Gets the size of the tries list, in entries.
| |
| writeSize | back to summary |
|---|---|
| public int writeSize() Gets the write size of this instance, in bytes.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(DexFile file, AnnotatedOutput out) Writes this instance to the given stream.
| |