Class PersistentOpenCloseManager

java.lang.Object
ghidra.app.util.viewer.util.PersistentOpenCloseManager
All Implemented Interfaces:
OpenCloseManager

public class PersistentOpenCloseManager extends Object implements OpenCloseManager
Address based open/close management that uses the ProgramUserData to persist the open/close state for that address. Currently used for persisting the open/close state of functions in the listing.
  • Constructor Details

  • Method Details

    • isOpen

      public boolean isOpen(Address address)
      Description copied from interface: OpenCloseManager
      Checks if the state is "open" for the given address.
      Specified by:
      isOpen in interface OpenCloseManager
      Parameters:
      address - the address to test
      Returns:
      true if the state of the given address is "open"
    • open

      public void open(Address address)
      Description copied from interface: OpenCloseManager
      Sets the state at the given address to be "open".
      Specified by:
      open in interface OpenCloseManager
      Parameters:
      address - the address to set "open"
    • close

      public void close(Address address)
      Description copied from interface: OpenCloseManager
      Sets the state at the given address to be "closed".
      Specified by:
      close in interface OpenCloseManager
      Parameters:
      address - the address to set "closed"
    • isOpenByDefault

      public boolean isOpenByDefault()
      Description copied from interface: OpenCloseManager
      Checks if the default state is "open".
      Specified by:
      isOpenByDefault in interface OpenCloseManager
      Returns:
      true if the default state for addresses is "open"
    • openAll

      public void openAll()
      Description copied from interface: OpenCloseManager
      Sets all address to "open" (Makes "open" the default state and clears all individual settings.
      Specified by:
      openAll in interface OpenCloseManager
    • closeAll

      public void closeAll()
      Description copied from interface: OpenCloseManager
      Sets all address to "closed" (Makes "closed" the default state and clears all individual settings.
      Specified by:
      closeAll in interface OpenCloseManager