public class EndOfLineRule extends SingleLineRule
fBreaksOnEOF, fBreaksOnEOL, fColumn, fEndSequence, fEscapeCharacter, fEscapeContinuesLine, fStartSequence, fToken, UNDEFINED
Constructor and Description |
---|
EndOfLineRule(String startSequence,
IToken token)
Creates a rule for the given starting sequence
which, if detected, will return the specified token.
|
EndOfLineRule(String startSequence,
IToken token,
char escapeCharacter)
Creates a rule for the given starting sequence
which, if detected, will return the specified token.
|
EndOfLineRule(String startSequence,
IToken token,
char escapeCharacter,
boolean escapeContinuesLine)
Creates a rule for the given starting sequence
which, if detected, will return the specified token.
|
doEvaluate, doEvaluate, endSequenceDetected, evaluate, evaluate, getSuccessToken, sequenceDetected, setColumnConstraint
public EndOfLineRule(String startSequence, IToken token)
startSequence
- the pattern's start sequencetoken
- the token to be returned on successpublic EndOfLineRule(String startSequence, IToken token, char escapeCharacter)
startSequence
- the pattern's start sequencetoken
- the token to be returned on successescapeCharacter
- the escape characterpublic EndOfLineRule(String startSequence, IToken token, char escapeCharacter, boolean escapeContinuesLine)
startSequence
- the pattern's start sequencetoken
- the token to be returned on successescapeCharacter
- the escape characterescapeContinuesLine
- 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, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.