当前页面: 
在线文档首页 > 
NetBeans API Javadoc (Current Development Version)
FinderFactory.CharArrayFwdFinder (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor
Class FinderFactory.CharArrayFwdFinder
java.lang.Object
  
org.netbeans.editor.FinderFactory.AbstractFinder
      
org.netbeans.editor.FinderFactory.GenericFwdFinder
          
org.netbeans.editor.FinderFactory.CharArrayFwdFinder
- All Implemented Interfaces: 
 - Finder
 
- Enclosing class:
 - FinderFactory
 
public static class FinderFactory.CharArrayFwdFinder
- extends FinderFactory.GenericFwdFinder
 
Searches for anyone of the specified chars in forward direction.
 
 
 
| 
Method Summary | 
 char | 
getFoundChar()
 
            | 
protected  int | 
scan(char ch,
     boolean lastChar)
 
          This function decides if it found a desired string or not. | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
FinderFactory.CharArrayFwdFinder
public FinderFactory.CharArrayFwdFinder(char[] searchChars)
scan
protected int scan(char ch,
                   boolean lastChar)
- Description copied from class: 
FinderFactory.GenericFwdFinder 
- This function decides if it found a desired string or not.
 The function receives currently searched character and flag if it's
 the last one that is searched or not.
- Specified by:
 scan in class FinderFactory.GenericFwdFinder
 
- Returns:
 - if the function decides that
 it found a desired string it sets 
found = true and returns
 how many characters back the searched string begins in forward
 direction (0 stands for current character).
 For example if the function looks for word 'yes' and it gets
 's' as parameter it sets found = true and returns -2.
 If the string is not yet found it returns how many characters it should go
 in forward direction (in this case it would usually be 1).
 The next searched character will be that one requested. 
 
 
getFoundChar
public char getFoundChar()