org.eclipse.mtl.ide.ui.editors.template.scanner
Class MTLPartitionScanner

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.eclipse.mtl.ide.ui.editors.template.scanner.MTLPartitionScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.IPartitionTokenScanner, org.eclipse.jface.text.rules.ITokenScanner

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

Global partition scanner that exclusively uses predicate rules.


Field Summary
static java.lang.String[] LEGAL_CONTENT_TYPES
          All legal content types.
static java.lang.String MTL_BEHAVIORAL_FEATURE
          Legal content type for a 'template|query|macro' part in the text.
static java.lang.String MTL_BLOCK
          Legal content type for a 'block' part in the text.
static java.lang.String MTL_COMMENT
          Legal content type for a 'comment' part in the text.
static java.lang.String MTL_FOR
          Legal content type for a 'for' part in the text.
static java.lang.String MTL_IF
          Legal content type for a 'if' part in the text.
static java.lang.String MTL_LET
          Legal content type for a 'let' part in the text.
static java.lang.String MTL_PROTECTED_AREA
          Legal content type for a 'protected area' part in the text.
 
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
MTLPartitionScanner()
          Constructor.
 
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

MTL_COMMENT

public static final java.lang.String MTL_COMMENT
Legal content type for a 'comment' part in the text. This data is attached to a 'comment' token, by the scanner.

See Also:
Constant Field Values

MTL_BEHAVIORAL_FEATURE

public static final java.lang.String MTL_BEHAVIORAL_FEATURE
Legal content type for a 'template|query|macro' part in the text. This data is attached to a 'template|query|macro' token, by the scanner.

See Also:
Constant Field Values

MTL_PROTECTED_AREA

public static final java.lang.String MTL_PROTECTED_AREA
Legal content type for a 'protected area' part in the text. This data is attached to a 'protected area' token, by the scanner.

See Also:
Constant Field Values

MTL_IF

public static final java.lang.String MTL_IF
Legal content type for a 'if' part in the text. This data is attached to a 'if' token, by the scanner.

See Also:
Constant Field Values

MTL_LET

public static final java.lang.String MTL_LET
Legal content type for a 'let' part in the text. This data is attached to a 'let' token, by the scanner.

See Also:
Constant Field Values

MTL_FOR

public static final java.lang.String MTL_FOR
Legal content type for a 'for' part in the text. This data is attached to a 'for' token, by the scanner.

See Also:
Constant Field Values

MTL_BLOCK

public static final java.lang.String MTL_BLOCK
Legal content type for a 'block' part in the text. This data is attached to a 'block' token, by the scanner.

See Also:
Constant Field Values

LEGAL_CONTENT_TYPES

public static final java.lang.String[] LEGAL_CONTENT_TYPES
All legal content types.

Constructor Detail

MTLPartitionScanner

public MTLPartitionScanner()
Constructor.


Copyright 2008 Obeo
All Rights Reserved.