Package ghidra.util.search.trie
Class SearchResult<P,T>
- java.lang.Object
-
- ghidra.util.search.trie.SearchResult<P,T>
-
- Type Parameters:
P- the position typeT- the client item type
public class SearchResult<P,T> extends java.lang.ObjectA search result container class used with ByteTrie.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetItem()Returns the user item stored in this terminal node at add time.ByteTrieNodeIfc<T>getNode()Returns the (terminal) node that was encountered in the searchPgetPosition()Returns the position at which the byte sequence was found.java.lang.StringtoString()
-
-
-
Method Detail
-
getNode
public ByteTrieNodeIfc<T> getNode()
Returns the (terminal) node that was encountered in the search- Returns:
- the node
-
getPosition
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
public T getItem()
Returns the user item stored in this terminal node at add time.- Returns:
- the user item
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-