|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.editor.language.NaturalWordLocator
public final class NaturalWordLocator
The NaturalWordLocator implementation that locates
word boundaries on the JDK's BreakIterator for
natural language boundaries.
WordLocator| Constructor Summary | |
|---|---|
NaturalWordLocator(LanguageSupport support)
Constructs a new NaturalWordLocator. |
|
| Method Summary | |
|---|---|
int |
getNextWordEnd(int offset)
Fetches the next offset where a word ends. |
int |
getNextWordStart(int offset)
Fetches the next offset where a word starts from. |
int |
getPreviousWordEnd(int offset)
Fetches the previous offset where a word ends. |
int |
getPreviousWordStart(int offset)
Fetches the previous offset where a word starts from. |
int |
getWordEnd(int offset)
Fetches the end of the word for the given offset location. |
int |
getWordStart(int offset)
Fetches the start of the word for the given offset location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NaturalWordLocator(LanguageSupport support)
support - the language support and document this locator is used for| Method Detail |
|---|
public int getWordStart(int offset)
getWordStart in interface WordLocatoroffset - the specified document offset
public int getWordEnd(int offset)
getWordEnd in interface WordLocatoroffset - the specified document offset
public int getNextWordStart(int offset)
getNextWordStart in interface WordLocatoroffset - the specified document offset
public int getNextWordEnd(int offset)
getNextWordEnd in interface WordLocatoroffset - the specified document offset
public int getPreviousWordStart(int offset)
getPreviousWordStart in interface WordLocatoroffset - the specified document offset
public int getPreviousWordEnd(int offset)
getPreviousWordEnd in interface WordLocatoroffset - the specified document offset
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||