本文整理匯總了Java中org.eclipse.jface.text.rules.IToken.isEOF方法的典型用法代碼示例。如果您正苦於以下問題:Java IToken.isEOF方法的具體用法?Java IToken.isEOF怎麽用?Java IToken.isEOF使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.jface.text.rules.IToken
的用法示例。
在下文中一共展示了IToken.isEOF方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: scan
import org.eclipse.jface.text.rules.IToken; //導入方法依賴的package包/類
protected de.darwinspl.preferences.resource.dwprofile.ui.IDwprofileTokenScanner scan(EObject object, ITokenScannerConstraint constraint) {
IDocument document = getSourceViewer().getDocument();
de.darwinspl.preferences.resource.dwprofile.IDwprofileLocationMap locationMap = textResource.getLocationMap();
de.darwinspl.preferences.resource.dwprofile.ui.IDwprofileTokenScanner tokenScanner = createTokenScanner();
int offset = locationMap.getCharStart(object);
int length = getLength(locationMap, object);
tokenScanner.setRange(document, offset, length);
IToken token = tokenScanner.nextToken();
while (!token.isEOF()) {
if (constraint.mustStop(tokenScanner)) {
return tokenScanner;
}
token = tokenScanner.nextToken();
}
return null;
}
示例2: scan
import org.eclipse.jface.text.rules.IToken; //導入方法依賴的package包/類
protected eu.hyvar.feature.expression.resource.hyexpression.ui.IHyexpressionTokenScanner scan(EObject object, ITokenScannerConstraint constraint) {
IDocument document = getSourceViewer().getDocument();
eu.hyvar.feature.expression.resource.hyexpression.IHyexpressionLocationMap locationMap = textResource.getLocationMap();
eu.hyvar.feature.expression.resource.hyexpression.ui.IHyexpressionTokenScanner tokenScanner = createTokenScanner();
int offset = locationMap.getCharStart(object);
int length = getLength(locationMap, object);
tokenScanner.setRange(document, offset, length);
IToken token = tokenScanner.nextToken();
while (!token.isEOF()) {
if (constraint.mustStop(tokenScanner)) {
return tokenScanner;
}
token = tokenScanner.nextToken();
}
return null;
}
示例3: scan
import org.eclipse.jface.text.rules.IToken; //導入方法依賴的package包/類
protected eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.IHyvalidityformulaTokenScanner scan(EObject object, ITokenScannerConstraint constraint) {
IDocument document = getSourceViewer().getDocument();
eu.hyvar.context.contextValidity.resource.hyvalidityformula.IHyvalidityformulaLocationMap locationMap = textResource.getLocationMap();
eu.hyvar.context.contextValidity.resource.hyvalidityformula.ui.IHyvalidityformulaTokenScanner tokenScanner = createTokenScanner();
int offset = locationMap.getCharStart(object);
int length = getLength(locationMap, object);
tokenScanner.setRange(document, offset, length);
IToken token = tokenScanner.nextToken();
while (!token.isEOF()) {
if (constraint.mustStop(tokenScanner)) {
return tokenScanner;
}
token = tokenScanner.nextToken();
}
return null;
}
示例4: scan
import org.eclipse.jface.text.rules.IToken; //導入方法依賴的package包/類
protected eu.hyvar.dataValues.resource.hydatavalue.ui.IHydatavalueTokenScanner scan(EObject object, ITokenScannerConstraint constraint) {
IDocument document = getSourceViewer().getDocument();
eu.hyvar.dataValues.resource.hydatavalue.IHydatavalueLocationMap locationMap = textResource.getLocationMap();
eu.hyvar.dataValues.resource.hydatavalue.ui.IHydatavalueTokenScanner tokenScanner = createTokenScanner();
int offset = locationMap.getCharStart(object);
int length = getLength(locationMap, object);
tokenScanner.setRange(document, offset, length);
IToken token = tokenScanner.nextToken();
while (!token.isEOF()) {
if (constraint.mustStop(tokenScanner)) {
return tokenScanner;
}
token = tokenScanner.nextToken();
}
return null;
}
示例5: scan
import org.eclipse.jface.text.rules.IToken; //導入方法依賴的package包/類
protected eu.hyvar.feature.mapping.resource.hymapping.ui.IHymappingTokenScanner scan(EObject object, ITokenScannerConstraint constraint) {
IDocument document = getSourceViewer().getDocument();
eu.hyvar.feature.mapping.resource.hymapping.IHymappingLocationMap locationMap = textResource.getLocationMap();
eu.hyvar.feature.mapping.resource.hymapping.ui.IHymappingTokenScanner tokenScanner = createTokenScanner();
int offset = locationMap.getCharStart(object);
int length = getLength(locationMap, object);
tokenScanner.setRange(document, offset, length);
IToken token = tokenScanner.nextToken();
while (!token.isEOF()) {
if (constraint.mustStop(tokenScanner)) {
return tokenScanner;
}
token = tokenScanner.nextToken();
}
return null;
}
示例6: scan
import org.eclipse.jface.text.rules.IToken; //導入方法依賴的package包/類
protected eu.hyvar.mspl.manifest.resource.hymanifest.ui.IHymanifestTokenScanner scan(EObject object, ITokenScannerConstraint constraint) {
IDocument document = getSourceViewer().getDocument();
eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestLocationMap locationMap = textResource.getLocationMap();
eu.hyvar.mspl.manifest.resource.hymanifest.ui.IHymanifestTokenScanner tokenScanner = createTokenScanner();
int offset = locationMap.getCharStart(object);
int length = getLength(locationMap, object);
tokenScanner.setRange(document, offset, length);
IToken token = tokenScanner.nextToken();
while (!token.isEOF()) {
if (constraint.mustStop(tokenScanner)) {
return tokenScanner;
}
token = tokenScanner.nextToken();
}
return null;
}