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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddebugPrint(PrintWriter out, String prefix) Does a human-friendly dump of this instance.voidEncodes the handler lists.intGets the size of the tries list, in entries.intGets the write size of this instance, in bytes.voidwriteTo(DexFile file, AnnotatedOutput out) Writes this instance to the given stream.
-
Constructor Details
-
CatchStructs
Constructs an instance.- Parameters:
code-non-null;code that contains the catches
-
-
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
-