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

java.lang.Object
  extended by org.eclipse.jface.text.rules.RuleBasedScanner
      extended by org.eclipse.mtl.ide.ui.editors.template.scanner.AbstractMTLScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ICharacterScanner, org.eclipse.jface.text.rules.ITokenScanner
Direct Known Subclasses:
MTLBehavioralFeatureScanner, MTLBlockScanner, MTLCommentScanner, MTLDefaultScanner, MTLProtectedAreaScanner

public abstract class AbstractMTLScanner
extends org.eclipse.jface.text.rules.RuleBasedScanner

A rule based scanner. All the scanners of the template editor should extend this class.


Field Summary
 
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
AbstractMTLScanner()
           
 
Method Summary
abstract  java.lang.String getConfiguredContentType()
          Returns the type of the tokens read by this scanner.
 
Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, nextToken, read, setDefaultReturnToken, setRange, setRules, unread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMTLScanner

public AbstractMTLScanner()
Method Detail

getConfiguredContentType

public abstract java.lang.String getConfiguredContentType()
Returns the type of the tokens read by this scanner.

Returns:
the type of the tokens

Copyright 2008 Obeo
All Rights Reserved.