public class Match extends Object implements Locator
The GNU Lesser General Public License for details.
Modifier and Type | Field and Description |
---|---|
private int |
loc
The location in text to focus the search.
|
private Locator |
locator
The strategy for locating a best match.
|
private String |
pattern
The pattern to find in the text.
|
private String |
text
The text to search.
|
Constructor and Description |
---|
Match() |
Match(String text,
String pattern,
int loc)
Locate the best instance of 'pattern' in 'text' near 'loc'.
|
Modifier and Type | Method and Description |
---|---|
int |
locate()
Locate the best instance of 'pattern' in 'text' near 'loc'.
|
int |
maxPatternLength()
The maximum length a pattern can be.
|
private String text
private String pattern
private int loc
private Locator locator
public int maxPatternLength()
Locator
maxPatternLength
in interface Locator