Package ghidra.util

Class WordLocation


  • public class WordLocation
    extends java.lang.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 Detail

      • WordLocation

        public WordLocation​(java.lang.String context,
                            java.lang.String word,
                            int start)
    • Method Detail

      • empty

        public static WordLocation empty​(java.lang.String context)
      • isEmpty

        public boolean isEmpty()
      • getContext

        public java.lang.String getContext()
      • getWord

        public java.lang.String getWord()
      • getStart

        public int getStart()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object