|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.icu.text.BreakIterator org.eclipse.xtext.ui.editor.model.CommonWordIterator
public class CommonWordIterator
Copied from org.eclipse.jdt.internal.ui.text.JavaWordIterator
.
JavaWordIterator
Field Summary |
---|
Fields inherited from class com.ibm.icu.text.BreakIterator |
---|
DONE, KIND_CHARACTER, KIND_LINE, KIND_SENTENCE, KIND_TITLE, KIND_WORD |
Constructor Summary | |
---|---|
CommonWordIterator(boolean camelCase)
Creates a new word iterator. |
Method Summary | |
---|---|
protected CommonBreakIterator |
createIteratorDelegate(boolean camelCase)
|
int |
current()
Return the iterator's current position. |
protected boolean |
eatFollowingWhitespace(int offset,
int exclusiveEnd)
|
int |
first()
Return the first boundary position. |
int |
following(int offset)
Sets the iterator's current iteration position to be the first boundary position following the specified position. |
java.text.CharacterIterator |
getText()
Returns a CharacterIterator over the text being analyzed. |
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()
Return the last boundary position. |
int |
next()
Advances the iterator forward one boundary. |
int |
next(int n)
Advances the specified number of steps forward in the text (a negative number, therefore, advances backwards). |
int |
preceding(int offset)
Sets the iterator's current iteration position to be the last boundary position preceding the specified position. |
int |
previous()
Advances the iterator backward one boundary. |
void |
setText(java.text.CharacterIterator newText)
Sets the iterator to analyze a new piece of text. |
void |
setText(java.lang.CharSequence newText)
Sets the text as CharSequence . |
void |
setText(java.lang.String newText)
Sets the iterator to analyze a new piece of text. |
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 |
Constructor Detail |
---|
public CommonWordIterator(boolean camelCase)
Method Detail |
---|
protected CommonBreakIterator createIteratorDelegate(boolean camelCase)
public int first()
com.ibm.icu.text.BreakIterator
first
in class com.ibm.icu.text.BreakIterator
public int last()
com.ibm.icu.text.BreakIterator
last
in class com.ibm.icu.text.BreakIterator
public int next(int n)
com.ibm.icu.text.BreakIterator
next
in class com.ibm.icu.text.BreakIterator
n
- The number of boundaries to advance over (if positive, moves
forward; if negative, moves backwards).
public int next()
com.ibm.icu.text.BreakIterator
next
in class com.ibm.icu.text.BreakIterator
public int previous()
com.ibm.icu.text.BreakIterator
previous
in class com.ibm.icu.text.BreakIterator
public int preceding(int offset)
com.ibm.icu.text.BreakIterator
preceding
in class com.ibm.icu.text.BreakIterator
offset
- The character position to start searching from.
public int following(int offset)
com.ibm.icu.text.BreakIterator
following
in class com.ibm.icu.text.BreakIterator
offset
- The character position to start searching from.
protected boolean eatFollowingWhitespace(int offset, int exclusiveEnd)
protected boolean isDelimiter(int offset, int exclusiveEnd)
true
if the given sequence into the underlying text
represents a delimiter, false
otherwise.
offset
- the offsetexclusiveEnd
- the end offset
true
if the given range is a delimiterprotected boolean isWhitespace(int offset, int exclusiveEnd)
true
if the given sequence into the underlying text
represents whitespace, but not a delimiter, false
otherwise.
offset
- the offsetexclusiveEnd
- the end offset
true
if the given range is whitespacepublic int current()
com.ibm.icu.text.BreakIterator
current
in class com.ibm.icu.text.BreakIterator
public java.text.CharacterIterator getText()
com.ibm.icu.text.BreakIterator
getText
in class com.ibm.icu.text.BreakIterator
public void setText(java.lang.CharSequence newText)
CharSequence
.
newText
- the new textpublic void setText(java.text.CharacterIterator newText)
com.ibm.icu.text.BreakIterator
setText
in class com.ibm.icu.text.BreakIterator
newText
- A CharacterIterator referring to the text
to analyze with this BreakIterator (the iterator's current
position is ignored, but its other state is significant).public void setText(java.lang.String newText)
com.ibm.icu.text.BreakIterator
setText
in class com.ibm.icu.text.BreakIterator
newText
- A String containing the text to analyze with
this BreakIterator.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |