Package org.jf.dexlib2.writer.builder
Class BuilderExceptionHandler
java.lang.Object
org.jf.dexlib2.base.BaseExceptionHandler
org.jf.dexlib2.writer.builder.BuilderExceptionHandler
- All Implemented Interfaces:
Comparable<ExceptionHandler>,ExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BuilderTypeReference(package private) final intFields inherited from class org.jf.dexlib2.base.BaseExceptionHandler
BY_EXCEPTION -
Constructor Summary
ConstructorsConstructorDescriptionBuilderExceptionHandler(BuilderTypeReference exceptionType, int handlerCodeAddress) -
Method Summary
Modifier and TypeMethodDescriptionGets the type of exception that is handled by this handler.intGets the code offset of the handler.Methods inherited from class org.jf.dexlib2.base.BaseExceptionHandler
compareTo, equals, getExceptionTypeReference, hashCode
-
Field Details
-
exceptionType
-
handlerCodeAddress
final int handlerCodeAddress
-
-
Constructor Details
-
BuilderExceptionHandler
BuilderExceptionHandler(@Nullable BuilderTypeReference exceptionType, int handlerCodeAddress)
-
-
Method Details
-
getExceptionType
Description copied from interface:ExceptionHandlerGets the type of exception that is handled by this handler.- Returns:
- The type of exception that is handled by this handler, or null if this is a catch-all handler.
-
getHandlerCodeAddress
public int getHandlerCodeAddress()Description copied from interface:ExceptionHandlerGets the code offset of the handler.- Returns:
- The offset of the handler from the the beginning of the bytecode for the method. The offset will be in terms of 16-bit code units
-