public final class DalvCode
extends java.lang.Object
code structure in a .dex file.| Modifier and Type | Class and Description |
|---|---|
static interface |
DalvCode.AssignIndicesCallback
Class used as a callback for
assignIndices(com.android.dx.dex.code.DalvCode.AssignIndicesCallback). |
| Constructor and Description |
|---|
DalvCode(int positionInfo,
OutputFinisher unprocessedInsns,
CatchBuilder unprocessedCatches)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignIndices(DalvCode.AssignIndicesCallback callback)
Assign indices in all instructions that need them, using the
given callback to perform lookups.
|
CatchTable |
getCatches()
Gets the catch (exception handler) table.
|
java.util.HashSet<Type> |
getCatchTypes()
Gets the set of catch types handled anywhere in the code.
|
java.util.HashSet<Constant> |
getInsnConstants()
Gets the set of all constants referred to by instructions in
the code.
|
DalvInsnList |
getInsns()
Gets the list of instructions.
|
LocalList |
getLocals()
Gets the source positions list.
|
PositionList |
getPositions()
Gets the source positions list.
|
boolean |
hasAnyCatches()
Gets whether this instance has any catches at all (either typed
or catch-all).
|
boolean |
hasLocals()
Gets whether this instance has any local variable data to represent.
|
boolean |
hasPositions()
Gets whether this instance has any position data to represent.
|
public DalvCode(int positionInfo,
OutputFinisher unprocessedInsns,
CatchBuilder unprocessedCatches)
positionInfo - how much position info to preserve; one of the
static constants in PositionListunprocessedInsns - non-null; the instruction list, ready
for final processingunprocessedCatches - non-null; unprocessed catch
(exception handler) tablepublic void assignIndices(DalvCode.AssignIndicesCallback callback)
getInsns().callback - non-null; callback objectpublic boolean hasPositions()
true iff this instance has any position
data to representpublic boolean hasLocals()
true iff this instance has any local variable
data to representpublic boolean hasAnyCatches()
public java.util.HashSet<Type> getCatchTypes()
non-null; the set of catch typespublic java.util.HashSet<Constant> getInsnConstants()
non-null; the set of constantspublic DalvInsnList getInsns()
non-null; the instruction listpublic CatchTable getCatches()
non-null; the catch tablepublic PositionList getPositions()
non-null; the source positions listpublic LocalList getLocals()
non-null; the source positions listCopyright © 2020. All Rights Reserved.