Package org.eclipse.jface.text.rules
Interface ICharacterScanner
- All Known Implementing Classes:
- BufferedRuleBasedScanner,- RuleBasedPartitionScanner,- RuleBasedScanner
public interface ICharacterScanner
Defines the interface of a character scanner used by rules.
 Rules may request the next character or ask the character
 scanner to unread the last read character.
 Originally since unknown version, but moved to org.eclipse.text in 3.14
- Since:
- 3.14
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe value returned when this scanner has read EOF.
- 
Method Summary
- 
Field Details- 
EOFstatic final int EOFThe value returned when this scanner has read EOF.- See Also:
 
 
- 
- 
Method Details- 
getLegalLineDelimiterschar[][] getLegalLineDelimiters()Provides rules access to the legal line delimiters. The returned object may not be modified by clients.- Returns:
- the legal line delimiters
 
- 
getColumnint getColumn()Returns the column of the character scanner.- Returns:
- the column of the character scanner
 
- 
readint read()Returns the next character or EOF if end of file has been reached- Returns:
- the next character or EOF
 
- 
unreadvoid unread()Rewinds the scanner before the last read character.
 
-