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, setColumnConstraintpublic 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 successfullyGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.