public class SingleLineRule extends PatternRule
fBreaksOnEOF, fBreaksOnEOL, fColumn, fEndSequence, fEscapeCharacter, fEscapeContinuesLine, fStartSequence, fToken, UNDEFINED
Constructor and Description |
---|
SingleLineRule(String startSequence,
String endSequence,
IToken token)
Creates a rule for the given starting and ending sequence
which, if detected, will return the specified token.
|
SingleLineRule(String startSequence,
String endSequence,
IToken token,
char escapeCharacter)
Creates a rule for the given starting and ending sequence
which, if detected, will return the specified token.
|
SingleLineRule(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 specified token.
|
SingleLineRule(String startSequence,
String endSequence,
IToken token,
char escapeCharacter,
boolean breaksOnEOF,
boolean escapeContinuesLine)
Creates a rule for the given starting and ending sequence
which, if detected, will return the specified token.
|
doEvaluate, doEvaluate, endSequenceDetected, evaluate, evaluate, getSuccessToken, sequenceDetected, setColumnConstraint
public SingleLineRule(String startSequence, String endSequence, IToken token)
startSequence
- the pattern's start sequenceendSequence
- the pattern's end sequencetoken
- the token to be returned on successpublic SingleLineRule(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 SingleLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter, boolean breaksOnEOF)
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 successfully terminates this rulepublic SingleLineRule(String startSequence, String endSequence, IToken token, char escapeCharacter, boolean breaksOnEOF, boolean escapeContinuesLine)
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 successfully terminates this ruleescapeContinuesLine
- indicates whether the specified escape character is used for line
continuation, so that an end of line immediately after the escape character does not
terminate the line, even if breakOnEOL
is true
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.