|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.rules.RuleBasedScanner
org.eclipse.jface.text.rules.BufferedRuleBasedScanner
org.eclipse.jface.text.rules.RuleBasedPartitionScanner
public class RuleBasedPartitionScanner
Scanner that exclusively uses predicate rules.
| Field Summary | |
|---|---|
protected String |
fContentType
The content type of the partition in which to resume scanning. |
protected int |
fPartitionOffset
The offset of the partition inside which to resume. |
| Fields inherited from class org.eclipse.jface.text.rules.RuleBasedScanner |
|---|
fColumn, fDefaultReturnToken, fDelimiters, fDocument, fOffset, fRangeEnd, fRules, fTokenOffset, UNDEFINED |
| Fields inherited from interface org.eclipse.jface.text.rules.ICharacterScanner |
|---|
EOF |
| Constructor Summary | |
|---|---|
RuleBasedPartitionScanner()
|
|
| Method Summary | |
|---|---|
IToken |
nextToken()
Returns the next token in the document. |
void |
setPartialRange(IDocument document,
int offset,
int length,
String contentType,
int partitionOffset)
Configures the scanner by providing access to the document range that should be scanned. |
void |
setPredicateRules(IPredicateRule[] rules)
|
void |
setRange(IDocument document,
int offset,
int length)
Configures the scanner by providing access to the document range that should be scanned. |
void |
setRules(IRule[] rules)
Configures the scanner with the given sequence of rules. |
| Methods inherited from class org.eclipse.jface.text.rules.BufferedRuleBasedScanner |
|---|
read, setBufferSize, unread |
| Methods inherited from class org.eclipse.jface.text.rules.RuleBasedScanner |
|---|
getColumn, getLegalLineDelimiters, getTokenLength, getTokenOffset, setDefaultReturnToken |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.text.rules.ITokenScanner |
|---|
getTokenLength, getTokenOffset |
| Field Detail |
|---|
protected String fContentType
protected int fPartitionOffset
| Constructor Detail |
|---|
public RuleBasedPartitionScanner()
| Method Detail |
|---|
public void setRules(IRule[] rules)
RuleBasedScanner
setRules in class RuleBasedScannerrules - the sequence of rules controlling this scannerpublic void setPredicateRules(IPredicateRule[] rules)
public void setRange(IDocument document,
int offset,
int length)
ITokenScanner
setRange in interface ITokenScannersetRange in class BufferedRuleBasedScannerdocument - the document to scanoffset - the offset of the document range to scanlength - the length of the document range to scan
public void setPartialRange(IDocument document,
int offset,
int length,
String contentType,
int partitionOffset)
IPartitionTokenScanner
setPartialRange 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 IToken nextToken()
ITokenScanner
nextToken in interface ITokenScannernextToken in class RuleBasedScanner
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.