|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.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 forMethod Detail |
---|
public int getWordStart(int offset)
getWordStart
in interface WordLocator
offset
- the specified document offsetpublic int getWordEnd(int offset)
getWordEnd
in interface WordLocator
offset
- the specified document offsetpublic int getNextWordStart(int offset)
getNextWordStart
in interface WordLocator
offset
- the specified document offsetpublic int getNextWordEnd(int offset)
getNextWordEnd
in interface WordLocator
offset
- the specified document offsetpublic int getPreviousWordStart(int offset)
getPreviousWordStart
in interface WordLocator
offset
- the specified document offsetpublic int getPreviousWordEnd(int offset)
getPreviousWordEnd
in interface WordLocator
offset
- the specified document offset
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |