public class FastJavaLikePartitionScanner extends java.lang.Object implements IPartitionTokenScanner
| Constructor and Description |
|---|
FastJavaLikePartitionScanner(java.lang.String singleLineCommentKey,
java.lang.String multiLineCommentKey,
java.lang.String javaDocKey,
java.lang.String characterKey,
java.lang.String stringKey) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
IToken |
nextToken()
Returns the next token in the document.
|
void |
setPartialRange(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(IDocument document,
int offset,
int length)
Configures the scanner by providing access to the document range that should
be scanned.
|
public FastJavaLikePartitionScanner(java.lang.String singleLineCommentKey,
java.lang.String multiLineCommentKey,
java.lang.String javaDocKey,
java.lang.String characterKey,
java.lang.String stringKey)
public IToken nextToken()
ITokenScannernextToken in interface ITokenScannerpublic void setPartialRange(IDocument document,
int offset,
int length,
java.lang.String contentType,
int partitionOffset)
IPartitionTokenScannersetPartialRange in interface IPartitionTokenScannerdocument - 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 startspublic void setRange(IDocument document,
int offset,
int length)
ITokenScannersetRange in interface ITokenScannerdocument - the document to scanoffset - the offset of the document range to scanlength - the length of the document range to scanpublic int getTokenLength()
ITokenScannergetTokenLength in interface ITokenScannerpublic int getTokenOffset()
ITokenScannergetTokenOffset in interface ITokenScanner