當前位置: 首頁>>代碼示例>>Java>>正文


Java IToken.isEOF方法代碼示例

本文整理匯總了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;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:DwprofileOccurrence.java

示例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;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HyexpressionOccurrence.java

示例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;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HyvalidityformulaOccurrence.java

示例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;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HydatavalueOccurrence.java

示例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;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HymappingOccurrence.java

示例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;
}
 
開發者ID:DarwinSPL,項目名稱:DarwinSPL,代碼行數:20,代碼來源:HymanifestOccurrence.java


注:本文中的org.eclipse.jface.text.rules.IToken.isEOF方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。