public class PartitionTokenScanner extends Object implements org.eclipse.jface.text.rules.IPartitionTokenScanner
| Modifier and Type | Class and Description |
|---|---|
protected static class |
PartitionTokenScanner.RangedIterator
Iterator that is aware of the fact that the tokens are ordered.
|
| Constructor and Description |
|---|
PartitionTokenScanner() |
| Modifier and Type | Method and Description |
|---|---|
int |
getTokenLength() |
int |
getTokenOffset() |
protected Iterable<ILexerTokenRegion> |
getTokens(org.eclipse.jface.text.IDocument document) |
org.eclipse.jface.text.rules.IToken |
nextToken() |
void |
setMapper(ITokenTypeToPartitionTypeMapper mapper) |
void |
setPartialRange(org.eclipse.jface.text.IDocument document,
int offset,
int length,
String contentType,
int partitionOffset) |
void |
setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length) |
protected boolean |
shouldMergePartitions(String contentType) |
public void setMapper(ITokenTypeToPartitionTypeMapper mapper)
public void setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length)
setRange in interface org.eclipse.jface.text.rules.ITokenScannerpublic void setPartialRange(org.eclipse.jface.text.IDocument document,
int offset,
int length,
String contentType,
int partitionOffset)
setPartialRange in interface org.eclipse.jface.text.rules.IPartitionTokenScannerprotected Iterable<ILexerTokenRegion> getTokens(org.eclipse.jface.text.IDocument document)
public org.eclipse.jface.text.rules.IToken nextToken()
nextToken in interface org.eclipse.jface.text.rules.ITokenScannerprotected boolean shouldMergePartitions(String contentType)
public int getTokenOffset()
getTokenOffset in interface org.eclipse.jface.text.rules.ITokenScannerpublic int getTokenLength()
getTokenLength in interface org.eclipse.jface.text.rules.ITokenScannerCopyright © 2016. All Rights Reserved.