|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WordLocator
The WordLocator
interface provides the methods for
allowing each language to define its own word boundaries for
word-based navigation. For example, in the natural language, text
like "it's" or "1.0" forms an entire word, while in Java, text like
"java.lang.String" forms three separate words.
Note that these methods all bias to the right currently. This may be an issue for bi-directional languages that needs to be resolved at some point.
LanguageModule
,
LanguageSupport
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. |
Method Detail |
---|
int getWordStart(int offset)
offset
- the specified document offset
int getWordEnd(int offset)
offset
- the specified document offset
int getNextWordStart(int offset)
offset
- the specified document offset
int getNextWordEnd(int offset)
offset
- the specified document offset
int getPreviousWordStart(int offset)
offset
- the specified document offset
int getPreviousWordEnd(int offset)
offset
- the specified document offset
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |