public interface IPredicateRule extends IRule
ICharacterScanner
Modifier and Type | Method and Description |
---|---|
IToken |
evaluate(ICharacterScanner scanner,
boolean resume)
Evaluates the rule by examining the characters available from
the provided character scanner.
|
IToken |
getSuccessToken()
Returns the success token of this predicate rule.
|
IToken getSuccessToken()
IToken evaluate(ICharacterScanner scanner, boolean resume)
true
when calling isUndefined
,
if the text that the rule investigated does not match the rule's requirements. Otherwise,
this method returns this rule's success token. If this rules relies on a text pattern
comprising a opening and a closing character sequence this method can also be called
when the scanner is positioned already between the opening and the closing sequence.
In this case, resume
must be set to true
.scanner
- the character scanner to be used by this ruleresume
- indicates that the rule starts working between the opening and the closing character sequence
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.