Package com.android.dx.dex.code
Class LocalList.MakeState
java.lang.Object
com.android.dx.dex.code.LocalList.MakeState
- Enclosing class:
LocalList
Intermediate state when constructing a local list.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
endLocal
(int address, RegisterSpec endedLocal) Ends a local at the given address, using the dispositionEND_SIMPLY
.void
endLocal
(int address, RegisterSpec endedLocal, LocalList.Disposition disposition) Ends a local at the given address.finish()
Finishes processing altogether and gets the result.void
snapshot
(int address, RegisterSpecSet specs) Sets the local state at the given address to the given snapshot.void
startLocal
(int address, RegisterSpec startedLocal) Starts a local at the given address.
-
Constructor Details
-
MakeState
public MakeState(int initialSize) Constructs an instance.
-
-
Method Details
-
snapshot
Sets the local state at the given address to the given snapshot. The first call on this instance must be to this method, so that the register state can be properly sized.- Parameters:
address
->= 0;
the addressspecs
-non-null;
spec set representing the locals
-
startLocal
Starts a local at the given address.- Parameters:
address
->= 0;
the addressstartedLocal
-non-null;
spec representing the started local
-
endLocal
Ends a local at the given address, using the dispositionEND_SIMPLY
.- Parameters:
address
->= 0;
the addressendedLocal
-non-null;
spec representing the local being ended
-
endLocal
Ends a local at the given address.- Parameters:
address
->= 0;
the addressendedLocal
-non-null;
spec representing the local being endeddisposition
- reason for the end
-
finish
Finishes processing altogether and gets the result.- Returns:
non-null;
the result list
-