|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.editor.language.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 offset
public int getWordEnd(int offset)
getWordEnd
in interface WordLocator
offset
- the specified document offset
public int getNextWordStart(int offset)
getNextWordStart
in interface WordLocator
offset
- the specified document offset
public int getNextWordEnd(int offset)
getNextWordEnd
in interface WordLocator
offset
- the specified document offset
public int getPreviousWordStart(int offset)
getPreviousWordStart
in interface WordLocator
offset
- the specified document offset
public int getPreviousWordEnd(int offset)
getPreviousWordEnd
in interface WordLocator
offset
- the specified document offset
|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright ©1997, 2003, Oracle. All rights reserved.