|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.model.CommonBreakIterator.Run
protected abstract static class CommonBreakIterator.Run
A run of common characters.
Field Summary | |
---|---|
protected int |
length
The length of this run. |
Constructor Summary | |
---|---|
CommonBreakIterator.Run()
|
Method Summary | |
---|---|
protected boolean |
consume(char ch)
Returns true if this run consumes ch , false otherwise. |
protected void |
init()
Resets this run to the initial state. |
protected abstract boolean |
isValid(char ch)
Whether this run accepts that character; does not update state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int length
Constructor Detail |
---|
public CommonBreakIterator.Run()
Method Detail |
---|
protected boolean consume(char ch)
true
if this run consumes ch
, false
otherwise. If
true
is returned, the length of the receiver is adjusted accordingly.
ch
- the character to test
true
if ch
was consumedprotected abstract boolean isValid(char ch)
consume
.
ch
- the character to test
true
if ch
is acceptedprotected void init()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |