org.eclipse.xtext.ui.editor.model
Class PartitionTokenScanner
java.lang.Object
org.eclipse.xtext.ui.editor.model.PartitionTokenScanner
- All Implemented Interfaces:
- org.eclipse.jface.text.rules.IPartitionTokenScanner, org.eclipse.jface.text.rules.ITokenScanner
public class PartitionTokenScanner
- extends java.lang.Object
- implements org.eclipse.jface.text.rules.IPartitionTokenScanner
- Author:
- Sven Efftinge - Initial contribution and API, Sebastian Zarnekow
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PartitionTokenScanner
public PartitionTokenScanner()
setMapper
public void setMapper(ITokenTypeToPartitionTypeMapper mapper)
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
setPartialRange
public void setPartialRange(org.eclipse.jface.text.IDocument document,
int offset,
int length,
java.lang.String contentType,
int partitionOffset)
- Specified by:
setPartialRange
in interface org.eclipse.jface.text.rules.IPartitionTokenScanner
getTokens
protected java.lang.Iterable<ILexerTokenRegion> getTokens(org.eclipse.jface.text.IDocument document)
nextToken
public org.eclipse.jface.text.rules.IToken nextToken()
- Specified by:
nextToken
in interface org.eclipse.jface.text.rules.ITokenScanner
shouldMergePartitions
protected boolean shouldMergePartitions(java.lang.String contentType)
- Since:
- 2.1
getTokenOffset
public int getTokenOffset()
- Specified by:
getTokenOffset
in interface org.eclipse.jface.text.rules.ITokenScanner
getTokenLength
public int getTokenLength()
- Specified by:
getTokenLength
in interface org.eclipse.jface.text.rules.ITokenScanner