Package com.android.dx.dex.file
Class CatchStructs
java.lang.Object
com.android.dx.dex.file.CatchStructs
List of exception handlers (tuples of covered range, catch type,
handler address) for a particular piece of code. Instances of this
class correspond to a
try_item[]
and a
catch_handler_item[]
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
debugPrint
(PrintWriter out, String prefix) Does a human-friendly dump of this instance.void
Encodes the handler lists.int
Gets the size of the tries list, in entries.int
Gets the write size of this instance, in bytes.void
writeTo
(DexFile file, AnnotatedOutput out) Writes this instance to the given stream.
-
Constructor Details
-
Method Details
-
triesSize
public int triesSize()Gets the size of the tries list, in entries.- Returns:
>= 0;
the tries list size
-
debugPrint
Does a human-friendly dump of this instance.- Parameters:
out
-non-null;
where to dumpprefix
-non-null;
prefix to attach to each line of output
-
encode
Encodes the handler lists.- Parameters:
file
-non-null;
file this instance is part of
-
writeSize
public int writeSize()Gets the write size of this instance, in bytes.- Returns:
>= 0;
the write size
-
writeTo
Writes this instance to the given stream.- Parameters:
file
-non-null;
file this instance is part ofout
-non-null;
where to write to
-