org.sintef.mofscript.editor
Class MofScriptPartitionScanner

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 org.sintef.mofscript.editor.MofScriptPartitionScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.IPartitionTokenScanner, org.eclipse.jface.text.rules.ITokenScanner

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

PartitionScanner used by MOFScript documents Instantiated from MOFScriptDocumentProvider

Author:
jol

Field Summary
static java.lang.String[] allPartitions
           
static java.lang.String MOFSCRIPT_COMMENT
           
static java.lang.String MOFSCRIPT_DOC
           
static java.lang.String MOFSCRIPT_LITERAL
           
static java.lang.String MOFSCRIPT_MULTILINE_COMMENT
           
static java.lang.String MOFSCRIPT_MULTILINE_ESCAPE
           
static java.lang.String MOFSCRIPT_SINGLE_LITERAL
           
 
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
MofScriptPartitionScanner()
          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

MOFSCRIPT_COMMENT

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

MOFSCRIPT_MULTILINE_COMMENT

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

MOFSCRIPT_MULTILINE_ESCAPE

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

MOFSCRIPT_DOC

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

MOFSCRIPT_LITERAL

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

MOFSCRIPT_SINGLE_LITERAL

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

allPartitions

public static final java.lang.String[] allPartitions
Constructor Detail

MofScriptPartitionScanner

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