public class MultiLineRule extends PatternRule
fBreaksOnEOF, fBreaksOnEOL, fColumn, fEndSequence, fEscapeCharacter, fEscapeContinuesLine, fStartSequence, fToken, UNDEFINED
Constructor and Description |
---|
MultiLineRule(String startSequence,
String endSequence,
IToken token)
Creates a rule for the given starting and ending sequence
which, if detected, will return the specified token.
|
MultiLineRule(String startSequence,
String endSequence,
IToken token,
char escapeCharacter)
Creates a rule for the given starting and ending sequence
which, if detected, will return the specific token.
|
MultiLineRule(String startSequence,
String endSequence,
IToken token,
char escapeCharacter,
boolean breaksOnEOF)
Creates a rule for the given starting and ending sequence
which, if detected, will return the specific token.
|
doEvaluate, doEvaluate, endSequenceDetected, evaluate, evaluate, getSuccessToken, sequenceDetected, setColumnConstraint
public MultiLineRule(String startSequence, String endSequence, IToken token)
startSequence
- the pattern's start sequenceendSequence
- the pattern's end sequencetoken
- the token to be returned on successpublic MultiLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter)
startSequence
- the pattern's start sequenceendSequence
- the pattern's end sequencetoken
- the token to be returned on successescapeCharacter
- the escape characterpublic MultiLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter, boolean breaksOnEOF)
breakOnEOF
indicates whether
EOF is equivalent to detecting the endSequence
.startSequence
- the pattern's start sequenceendSequence
- the pattern's end sequencetoken
- the token to be returned on successescapeCharacter
- the escape characterbreaksOnEOF
- indicates whether the end of the file terminates this rule successfully
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.