code structure in a .dex file.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | DalvCode.
Class used as a callback for |
| Modifier and Type | Field and Description |
|---|---|
| private CatchTable | catches
|
| private DalvInsnList | insns
|
| private LocalList | locals
|
| private final int | positionInfo
how much position info to preserve; one of the static
constants in |
| private PositionList | positions
|
| private CatchBuilder | unprocessedCatches
|
| private OutputFinisher | unprocessedInsns
|
| Access | Constructor and Description |
|---|---|
| public | DalvCode(int
how much position info to preserve; one of the
static constants in positionInfo, OutputFinisher PositionListnon-null; the instruction list, ready
for final processingnon-null; unprocessed catch
(exception handler) tableConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | assignIndices(DalvCode.
non-null; callback objectAssign indices in all instructions that need them, using the given callback to perform lookups. |
| private void | |
| public CatchTable | |
| public HashSet | Returns: non-null; the set of catch typesGets the set of catch types handled anywhere in the code. |
| public HashSet | Returns: non-null; the set of constantsGets the set of all constants referred to by instructions in the code. |
| public DalvInsnList | |
| public LocalList | |
| public PositionList | |
| public boolean | Returns: whether this instance has any catches at allGets whether this instance has any catches at all (either typed or catch-all). |
| public boolean | Returns: true iff this instance has any local variable
data to representGets whether this instance has any local variable data to represent. |
| public boolean | Returns: true iff this instance has any position
data to representGets whether this instance has any position data to represent. |
| catches | back to summary |
|---|---|
| private CatchTable catches
| |
| insns | back to summary |
|---|---|
| private DalvInsnList insns
| |
| locals | back to summary |
|---|---|
| private LocalList locals
| |
| positionInfo | back to summary |
|---|---|
| private final int positionInfo how much position info to preserve; one of the static
constants in | |
| positions | back to summary |
|---|---|
| private PositionList positions
| |
| unprocessedCatches | back to summary |
|---|---|
| private CatchBuilder unprocessedCatches
| |
| unprocessedInsns | back to summary |
|---|---|
| private OutputFinisher unprocessedInsns
| |
| DalvCode | back to summary |
|---|---|
| public DalvCode(int positionInfo, OutputFinisher unprocessedInsns, CatchBuilder unprocessedCatches) Constructs an instance.
| |
| assignIndices | back to summary |
|---|---|
| public void assignIndices(DalvCode. Assign indices in all instructions that need them, using the
given callback to perform lookups. This must be called before
| |
| finishProcessingIfNecessary | back to summary |
|---|---|
| private void finishProcessingIfNecessary() Finish up processing of the method. | |
| getCatches | back to summary |
|---|---|
| public CatchTable getCatches() Gets the catch (exception handler) table.
| |
| getCatchTypes | back to summary |
|---|---|
| public HashSet Gets the set of catch types handled anywhere in the code. | |
| getInsnConstants | back to summary |
|---|---|
| public HashSet Gets the set of all constants referred to by instructions in the code. | |
| getInsns | back to summary |
|---|---|
| public DalvInsnList getInsns() Gets the list of instructions.
| |
| getLocals | back to summary |
|---|---|
| public LocalList getLocals() Gets the source positions list.
| |
| getPositions | back to summary |
|---|---|
| public PositionList getPositions() Gets the source positions list.
| |
| hasAnyCatches | back to summary |
|---|---|
| public boolean hasAnyCatches() Gets whether this instance has any catches at all (either typed or catch-all).
| |
| hasLocals | back to summary |
|---|---|
| public boolean hasLocals() Gets whether this instance has any local variable data to represent.
| |
| hasPositions | back to summary |
|---|---|
| public boolean hasPositions() Gets whether this instance has any position data to represent.
| |
assignIndices.
| Modifier and Type | Method and Description |
|---|---|
| public int |
| getIndex | back to summary |
|---|---|
| public int getIndex(Constant cst) Gets the index for the given constant.
| |