Package com.android.dx.dex.code
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
ConstructorDescriptionStdCatchBuilder
(RopMethod method, int[] order, BlockAddresses addresses) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the catch table for this instance.static CatchTable
build
(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.boolean
Gets 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:
build
in 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:
hasAnyCatches
in interfaceCatchBuilder
- Returns:
- whether this instance has any catches at all
-
getCatchTypes
Gets the set of catch types associated with this instance.- Specified by:
getCatchTypes
in 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
-