com.swabunga.spell.event
public class TeXWordFinder extends AbstractWordFinder
Field Summary | |
---|---|
static int | REG_EXPR
A type where regular expressions are used to define expression to ignore |
static int | STRING_EXPR
A type where string expressions are used to define expression to ignore |
Constructor Summary | |
---|---|
TeXWordFinder(String inText)
Creates a new DefaultWordFinder object.
| |
TeXWordFinder()
Creates a new DefaultWordFinder object. |
Method Summary | |
---|---|
void | addUserDefinedIgnores(Collection expressions, int regex)
This method is used to import a user defined set of either strings or regular expressions to ignore. |
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.
|
void | setIgnoreComments(boolean ignore)
Define if comments contents are ignored during spell checking |
Parameters: inText the text to search.
Parameters: expressions a collection of Objects whose toString() value should be the expression. Typically String objects. regex is an integer specifying the type of expression to use. e.g. REG_EXPR, STRING_EXPR.
Returns: the next word.
Throws: WordNotFoundException search string contains no more words.
Parameters: ignore an indication if comments content is to be ignored