@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"); }
@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(); }
@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(); }
@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(); }
@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"); }
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; }
@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(); }
@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(); }
@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(); }
@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(); }
@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(); }
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; }
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; }
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; }
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; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.n4js.regex.RegularExpression".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.n4js.N4JS".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
@Inject public N4MFGrammarAccess(GrammarProvider grammarProvider, TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaTerminals = gaTerminals; this.pProjectDescription = new ProjectDescriptionElements(); this.eProjectType = new ProjectTypeElements(); this.pExecModule = new ExecModuleElements(); this.pTestedProjects = new TestedProjectsElements(); this.pInitModules = new InitModulesElements(); this.pImplementedProjects = new ImplementedProjectsElements(); this.pProjectDependencies = new ProjectDependenciesElements(); this.pProvidedRuntimeLibraries = new ProvidedRuntimeLibrariesElements(); this.pRequiredRuntimeLibraries = new RequiredRuntimeLibrariesElements(); this.pExtendedRuntimeEnvironment = new ExtendedRuntimeEnvironmentElements(); this.pDeclaredVersion = new DeclaredVersionElements(); this.pSourceFragment = new SourceFragmentElements(); this.eSourceFragmentType = new SourceFragmentTypeElements(); this.pModuleFilter = new ModuleFilterElements(); this.pBootstrapModule = new BootstrapModuleElements(); this.pModuleFilterSpecifier = new ModuleFilterSpecifierElements(); this.eModuleFilterType = new ModuleFilterTypeElements(); this.pProvidedRuntimeLibraryDependency = new ProvidedRuntimeLibraryDependencyElements(); this.pRequiredRuntimeLibraryDependency = new RequiredRuntimeLibraryDependencyElements(); this.pTestedProject = new TestedProjectElements(); this.pProjectReference = new ProjectReferenceElements(); this.pProjectDependency = new ProjectDependencyElements(); this.pSimpleProjectDescription = new SimpleProjectDescriptionElements(); this.pVersionConstraint = new VersionConstraintElements(); this.eProjectDependencyScope = new ProjectDependencyScopeElements(); this.eModuleLoader = new ModuleLoaderElements(); this.pN4mfIdentifier = new N4mfIdentifierElements(); this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.n4js.n4mf.N4MF.ID"); }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.n4js.n4mf.N4MF".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.xtext.example.mydsl.MyDsl".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("com.hribol.bromium.dsl.Bromium".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("gw4e.eclipse.dsl.DSLPolicies".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("com.wamas.ide.launching.LcDsl".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("com.ms.qaTools.saturn.Kronus".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
@Inject public DslGrammarAccess(GrammarProvider grammarProvider) { this.grammar = internalFindGrammar(grammarProvider); this.pDsl = new DslElements(); this.pEntry = new EntryElements(); this.pWORD = new WORDElements(); this.pVALUE_WORD = new VALUE_WORDElements(); this.tSEPARATOR = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.gemoc.Dsl.SEPARATOR"); this.tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.gemoc.Dsl.SL_COMMENT"); this.tLETTER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.gemoc.Dsl.LETTER"); this.pMULTILINE = new MULTILINEElements(); this.tSPACE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.gemoc.Dsl.SPACE"); }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.gemoc.Dsl".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
@Inject public GExpressionsGrammarAccess(GrammarProvider grammarProvider, TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaTerminals = gaTerminals; this.pGProgram = new GProgramElements(); this.pGImportStatement = new GImportStatementElements(); this.pGExpression = new GExpressionElements(); this.pGOrExpression = new GOrExpressionElements(); this.pGXorExpression = new GXorExpressionElements(); this.pGAndExpression = new GAndExpressionElements(); this.pGEqualityExpression = new GEqualityExpressionElements(); this.pGRelationExpression = new GRelationExpressionElements(); this.pGAdditionExpression = new GAdditionExpressionElements(); this.pGMultiplicationExpression = new GMultiplicationExpressionElements(); this.pGNegationExpression = new GNegationExpressionElements(); this.pGNavigationExpression = new GNavigationExpressionElements(); this.pGReferenceExpression = new GReferenceExpressionElements(); this.pGPrimaryExpression = new GPrimaryExpressionElements(); this.pGStringExpression = new GStringExpressionElements(); this.pGBooleanExpression = new GBooleanExpressionElements(); this.pGNumericExpression = new GNumericExpressionElements(); this.pGIntegerExpression = new GIntegerExpressionElements(); this.pGDoubleExpression = new GDoubleExpressionElements(); this.pGEnumLiteralExpression = new GEnumLiteralExpressionElements(); this.pGIfExpression = new GIfExpressionElements(); this.pGBraceExpression = new GBraceExpressionElements(); this.eGAndOperator = new GAndOperatorElements(); this.eGXorOperator = new GXorOperatorElements(); this.eGOrOperator = new GOrOperatorElements(); this.eGEqualityOperator = new GEqualityOperatorElements(); this.eGRelationOperator = new GRelationOperatorElements(); this.eGAdditionOperator = new GAdditionOperatorElements(); this.eGMultiplicationOperator = new GMultiplicationOperatorElements(); this.eGNegationOperator = new GNegationOperatorElements(); this.pNavigationOperator = new NavigationOperatorElements(); this.tBOOLEAN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.gemoc.gexpressions.xtext.GExpressions.BOOLEAN"); this.tDOUBLE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.gemoc.gexpressions.xtext.GExpressions.DOUBLE"); this.pQualifiedName = new QualifiedNameElements(); }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.gemoc.gexpressions.xtext.GExpressions".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.xtext.dsl.restaurante.Restaurante".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("xtext.QueryIT".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
@Inject public ImportUriTestLanguageGrammarAccess(GrammarProvider grammarProvider, TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaTerminals = gaTerminals; this.pMain = new MainElements(); this.pImport = new ImportElements(); this.pType = new TypeElements(); }
@Inject public IgnoreCaseLexerTestLanguageGrammarAccess(GrammarProvider grammarProvider) { this.grammar = internalFindGrammar(grammarProvider); this.pModel = new ModelElements(); this.tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.lexer.IgnoreCaseLexerTestLanguage.WS"); this.tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.lexer.IgnoreCaseLexerTestLanguage.SL_COMMENT"); }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.xtext.testlanguages.TestLanguage".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.xtext.linking.ImportUriTestLanguage".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.xtext.resource.LiveContainerTestLanguage".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
@Inject public Bug296889TestLanguageGrammarAccess(GrammarProvider grammarProvider, TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaTerminals = gaTerminals; this.pModel = new ModelElements(); this.pExpression = new ExpressionElements(); this.pPreop = new PreopElements(); this.pPostop = new PostopElements(); this.pVariable = new VariableElements(); this.pDataTypeExpression = new DataTypeExpressionElements(); this.pDataTypePreop = new DataTypePreopElements(); this.pDataTypePostop = new DataTypePostopElements(); this.pDataTypeVariable = new DataTypeVariableElements(); }
@Inject public BacktrackingBug325745TestLanguageGrammarAccess(GrammarProvider grammarProvider, TerminalsGrammarAccess gaTerminals) { this.grammar = internalFindGrammar(grammarProvider); this.gaTerminals = gaTerminals; this.pModel = new ModelElements(); this.pElement = new ElementElements(); this.pDataType = new DataTypeElements(); this.pExpression = new ExpressionElements(); this.pSimpleTerm = new SimpleTermElements(); }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.xtext.xbase.Xbase".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.xtext.serializer.ContextFinderTestLanguage".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { Grammar grammar = grammarProvider.getGrammar(this); while (grammar != null) { if ("org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations".equals(grammar.getName())) { return grammar; } List<Grammar> grammars = grammar.getUsedGrammars(); if (!grammars.isEmpty()) { grammar = grammars.iterator().next(); } else { return null; } } return grammar; }