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


Java AbstractInternalContentAssistParser類代碼示例

本文整理匯總了Java中org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser的典型用法代碼示例。如果您正苦於以下問題:Java AbstractInternalContentAssistParser類的具體用法?Java AbstractInternalContentAssistParser怎麽用?Java AbstractInternalContentAssistParser使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


AbstractInternalContentAssistParser類屬於org.eclipse.xtext.ui.editor.contentassist.antlr.internal包,在下文中一共展示了AbstractInternalContentAssistParser類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
public Collection<FollowElement> getFollowElements(String input, boolean strict) {
	CharStream stream = new ANTLRStringStream(input);
	TokenSource tokenSource = createLexer(stream);
	AbstractInternalContentAssistParser parser = createParser();
	parser.setStrict(strict);
	ObservableXtextTokenStream tokens = new ObservableXtextTokenStream(tokenSource, parser);
	tokens.setInitialHiddenTokens(getInitialHiddenTokens());
	parser.setTokenStream(tokens);
	IUnorderedGroupHelper helper = getUnorderedGroupHelper().get();
	parser.setUnorderedGroupHelper(helper);
	helper.initializeWith(parser);
	tokens.setListener(parser);
	try {
		return Lists.newArrayList(getFollowElements(parser));
	} catch(InfiniteRecursion infinite) {
		return Lists.newArrayList(parser.getFollowElements());
	}
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:19,代碼來源:AbstractContentAssistParser.java

示例2: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	if (rule == null || rule.eIsProxy())
		return Collections.emptyList();
	String methodName = "entryRule" + rule.getName();
	PolymorphicDispatcher<Collection<FollowElement>> dispatcher = 
		new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser));
	dispatcher.invoke();
	return parser.getFollowElements();
}
 
開發者ID:amritbhat786,項目名稱:DocIT,代碼行數:11,代碼來源:PartialIOIContentAssistParser.java

示例3: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		org.ioicompanies.lang.ui.contentassist.antlr.internal.InternalIOIParser typedParser = (org.ioicompanies.lang.ui.contentassist.antlr.internal.InternalIOIParser) parser;
		typedParser.entryRuleModel();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:amritbhat786,項目名稱:DocIT,代碼行數:11,代碼來源:IOIParser.java

示例4: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		org.eclipse.gemoc.gexpressions.xtext.ui.contentassist.antlr.internal.InternalGExpressionsParser typedParser = (org.eclipse.gemoc.gexpressions.xtext.ui.contentassist.antlr.internal.InternalGExpressionsParser) parser;
		typedParser.entryRuleGProgram();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:11,代碼來源:GExpressionsParser.java

示例5: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		xtext.ui.contentassist.antlr.internal.InternalQueryITParser typedParser = (xtext.ui.contentassist.antlr.internal.InternalQueryITParser) parser;
		typedParser.entryRuleSurvey();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:TodorovicNikola,項目名稱:SurveyDSL,代碼行數:11,代碼來源:QueryITParser.java

示例6: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		jasonide.xtext.mas2j.ui.contentassist.antlr.internal.InternalMas2jParser typedParser = (jasonide.xtext.mas2j.ui.contentassist.antlr.internal.InternalMas2jParser) parser;
		typedParser.entryRuleMas2jModel();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:jason-lang,項目名稱:jason-eclipse-plugin,代碼行數:11,代碼來源:Mas2jParser.java

示例7: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		jasonide.xtext.asl.ui.contentassist.antlr.internal.InternalAslParser typedParser = (jasonide.xtext.asl.ui.contentassist.antlr.internal.InternalAslParser) parser;
		typedParser.entryRuleAgent();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:jason-lang,項目名稱:jason-eclipse-plugin,代碼行數:11,代碼來源:AslParser.java

示例8: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.xtext.valid.ui.contentassist.antlr.internal.InternalValidParser typedParser = (com.avaloq.tools.ddk.xtext.valid.ui.contentassist.antlr.internal.InternalValidParser) parser;
		typedParser.entryRuleValidModel();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:ValidParser.java

示例9: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.xtext.format.ui.contentassist.antlr.internal.InternalFormatParser typedParser = (com.avaloq.tools.ddk.xtext.format.ui.contentassist.antlr.internal.InternalFormatParser) parser;
		typedParser.entryRuleFormatConfiguration();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:FormatParser.java

示例10: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalTestLanguageParser typedParser = (com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalTestLanguageParser) parser;
		typedParser.entryRuleModel();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:TestLanguageParser.java

示例11: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.xtext.export.ui.contentassist.antlr.internal.InternalExportParser typedParser = (com.avaloq.tools.ddk.xtext.export.ui.contentassist.antlr.internal.InternalExportParser) parser;
		typedParser.entryRuleExportModel();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:ExportParser.java

示例12: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.xtext.scope.ui.contentassist.antlr.internal.InternalScopeParser typedParser = (com.avaloq.tools.ddk.xtext.scope.ui.contentassist.antlr.internal.InternalScopeParser) parser;
		typedParser.entryRuleScopeModel();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:ScopeParser.java

示例13: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.xtext.expression.ui.contentassist.antlr.internal.InternalExpressionParser typedParser = (com.avaloq.tools.ddk.xtext.expression.ui.contentassist.antlr.internal.InternalExpressionParser) parser;
		typedParser.entryRuleExpression();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:ExpressionParser.java

示例14: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalCheckParser typedParser = (com.avaloq.tools.ddk.check.ui.contentassist.antlr.internal.InternalCheckParser) parser;
		typedParser.entryRuleCheckCatalog();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:CheckParser.java

示例15: getFollowElements

import org.eclipse.xtext.ui.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; //導入依賴的package包/類
@Override
protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) {
	try {
		com.avaloq.tools.ddk.checkcfg.ui.contentassist.antlr.internal.InternalCheckCfgParser typedParser = (com.avaloq.tools.ddk.checkcfg.ui.contentassist.antlr.internal.InternalCheckCfgParser) parser;
		typedParser.entryRuleCheckConfiguration();
		return typedParser.getFollowElements();
	} catch(RecognitionException ex) {
		throw new RuntimeException(ex);
	}		
}
 
開發者ID:dsldevkit,項目名稱:dsl-devkit,代碼行數:11,代碼來源:CheckCfgParser.java


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