Package ghidra.app.util.viewer.util
Class InMemoryOpenCloseManager
java.lang.Object
ghidra.app.util.viewer.util.InMemoryOpenCloseManager
- All Implemented Interfaces:
OpenCloseManager
Class to maintain a simple open close/state for address locations. The default open/close
state can be set and then a set of address is kept for the locations that are the opposite
of the default.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the state at the given address to be "closed".voidcloseAll()Sets all address to "closed" (Makes "closed" the default state and clears all individual settings.booleanChecks if the state is "open" for the given address.booleanChecks if the default state is "open".voidSets the state at the given address to be "open".voidopenAll()Sets all address to "open" (Makes "open" the default state and clears all individual settings.
-
Constructor Details
-
InMemoryOpenCloseManager
public InMemoryOpenCloseManager()
-
-
Method Details
-
isOpen
Description copied from interface:OpenCloseManagerChecks if the state is "open" for the given address.- Specified by:
isOpenin interfaceOpenCloseManager- Parameters:
address- the address to test- Returns:
- true if the state of the given address is "open"
-
open
Description copied from interface:OpenCloseManagerSets the state at the given address to be "open".- Specified by:
openin interfaceOpenCloseManager- Parameters:
address- the address to set "open"
-
close
Description copied from interface:OpenCloseManagerSets the state at the given address to be "closed".- Specified by:
closein interfaceOpenCloseManager- Parameters:
address- the address to set "closed"
-
isOpenByDefault
public boolean isOpenByDefault()Description copied from interface:OpenCloseManagerChecks if the default state is "open".- Specified by:
isOpenByDefaultin interfaceOpenCloseManager- Returns:
- true if the default state for addresses is "open"
-
openAll
public void openAll()Description copied from interface:OpenCloseManagerSets all address to "open" (Makes "open" the default state and clears all individual settings.- Specified by:
openAllin interfaceOpenCloseManager
-
closeAll
public void closeAll()Description copied from interface:OpenCloseManagerSets all address to "closed" (Makes "closed" the default state and clears all individual settings.- Specified by:
closeAllin interfaceOpenCloseManager
-