org.eclipse.xtext.ui.editor.model
Class DocumentTokenSource.TokenAdapter

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.model.DocumentTokenSource.TokenAdapter
All Implemented Interfaces:
org.eclipse.jface.text.IRegion, ILexerTokenRegion
Enclosing class:
DocumentTokenSource

public static class DocumentTokenSource.TokenAdapter
extends java.lang.Object
implements ILexerTokenRegion

Author:
Sven Efftinge - Initial contribution and API

Constructor Summary
DocumentTokenSource.TokenAdapter(DocumentTokenSource.TokenInfo token, int offset)
           
 
Method Summary
 int getLength()
           
 int getLexerTokenType()
           
 int getOffset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentTokenSource.TokenAdapter

public DocumentTokenSource.TokenAdapter(DocumentTokenSource.TokenInfo token,
                                        int offset)
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface org.eclipse.jface.text.IRegion

getOffset

public int getOffset()
Specified by:
getOffset in interface org.eclipse.jface.text.IRegion

getLexerTokenType

public int getLexerTokenType()
Specified by:
getLexerTokenType in interface ILexerTokenRegion