Package org.jf.dexlib2.immutable
Class ImmutableExceptionHandler
- java.lang.Object
-
- org.jf.dexlib2.base.BaseExceptionHandler
-
- org.jf.dexlib2.immutable.ImmutableExceptionHandler
-
- All Implemented Interfaces:
java.lang.Comparable<ExceptionHandler>,ExceptionHandler
public class ImmutableExceptionHandler extends BaseExceptionHandler implements ExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexceptionTypeprotected inthandlerCodeAddress-
Fields inherited from class org.jf.dexlib2.base.BaseExceptionHandler
BY_EXCEPTION
-
-
Constructor Summary
Constructors Constructor Description ImmutableExceptionHandler(java.lang.String exceptionType, int handlerCodeAddress)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExceptionType()Gets the type of exception that is handled by this handler.intgetHandlerCodeAddress()Gets the code offset of the handler.static com.google.common.collect.ImmutableList<ImmutableExceptionHandler>immutableListOf(java.lang.Iterable<? extends ExceptionHandler> list)static ImmutableExceptionHandlerof(ExceptionHandler exceptionHandler)-
Methods inherited from class org.jf.dexlib2.base.BaseExceptionHandler
compareTo, equals, getExceptionTypeReference, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jf.dexlib2.iface.ExceptionHandler
compareTo, equals, getExceptionTypeReference, hashCode
-
-
-
-
Method Detail
-
of
public static ImmutableExceptionHandler of(ExceptionHandler exceptionHandler)
-
getExceptionType
@Nullable public java.lang.String 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 java.lang.Iterable<? extends ExceptionHandler> list)
-
-