|
Extension SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.editor.language.DefaultWordLocator
The DefaultWordLocator
implementation that locates
word boundaries based on the Java Language Specification rules
for what characters are valid in a Java identifier.
WordLocator
Constructor Summary | |
DefaultWordLocator(LanguageSupport support)
Constructs a new DefaultWordLocator. |
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 DefaultWordLocator(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.