Class StdCatchBuilder
java.lang.Object
com.android.dx.dex.code.StdCatchBuilder
- All Implemented Interfaces:
CatchBuilder
Constructor of
CatchTable instances from RopMethod
and associated data.-
Constructor Summary
ConstructorsConstructorDescriptionStdCatchBuilder(RopMethod method, int[] order, BlockAddresses addresses) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the catch table for this instance.static CatchTablebuild(RopMethod method, int[] order, BlockAddresses addresses) Builds and returns the catch table for a given method.Gets the set of catch types associated with this instance.booleanGets whether this instance has any catches at all (either typed or catch-all).
-
Constructor Details
-
StdCatchBuilder
Constructs an instance. It merely holds onto its parameters for a subsequent call tobuild().- Parameters:
method-non-null;method to build the list fororder-non-null;block output orderaddresses-non-null;address objects for each block
-
-
Method Details
-
build
Builds and returns the catch table for this instance.- Specified by:
buildin interfaceCatchBuilder- Returns:
non-null;the constructed table
-
hasAnyCatches
public boolean hasAnyCatches()Gets whether this instance has any catches at all (either typed or catch-all).- Specified by:
hasAnyCatchesin interfaceCatchBuilder- Returns:
- whether this instance has any catches at all
-
getCatchTypes
Gets the set of catch types associated with this instance.- Specified by:
getCatchTypesin interfaceCatchBuilder- Returns:
non-null;the set of catch types
-
build
Builds and returns the catch table for a given method.- Parameters:
method-non-null;method to build the list fororder-non-null;block output orderaddresses-non-null;address objects for each block- Returns:
non-null;the constructed table
-