Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jface.text.rules
Class EndOfLineRule  view EndOfLineRule download EndOfLineRule.java

java.lang.Object
  extended byorg.eclipse.jface.text.rules.PatternRule
      extended byorg.eclipse.jface.text.rules.SingleLineRule
          extended byorg.eclipse.jface.text.rules.EndOfLineRule
All Implemented Interfaces:
IPredicateRule, IRule

public class EndOfLineRule
extends SingleLineRule

A specific configuration of a single line rule whereby the pattern begins with a specific sequence but is only ended by a line delimiter.


Field Summary
 
Fields inherited from class org.eclipse.jface.text.rules.PatternRule
fBreaksOnEOF, fBreaksOnEOL, fColumn, fEndSequence, fEscapeCharacter, fEscapeContinuesLine, fStartSequence, fToken, UNDEFINED
 
Constructor Summary
EndOfLineRule(java.lang.String startSequence, IToken token)
          Creates a rule for the given starting sequence which, if detected, will return the specified token.
EndOfLineRule(java.lang.String startSequence, IToken token, char escapeCharacter)
          Creates a rule for the given starting sequence which, if detected, will return the specified token.
EndOfLineRule(java.lang.String startSequence, IToken token, char escapeCharacter, boolean escapeContinuesLine)
          Creates a rule for the given starting sequence which, if detected, will return the specified token.
 
Methods inherited from class org.eclipse.jface.text.rules.PatternRule
doEvaluate, doEvaluate, endSequenceDetected, evaluate, evaluate, getSuccessToken, sequenceDetected, setColumnConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndOfLineRule

public EndOfLineRule(java.lang.String startSequence,
                     IToken token)
Creates a rule for the given starting sequence which, if detected, will return the specified token.


EndOfLineRule

public EndOfLineRule(java.lang.String startSequence,
                     IToken token,
                     char escapeCharacter)
Creates a rule for the given starting sequence which, if detected, will return the specified token. Any character which follows the given escape character will be ignored.


EndOfLineRule

public EndOfLineRule(java.lang.String startSequence,
                     IToken token,
                     char escapeCharacter,
                     boolean escapeContinuesLine)
Creates a rule for the given starting sequence which, if detected, will return the specified token. Any character which follows the given escape character will be ignored. In addition, an escape character immediately before an end of line can be set to continue the line.

Since:
3.0