Package org.eclipse.jface.text.rules
Interface IRule
-
- All Known Subinterfaces:
IPredicateRule
- All Known Implementing Classes:
EndOfLineRule
,MultiLineRule
,NumberRule
,PatternRule
,SingleLineRule
,WhitespaceRule
,WordPatternRule
,WordRule
public interface IRule
Defines the interface for a rule used in the scanning of text for the purpose of document partitioning or text styling.- See Also:
ICharacterScanner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IToken
evaluate(ICharacterScanner scanner)
Evaluates the rule by examining the characters available from the provided character scanner.
-
-
-
Method Detail
-
evaluate
IToken evaluate(ICharacterScanner scanner)
Evaluates the rule by examining the characters available from the provided character scanner. The token returned by this rule returnstrue
when callingisUndefined
, if the text that the rule investigated does not match the rule's requirements- Parameters:
scanner
- the character scanner to be used by this rule- Returns:
- the token computed by the rule
-
-