|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectghm.follow.search.SearchEngine
public class SearchEngine
Searches through text based on flags passed at time of search.
| Field Summary | |
|---|---|
static int |
CASE_SENSITIVE
|
static int |
REGEX
|
| Constructor Summary | |
|---|---|
SearchEngine(int flags)
Constructor for search text and tracking display elements for results list |
|
| Method Summary | |
|---|---|
protected java.util.List<WordResult> |
regexSearch(java.util.regex.Pattern p,
java.lang.String text)
Searches text using the provided PatternThanks to prec in #regex for correcting the use of Matcher. |
java.util.List<WordResult> |
search(java.lang.String term,
java.lang.String text)
Search for term. |
protected java.util.List<WordResult> |
textSearch(java.lang.String term,
java.lang.String text)
Searches text for term by performing a simple text search. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CASE_SENSITIVE
public static final int REGEX
| Constructor Detail |
|---|
public SearchEngine(int flags)
textPane - | Method Detail |
|---|
public java.util.List<WordResult> search(java.lang.String term,
java.lang.String text)
term. Use the constants of this class for flags.
term -
protected java.util.List<WordResult> textSearch(java.lang.String term,
java.lang.String text)
text for term by performing a simple text search.
term - text -
protected java.util.List<WordResult> regexSearch(java.util.regex.Pattern p,
java.lang.String text)
text using the provided Pattern
p - text -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||