com.android.dx.dex.code
Class LocalList.MakeState

java.lang.Object
  extended by com.android.dx.dex.code.LocalList.MakeState
Enclosing class:
LocalList

public static class LocalList.MakeState
extends Object

Intermediate state when constructing a local list.


Constructor Summary
LocalList.MakeState(int initialSize)
          Constructs an instance.
 
Method Summary
 void endLocal(int address, RegisterSpec endedLocal)
          Ends a local at the given address, using the disposition END_SIMPLY.
 void endLocal(int address, RegisterSpec endedLocal, LocalList.Disposition disposition)
          Ends a local at the given address.
 LocalList 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalList.MakeState

public LocalList.MakeState(int initialSize)
Constructs an instance.

Method Detail

snapshot

public void snapshot(int address,
                     RegisterSpecSet specs)
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 address
specs - non-null; spec set representing the locals

startLocal

public void startLocal(int address,
                       RegisterSpec startedLocal)
Starts a local at the given address.

Parameters:
address - >= 0; the address
startedLocal - non-null; spec representing the started local

endLocal

public void endLocal(int address,
                     RegisterSpec endedLocal)
Ends a local at the given address, using the disposition END_SIMPLY.

Parameters:
address - >= 0; the address
endedLocal - non-null; spec representing the local being ended

endLocal

public void endLocal(int address,
                     RegisterSpec endedLocal,
                     LocalList.Disposition disposition)
Ends a local at the given address.

Parameters:
address - >= 0; the address
endedLocal - non-null; spec representing the local being ended
disposition - reason for the end

finish

public LocalList finish()
Finishes processing altogether and gets the result.

Returns:
non-null; the result list


Copyright © 2013. All Rights Reserved.