|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.rules.WhitespaceRule
public class WhitespaceRule
An implementation of IRule capable of detecting whitespace.
A whitespace rule uses a whitespace detector in order to find out which
characters are whitespace characters.
IWhitespaceDetector| Field Summary | |
|---|---|
protected IWhitespaceDetector |
fDetector
The whitespace detector used by this rule |
| Constructor Summary | |
|---|---|
WhitespaceRule(IWhitespaceDetector detector)
Creates a rule which, with the help of an whitespace detector, will return a whitespace token when a whitespace is detected. |
|
| Method Summary | |
|---|---|
IToken |
evaluate(ICharacterScanner scanner)
Evaluates the rule by examining the characters available from the provided character scanner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IWhitespaceDetector fDetector
| Constructor Detail |
|---|
public WhitespaceRule(IWhitespaceDetector detector)
detector - the rule's whitespace detector, may not be null| Method Detail |
|---|
public IToken evaluate(ICharacterScanner scanner)
IRuletrue when calling isUndefined,
if the text that the rule investigated does not match the rule's requirements
evaluate in interface IRulescanner - the character scanner to be used by this rule
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.