public class ImmutableTryBlock extends BaseTryBlock<ImmutableExceptionHandler>
| Modifier and Type | Field and Description |
|---|---|
protected int |
codeUnitCount |
protected com.google.common.collect.ImmutableList<? extends ImmutableExceptionHandler> |
exceptionHandlers |
protected int |
startCodeAddress |
| Constructor and Description |
|---|
ImmutableTryBlock(int startCodeAddress,
int codeUnitCount,
com.google.common.collect.ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) |
ImmutableTryBlock(int startCodeAddress,
int codeUnitCount,
java.util.List<? extends ExceptionHandler> exceptionHandlers) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCodeUnitCount()
Gets the number of code units covered by this try block.
|
com.google.common.collect.ImmutableList<? extends ImmutableExceptionHandler> |
getExceptionHandlers()
A list of the exception handlers associated with this try block.
|
int |
getStartCodeAddress()
Gets the code offset of the start of this try block.
|
static com.google.common.collect.ImmutableList<ImmutableTryBlock> |
immutableListOf(java.util.List<? extends TryBlock<? extends ExceptionHandler>> list) |
static ImmutableTryBlock |
of(TryBlock<? extends ExceptionHandler> tryBlock) |
equalsprotected final int startCodeAddress
protected final int codeUnitCount
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers
public ImmutableTryBlock(int startCodeAddress,
int codeUnitCount,
@Nullable
java.util.List<? extends ExceptionHandler> exceptionHandlers)
public ImmutableTryBlock(int startCodeAddress,
int codeUnitCount,
@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers)
public static ImmutableTryBlock of(TryBlock<? extends ExceptionHandler> tryBlock)
public int getStartCodeAddress()
TryBlockpublic int getCodeUnitCount()
TryBlock@Nonnull public com.google.common.collect.ImmutableList<? extends ImmutableExceptionHandler> getExceptionHandlers()
TryBlock@Nonnull public static com.google.common.collect.ImmutableList<ImmutableTryBlock> immutableListOf(@Nullable java.util.List<? extends TryBlock<? extends ExceptionHandler>> list)