Package ghidra.util
Class WordLocation
- java.lang.Object
-
- ghidra.util.WordLocation
-
public class WordLocation extends java.lang.Object
A simple object that represents a word as defined byStringUtilities.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(java.lang.String context, java.lang.String word, int start)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WordLocation
empty(java.lang.String context)
java.lang.String
getContext()
int
getStart()
java.lang.String
getWord()
boolean
isEmpty()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
-