本文整理汇总了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");
}
示例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();
}
示例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();
}
示例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();
}
示例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");
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}