Package org.jf.dexlib2.immutable
Class ImmutableExceptionHandler
java.lang.Object
org.jf.dexlib2.base.BaseExceptionHandler
org.jf.dexlib2.immutable.ImmutableExceptionHandler
- All Implemented Interfaces:
Comparable<ExceptionHandler>,ExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ImmutableConverter<ImmutableExceptionHandler, ExceptionHandler> protected final Stringprotected final intFields inherited from class org.jf.dexlib2.base.BaseExceptionHandler
BY_EXCEPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the type of exception that is handled by this handler.intGets the code offset of the handler.static com.google.common.collect.ImmutableList<ImmutableExceptionHandler> immutableListOf(Iterable<? extends ExceptionHandler> list) static ImmutableExceptionHandlerof(ExceptionHandler exceptionHandler) Methods inherited from class org.jf.dexlib2.base.BaseExceptionHandler
compareTo, equals, getExceptionTypeReference, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jf.dexlib2.iface.ExceptionHandler
compareTo, equals, getExceptionTypeReference, hashCode
-
Field Details
-
exceptionType
-
handlerCodeAddress
protected final int handlerCodeAddress -
CONVERTER
-
-
Constructor Details
-
ImmutableExceptionHandler
-
-
Method Details
-
of
-
getExceptionType
Description copied from interface:ExceptionHandlerGets the type of exception that is handled by this handler.- Specified by:
getExceptionTypein interfaceExceptionHandler- 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.- Specified by:
getHandlerCodeAddressin interfaceExceptionHandler- 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
-
immutableListOf
@Nonnull public static com.google.common.collect.ImmutableList<ImmutableExceptionHandler> immutableListOf(@Nullable Iterable<? extends ExceptionHandler> list)
-