|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.dex.code.DalvCode
public final class DalvCode
Container for all the pieces of a concrete method. Each instance
corresponds to a code structure in a .dex file.
| Nested Class Summary | |
|---|---|
static interface |
DalvCode.AssignIndicesCallback
Class used as a callback for assignIndices(com.android.dx.dex.code.DalvCode.AssignIndicesCallback). |
| Constructor Summary | |
|---|---|
DalvCode(int positionInfo,
OutputFinisher unprocessedInsns,
CatchBuilder unprocessedCatches)
Constructs an instance. |
|
| Method Summary | |
|---|---|
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. |
HashSet<Type> |
getCatchTypes()
Gets the set of catch types handled anywhere in the code. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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) table| Method Detail |
|---|
public 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 HashSet<Type> getCatchTypes()
non-null; the set of catch typespublic 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 list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||