public class WordIterator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_LENGTH_OF_WORD |
| Constructor and Description |
|---|
WordIterator(String text,
Set<String> wordsWithPunct) |
WordIterator(Text text,
Set<String> wordsWithPunct) |
| Modifier and Type | Method and Description |
|---|---|
static BowStringImpl |
findWord(Text text,
int startOfSearch,
Direction direction,
boolean allowPossibleWordChars) |
static BowStringImpl |
findWord(Text text,
int startOfSearch,
Direction direction,
Set<String> wordsWithPunct) |
boolean |
hasNext() |
static boolean |
isNonWordChar(char c,
boolean allowPossibleWordChars) |
BowStringImpl |
next() |
void |
reset() |
public static final int MAX_LENGTH_OF_WORD
public static BowStringImpl findWord(Text text, int startOfSearch, Direction direction, Set<String> wordsWithPunct)
public static BowStringImpl findWord(Text text, int startOfSearch, Direction direction, boolean allowPossibleWordChars)
public static boolean isNonWordChar(char c,
boolean allowPossibleWordChars)
public boolean hasNext()
public BowStringImpl next()
public void reset()
Copyright © 2015. All rights reserved.