org.eclipse.xtext.ui.editor.model
Class CommonBreakIterator.LineDelimiter

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.model.CommonBreakIterator.Run
      extended by org.eclipse.xtext.ui.editor.model.CommonBreakIterator.LineDelimiter
Enclosing class:
CommonBreakIterator

protected static class CommonBreakIterator.LineDelimiter
extends CommonBreakIterator.Run


Field Summary
 
Fields inherited from class org.eclipse.xtext.ui.editor.model.CommonBreakIterator.Run
length
 
Constructor Summary
protected CommonBreakIterator.LineDelimiter()
           
 
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  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
 

Constructor Detail

CommonBreakIterator.LineDelimiter

protected CommonBreakIterator.LineDelimiter()
Method Detail

init

protected void init()
Description copied from class: CommonBreakIterator.Run
Resets this run to the initial state.

Overrides:
init in class CommonBreakIterator.Run

consume

protected boolean consume(char ch)
Description copied from class: CommonBreakIterator.Run
Returns true if this run consumes ch, false otherwise. If true is returned, the length of the receiver is adjusted accordingly.

Overrides:
consume in class CommonBreakIterator.Run
Parameters:
ch - the character to test
Returns:
true if ch was consumed

isValid

protected boolean isValid(char ch)
Description copied from class: CommonBreakIterator.Run
Whether this run accepts that character; does not update state. Called from the default implementation of consume.

Specified by:
isValid in class CommonBreakIterator.Run
Parameters:
ch - the character to test
Returns:
true if ch is accepted