当前位置: 首页>>代码示例>>Java>>正文


Java GrammarProvider类代码示例

本文整理汇总了Java中org.eclipse.xtext.service.GrammarProvider的典型用法代码示例。如果您正苦于以下问题:Java GrammarProvider类的具体用法?Java GrammarProvider怎么用?Java GrammarProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GrammarProvider类属于org.eclipse.xtext.service包,在下文中一共展示了GrammarProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: UnicodeGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public UnicodeGrammarAccess(GrammarProvider grammarProvider) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.tHEX_DIGIT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.HEX_DIGIT");
	this.tDECIMAL_INTEGER_LITERAL_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.DECIMAL_INTEGER_LITERAL_FRAGMENT");
	this.tDECIMAL_DIGIT_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.DECIMAL_DIGIT_FRAGMENT");
	this.tZWJ = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.ZWJ");
	this.tZWNJ = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.ZWNJ");
	this.tBOM = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.BOM");
	this.tWHITESPACE_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.WHITESPACE_FRAGMENT");
	this.tLINE_TERMINATOR_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.LINE_TERMINATOR_FRAGMENT");
	this.tLINE_TERMINATOR_SEQUENCE_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.LINE_TERMINATOR_SEQUENCE_FRAGMENT");
	this.tSL_COMMENT_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.SL_COMMENT_FRAGMENT");
	this.tML_COMMENT_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.ML_COMMENT_FRAGMENT");
	this.tUNICODE_COMBINING_MARK_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.UNICODE_COMBINING_MARK_FRAGMENT");
	this.tUNICODE_DIGIT_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.UNICODE_DIGIT_FRAGMENT");
	this.tUNICODE_CONNECTOR_PUNCTUATION_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.UNICODE_CONNECTOR_PUNCTUATION_FRAGMENT");
	this.tUNICODE_LETTER_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.UNICODE_LETTER_FRAGMENT");
	this.tUNICODE_SPACE_SEPARATOR_FRAGMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.UNICODE_SPACE_SEPARATOR_FRAGMENT");
	this.tANY_OTHER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.common.unicode.Unicode.ANY_OTHER");
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:22,代码来源:UnicodeGrammarAccess.java

示例2: MyDslGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public MyDslGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pMensamodel = new MensamodelElements();
	this.pHeader = new HeaderElements();
	this.pSidebar = new SidebarElements();
	this.pFooter = new FooterElements();
	this.pDescription = new DescriptionElements();
	this.pNAV = new NAVElements();
	this.pRadio = new RadioElements();
	this.pCheckbox = new CheckboxElements();
	this.pButton = new ButtonElements();
	this.pSelector = new SelectorElements();
	this.pLink = new LinkElements();
	this.pMenu = new MenuElements();
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:19,代码来源:MyDslGrammarAccess.java

示例3: BromiumGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public BromiumGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pModel = new ModelElements();
	this.pApplicationAction = new ApplicationActionElements();
	this.pSyntaxDefinition = new SyntaxDefinitionElements();
	this.pWebDriverActionCondition = new WebDriverActionConditionElements();
	this.pWebDriverAction = new WebDriverActionElements();
	this.pPrecondition = new PreconditionElements();
	this.pPostcondition = new PostconditionElements();
	this.pExpectHttpRequest = new ExpectHttpRequestElements();
	this.pElementByCssToBePresent = new ElementByCssToBePresentElements();
	this.pClickCssSelector = new ClickCssSelectorElements();
	this.pPageLoad = new PageLoadElements();
	this.pTypeTextInElementFoundByCssSelector = new TypeTextInElementFoundByCssSelectorElements();
	this.pTextOfElementWithCssSelectorToBe = new TextOfElementWithCssSelectorToBeElements();
	this.pClickClassByText = new ClickClassByTextElements();
	this.pParameterValue = new ParameterValueElements();
	this.pExposedParameter = new ExposedParameterElements();
	this.pVersion = new VersionElements();
	this.pThreeDottedVersion = new ThreeDottedVersionElements();
}
 
开发者ID:hristo-vrigazov,项目名称:bromium,代码行数:25,代码来源:BromiumGrammarAccess.java

示例4: DSLPoliciesGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public DSLPoliciesGrammarAccess(GrammarProvider grammarProvider,
		XbaseGrammarAccess gaXbase,
		XtypeGrammarAccess gaXtype) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaXbase = gaXbase;
	this.gaXtype = gaXtype;
	this.pModel = new ModelElements();
	this.tSEV = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "gw4e.eclipse.dsl.DSLPolicies.SEV");
	this.tFORMAT_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "gw4e.eclipse.dsl.DSLPolicies.FORMAT_COMMENT");
	this.tNEWLINE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "gw4e.eclipse.dsl.DSLPolicies.NEWLINE");
	this.pComment = new CommentElements();
	this.pGraphPolicies = new GraphPoliciesElements();
	this.pModelName = new ModelNameElements();
	this.pSeverity = new SeverityElements();
	this.pPolicies = new PoliciesElements();
	this.pPathGeneratorStopCondition = new PathGeneratorStopConditionElements();
	this.pAlgorithmType = new AlgorithmTypeElements();
	this.pIntegerStopCondition = new IntegerStopConditionElements();
	this.pPercentageCondition = new PercentageConditionElements();
	this.pStringCondition = new StringConditionElements();
	this.pPercent = new PercentElements();
	this.pGraphElement = new GraphElementElements();
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:25,代码来源:DSLPoliciesGrammarAccess.java

示例5: RestauranteGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public RestauranteGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pRestaurante = new RestauranteElements();
	this.pIngrediente = new IngredienteElements();
	this.pProducto = new ProductoElements();
	this.pPrincipal = new PrincipalElements();
	this.pComplemento = new ComplementoElements();
	this.pBebida = new BebidaElements();
	this.pBebidaFria = new BebidaFriaElements();
	this.pBebidaCaliente = new BebidaCalienteElements();
	this.pPostre = new PostreElements();
	this.pNutricional = new NutricionalElements();
	this.pMenu = new MenuElements();
	this.pProductoY = new ProductoYElements();
	this.pProductoO = new ProductoOElements();
	this.pFloat = new FloatElements();
	this.eSalsaRecomendada = new SalsaRecomendadaElements();
	this.eTamanioMenu = new TamanioMenuElements();
	this.eDistribuidor = new DistribuidorElements();
	this.tFECHA = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.xtext.dsl.restaurante.Restaurante.FECHA");
	this.tURL = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.xtext.dsl.restaurante.Restaurante.URL");
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:26,代码来源:RestauranteGrammarAccess.java

示例6: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.cmf.occi.core.xtext.OCCI".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:16,代码来源:OCCIGrammarAccess.java

示例7: MinitlGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public MinitlGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pTransformation = new TransformationElements();
	this.pInputMetamodel = new InputMetamodelElements();
	this.pMetamodel = new MetamodelElements();
	this.pRule = new RuleElements();
	this.pObjectTemplate = new ObjectTemplateElements();
	this.pBinding = new BindingElements();
	this.pValue = new ValueElements();
	this.pMaybeBinary = new MaybeBinaryElements();
	this.pMaybeFieldAccessValue = new MaybeFieldAccessValueElements();
	this.pPrimary = new PrimaryElements();
	this.pStringValue = new StringValueElements();
	this.pObjectTemplateValue = new ObjectTemplateValueElements();
	this.eOperator = new OperatorElements();
	this.pFQN = new FQNElements();
}
 
开发者ID:tetrabox,项目名称:minitl,代码行数:21,代码来源:MinitlGrammarAccess.java

示例8: PartialParserTestLanguageGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public PartialParserTestLanguageGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pSomeContainer = new SomeContainerElements();
	this.pNested = new NestedElements();
	this.pContent = new ContentElements();
	this.pChildren = new ChildrenElements();
	this.pChild = new ChildElements();
	this.pAbstractChildren = new AbstractChildrenElements();
	this.pAbstractChild = new AbstractChildElements();
	this.pFirstConcrete = new FirstConcreteElements();
	this.pSecondConcrete = new SecondConcreteElements();
	this.pNamed = new NamedElements();
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:17,代码来源:PartialParserTestLanguageGrammarAccess.java

示例9: Bug287988TestLanguageGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public Bug287988TestLanguageGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pModel = new ModelElements();
	this.pBaseAttribute = new BaseAttributeElements();
	this.pAttribute = new AttributeElements();
	this.pMaster = new MasterElements();
	this.pActionAttribute = new ActionAttributeElements();
	this.pSimpleAttribute = new SimpleAttributeElements();
	this.pRuleCallAttribute = new RuleCallAttributeElements();
	this.pCallMe = new CallMeElements();
	this.pRuleCallAttribute2 = new RuleCallAttribute2Elements();
	this.pCallMe2 = new CallMe2Elements();
	this.pRuleCallAttribute3 = new RuleCallAttribute3Elements();
	this.pCallMe3 = new CallMe3Elements();
	this.pCallMe4 = new CallMe4Elements();
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:20,代码来源:Bug287988TestLanguageGrammarAccess.java

示例10: TestLanguageGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public TestLanguageGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pModel = new ModelElements();
	this.pTypeDeclaration = new TypeDeclarationElements();
	this.pMember = new MemberElements();
	this.pProperty = new PropertyElements();
	this.pType = new TypeElements();
	this.pOperation = new OperationElements();
	this.pOperationCall = new OperationCallElements();
	this.pParameter = new ParameterElements();
	this.pTypeReference = new TypeReferenceElements();
	this.pPrimitiveType = new PrimitiveTypeElements();
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:17,代码来源:TestLanguageGrammarAccess.java

示例11: PkmntcgoGrammarAccess

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
@Inject
public PkmntcgoGrammarAccess(GrammarProvider grammarProvider,
		TerminalsGrammarAccess gaTerminals) {
	this.grammar = internalFindGrammar(grammarProvider);
	this.gaTerminals = gaTerminals;
	this.pDecks = new DecksElements();
	this.pDeck = new DeckElements();
	this.pPokemon = new PokemonElements();
	this.pTrainer = new TrainerElements();
	this.pEnergy = new EnergyElements();
	this.pCard = new CardElements();
	this.pNAMESTRING = new NAMESTRINGElements();
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:14,代码来源:PkmntcgoGrammarAccess.java

示例12: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("de.baernreuther.dsls.Pkmntcgo".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:16,代码来源:PkmntcgoGrammarAccess.java

示例13: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.ts.Types".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:TypesGrammarAccess.java

示例14: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.ts.TypeExpressions".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:TypeExpressionsGrammarAccess.java

示例15: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //导入依赖的package包/类
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.common.unicode.Unicode".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:16,代码来源:UnicodeGrammarAccess.java


注:本文中的org.eclipse.xtext.service.GrammarProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。