modesteditor.core
Class ModestPartitionScanner

java.lang.Object
  extended by org.eclipse.jface.text.rules.RuleBasedScanner
      extended by org.eclipse.jface.text.rules.BufferedRuleBasedScanner
          extended by org.eclipse.jface.text.rules.RuleBasedPartitionScanner
              extended by modesteditor.core.ModestPartitionScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.IPartitionTokenScanner, org.eclipse.jface.text.rules.ITokenScanner

public class ModestPartitionScanner
extends org.eclipse.jface.text.rules.RuleBasedPartitionScanner

This scanner recognizes the MoDeST multi line comments


Field Summary
static java.lang.String MODEST_DEFAULT
           
static java.lang.String MODEST_MULTILINE_COMMENT
           
static java.lang.String[] MODEST_PARTITION_TYPES
          The partition types in a MoDeST document.
static java.lang.String MODEST_SINGLELINE_COMMENT
           
 
Fields inherited from class org.eclipse.jface.text.rules.RuleBasedPartitionScanner
fContentType, fPartitionOffset
 
Fields inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
fColumn, fDefaultReturnToken, fDelimiters, fDocument, fOffset, fRangeEnd, fRules, fTokenOffset, UNDEFINED
 
Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner
EOF
 
Constructor Summary
ModestPartitionScanner()
          Creates the partitioner and sets up the appropriate rules.
 
Method Summary
 
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedPartitionScanner
nextToken, setPartialRange, setPredicateRules, setRange, setRules
 
Methods inherited from class org.eclipse.jface.text.rules.BufferedRuleBasedScanner
read, setBufferSize, unread
 
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, setDefaultReturnToken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.text.rules.ITokenScanner
getTokenLength, getTokenOffset
 

Field Detail

MODEST_MULTILINE_COMMENT

public static final java.lang.String MODEST_MULTILINE_COMMENT
See Also:
Constant Field Values

MODEST_SINGLELINE_COMMENT

public static final java.lang.String MODEST_SINGLELINE_COMMENT
See Also:
Constant Field Values

MODEST_DEFAULT

public static final java.lang.String MODEST_DEFAULT
See Also:
Constant Field Values

MODEST_PARTITION_TYPES

public static final java.lang.String[] MODEST_PARTITION_TYPES
The partition types in a MoDeST document.

Constructor Detail

ModestPartitionScanner

public ModestPartitionScanner()
Creates the partitioner and sets up the appropriate rules.