Package org.eclipse.jface.text.rules
Class MultiLineRule
java.lang.Object
org.eclipse.jface.text.rules.PatternRule
org.eclipse.jface.text.rules.MultiLineRule
- All Implemented Interfaces:
- IPredicateRule,- IRule
A rule for detecting patterns which begin with a given
 sequence and may end with a given sequence thereby spanning
 multiple lines.
 Originally since unknown version, but moved to org.eclipse.text in 3.14
- Since:
- 3.14
- 
Field SummaryFields inherited from class org.eclipse.jface.text.rules.PatternRulefBreaksOnEOF, fBreaksOnEOL, fColumn, fEndSequence, fEscapeCharacter, fEscapeContinuesLine, fStartSequence, fToken, UNDEFINED
- 
Constructor SummaryConstructorsConstructorDescriptionMultiLineRule(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.
- 
Method SummaryMethods inherited from class org.eclipse.jface.text.rules.PatternRuledoEvaluate, doEvaluate, endSequenceDetected, evaluate, evaluate, getSuccessToken, sequenceDetected, setColumnConstraint
- 
Constructor Details- 
MultiLineRuleCreates a rule for the given starting and ending sequence which, if detected, will return the specified token.- Parameters:
- startSequence- the pattern's start sequence
- endSequence- the pattern's end sequence
- token- the token to be returned on success
 
- 
MultiLineRuleCreates a rule for the given starting and ending sequence which, if detected, will return the specific token. Any character which follows the given escape character will be ignored.- Parameters:
- startSequence- the pattern's start sequence
- endSequence- the pattern's end sequence
- token- the token to be returned on success
- escapeCharacter- the escape character
 
- 
MultiLineRulepublic 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. Any character that follows the given escape character will be ignored.breakOnEOFindicates whether EOF is equivalent to detecting theendSequence.- Parameters:
- startSequence- the pattern's start sequence
- endSequence- the pattern's end sequence
- token- the token to be returned on success
- escapeCharacter- the escape character
- breaksOnEOF- indicates whether the end of the file terminates this rule successfully
- Since:
- 2.1
 
 
-