org.eclipse.xtend.ide.highlighting
Class RichStringAwareTokenScanner

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractTokenScanner
      extended by org.eclipse.xtext.ui.editor.syntaxcoloring.TokenScanner
          extended by org.eclipse.xtend.ide.highlighting.RichStringAwareTokenScanner
All Implemented Interfaces:
org.eclipse.jface.text.rules.ITokenScanner

public class RichStringAwareTokenScanner
extends TokenScanner

Author:
Sebastian Zarnekow - Initial contribution and API

Nested Class Summary
protected  class RichStringAwareTokenScanner.RichTextToken
           
 
Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.syntaxcoloring.TokenScanner
TokenScanner.RangedReentrantIterator
 
Constructor Summary
RichStringAwareTokenScanner()
           
 
Method Summary
protected  RichStringAwareTokenScanner.RichTextToken createRichTextToken(java.lang.String id, ILexerTokenRegion token)
           
 int getTokenLength()
           
 int getTokenOffset()
           
 org.eclipse.jface.text.rules.IToken nextToken()
           
 void setRange(org.eclipse.jface.text.IDocument document, int offset, int length)
           
 void setTokenDefProvider(ITokenDefProvider tokenDefProvider)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.syntaxcoloring.TokenScanner
createToken, getCurrentToken, getIterator, getTokenIdMapper, getTokens, setCurrentToken, setTokenIdMapper
 
Methods inherited from class org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractTokenScanner
getAttribute, getTextAttributeProvider, setTextAttributeProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RichStringAwareTokenScanner

public RichStringAwareTokenScanner()
Method Detail

createRichTextToken

protected RichStringAwareTokenScanner.RichTextToken createRichTextToken(java.lang.String id,
                                                                        ILexerTokenRegion token)

setTokenDefProvider

@Inject
public void setTokenDefProvider(ITokenDefProvider tokenDefProvider)

setRange

public void setRange(org.eclipse.jface.text.IDocument document,
                     int offset,
                     int length)
Specified by:
setRange in interface org.eclipse.jface.text.rules.ITokenScanner
Overrides:
setRange in class TokenScanner

nextToken

public org.eclipse.jface.text.rules.IToken nextToken()
Specified by:
nextToken in interface org.eclipse.jface.text.rules.ITokenScanner
Overrides:
nextToken in class TokenScanner

getTokenLength

public int getTokenLength()
Specified by:
getTokenLength in interface org.eclipse.jface.text.rules.ITokenScanner
Overrides:
getTokenLength in class TokenScanner

getTokenOffset

public int getTokenOffset()
Specified by:
getTokenOffset in interface org.eclipse.jface.text.rules.ITokenScanner
Overrides:
getTokenOffset in class TokenScanner