Class ListingModelConverter

java.lang.Object
ghidra.app.util.viewer.multilisting.ListingModelConverter
All Implemented Interfaces:
ListingModel

public class ListingModelConverter extends Object implements ListingModel
  • Constructor Details Link icon

    • ListingModelConverter Link icon

      public ListingModelConverter(ListingModel primaryModel, ListingModel model)
      Converts addresses from the primary model into addresses for this converters model.
      Parameters:
      primaryModel - the primary model
      model - this converter's model
  • Method Details Link icon

    • addListener Link icon

      public void addListener(ListingModelListener listener)
      Specified by:
      addListener in interface ListingModel
    • dispose Link icon

      public void dispose()
      Specified by:
      dispose in interface ListingModel
    • getAddressAfter Link icon

      public Address getAddressAfter(Address primaryModelAddress)
      Specified by:
      getAddressAfter in interface ListingModel
    • getAddressBefore Link icon

      public Address getAddressBefore(Address primaryModelAddress)
      Specified by:
      getAddressBefore in interface ListingModel
    • getAddressSet Link icon

      public AddressSetView getAddressSet()
      Specified by:
      getAddressSet in interface ListingModel
    • getLayout Link icon

      public Layout getLayout(Address primaryAddress, boolean isGapAddress)
      Specified by:
      getLayout in interface ListingModel
    • getMaxWidth Link icon

      public int getMaxWidth()
      Specified by:
      getMaxWidth in interface ListingModel
    • getProgram Link icon

      public Program getProgram()
      Specified by:
      getProgram in interface ListingModel
    • isClosed Link icon

      public boolean isClosed()
      Specified by:
      isClosed in interface ListingModel
    • isOpen Link icon

      public boolean isOpen(Data data)
      Description copied from interface: ListingModel
      Returns true if the data is open
      Specified by:
      isOpen in interface ListingModel
      Parameters:
      data - the data to check
      Returns:
      true if the data is open
    • openData Link icon

      public boolean openData(Data data)
      Description copied from interface: ListingModel
      Opens the given data, but not any sub-components.
      Specified by:
      openData in interface ListingModel
      Parameters:
      data - the data to open
      Returns:
      true if the data was opened (will return false if the data is already open or has no children)
    • openAllData Link icon

      public void openAllData(Data data, TaskMonitor monitor)
      Description copied from interface: ListingModel
      Recursively open the given data and its sub-components.
      Specified by:
      openAllData in interface ListingModel
      Parameters:
      data - the data to open
      monitor - the task monitor
    • openAllData Link icon

      public void openAllData(AddressSetView addresses, TaskMonitor monitor)
      Description copied from interface: ListingModel
      Opens all data found within the given addresses. Each data is fully opened.
      Specified by:
      openAllData in interface ListingModel
      Parameters:
      addresses - the range of addresses to search for data
      monitor - the task monitor
    • closeData Link icon

      public void closeData(Data data)
      Description copied from interface: ListingModel
      Closes the given data, but not any sub-components.
      Specified by:
      closeData in interface ListingModel
      Parameters:
      data - the data to close
    • closeAllData Link icon

      public void closeAllData(Data data, TaskMonitor monitor)
      Description copied from interface: ListingModel
      Recursively close the given data and its sub-components.
      Specified by:
      closeAllData in interface ListingModel
      Parameters:
      data - the data to close
      monitor - the task monitor
    • closeAllData Link icon

      public void closeAllData(AddressSetView addresses, TaskMonitor monitor)
      Description copied from interface: ListingModel
      Closes all data found within the given addresses. Each data is fully closed.
      Specified by:
      closeAllData in interface ListingModel
      Parameters:
      addresses - the range of addresses to search for data
      monitor - the task monitor
    • removeListener Link icon

      public void removeListener(ListingModelListener listener)
      Specified by:
      removeListener in interface ListingModel
    • setFormatManager Link icon

      public void setFormatManager(FormatManager formatManager)
      Specified by:
      setFormatManager in interface ListingModel
    • toggleOpen Link icon

      public void toggleOpen(Data data)
      Description copied from interface: ListingModel
      Changes the open state of the given data (open -> closes; closed-> open).
      Specified by:
      toggleOpen in interface ListingModel
      Parameters:
      data - the data to open
    • adjustAddressSetToCodeUnitBoundaries Link icon

      public AddressSet adjustAddressSetToCodeUnitBoundaries(AddressSet addressSet)
      Specified by:
      adjustAddressSetToCodeUnitBoundaries in interface ListingModel
    • setAddressTranslator Link icon

      public void setAddressTranslator(AddressTranslator translator)
      Sets an address translator for this converter. If provided the translator converts addresses from the primary program to those in the program for this converter's model.
      Parameters:
      translator - translates addresses between the primary model and this converter's model
    • copy Link icon

      public ListingModel copy()
      Description copied from interface: ListingModel
      Makes a copy of this model.
      Specified by:
      copy in interface ListingModel
      Returns:
      a copy of this model.