Package ghidra.util

Class WordLocation

java.lang.Object
ghidra.util.WordLocation

public class WordLocation extends Object
A simple object that represents a word as defined by StringUtilities.findWord(String, int). This class contains the position of the word within the original context from whence it came.
  • Constructor Details

    • WordLocation

      public WordLocation(String context, String word, int start)
  • Method Details

    • empty

      public static WordLocation empty(String context)
    • isEmpty

      public boolean isEmpty()
    • getContext

      public String getContext()
    • getWord

      public String getWord()
    • getStart

      public int getStart()
    • toString

      public String toString()
      Overrides:
      toString in class Object