public abstract class SearchMatcher
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | SearchMatcher.Match | 
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.String | noWordSepThis should contains the noWordSep property of the edit mode of your buffer. | 
| protected SearchMatcher.Match | returnValue | 
| protected boolean | wholeWordtrue if this SearchMatcher search for whole words only. | 
| Constructor and Description | 
|---|
| SearchMatcher() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | isWholeWord(java.lang.CharSequence text,
           int start,
           int end)Check if the result is a whole word | 
| abstract SearchMatcher.Match | nextMatch(java.lang.CharSequence text,
         boolean start,
         boolean end,
         boolean firstTime,
         boolean reverse)Returns the offset of the first match of the specified text
 within this matcher. | 
| void | setNoWordSep(java.lang.String noWordSep) | 
protected SearchMatcher.Match returnValue
protected boolean wholeWord
protected java.lang.String noWordSep
public abstract SearchMatcher.Match nextMatch(java.lang.CharSequence text, boolean start, boolean end, boolean firstTime, boolean reverse) throws java.lang.InterruptedException
text - The text to search instart - True if the start of the text is the beginning of a lineend - True if the end of the text is the end of a linefirstTime - If false and the search string matched at the start
 offset with length zero, automatically find next matchreverse - If true, searching will be performed in a backward
 direction.SearchMatcher.Match object.java.lang.InterruptedExceptionpublic void setNoWordSep(java.lang.String noWordSep)
noWordSep - the chars that are considered as word chars for this searchprotected boolean isWholeWord(java.lang.CharSequence text,
                              int start,
                              int end)
text - the full text searchstart - the start matchend - the end match