Class SearchResult<P,T>

java.lang.Object
ghidra.util.search.trie.SearchResult<P,T>
Type Parameters:
P - the position type
T - the client item type

public class SearchResult<P,T> extends Object
A search result container class used with ByteTrie.
  • Method Details Link icon

    • getNode Link icon

      public ByteTrieNodeIfc<T> getNode()
      Returns the (terminal) node that was encountered in the search
      Returns:
      the node
    • getPosition Link icon

      public P getPosition()
      Returns the position at which the byte sequence was found. Currently ByteTrie will use Integer for search byte arrays, and Address for searching Memory in a Program.
      Returns:
      the position at which the byte sequence was found
    • getItem Link icon

      public T getItem()
      Returns the user item stored in this terminal node at add time.
      Returns:
      the user item
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object