Class LocalList.MakeState

java.lang.Object
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 Details

    • MakeState

      public MakeState(int initialSize)
      Constructs an instance.
  • Method Details

    • 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