org.eclipse.xtext.ui.editor.model
Class CommonWordIterator
java.lang.Object
com.ibm.icu.text.BreakIterator
org.eclipse.xtext.ui.editor.model.CommonWordIterator
- All Implemented Interfaces:
- java.lang.Cloneable
public class CommonWordIterator
- extends com.ibm.icu.text.BreakIterator
Copied from org.eclipse.jdt.internal.ui.text.JavaWordIterator
.
Fields inherited from class com.ibm.icu.text.BreakIterator |
DONE, KIND_CHARACTER, KIND_LINE, KIND_SENTENCE, KIND_TITLE, KIND_WORD |
Method Summary |
protected CommonBreakIterator |
createIteratorDelegate(boolean camelCase)
|
int |
current()
|
protected boolean |
eatFollowingWhitespace(int offset,
int exclusiveEnd)
|
int |
first()
|
int |
following(int offset)
|
java.text.CharacterIterator |
getText()
|
protected boolean |
isDelimiter(int offset,
int exclusiveEnd)
Returns true if the given sequence into the underlying text represents a delimiter,
false otherwise. |
protected boolean |
isWhitespace(int offset,
int exclusiveEnd)
Returns true if the given sequence into the underlying text represents whitespace, but not a
delimiter, false otherwise. |
int |
last()
|
int |
next()
|
int |
next(int n)
|
int |
preceding(int offset)
|
int |
previous()
|
void |
setText(java.text.CharacterIterator newText)
|
void |
setText(java.lang.CharSequence newText)
Sets the text as CharSequence . |
void |
setText(java.lang.String newText)
|
Methods inherited from class com.ibm.icu.text.BreakIterator |
clone, getAvailableLocales, getAvailableULocales, getBreakInstance, getCharacterInstance, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getLineInstance, getLocale, getSentenceInstance, getSentenceInstance, getSentenceInstance, getTitleInstance, getTitleInstance, getTitleInstance, getWordInstance, getWordInstance, getWordInstance, isBoundary, registerInstance, registerInstance, unregister |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonWordIterator
public CommonWordIterator(boolean camelCase)
- Creates a new word iterator.
createIteratorDelegate
protected CommonBreakIterator createIteratorDelegate(boolean camelCase)
first
public int first()
- Specified by:
first
in class com.ibm.icu.text.BreakIterator
last
public int last()
- Specified by:
last
in class com.ibm.icu.text.BreakIterator
next
public int next(int n)
- Specified by:
next
in class com.ibm.icu.text.BreakIterator
next
public int next()
- Specified by:
next
in class com.ibm.icu.text.BreakIterator
previous
public int previous()
- Specified by:
previous
in class com.ibm.icu.text.BreakIterator
preceding
public int preceding(int offset)
- Overrides:
preceding
in class com.ibm.icu.text.BreakIterator
following
public int following(int offset)
- Specified by:
following
in class com.ibm.icu.text.BreakIterator
eatFollowingWhitespace
protected boolean eatFollowingWhitespace(int offset,
int exclusiveEnd)
isDelimiter
protected boolean isDelimiter(int offset,
int exclusiveEnd)
- Returns
true
if the given sequence into the underlying text represents a delimiter,
false
otherwise.
- Parameters:
offset
- the offsetexclusiveEnd
- the end offset
- Returns:
true
if the given range is a delimiter
isWhitespace
protected boolean isWhitespace(int offset,
int exclusiveEnd)
- Returns
true
if the given sequence into the underlying text represents whitespace, but not a
delimiter, false
otherwise.
- Parameters:
offset
- the offsetexclusiveEnd
- the end offset
- Returns:
true
if the given range is whitespace
current
public int current()
- Specified by:
current
in class com.ibm.icu.text.BreakIterator
getText
public java.text.CharacterIterator getText()
- Specified by:
getText
in class com.ibm.icu.text.BreakIterator
setText
public void setText(java.lang.CharSequence newText)
- Sets the text as
CharSequence
.
- Parameters:
newText
- the new text
setText
public void setText(java.text.CharacterIterator newText)
- Specified by:
setText
in class com.ibm.icu.text.BreakIterator
setText
public void setText(java.lang.String newText)
- Overrides:
setText
in class com.ibm.icu.text.BreakIterator