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 Summary

  Constructors
  Constructor
  Description
  `WordLocation(String context, String word, int start)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static WordLocation`
  `empty(String context)`
  `String`
  `getContext()`
  `int`
  `getStart()`
  `String`
  `getWord()`
  `boolean`
  `isEmpty()`
  `String`
  `toString()`

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

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

- ## 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`