Package ghidra.features.base.memsearch.gui

# Class MemoryMatchHighlighter

java.lang.Object
ghidra.features.base.memsearch.gui.MemoryMatchHighlighter

All Implemented Interfaces:
  `ListingHighlightProvider`

public class MemoryMatchHighlighter extends Object implements ListingHighlightProvider
Listing highlight provider to highlight memory search results.

- ## Field Summary

  ### Fields inherited from interface ghidra.app.util.ListingHighlightProvider

  `NO_HIGHLIGHTS`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MemoryMatchHighlighter(Navigatable navigatable, MemoryMatchTableModel model, MemorySearchOptions options)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Highlight[]`
  `createHighlights(String text, ListingField field, int cursorTextOffset)`
  Get the highlights appropriate for the given text

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MemoryMatchHighlighter

    public MemoryMatchHighlighter(Navigatable navigatable, MemoryMatchTableModel model, MemorySearchOptions options)

- ## Method Details

  - ### createHighlights

    public Highlight[] createHighlights(String text, ListingField field, int cursorTextOffset)
    Description copied from interface: `ListingHighlightProvider`
    Get the highlights appropriate for the given text
    Specified by:
      `createHighlights` in interface `ListingHighlightProvider`
    Parameters:
      `text` - the entire text contained in the field, regardless of layout.
      `field` - the field being rendered. From this field you can get the field factory and the proxy object, which is usually a `CodeUnit`.
      `cursorTextOffset` - the cursor position within the given text or -1 if no cursor in this field.
    Returns:
      an array of highlight objects that indicate the location within the text string to be highlighted.