public class ImmutableMethodImplementation extends java.lang.Object implements MethodImplementation
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableList<? extends ImmutableDebugItem> |
debugItems |
protected com.google.common.collect.ImmutableList<? extends ImmutableInstruction> |
instructions |
protected int |
registerCount |
protected com.google.common.collect.ImmutableList<? extends ImmutableTryBlock> |
tryBlocks |
| Constructor and Description |
|---|
ImmutableMethodImplementation(int registerCount,
com.google.common.collect.ImmutableList<? extends ImmutableInstruction> instructions,
com.google.common.collect.ImmutableList<? extends ImmutableTryBlock> tryBlocks,
com.google.common.collect.ImmutableList<? extends ImmutableDebugItem> debugItems) |
ImmutableMethodImplementation(int registerCount,
java.lang.Iterable<? extends Instruction> instructions,
java.util.List<? extends TryBlock<? extends ExceptionHandler>> tryBlocks,
java.lang.Iterable<? extends DebugItem> debugItems) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableList<? extends ImmutableDebugItem> |
getDebugItems()
Get a list of debug items for this method.
|
com.google.common.collect.ImmutableList<? extends ImmutableInstruction> |
getInstructions()
Gets the instructions in this method.
|
int |
getRegisterCount()
Gets the number of registers in this method.
|
com.google.common.collect.ImmutableList<? extends ImmutableTryBlock> |
getTryBlocks()
Gets a list of the try blocks defined for this method.
|
static ImmutableMethodImplementation |
of(MethodImplementation methodImplementation) |
protected final int registerCount
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableInstruction> instructions
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableTryBlock> tryBlocks
@Nonnull protected final com.google.common.collect.ImmutableList<? extends ImmutableDebugItem> debugItems
public ImmutableMethodImplementation(int registerCount,
@Nullable
java.lang.Iterable<? extends Instruction> instructions,
@Nullable
java.util.List<? extends TryBlock<? extends ExceptionHandler>> tryBlocks,
@Nullable
java.lang.Iterable<? extends DebugItem> debugItems)
public ImmutableMethodImplementation(int registerCount,
@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableInstruction> instructions,
@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableTryBlock> tryBlocks,
@Nullable
com.google.common.collect.ImmutableList<? extends ImmutableDebugItem> debugItems)
@Nullable public static ImmutableMethodImplementation of(@Nullable MethodImplementation methodImplementation)
public int getRegisterCount()
MethodImplementationgetRegisterCount in interface MethodImplementation@Nonnull public com.google.common.collect.ImmutableList<? extends ImmutableInstruction> getInstructions()
MethodImplementationgetInstructions in interface MethodImplementation@Nonnull public com.google.common.collect.ImmutableList<? extends ImmutableTryBlock> getTryBlocks()
MethodImplementationgetTryBlocks in interface MethodImplementation@Nonnull public com.google.common.collect.ImmutableList<? extends ImmutableDebugItem> getDebugItems()
MethodImplementationgetDebugItems in interface MethodImplementation