|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.xtext.ui.editor.model.PartitionTokenScanner
public class PartitionTokenScanner
Constructor Summary | |
---|---|
PartitionTokenScanner()
|
Method Summary | |
---|---|
int |
getTokenLength()
Returns the length of the last token read by this scanner. |
int |
getTokenOffset()
Returns the offset of the last token read by this scanner. |
protected java.lang.Iterable<ILexerTokenRegion> |
getTokens(org.eclipse.jface.text.IDocument document)
|
org.eclipse.jface.text.rules.IToken |
nextToken()
Returns the next token in the document. |
void |
setMapper(ITokenTypeToPartitionTypeMapper mapper)
|
void |
setPartialRange(org.eclipse.jface.text.IDocument document,
int offset,
int length,
java.lang.String contentType,
int partitionOffset)
Configures the scanner by providing access to the document range that should be scanned. |
void |
setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length)
Configures the scanner by providing access to the document range that should be scanned. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionTokenScanner()
Method Detail |
---|
public void setMapper(ITokenTypeToPartitionTypeMapper mapper)
public void setRange(org.eclipse.jface.text.IDocument document, int offset, int length)
org.eclipse.jface.text.rules.ITokenScanner
setRange
in interface org.eclipse.jface.text.rules.ITokenScanner
document
- the document to scanoffset
- the offset of the document range to scanlength
- the length of the document range to scanpublic void setPartialRange(org.eclipse.jface.text.IDocument document, int offset, int length, java.lang.String contentType, int partitionOffset)
org.eclipse.jface.text.rules.IPartitionTokenScanner
setPartialRange
in interface org.eclipse.jface.text.rules.IPartitionTokenScanner
document
- the document to scanoffset
- the offset of the document range to scanlength
- the length of the document range to scancontentType
- the content type at the given offsetpartitionOffset
- the offset at which the partition of the given offset startsprotected java.lang.Iterable<ILexerTokenRegion> getTokens(org.eclipse.jface.text.IDocument document)
public org.eclipse.jface.text.rules.IToken nextToken()
org.eclipse.jface.text.rules.ITokenScanner
nextToken
in interface org.eclipse.jface.text.rules.ITokenScanner
public int getTokenOffset()
org.eclipse.jface.text.rules.ITokenScanner
getTokenOffset
in interface org.eclipse.jface.text.rules.ITokenScanner
public int getTokenLength()
org.eclipse.jface.text.rules.ITokenScanner
getTokenLength
in interface org.eclipse.jface.text.rules.ITokenScanner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |