public class WhitespaceRule extends Object implements IRule
IRule capable of detecting whitespace.
A whitespace rule uses a whitespace detector in order to find out which
characters are whitespace characters.IWhitespaceDetector| Modifier and Type | Field and Description |
|---|---|
protected IWhitespaceDetector |
fDetector
The whitespace detector used by this rule
|
| Constructor and Description |
|---|
WhitespaceRule(IWhitespaceDetector detector)
Creates a rule which, with the help of an
whitespace detector, will return a whitespace
token when a whitespace is detected.
|
| Modifier and Type | Method and Description |
|---|---|
IToken |
evaluate(ICharacterScanner scanner)
Evaluates the rule by examining the characters available from
the provided character scanner.
|
protected IWhitespaceDetector fDetector
public WhitespaceRule(IWhitespaceDetector detector)
detector - the rule's whitespace detector, may not be nullpublic IToken evaluate(ICharacterScanner scanner)
IRuletrue when calling isUndefined,
if the text that the rule investigated does not match the rule's requirementsGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.