Interface IDExceptionHandler
public interface IDExceptionHandler
dexdec
exception handler definition.-
Method Summary
Modifier and TypeMethodDescriptionint
Get the handler's code address.int
Get the type of exceptions checked by this catch handler.boolean
Determine whether this handler is a catch-all.boolean
isCatchAll
(IDMethodContext ctx, boolean onlyTrueCatchAll) Determine whether this handler is a catch-all.boolean
isTyped()
Determine whether the handler is typed or not.void
setAddress
(int address) void
setTypeIndex
(int typeIndex) Update the type index.
-
Method Details
-
getTypeIndex
int getTypeIndex()Get the type of exceptions checked by this catch handler.- Returns:
- underlying dex type index, of -1 if the catch handler is untyped
-
setTypeIndex
void setTypeIndex(int typeIndex) Update the type index.- Parameters:
typeIndex
- underlying dex type index
-
isTyped
boolean isTyped()Determine whether the handler is typed or not.- Returns:
-
getAddress
int getAddress()Get the handler's code address.- Returns:
- the address in bytes
-
setAddress
void setAddress(int address) -
isCatchAll
Determine whether this handler is a catch-all. Untyped handlers or handlers typed to catchjava.lang.Throwable
are considered catch-all.- Parameters:
ctx
-- Returns:
-
isCatchAll
Determine whether this handler is a catch-all. Untyped handlers or handlers typed to catchjava.lang.Throwable
may be considered catch-all.- Parameters:
ctx
-onlyTrueCatchAll
- if true, only untyped handlers are considered catch-all- Returns:
-