|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.swabunga.spell.event.AbstractWordFinder
com.swabunga.spell.event.JavaWordFinder
public class JavaWordFinder
A word finder Java source files, which searches text for sequences of letters formated as Java comments.
Field Summary |
---|
Fields inherited from class com.swabunga.spell.event.AbstractWordFinder |
---|
currentWord, nextWord, sentenceIterator, startsSentence, text |
Constructor Summary | |
---|---|
JavaWordFinder()
Creates a new JavaWordFinder object. |
|
JavaWordFinder(java.lang.String inText)
Creates a new JavaWordFinder object. |
Method Summary | |
---|---|
protected void |
init()
Initializes this word finder |
Word |
next()
This method scans the text from the end of the last word, and returns a new Word object corresponding to the next word. |
Methods inherited from class com.swabunga.spell.event.AbstractWordFinder |
---|
current, getText, hasNext, ignore, ignore, ignore, ignore, isWordChar, isWordChar, replace, setSentenceIterator, setText, startsSentence, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaWordFinder(java.lang.String inText)
inText
- the String to searchpublic JavaWordFinder()
Method Detail |
---|
public Word next()
next
in interface WordFinder
next
in class AbstractWordFinder
WordNotFoundException
- search string contains no more words.protected void init()
init
in class AbstractWordFinder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |