diff --git a/dev-doc/RegenerateLanguages.md b/dev-doc/RegenerateLanguages.md index 547e594dbe1..3278a876a31 100644 --- a/dev-doc/RegenerateLanguages.md +++ b/dev-doc/RegenerateLanguages.md @@ -24,7 +24,5 @@ This document describes the necessary steps to regenerate the test- and producti org.eclipse.xtext.xtext.ui.examples/projects/homeautomation/org.eclipse.xtext.example.homeautomation/src/org/eclipse/xtext/example/homeautomation/GenerateRuleEngine.mwe2 org.eclipse.xtext.xtext.ui.tests/generator/org/eclipse/xtext/xtext/ui/ecore2xtext/GenerateEcore2XtextTestGrammar.mwe2 org.eclipse.xtext.xtext.ui.tests/src/org/eclipse/xtext/xtext/ui/GenerateTestLanguages.mwe2 - org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/GenerateEntities.mwe2 - org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/GenerateStatemachine.mwe2 org.eclipse.xtend.core/src/org/eclipse/xtend/core/GenerateXtend.mwe2 ``` diff --git a/org.eclipse.xtext.full.releng/pom.xml b/org.eclipse.xtext.full.releng/pom.xml index a2fc99396b9..cbe8f88a9b6 100644 --- a/org.eclipse.xtext.full.releng/pom.xml +++ b/org.eclipse.xtext.full.releng/pom.xml @@ -113,16 +113,6 @@ ../org.eclipse.xtext.xtext.ui.graph.tests ../org.eclipse.xtext.xtext.ui.tests - - ../org.eclipse.xtext.web - ../org.eclipse.xtext.web.example.statemachine - ../org.eclipse.xtext.web.example.statemachine.ide - ../org.eclipse.xtext.xbase.web - ../org.eclipse.xtext.web.example.entities - ../org.eclipse.xtext.web.example.entities.ide - ../org.eclipse.xtext.web.servlet - ../org.eclipse.xtext.web.example.jetty - ../org.eclipse.xtext.maven.parent ../org.eclipse.xtext.maven.plugin diff --git a/org.eclipse.xtext.ide/META-INF/MANIFEST.MF b/org.eclipse.xtext.ide/META-INF/MANIFEST.MF index fe601566949..8270527e490 100644 --- a/org.eclipse.xtext.ide/META-INF/MANIFEST.MF +++ b/org.eclipse.xtext.ide/META-INF/MANIFEST.MF @@ -38,7 +38,7 @@ Export-Package: org.eclipse.xtext.ide;version="2.44.0"; org.eclipse.xtext.ide.editor.partialEditing;version="2.44.0", org.eclipse.xtext.ide.editor.quickfix;version="2.44.0", org.eclipse.xtext.ide.editor.syntaxcoloring;version="2.44.0", - org.eclipse.xtext.ide.labels;version="2.44.0";x-friends:="org.eclipse.xtext.web,org.eclipse.xtext.xbase.ide", + org.eclipse.xtext.ide.labels;version="2.44.0";x-friends:="org.eclipse.xtext.xbase.ide", org.eclipse.xtext.ide.refactoring;version="2.44.0";x-friends:="org.eclipse.xtext.testlanguages.ide,org.eclipse.xtext.ui", org.eclipse.xtext.ide.serializer;version="2.44.0";x-friends:="org.eclipse.xtext.ide.tests,org.eclipse.xtext.ui", org.eclipse.xtext.ide.serializer.debug;version="2.44.0";x-friends:="org.eclipse.xtext.ide.tests,org.eclipse.xtext.testing", diff --git a/org.eclipse.xtext.maven.parent/pom.xml b/org.eclipse.xtext.maven.parent/pom.xml index 932cb13f719..fa3c8720a0d 100644 --- a/org.eclipse.xtext.maven.parent/pom.xml +++ b/org.eclipse.xtext.maven.parent/pom.xml @@ -14,7 +14,7 @@ https://www.eclipse.org/Xtext/ Xtext Maven Plugin Parent POM - Xtext is a framework for development of programming languages and domain-specific languages. With Xtext you define your language using a powerful grammar language. As a result you get a full infrastructure, including parser, linker, typechecker, compiler as well as editing support for Eclipse, LSP and your favorite web browser. + Xtext is a framework for development of programming languages and domain-specific languages. With Xtext you define your language using a powerful grammar language. As a result you get a full infrastructure, including parser, linker, typechecker, compiler as well as editing support for Eclipse, and LSP (Language Server Protocol). ${basedir}/.. diff --git a/org.eclipse.xtext.maven.releng/pom.xml b/org.eclipse.xtext.maven.releng/pom.xml index 43cc736620e..9b73d01989d 100644 --- a/org.eclipse.xtext.maven.releng/pom.xml +++ b/org.eclipse.xtext.maven.releng/pom.xml @@ -44,15 +44,6 @@ ../org.eclipse.xtext.purexbase ../org.eclipse.xtext.purexbase.ide - - ../org.eclipse.xtext.web - ../org.eclipse.xtext.web.example.statemachine - ../org.eclipse.xtext.web.example.statemachine.ide - ../org.eclipse.xtext.xbase.web - ../org.eclipse.xtext.web.example.entities - ../org.eclipse.xtext.web.example.entities.ide - ../org.eclipse.xtext.web.servlet - ../org.eclipse.xtext.web.example.jetty ../org.eclipse.xtext.maven.parent ../org.eclipse.xtext.maven.plugin diff --git a/org.eclipse.xtext.relengutil/pom.xml b/org.eclipse.xtext.relengutil/pom.xml index 8a270de7565..34fa437123d 100644 --- a/org.eclipse.xtext.relengutil/pom.xml +++ b/org.eclipse.xtext.relengutil/pom.xml @@ -14,19 +14,6 @@ Xtext Release Engineering Utilities Utilities to perform maintenance work in Xtext. - - - org.eclipse.xtext - org.eclipse.xtext.web.example.entities - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.web.example.statemachine - ${project.version} - - - diff --git a/org.eclipse.xtext.relengutil/src/org/eclipse/xtext/relengutil/GenerateAllExamples.mwe2 b/org.eclipse.xtext.relengutil/src/org/eclipse/xtext/relengutil/GenerateAllExamples.mwe2 index c2bb9018275..b8a22c08ad3 100644 --- a/org.eclipse.xtext.relengutil/src/org/eclipse/xtext/relengutil/GenerateAllExamples.mwe2 +++ b/org.eclipse.xtext.relengutil/src/org/eclipse/xtext/relengutil/GenerateAllExamples.mwe2 @@ -25,12 +25,4 @@ Workflow { component = @org.eclipse.xtext.example.homeautomation.GenerateRuleEngine { rootPath = "${rootPath}/homeautomation" } - component = @org.eclipse.xtext.web.example.entities.GenerateEntities { - rootPath = ".." - } - component = @org.eclipse.xtext.web.example.statemachine.GenerateStatemachine { - rootPath = ".." - } } - - diff --git a/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/WizardConfigurationTest.java b/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/WizardConfigurationTest.java index cefa635fa65..83d0f3fda7f 100644 --- a/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/WizardConfigurationTest.java +++ b/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/WizardConfigurationTest.java @@ -362,8 +362,7 @@ public void allBuildSystemsUseJava21() { public List allJavaProjects() { return Lists.newArrayList(config.getRuntimeProject(), config.getRuntimeProject().getTestProject(), - config.getUiProject(), config.getUiProject().getTestProject(), config.getIdeProject(), - config.getWebProject()); + config.getUiProject(), config.getUiProject().getTestProject(), config.getIdeProject()); } @Test diff --git a/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/cli/CliWizardIntegrationTest.java b/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/cli/CliWizardIntegrationTest.java index 11d5822ac15..818730cdeda 100644 --- a/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/cli/CliWizardIntegrationTest.java +++ b/org.eclipse.xtext.tests/src/org/eclipse/xtext/xtext/wizard/cli/CliWizardIntegrationTest.java @@ -127,7 +127,6 @@ public static void main(String[] args) { project.setProjectLayout(ProjectLayout.HIERARCHICAL); project.getRuntimeProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("mavenTycho"); project.setPreferredBuildSystem(BuildSystem.MAVEN); @@ -137,7 +136,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("mavenTychoJUnit6"); project.setPreferredBuildSystem(BuildSystem.MAVEN); @@ -147,7 +145,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); project.setJunitVersion(JUnitVersion.JUNIT_6); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("gradle"); @@ -156,7 +153,6 @@ public static void main(String[] args) { project.setProjectLayout(ProjectLayout.HIERARCHICAL); project.getRuntimeProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); project.setJunitVersion(JUnitVersion.JUNIT_6); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("eclipsePlugin"); @@ -186,7 +182,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); project.getP2Project().setEnabled(true); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("mavenTychoP2J25"); @@ -198,7 +193,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); project.getP2Project().setEnabled(true); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("full"); @@ -209,7 +203,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(true); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(true); project.getP2Project().setEnabled(true); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("lsMavenFatjar"); @@ -220,7 +213,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(false); project.getUiProject().getTestProject().setEnabled(false); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(false); project.setLanguageServer(LanguageServer.FATJAR); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("lsMavenTychoFatjar"); @@ -231,7 +223,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(false); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(false); project.setLanguageServer(LanguageServer.FATJAR); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("lsGradleFatjar"); @@ -242,7 +233,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(false); project.getUiProject().getTestProject().setEnabled(false); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(false); project.setLanguageServer(LanguageServer.FATJAR); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("lsMavenApp"); @@ -253,7 +243,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(false); project.getUiProject().getTestProject().setEnabled(false); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(false); project.setLanguageServer(LanguageServer.APP); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("lsMavenTychoApp"); @@ -264,7 +253,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(true); project.getUiProject().getTestProject().setEnabled(false); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(false); project.setLanguageServer(LanguageServer.APP); }), CliWizardIntegrationTest.newProjectConfig(project -> { project.setBaseName("lsGradleApp"); @@ -275,7 +263,6 @@ public static void main(String[] args) { project.getUiProject().setEnabled(false); project.getUiProject().getTestProject().setEnabled(false); project.getIdeProject().setEnabled(true); - project.getWebProject().setEnabled(false); project.setLanguageServer(LanguageServer.APP); })); diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full.web/build.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full.web/build.gradle deleted file mode 100644 index d8f7af9e4de..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full.web/build.gradle +++ /dev/null @@ -1,23 +0,0 @@ -plugins { - id 'war' -} -dependencies { - api project(':full') - api project(':full.ide') - api "org.eclipse.xtext:org.eclipse.xtext.xbase.web:${xtextVersion}" - api "org.eclipse.xtext:org.eclipse.xtext.web.servlet:${xtextVersion}" - api "org.eclipse.xtext:org.eclipse.xtend.lib:${xtextVersion}" - api "org.webjars:requirejs:2.3.7" - api "org.webjars:jquery:3.6.0" - api "org.webjars:ace:1.3.3" - providedCompile "org.eclipse.jetty.ee10:jetty-ee10-annotations:12.1.8" - providedCompile "org.slf4j:slf4j-simple:2.0.5" -} -task jettyRun(type:JavaExec) { - dependsOn(sourceSets.main.runtimeClasspath) - classpath = sourceSets.main.runtimeClasspath.filter{it.exists()} - mainClass = 'mydsl.web.ServerLauncher' - standardInput = System.in - group = 'run' - description = 'Starts an example Jetty server with your language' -} diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index 16734fc605d..d7654c7acab 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -10,7 +10,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/pom.xml index 18e6e695489..7e78757d2f8 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/pom.xml @@ -84,12 +84,6 @@ **/* - - ${basedir}/../full.web/src-gen/ - - **/* - - ${basedir}/model/generated/ diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/src/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/src/mydsl/GenerateMyDsl.mwe2 index ee97f7e8ee4..f8216d06659 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/src/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/full/src/mydsl/GenerateMyDsl.mwe2 @@ -21,9 +21,6 @@ Workflow { eclipsePluginTest = { enabled = true } - web = { - enabled = true - } createEclipseMetaData = true } code = { diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/gradle/source-layout.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/gradle/source-layout.gradle index 31ac1f41cc3..36d9b29ba70 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/gradle/source-layout.gradle +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/gradle/source-layout.gradle @@ -36,9 +36,3 @@ jar { attributes 'Bundle-SymbolicName': project.name } } - -plugins.withId('war') { - war { - webAppDirectory = file("WebRoot") - } -} diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/settings.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/settings.gradle index 38414ef4d7f..06234bf1de6 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/settings.gradle +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/full/full.parent/settings.gradle @@ -1,4 +1,3 @@ include 'full' include 'full.ide' -include 'full.web' include 'full.tests' diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle.web/build.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle.web/build.gradle deleted file mode 100644 index 530cba491ff..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle.web/build.gradle +++ /dev/null @@ -1,23 +0,0 @@ -plugins { - id 'war' -} -dependencies { - api project(':gradle') - api project(':gradle.ide') - api "org.eclipse.xtext:org.eclipse.xtext.xbase.web:${xtextVersion}" - api "org.eclipse.xtext:org.eclipse.xtext.web.servlet:${xtextVersion}" - api "org.eclipse.xtext:org.eclipse.xtend.lib:${xtextVersion}" - api "org.webjars:requirejs:2.3.7" - api "org.webjars:jquery:3.6.0" - api "org.webjars:ace:1.3.3" - providedCompile "org.eclipse.jetty.ee10:jetty-ee10-annotations:12.1.8" - providedCompile "org.slf4j:slf4j-simple:2.0.5" -} -task jettyRun(type:JavaExec) { - dependsOn(sourceSets.main.runtimeClasspath) - classpath = sourceSets.main.runtimeClasspath.filter{it.exists()} - mainClass = 'mydsl.web.ServerLauncher' - standardInput = System.in - group = 'run' - description = 'Starts an example Jetty server with your language' -} diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index 964562e768d..c8171005e84 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -8,7 +8,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/source-layout.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/source-layout.gradle index 8494c22a435..2a9481fe01b 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/source-layout.gradle +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/source-layout.gradle @@ -22,9 +22,3 @@ jar { attributes 'Bundle-SymbolicName': project.name } } - -plugins.withId('war') { - war { - webAppDirectory = file("src/main/webapp") - } -} diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/src/main/java/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/src/main/java/mydsl/GenerateMyDsl.mwe2 index cadf4534e7d..40b92be30c6 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/src/main/java/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/gradle/src/main/java/mydsl/GenerateMyDsl.mwe2 @@ -15,7 +15,7 @@ Workflow { runtimeTest = { enabled = true } - web = { + genericIde = { enabled = true } mavenLayout = true diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/settings.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/settings.gradle index ef5ab4bcf12..4cc604f2109 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/settings.gradle +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/gradle/gradle.parent/settings.gradle @@ -1,3 +1,2 @@ include 'gradle' include 'gradle.ide' -include 'gradle.web' diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleApp/lsGradleApp.parent/gradle/source-layout.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleApp/lsGradleApp.parent/gradle/source-layout.gradle index 31ac1f41cc3..36d9b29ba70 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleApp/lsGradleApp.parent/gradle/source-layout.gradle +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleApp/lsGradleApp.parent/gradle/source-layout.gradle @@ -36,9 +36,3 @@ jar { attributes 'Bundle-SymbolicName': project.name } } - -plugins.withId('war') { - war { - webAppDirectory = file("WebRoot") - } -} diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleFatjar/lsGradleFatjar.parent/gradle/source-layout.gradle b/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleFatjar/lsGradleFatjar.parent/gradle/source-layout.gradle index 31ac1f41cc3..36d9b29ba70 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleFatjar/lsGradleFatjar.parent/gradle/source-layout.gradle +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/lsGradleFatjar/lsGradleFatjar.parent/gradle/source-layout.gradle @@ -36,9 +36,3 @@ jar { attributes 'Bundle-SymbolicName': project.name } } - -plugins.withId('war') { - war { - webAppDirectory = file("WebRoot") - } -} diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho.web/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho.web/pom.xml deleted file mode 100644 index b39d0aafd52..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho.web/pom.xml +++ /dev/null @@ -1,130 +0,0 @@ - - 4.0.0 - - mavenTycho - mavenTycho.parent - 1.0.0-SNAPSHOT - - mavenTycho.web - war - - - src - - - src - - **/*.java - **/*.xtend - - - - - - org.eclipse.xtext - xtend-maven-plugin - - - maven-war-plugin - 3.4.0 - - WebRoot - false - - - - org.eclipse.jetty.ee10 - jetty-ee10-maven-plugin - 12.1.8 - - WebRoot - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - - add-source - initialize - - add-source - add-resource - - - - src-gen - - - - src-gen - - **/*.java - - - - - - - - - - - - - ${project.groupId} - mavenTycho - ${project.version} - - - ${project.groupId} - mavenTycho.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.web - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtext.web.servlet - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtend.lib - ${xtextVersion} - - - org.webjars - requirejs - 2.3.7 - - - org.webjars - jquery - 3.6.0 - - - org.webjars - ace - 1.3.3 - - - org.eclipse.jetty.ee10 - jetty-ee10-annotations - 12.1.8 - provided - - - org.slf4j - slf4j-simple - 2.0.5 - provided - - - diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index a595929788a..4e6f59426d8 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -10,7 +10,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/pom.xml index 02008bd4a8b..1af1ccd8e44 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/pom.xml @@ -84,12 +84,6 @@ **/* - - ${basedir}/../mavenTycho.web/src-gen/ - - **/* - - ${basedir}/model/generated/ diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/src/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/src/mydsl/GenerateMyDsl.mwe2 index eb4b5909246..17dea735b48 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/src/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/mavenTycho/src/mydsl/GenerateMyDsl.mwe2 @@ -21,9 +21,6 @@ Workflow { eclipsePluginTest = { enabled = true } - web = { - enabled = true - } createEclipseMetaData = true } code = { diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/pom.xml index 202dff931b0..fb01be73693 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTycho/mavenTycho.parent/pom.xml @@ -23,7 +23,6 @@ mavenTycho mavenTycho.ide mavenTycho.ui - mavenTycho.web mavenTycho.target mavenTycho.tests mavenTycho.ui.tests diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6.web/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6.web/pom.xml deleted file mode 100644 index 67b701846ad..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6.web/pom.xml +++ /dev/null @@ -1,130 +0,0 @@ - - 4.0.0 - - mavenTychoJUnit6 - mavenTychoJUnit6.parent - 1.0.0-SNAPSHOT - - mavenTychoJUnit6.web - war - - - src - - - src - - **/*.java - **/*.xtend - - - - - - org.eclipse.xtext - xtend-maven-plugin - - - maven-war-plugin - 3.4.0 - - WebRoot - false - - - - org.eclipse.jetty.ee10 - jetty-ee10-maven-plugin - 12.1.8 - - WebRoot - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - - add-source - initialize - - add-source - add-resource - - - - src-gen - - - - src-gen - - **/*.java - - - - - - - - - - - - - ${project.groupId} - mavenTychoJUnit6 - ${project.version} - - - ${project.groupId} - mavenTychoJUnit6.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.web - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtext.web.servlet - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtend.lib - ${xtextVersion} - - - org.webjars - requirejs - 2.3.7 - - - org.webjars - jquery - 3.6.0 - - - org.webjars - ace - 1.3.3 - - - org.eclipse.jetty.ee10 - jetty-ee10-annotations - 12.1.8 - provided - - - org.slf4j - slf4j-simple - 2.0.5 - provided - - - diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index ea1ca9a0dbe..ced9cbd7a12 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -10,7 +10,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/pom.xml index 1319a536ba5..991bf0b2a9b 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/pom.xml @@ -84,12 +84,6 @@ **/* - - ${basedir}/../mavenTychoJUnit6.web/src-gen/ - - **/* - - ${basedir}/model/generated/ diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/src/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/src/mydsl/GenerateMyDsl.mwe2 index 4d08563e246..27d6d323e14 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/src/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/mavenTychoJUnit6/src/mydsl/GenerateMyDsl.mwe2 @@ -21,9 +21,6 @@ Workflow { eclipsePluginTest = { enabled = true } - web = { - enabled = true - } createEclipseMetaData = true } code = { diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/pom.xml index b66801f9300..4a7b1089c2e 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoJUnit6/mavenTychoJUnit6.parent/pom.xml @@ -23,7 +23,6 @@ mavenTychoJUnit6 mavenTychoJUnit6.ide mavenTychoJUnit6.ui - mavenTychoJUnit6.web mavenTychoJUnit6.target mavenTychoJUnit6.tests mavenTychoJUnit6.ui.tests diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2.web/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2.web/pom.xml deleted file mode 100644 index 3b2804bd38f..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2.web/pom.xml +++ /dev/null @@ -1,130 +0,0 @@ - - 4.0.0 - - mavenTychoP2 - mavenTychoP2.parent - 1.0.0-SNAPSHOT - - mavenTychoP2.web - war - - - src - - - src - - **/*.java - **/*.xtend - - - - - - org.eclipse.xtext - xtend-maven-plugin - - - maven-war-plugin - 3.4.0 - - WebRoot - false - - - - org.eclipse.jetty.ee10 - jetty-ee10-maven-plugin - 12.1.8 - - WebRoot - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - - add-source - initialize - - add-source - add-resource - - - - src-gen - - - - src-gen - - **/*.java - - - - - - - - - - - - - ${project.groupId} - mavenTychoP2 - ${project.version} - - - ${project.groupId} - mavenTychoP2.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.web - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtext.web.servlet - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtend.lib - ${xtextVersion} - - - org.webjars - requirejs - 2.3.7 - - - org.webjars - jquery - 3.6.0 - - - org.webjars - ace - 1.3.3 - - - org.eclipse.jetty.ee10 - jetty-ee10-annotations - 12.1.8 - provided - - - org.slf4j - slf4j-simple - 2.0.5 - provided - - - diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index b6475d9affb..c7087b8ee6b 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -10,7 +10,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/pom.xml index 3bc9992a8f5..e711f634073 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/pom.xml @@ -84,12 +84,6 @@ **/* - - ${basedir}/../mavenTychoP2.web/src-gen/ - - **/* - - ${basedir}/model/generated/ diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/src/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/src/mydsl/GenerateMyDsl.mwe2 index f816a9bd87d..77560bc768a 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/src/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/mavenTychoP2/src/mydsl/GenerateMyDsl.mwe2 @@ -21,9 +21,6 @@ Workflow { eclipsePluginTest = { enabled = true } - web = { - enabled = true - } createEclipseMetaData = true } code = { diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/pom.xml index 2b2f90bb969..88f539fd599 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2/mavenTychoP2.parent/pom.xml @@ -23,7 +23,6 @@ mavenTychoP2 mavenTychoP2.ide mavenTychoP2.ui - mavenTychoP2.web mavenTychoP2.target mavenTychoP2.feature mavenTychoP2.repository diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25.web/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25.web/pom.xml deleted file mode 100644 index b48a7fcff13..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25.web/pom.xml +++ /dev/null @@ -1,130 +0,0 @@ - - 4.0.0 - - mavenTychoP2J25 - mavenTychoP2J25.parent - 1.0.0-SNAPSHOT - - mavenTychoP2J25.web - war - - - src - - - src - - **/*.java - **/*.xtend - - - - - - org.eclipse.xtext - xtend-maven-plugin - - - maven-war-plugin - 3.4.0 - - WebRoot - false - - - - org.eclipse.jetty.ee10 - jetty-ee10-maven-plugin - 12.1.8 - - WebRoot - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - - add-source - initialize - - add-source - add-resource - - - - src-gen - - - - src-gen - - **/*.java - - - - - - - - - - - - - ${project.groupId} - mavenTychoP2J25 - ${project.version} - - - ${project.groupId} - mavenTychoP2J25.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.web - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtext.web.servlet - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtend.lib - ${xtextVersion} - - - org.webjars - requirejs - 2.3.7 - - - org.webjars - jquery - 3.6.0 - - - org.webjars - ace - 1.3.3 - - - org.eclipse.jetty.ee10 - jetty-ee10-annotations - 12.1.8 - provided - - - org.slf4j - slf4j-simple - 2.0.5 - provided - - - diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index 49a938fcada..c966fa973cc 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -10,7 +10,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/pom.xml index 7ce6ffab45d..a390166b7a4 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/pom.xml @@ -84,12 +84,6 @@ **/* - - ${basedir}/../mavenTychoP2J25.web/src-gen/ - - **/* - - ${basedir}/model/generated/ diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/src/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/src/mydsl/GenerateMyDsl.mwe2 index 0e74ee78f96..ea577af327c 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/src/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/mavenTychoP2J25/src/mydsl/GenerateMyDsl.mwe2 @@ -21,9 +21,6 @@ Workflow { eclipsePluginTest = { enabled = true } - web = { - enabled = true - } createEclipseMetaData = true } code = { diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/pom.xml index 30d69f42469..b20affc6fe6 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/mavenTychoP2J25/mavenTychoP2J25.parent/pom.xml @@ -23,7 +23,6 @@ mavenTychoP2J25 mavenTychoP2J25.ide mavenTychoP2J25.ui - mavenTychoP2J25.web mavenTychoP2J25.target mavenTychoP2J25.feature mavenTychoP2J25.repository diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven.web/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven.web/pom.xml deleted file mode 100644 index c9c3eec4f52..00000000000 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven.web/pom.xml +++ /dev/null @@ -1,120 +0,0 @@ - - 4.0.0 - - plainMaven - plainMaven.parent - 1.0.0-SNAPSHOT - - plainMaven.web - war - - - - - org.eclipse.xtext - xtend-maven-plugin - - - maven-war-plugin - 3.4.0 - - src/main/webapp - false - - - - org.eclipse.jetty.ee10 - jetty-ee10-maven-plugin - 12.1.8 - - src/main/webapp - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - - add-source - initialize - - add-source - add-resource - - - - src/main/xtext-gen - - - - src/main/xtext-gen - - **/*.java - - - - - - - - - - - - - ${project.groupId} - plainMaven - ${project.version} - - - ${project.groupId} - plainMaven.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.web - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtext.web.servlet - ${xtextVersion} - - - org.eclipse.xtext - org.eclipse.xtend.lib - ${xtextVersion} - - - org.webjars - requirejs - 2.3.7 - - - org.webjars - jquery - 3.6.0 - - - org.webjars - ace - 1.3.3 - - - org.eclipse.jetty.ee10 - jetty-ee10-annotations - 12.1.8 - provided - - - org.slf4j - slf4j-simple - 2.0.5 - provided - - - diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch index e220719494b..b651a9ebc70 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/.launch/Generate MyDsl (mydsl) Language Infrastructure.launch @@ -12,7 +12,7 @@ - + diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/pom.xml index d869f1a34f0..12a673d536e 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/pom.xml @@ -65,12 +65,6 @@ **/* - - ${basedir}/../plainMaven.web/src/main/xtext-gen/ - - **/* - - ${basedir}/model/generated/ diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/src/main/java/mydsl/GenerateMyDsl.mwe2 b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/src/main/java/mydsl/GenerateMyDsl.mwe2 index 01c0d8ac64d..1129f2466a9 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/src/main/java/mydsl/GenerateMyDsl.mwe2 +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/plainMaven/src/main/java/mydsl/GenerateMyDsl.mwe2 @@ -15,7 +15,7 @@ Workflow { runtimeTest = { enabled = true } - web = { + genericIde = { enabled = true } mavenLayout = true diff --git a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/pom.xml b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/pom.xml index d89a00fc4ab..f6dddcaf097 100644 --- a/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/pom.xml +++ b/org.eclipse.xtext.tests/testdata/wizard-expectations/plainMaven/plainMaven.parent/pom.xml @@ -14,7 +14,6 @@ plainMaven plainMaven.ide - plainMaven.web diff --git a/org.eclipse.xtext.web.example.entities.ide/.classpath b/org.eclipse.xtext.web.example.entities.ide/.classpath deleted file mode 100644 index 1c2fe5941a1..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/.classpath +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities.ide/.project b/org.eclipse.xtext.web.example.entities.ide/.project deleted file mode 100644 index d5cc6a66f36..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web.example.entities.ide - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 20ca120cde5..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -encoding/=ISO-8859-1 -encoding/src=ISO-8859-1 -encoding/src-gen=ISO-8859-1 diff --git a/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e77491258d4..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web.example.entities.ide/pom.xml b/org.eclipse.xtext.web.example.entities.ide/pom.xml deleted file mode 100644 index 96f68f8459c..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - org.eclipse.xtext.nodeploy.parent - 2.44.0-SNAPSHOT - ../org.eclipse.xtext.nodeploy.parent - - org.eclipse.xtext.web.example.entities.ide - jar - - - - org.eclipse.xtext - org.eclipse.xtext.xbase.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.web.example.entities - ${project.version} - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - add-sources - initialize - - add-source - - - - src - src-gen - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup b/org.eclipse.xtext.web.example.entities.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup deleted file mode 100644 index 5c7112088c3..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.xtext.web.example.entities.ide.EntitiesIdeSetup diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/AbstractEntitiesIdeModule.java b/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/AbstractEntitiesIdeModule.java deleted file mode 100644 index 58fae956ce4..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/AbstractEntitiesIdeModule.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.ide; - -import com.google.inject.Binder; -import com.google.inject.name.Names; -import org.eclipse.xtext.ide.LexerIdeBindings; -import org.eclipse.xtext.ide.editor.contentassist.FQNPrefixMatcher; -import org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher; -import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper; -import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper; -import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; -import org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.EntitiesParser; -import org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.internal.InternalEntitiesLexer; -import org.eclipse.xtext.xbase.ide.DefaultXbaseIdeModule; - -/** - * Manual modifications go to {@link EntitiesIdeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractEntitiesIdeModule extends DefaultXbaseIdeModule { - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureContentAssistLexer(Binder binder) { - binder.bind(Lexer.class) - .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) - .to(InternalEntitiesLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIContentAssistParser() { - return EntitiesParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIProposalConflictHelper() { - return AntlrProposalConflictHelper.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 - public Class bindIPrefixMatcher() { - return FQNPrefixMatcher.class; - } - -} diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/EntitiesParser.java b/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/EntitiesParser.java deleted file mode 100644 index 3a92479f3c4..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/EntitiesParser.java +++ /dev/null @@ -1,467 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.ide.contentassist.antlr; - -import com.google.common.collect.ImmutableMap; -import com.google.inject.Inject; -import com.google.inject.Singleton; -import java.util.Map; -import org.eclipse.xtext.AbstractElement; -import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser; -import org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.internal.InternalEntitiesParser; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - -public class EntitiesParser extends AbstractContentAssistParser { - - @Singleton - public static final class NameMappings { - - private final Map mappings; - - @Inject - public NameMappings(EntitiesGrammarAccess grammarAccess) { - ImmutableMap.Builder builder = ImmutableMap.builder(); - init(builder, grammarAccess); - this.mappings = builder.build(); - } - - public String getRuleName(AbstractElement element) { - return mappings.get(element); - } - - private static void init(ImmutableMap.Builder builder, EntitiesGrammarAccess grammarAccess) { - builder.put(grammarAccess.getAbstractElementAccess().getAlternatives(), "rule__AbstractElement__Alternatives"); - builder.put(grammarAccess.getFeatureAccess().getAlternatives(), "rule__Feature__Alternatives"); - builder.put(grammarAccess.getXAssignmentAccess().getAlternatives(), "rule__XAssignment__Alternatives"); - builder.put(grammarAccess.getOpMultiAssignAccess().getAlternatives(), "rule__OpMultiAssign__Alternatives"); - builder.put(grammarAccess.getOpEqualityAccess().getAlternatives(), "rule__OpEquality__Alternatives"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getAlternatives_1(), "rule__XRelationalExpression__Alternatives_1"); - builder.put(grammarAccess.getOpCompareAccess().getAlternatives(), "rule__OpCompare__Alternatives"); - builder.put(grammarAccess.getOpOtherAccess().getAlternatives(), "rule__OpOther__Alternatives"); - builder.put(grammarAccess.getOpOtherAccess().getAlternatives_5_1(), "rule__OpOther__Alternatives_5_1"); - builder.put(grammarAccess.getOpOtherAccess().getAlternatives_6_1(), "rule__OpOther__Alternatives_6_1"); - builder.put(grammarAccess.getOpAddAccess().getAlternatives(), "rule__OpAdd__Alternatives"); - builder.put(grammarAccess.getOpMultiAccess().getAlternatives(), "rule__OpMulti__Alternatives"); - builder.put(grammarAccess.getXUnaryOperationAccess().getAlternatives(), "rule__XUnaryOperation__Alternatives"); - builder.put(grammarAccess.getOpUnaryAccess().getAlternatives(), "rule__OpUnary__Alternatives"); - builder.put(grammarAccess.getOpPostfixAccess().getAlternatives(), "rule__OpPostfix__Alternatives"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1(), "rule__XMemberFeatureCall__Alternatives_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1(), "rule__XMemberFeatureCall__Alternatives_1_0_0_0_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1(), "rule__XMemberFeatureCall__Alternatives_1_1_0_0_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1(), "rule__XMemberFeatureCall__Alternatives_1_1_3_1"); - builder.put(grammarAccess.getXPrimaryExpressionAccess().getAlternatives(), "rule__XPrimaryExpression__Alternatives"); - builder.put(grammarAccess.getXLiteralAccess().getAlternatives(), "rule__XLiteral__Alternatives"); - builder.put(grammarAccess.getXCollectionLiteralAccess().getAlternatives(), "rule__XCollectionLiteral__Alternatives"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getAlternatives_2(), "rule__XSwitchExpression__Alternatives_2"); - builder.put(grammarAccess.getXCasePartAccess().getAlternatives_3(), "rule__XCasePart__Alternatives_3"); - builder.put(grammarAccess.getXExpressionOrVarDeclarationAccess().getAlternatives(), "rule__XExpressionOrVarDeclaration__Alternatives"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getAlternatives_1(), "rule__XVariableDeclaration__Alternatives_1"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getAlternatives_2(), "rule__XVariableDeclaration__Alternatives_2"); - builder.put(grammarAccess.getXFeatureCallAccess().getAlternatives_3_1(), "rule__XFeatureCall__Alternatives_3_1"); - builder.put(grammarAccess.getFeatureCallIDAccess().getAlternatives(), "rule__FeatureCallID__Alternatives"); - builder.put(grammarAccess.getIdOrSuperAccess().getAlternatives(), "rule__IdOrSuper__Alternatives"); - builder.put(grammarAccess.getXConstructorCallAccess().getAlternatives_4_1(), "rule__XConstructorCall__Alternatives_4_1"); - builder.put(grammarAccess.getXBooleanLiteralAccess().getAlternatives_1(), "rule__XBooleanLiteral__Alternatives_1"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3(), "rule__XTryCatchFinallyExpression__Alternatives_3"); - builder.put(grammarAccess.getNumberAccess().getAlternatives(), "rule__Number__Alternatives"); - builder.put(grammarAccess.getNumberAccess().getAlternatives_1_0(), "rule__Number__Alternatives_1_0"); - builder.put(grammarAccess.getNumberAccess().getAlternatives_1_1_1(), "rule__Number__Alternatives_1_1_1"); - builder.put(grammarAccess.getJvmTypeReferenceAccess().getAlternatives(), "rule__JvmTypeReference__Alternatives"); - builder.put(grammarAccess.getJvmArgumentTypeReferenceAccess().getAlternatives(), "rule__JvmArgumentTypeReference__Alternatives"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getAlternatives_2(), "rule__JvmWildcardTypeReference__Alternatives_2"); - builder.put(grammarAccess.getXImportDeclarationAccess().getAlternatives_1(), "rule__XImportDeclaration__Alternatives_1"); - builder.put(grammarAccess.getXImportDeclarationAccess().getAlternatives_1_0_3(), "rule__XImportDeclaration__Alternatives_1_0_3"); - builder.put(grammarAccess.getEntitiesAccess().getGroup(), "rule__Entities__Group__0"); - builder.put(grammarAccess.getPackageDeclarationAccess().getGroup(), "rule__PackageDeclaration__Group__0"); - builder.put(grammarAccess.getEntityAccess().getGroup(), "rule__Entity__Group__0"); - builder.put(grammarAccess.getEntityAccess().getGroup_2(), "rule__Entity__Group_2__0"); - builder.put(grammarAccess.getPropertyAccess().getGroup(), "rule__Property__Group__0"); - builder.put(grammarAccess.getOperationAccess().getGroup(), "rule__Operation__Group__0"); - builder.put(grammarAccess.getOperationAccess().getGroup_3(), "rule__Operation__Group_3__0"); - builder.put(grammarAccess.getOperationAccess().getGroup_3_1(), "rule__Operation__Group_3_1__0"); - builder.put(grammarAccess.getOperationAccess().getGroup_5(), "rule__Operation__Group_5__0"); - builder.put(grammarAccess.getXAssignmentAccess().getGroup_0(), "rule__XAssignment__Group_0__0"); - builder.put(grammarAccess.getXAssignmentAccess().getGroup_1(), "rule__XAssignment__Group_1__0"); - builder.put(grammarAccess.getXAssignmentAccess().getGroup_1_1(), "rule__XAssignment__Group_1_1__0"); - builder.put(grammarAccess.getXAssignmentAccess().getGroup_1_1_0(), "rule__XAssignment__Group_1_1_0__0"); - builder.put(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0(), "rule__XAssignment__Group_1_1_0_0__0"); - builder.put(grammarAccess.getOpMultiAssignAccess().getGroup_5(), "rule__OpMultiAssign__Group_5__0"); - builder.put(grammarAccess.getOpMultiAssignAccess().getGroup_6(), "rule__OpMultiAssign__Group_6__0"); - builder.put(grammarAccess.getXOrExpressionAccess().getGroup(), "rule__XOrExpression__Group__0"); - builder.put(grammarAccess.getXOrExpressionAccess().getGroup_1(), "rule__XOrExpression__Group_1__0"); - builder.put(grammarAccess.getXOrExpressionAccess().getGroup_1_0(), "rule__XOrExpression__Group_1_0__0"); - builder.put(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0(), "rule__XOrExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXAndExpressionAccess().getGroup(), "rule__XAndExpression__Group__0"); - builder.put(grammarAccess.getXAndExpressionAccess().getGroup_1(), "rule__XAndExpression__Group_1__0"); - builder.put(grammarAccess.getXAndExpressionAccess().getGroup_1_0(), "rule__XAndExpression__Group_1_0__0"); - builder.put(grammarAccess.getXAndExpressionAccess().getGroup_1_0_0(), "rule__XAndExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXEqualityExpressionAccess().getGroup(), "rule__XEqualityExpression__Group__0"); - builder.put(grammarAccess.getXEqualityExpressionAccess().getGroup_1(), "rule__XEqualityExpression__Group_1__0"); - builder.put(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0(), "rule__XEqualityExpression__Group_1_0__0"); - builder.put(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0(), "rule__XEqualityExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup(), "rule__XRelationalExpression__Group__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0(), "rule__XRelationalExpression__Group_1_0__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0(), "rule__XRelationalExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0(), "rule__XRelationalExpression__Group_1_0_0_0__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1(), "rule__XRelationalExpression__Group_1_1__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0(), "rule__XRelationalExpression__Group_1_1_0__0"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0(), "rule__XRelationalExpression__Group_1_1_0_0__0"); - builder.put(grammarAccess.getOpCompareAccess().getGroup_1(), "rule__OpCompare__Group_1__0"); - builder.put(grammarAccess.getXOtherOperatorExpressionAccess().getGroup(), "rule__XOtherOperatorExpression__Group__0"); - builder.put(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1(), "rule__XOtherOperatorExpression__Group_1__0"); - builder.put(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0(), "rule__XOtherOperatorExpression__Group_1_0__0"); - builder.put(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0_0(), "rule__XOtherOperatorExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_2(), "rule__OpOther__Group_2__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_5(), "rule__OpOther__Group_5__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_5_1_0(), "rule__OpOther__Group_5_1_0__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_5_1_0_0(), "rule__OpOther__Group_5_1_0_0__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_6(), "rule__OpOther__Group_6__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_6_1_0(), "rule__OpOther__Group_6_1_0__0"); - builder.put(grammarAccess.getOpOtherAccess().getGroup_6_1_0_0(), "rule__OpOther__Group_6_1_0_0__0"); - builder.put(grammarAccess.getXAdditiveExpressionAccess().getGroup(), "rule__XAdditiveExpression__Group__0"); - builder.put(grammarAccess.getXAdditiveExpressionAccess().getGroup_1(), "rule__XAdditiveExpression__Group_1__0"); - builder.put(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0(), "rule__XAdditiveExpression__Group_1_0__0"); - builder.put(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0_0(), "rule__XAdditiveExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXMultiplicativeExpressionAccess().getGroup(), "rule__XMultiplicativeExpression__Group__0"); - builder.put(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1(), "rule__XMultiplicativeExpression__Group_1__0"); - builder.put(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0(), "rule__XMultiplicativeExpression__Group_1_0__0"); - builder.put(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0_0(), "rule__XMultiplicativeExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXUnaryOperationAccess().getGroup_0(), "rule__XUnaryOperation__Group_0__0"); - builder.put(grammarAccess.getXCastedExpressionAccess().getGroup(), "rule__XCastedExpression__Group__0"); - builder.put(grammarAccess.getXCastedExpressionAccess().getGroup_1(), "rule__XCastedExpression__Group_1__0"); - builder.put(grammarAccess.getXCastedExpressionAccess().getGroup_1_0(), "rule__XCastedExpression__Group_1_0__0"); - builder.put(grammarAccess.getXCastedExpressionAccess().getGroup_1_0_0(), "rule__XCastedExpression__Group_1_0_0__0"); - builder.put(grammarAccess.getXPostfixOperationAccess().getGroup(), "rule__XPostfixOperation__Group__0"); - builder.put(grammarAccess.getXPostfixOperationAccess().getGroup_1(), "rule__XPostfixOperation__Group_1__0"); - builder.put(grammarAccess.getXPostfixOperationAccess().getGroup_1_0(), "rule__XPostfixOperation__Group_1_0__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup(), "rule__XMemberFeatureCall__Group__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0(), "rule__XMemberFeatureCall__Group_1_0__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0(), "rule__XMemberFeatureCall__Group_1_0_0__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0(), "rule__XMemberFeatureCall__Group_1_0_0_0__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1(), "rule__XMemberFeatureCall__Group_1_1__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0(), "rule__XMemberFeatureCall__Group_1_1_0__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0(), "rule__XMemberFeatureCall__Group_1_1_0_0__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1(), "rule__XMemberFeatureCall__Group_1_1_1__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2(), "rule__XMemberFeatureCall__Group_1_1_1_2__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3(), "rule__XMemberFeatureCall__Group_1_1_3__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1(), "rule__XMemberFeatureCall__Group_1_1_3_1_1__0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1(), "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0"); - builder.put(grammarAccess.getXSetLiteralAccess().getGroup(), "rule__XSetLiteral__Group__0"); - builder.put(grammarAccess.getXSetLiteralAccess().getGroup_3(), "rule__XSetLiteral__Group_3__0"); - builder.put(grammarAccess.getXSetLiteralAccess().getGroup_3_1(), "rule__XSetLiteral__Group_3_1__0"); - builder.put(grammarAccess.getXListLiteralAccess().getGroup(), "rule__XListLiteral__Group__0"); - builder.put(grammarAccess.getXListLiteralAccess().getGroup_3(), "rule__XListLiteral__Group_3__0"); - builder.put(grammarAccess.getXListLiteralAccess().getGroup_3_1(), "rule__XListLiteral__Group_3_1__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup(), "rule__XClosure__Group__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup_0(), "rule__XClosure__Group_0__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup_0_0(), "rule__XClosure__Group_0_0__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup_1(), "rule__XClosure__Group_1__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup_1_0(), "rule__XClosure__Group_1_0__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup_1_0_0(), "rule__XClosure__Group_1_0_0__0"); - builder.put(grammarAccess.getXClosureAccess().getGroup_1_0_0_1(), "rule__XClosure__Group_1_0_0_1__0"); - builder.put(grammarAccess.getXExpressionInClosureAccess().getGroup(), "rule__XExpressionInClosure__Group__0"); - builder.put(grammarAccess.getXExpressionInClosureAccess().getGroup_1(), "rule__XExpressionInClosure__Group_1__0"); - builder.put(grammarAccess.getXShortClosureAccess().getGroup(), "rule__XShortClosure__Group__0"); - builder.put(grammarAccess.getXShortClosureAccess().getGroup_0(), "rule__XShortClosure__Group_0__0"); - builder.put(grammarAccess.getXShortClosureAccess().getGroup_0_0(), "rule__XShortClosure__Group_0_0__0"); - builder.put(grammarAccess.getXShortClosureAccess().getGroup_0_0_1(), "rule__XShortClosure__Group_0_0_1__0"); - builder.put(grammarAccess.getXShortClosureAccess().getGroup_0_0_1_1(), "rule__XShortClosure__Group_0_0_1_1__0"); - builder.put(grammarAccess.getXParenthesizedExpressionAccess().getGroup(), "rule__XParenthesizedExpression__Group__0"); - builder.put(grammarAccess.getXIfExpressionAccess().getGroup(), "rule__XIfExpression__Group__0"); - builder.put(grammarAccess.getXIfExpressionAccess().getGroup_6(), "rule__XIfExpression__Group_6__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup(), "rule__XSwitchExpression__Group__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0(), "rule__XSwitchExpression__Group_2_0__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0(), "rule__XSwitchExpression__Group_2_0_0__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0(), "rule__XSwitchExpression__Group_2_0_0_0__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1(), "rule__XSwitchExpression__Group_2_1__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0(), "rule__XSwitchExpression__Group_2_1_0__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0(), "rule__XSwitchExpression__Group_2_1_0_0__0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getGroup_5(), "rule__XSwitchExpression__Group_5__0"); - builder.put(grammarAccess.getXCasePartAccess().getGroup(), "rule__XCasePart__Group__0"); - builder.put(grammarAccess.getXCasePartAccess().getGroup_2(), "rule__XCasePart__Group_2__0"); - builder.put(grammarAccess.getXCasePartAccess().getGroup_3_0(), "rule__XCasePart__Group_3_0__0"); - builder.put(grammarAccess.getXForLoopExpressionAccess().getGroup(), "rule__XForLoopExpression__Group__0"); - builder.put(grammarAccess.getXForLoopExpressionAccess().getGroup_0(), "rule__XForLoopExpression__Group_0__0"); - builder.put(grammarAccess.getXForLoopExpressionAccess().getGroup_0_0(), "rule__XForLoopExpression__Group_0_0__0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getGroup(), "rule__XBasicForLoopExpression__Group__0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3(), "rule__XBasicForLoopExpression__Group_3__0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3_1(), "rule__XBasicForLoopExpression__Group_3_1__0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7(), "rule__XBasicForLoopExpression__Group_7__0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7_1(), "rule__XBasicForLoopExpression__Group_7_1__0"); - builder.put(grammarAccess.getXWhileExpressionAccess().getGroup(), "rule__XWhileExpression__Group__0"); - builder.put(grammarAccess.getXDoWhileExpressionAccess().getGroup(), "rule__XDoWhileExpression__Group__0"); - builder.put(grammarAccess.getXBlockExpressionAccess().getGroup(), "rule__XBlockExpression__Group__0"); - builder.put(grammarAccess.getXBlockExpressionAccess().getGroup_2(), "rule__XBlockExpression__Group_2__0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getGroup(), "rule__XVariableDeclaration__Group__0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0(), "rule__XVariableDeclaration__Group_2_0__0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0_0(), "rule__XVariableDeclaration__Group_2_0_0__0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getGroup_3(), "rule__XVariableDeclaration__Group_3__0"); - builder.put(grammarAccess.getJvmFormalParameterAccess().getGroup(), "rule__JvmFormalParameter__Group__0"); - builder.put(grammarAccess.getFullJvmFormalParameterAccess().getGroup(), "rule__FullJvmFormalParameter__Group__0"); - builder.put(grammarAccess.getXFeatureCallAccess().getGroup(), "rule__XFeatureCall__Group__0"); - builder.put(grammarAccess.getXFeatureCallAccess().getGroup_1(), "rule__XFeatureCall__Group_1__0"); - builder.put(grammarAccess.getXFeatureCallAccess().getGroup_1_2(), "rule__XFeatureCall__Group_1_2__0"); - builder.put(grammarAccess.getXFeatureCallAccess().getGroup_3(), "rule__XFeatureCall__Group_3__0"); - builder.put(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1(), "rule__XFeatureCall__Group_3_1_1__0"); - builder.put(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1(), "rule__XFeatureCall__Group_3_1_1_1__0"); - builder.put(grammarAccess.getXConstructorCallAccess().getGroup(), "rule__XConstructorCall__Group__0"); - builder.put(grammarAccess.getXConstructorCallAccess().getGroup_3(), "rule__XConstructorCall__Group_3__0"); - builder.put(grammarAccess.getXConstructorCallAccess().getGroup_3_2(), "rule__XConstructorCall__Group_3_2__0"); - builder.put(grammarAccess.getXConstructorCallAccess().getGroup_4(), "rule__XConstructorCall__Group_4__0"); - builder.put(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1(), "rule__XConstructorCall__Group_4_1_1__0"); - builder.put(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1_1(), "rule__XConstructorCall__Group_4_1_1_1__0"); - builder.put(grammarAccess.getXBooleanLiteralAccess().getGroup(), "rule__XBooleanLiteral__Group__0"); - builder.put(grammarAccess.getXNullLiteralAccess().getGroup(), "rule__XNullLiteral__Group__0"); - builder.put(grammarAccess.getXNumberLiteralAccess().getGroup(), "rule__XNumberLiteral__Group__0"); - builder.put(grammarAccess.getXStringLiteralAccess().getGroup(), "rule__XStringLiteral__Group__0"); - builder.put(grammarAccess.getXTypeLiteralAccess().getGroup(), "rule__XTypeLiteral__Group__0"); - builder.put(grammarAccess.getXThrowExpressionAccess().getGroup(), "rule__XThrowExpression__Group__0"); - builder.put(grammarAccess.getXReturnExpressionAccess().getGroup(), "rule__XReturnExpression__Group__0"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup(), "rule__XTryCatchFinallyExpression__Group__0"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0(), "rule__XTryCatchFinallyExpression__Group_3_0__0"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1(), "rule__XTryCatchFinallyExpression__Group_3_0_1__0"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1(), "rule__XTryCatchFinallyExpression__Group_3_1__0"); - builder.put(grammarAccess.getXSynchronizedExpressionAccess().getGroup(), "rule__XSynchronizedExpression__Group__0"); - builder.put(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0(), "rule__XSynchronizedExpression__Group_0__0"); - builder.put(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0_0(), "rule__XSynchronizedExpression__Group_0_0__0"); - builder.put(grammarAccess.getXCatchClauseAccess().getGroup(), "rule__XCatchClause__Group__0"); - builder.put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0"); - builder.put(grammarAccess.getQualifiedNameAccess().getGroup_1(), "rule__QualifiedName__Group_1__0"); - builder.put(grammarAccess.getNumberAccess().getGroup_1(), "rule__Number__Group_1__0"); - builder.put(grammarAccess.getNumberAccess().getGroup_1_1(), "rule__Number__Group_1_1__0"); - builder.put(grammarAccess.getStaticQualifierAccess().getGroup(), "rule__StaticQualifier__Group__0"); - builder.put(grammarAccess.getJvmTypeReferenceAccess().getGroup_0(), "rule__JvmTypeReference__Group_0__0"); - builder.put(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1(), "rule__JvmTypeReference__Group_0_1__0"); - builder.put(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1_0(), "rule__JvmTypeReference__Group_0_1_0__0"); - builder.put(grammarAccess.getArrayBracketsAccess().getGroup(), "rule__ArrayBrackets__Group__0"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getGroup(), "rule__XFunctionTypeRef__Group__0"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getGroup_0(), "rule__XFunctionTypeRef__Group_0__0"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1(), "rule__XFunctionTypeRef__Group_0_1__0"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1_1(), "rule__XFunctionTypeRef__Group_0_1_1__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup(), "rule__JvmParameterizedTypeReference__Group__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1(), "rule__JvmParameterizedTypeReference__Group_1__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_2(), "rule__JvmParameterizedTypeReference__Group_1_2__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4(), "rule__JvmParameterizedTypeReference__Group_1_4__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0(), "rule__JvmParameterizedTypeReference__Group_1_4_0__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0_0(), "rule__JvmParameterizedTypeReference__Group_1_4_0_0__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2(), "rule__JvmParameterizedTypeReference__Group_1_4_2__0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2_2(), "rule__JvmParameterizedTypeReference__Group_1_4_2_2__0"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup(), "rule__JvmWildcardTypeReference__Group__0"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_0(), "rule__JvmWildcardTypeReference__Group_2_0__0"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_1(), "rule__JvmWildcardTypeReference__Group_2_1__0"); - builder.put(grammarAccess.getJvmUpperBoundAccess().getGroup(), "rule__JvmUpperBound__Group__0"); - builder.put(grammarAccess.getJvmUpperBoundAndedAccess().getGroup(), "rule__JvmUpperBoundAnded__Group__0"); - builder.put(grammarAccess.getJvmLowerBoundAccess().getGroup(), "rule__JvmLowerBound__Group__0"); - builder.put(grammarAccess.getJvmLowerBoundAndedAccess().getGroup(), "rule__JvmLowerBoundAnded__Group__0"); - builder.put(grammarAccess.getJvmTypeParameterAccess().getGroup(), "rule__JvmTypeParameter__Group__0"); - builder.put(grammarAccess.getJvmTypeParameterAccess().getGroup_1(), "rule__JvmTypeParameter__Group_1__0"); - builder.put(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup(), "rule__QualifiedNameWithWildcard__Group__0"); - builder.put(grammarAccess.getXImportDeclarationAccess().getGroup(), "rule__XImportDeclaration__Group__0"); - builder.put(grammarAccess.getXImportDeclarationAccess().getGroup_1_0(), "rule__XImportDeclaration__Group_1_0__0"); - builder.put(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup(), "rule__QualifiedNameInStaticImport__Group__0"); - builder.put(grammarAccess.getEntitiesAccess().getImportSectionAssignment_0(), "rule__Entities__ImportSectionAssignment_0"); - builder.put(grammarAccess.getEntitiesAccess().getElementsAssignment_1(), "rule__Entities__ElementsAssignment_1"); - builder.put(grammarAccess.getPackageDeclarationAccess().getNameAssignment_1(), "rule__PackageDeclaration__NameAssignment_1"); - builder.put(grammarAccess.getPackageDeclarationAccess().getElementsAssignment_3(), "rule__PackageDeclaration__ElementsAssignment_3"); - builder.put(grammarAccess.getEntityAccess().getNameAssignment_1(), "rule__Entity__NameAssignment_1"); - builder.put(grammarAccess.getEntityAccess().getSuperTypeAssignment_2_1(), "rule__Entity__SuperTypeAssignment_2_1"); - builder.put(grammarAccess.getEntityAccess().getFeaturesAssignment_4(), "rule__Entity__FeaturesAssignment_4"); - builder.put(grammarAccess.getPropertyAccess().getNameAssignment_0(), "rule__Property__NameAssignment_0"); - builder.put(grammarAccess.getPropertyAccess().getTypeAssignment_2(), "rule__Property__TypeAssignment_2"); - builder.put(grammarAccess.getOperationAccess().getNameAssignment_1(), "rule__Operation__NameAssignment_1"); - builder.put(grammarAccess.getOperationAccess().getParamsAssignment_3_0(), "rule__Operation__ParamsAssignment_3_0"); - builder.put(grammarAccess.getOperationAccess().getParamsAssignment_3_1_1(), "rule__Operation__ParamsAssignment_3_1_1"); - builder.put(grammarAccess.getOperationAccess().getTypeAssignment_5_1(), "rule__Operation__TypeAssignment_5_1"); - builder.put(grammarAccess.getOperationAccess().getBodyAssignment_6(), "rule__Operation__BodyAssignment_6"); - builder.put(grammarAccess.getXAssignmentAccess().getFeatureAssignment_0_1(), "rule__XAssignment__FeatureAssignment_0_1"); - builder.put(grammarAccess.getXAssignmentAccess().getValueAssignment_0_3(), "rule__XAssignment__ValueAssignment_0_3"); - builder.put(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1(), "rule__XAssignment__FeatureAssignment_1_1_0_0_1"); - builder.put(grammarAccess.getXAssignmentAccess().getRightOperandAssignment_1_1_1(), "rule__XAssignment__RightOperandAssignment_1_1_1"); - builder.put(grammarAccess.getXOrExpressionAccess().getFeatureAssignment_1_0_0_1(), "rule__XOrExpression__FeatureAssignment_1_0_0_1"); - builder.put(grammarAccess.getXOrExpressionAccess().getRightOperandAssignment_1_1(), "rule__XOrExpression__RightOperandAssignment_1_1"); - builder.put(grammarAccess.getXAndExpressionAccess().getFeatureAssignment_1_0_0_1(), "rule__XAndExpression__FeatureAssignment_1_0_0_1"); - builder.put(grammarAccess.getXAndExpressionAccess().getRightOperandAssignment_1_1(), "rule__XAndExpression__RightOperandAssignment_1_1"); - builder.put(grammarAccess.getXEqualityExpressionAccess().getFeatureAssignment_1_0_0_1(), "rule__XEqualityExpression__FeatureAssignment_1_0_0_1"); - builder.put(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1(), "rule__XEqualityExpression__RightOperandAssignment_1_1"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1(), "rule__XRelationalExpression__TypeAssignment_1_0_1"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1(), "rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1"); - builder.put(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1(), "rule__XRelationalExpression__RightOperandAssignment_1_1_1"); - builder.put(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureAssignment_1_0_0_1(), "rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1"); - builder.put(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandAssignment_1_1(), "rule__XOtherOperatorExpression__RightOperandAssignment_1_1"); - builder.put(grammarAccess.getXAdditiveExpressionAccess().getFeatureAssignment_1_0_0_1(), "rule__XAdditiveExpression__FeatureAssignment_1_0_0_1"); - builder.put(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1(), "rule__XAdditiveExpression__RightOperandAssignment_1_1"); - builder.put(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureAssignment_1_0_0_1(), "rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1"); - builder.put(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandAssignment_1_1(), "rule__XMultiplicativeExpression__RightOperandAssignment_1_1"); - builder.put(grammarAccess.getXUnaryOperationAccess().getFeatureAssignment_0_1(), "rule__XUnaryOperation__FeatureAssignment_0_1"); - builder.put(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2(), "rule__XUnaryOperation__OperandAssignment_0_2"); - builder.put(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1(), "rule__XCastedExpression__TypeAssignment_1_1"); - builder.put(grammarAccess.getXPostfixOperationAccess().getFeatureAssignment_1_0_1(), "rule__XPostfixOperation__FeatureAssignment_1_0_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_0_0_0_1_1(), "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_0_0_0_2(), "rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getValueAssignment_1_0_1(), "rule__XMemberFeatureCall__ValueAssignment_1_0_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getNullSafeAssignment_1_1_0_0_1_1(), "rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_1_0_0_1_2(), "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_1(), "rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_2_1(), "rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_1_2(), "rule__XMemberFeatureCall__FeatureAssignment_1_1_2"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallAssignment_1_1_3_0(), "rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_0(), "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_0(), "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_1_1(), "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1"); - builder.put(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_4(), "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4"); - builder.put(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_0(), "rule__XSetLiteral__ElementsAssignment_3_0"); - builder.put(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1(), "rule__XSetLiteral__ElementsAssignment_3_1_1"); - builder.put(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0(), "rule__XListLiteral__ElementsAssignment_3_0"); - builder.put(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1(), "rule__XListLiteral__ElementsAssignment_3_1_1"); - builder.put(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_0(), "rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0"); - builder.put(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_1_1(), "rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1"); - builder.put(grammarAccess.getXClosureAccess().getExplicitSyntaxAssignment_1_0_1(), "rule__XClosure__ExplicitSyntaxAssignment_1_0_1"); - builder.put(grammarAccess.getXClosureAccess().getExpressionAssignment_2(), "rule__XClosure__ExpressionAssignment_2"); - builder.put(grammarAccess.getXExpressionInClosureAccess().getExpressionsAssignment_1_0(), "rule__XExpressionInClosure__ExpressionsAssignment_1_0"); - builder.put(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_0(), "rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0"); - builder.put(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_1_1(), "rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1"); - builder.put(grammarAccess.getXShortClosureAccess().getExplicitSyntaxAssignment_0_0_2(), "rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2"); - builder.put(grammarAccess.getXShortClosureAccess().getExpressionAssignment_1(), "rule__XShortClosure__ExpressionAssignment_1"); - builder.put(grammarAccess.getXIfExpressionAccess().getIfAssignment_3(), "rule__XIfExpression__IfAssignment_3"); - builder.put(grammarAccess.getXIfExpressionAccess().getThenAssignment_5(), "rule__XIfExpression__ThenAssignment_5"); - builder.put(grammarAccess.getXIfExpressionAccess().getElseAssignment_6_1(), "rule__XIfExpression__ElseAssignment_6_1"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_0_0_0_1(), "rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1(), "rule__XSwitchExpression__SwitchAssignment_2_0_1"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_1_0_0_0(), "rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_1_1(), "rule__XSwitchExpression__SwitchAssignment_2_1_1"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getCasesAssignment_4(), "rule__XSwitchExpression__CasesAssignment_4"); - builder.put(grammarAccess.getXSwitchExpressionAccess().getDefaultAssignment_5_2(), "rule__XSwitchExpression__DefaultAssignment_5_2"); - builder.put(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1(), "rule__XCasePart__TypeGuardAssignment_1"); - builder.put(grammarAccess.getXCasePartAccess().getCaseAssignment_2_1(), "rule__XCasePart__CaseAssignment_2_1"); - builder.put(grammarAccess.getXCasePartAccess().getThenAssignment_3_0_1(), "rule__XCasePart__ThenAssignment_3_0_1"); - builder.put(grammarAccess.getXCasePartAccess().getFallThroughAssignment_3_1(), "rule__XCasePart__FallThroughAssignment_3_1"); - builder.put(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamAssignment_0_0_3(), "rule__XForLoopExpression__DeclaredParamAssignment_0_0_3"); - builder.put(grammarAccess.getXForLoopExpressionAccess().getForExpressionAssignment_1(), "rule__XForLoopExpression__ForExpressionAssignment_1"); - builder.put(grammarAccess.getXForLoopExpressionAccess().getEachExpressionAssignment_3(), "rule__XForLoopExpression__EachExpressionAssignment_3"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_0(), "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_1_1(), "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionAssignment_5(), "rule__XBasicForLoopExpression__ExpressionAssignment_5"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_0(), "rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_1_1(), "rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1"); - builder.put(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionAssignment_9(), "rule__XBasicForLoopExpression__EachExpressionAssignment_9"); - builder.put(grammarAccess.getXWhileExpressionAccess().getPredicateAssignment_3(), "rule__XWhileExpression__PredicateAssignment_3"); - builder.put(grammarAccess.getXWhileExpressionAccess().getBodyAssignment_5(), "rule__XWhileExpression__BodyAssignment_5"); - builder.put(grammarAccess.getXDoWhileExpressionAccess().getBodyAssignment_2(), "rule__XDoWhileExpression__BodyAssignment_2"); - builder.put(grammarAccess.getXDoWhileExpressionAccess().getPredicateAssignment_5(), "rule__XDoWhileExpression__PredicateAssignment_5"); - builder.put(grammarAccess.getXBlockExpressionAccess().getExpressionsAssignment_2_0(), "rule__XBlockExpression__ExpressionsAssignment_2_0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getWriteableAssignment_1_0(), "rule__XVariableDeclaration__WriteableAssignment_1_0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0(), "rule__XVariableDeclaration__TypeAssignment_2_0_0_0"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1(), "rule__XVariableDeclaration__NameAssignment_2_0_0_1"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_1(), "rule__XVariableDeclaration__NameAssignment_2_1"); - builder.put(grammarAccess.getXVariableDeclarationAccess().getRightAssignment_3_1(), "rule__XVariableDeclaration__RightAssignment_3_1"); - builder.put(grammarAccess.getJvmFormalParameterAccess().getParameterTypeAssignment_0(), "rule__JvmFormalParameter__ParameterTypeAssignment_0"); - builder.put(grammarAccess.getJvmFormalParameterAccess().getNameAssignment_1(), "rule__JvmFormalParameter__NameAssignment_1"); - builder.put(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeAssignment_0(), "rule__FullJvmFormalParameter__ParameterTypeAssignment_0"); - builder.put(grammarAccess.getFullJvmFormalParameterAccess().getNameAssignment_1(), "rule__FullJvmFormalParameter__NameAssignment_1"); - builder.put(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_1(), "rule__XFeatureCall__TypeArgumentsAssignment_1_1"); - builder.put(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_2_1(), "rule__XFeatureCall__TypeArgumentsAssignment_1_2_1"); - builder.put(grammarAccess.getXFeatureCallAccess().getFeatureAssignment_2(), "rule__XFeatureCall__FeatureAssignment_2"); - builder.put(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallAssignment_3_0(), "rule__XFeatureCall__ExplicitOperationCallAssignment_3_0"); - builder.put(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_0(), "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0"); - builder.put(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_0(), "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0"); - builder.put(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_1_1(), "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1"); - builder.put(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_4(), "rule__XFeatureCall__FeatureCallArgumentsAssignment_4"); - builder.put(grammarAccess.getXConstructorCallAccess().getConstructorAssignment_2(), "rule__XConstructorCall__ConstructorAssignment_2"); - builder.put(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_1(), "rule__XConstructorCall__TypeArgumentsAssignment_3_1"); - builder.put(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_2_1(), "rule__XConstructorCall__TypeArgumentsAssignment_3_2_1"); - builder.put(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallAssignment_4_0(), "rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0"); - builder.put(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_0(), "rule__XConstructorCall__ArgumentsAssignment_4_1_0"); - builder.put(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_0(), "rule__XConstructorCall__ArgumentsAssignment_4_1_1_0"); - builder.put(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_1_1(), "rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1"); - builder.put(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_5(), "rule__XConstructorCall__ArgumentsAssignment_5"); - builder.put(grammarAccess.getXBooleanLiteralAccess().getIsTrueAssignment_1_1(), "rule__XBooleanLiteral__IsTrueAssignment_1_1"); - builder.put(grammarAccess.getXNumberLiteralAccess().getValueAssignment_1(), "rule__XNumberLiteral__ValueAssignment_1"); - builder.put(grammarAccess.getXStringLiteralAccess().getValueAssignment_1(), "rule__XStringLiteral__ValueAssignment_1"); - builder.put(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3(), "rule__XTypeLiteral__TypeAssignment_3"); - builder.put(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsAssignment_4(), "rule__XTypeLiteral__ArrayDimensionsAssignment_4"); - builder.put(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2(), "rule__XThrowExpression__ExpressionAssignment_2"); - builder.put(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2(), "rule__XReturnExpression__ExpressionAssignment_2"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2(), "rule__XTryCatchFinallyExpression__ExpressionAssignment_2"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0(), "rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1(), "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1"); - builder.put(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1(), "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1"); - builder.put(grammarAccess.getXSynchronizedExpressionAccess().getParamAssignment_1(), "rule__XSynchronizedExpression__ParamAssignment_1"); - builder.put(grammarAccess.getXSynchronizedExpressionAccess().getExpressionAssignment_3(), "rule__XSynchronizedExpression__ExpressionAssignment_3"); - builder.put(grammarAccess.getXCatchClauseAccess().getDeclaredParamAssignment_2(), "rule__XCatchClause__DeclaredParamAssignment_2"); - builder.put(grammarAccess.getXCatchClauseAccess().getExpressionAssignment_4(), "rule__XCatchClause__ExpressionAssignment_4"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_0(), "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_1_1(), "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1"); - builder.put(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2(), "rule__XFunctionTypeRef__ReturnTypeAssignment_2"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_0(), "rule__JvmParameterizedTypeReference__TypeAssignment_0"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_1(), "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_2_1(), "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_1_4_1(), "rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_1(), "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1"); - builder.put(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_2_1(), "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_0(), "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_1(), "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_0(), "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0"); - builder.put(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_1(), "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1"); - builder.put(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceAssignment_1(), "rule__JvmUpperBound__TypeReferenceAssignment_1"); - builder.put(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceAssignment_1(), "rule__JvmUpperBoundAnded__TypeReferenceAssignment_1"); - builder.put(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceAssignment_1(), "rule__JvmLowerBound__TypeReferenceAssignment_1"); - builder.put(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceAssignment_1(), "rule__JvmLowerBoundAnded__TypeReferenceAssignment_1"); - builder.put(grammarAccess.getJvmTypeParameterAccess().getNameAssignment_0(), "rule__JvmTypeParameter__NameAssignment_0"); - builder.put(grammarAccess.getJvmTypeParameterAccess().getConstraintsAssignment_1_0(), "rule__JvmTypeParameter__ConstraintsAssignment_1_0"); - builder.put(grammarAccess.getJvmTypeParameterAccess().getConstraintsAssignment_1_1(), "rule__JvmTypeParameter__ConstraintsAssignment_1_1"); - builder.put(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment(), "rule__XImportSection__ImportDeclarationsAssignment"); - builder.put(grammarAccess.getXImportDeclarationAccess().getStaticAssignment_1_0_0(), "rule__XImportDeclaration__StaticAssignment_1_0_0"); - builder.put(grammarAccess.getXImportDeclarationAccess().getExtensionAssignment_1_0_1(), "rule__XImportDeclaration__ExtensionAssignment_1_0_1"); - builder.put(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2(), "rule__XImportDeclaration__ImportedTypeAssignment_1_0_2"); - builder.put(grammarAccess.getXImportDeclarationAccess().getWildcardAssignment_1_0_3_0(), "rule__XImportDeclaration__WildcardAssignment_1_0_3_0"); - builder.put(grammarAccess.getXImportDeclarationAccess().getMemberNameAssignment_1_0_3_1(), "rule__XImportDeclaration__MemberNameAssignment_1_0_3_1"); - builder.put(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_1(), "rule__XImportDeclaration__ImportedTypeAssignment_1_1"); - builder.put(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceAssignment_1_2(), "rule__XImportDeclaration__ImportedNamespaceAssignment_1_2"); - } - } - - @Inject - private NameMappings nameMappings; - - @Inject - private EntitiesGrammarAccess grammarAccess; - - @Override - protected InternalEntitiesParser createParser() { - InternalEntitiesParser result = new InternalEntitiesParser(null); - result.setGrammarAccess(grammarAccess); - return result; - } - - @Override - protected String getRuleName(AbstractElement element) { - return nameMappings.getRuleName(element); - } - - @Override - protected String[] getInitialHiddenTokens() { - return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" }; - } - - public EntitiesGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(EntitiesGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - public NameMappings getNameMappings() { - return nameMappings; - } - - public void setNameMappings(NameMappings nameMappings) { - this.nameMappings = nameMappings; - } -} diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntities.g b/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntities.g deleted file mode 100644 index ec1149b9de8..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntities.g +++ /dev/null @@ -1,18232 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -grammar InternalEntities; - -options { - superClass=AbstractInternalContentAssistParser; - backtrack=true; -} - -@lexer::header { -package org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; -} - -@parser::header { -package org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.internal; - -import java.io.InputStream; -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.DFA; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - -} -@parser::members { - private EntitiesGrammarAccess grammarAccess; - - public void setGrammarAccess(EntitiesGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - @Override - protected Grammar getGrammar() { - return grammarAccess.getGrammar(); - } - - @Override - protected String getValueForTokenName(String tokenName) { - return tokenName; - } -} - -// Entry rule entryRuleEntities -entryRuleEntities -: -{ before(grammarAccess.getEntitiesRule()); } - ruleEntities -{ after(grammarAccess.getEntitiesRule()); } - EOF -; - -// Rule Entities -ruleEntities - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getEntitiesAccess().getGroup()); } - (rule__Entities__Group__0) - { after(grammarAccess.getEntitiesAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleAbstractElement -entryRuleAbstractElement -: -{ before(grammarAccess.getAbstractElementRule()); } - ruleAbstractElement -{ after(grammarAccess.getAbstractElementRule()); } - EOF -; - -// Rule AbstractElement -ruleAbstractElement - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getAbstractElementAccess().getAlternatives()); } - (rule__AbstractElement__Alternatives) - { after(grammarAccess.getAbstractElementAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRulePackageDeclaration -entryRulePackageDeclaration -: -{ before(grammarAccess.getPackageDeclarationRule()); } - rulePackageDeclaration -{ after(grammarAccess.getPackageDeclarationRule()); } - EOF -; - -// Rule PackageDeclaration -rulePackageDeclaration - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getPackageDeclarationAccess().getGroup()); } - (rule__PackageDeclaration__Group__0) - { after(grammarAccess.getPackageDeclarationAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleEntity -entryRuleEntity -: -{ before(grammarAccess.getEntityRule()); } - ruleEntity -{ after(grammarAccess.getEntityRule()); } - EOF -; - -// Rule Entity -ruleEntity - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getEntityAccess().getGroup()); } - (rule__Entity__Group__0) - { after(grammarAccess.getEntityAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleFeature -entryRuleFeature -: -{ before(grammarAccess.getFeatureRule()); } - ruleFeature -{ after(grammarAccess.getFeatureRule()); } - EOF -; - -// Rule Feature -ruleFeature - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getFeatureAccess().getAlternatives()); } - (rule__Feature__Alternatives) - { after(grammarAccess.getFeatureAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleProperty -entryRuleProperty -: -{ before(grammarAccess.getPropertyRule()); } - ruleProperty -{ after(grammarAccess.getPropertyRule()); } - EOF -; - -// Rule Property -ruleProperty - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getPropertyAccess().getGroup()); } - (rule__Property__Group__0) - { after(grammarAccess.getPropertyAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOperation -entryRuleOperation -: -{ before(grammarAccess.getOperationRule()); } - ruleOperation -{ after(grammarAccess.getOperationRule()); } - EOF -; - -// Rule Operation -ruleOperation - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOperationAccess().getGroup()); } - (rule__Operation__Group__0) - { after(grammarAccess.getOperationAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXExpression -entryRuleXExpression -: -{ before(grammarAccess.getXExpressionRule()); } - ruleXExpression -{ after(grammarAccess.getXExpressionRule()); } - EOF -; - -// Rule XExpression -ruleXExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); } - ruleXAssignment - { after(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXAssignment -entryRuleXAssignment -: -{ before(grammarAccess.getXAssignmentRule()); } - ruleXAssignment -{ after(grammarAccess.getXAssignmentRule()); } - EOF -; - -// Rule XAssignment -ruleXAssignment - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXAssignmentAccess().getAlternatives()); } - (rule__XAssignment__Alternatives) - { after(grammarAccess.getXAssignmentAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpSingleAssign -entryRuleOpSingleAssign -: -{ before(grammarAccess.getOpSingleAssignRule()); } - ruleOpSingleAssign -{ after(grammarAccess.getOpSingleAssignRule()); } - EOF -; - -// Rule OpSingleAssign -ruleOpSingleAssign - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); } - '=' - { after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpMultiAssign -entryRuleOpMultiAssign -: -{ before(grammarAccess.getOpMultiAssignRule()); } - ruleOpMultiAssign -{ after(grammarAccess.getOpMultiAssignRule()); } - EOF -; - -// Rule OpMultiAssign -ruleOpMultiAssign - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpMultiAssignAccess().getAlternatives()); } - (rule__OpMultiAssign__Alternatives) - { after(grammarAccess.getOpMultiAssignAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXOrExpression -entryRuleXOrExpression -: -{ before(grammarAccess.getXOrExpressionRule()); } - ruleXOrExpression -{ after(grammarAccess.getXOrExpressionRule()); } - EOF -; - -// Rule XOrExpression -ruleXOrExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXOrExpressionAccess().getGroup()); } - (rule__XOrExpression__Group__0) - { after(grammarAccess.getXOrExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpOr -entryRuleOpOr -: -{ before(grammarAccess.getOpOrRule()); } - ruleOpOr -{ after(grammarAccess.getOpOrRule()); } - EOF -; - -// Rule OpOr -ruleOpOr - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); } - '||' - { after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXAndExpression -entryRuleXAndExpression -: -{ before(grammarAccess.getXAndExpressionRule()); } - ruleXAndExpression -{ after(grammarAccess.getXAndExpressionRule()); } - EOF -; - -// Rule XAndExpression -ruleXAndExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXAndExpressionAccess().getGroup()); } - (rule__XAndExpression__Group__0) - { after(grammarAccess.getXAndExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpAnd -entryRuleOpAnd -: -{ before(grammarAccess.getOpAndRule()); } - ruleOpAnd -{ after(grammarAccess.getOpAndRule()); } - EOF -; - -// Rule OpAnd -ruleOpAnd - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); } - '&&' - { after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXEqualityExpression -entryRuleXEqualityExpression -: -{ before(grammarAccess.getXEqualityExpressionRule()); } - ruleXEqualityExpression -{ after(grammarAccess.getXEqualityExpressionRule()); } - EOF -; - -// Rule XEqualityExpression -ruleXEqualityExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXEqualityExpressionAccess().getGroup()); } - (rule__XEqualityExpression__Group__0) - { after(grammarAccess.getXEqualityExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpEquality -entryRuleOpEquality -: -{ before(grammarAccess.getOpEqualityRule()); } - ruleOpEquality -{ after(grammarAccess.getOpEqualityRule()); } - EOF -; - -// Rule OpEquality -ruleOpEquality - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpEqualityAccess().getAlternatives()); } - (rule__OpEquality__Alternatives) - { after(grammarAccess.getOpEqualityAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXRelationalExpression -entryRuleXRelationalExpression -: -{ before(grammarAccess.getXRelationalExpressionRule()); } - ruleXRelationalExpression -{ after(grammarAccess.getXRelationalExpressionRule()); } - EOF -; - -// Rule XRelationalExpression -ruleXRelationalExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup()); } - (rule__XRelationalExpression__Group__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpCompare -entryRuleOpCompare -: -{ before(grammarAccess.getOpCompareRule()); } - ruleOpCompare -{ after(grammarAccess.getOpCompareRule()); } - EOF -; - -// Rule OpCompare -ruleOpCompare - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpCompareAccess().getAlternatives()); } - (rule__OpCompare__Alternatives) - { after(grammarAccess.getOpCompareAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXOtherOperatorExpression -entryRuleXOtherOperatorExpression -: -{ before(grammarAccess.getXOtherOperatorExpressionRule()); } - ruleXOtherOperatorExpression -{ after(grammarAccess.getXOtherOperatorExpressionRule()); } - EOF -; - -// Rule XOtherOperatorExpression -ruleXOtherOperatorExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup()); } - (rule__XOtherOperatorExpression__Group__0) - { after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpOther -entryRuleOpOther -: -{ before(grammarAccess.getOpOtherRule()); } - ruleOpOther -{ after(grammarAccess.getOpOtherRule()); } - EOF -; - -// Rule OpOther -ruleOpOther - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpOtherAccess().getAlternatives()); } - (rule__OpOther__Alternatives) - { after(grammarAccess.getOpOtherAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXAdditiveExpression -entryRuleXAdditiveExpression -: -{ before(grammarAccess.getXAdditiveExpressionRule()); } - ruleXAdditiveExpression -{ after(grammarAccess.getXAdditiveExpressionRule()); } - EOF -; - -// Rule XAdditiveExpression -ruleXAdditiveExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXAdditiveExpressionAccess().getGroup()); } - (rule__XAdditiveExpression__Group__0) - { after(grammarAccess.getXAdditiveExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpAdd -entryRuleOpAdd -: -{ before(grammarAccess.getOpAddRule()); } - ruleOpAdd -{ after(grammarAccess.getOpAddRule()); } - EOF -; - -// Rule OpAdd -ruleOpAdd - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpAddAccess().getAlternatives()); } - (rule__OpAdd__Alternatives) - { after(grammarAccess.getOpAddAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXMultiplicativeExpression -entryRuleXMultiplicativeExpression -: -{ before(grammarAccess.getXMultiplicativeExpressionRule()); } - ruleXMultiplicativeExpression -{ after(grammarAccess.getXMultiplicativeExpressionRule()); } - EOF -; - -// Rule XMultiplicativeExpression -ruleXMultiplicativeExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup()); } - (rule__XMultiplicativeExpression__Group__0) - { after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpMulti -entryRuleOpMulti -: -{ before(grammarAccess.getOpMultiRule()); } - ruleOpMulti -{ after(grammarAccess.getOpMultiRule()); } - EOF -; - -// Rule OpMulti -ruleOpMulti - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpMultiAccess().getAlternatives()); } - (rule__OpMulti__Alternatives) - { after(grammarAccess.getOpMultiAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXUnaryOperation -entryRuleXUnaryOperation -: -{ before(grammarAccess.getXUnaryOperationRule()); } - ruleXUnaryOperation -{ after(grammarAccess.getXUnaryOperationRule()); } - EOF -; - -// Rule XUnaryOperation -ruleXUnaryOperation - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXUnaryOperationAccess().getAlternatives()); } - (rule__XUnaryOperation__Alternatives) - { after(grammarAccess.getXUnaryOperationAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpUnary -entryRuleOpUnary -: -{ before(grammarAccess.getOpUnaryRule()); } - ruleOpUnary -{ after(grammarAccess.getOpUnaryRule()); } - EOF -; - -// Rule OpUnary -ruleOpUnary - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpUnaryAccess().getAlternatives()); } - (rule__OpUnary__Alternatives) - { after(grammarAccess.getOpUnaryAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXCastedExpression -entryRuleXCastedExpression -: -{ before(grammarAccess.getXCastedExpressionRule()); } - ruleXCastedExpression -{ after(grammarAccess.getXCastedExpressionRule()); } - EOF -; - -// Rule XCastedExpression -ruleXCastedExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXCastedExpressionAccess().getGroup()); } - (rule__XCastedExpression__Group__0) - { after(grammarAccess.getXCastedExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXPostfixOperation -entryRuleXPostfixOperation -: -{ before(grammarAccess.getXPostfixOperationRule()); } - ruleXPostfixOperation -{ after(grammarAccess.getXPostfixOperationRule()); } - EOF -; - -// Rule XPostfixOperation -ruleXPostfixOperation - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXPostfixOperationAccess().getGroup()); } - (rule__XPostfixOperation__Group__0) - { after(grammarAccess.getXPostfixOperationAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOpPostfix -entryRuleOpPostfix -: -{ before(grammarAccess.getOpPostfixRule()); } - ruleOpPostfix -{ after(grammarAccess.getOpPostfixRule()); } - EOF -; - -// Rule OpPostfix -ruleOpPostfix - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOpPostfixAccess().getAlternatives()); } - (rule__OpPostfix__Alternatives) - { after(grammarAccess.getOpPostfixAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXMemberFeatureCall -entryRuleXMemberFeatureCall -: -{ before(grammarAccess.getXMemberFeatureCallRule()); } - ruleXMemberFeatureCall -{ after(grammarAccess.getXMemberFeatureCallRule()); } - EOF -; - -// Rule XMemberFeatureCall -ruleXMemberFeatureCall - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup()); } - (rule__XMemberFeatureCall__Group__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXPrimaryExpression -entryRuleXPrimaryExpression -: -{ before(grammarAccess.getXPrimaryExpressionRule()); } - ruleXPrimaryExpression -{ after(grammarAccess.getXPrimaryExpressionRule()); } - EOF -; - -// Rule XPrimaryExpression -ruleXPrimaryExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); } - (rule__XPrimaryExpression__Alternatives) - { after(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXLiteral -entryRuleXLiteral -: -{ before(grammarAccess.getXLiteralRule()); } - ruleXLiteral -{ after(grammarAccess.getXLiteralRule()); } - EOF -; - -// Rule XLiteral -ruleXLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXLiteralAccess().getAlternatives()); } - (rule__XLiteral__Alternatives) - { after(grammarAccess.getXLiteralAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXCollectionLiteral -entryRuleXCollectionLiteral -: -{ before(grammarAccess.getXCollectionLiteralRule()); } - ruleXCollectionLiteral -{ after(grammarAccess.getXCollectionLiteralRule()); } - EOF -; - -// Rule XCollectionLiteral -ruleXCollectionLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXCollectionLiteralAccess().getAlternatives()); } - (rule__XCollectionLiteral__Alternatives) - { after(grammarAccess.getXCollectionLiteralAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXSetLiteral -entryRuleXSetLiteral -: -{ before(grammarAccess.getXSetLiteralRule()); } - ruleXSetLiteral -{ after(grammarAccess.getXSetLiteralRule()); } - EOF -; - -// Rule XSetLiteral -ruleXSetLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXSetLiteralAccess().getGroup()); } - (rule__XSetLiteral__Group__0) - { after(grammarAccess.getXSetLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXListLiteral -entryRuleXListLiteral -: -{ before(grammarAccess.getXListLiteralRule()); } - ruleXListLiteral -{ after(grammarAccess.getXListLiteralRule()); } - EOF -; - -// Rule XListLiteral -ruleXListLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXListLiteralAccess().getGroup()); } - (rule__XListLiteral__Group__0) - { after(grammarAccess.getXListLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXClosure -entryRuleXClosure -: -{ before(grammarAccess.getXClosureRule()); } - ruleXClosure -{ after(grammarAccess.getXClosureRule()); } - EOF -; - -// Rule XClosure -ruleXClosure - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXClosureAccess().getGroup()); } - (rule__XClosure__Group__0) - { after(grammarAccess.getXClosureAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXExpressionInClosure -entryRuleXExpressionInClosure -: -{ before(grammarAccess.getXExpressionInClosureRule()); } - ruleXExpressionInClosure -{ after(grammarAccess.getXExpressionInClosureRule()); } - EOF -; - -// Rule XExpressionInClosure -ruleXExpressionInClosure - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXExpressionInClosureAccess().getGroup()); } - (rule__XExpressionInClosure__Group__0) - { after(grammarAccess.getXExpressionInClosureAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXShortClosure -entryRuleXShortClosure -: -{ before(grammarAccess.getXShortClosureRule()); } - ruleXShortClosure -{ after(grammarAccess.getXShortClosureRule()); } - EOF -; - -// Rule XShortClosure -ruleXShortClosure - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXShortClosureAccess().getGroup()); } - (rule__XShortClosure__Group__0) - { after(grammarAccess.getXShortClosureAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXParenthesizedExpression -entryRuleXParenthesizedExpression -: -{ before(grammarAccess.getXParenthesizedExpressionRule()); } - ruleXParenthesizedExpression -{ after(grammarAccess.getXParenthesizedExpressionRule()); } - EOF -; - -// Rule XParenthesizedExpression -ruleXParenthesizedExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXParenthesizedExpressionAccess().getGroup()); } - (rule__XParenthesizedExpression__Group__0) - { after(grammarAccess.getXParenthesizedExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXIfExpression -entryRuleXIfExpression -: -{ before(grammarAccess.getXIfExpressionRule()); } - ruleXIfExpression -{ after(grammarAccess.getXIfExpressionRule()); } - EOF -; - -// Rule XIfExpression -ruleXIfExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXIfExpressionAccess().getGroup()); } - (rule__XIfExpression__Group__0) - { after(grammarAccess.getXIfExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXSwitchExpression -entryRuleXSwitchExpression -: -{ before(grammarAccess.getXSwitchExpressionRule()); } - ruleXSwitchExpression -{ after(grammarAccess.getXSwitchExpressionRule()); } - EOF -; - -// Rule XSwitchExpression -ruleXSwitchExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup()); } - (rule__XSwitchExpression__Group__0) - { after(grammarAccess.getXSwitchExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXCasePart -entryRuleXCasePart -: -{ before(grammarAccess.getXCasePartRule()); } - ruleXCasePart -{ after(grammarAccess.getXCasePartRule()); } - EOF -; - -// Rule XCasePart -ruleXCasePart - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXCasePartAccess().getGroup()); } - (rule__XCasePart__Group__0) - { after(grammarAccess.getXCasePartAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXForLoopExpression -entryRuleXForLoopExpression -: -{ before(grammarAccess.getXForLoopExpressionRule()); } - ruleXForLoopExpression -{ after(grammarAccess.getXForLoopExpressionRule()); } - EOF -; - -// Rule XForLoopExpression -ruleXForLoopExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXForLoopExpressionAccess().getGroup()); } - (rule__XForLoopExpression__Group__0) - { after(grammarAccess.getXForLoopExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXBasicForLoopExpression -entryRuleXBasicForLoopExpression -: -{ before(grammarAccess.getXBasicForLoopExpressionRule()); } - ruleXBasicForLoopExpression -{ after(grammarAccess.getXBasicForLoopExpressionRule()); } - EOF -; - -// Rule XBasicForLoopExpression -ruleXBasicForLoopExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup()); } - (rule__XBasicForLoopExpression__Group__0) - { after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXWhileExpression -entryRuleXWhileExpression -: -{ before(grammarAccess.getXWhileExpressionRule()); } - ruleXWhileExpression -{ after(grammarAccess.getXWhileExpressionRule()); } - EOF -; - -// Rule XWhileExpression -ruleXWhileExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXWhileExpressionAccess().getGroup()); } - (rule__XWhileExpression__Group__0) - { after(grammarAccess.getXWhileExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXDoWhileExpression -entryRuleXDoWhileExpression -: -{ before(grammarAccess.getXDoWhileExpressionRule()); } - ruleXDoWhileExpression -{ after(grammarAccess.getXDoWhileExpressionRule()); } - EOF -; - -// Rule XDoWhileExpression -ruleXDoWhileExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXDoWhileExpressionAccess().getGroup()); } - (rule__XDoWhileExpression__Group__0) - { after(grammarAccess.getXDoWhileExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXBlockExpression -entryRuleXBlockExpression -: -{ before(grammarAccess.getXBlockExpressionRule()); } - ruleXBlockExpression -{ after(grammarAccess.getXBlockExpressionRule()); } - EOF -; - -// Rule XBlockExpression -ruleXBlockExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXBlockExpressionAccess().getGroup()); } - (rule__XBlockExpression__Group__0) - { after(grammarAccess.getXBlockExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXExpressionOrVarDeclaration -entryRuleXExpressionOrVarDeclaration -: -{ before(grammarAccess.getXExpressionOrVarDeclarationRule()); } - ruleXExpressionOrVarDeclaration -{ after(grammarAccess.getXExpressionOrVarDeclarationRule()); } - EOF -; - -// Rule XExpressionOrVarDeclaration -ruleXExpressionOrVarDeclaration - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXExpressionOrVarDeclarationAccess().getAlternatives()); } - (rule__XExpressionOrVarDeclaration__Alternatives) - { after(grammarAccess.getXExpressionOrVarDeclarationAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXVariableDeclaration -entryRuleXVariableDeclaration -: -{ before(grammarAccess.getXVariableDeclarationRule()); } - ruleXVariableDeclaration -{ after(grammarAccess.getXVariableDeclarationRule()); } - EOF -; - -// Rule XVariableDeclaration -ruleXVariableDeclaration - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXVariableDeclarationAccess().getGroup()); } - (rule__XVariableDeclaration__Group__0) - { after(grammarAccess.getXVariableDeclarationAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmFormalParameter -entryRuleJvmFormalParameter -: -{ before(grammarAccess.getJvmFormalParameterRule()); } - ruleJvmFormalParameter -{ after(grammarAccess.getJvmFormalParameterRule()); } - EOF -; - -// Rule JvmFormalParameter -ruleJvmFormalParameter - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmFormalParameterAccess().getGroup()); } - (rule__JvmFormalParameter__Group__0) - { after(grammarAccess.getJvmFormalParameterAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleFullJvmFormalParameter -entryRuleFullJvmFormalParameter -: -{ before(grammarAccess.getFullJvmFormalParameterRule()); } - ruleFullJvmFormalParameter -{ after(grammarAccess.getFullJvmFormalParameterRule()); } - EOF -; - -// Rule FullJvmFormalParameter -ruleFullJvmFormalParameter - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getFullJvmFormalParameterAccess().getGroup()); } - (rule__FullJvmFormalParameter__Group__0) - { after(grammarAccess.getFullJvmFormalParameterAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXFeatureCall -entryRuleXFeatureCall -: -{ before(grammarAccess.getXFeatureCallRule()); } - ruleXFeatureCall -{ after(grammarAccess.getXFeatureCallRule()); } - EOF -; - -// Rule XFeatureCall -ruleXFeatureCall - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXFeatureCallAccess().getGroup()); } - (rule__XFeatureCall__Group__0) - { after(grammarAccess.getXFeatureCallAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleFeatureCallID -entryRuleFeatureCallID -: -{ before(grammarAccess.getFeatureCallIDRule()); } - ruleFeatureCallID -{ after(grammarAccess.getFeatureCallIDRule()); } - EOF -; - -// Rule FeatureCallID -ruleFeatureCallID - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getFeatureCallIDAccess().getAlternatives()); } - (rule__FeatureCallID__Alternatives) - { after(grammarAccess.getFeatureCallIDAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleIdOrSuper -entryRuleIdOrSuper -: -{ before(grammarAccess.getIdOrSuperRule()); } - ruleIdOrSuper -{ after(grammarAccess.getIdOrSuperRule()); } - EOF -; - -// Rule IdOrSuper -ruleIdOrSuper - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getIdOrSuperAccess().getAlternatives()); } - (rule__IdOrSuper__Alternatives) - { after(grammarAccess.getIdOrSuperAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXConstructorCall -entryRuleXConstructorCall -: -{ before(grammarAccess.getXConstructorCallRule()); } - ruleXConstructorCall -{ after(grammarAccess.getXConstructorCallRule()); } - EOF -; - -// Rule XConstructorCall -ruleXConstructorCall - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXConstructorCallAccess().getGroup()); } - (rule__XConstructorCall__Group__0) - { after(grammarAccess.getXConstructorCallAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXBooleanLiteral -entryRuleXBooleanLiteral -: -{ before(grammarAccess.getXBooleanLiteralRule()); } - ruleXBooleanLiteral -{ after(grammarAccess.getXBooleanLiteralRule()); } - EOF -; - -// Rule XBooleanLiteral -ruleXBooleanLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXBooleanLiteralAccess().getGroup()); } - (rule__XBooleanLiteral__Group__0) - { after(grammarAccess.getXBooleanLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXNullLiteral -entryRuleXNullLiteral -: -{ before(grammarAccess.getXNullLiteralRule()); } - ruleXNullLiteral -{ after(grammarAccess.getXNullLiteralRule()); } - EOF -; - -// Rule XNullLiteral -ruleXNullLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXNullLiteralAccess().getGroup()); } - (rule__XNullLiteral__Group__0) - { after(grammarAccess.getXNullLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXNumberLiteral -entryRuleXNumberLiteral -: -{ before(grammarAccess.getXNumberLiteralRule()); } - ruleXNumberLiteral -{ after(grammarAccess.getXNumberLiteralRule()); } - EOF -; - -// Rule XNumberLiteral -ruleXNumberLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXNumberLiteralAccess().getGroup()); } - (rule__XNumberLiteral__Group__0) - { after(grammarAccess.getXNumberLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXStringLiteral -entryRuleXStringLiteral -: -{ before(grammarAccess.getXStringLiteralRule()); } - ruleXStringLiteral -{ after(grammarAccess.getXStringLiteralRule()); } - EOF -; - -// Rule XStringLiteral -ruleXStringLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXStringLiteralAccess().getGroup()); } - (rule__XStringLiteral__Group__0) - { after(grammarAccess.getXStringLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXTypeLiteral -entryRuleXTypeLiteral -: -{ before(grammarAccess.getXTypeLiteralRule()); } - ruleXTypeLiteral -{ after(grammarAccess.getXTypeLiteralRule()); } - EOF -; - -// Rule XTypeLiteral -ruleXTypeLiteral - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXTypeLiteralAccess().getGroup()); } - (rule__XTypeLiteral__Group__0) - { after(grammarAccess.getXTypeLiteralAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXThrowExpression -entryRuleXThrowExpression -: -{ before(grammarAccess.getXThrowExpressionRule()); } - ruleXThrowExpression -{ after(grammarAccess.getXThrowExpressionRule()); } - EOF -; - -// Rule XThrowExpression -ruleXThrowExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXThrowExpressionAccess().getGroup()); } - (rule__XThrowExpression__Group__0) - { after(grammarAccess.getXThrowExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXReturnExpression -entryRuleXReturnExpression -: -{ before(grammarAccess.getXReturnExpressionRule()); } - ruleXReturnExpression -{ after(grammarAccess.getXReturnExpressionRule()); } - EOF -; - -// Rule XReturnExpression -ruleXReturnExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXReturnExpressionAccess().getGroup()); } - (rule__XReturnExpression__Group__0) - { after(grammarAccess.getXReturnExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXTryCatchFinallyExpression -entryRuleXTryCatchFinallyExpression -: -{ before(grammarAccess.getXTryCatchFinallyExpressionRule()); } - ruleXTryCatchFinallyExpression -{ after(grammarAccess.getXTryCatchFinallyExpressionRule()); } - EOF -; - -// Rule XTryCatchFinallyExpression -ruleXTryCatchFinallyExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); } - (rule__XTryCatchFinallyExpression__Group__0) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXSynchronizedExpression -entryRuleXSynchronizedExpression -: -{ before(grammarAccess.getXSynchronizedExpressionRule()); } - ruleXSynchronizedExpression -{ after(grammarAccess.getXSynchronizedExpressionRule()); } - EOF -; - -// Rule XSynchronizedExpression -ruleXSynchronizedExpression - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXSynchronizedExpressionAccess().getGroup()); } - (rule__XSynchronizedExpression__Group__0) - { after(grammarAccess.getXSynchronizedExpressionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXCatchClause -entryRuleXCatchClause -: -{ before(grammarAccess.getXCatchClauseRule()); } - ruleXCatchClause -{ after(grammarAccess.getXCatchClauseRule()); } - EOF -; - -// Rule XCatchClause -ruleXCatchClause - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXCatchClauseAccess().getGroup()); } - (rule__XCatchClause__Group__0) - { after(grammarAccess.getXCatchClauseAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleQualifiedName -entryRuleQualifiedName -: -{ before(grammarAccess.getQualifiedNameRule()); } - ruleQualifiedName -{ after(grammarAccess.getQualifiedNameRule()); } - EOF -; - -// Rule QualifiedName -ruleQualifiedName - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getQualifiedNameAccess().getGroup()); } - (rule__QualifiedName__Group__0) - { after(grammarAccess.getQualifiedNameAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleNumber -entryRuleNumber -@init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -} -: -{ before(grammarAccess.getNumberRule()); } - ruleNumber -{ after(grammarAccess.getNumberRule()); } - EOF -; -finally { - myHiddenTokenState.restore(); -} - -// Rule Number -ruleNumber - @init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getNumberAccess().getAlternatives()); } - (rule__Number__Alternatives) - { after(grammarAccess.getNumberAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); - myHiddenTokenState.restore(); -} - -// Entry rule entryRuleJvmTypeReference -entryRuleJvmTypeReference -: -{ before(grammarAccess.getJvmTypeReferenceRule()); } - ruleJvmTypeReference -{ after(grammarAccess.getJvmTypeReferenceRule()); } - EOF -; - -// Rule JvmTypeReference -ruleJvmTypeReference - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmTypeReferenceAccess().getAlternatives()); } - (rule__JvmTypeReference__Alternatives) - { after(grammarAccess.getJvmTypeReferenceAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleArrayBrackets -entryRuleArrayBrackets -: -{ before(grammarAccess.getArrayBracketsRule()); } - ruleArrayBrackets -{ after(grammarAccess.getArrayBracketsRule()); } - EOF -; - -// Rule ArrayBrackets -ruleArrayBrackets - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getArrayBracketsAccess().getGroup()); } - (rule__ArrayBrackets__Group__0) - { after(grammarAccess.getArrayBracketsAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXFunctionTypeRef -entryRuleXFunctionTypeRef -: -{ before(grammarAccess.getXFunctionTypeRefRule()); } - ruleXFunctionTypeRef -{ after(grammarAccess.getXFunctionTypeRefRule()); } - EOF -; - -// Rule XFunctionTypeRef -ruleXFunctionTypeRef - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXFunctionTypeRefAccess().getGroup()); } - (rule__XFunctionTypeRef__Group__0) - { after(grammarAccess.getXFunctionTypeRefAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmParameterizedTypeReference -entryRuleJvmParameterizedTypeReference -: -{ before(grammarAccess.getJvmParameterizedTypeReferenceRule()); } - ruleJvmParameterizedTypeReference -{ after(grammarAccess.getJvmParameterizedTypeReferenceRule()); } - EOF -; - -// Rule JvmParameterizedTypeReference -ruleJvmParameterizedTypeReference - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup()); } - (rule__JvmParameterizedTypeReference__Group__0) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmArgumentTypeReference -entryRuleJvmArgumentTypeReference -: -{ before(grammarAccess.getJvmArgumentTypeReferenceRule()); } - ruleJvmArgumentTypeReference -{ after(grammarAccess.getJvmArgumentTypeReferenceRule()); } - EOF -; - -// Rule JvmArgumentTypeReference -ruleJvmArgumentTypeReference - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmArgumentTypeReferenceAccess().getAlternatives()); } - (rule__JvmArgumentTypeReference__Alternatives) - { after(grammarAccess.getJvmArgumentTypeReferenceAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmWildcardTypeReference -entryRuleJvmWildcardTypeReference -: -{ before(grammarAccess.getJvmWildcardTypeReferenceRule()); } - ruleJvmWildcardTypeReference -{ after(grammarAccess.getJvmWildcardTypeReferenceRule()); } - EOF -; - -// Rule JvmWildcardTypeReference -ruleJvmWildcardTypeReference - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup()); } - (rule__JvmWildcardTypeReference__Group__0) - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmUpperBound -entryRuleJvmUpperBound -: -{ before(grammarAccess.getJvmUpperBoundRule()); } - ruleJvmUpperBound -{ after(grammarAccess.getJvmUpperBoundRule()); } - EOF -; - -// Rule JvmUpperBound -ruleJvmUpperBound - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmUpperBoundAccess().getGroup()); } - (rule__JvmUpperBound__Group__0) - { after(grammarAccess.getJvmUpperBoundAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmUpperBoundAnded -entryRuleJvmUpperBoundAnded -: -{ before(grammarAccess.getJvmUpperBoundAndedRule()); } - ruleJvmUpperBoundAnded -{ after(grammarAccess.getJvmUpperBoundAndedRule()); } - EOF -; - -// Rule JvmUpperBoundAnded -ruleJvmUpperBoundAnded - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmUpperBoundAndedAccess().getGroup()); } - (rule__JvmUpperBoundAnded__Group__0) - { after(grammarAccess.getJvmUpperBoundAndedAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmLowerBound -entryRuleJvmLowerBound -: -{ before(grammarAccess.getJvmLowerBoundRule()); } - ruleJvmLowerBound -{ after(grammarAccess.getJvmLowerBoundRule()); } - EOF -; - -// Rule JvmLowerBound -ruleJvmLowerBound - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmLowerBoundAccess().getGroup()); } - (rule__JvmLowerBound__Group__0) - { after(grammarAccess.getJvmLowerBoundAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleJvmLowerBoundAnded -entryRuleJvmLowerBoundAnded -: -{ before(grammarAccess.getJvmLowerBoundAndedRule()); } - ruleJvmLowerBoundAnded -{ after(grammarAccess.getJvmLowerBoundAndedRule()); } - EOF -; - -// Rule JvmLowerBoundAnded -ruleJvmLowerBoundAnded - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getJvmLowerBoundAndedAccess().getGroup()); } - (rule__JvmLowerBoundAnded__Group__0) - { after(grammarAccess.getJvmLowerBoundAndedAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleQualifiedNameWithWildcard -entryRuleQualifiedNameWithWildcard -: -{ before(grammarAccess.getQualifiedNameWithWildcardRule()); } - ruleQualifiedNameWithWildcard -{ after(grammarAccess.getQualifiedNameWithWildcardRule()); } - EOF -; - -// Rule QualifiedNameWithWildcard -ruleQualifiedNameWithWildcard - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); } - (rule__QualifiedNameWithWildcard__Group__0) - { after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleValidID -entryRuleValidID -: -{ before(grammarAccess.getValidIDRule()); } - ruleValidID -{ after(grammarAccess.getValidIDRule()); } - EOF -; - -// Rule ValidID -ruleValidID - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); } - RULE_ID - { after(grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXImportSection -entryRuleXImportSection -: -{ before(grammarAccess.getXImportSectionRule()); } - ruleXImportSection -{ after(grammarAccess.getXImportSectionRule()); } - EOF -; - -// Rule XImportSection -ruleXImportSection - @init { - int stackSize = keepStackSize(); - } - : - ( - ( - { before(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); } - (rule__XImportSection__ImportDeclarationsAssignment) - { after(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); } - ) - ( - { before(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); } - (rule__XImportSection__ImportDeclarationsAssignment)* - { after(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); } - ) - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleXImportDeclaration -entryRuleXImportDeclaration -: -{ before(grammarAccess.getXImportDeclarationRule()); } - ruleXImportDeclaration -{ after(grammarAccess.getXImportDeclarationRule()); } - EOF -; - -// Rule XImportDeclaration -ruleXImportDeclaration - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getXImportDeclarationAccess().getGroup()); } - (rule__XImportDeclaration__Group__0) - { after(grammarAccess.getXImportDeclarationAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleQualifiedNameInStaticImport -entryRuleQualifiedNameInStaticImport -: -{ before(grammarAccess.getQualifiedNameInStaticImportRule()); } - ruleQualifiedNameInStaticImport -{ after(grammarAccess.getQualifiedNameInStaticImportRule()); } - EOF -; - -// Rule QualifiedNameInStaticImport -ruleQualifiedNameInStaticImport - @init { - int stackSize = keepStackSize(); - } - : - ( - ( - { before(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); } - (rule__QualifiedNameInStaticImport__Group__0) - { after(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); } - ) - ( - { before(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); } - (rule__QualifiedNameInStaticImport__Group__0)* - { after(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); } - ) - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__AbstractElement__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0()); } - rulePackageDeclaration - { after(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1()); } - ruleEntity - { after(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Feature__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0()); } - ruleProperty - { after(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1()); } - ruleOperation - { after(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAssignmentAccess().getGroup_0()); } - (rule__XAssignment__Group_0__0) - { after(grammarAccess.getXAssignmentAccess().getGroup_0()); } - ) - | - ( - { before(grammarAccess.getXAssignmentAccess().getGroup_1()); } - (rule__XAssignment__Group_1__0) - { after(grammarAccess.getXAssignmentAccess().getGroup_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); } - '+=' - { after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); } - '-=' - { after(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); } - ) - | - ( - { before(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); } - '*=' - { after(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); } - ) - | - ( - { before(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); } - '/=' - { after(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); } - ) - | - ( - { before(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); } - '%=' - { after(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); } - ) - | - ( - { before(grammarAccess.getOpMultiAssignAccess().getGroup_5()); } - (rule__OpMultiAssign__Group_5__0) - { after(grammarAccess.getOpMultiAssignAccess().getGroup_5()); } - ) - | - ( - { before(grammarAccess.getOpMultiAssignAccess().getGroup_6()); } - (rule__OpMultiAssign__Group_6__0) - { after(grammarAccess.getOpMultiAssignAccess().getGroup_6()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpEquality__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); } - '==' - { after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); } - '!=' - { after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); } - ) - | - ( - { before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); } - '===' - { after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); } - ) - | - ( - { before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); } - '!==' - { after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Alternatives_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0()); } - (rule__XRelationalExpression__Group_1_0__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0()); } - ) - | - ( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1()); } - (rule__XRelationalExpression__Group_1_1__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpCompare__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); } - '>=' - { after(grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpCompareAccess().getGroup_1()); } - (rule__OpCompare__Group_1__0) - { after(grammarAccess.getOpCompareAccess().getGroup_1()); } - ) - | - ( - { before(grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); } - '>' - { after(grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); } - ) - | - ( - { before(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); } - '<' - { after(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); } - '->' - { after(grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); } - '..<' - { after(grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getGroup_2()); } - (rule__OpOther__Group_2__0) - { after(grammarAccess.getOpOtherAccess().getGroup_2()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); } - '..' - { after(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); } - '=>' - { after(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getGroup_5()); } - (rule__OpOther__Group_5__0) - { after(grammarAccess.getOpOtherAccess().getGroup_5()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getGroup_6()); } - (rule__OpOther__Group_6__0) - { after(grammarAccess.getOpOtherAccess().getGroup_6()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); } - '<>' - { after(grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); } - '?:' - { after(grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Alternatives_5_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpOtherAccess().getGroup_5_1_0()); } - (rule__OpOther__Group_5_1_0__0) - { after(grammarAccess.getOpOtherAccess().getGroup_5_1_0()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); } - '>' - { after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Alternatives_6_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpOtherAccess().getGroup_6_1_0()); } - (rule__OpOther__Group_6_1_0__0) - { after(grammarAccess.getOpOtherAccess().getGroup_6_1_0()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); } - '<' - { after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); } - ) - | - ( - { before(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); } - '=>' - { after(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpAdd__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); } - '+' - { after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); } - '-' - { after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMulti__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); } - '*' - { after(grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); } - '**' - { after(grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); } - ) - | - ( - { before(grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); } - '/' - { after(grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); } - ) - | - ( - { before(grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); } - '%' - { after(grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXUnaryOperationAccess().getGroup_0()); } - (rule__XUnaryOperation__Group_0__0) - { after(grammarAccess.getXUnaryOperationAccess().getGroup_0()); } - ) - | - ( - { before(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); } - ruleXCastedExpression - { after(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpUnary__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); } - '!' - { after(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); } - '-' - { after(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); } - ) - | - ( - { before(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); } - '+' - { after(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpPostfix__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); } - '++' - { after(grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); } - ) - | - ( - { before(grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); } - '--' - { after(grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Alternatives_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0()); } - (rule__XMemberFeatureCall__Group_1_0__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0()); } - ) - | - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1()); } - (rule__XMemberFeatureCall__Group_1_1__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); } - '.' - { after(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); } - ) - | - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_0_0_0_1_1()); } - (rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_0_0_0_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); } - '.' - { after(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); } - ) - | - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getNullSafeAssignment_1_1_0_0_1_1()); } - (rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getNullSafeAssignment_1_1_0_0_1_1()); } - ) - | - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_1_0_0_1_2()); } - (rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2) - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_1_0_0_1_2()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Alternatives_1_1_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_0()); } - (rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0) - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_0()); } - ) - | - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1()); } - (rule__XMemberFeatureCall__Group_1_1_3_1_1__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XPrimaryExpression__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); } - ruleXConstructorCall - { after(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); } - ruleXBlockExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); } - ruleXSwitchExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); } - (ruleXSynchronizedExpression) - { after(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); } - ruleXFeatureCall - { after(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); } - ruleXLiteral - { after(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); } - ruleXIfExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); } - (ruleXForLoopExpression) - { after(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); } - ruleXBasicForLoopExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); } - ruleXWhileExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); } - ruleXDoWhileExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); } - ruleXThrowExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); } - ruleXReturnExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); } - ruleXTryCatchFinallyExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); } - ) - | - ( - { before(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); } - ruleXParenthesizedExpression - { after(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XLiteral__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); } - ruleXCollectionLiteral - { after(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); } - (ruleXClosure) - { after(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); } - ) - | - ( - { before(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); } - ruleXBooleanLiteral - { after(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); } - ) - | - ( - { before(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); } - ruleXNumberLiteral - { after(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); } - ) - | - ( - { before(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); } - ruleXNullLiteral - { after(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); } - ) - | - ( - { before(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); } - ruleXStringLiteral - { after(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); } - ) - | - ( - { before(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); } - ruleXTypeLiteral - { after(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCollectionLiteral__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); } - ruleXSetLiteral - { after(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); } - ruleXListLiteral - { after(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Alternatives_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0()); } - (rule__XSwitchExpression__Group_2_0__0) - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0()); } - ) - | - ( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1()); } - (rule__XSwitchExpression__Group_2_1__0) - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Alternatives_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCasePartAccess().getGroup_3_0()); } - (rule__XCasePart__Group_3_0__0) - { after(grammarAccess.getXCasePartAccess().getGroup_3_0()); } - ) - | - ( - { before(grammarAccess.getXCasePartAccess().getFallThroughAssignment_3_1()); } - (rule__XCasePart__FallThroughAssignment_3_1) - { after(grammarAccess.getXCasePartAccess().getFallThroughAssignment_3_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionOrVarDeclaration__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); } - ruleXVariableDeclaration - { after(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); } - ruleXExpression - { after(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Alternatives_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getWriteableAssignment_1_0()); } - (rule__XVariableDeclaration__WriteableAssignment_1_0) - { after(grammarAccess.getXVariableDeclarationAccess().getWriteableAssignment_1_0()); } - ) - | - ( - { before(grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); } - 'val' - { after(grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Alternatives_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0()); } - (rule__XVariableDeclaration__Group_2_0__0) - { after(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0()); } - ) - | - ( - { before(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_1()); } - (rule__XVariableDeclaration__NameAssignment_2_1) - { after(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Alternatives_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_0()); } - (rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0) - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_0()); } - ) - | - ( - { before(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1()); } - (rule__XFeatureCall__Group_3_1_1__0) - { after(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__FeatureCallID__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); } - ruleValidID - { after(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); } - 'extends' - { after(grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); } - ) - | - ( - { before(grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); } - 'static' - { after(grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); } - ) - | - ( - { before(grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); } - 'import' - { after(grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); } - ) - | - ( - { before(grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); } - 'extension' - { after(grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__IdOrSuper__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); } - ruleFeatureCallID - { after(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); } - 'super' - { after(grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Alternatives_4_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_0()); } - (rule__XConstructorCall__ArgumentsAssignment_4_1_0) - { after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_0()); } - ) - | - ( - { before(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1()); } - (rule__XConstructorCall__Group_4_1_1__0) - { after(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBooleanLiteral__Alternatives_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); } - 'false' - { after(grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); } - ) - | - ( - { before(grammarAccess.getXBooleanLiteralAccess().getIsTrueAssignment_1_1()); } - (rule__XBooleanLiteral__IsTrueAssignment_1_1) - { after(grammarAccess.getXBooleanLiteralAccess().getIsTrueAssignment_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Alternatives_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); } - (rule__XTryCatchFinallyExpression__Group_3_0__0) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); } - ) - | - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); } - (rule__XTryCatchFinallyExpression__Group_3_1__0) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); } - RULE_HEX - { after(grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getNumberAccess().getGroup_1()); } - (rule__Number__Group_1__0) - { after(grammarAccess.getNumberAccess().getGroup_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Alternatives_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); } - RULE_INT - { after(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); } - ) - | - ( - { before(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); } - RULE_DECIMAL - { after(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Alternatives_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); } - RULE_INT - { after(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); } - ) - | - ( - { before(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); } - RULE_DECIMAL - { after(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmTypeReferenceAccess().getGroup_0()); } - (rule__JvmTypeReference__Group_0__0) - { after(grammarAccess.getJvmTypeReferenceAccess().getGroup_0()); } - ) - | - ( - { before(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); } - ruleXFunctionTypeRef - { after(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmArgumentTypeReference__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); } - ruleJvmTypeReference - { after(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); } - ruleJvmWildcardTypeReference - { after(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Alternatives_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_0()); } - (rule__JvmWildcardTypeReference__Group_2_0__0) - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_0()); } - ) - | - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_1()); } - (rule__JvmWildcardTypeReference__Group_2_1__0) - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Alternatives_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getGroup_1_0()); } - (rule__XImportDeclaration__Group_1_0__0) - { after(grammarAccess.getXImportDeclarationAccess().getGroup_1_0()); } - ) - | - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_1()); } - (rule__XImportDeclaration__ImportedTypeAssignment_1_1) - { after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_1()); } - ) - | - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceAssignment_1_2()); } - (rule__XImportDeclaration__ImportedNamespaceAssignment_1_2) - { after(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceAssignment_1_2()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Alternatives_1_0_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getWildcardAssignment_1_0_3_0()); } - (rule__XImportDeclaration__WildcardAssignment_1_0_3_0) - { after(grammarAccess.getXImportDeclarationAccess().getWildcardAssignment_1_0_3_0()); } - ) - | - ( - { before(grammarAccess.getXImportDeclarationAccess().getMemberNameAssignment_1_0_3_1()); } - (rule__XImportDeclaration__MemberNameAssignment_1_0_3_1) - { after(grammarAccess.getXImportDeclarationAccess().getMemberNameAssignment_1_0_3_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entities__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entities__Group__0__Impl - rule__Entities__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entities__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntitiesAccess().getImportSectionAssignment_0()); } - (rule__Entities__ImportSectionAssignment_0)? - { after(grammarAccess.getEntitiesAccess().getImportSectionAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entities__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entities__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Entities__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntitiesAccess().getElementsAssignment_1()); } - (rule__Entities__ElementsAssignment_1)* - { after(grammarAccess.getEntitiesAccess().getElementsAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__PackageDeclaration__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__PackageDeclaration__Group__0__Impl - rule__PackageDeclaration__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0()); } - 'package' - { after(grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__PackageDeclaration__Group__1__Impl - rule__PackageDeclaration__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPackageDeclarationAccess().getNameAssignment_1()); } - (rule__PackageDeclaration__NameAssignment_1) - { after(grammarAccess.getPackageDeclarationAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__PackageDeclaration__Group__2__Impl - rule__PackageDeclaration__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2()); } - '{' - { after(grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__PackageDeclaration__Group__3__Impl - rule__PackageDeclaration__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPackageDeclarationAccess().getElementsAssignment_3()); } - (rule__PackageDeclaration__ElementsAssignment_3)* - { after(grammarAccess.getPackageDeclarationAccess().getElementsAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__PackageDeclaration__Group__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); } - '}' - { after(grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Entity__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group__0__Impl - rule__Entity__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getEntityKeyword_0()); } - 'entity' - { after(grammarAccess.getEntityAccess().getEntityKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group__1__Impl - rule__Entity__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getNameAssignment_1()); } - (rule__Entity__NameAssignment_1) - { after(grammarAccess.getEntityAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group__2__Impl - rule__Entity__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getGroup_2()); } - (rule__Entity__Group_2__0)? - { after(grammarAccess.getEntityAccess().getGroup_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group__3__Impl - rule__Entity__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3()); } - '{' - { after(grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group__4__Impl - rule__Entity__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getFeaturesAssignment_4()); } - (rule__Entity__FeaturesAssignment_4)* - { after(grammarAccess.getEntityAccess().getFeaturesAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group__5__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5()); } - '}' - { after(grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Entity__Group_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group_2__0__Impl - rule__Entity__Group_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getExtendsKeyword_2_0()); } - 'extends' - { after(grammarAccess.getEntityAccess().getExtendsKeyword_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Entity__Group_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__Group_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEntityAccess().getSuperTypeAssignment_2_1()); } - (rule__Entity__SuperTypeAssignment_2_1) - { after(grammarAccess.getEntityAccess().getSuperTypeAssignment_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Property__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Property__Group__0__Impl - rule__Property__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPropertyAccess().getNameAssignment_0()); } - (rule__Property__NameAssignment_0) - { after(grammarAccess.getPropertyAccess().getNameAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Property__Group__1__Impl - rule__Property__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPropertyAccess().getColonKeyword_1()); } - ':' - { after(grammarAccess.getPropertyAccess().getColonKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Property__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getPropertyAccess().getTypeAssignment_2()); } - (rule__Property__TypeAssignment_2) - { after(grammarAccess.getPropertyAccess().getTypeAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Operation__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__0__Impl - rule__Operation__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getOpKeyword_0()); } - 'op' - { after(grammarAccess.getOperationAccess().getOpKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__1__Impl - rule__Operation__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getNameAssignment_1()); } - (rule__Operation__NameAssignment_1) - { after(grammarAccess.getOperationAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__2__Impl - rule__Operation__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2()); } - '(' - { after(grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__3__Impl - rule__Operation__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getGroup_3()); } - (rule__Operation__Group_3__0)? - { after(grammarAccess.getOperationAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__4__Impl - rule__Operation__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getRightParenthesisKeyword_4()); } - ')' - { after(grammarAccess.getOperationAccess().getRightParenthesisKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__5__Impl - rule__Operation__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getGroup_5()); } - (rule__Operation__Group_5__0)? - { after(grammarAccess.getOperationAccess().getGroup_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group__6__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getBodyAssignment_6()); } - (rule__Operation__BodyAssignment_6) - { after(grammarAccess.getOperationAccess().getBodyAssignment_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Operation__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group_3__0__Impl - rule__Operation__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getParamsAssignment_3_0()); } - (rule__Operation__ParamsAssignment_3_0) - { after(grammarAccess.getOperationAccess().getParamsAssignment_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group_3__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getGroup_3_1()); } - (rule__Operation__Group_3_1__0)* - { after(grammarAccess.getOperationAccess().getGroup_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Operation__Group_3_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group_3_1__0__Impl - rule__Operation__Group_3_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_3_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getCommaKeyword_3_1_0()); } - ',' - { after(grammarAccess.getOperationAccess().getCommaKeyword_3_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_3_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group_3_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_3_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getParamsAssignment_3_1_1()); } - (rule__Operation__ParamsAssignment_3_1_1) - { after(grammarAccess.getOperationAccess().getParamsAssignment_3_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Operation__Group_5__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group_5__0__Impl - rule__Operation__Group_5__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_5__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getColonKeyword_5_0()); } - ':' - { after(grammarAccess.getOperationAccess().getColonKeyword_5_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_5__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Operation__Group_5__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__Group_5__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOperationAccess().getTypeAssignment_5_1()); } - (rule__Operation__TypeAssignment_5_1) - { after(grammarAccess.getOperationAccess().getTypeAssignment_5_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAssignment__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_0__0__Impl - rule__XAssignment__Group_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0()); } - () - { after(grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_0__1__Impl - rule__XAssignment__Group_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_0_1()); } - (rule__XAssignment__FeatureAssignment_0_1) - { after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_0__2__Impl - rule__XAssignment__Group_0__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); } - ruleOpSingleAssign - { after(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_0__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_0__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getValueAssignment_0_3()); } - (rule__XAssignment__ValueAssignment_0_3) - { after(grammarAccess.getXAssignmentAccess().getValueAssignment_0_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAssignment__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1__0__Impl - rule__XAssignment__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); } - ruleXOrExpression - { after(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getGroup_1_1()); } - (rule__XAssignment__Group_1_1__0)? - { after(grammarAccess.getXAssignmentAccess().getGroup_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAssignment__Group_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1_1__0__Impl - rule__XAssignment__Group_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); } - (rule__XAssignment__Group_1_1_0__0) - { after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getRightOperandAssignment_1_1_1()); } - (rule__XAssignment__RightOperandAssignment_1_1_1) - { after(grammarAccess.getXAssignmentAccess().getRightOperandAssignment_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAssignment__Group_1_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); } - (rule__XAssignment__Group_1_1_0_0__0) - { after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAssignment__Group_1_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1_1_0_0__0__Impl - rule__XAssignment__Group_1_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); } - () - { after(grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAssignment__Group_1_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__Group_1_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); } - (rule__XAssignment__FeatureAssignment_1_1_0_0_1) - { after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpMultiAssign__Group_5__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpMultiAssign__Group_5__0__Impl - rule__OpMultiAssign__Group_5__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_5__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); } - '<' - { after(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_5__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpMultiAssign__Group_5__1__Impl - rule__OpMultiAssign__Group_5__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_5__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); } - '<' - { after(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_5__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpMultiAssign__Group_5__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_5__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); } - '=' - { after(grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpMultiAssign__Group_6__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpMultiAssign__Group_6__0__Impl - rule__OpMultiAssign__Group_6__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_6__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); } - '>' - { after(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_6__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpMultiAssign__Group_6__1__Impl - rule__OpMultiAssign__Group_6__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_6__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); } - ('>')? - { after(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_6__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpMultiAssign__Group_6__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpMultiAssign__Group_6__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); } - '>=' - { after(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOrExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group__0__Impl - rule__XOrExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); } - ruleXAndExpression - { after(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getGroup_1()); } - (rule__XOrExpression__Group_1__0)* - { after(grammarAccess.getXOrExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOrExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group_1__0__Impl - rule__XOrExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getGroup_1_0()); } - (rule__XOrExpression__Group_1_0__0) - { after(grammarAccess.getXOrExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getRightOperandAssignment_1_1()); } - (rule__XOrExpression__RightOperandAssignment_1_1) - { after(grammarAccess.getXOrExpressionAccess().getRightOperandAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOrExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0()); } - (rule__XOrExpression__Group_1_0_0__0) - { after(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOrExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group_1_0_0__0__Impl - rule__XOrExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } - () - { after(grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOrExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOrExpressionAccess().getFeatureAssignment_1_0_0_1()); } - (rule__XOrExpression__FeatureAssignment_1_0_0_1) - { after(grammarAccess.getXOrExpressionAccess().getFeatureAssignment_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAndExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group__0__Impl - rule__XAndExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); } - ruleXEqualityExpression - { after(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getGroup_1()); } - (rule__XAndExpression__Group_1__0)* - { after(grammarAccess.getXAndExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAndExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group_1__0__Impl - rule__XAndExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getGroup_1_0()); } - (rule__XAndExpression__Group_1_0__0) - { after(grammarAccess.getXAndExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getRightOperandAssignment_1_1()); } - (rule__XAndExpression__RightOperandAssignment_1_1) - { after(grammarAccess.getXAndExpressionAccess().getRightOperandAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAndExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getGroup_1_0_0()); } - (rule__XAndExpression__Group_1_0_0__0) - { after(grammarAccess.getXAndExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAndExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group_1_0_0__0__Impl - rule__XAndExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } - () - { after(grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAndExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAndExpressionAccess().getFeatureAssignment_1_0_0_1()); } - (rule__XAndExpression__FeatureAssignment_1_0_0_1) - { after(grammarAccess.getXAndExpressionAccess().getFeatureAssignment_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XEqualityExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group__0__Impl - rule__XEqualityExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); } - ruleXRelationalExpression - { after(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getGroup_1()); } - (rule__XEqualityExpression__Group_1__0)* - { after(grammarAccess.getXEqualityExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XEqualityExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group_1__0__Impl - rule__XEqualityExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); } - (rule__XEqualityExpression__Group_1_0__0) - { after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); } - (rule__XEqualityExpression__RightOperandAssignment_1_1) - { after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XEqualityExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); } - (rule__XEqualityExpression__Group_1_0_0__0) - { after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XEqualityExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group_1_0_0__0__Impl - rule__XEqualityExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } - () - { after(grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XEqualityExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXEqualityExpressionAccess().getFeatureAssignment_1_0_0_1()); } - (rule__XEqualityExpression__FeatureAssignment_1_0_0_1) - { after(grammarAccess.getXEqualityExpressionAccess().getFeatureAssignment_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group__0__Impl - rule__XRelationalExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); } - ruleXOtherOperatorExpression - { after(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getAlternatives_1()); } - (rule__XRelationalExpression__Alternatives_1)* - { after(grammarAccess.getXRelationalExpressionAccess().getAlternatives_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_0__0__Impl - rule__XRelationalExpression__Group_1_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); } - (rule__XRelationalExpression__Group_1_0_0__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); } - (rule__XRelationalExpression__TypeAssignment_1_0_1) - { after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_0_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); } - (rule__XRelationalExpression__Group_1_0_0_0__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group_1_0_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_0_0_0__0__Impl - rule__XRelationalExpression__Group_1_0_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); } - () - { after(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_0_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_0_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); } - 'instanceof' - { after(grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_1__0__Impl - rule__XRelationalExpression__Group_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); } - (rule__XRelationalExpression__Group_1_1_0__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); } - (rule__XRelationalExpression__RightOperandAssignment_1_1_1) - { after(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group_1_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); } - (rule__XRelationalExpression__Group_1_1_0_0__0) - { after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XRelationalExpression__Group_1_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_1_0_0__0__Impl - rule__XRelationalExpression__Group_1_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); } - () - { after(grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XRelationalExpression__Group_1_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__Group_1_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1()); } - (rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1) - { after(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpCompare__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpCompare__Group_1__0__Impl - rule__OpCompare__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpCompare__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); } - '<' - { after(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpCompare__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpCompare__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpCompare__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); } - '=' - { after(grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOtherOperatorExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group__0__Impl - rule__XOtherOperatorExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); } - ruleXAdditiveExpression - { after(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1()); } - (rule__XOtherOperatorExpression__Group_1__0)* - { after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOtherOperatorExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group_1__0__Impl - rule__XOtherOperatorExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0()); } - (rule__XOtherOperatorExpression__Group_1_0__0) - { after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandAssignment_1_1()); } - (rule__XOtherOperatorExpression__RightOperandAssignment_1_1) - { after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOtherOperatorExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0_0()); } - (rule__XOtherOperatorExpression__Group_1_0_0__0) - { after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XOtherOperatorExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group_1_0_0__0__Impl - rule__XOtherOperatorExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } - () - { after(grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XOtherOperatorExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureAssignment_1_0_0_1()); } - (rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1) - { after(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureAssignment_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_2__0__Impl - rule__OpOther__Group_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); } - '>' - { after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); } - '..' - { after(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_5__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_5__0__Impl - rule__OpOther__Group_5__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); } - '>' - { after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_5__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getAlternatives_5_1()); } - (rule__OpOther__Alternatives_5_1) - { after(grammarAccess.getOpOtherAccess().getAlternatives_5_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_5_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_5_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getGroup_5_1_0_0()); } - (rule__OpOther__Group_5_1_0_0__0) - { after(grammarAccess.getOpOtherAccess().getGroup_5_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_5_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_5_1_0_0__0__Impl - rule__OpOther__Group_5_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); } - '>' - { after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_5_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_5_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); } - '>' - { after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_6__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_6__0__Impl - rule__OpOther__Group_6__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); } - '<' - { after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_6__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getAlternatives_6_1()); } - (rule__OpOther__Alternatives_6_1) - { after(grammarAccess.getOpOtherAccess().getAlternatives_6_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_6_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_6_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getGroup_6_1_0_0()); } - (rule__OpOther__Group_6_1_0_0__0) - { after(grammarAccess.getOpOtherAccess().getGroup_6_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OpOther__Group_6_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_6_1_0_0__0__Impl - rule__OpOther__Group_6_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); } - '<' - { after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OpOther__Group_6_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OpOther__Group_6_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); } - '<' - { after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAdditiveExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group__0__Impl - rule__XAdditiveExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); } - ruleXMultiplicativeExpression - { after(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getGroup_1()); } - (rule__XAdditiveExpression__Group_1__0)* - { after(grammarAccess.getXAdditiveExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAdditiveExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group_1__0__Impl - rule__XAdditiveExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0()); } - (rule__XAdditiveExpression__Group_1_0__0) - { after(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); } - (rule__XAdditiveExpression__RightOperandAssignment_1_1) - { after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAdditiveExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0_0()); } - (rule__XAdditiveExpression__Group_1_0_0__0) - { after(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XAdditiveExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group_1_0_0__0__Impl - rule__XAdditiveExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } - () - { after(grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XAdditiveExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXAdditiveExpressionAccess().getFeatureAssignment_1_0_0_1()); } - (rule__XAdditiveExpression__FeatureAssignment_1_0_0_1) - { after(grammarAccess.getXAdditiveExpressionAccess().getFeatureAssignment_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMultiplicativeExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group__0__Impl - rule__XMultiplicativeExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); } - ruleXUnaryOperation - { after(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1()); } - (rule__XMultiplicativeExpression__Group_1__0)* - { after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMultiplicativeExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group_1__0__Impl - rule__XMultiplicativeExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0()); } - (rule__XMultiplicativeExpression__Group_1_0__0) - { after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandAssignment_1_1()); } - (rule__XMultiplicativeExpression__RightOperandAssignment_1_1) - { after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMultiplicativeExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0_0()); } - (rule__XMultiplicativeExpression__Group_1_0_0__0) - { after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMultiplicativeExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group_1_0_0__0__Impl - rule__XMultiplicativeExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } - () - { after(grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMultiplicativeExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureAssignment_1_0_0_1()); } - (rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1) - { after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureAssignment_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XUnaryOperation__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XUnaryOperation__Group_0__0__Impl - rule__XUnaryOperation__Group_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); } - () - { after(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__Group_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XUnaryOperation__Group_0__1__Impl - rule__XUnaryOperation__Group_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__Group_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXUnaryOperationAccess().getFeatureAssignment_0_1()); } - (rule__XUnaryOperation__FeatureAssignment_0_1) - { after(grammarAccess.getXUnaryOperationAccess().getFeatureAssignment_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__Group_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XUnaryOperation__Group_0__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__Group_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); } - (rule__XUnaryOperation__OperandAssignment_0_2) - { after(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCastedExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group__0__Impl - rule__XCastedExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); } - ruleXPostfixOperation - { after(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getGroup_1()); } - (rule__XCastedExpression__Group_1__0)* - { after(grammarAccess.getXCastedExpressionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCastedExpression__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group_1__0__Impl - rule__XCastedExpression__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getGroup_1_0()); } - (rule__XCastedExpression__Group_1_0__0) - { after(grammarAccess.getXCastedExpressionAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); } - (rule__XCastedExpression__TypeAssignment_1_1) - { after(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCastedExpression__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getGroup_1_0_0()); } - (rule__XCastedExpression__Group_1_0_0__0) - { after(grammarAccess.getXCastedExpressionAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCastedExpression__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group_1_0_0__0__Impl - rule__XCastedExpression__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0()); } - () - { after(grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCastedExpression__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); } - 'as' - { after(grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XPostfixOperation__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XPostfixOperation__Group__0__Impl - rule__XPostfixOperation__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); } - ruleXMemberFeatureCall - { after(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XPostfixOperation__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXPostfixOperationAccess().getGroup_1()); } - (rule__XPostfixOperation__Group_1__0)? - { after(grammarAccess.getXPostfixOperationAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XPostfixOperation__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XPostfixOperation__Group_1__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXPostfixOperationAccess().getGroup_1_0()); } - (rule__XPostfixOperation__Group_1_0__0) - { after(grammarAccess.getXPostfixOperationAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XPostfixOperation__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XPostfixOperation__Group_1_0__0__Impl - rule__XPostfixOperation__Group_1_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0()); } - () - { after(grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group_1_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XPostfixOperation__Group_1_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__Group_1_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXPostfixOperationAccess().getFeatureAssignment_1_0_1()); } - (rule__XPostfixOperation__FeatureAssignment_1_0_1) - { after(grammarAccess.getXPostfixOperationAccess().getFeatureAssignment_1_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group__0__Impl - rule__XMemberFeatureCall__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); } - ruleXPrimaryExpression - { after(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); } - (rule__XMemberFeatureCall__Alternatives_1)* - { after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0__0__Impl - rule__XMemberFeatureCall__Group_1_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); } - (rule__XMemberFeatureCall__Group_1_0_0__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getValueAssignment_1_0_1()); } - (rule__XMemberFeatureCall__ValueAssignment_1_0_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getValueAssignment_1_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); } - (rule__XMemberFeatureCall__Group_1_0_0_0__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_0_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl - rule__XMemberFeatureCall__Group_1_0_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0()); } - () - { after(grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl - rule__XMemberFeatureCall__Group_1_0_0_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); } - (rule__XMemberFeatureCall__Alternatives_1_0_0_0_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl - rule__XMemberFeatureCall__Group_1_0_0_0__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_0_0_0_2()); } - (rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2) - { after(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_0_0_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); } - ruleOpSingleAssign - { after(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1__0__Impl - rule__XMemberFeatureCall__Group_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); } - (rule__XMemberFeatureCall__Group_1_1_0__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1__1__Impl - rule__XMemberFeatureCall__Group_1_1__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); } - (rule__XMemberFeatureCall__Group_1_1_1__0)? - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1__2__Impl - rule__XMemberFeatureCall__Group_1_1__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_1_2()); } - (rule__XMemberFeatureCall__FeatureAssignment_1_1_2) - { after(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_1_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1__3__Impl - rule__XMemberFeatureCall__Group_1_1__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); } - (rule__XMemberFeatureCall__Group_1_1_3__0)? - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_4()); } - (rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4)? - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); } - (rule__XMemberFeatureCall__Group_1_1_0_0__0) - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl - rule__XMemberFeatureCall__Group_1_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); } - () - { after(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); } - (rule__XMemberFeatureCall__Alternatives_1_1_0_0_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_1__0__Impl - rule__XMemberFeatureCall__Group_1_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); } - '<' - { after(grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_1__1__Impl - rule__XMemberFeatureCall__Group_1_1_1__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_1()); } - (rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_1__2__Impl - rule__XMemberFeatureCall__Group_1_1_1__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); } - (rule__XMemberFeatureCall__Group_1_1_1_2__0)* - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_1__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); } - '>' - { after(grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_1_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl - rule__XMemberFeatureCall__Group_1_1_1_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); } - ',' - { after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_2_1()); } - (rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3__0__Impl - rule__XMemberFeatureCall__Group_1_1_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallAssignment_1_1_3_0()); } - (rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0) - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallAssignment_1_1_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3__1__Impl - rule__XMemberFeatureCall__Group_1_1_3__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); } - (rule__XMemberFeatureCall__Alternatives_1_1_3_1)? - { after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); } - ')' - { after(grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_3_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl - rule__XMemberFeatureCall__Group_1_1_3_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_0()); } - (rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0) - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); } - (rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0)* - { after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); } - ',' - { after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_1_1()); } - (rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1) - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSetLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group__0__Impl - rule__XSetLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0()); } - () - { after(grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group__1__Impl - rule__XSetLiteral__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); } - '#' - { after(grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group__2__Impl - rule__XSetLiteral__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); } - '{' - { after(grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group__3__Impl - rule__XSetLiteral__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getGroup_3()); } - (rule__XSetLiteral__Group_3__0)? - { after(grammarAccess.getXSetLiteralAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); } - '}' - { after(grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSetLiteral__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group_3__0__Impl - rule__XSetLiteral__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_0()); } - (rule__XSetLiteral__ElementsAssignment_3_0) - { after(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group_3__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getGroup_3_1()); } - (rule__XSetLiteral__Group_3_1__0)* - { after(grammarAccess.getXSetLiteralAccess().getGroup_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSetLiteral__Group_3_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group_3_1__0__Impl - rule__XSetLiteral__Group_3_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group_3_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); } - ',' - { after(grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group_3_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSetLiteral__Group_3_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__Group_3_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1()); } - (rule__XSetLiteral__ElementsAssignment_3_1_1) - { after(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XListLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group__0__Impl - rule__XListLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getXListLiteralAction_0()); } - () - { after(grammarAccess.getXListLiteralAccess().getXListLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group__1__Impl - rule__XListLiteral__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); } - '#' - { after(grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group__2__Impl - rule__XListLiteral__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); } - '[' - { after(grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group__3__Impl - rule__XListLiteral__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getGroup_3()); } - (rule__XListLiteral__Group_3__0)? - { after(grammarAccess.getXListLiteralAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); } - ']' - { after(grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XListLiteral__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group_3__0__Impl - rule__XListLiteral__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); } - (rule__XListLiteral__ElementsAssignment_3_0) - { after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group_3__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getGroup_3_1()); } - (rule__XListLiteral__Group_3_1__0)* - { after(grammarAccess.getXListLiteralAccess().getGroup_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XListLiteral__Group_3_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group_3_1__0__Impl - rule__XListLiteral__Group_3_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group_3_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); } - ',' - { after(grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group_3_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XListLiteral__Group_3_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__Group_3_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); } - (rule__XListLiteral__ElementsAssignment_3_1_1) - { after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group__0__Impl - rule__XClosure__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getGroup_0()); } - (rule__XClosure__Group_0__0) - { after(grammarAccess.getXClosureAccess().getGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group__1__Impl - rule__XClosure__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getGroup_1()); } - (rule__XClosure__Group_1__0)? - { after(grammarAccess.getXClosureAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group__2__Impl - rule__XClosure__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getExpressionAssignment_2()); } - (rule__XClosure__ExpressionAssignment_2) - { after(grammarAccess.getXClosureAccess().getExpressionAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); } - ']' - { after(grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getGroup_0_0()); } - (rule__XClosure__Group_0_0__0) - { after(grammarAccess.getXClosureAccess().getGroup_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_0_0__0__Impl - rule__XClosure__Group_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getXClosureAction_0_0_0()); } - () - { after(grammarAccess.getXClosureAccess().getXClosureAction_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); } - '[' - { after(grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getGroup_1_0()); } - (rule__XClosure__Group_1_0__0) - { after(grammarAccess.getXClosureAccess().getGroup_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1_0__0__Impl - rule__XClosure__Group_1_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getGroup_1_0_0()); } - (rule__XClosure__Group_1_0_0__0)? - { after(grammarAccess.getXClosureAccess().getGroup_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getExplicitSyntaxAssignment_1_0_1()); } - (rule__XClosure__ExplicitSyntaxAssignment_1_0_1) - { after(grammarAccess.getXClosureAccess().getExplicitSyntaxAssignment_1_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1_0_0__0__Impl - rule__XClosure__Group_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_0()); } - (rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0) - { after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); } - (rule__XClosure__Group_1_0_0_1__0)* - { after(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XClosure__Group_1_0_0_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1_0_0_1__0__Impl - rule__XClosure__Group_1_0_0_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0_0_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); } - ',' - { after(grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0_0_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XClosure__Group_1_0_0_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__Group_1_0_0_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_1_1()); } - (rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1) - { after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XExpressionInClosure__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XExpressionInClosure__Group__0__Impl - rule__XExpressionInClosure__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0()); } - () - { after(grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XExpressionInClosure__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXExpressionInClosureAccess().getGroup_1()); } - (rule__XExpressionInClosure__Group_1__0)* - { after(grammarAccess.getXExpressionInClosureAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XExpressionInClosure__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XExpressionInClosure__Group_1__0__Impl - rule__XExpressionInClosure__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXExpressionInClosureAccess().getExpressionsAssignment_1_0()); } - (rule__XExpressionInClosure__ExpressionsAssignment_1_0) - { after(grammarAccess.getXExpressionInClosureAccess().getExpressionsAssignment_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XExpressionInClosure__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); } - (';')? - { after(grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XShortClosure__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group__0__Impl - rule__XShortClosure__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getGroup_0()); } - (rule__XShortClosure__Group_0__0) - { after(grammarAccess.getXShortClosureAccess().getGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getExpressionAssignment_1()); } - (rule__XShortClosure__ExpressionAssignment_1) - { after(grammarAccess.getXShortClosureAccess().getExpressionAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XShortClosure__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getGroup_0_0()); } - (rule__XShortClosure__Group_0_0__0) - { after(grammarAccess.getXShortClosureAccess().getGroup_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XShortClosure__Group_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0__0__Impl - rule__XShortClosure__Group_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0()); } - () - { after(grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0__1__Impl - rule__XShortClosure__Group_0_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getGroup_0_0_1()); } - (rule__XShortClosure__Group_0_0_1__0)? - { after(grammarAccess.getXShortClosureAccess().getGroup_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getExplicitSyntaxAssignment_0_0_2()); } - (rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2) - { after(grammarAccess.getXShortClosureAccess().getExplicitSyntaxAssignment_0_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XShortClosure__Group_0_0_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0_1__0__Impl - rule__XShortClosure__Group_0_0_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_0()); } - (rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0) - { after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getGroup_0_0_1_1()); } - (rule__XShortClosure__Group_0_0_1_1__0)* - { after(grammarAccess.getXShortClosureAccess().getGroup_0_0_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XShortClosure__Group_0_0_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0_1_1__0__Impl - rule__XShortClosure__Group_0_0_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); } - ',' - { after(grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XShortClosure__Group_0_0_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__Group_0_0_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_1_1()); } - (rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1) - { after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XParenthesizedExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XParenthesizedExpression__Group__0__Impl - rule__XParenthesizedExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XParenthesizedExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); } - '(' - { after(grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XParenthesizedExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XParenthesizedExpression__Group__1__Impl - rule__XParenthesizedExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XParenthesizedExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); } - ruleXExpression - { after(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XParenthesizedExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XParenthesizedExpression__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XParenthesizedExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); } - ')' - { after(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XIfExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__0__Impl - rule__XIfExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0()); } - () - { after(grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__1__Impl - rule__XIfExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); } - 'if' - { after(grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__2__Impl - rule__XIfExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); } - '(' - { after(grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__3__Impl - rule__XIfExpression__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getIfAssignment_3()); } - (rule__XIfExpression__IfAssignment_3) - { after(grammarAccess.getXIfExpressionAccess().getIfAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__4__Impl - rule__XIfExpression__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); } - ')' - { after(grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__5__Impl - rule__XIfExpression__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getThenAssignment_5()); } - (rule__XIfExpression__ThenAssignment_5) - { after(grammarAccess.getXIfExpressionAccess().getThenAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group__6__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getGroup_6()); } - (rule__XIfExpression__Group_6__0)? - { after(grammarAccess.getXIfExpressionAccess().getGroup_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XIfExpression__Group_6__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group_6__0__Impl - rule__XIfExpression__Group_6__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group_6__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); } - ('else') - { after(grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group_6__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XIfExpression__Group_6__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__Group_6__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXIfExpressionAccess().getElseAssignment_6_1()); } - (rule__XIfExpression__ElseAssignment_6_1) - { after(grammarAccess.getXIfExpressionAccess().getElseAssignment_6_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__0__Impl - rule__XSwitchExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0()); } - () - { after(grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__1__Impl - rule__XSwitchExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); } - 'switch' - { after(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__2__Impl - rule__XSwitchExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getAlternatives_2()); } - (rule__XSwitchExpression__Alternatives_2) - { after(grammarAccess.getXSwitchExpressionAccess().getAlternatives_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__3__Impl - rule__XSwitchExpression__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); } - '{' - { after(grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__4__Impl - rule__XSwitchExpression__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getCasesAssignment_4()); } - (rule__XSwitchExpression__CasesAssignment_4)* - { after(grammarAccess.getXSwitchExpressionAccess().getCasesAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__5__Impl - rule__XSwitchExpression__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_5()); } - (rule__XSwitchExpression__Group_5__0)? - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group__6__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); } - '}' - { after(grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_2_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0__0__Impl - rule__XSwitchExpression__Group_2_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); } - (rule__XSwitchExpression__Group_2_0_0__0) - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0__1__Impl - rule__XSwitchExpression__Group_2_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1()); } - (rule__XSwitchExpression__SwitchAssignment_2_0_1) - { after(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); } - ')' - { after(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_2_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); } - (rule__XSwitchExpression__Group_2_0_0_0__0) - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_2_0_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0_0_0__0__Impl - rule__XSwitchExpression__Group_2_0_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); } - '(' - { after(grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0_0_0__1__Impl - rule__XSwitchExpression__Group_2_0_0_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_0_0_0_1()); } - (rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1) - { after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_0_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0_0_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_0_0_0__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_0_0_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); } - ':' - { after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_2_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_1__0__Impl - rule__XSwitchExpression__Group_2_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); } - (rule__XSwitchExpression__Group_2_1_0__0)? - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_1_1()); } - (rule__XSwitchExpression__SwitchAssignment_2_1_1) - { after(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_2_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_1_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); } - (rule__XSwitchExpression__Group_2_1_0_0__0) - { after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_2_1_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_1_0_0__0__Impl - rule__XSwitchExpression__Group_2_1_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_1_0_0_0()); } - (rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0) - { after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_1_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_2_1_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_2_1_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); } - ':' - { after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSwitchExpression__Group_5__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_5__0__Impl - rule__XSwitchExpression__Group_5__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_5__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); } - 'default' - { after(grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_5__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_5__1__Impl - rule__XSwitchExpression__Group_5__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_5__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); } - ':' - { after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_5__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSwitchExpression__Group_5__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__Group_5__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSwitchExpressionAccess().getDefaultAssignment_5_2()); } - (rule__XSwitchExpression__DefaultAssignment_5_2) - { after(grammarAccess.getXSwitchExpressionAccess().getDefaultAssignment_5_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCasePart__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group__0__Impl - rule__XCasePart__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getXCasePartAction_0()); } - () - { after(grammarAccess.getXCasePartAccess().getXCasePartAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group__1__Impl - rule__XCasePart__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); } - (rule__XCasePart__TypeGuardAssignment_1)? - { after(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group__2__Impl - rule__XCasePart__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getGroup_2()); } - (rule__XCasePart__Group_2__0)? - { after(grammarAccess.getXCasePartAccess().getGroup_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getAlternatives_3()); } - (rule__XCasePart__Alternatives_3) - { after(grammarAccess.getXCasePartAccess().getAlternatives_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCasePart__Group_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group_2__0__Impl - rule__XCasePart__Group_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); } - 'case' - { after(grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getCaseAssignment_2_1()); } - (rule__XCasePart__CaseAssignment_2_1) - { after(grammarAccess.getXCasePartAccess().getCaseAssignment_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCasePart__Group_3_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group_3_0__0__Impl - rule__XCasePart__Group_3_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group_3_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); } - ':' - { after(grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group_3_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCasePart__Group_3_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__Group_3_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCasePartAccess().getThenAssignment_3_0_1()); } - (rule__XCasePart__ThenAssignment_3_0_1) - { after(grammarAccess.getXCasePartAccess().getThenAssignment_3_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XForLoopExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group__0__Impl - rule__XForLoopExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getGroup_0()); } - (rule__XForLoopExpression__Group_0__0) - { after(grammarAccess.getXForLoopExpressionAccess().getGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group__1__Impl - rule__XForLoopExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getForExpressionAssignment_1()); } - (rule__XForLoopExpression__ForExpressionAssignment_1) - { after(grammarAccess.getXForLoopExpressionAccess().getForExpressionAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group__2__Impl - rule__XForLoopExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); } - ')' - { after(grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getEachExpressionAssignment_3()); } - (rule__XForLoopExpression__EachExpressionAssignment_3) - { after(grammarAccess.getXForLoopExpressionAccess().getEachExpressionAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XForLoopExpression__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getGroup_0_0()); } - (rule__XForLoopExpression__Group_0_0__0) - { after(grammarAccess.getXForLoopExpressionAccess().getGroup_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XForLoopExpression__Group_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group_0_0__0__Impl - rule__XForLoopExpression__Group_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0()); } - () - { after(grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group_0_0__1__Impl - rule__XForLoopExpression__Group_0_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); } - 'for' - { after(grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group_0_0__2__Impl - rule__XForLoopExpression__Group_0_0__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); } - '(' - { after(grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group_0_0__3__Impl - rule__XForLoopExpression__Group_0_0__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamAssignment_0_0_3()); } - (rule__XForLoopExpression__DeclaredParamAssignment_0_0_3) - { after(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamAssignment_0_0_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XForLoopExpression__Group_0_0__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__Group_0_0__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); } - ':' - { after(grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBasicForLoopExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__0__Impl - rule__XBasicForLoopExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0()); } - () - { after(grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__1__Impl - rule__XBasicForLoopExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); } - 'for' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__2__Impl - rule__XBasicForLoopExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); } - '(' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__3__Impl - rule__XBasicForLoopExpression__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3()); } - (rule__XBasicForLoopExpression__Group_3__0)? - { after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__4__Impl - rule__XBasicForLoopExpression__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); } - ';' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__5__Impl - rule__XBasicForLoopExpression__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionAssignment_5()); } - (rule__XBasicForLoopExpression__ExpressionAssignment_5)? - { after(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__6__Impl - rule__XBasicForLoopExpression__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); } - ';' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__7__Impl - rule__XBasicForLoopExpression__Group__8 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7()); } - (rule__XBasicForLoopExpression__Group_7__0)? - { after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__8 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__8__Impl - rule__XBasicForLoopExpression__Group__9 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__8__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); } - ')' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__9 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group__9__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group__9__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionAssignment_9()); } - (rule__XBasicForLoopExpression__EachExpressionAssignment_9) - { after(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionAssignment_9()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBasicForLoopExpression__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_3__0__Impl - rule__XBasicForLoopExpression__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_0()); } - (rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0) - { after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_3__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3_1()); } - (rule__XBasicForLoopExpression__Group_3_1__0)* - { after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBasicForLoopExpression__Group_3_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_3_1__0__Impl - rule__XBasicForLoopExpression__Group_3_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_3_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); } - ',' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_3_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_3_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_3_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_1_1()); } - (rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1) - { after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBasicForLoopExpression__Group_7__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_7__0__Impl - rule__XBasicForLoopExpression__Group_7__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_7__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_0()); } - (rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0) - { after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_7__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_7__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_7__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7_1()); } - (rule__XBasicForLoopExpression__Group_7_1__0)* - { after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBasicForLoopExpression__Group_7_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_7_1__0__Impl - rule__XBasicForLoopExpression__Group_7_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_7_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); } - ',' - { after(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_7_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBasicForLoopExpression__Group_7_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__Group_7_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_1_1()); } - (rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1) - { after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XWhileExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XWhileExpression__Group__0__Impl - rule__XWhileExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0()); } - () - { after(grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XWhileExpression__Group__1__Impl - rule__XWhileExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); } - 'while' - { after(grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XWhileExpression__Group__2__Impl - rule__XWhileExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); } - '(' - { after(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XWhileExpression__Group__3__Impl - rule__XWhileExpression__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXWhileExpressionAccess().getPredicateAssignment_3()); } - (rule__XWhileExpression__PredicateAssignment_3) - { after(grammarAccess.getXWhileExpressionAccess().getPredicateAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XWhileExpression__Group__4__Impl - rule__XWhileExpression__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); } - ')' - { after(grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XWhileExpression__Group__5__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXWhileExpressionAccess().getBodyAssignment_5()); } - (rule__XWhileExpression__BodyAssignment_5) - { after(grammarAccess.getXWhileExpressionAccess().getBodyAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XDoWhileExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__0__Impl - rule__XDoWhileExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0()); } - () - { after(grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__1__Impl - rule__XDoWhileExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); } - 'do' - { after(grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__2__Impl - rule__XDoWhileExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getBodyAssignment_2()); } - (rule__XDoWhileExpression__BodyAssignment_2) - { after(grammarAccess.getXDoWhileExpressionAccess().getBodyAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__3__Impl - rule__XDoWhileExpression__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); } - 'while' - { after(grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__4__Impl - rule__XDoWhileExpression__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); } - '(' - { after(grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__5__Impl - rule__XDoWhileExpression__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getPredicateAssignment_5()); } - (rule__XDoWhileExpression__PredicateAssignment_5) - { after(grammarAccess.getXDoWhileExpressionAccess().getPredicateAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__XDoWhileExpression__Group__6__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); } - ')' - { after(grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBlockExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBlockExpression__Group__0__Impl - rule__XBlockExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); } - () - { after(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBlockExpression__Group__1__Impl - rule__XBlockExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); } - '{' - { after(grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBlockExpression__Group__2__Impl - rule__XBlockExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBlockExpressionAccess().getGroup_2()); } - (rule__XBlockExpression__Group_2__0)* - { after(grammarAccess.getXBlockExpressionAccess().getGroup_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBlockExpression__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); } - '}' - { after(grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBlockExpression__Group_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBlockExpression__Group_2__0__Impl - rule__XBlockExpression__Group_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBlockExpressionAccess().getExpressionsAssignment_2_0()); } - (rule__XBlockExpression__ExpressionsAssignment_2_0) - { after(grammarAccess.getXBlockExpressionAccess().getExpressionsAssignment_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBlockExpression__Group_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__Group_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); } - (';')? - { after(grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XVariableDeclaration__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group__0__Impl - rule__XVariableDeclaration__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0()); } - () - { after(grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group__1__Impl - rule__XVariableDeclaration__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getAlternatives_1()); } - (rule__XVariableDeclaration__Alternatives_1) - { after(grammarAccess.getXVariableDeclarationAccess().getAlternatives_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group__2__Impl - rule__XVariableDeclaration__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getAlternatives_2()); } - (rule__XVariableDeclaration__Alternatives_2) - { after(grammarAccess.getXVariableDeclarationAccess().getAlternatives_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getGroup_3()); } - (rule__XVariableDeclaration__Group_3__0)? - { after(grammarAccess.getXVariableDeclarationAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XVariableDeclaration__Group_2_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group_2_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_2_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0_0()); } - (rule__XVariableDeclaration__Group_2_0_0__0) - { after(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XVariableDeclaration__Group_2_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group_2_0_0__0__Impl - rule__XVariableDeclaration__Group_2_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_2_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); } - (rule__XVariableDeclaration__TypeAssignment_2_0_0_0) - { after(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_2_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group_2_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_2_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1()); } - (rule__XVariableDeclaration__NameAssignment_2_0_0_1) - { after(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XVariableDeclaration__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group_3__0__Impl - rule__XVariableDeclaration__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); } - '=' - { after(grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XVariableDeclaration__Group_3__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXVariableDeclarationAccess().getRightAssignment_3_1()); } - (rule__XVariableDeclaration__RightAssignment_3_1) - { after(grammarAccess.getXVariableDeclarationAccess().getRightAssignment_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmFormalParameter__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmFormalParameter__Group__0__Impl - rule__JvmFormalParameter__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmFormalParameter__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmFormalParameterAccess().getParameterTypeAssignment_0()); } - (rule__JvmFormalParameter__ParameterTypeAssignment_0)? - { after(grammarAccess.getJvmFormalParameterAccess().getParameterTypeAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmFormalParameter__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmFormalParameter__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmFormalParameter__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmFormalParameterAccess().getNameAssignment_1()); } - (rule__JvmFormalParameter__NameAssignment_1) - { after(grammarAccess.getJvmFormalParameterAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__FullJvmFormalParameter__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__FullJvmFormalParameter__Group__0__Impl - rule__FullJvmFormalParameter__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__FullJvmFormalParameter__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeAssignment_0()); } - (rule__FullJvmFormalParameter__ParameterTypeAssignment_0) - { after(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__FullJvmFormalParameter__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__FullJvmFormalParameter__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__FullJvmFormalParameter__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getFullJvmFormalParameterAccess().getNameAssignment_1()); } - (rule__FullJvmFormalParameter__NameAssignment_1) - { after(grammarAccess.getFullJvmFormalParameterAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFeatureCall__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group__0__Impl - rule__XFeatureCall__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); } - () - { after(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group__1__Impl - rule__XFeatureCall__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getGroup_1()); } - (rule__XFeatureCall__Group_1__0)? - { after(grammarAccess.getXFeatureCallAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group__2__Impl - rule__XFeatureCall__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getFeatureAssignment_2()); } - (rule__XFeatureCall__FeatureAssignment_2) - { after(grammarAccess.getXFeatureCallAccess().getFeatureAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group__3__Impl - rule__XFeatureCall__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getGroup_3()); } - (rule__XFeatureCall__Group_3__0)? - { after(grammarAccess.getXFeatureCallAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_4()); } - (rule__XFeatureCall__FeatureCallArgumentsAssignment_4)? - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFeatureCall__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_1__0__Impl - rule__XFeatureCall__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); } - '<' - { after(grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_1__1__Impl - rule__XFeatureCall__Group_1__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_1()); } - (rule__XFeatureCall__TypeArgumentsAssignment_1_1) - { after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_1__2__Impl - rule__XFeatureCall__Group_1__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); } - (rule__XFeatureCall__Group_1_2__0)* - { after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_1__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); } - '>' - { after(grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFeatureCall__Group_1_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_1_2__0__Impl - rule__XFeatureCall__Group_1_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); } - ',' - { after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_1_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_1_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_2_1()); } - (rule__XFeatureCall__TypeArgumentsAssignment_1_2_1) - { after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFeatureCall__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3__0__Impl - rule__XFeatureCall__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallAssignment_3_0()); } - (rule__XFeatureCall__ExplicitOperationCallAssignment_3_0) - { after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallAssignment_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3__1__Impl - rule__XFeatureCall__Group_3__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getAlternatives_3_1()); } - (rule__XFeatureCall__Alternatives_3_1)? - { after(grammarAccess.getXFeatureCallAccess().getAlternatives_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); } - ')' - { after(grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFeatureCall__Group_3_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3_1_1__0__Impl - rule__XFeatureCall__Group_3_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_0()); } - (rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0) - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); } - (rule__XFeatureCall__Group_3_1_1_1__0)* - { after(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFeatureCall__Group_3_1_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3_1_1_1__0__Impl - rule__XFeatureCall__Group_3_1_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3_1_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); } - ',' - { after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3_1_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFeatureCall__Group_3_1_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__Group_3_1_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_1_1()); } - (rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1) - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XConstructorCall__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group__0__Impl - rule__XConstructorCall__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0()); } - () - { after(grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group__1__Impl - rule__XConstructorCall__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); } - 'new' - { after(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group__2__Impl - rule__XConstructorCall__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getConstructorAssignment_2()); } - (rule__XConstructorCall__ConstructorAssignment_2) - { after(grammarAccess.getXConstructorCallAccess().getConstructorAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group__3__Impl - rule__XConstructorCall__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getGroup_3()); } - (rule__XConstructorCall__Group_3__0)? - { after(grammarAccess.getXConstructorCallAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group__4__Impl - rule__XConstructorCall__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getGroup_4()); } - (rule__XConstructorCall__Group_4__0)? - { after(grammarAccess.getXConstructorCallAccess().getGroup_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group__5__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_5()); } - (rule__XConstructorCall__ArgumentsAssignment_5)? - { after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XConstructorCall__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_3__0__Impl - rule__XConstructorCall__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); } - ('<') - { after(grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_3__1__Impl - rule__XConstructorCall__Group_3__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_1()); } - (rule__XConstructorCall__TypeArgumentsAssignment_3_1) - { after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_3__2__Impl - rule__XConstructorCall__Group_3__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getGroup_3_2()); } - (rule__XConstructorCall__Group_3_2__0)* - { after(grammarAccess.getXConstructorCallAccess().getGroup_3_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_3__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); } - '>' - { after(grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XConstructorCall__Group_3_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_3_2__0__Impl - rule__XConstructorCall__Group_3_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); } - ',' - { after(grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_3_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_3_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_2_1()); } - (rule__XConstructorCall__TypeArgumentsAssignment_3_2_1) - { after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XConstructorCall__Group_4__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4__0__Impl - rule__XConstructorCall__Group_4__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallAssignment_4_0()); } - (rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0) - { after(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallAssignment_4_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4__1__Impl - rule__XConstructorCall__Group_4__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getAlternatives_4_1()); } - (rule__XConstructorCall__Alternatives_4_1)? - { after(grammarAccess.getXConstructorCallAccess().getAlternatives_4_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); } - ')' - { after(grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XConstructorCall__Group_4_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4_1_1__0__Impl - rule__XConstructorCall__Group_4_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_0()); } - (rule__XConstructorCall__ArgumentsAssignment_4_1_1_0) - { after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1_1()); } - (rule__XConstructorCall__Group_4_1_1_1__0)* - { after(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XConstructorCall__Group_4_1_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4_1_1_1__0__Impl - rule__XConstructorCall__Group_4_1_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4_1_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); } - ',' - { after(grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4_1_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XConstructorCall__Group_4_1_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__Group_4_1_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_1_1()); } - (rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1) - { after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XBooleanLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBooleanLiteral__Group__0__Impl - rule__XBooleanLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XBooleanLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0()); } - () - { after(grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBooleanLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XBooleanLiteral__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XBooleanLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXBooleanLiteralAccess().getAlternatives_1()); } - (rule__XBooleanLiteral__Alternatives_1) - { after(grammarAccess.getXBooleanLiteralAccess().getAlternatives_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XNullLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XNullLiteral__Group__0__Impl - rule__XNullLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XNullLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0()); } - () - { after(grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XNullLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XNullLiteral__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XNullLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); } - 'null' - { after(grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XNumberLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XNumberLiteral__Group__0__Impl - rule__XNumberLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XNumberLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0()); } - () - { after(grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XNumberLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XNumberLiteral__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XNumberLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXNumberLiteralAccess().getValueAssignment_1()); } - (rule__XNumberLiteral__ValueAssignment_1) - { after(grammarAccess.getXNumberLiteralAccess().getValueAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XStringLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XStringLiteral__Group__0__Impl - rule__XStringLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XStringLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0()); } - () - { after(grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XStringLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XStringLiteral__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XStringLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXStringLiteralAccess().getValueAssignment_1()); } - (rule__XStringLiteral__ValueAssignment_1) - { after(grammarAccess.getXStringLiteralAccess().getValueAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XTypeLiteral__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTypeLiteral__Group__0__Impl - rule__XTypeLiteral__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); } - () - { after(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTypeLiteral__Group__1__Impl - rule__XTypeLiteral__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); } - 'typeof' - { after(grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTypeLiteral__Group__2__Impl - rule__XTypeLiteral__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); } - '(' - { after(grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTypeLiteral__Group__3__Impl - rule__XTypeLiteral__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); } - (rule__XTypeLiteral__TypeAssignment_3) - { after(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTypeLiteral__Group__4__Impl - rule__XTypeLiteral__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsAssignment_4()); } - (rule__XTypeLiteral__ArrayDimensionsAssignment_4)* - { after(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTypeLiteral__Group__5__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); } - ')' - { after(grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XThrowExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XThrowExpression__Group__0__Impl - rule__XThrowExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XThrowExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); } - () - { after(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XThrowExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XThrowExpression__Group__1__Impl - rule__XThrowExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XThrowExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); } - 'throw' - { after(grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XThrowExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XThrowExpression__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XThrowExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); } - (rule__XThrowExpression__ExpressionAssignment_2) - { after(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XReturnExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XReturnExpression__Group__0__Impl - rule__XReturnExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XReturnExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); } - () - { after(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XReturnExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XReturnExpression__Group__1__Impl - rule__XReturnExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XReturnExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); } - 'return' - { after(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XReturnExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XReturnExpression__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XReturnExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); } - (rule__XReturnExpression__ExpressionAssignment_2)? - { after(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XTryCatchFinallyExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group__0__Impl - rule__XTryCatchFinallyExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); } - () - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group__1__Impl - rule__XTryCatchFinallyExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); } - 'try' - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group__2__Impl - rule__XTryCatchFinallyExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); } - (rule__XTryCatchFinallyExpression__ExpressionAssignment_2) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); } - (rule__XTryCatchFinallyExpression__Alternatives_3) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XTryCatchFinallyExpression__Group_3_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group_3_0__0__Impl - rule__XTryCatchFinallyExpression__Group_3_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); } - (rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); } - ) - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); } - (rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0)* - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); } - ) -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group_3_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); } - (rule__XTryCatchFinallyExpression__Group_3_0_1__0)? - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XTryCatchFinallyExpression__Group_3_0_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl - rule__XTryCatchFinallyExpression__Group_3_0_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); } - ('finally') - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_0_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); } - (rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XTryCatchFinallyExpression__Group_3_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group_3_1__0__Impl - rule__XTryCatchFinallyExpression__Group_3_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); } - 'finally' - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XTryCatchFinallyExpression__Group_3_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__Group_3_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); } - (rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1) - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSynchronizedExpression__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group__0__Impl - rule__XSynchronizedExpression__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0()); } - (rule__XSynchronizedExpression__Group_0__0) - { after(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group__1__Impl - rule__XSynchronizedExpression__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getParamAssignment_1()); } - (rule__XSynchronizedExpression__ParamAssignment_1) - { after(grammarAccess.getXSynchronizedExpressionAccess().getParamAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group__2__Impl - rule__XSynchronizedExpression__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); } - ')' - { after(grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getExpressionAssignment_3()); } - (rule__XSynchronizedExpression__ExpressionAssignment_3) - { after(grammarAccess.getXSynchronizedExpressionAccess().getExpressionAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSynchronizedExpression__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0_0()); } - (rule__XSynchronizedExpression__Group_0_0__0) - { after(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XSynchronizedExpression__Group_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group_0_0__0__Impl - rule__XSynchronizedExpression__Group_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0()); } - () - { after(grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group_0_0__1__Impl - rule__XSynchronizedExpression__Group_0_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); } - 'synchronized' - { after(grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group_0_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XSynchronizedExpression__Group_0_0__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__Group_0_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); } - '(' - { after(grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XCatchClause__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCatchClause__Group__0__Impl - rule__XCatchClause__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); } - ('catch') - { after(grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCatchClause__Group__1__Impl - rule__XCatchClause__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); } - '(' - { after(grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCatchClause__Group__2__Impl - rule__XCatchClause__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCatchClauseAccess().getDeclaredParamAssignment_2()); } - (rule__XCatchClause__DeclaredParamAssignment_2) - { after(grammarAccess.getXCatchClauseAccess().getDeclaredParamAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCatchClause__Group__3__Impl - rule__XCatchClause__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); } - ')' - { after(grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__XCatchClause__Group__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXCatchClauseAccess().getExpressionAssignment_4()); } - (rule__XCatchClause__ExpressionAssignment_4) - { after(grammarAccess.getXCatchClauseAccess().getExpressionAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedName__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group__0__Impl - rule__QualifiedName__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); } - ruleValidID - { after(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getGroup_1()); } - (rule__QualifiedName__Group_1__0)* - { after(grammarAccess.getQualifiedNameAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedName__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group_1__0__Impl - rule__QualifiedName__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); } - ('.') - { after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); } - ruleValidID - { after(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Number__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Number__Group_1__0__Impl - rule__Number__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNumberAccess().getAlternatives_1_0()); } - (rule__Number__Alternatives_1_0) - { after(grammarAccess.getNumberAccess().getAlternatives_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Number__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNumberAccess().getGroup_1_1()); } - (rule__Number__Group_1_1__0)? - { after(grammarAccess.getNumberAccess().getGroup_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Number__Group_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Number__Group_1_1__0__Impl - rule__Number__Group_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Group_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); } - '.' - { after(grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Group_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Number__Group_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Number__Group_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNumberAccess().getAlternatives_1_1_1()); } - (rule__Number__Alternatives_1_1_1) - { after(grammarAccess.getNumberAccess().getAlternatives_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmTypeReference__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmTypeReference__Group_0__0__Impl - rule__JvmTypeReference__Group_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); } - ruleJvmParameterizedTypeReference - { after(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmTypeReference__Group_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1()); } - (rule__JvmTypeReference__Group_0_1__0)* - { after(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmTypeReference__Group_0_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmTypeReference__Group_0_1__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1_0()); } - (rule__JvmTypeReference__Group_0_1_0__0) - { after(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmTypeReference__Group_0_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmTypeReference__Group_0_1_0__0__Impl - rule__JvmTypeReference__Group_0_1_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0()); } - () - { after(grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0_1_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmTypeReference__Group_0_1_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmTypeReference__Group_0_1_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); } - ruleArrayBrackets - { after(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__ArrayBrackets__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__ArrayBrackets__Group__0__Impl - rule__ArrayBrackets__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__ArrayBrackets__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); } - '[' - { after(grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__ArrayBrackets__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__ArrayBrackets__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__ArrayBrackets__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); } - ']' - { after(grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFunctionTypeRef__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group__0__Impl - rule__XFunctionTypeRef__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getGroup_0()); } - (rule__XFunctionTypeRef__Group_0__0)? - { after(grammarAccess.getXFunctionTypeRefAccess().getGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group__1__Impl - rule__XFunctionTypeRef__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); } - '=>' - { after(grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2()); } - (rule__XFunctionTypeRef__ReturnTypeAssignment_2) - { after(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFunctionTypeRef__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0__0__Impl - rule__XFunctionTypeRef__Group_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); } - '(' - { after(grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0__1__Impl - rule__XFunctionTypeRef__Group_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1()); } - (rule__XFunctionTypeRef__Group_0_1__0)? - { after(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); } - ')' - { after(grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFunctionTypeRef__Group_0_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0_1__0__Impl - rule__XFunctionTypeRef__Group_0_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_0()); } - (rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0) - { after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1_1()); } - (rule__XFunctionTypeRef__Group_0_1_1__0)* - { after(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XFunctionTypeRef__Group_0_1_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0_1_1__0__Impl - rule__XFunctionTypeRef__Group_0_1_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0_1_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); } - ',' - { after(grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0_1_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XFunctionTypeRef__Group_0_1_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__Group_0_1_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_1_1()); } - (rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1) - { after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group__0__Impl - rule__JvmParameterizedTypeReference__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_0()); } - (rule__JvmParameterizedTypeReference__TypeAssignment_0) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1()); } - (rule__JvmParameterizedTypeReference__Group_1__0)? - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1__0__Impl - rule__JvmParameterizedTypeReference__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); } - ('<') - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1__1__Impl - rule__JvmParameterizedTypeReference__Group_1__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_1()); } - (rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1__2__Impl - rule__JvmParameterizedTypeReference__Group_1__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_2()); } - (rule__JvmParameterizedTypeReference__Group_1_2__0)* - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1__3__Impl - rule__JvmParameterizedTypeReference__Group_1__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); } - '>' - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1__4__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4()); } - (rule__JvmParameterizedTypeReference__Group_1_4__0)* - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_2__0__Impl - rule__JvmParameterizedTypeReference__Group_1_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); } - ',' - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_2_1()); } - (rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1_4__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4__0__Impl - rule__JvmParameterizedTypeReference__Group_1_4__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0()); } - (rule__JvmParameterizedTypeReference__Group_1_4_0__0) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4__1__Impl - rule__JvmParameterizedTypeReference__Group_1_4__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_1_4_1()); } - (rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_1_4_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2()); } - (rule__JvmParameterizedTypeReference__Group_1_4_2__0)? - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1_4_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0_0()); } - (rule__JvmParameterizedTypeReference__Group_1_4_0_0__0) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl - rule__JvmParameterizedTypeReference__Group_1_4_0_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0()); } - () - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_0_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); } - '.' - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1_4_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl - rule__JvmParameterizedTypeReference__Group_1_4_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); } - ('<') - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl - rule__JvmParameterizedTypeReference__Group_1_4_2__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_1()); } - (rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl - rule__JvmParameterizedTypeReference__Group_1_4_2__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2_2()); } - (rule__JvmParameterizedTypeReference__Group_1_4_2_2__0)* - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); } - '>' - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl - rule__JvmParameterizedTypeReference__Group_1_4_2_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); } - ',' - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_2_1()); } - (rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmWildcardTypeReference__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group__0__Impl - rule__JvmWildcardTypeReference__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0()); } - () - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group__1__Impl - rule__JvmWildcardTypeReference__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); } - '?' - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getAlternatives_2()); } - (rule__JvmWildcardTypeReference__Alternatives_2)? - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getAlternatives_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmWildcardTypeReference__Group_2_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group_2_0__0__Impl - rule__JvmWildcardTypeReference__Group_2_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group_2_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_0()); } - (rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0) - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group_2_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group_2_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group_2_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_1()); } - (rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1)* - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmWildcardTypeReference__Group_2_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group_2_1__0__Impl - rule__JvmWildcardTypeReference__Group_2_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group_2_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_0()); } - (rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0) - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group_2_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmWildcardTypeReference__Group_2_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__Group_2_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_1()); } - (rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1)* - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmUpperBound__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmUpperBound__Group__0__Impl - rule__JvmUpperBound__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBound__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); } - 'extends' - { after(grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBound__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmUpperBound__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBound__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceAssignment_1()); } - (rule__JvmUpperBound__TypeReferenceAssignment_1) - { after(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmUpperBoundAnded__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmUpperBoundAnded__Group__0__Impl - rule__JvmUpperBoundAnded__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBoundAnded__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); } - '&' - { after(grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBoundAnded__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmUpperBoundAnded__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBoundAnded__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceAssignment_1()); } - (rule__JvmUpperBoundAnded__TypeReferenceAssignment_1) - { after(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmLowerBound__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmLowerBound__Group__0__Impl - rule__JvmLowerBound__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBound__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); } - 'super' - { after(grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBound__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmLowerBound__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBound__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceAssignment_1()); } - (rule__JvmLowerBound__TypeReferenceAssignment_1) - { after(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__JvmLowerBoundAnded__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmLowerBoundAnded__Group__0__Impl - rule__JvmLowerBoundAnded__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBoundAnded__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); } - '&' - { after(grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBoundAnded__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__JvmLowerBoundAnded__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBoundAnded__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceAssignment_1()); } - (rule__JvmLowerBoundAnded__TypeReferenceAssignment_1) - { after(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedNameWithWildcard__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedNameWithWildcard__Group__0__Impl - rule__QualifiedNameWithWildcard__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameWithWildcard__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); } - ruleQualifiedName - { after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameWithWildcard__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedNameWithWildcard__Group__1__Impl - rule__QualifiedNameWithWildcard__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameWithWildcard__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); } - '.' - { after(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameWithWildcard__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedNameWithWildcard__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameWithWildcard__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); } - '*' - { after(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XImportDeclaration__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group__0__Impl - rule__XImportDeclaration__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); } - 'import' - { after(grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group__1__Impl - rule__XImportDeclaration__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getAlternatives_1()); } - (rule__XImportDeclaration__Alternatives_1) - { after(grammarAccess.getXImportDeclarationAccess().getAlternatives_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); } - (';')? - { after(grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__XImportDeclaration__Group_1_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group_1_0__0__Impl - rule__XImportDeclaration__Group_1_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getStaticAssignment_1_0_0()); } - (rule__XImportDeclaration__StaticAssignment_1_0_0) - { after(grammarAccess.getXImportDeclarationAccess().getStaticAssignment_1_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group_1_0__1__Impl - rule__XImportDeclaration__Group_1_0__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getExtensionAssignment_1_0_1()); } - (rule__XImportDeclaration__ExtensionAssignment_1_0_1)? - { after(grammarAccess.getXImportDeclarationAccess().getExtensionAssignment_1_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group_1_0__2__Impl - rule__XImportDeclaration__Group_1_0__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); } - (rule__XImportDeclaration__ImportedTypeAssignment_1_0_2) - { after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__XImportDeclaration__Group_1_0__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__Group_1_0__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getXImportDeclarationAccess().getAlternatives_1_0_3()); } - (rule__XImportDeclaration__Alternatives_1_0_3) - { after(grammarAccess.getXImportDeclarationAccess().getAlternatives_1_0_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedNameInStaticImport__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedNameInStaticImport__Group__0__Impl - rule__QualifiedNameInStaticImport__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameInStaticImport__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); } - ruleValidID - { after(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameInStaticImport__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedNameInStaticImport__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedNameInStaticImport__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); } - '.' - { after(grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Entities__ImportSectionAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0()); } - ruleXImportSection - { after(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entities__ElementsAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0()); } - ruleAbstractElement - { after(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0()); } - ruleQualifiedName - { after(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__PackageDeclaration__ElementsAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0()); } - ruleAbstractElement - { after(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0()); } - ruleValidID - { after(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__SuperTypeAssignment_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0()); } - ruleJvmParameterizedTypeReference - { after(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Entity__FeaturesAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0()); } - ruleFeature - { after(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__NameAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0()); } - ruleValidID - { after(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Property__TypeAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0()); } - ruleJvmTypeReference - { after(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0()); } - ruleValidID - { after(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__ParamsAssignment_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0()); } - ruleFullJvmFormalParameter - { after(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__ParamsAssignment_3_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0()); } - ruleFullJvmFormalParameter - { after(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__TypeAssignment_5_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Operation__BodyAssignment_6 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0()); } - ruleXBlockExpression - { after(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__FeatureAssignment_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); } - ( - { before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_0_1_0_1()); } - ruleFeatureCallID - { after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_0_1_0_1()); } - ) - { after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__ValueAssignment_0_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); } - ruleXAssignment - { after(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__FeatureAssignment_1_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); } - ( - { before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); } - ruleOpMultiAssign - { after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAssignment__RightOperandAssignment_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); } - ruleXAssignment - { after(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__FeatureAssignment_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ( - { before(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementOpOrParserRuleCall_1_0_0_1_0_1()); } - ruleOpOr - { after(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementOpOrParserRuleCall_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOrExpression__RightOperandAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); } - ruleXAndExpression - { after(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__FeatureAssignment_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ( - { before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); } - ruleOpAnd - { after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAndExpression__RightOperandAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); } - ruleXEqualityExpression - { after(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__FeatureAssignment_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ( - { before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); } - ruleOpEquality - { after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XEqualityExpression__RightOperandAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); } - ruleXRelationalExpression - { after(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__TypeAssignment_1_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); } - ( - { before(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementOpCompareParserRuleCall_1_1_0_0_1_0_1()); } - ruleOpCompare - { after(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementOpCompareParserRuleCall_1_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XRelationalExpression__RightOperandAssignment_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); } - ruleXOtherOperatorExpression - { after(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementOpOtherParserRuleCall_1_0_0_1_0_1()); } - ruleOpOther - { after(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementOpOtherParserRuleCall_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XOtherOperatorExpression__RightOperandAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); } - ruleXAdditiveExpression - { after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ( - { before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); } - ruleOpAdd - { after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XAdditiveExpression__RightOperandAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); } - ruleXMultiplicativeExpression - { after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); } - ruleOpMulti - { after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); } - ) - { after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMultiplicativeExpression__RightOperandAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); } - ruleXUnaryOperation - { after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__FeatureAssignment_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); } - ( - { before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); } - ruleOpUnary - { after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); } - ) - { after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XUnaryOperation__OperandAssignment_0_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); } - ruleXUnaryOperation - { after(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCastedExpression__TypeAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XPostfixOperation__FeatureAssignment_1_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); } - ( - { before(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1()); } - ruleOpPostfix - { after(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1()); } - ) - { after(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); } - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); } - '::' - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); } - ) - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); } - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_1_0_0_0_2_0_1()); } - ruleFeatureCallID - { after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_1_0_0_0_2_0_1()); } - ) - { after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__ValueAssignment_1_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); } - ruleXAssignment - { after(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); } - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); } - '?.' - { after(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); } - ) - { after(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); } - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); } - '::' - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); } - ) - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__FeatureAssignment_1_1_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); } - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_1_1_2_0_1()); } - ruleIdOrSuper - { after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_1_1_2_0_1()); } - ) - { after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); } - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); } - '(' - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); } - ) - { after(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); } - ruleXShortClosure - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); } - ruleXExpression - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); } - ruleXClosure - { after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__ElementsAssignment_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); } - ruleXExpression - { after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSetLiteral__ElementsAssignment_3_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__ElementsAssignment_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); } - ruleXExpression - { after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XListLiteral__ElementsAssignment_3_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__ExplicitSyntaxAssignment_1_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); } - ( - { before(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); } - '|' - { after(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); } - ) - { after(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XClosure__ExpressionAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); } - ruleXExpressionInClosure - { after(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XExpressionInClosure__ExpressionsAssignment_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); } - ruleXExpressionOrVarDeclaration - { after(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); } - ( - { before(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); } - '|' - { after(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); } - ) - { after(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XShortClosure__ExpressionAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); } - ruleXExpression - { after(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__IfAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); } - ruleXExpression - { after(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__ThenAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); } - ruleXExpression - { after(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XIfExpression__ElseAssignment_6_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); } - ruleXExpression - { after(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__SwitchAssignment_2_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); } - ruleXExpression - { after(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__SwitchAssignment_2_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__CasesAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); } - ruleXCasePart - { after(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSwitchExpression__DefaultAssignment_5_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); } - ruleXExpression - { after(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__TypeGuardAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__CaseAssignment_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); } - ruleXExpression - { after(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__ThenAssignment_3_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); } - ruleXExpression - { after(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCasePart__FallThroughAssignment_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); } - ( - { before(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); } - ',' - { after(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); } - ) - { after(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); } - ruleJvmFormalParameter - { after(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__ForExpressionAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); } - ruleXExpression - { after(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XForLoopExpression__EachExpressionAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); } - ruleXExpression - { after(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); } - ruleXExpressionOrVarDeclaration - { after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); } - ruleXExpressionOrVarDeclaration - { after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__ExpressionAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); } - ruleXExpression - { after(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); } - ruleXExpression - { after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBasicForLoopExpression__EachExpressionAssignment_9 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); } - ruleXExpression - { after(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__PredicateAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); } - ruleXExpression - { after(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XWhileExpression__BodyAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); } - ruleXExpression - { after(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__BodyAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); } - ruleXExpression - { after(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XDoWhileExpression__PredicateAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); } - ruleXExpression - { after(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBlockExpression__ExpressionsAssignment_2_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); } - ruleXExpressionOrVarDeclaration - { after(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__WriteableAssignment_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); } - ( - { before(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); } - 'var' - { after(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); } - ) - { after(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__TypeAssignment_2_0_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__NameAssignment_2_0_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); } - ruleValidID - { after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__NameAssignment_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); } - ruleValidID - { after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XVariableDeclaration__RightAssignment_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); } - ruleXExpression - { after(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmFormalParameter__ParameterTypeAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); } - ruleJvmTypeReference - { after(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmFormalParameter__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); } - ruleValidID - { after(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__FullJvmFormalParameter__ParameterTypeAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); } - ruleJvmTypeReference - { after(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__FullJvmFormalParameter__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); } - ruleValidID - { after(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__TypeArgumentsAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__FeatureAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); } - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_2_0_1()); } - ruleIdOrSuper - { after(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_2_0_1()); } - ) - { after(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); } - ( - { before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); } - '(' - { after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); } - ) - { after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); } - ruleXShortClosure - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); } - ruleXExpression - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFeatureCall__FeatureCallArgumentsAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); } - ruleXClosure - { after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__ConstructorAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); } - ( - { before(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorQualifiedNameParserRuleCall_2_0_1()); } - ruleQualifiedName - { after(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorQualifiedNameParserRuleCall_2_0_1()); } - ) - { after(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__TypeArgumentsAssignment_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); } - ( - { before(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); } - '(' - { after(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); } - ) - { after(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__ArgumentsAssignment_4_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); } - ruleXShortClosure - { after(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); } - ruleXExpression - { after(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XConstructorCall__ArgumentsAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); } - ruleXClosure - { after(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XBooleanLiteral__IsTrueAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); } - ( - { before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); } - 'true' - { after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); } - ) - { after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XNumberLiteral__ValueAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); } - ruleNumber - { after(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XStringLiteral__ValueAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); } - RULE_STRING - { after(grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__TypeAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); } - ( - { before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); } - ruleQualifiedName - { after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); } - ) - { after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTypeLiteral__ArrayDimensionsAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); } - ruleArrayBrackets - { after(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XThrowExpression__ExpressionAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); } - ruleXExpression - { after(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XReturnExpression__ExpressionAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); } - ruleXExpression - { after(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__ExpressionAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); } - ruleXExpression - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); } - ruleXCatchClause - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); } - ruleXExpression - { after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__ParamAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); } - ruleXExpression - { after(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XSynchronizedExpression__ExpressionAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); } - ruleXExpression - { after(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__DeclaredParamAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); } - ruleFullJvmFormalParameter - { after(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XCatchClause__ExpressionAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); } - ruleXExpression - { after(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XFunctionTypeRef__ReturnTypeAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); } - ruleJvmTypeReference - { after(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__TypeAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); } - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeQualifiedNameParserRuleCall_0_0_1()); } - ruleQualifiedName - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeQualifiedNameParserRuleCall_0_0_1()); } - ) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); } - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeValidIDParserRuleCall_1_4_1_0_1()); } - ruleValidID - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeValidIDParserRuleCall_1_4_1_0_1()); } - ) - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); } - ruleJvmArgumentTypeReference - { after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); } - ruleJvmUpperBound - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); } - ruleJvmUpperBoundAnded - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); } - ruleJvmLowerBound - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); } - ruleJvmLowerBoundAnded - { after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBound__TypeReferenceAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBound__TypeReferenceAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ruleJvmTypeReference - { after(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportSection__ImportDeclarationsAssignment - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); } - ruleXImportDeclaration - { after(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__StaticAssignment_1_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); } - ( - { before(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); } - 'static' - { after(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); } - ) - { after(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__ExtensionAssignment_1_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); } - ( - { before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); } - 'extension' - { after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); } - ) - { after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); } - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameInStaticImportParserRuleCall_1_0_2_0_1()); } - ruleQualifiedNameInStaticImport - { after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameInStaticImportParserRuleCall_1_0_2_0_1()); } - ) - { after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__WildcardAssignment_1_0_3_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); } - ( - { before(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); } - '*' - { after(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); } - ) - { after(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); } - ruleValidID - { after(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__ImportedTypeAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); } - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameParserRuleCall_1_1_0_1()); } - ruleQualifiedName - { after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameParserRuleCall_1_1_0_1()); } - ) - { after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); } - ruleQualifiedNameWithWildcard - { after(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F'|'_')+ ('#' (('b'|'B') ('i'|'I')|('l'|'L')))?; - -RULE_INT : '0'..'9' ('0'..'9'|'_')*; - -RULE_DECIMAL : RULE_INT (('e'|'E') ('+'|'-')? RULE_INT)? (('b'|'B') ('i'|'I'|'d'|'D')|('l'|'L'|'d'|'D'|'f'|'F'))?; - -RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*; - -RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'?|'\'' ('\\' .|~(('\\'|'\'')))* '\''?); - -RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; - -RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; - -RULE_WS : (' '|'\t'|'\r'|'\n')+; - -RULE_ANY_OTHER : .; diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntities.tokens b/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntities.tokens deleted file mode 100644 index b9c23977df5..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntities.tokens +++ /dev/null @@ -1,163 +0,0 @@ -'!'=40 -'!='=22 -'!=='=24 -'#'=62 -'%'=39 -'%='=20 -'&&'=15 -'&'=84 -'('=57 -')'=58 -'*'=36 -'**'=37 -'*='=18 -'+'=34 -'++'=41 -'+='=16 -','=59 -'-'=35 -'--'=42 -'-='=17 -'->'=28 -'.'=43 -'..'=30 -'..<'=29 -'/'=38 -'/='=19 -':'=55 -'::'=85 -';'=65 -'<'=27 -'<>'=32 -'='=13 -'=='=21 -'==='=23 -'=>'=31 -'>'=26 -'>='=25 -'?'=83 -'?.'=86 -'?:'=33 -'['=63 -']'=64 -'as'=61 -'case'=70 -'catch'=82 -'default'=69 -'do'=73 -'else'=67 -'entity'=54 -'extends'=45 -'extension'=48 -'false'=50 -'finally'=80 -'for'=71 -'if'=66 -'import'=47 -'instanceof'=60 -'new'=74 -'null'=75 -'op'=56 -'package'=51 -'return'=78 -'static'=46 -'super'=49 -'switch'=68 -'synchronized'=81 -'throw'=77 -'true'=89 -'try'=79 -'typeof'=76 -'val'=44 -'var'=88 -'while'=72 -'{'=52 -'|'=87 -'||'=14 -'}'=53 -RULE_ANY_OTHER=12 -RULE_DECIMAL=7 -RULE_HEX=5 -RULE_ID=4 -RULE_INT=6 -RULE_ML_COMMENT=9 -RULE_SL_COMMENT=10 -RULE_STRING=8 -RULE_WS=11 -T__13=13 -T__14=14 -T__15=15 -T__16=16 -T__17=17 -T__18=18 -T__19=19 -T__20=20 -T__21=21 -T__22=22 -T__23=23 -T__24=24 -T__25=25 -T__26=26 -T__27=27 -T__28=28 -T__29=29 -T__30=30 -T__31=31 -T__32=32 -T__33=33 -T__34=34 -T__35=35 -T__36=36 -T__37=37 -T__38=38 -T__39=39 -T__40=40 -T__41=41 -T__42=42 -T__43=43 -T__44=44 -T__45=45 -T__46=46 -T__47=47 -T__48=48 -T__49=49 -T__50=50 -T__51=51 -T__52=52 -T__53=53 -T__54=54 -T__55=55 -T__56=56 -T__57=57 -T__58=58 -T__59=59 -T__60=60 -T__61=61 -T__62=62 -T__63=63 -T__64=64 -T__65=65 -T__66=66 -T__67=67 -T__68=68 -T__69=69 -T__70=70 -T__71=71 -T__72=72 -T__73=73 -T__74=74 -T__75=75 -T__76=76 -T__77=77 -T__78=78 -T__79=79 -T__80=80 -T__81=81 -T__82=82 -T__83=83 -T__84=84 -T__85=85 -T__86=86 -T__87=87 -T__88=88 -T__89=89 diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntitiesLexer.java b/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntitiesLexer.java deleted file mode 100644 index f746a06de12..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntitiesLexer.java +++ /dev/null @@ -1,3578 +0,0 @@ -package org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalEntitiesLexer extends Lexer { - public static final int RULE_HEX=5; - public static final int T__50=50; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__59=59; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__55=55; - public static final int T__56=56; - public static final int T__13=13; - public static final int T__57=57; - public static final int T__14=14; - public static final int T__58=58; - public static final int T__51=51; - public static final int T__52=52; - public static final int T__53=53; - public static final int T__54=54; - public static final int T__60=60; - public static final int T__61=61; - public static final int RULE_ID=4; - public static final int RULE_DECIMAL=7; - public static final int T__26=26; - public static final int T__27=27; - public static final int T__28=28; - public static final int RULE_INT=6; - public static final int T__29=29; - public static final int T__22=22; - public static final int T__66=66; - public static final int RULE_ML_COMMENT=9; - public static final int T__23=23; - public static final int T__67=67; - public static final int T__24=24; - public static final int T__68=68; - public static final int T__25=25; - public static final int T__69=69; - public static final int T__62=62; - public static final int T__63=63; - public static final int T__20=20; - public static final int T__64=64; - public static final int T__21=21; - public static final int T__65=65; - public static final int T__70=70; - public static final int T__71=71; - public static final int T__72=72; - public static final int RULE_STRING=8; - public static final int RULE_SL_COMMENT=10; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__39=39; - public static final int T__33=33; - public static final int T__77=77; - public static final int T__34=34; - public static final int T__78=78; - public static final int T__35=35; - public static final int T__79=79; - public static final int T__36=36; - public static final int T__73=73; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__74=74; - public static final int T__31=31; - public static final int T__75=75; - public static final int T__32=32; - public static final int T__76=76; - public static final int T__80=80; - public static final int T__81=81; - public static final int T__82=82; - public static final int T__83=83; - public static final int RULE_WS=11; - public static final int RULE_ANY_OTHER=12; - public static final int T__48=48; - public static final int T__49=49; - public static final int T__44=44; - public static final int T__88=88; - public static final int T__45=45; - public static final int T__89=89; - public static final int T__46=46; - public static final int T__47=47; - public static final int T__40=40; - public static final int T__84=84; - public static final int T__41=41; - public static final int T__85=85; - public static final int T__42=42; - public static final int T__86=86; - public static final int T__43=43; - public static final int T__87=87; - - // delegates - // delegators - - public InternalEntitiesLexer() {;} - public InternalEntitiesLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalEntitiesLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalEntities.g"; } - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:11:7: ( '=' ) - // InternalEntities.g:11:9: '=' - { - match('='); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__13" - - // $ANTLR start "T__14" - public final void mT__14() throws RecognitionException { - try { - int _type = T__14; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:12:7: ( '||' ) - // InternalEntities.g:12:9: '||' - { - match("||"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__14" - - // $ANTLR start "T__15" - public final void mT__15() throws RecognitionException { - try { - int _type = T__15; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:13:7: ( '&&' ) - // InternalEntities.g:13:9: '&&' - { - match("&&"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__15" - - // $ANTLR start "T__16" - public final void mT__16() throws RecognitionException { - try { - int _type = T__16; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:14:7: ( '+=' ) - // InternalEntities.g:14:9: '+=' - { - match("+="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__16" - - // $ANTLR start "T__17" - public final void mT__17() throws RecognitionException { - try { - int _type = T__17; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:15:7: ( '-=' ) - // InternalEntities.g:15:9: '-=' - { - match("-="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__17" - - // $ANTLR start "T__18" - public final void mT__18() throws RecognitionException { - try { - int _type = T__18; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:16:7: ( '*=' ) - // InternalEntities.g:16:9: '*=' - { - match("*="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__18" - - // $ANTLR start "T__19" - public final void mT__19() throws RecognitionException { - try { - int _type = T__19; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:17:7: ( '/=' ) - // InternalEntities.g:17:9: '/=' - { - match("/="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__19" - - // $ANTLR start "T__20" - public final void mT__20() throws RecognitionException { - try { - int _type = T__20; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18:7: ( '%=' ) - // InternalEntities.g:18:9: '%=' - { - match("%="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__20" - - // $ANTLR start "T__21" - public final void mT__21() throws RecognitionException { - try { - int _type = T__21; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:19:7: ( '==' ) - // InternalEntities.g:19:9: '==' - { - match("=="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__21" - - // $ANTLR start "T__22" - public final void mT__22() throws RecognitionException { - try { - int _type = T__22; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:20:7: ( '!=' ) - // InternalEntities.g:20:9: '!=' - { - match("!="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__22" - - // $ANTLR start "T__23" - public final void mT__23() throws RecognitionException { - try { - int _type = T__23; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:21:7: ( '===' ) - // InternalEntities.g:21:9: '===' - { - match("==="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__23" - - // $ANTLR start "T__24" - public final void mT__24() throws RecognitionException { - try { - int _type = T__24; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:22:7: ( '!==' ) - // InternalEntities.g:22:9: '!==' - { - match("!=="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__24" - - // $ANTLR start "T__25" - public final void mT__25() throws RecognitionException { - try { - int _type = T__25; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:23:7: ( '>=' ) - // InternalEntities.g:23:9: '>=' - { - match(">="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__25" - - // $ANTLR start "T__26" - public final void mT__26() throws RecognitionException { - try { - int _type = T__26; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:24:7: ( '>' ) - // InternalEntities.g:24:9: '>' - { - match('>'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__26" - - // $ANTLR start "T__27" - public final void mT__27() throws RecognitionException { - try { - int _type = T__27; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:25:7: ( '<' ) - // InternalEntities.g:25:9: '<' - { - match('<'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__27" - - // $ANTLR start "T__28" - public final void mT__28() throws RecognitionException { - try { - int _type = T__28; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:26:7: ( '->' ) - // InternalEntities.g:26:9: '->' - { - match("->"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__28" - - // $ANTLR start "T__29" - public final void mT__29() throws RecognitionException { - try { - int _type = T__29; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:27:7: ( '..<' ) - // InternalEntities.g:27:9: '..<' - { - match("..<"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__29" - - // $ANTLR start "T__30" - public final void mT__30() throws RecognitionException { - try { - int _type = T__30; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:28:7: ( '..' ) - // InternalEntities.g:28:9: '..' - { - match(".."); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__30" - - // $ANTLR start "T__31" - public final void mT__31() throws RecognitionException { - try { - int _type = T__31; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:29:7: ( '=>' ) - // InternalEntities.g:29:9: '=>' - { - match("=>"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__31" - - // $ANTLR start "T__32" - public final void mT__32() throws RecognitionException { - try { - int _type = T__32; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:30:7: ( '<>' ) - // InternalEntities.g:30:9: '<>' - { - match("<>"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__32" - - // $ANTLR start "T__33" - public final void mT__33() throws RecognitionException { - try { - int _type = T__33; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:31:7: ( '?:' ) - // InternalEntities.g:31:9: '?:' - { - match("?:"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__33" - - // $ANTLR start "T__34" - public final void mT__34() throws RecognitionException { - try { - int _type = T__34; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:32:7: ( '+' ) - // InternalEntities.g:32:9: '+' - { - match('+'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__34" - - // $ANTLR start "T__35" - public final void mT__35() throws RecognitionException { - try { - int _type = T__35; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:33:7: ( '-' ) - // InternalEntities.g:33:9: '-' - { - match('-'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__35" - - // $ANTLR start "T__36" - public final void mT__36() throws RecognitionException { - try { - int _type = T__36; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:34:7: ( '*' ) - // InternalEntities.g:34:9: '*' - { - match('*'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__36" - - // $ANTLR start "T__37" - public final void mT__37() throws RecognitionException { - try { - int _type = T__37; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:35:7: ( '**' ) - // InternalEntities.g:35:9: '**' - { - match("**"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__37" - - // $ANTLR start "T__38" - public final void mT__38() throws RecognitionException { - try { - int _type = T__38; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:36:7: ( '/' ) - // InternalEntities.g:36:9: '/' - { - match('/'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__38" - - // $ANTLR start "T__39" - public final void mT__39() throws RecognitionException { - try { - int _type = T__39; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:37:7: ( '%' ) - // InternalEntities.g:37:9: '%' - { - match('%'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__39" - - // $ANTLR start "T__40" - public final void mT__40() throws RecognitionException { - try { - int _type = T__40; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:38:7: ( '!' ) - // InternalEntities.g:38:9: '!' - { - match('!'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__40" - - // $ANTLR start "T__41" - public final void mT__41() throws RecognitionException { - try { - int _type = T__41; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:39:7: ( '++' ) - // InternalEntities.g:39:9: '++' - { - match("++"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__41" - - // $ANTLR start "T__42" - public final void mT__42() throws RecognitionException { - try { - int _type = T__42; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:40:7: ( '--' ) - // InternalEntities.g:40:9: '--' - { - match("--"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__42" - - // $ANTLR start "T__43" - public final void mT__43() throws RecognitionException { - try { - int _type = T__43; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:41:7: ( '.' ) - // InternalEntities.g:41:9: '.' - { - match('.'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__43" - - // $ANTLR start "T__44" - public final void mT__44() throws RecognitionException { - try { - int _type = T__44; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:42:7: ( 'val' ) - // InternalEntities.g:42:9: 'val' - { - match("val"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__44" - - // $ANTLR start "T__45" - public final void mT__45() throws RecognitionException { - try { - int _type = T__45; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:43:7: ( 'extends' ) - // InternalEntities.g:43:9: 'extends' - { - match("extends"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__45" - - // $ANTLR start "T__46" - public final void mT__46() throws RecognitionException { - try { - int _type = T__46; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:44:7: ( 'static' ) - // InternalEntities.g:44:9: 'static' - { - match("static"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__46" - - // $ANTLR start "T__47" - public final void mT__47() throws RecognitionException { - try { - int _type = T__47; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:45:7: ( 'import' ) - // InternalEntities.g:45:9: 'import' - { - match("import"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__47" - - // $ANTLR start "T__48" - public final void mT__48() throws RecognitionException { - try { - int _type = T__48; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:46:7: ( 'extension' ) - // InternalEntities.g:46:9: 'extension' - { - match("extension"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__48" - - // $ANTLR start "T__49" - public final void mT__49() throws RecognitionException { - try { - int _type = T__49; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:47:7: ( 'super' ) - // InternalEntities.g:47:9: 'super' - { - match("super"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__49" - - // $ANTLR start "T__50" - public final void mT__50() throws RecognitionException { - try { - int _type = T__50; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:48:7: ( 'false' ) - // InternalEntities.g:48:9: 'false' - { - match("false"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__50" - - // $ANTLR start "T__51" - public final void mT__51() throws RecognitionException { - try { - int _type = T__51; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:49:7: ( 'package' ) - // InternalEntities.g:49:9: 'package' - { - match("package"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__51" - - // $ANTLR start "T__52" - public final void mT__52() throws RecognitionException { - try { - int _type = T__52; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:50:7: ( '{' ) - // InternalEntities.g:50:9: '{' - { - match('{'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__52" - - // $ANTLR start "T__53" - public final void mT__53() throws RecognitionException { - try { - int _type = T__53; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:51:7: ( '}' ) - // InternalEntities.g:51:9: '}' - { - match('}'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__53" - - // $ANTLR start "T__54" - public final void mT__54() throws RecognitionException { - try { - int _type = T__54; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:52:7: ( 'entity' ) - // InternalEntities.g:52:9: 'entity' - { - match("entity"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__54" - - // $ANTLR start "T__55" - public final void mT__55() throws RecognitionException { - try { - int _type = T__55; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:53:7: ( ':' ) - // InternalEntities.g:53:9: ':' - { - match(':'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__55" - - // $ANTLR start "T__56" - public final void mT__56() throws RecognitionException { - try { - int _type = T__56; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:54:7: ( 'op' ) - // InternalEntities.g:54:9: 'op' - { - match("op"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__56" - - // $ANTLR start "T__57" - public final void mT__57() throws RecognitionException { - try { - int _type = T__57; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:55:7: ( '(' ) - // InternalEntities.g:55:9: '(' - { - match('('); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__57" - - // $ANTLR start "T__58" - public final void mT__58() throws RecognitionException { - try { - int _type = T__58; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:56:7: ( ')' ) - // InternalEntities.g:56:9: ')' - { - match(')'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__58" - - // $ANTLR start "T__59" - public final void mT__59() throws RecognitionException { - try { - int _type = T__59; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:57:7: ( ',' ) - // InternalEntities.g:57:9: ',' - { - match(','); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__59" - - // $ANTLR start "T__60" - public final void mT__60() throws RecognitionException { - try { - int _type = T__60; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:58:7: ( 'instanceof' ) - // InternalEntities.g:58:9: 'instanceof' - { - match("instanceof"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__60" - - // $ANTLR start "T__61" - public final void mT__61() throws RecognitionException { - try { - int _type = T__61; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:59:7: ( 'as' ) - // InternalEntities.g:59:9: 'as' - { - match("as"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__61" - - // $ANTLR start "T__62" - public final void mT__62() throws RecognitionException { - try { - int _type = T__62; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:60:7: ( '#' ) - // InternalEntities.g:60:9: '#' - { - match('#'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__62" - - // $ANTLR start "T__63" - public final void mT__63() throws RecognitionException { - try { - int _type = T__63; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:61:7: ( '[' ) - // InternalEntities.g:61:9: '[' - { - match('['); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__63" - - // $ANTLR start "T__64" - public final void mT__64() throws RecognitionException { - try { - int _type = T__64; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:62:7: ( ']' ) - // InternalEntities.g:62:9: ']' - { - match(']'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__64" - - // $ANTLR start "T__65" - public final void mT__65() throws RecognitionException { - try { - int _type = T__65; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:63:7: ( ';' ) - // InternalEntities.g:63:9: ';' - { - match(';'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__65" - - // $ANTLR start "T__66" - public final void mT__66() throws RecognitionException { - try { - int _type = T__66; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:64:7: ( 'if' ) - // InternalEntities.g:64:9: 'if' - { - match("if"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__66" - - // $ANTLR start "T__67" - public final void mT__67() throws RecognitionException { - try { - int _type = T__67; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:65:7: ( 'else' ) - // InternalEntities.g:65:9: 'else' - { - match("else"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__67" - - // $ANTLR start "T__68" - public final void mT__68() throws RecognitionException { - try { - int _type = T__68; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:66:7: ( 'switch' ) - // InternalEntities.g:66:9: 'switch' - { - match("switch"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__68" - - // $ANTLR start "T__69" - public final void mT__69() throws RecognitionException { - try { - int _type = T__69; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:67:7: ( 'default' ) - // InternalEntities.g:67:9: 'default' - { - match("default"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__69" - - // $ANTLR start "T__70" - public final void mT__70() throws RecognitionException { - try { - int _type = T__70; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:68:7: ( 'case' ) - // InternalEntities.g:68:9: 'case' - { - match("case"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__70" - - // $ANTLR start "T__71" - public final void mT__71() throws RecognitionException { - try { - int _type = T__71; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:69:7: ( 'for' ) - // InternalEntities.g:69:9: 'for' - { - match("for"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__71" - - // $ANTLR start "T__72" - public final void mT__72() throws RecognitionException { - try { - int _type = T__72; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:70:7: ( 'while' ) - // InternalEntities.g:70:9: 'while' - { - match("while"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__72" - - // $ANTLR start "T__73" - public final void mT__73() throws RecognitionException { - try { - int _type = T__73; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:71:7: ( 'do' ) - // InternalEntities.g:71:9: 'do' - { - match("do"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__73" - - // $ANTLR start "T__74" - public final void mT__74() throws RecognitionException { - try { - int _type = T__74; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:72:7: ( 'new' ) - // InternalEntities.g:72:9: 'new' - { - match("new"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__74" - - // $ANTLR start "T__75" - public final void mT__75() throws RecognitionException { - try { - int _type = T__75; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:73:7: ( 'null' ) - // InternalEntities.g:73:9: 'null' - { - match("null"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__75" - - // $ANTLR start "T__76" - public final void mT__76() throws RecognitionException { - try { - int _type = T__76; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:74:7: ( 'typeof' ) - // InternalEntities.g:74:9: 'typeof' - { - match("typeof"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__76" - - // $ANTLR start "T__77" - public final void mT__77() throws RecognitionException { - try { - int _type = T__77; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:75:7: ( 'throw' ) - // InternalEntities.g:75:9: 'throw' - { - match("throw"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__77" - - // $ANTLR start "T__78" - public final void mT__78() throws RecognitionException { - try { - int _type = T__78; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:76:7: ( 'return' ) - // InternalEntities.g:76:9: 'return' - { - match("return"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__78" - - // $ANTLR start "T__79" - public final void mT__79() throws RecognitionException { - try { - int _type = T__79; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:77:7: ( 'try' ) - // InternalEntities.g:77:9: 'try' - { - match("try"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__79" - - // $ANTLR start "T__80" - public final void mT__80() throws RecognitionException { - try { - int _type = T__80; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:78:7: ( 'finally' ) - // InternalEntities.g:78:9: 'finally' - { - match("finally"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__80" - - // $ANTLR start "T__81" - public final void mT__81() throws RecognitionException { - try { - int _type = T__81; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:79:7: ( 'synchronized' ) - // InternalEntities.g:79:9: 'synchronized' - { - match("synchronized"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__81" - - // $ANTLR start "T__82" - public final void mT__82() throws RecognitionException { - try { - int _type = T__82; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:80:7: ( 'catch' ) - // InternalEntities.g:80:9: 'catch' - { - match("catch"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__82" - - // $ANTLR start "T__83" - public final void mT__83() throws RecognitionException { - try { - int _type = T__83; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:81:7: ( '?' ) - // InternalEntities.g:81:9: '?' - { - match('?'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__83" - - // $ANTLR start "T__84" - public final void mT__84() throws RecognitionException { - try { - int _type = T__84; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:82:7: ( '&' ) - // InternalEntities.g:82:9: '&' - { - match('&'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__84" - - // $ANTLR start "T__85" - public final void mT__85() throws RecognitionException { - try { - int _type = T__85; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:83:7: ( '::' ) - // InternalEntities.g:83:9: '::' - { - match("::"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__85" - - // $ANTLR start "T__86" - public final void mT__86() throws RecognitionException { - try { - int _type = T__86; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:84:7: ( '?.' ) - // InternalEntities.g:84:9: '?.' - { - match("?."); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__86" - - // $ANTLR start "T__87" - public final void mT__87() throws RecognitionException { - try { - int _type = T__87; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:85:7: ( '|' ) - // InternalEntities.g:85:9: '|' - { - match('|'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__87" - - // $ANTLR start "T__88" - public final void mT__88() throws RecognitionException { - try { - int _type = T__88; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:86:7: ( 'var' ) - // InternalEntities.g:86:9: 'var' - { - match("var"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__88" - - // $ANTLR start "T__89" - public final void mT__89() throws RecognitionException { - try { - int _type = T__89; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:87:7: ( 'true' ) - // InternalEntities.g:87:9: 'true' - { - match("true"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__89" - - // $ANTLR start "RULE_HEX" - public final void mRULE_HEX() throws RecognitionException { - try { - int _type = RULE_HEX; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18216:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? ) - // InternalEntities.g:18216:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? - { - // InternalEntities.g:18216:12: ( '0x' | '0X' ) - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0=='0') ) { - int LA1_1 = input.LA(2); - - if ( (LA1_1=='x') ) { - alt1=1; - } - else if ( (LA1_1=='X') ) { - alt1=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 0, input); - - throw nvae; - } - switch (alt1) { - case 1 : - // InternalEntities.g:18216:13: '0x' - { - match("0x"); - - - } - break; - case 2 : - // InternalEntities.g:18216:18: '0X' - { - match("0X"); - - - } - break; - - } - - // InternalEntities.g:18216:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ - int cnt2=0; - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='F')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='f')) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalEntities.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='f') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt2 >= 1 ) break loop2; - EarlyExitException eee = - new EarlyExitException(2, input); - throw eee; - } - cnt2++; - } while (true); - - // InternalEntities.g:18216:58: ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0=='#') ) { - alt4=1; - } - switch (alt4) { - case 1 : - // InternalEntities.g:18216:59: '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) - { - match('#'); - // InternalEntities.g:18216:63: ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0=='B'||LA3_0=='b') ) { - alt3=1; - } - else if ( (LA3_0=='L'||LA3_0=='l') ) { - alt3=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // InternalEntities.g:18216:64: ( 'b' | 'B' ) ( 'i' | 'I' ) - { - if ( input.LA(1)=='B'||input.LA(1)=='b' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - if ( input.LA(1)=='I'||input.LA(1)=='i' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - case 2 : - // InternalEntities.g:18216:84: ( 'l' | 'L' ) - { - if ( input.LA(1)=='L'||input.LA(1)=='l' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_HEX" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18218:10: ( '0' .. '9' ( '0' .. '9' | '_' )* ) - // InternalEntities.g:18218:12: '0' .. '9' ( '0' .. '9' | '_' )* - { - matchRange('0','9'); - // InternalEntities.g:18218:21: ( '0' .. '9' | '_' )* - loop5: - do { - int alt5=2; - int LA5_0 = input.LA(1); - - if ( ((LA5_0>='0' && LA5_0<='9')||LA5_0=='_') ) { - alt5=1; - } - - - switch (alt5) { - case 1 : - // InternalEntities.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||input.LA(1)=='_' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop5; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_DECIMAL" - public final void mRULE_DECIMAL() throws RecognitionException { - try { - int _type = RULE_DECIMAL; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18220:14: ( RULE_INT ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? ) - // InternalEntities.g:18220:16: RULE_INT ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? - { - mRULE_INT(); - // InternalEntities.g:18220:25: ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='E'||LA7_0=='e') ) { - alt7=1; - } - switch (alt7) { - case 1 : - // InternalEntities.g:18220:26: ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT - { - if ( input.LA(1)=='E'||input.LA(1)=='e' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalEntities.g:18220:36: ( '+' | '-' )? - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0=='+'||LA6_0=='-') ) { - alt6=1; - } - switch (alt6) { - case 1 : - // InternalEntities.g: - { - if ( input.LA(1)=='+'||input.LA(1)=='-' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - mRULE_INT(); - - } - break; - - } - - // InternalEntities.g:18220:58: ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? - int alt8=3; - int LA8_0 = input.LA(1); - - if ( (LA8_0=='B'||LA8_0=='b') ) { - alt8=1; - } - else if ( (LA8_0=='D'||LA8_0=='F'||LA8_0=='L'||LA8_0=='d'||LA8_0=='f'||LA8_0=='l') ) { - alt8=2; - } - switch (alt8) { - case 1 : - // InternalEntities.g:18220:59: ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) - { - if ( input.LA(1)=='B'||input.LA(1)=='b' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - if ( input.LA(1)=='D'||input.LA(1)=='I'||input.LA(1)=='d'||input.LA(1)=='i' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - case 2 : - // InternalEntities.g:18220:87: ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) - { - if ( input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='L'||input.LA(1)=='d'||input.LA(1)=='f'||input.LA(1)=='l' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_DECIMAL" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18222:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* ) - // InternalEntities.g:18222:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* - { - // InternalEntities.g:18222:11: ( '^' )? - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0=='^') ) { - alt9=1; - } - switch (alt9) { - case 1 : - // InternalEntities.g:18222:11: '^' - { - match('^'); - - } - break; - - } - - if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalEntities.g:18222:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* - loop10: - do { - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='$'||(LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { - alt10=1; - } - - - switch (alt10) { - case 1 : - // InternalEntities.g: - { - if ( input.LA(1)=='$'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop10; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18224:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) ) - // InternalEntities.g:18224:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) - { - // InternalEntities.g:18224:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) - int alt15=2; - int LA15_0 = input.LA(1); - - if ( (LA15_0=='\"') ) { - alt15=1; - } - else if ( (LA15_0=='\'') ) { - alt15=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 15, 0, input); - - throw nvae; - } - switch (alt15) { - case 1 : - // InternalEntities.g:18224:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? - { - match('\"'); - // InternalEntities.g:18224:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop11: - do { - int alt11=3; - int LA11_0 = input.LA(1); - - if ( (LA11_0=='\\') ) { - alt11=1; - } - else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { - alt11=2; - } - - - switch (alt11) { - case 1 : - // InternalEntities.g:18224:21: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalEntities.g:18224:28: ~ ( ( '\\\\' | '\"' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop11; - } - } while (true); - - // InternalEntities.g:18224:44: ( '\"' )? - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0=='\"') ) { - alt12=1; - } - switch (alt12) { - case 1 : - // InternalEntities.g:18224:44: '\"' - { - match('\"'); - - } - break; - - } - - - } - break; - case 2 : - // InternalEntities.g:18224:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? - { - match('\''); - // InternalEntities.g:18224:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - loop13: - do { - int alt13=3; - int LA13_0 = input.LA(1); - - if ( (LA13_0=='\\') ) { - alt13=1; - } - else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) { - alt13=2; - } - - - switch (alt13) { - case 1 : - // InternalEntities.g:18224:55: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalEntities.g:18224:62: ~ ( ( '\\\\' | '\\'' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop13; - } - } while (true); - - // InternalEntities.g:18224:79: ( '\\'' )? - int alt14=2; - int LA14_0 = input.LA(1); - - if ( (LA14_0=='\'') ) { - alt14=1; - } - switch (alt14) { - case 1 : - // InternalEntities.g:18224:79: '\\'' - { - match('\''); - - } - break; - - } - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18226:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalEntities.g:18226:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalEntities.g:18226:24: ( options {greedy=false; } : . )* - loop16: - do { - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0=='*') ) { - int LA16_1 = input.LA(2); - - if ( (LA16_1=='/') ) { - alt16=2; - } - else if ( ((LA16_1>='\u0000' && LA16_1<='.')||(LA16_1>='0' && LA16_1<='\uFFFF')) ) { - alt16=1; - } - - - } - else if ( ((LA16_0>='\u0000' && LA16_0<=')')||(LA16_0>='+' && LA16_0<='\uFFFF')) ) { - alt16=1; - } - - - switch (alt16) { - case 1 : - // InternalEntities.g:18226:52: . - { - matchAny(); - - } - break; - - default : - break loop16; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18228:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalEntities.g:18228:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // InternalEntities.g:18228:24: (~ ( ( '\\n' | '\\r' ) ) )* - loop17: - do { - int alt17=2; - int LA17_0 = input.LA(1); - - if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFF')) ) { - alt17=1; - } - - - switch (alt17) { - case 1 : - // InternalEntities.g:18228:24: ~ ( ( '\\n' | '\\r' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop17; - } - } while (true); - - // InternalEntities.g:18228:40: ( ( '\\r' )? '\\n' )? - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0=='\n'||LA19_0=='\r') ) { - alt19=1; - } - switch (alt19) { - case 1 : - // InternalEntities.g:18228:41: ( '\\r' )? '\\n' - { - // InternalEntities.g:18228:41: ( '\\r' )? - int alt18=2; - int LA18_0 = input.LA(1); - - if ( (LA18_0=='\r') ) { - alt18=1; - } - switch (alt18) { - case 1 : - // InternalEntities.g:18228:41: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18230:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalEntities.g:18230:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalEntities.g:18230:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt20=0; - loop20: - do { - int alt20=2; - int LA20_0 = input.LA(1); - - if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) { - alt20=1; - } - - - switch (alt20) { - case 1 : - // InternalEntities.g: - { - if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt20 >= 1 ) break loop20; - EarlyExitException eee = - new EarlyExitException(20, input); - throw eee; - } - cnt20++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18232:16: ( . ) - // InternalEntities.g:18232:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalEntities.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt21=86; - alt21 = dfa21.predict(input); - switch (alt21) { - case 1 : - // InternalEntities.g:1:10: T__13 - { - mT__13(); - - } - break; - case 2 : - // InternalEntities.g:1:16: T__14 - { - mT__14(); - - } - break; - case 3 : - // InternalEntities.g:1:22: T__15 - { - mT__15(); - - } - break; - case 4 : - // InternalEntities.g:1:28: T__16 - { - mT__16(); - - } - break; - case 5 : - // InternalEntities.g:1:34: T__17 - { - mT__17(); - - } - break; - case 6 : - // InternalEntities.g:1:40: T__18 - { - mT__18(); - - } - break; - case 7 : - // InternalEntities.g:1:46: T__19 - { - mT__19(); - - } - break; - case 8 : - // InternalEntities.g:1:52: T__20 - { - mT__20(); - - } - break; - case 9 : - // InternalEntities.g:1:58: T__21 - { - mT__21(); - - } - break; - case 10 : - // InternalEntities.g:1:64: T__22 - { - mT__22(); - - } - break; - case 11 : - // InternalEntities.g:1:70: T__23 - { - mT__23(); - - } - break; - case 12 : - // InternalEntities.g:1:76: T__24 - { - mT__24(); - - } - break; - case 13 : - // InternalEntities.g:1:82: T__25 - { - mT__25(); - - } - break; - case 14 : - // InternalEntities.g:1:88: T__26 - { - mT__26(); - - } - break; - case 15 : - // InternalEntities.g:1:94: T__27 - { - mT__27(); - - } - break; - case 16 : - // InternalEntities.g:1:100: T__28 - { - mT__28(); - - } - break; - case 17 : - // InternalEntities.g:1:106: T__29 - { - mT__29(); - - } - break; - case 18 : - // InternalEntities.g:1:112: T__30 - { - mT__30(); - - } - break; - case 19 : - // InternalEntities.g:1:118: T__31 - { - mT__31(); - - } - break; - case 20 : - // InternalEntities.g:1:124: T__32 - { - mT__32(); - - } - break; - case 21 : - // InternalEntities.g:1:130: T__33 - { - mT__33(); - - } - break; - case 22 : - // InternalEntities.g:1:136: T__34 - { - mT__34(); - - } - break; - case 23 : - // InternalEntities.g:1:142: T__35 - { - mT__35(); - - } - break; - case 24 : - // InternalEntities.g:1:148: T__36 - { - mT__36(); - - } - break; - case 25 : - // InternalEntities.g:1:154: T__37 - { - mT__37(); - - } - break; - case 26 : - // InternalEntities.g:1:160: T__38 - { - mT__38(); - - } - break; - case 27 : - // InternalEntities.g:1:166: T__39 - { - mT__39(); - - } - break; - case 28 : - // InternalEntities.g:1:172: T__40 - { - mT__40(); - - } - break; - case 29 : - // InternalEntities.g:1:178: T__41 - { - mT__41(); - - } - break; - case 30 : - // InternalEntities.g:1:184: T__42 - { - mT__42(); - - } - break; - case 31 : - // InternalEntities.g:1:190: T__43 - { - mT__43(); - - } - break; - case 32 : - // InternalEntities.g:1:196: T__44 - { - mT__44(); - - } - break; - case 33 : - // InternalEntities.g:1:202: T__45 - { - mT__45(); - - } - break; - case 34 : - // InternalEntities.g:1:208: T__46 - { - mT__46(); - - } - break; - case 35 : - // InternalEntities.g:1:214: T__47 - { - mT__47(); - - } - break; - case 36 : - // InternalEntities.g:1:220: T__48 - { - mT__48(); - - } - break; - case 37 : - // InternalEntities.g:1:226: T__49 - { - mT__49(); - - } - break; - case 38 : - // InternalEntities.g:1:232: T__50 - { - mT__50(); - - } - break; - case 39 : - // InternalEntities.g:1:238: T__51 - { - mT__51(); - - } - break; - case 40 : - // InternalEntities.g:1:244: T__52 - { - mT__52(); - - } - break; - case 41 : - // InternalEntities.g:1:250: T__53 - { - mT__53(); - - } - break; - case 42 : - // InternalEntities.g:1:256: T__54 - { - mT__54(); - - } - break; - case 43 : - // InternalEntities.g:1:262: T__55 - { - mT__55(); - - } - break; - case 44 : - // InternalEntities.g:1:268: T__56 - { - mT__56(); - - } - break; - case 45 : - // InternalEntities.g:1:274: T__57 - { - mT__57(); - - } - break; - case 46 : - // InternalEntities.g:1:280: T__58 - { - mT__58(); - - } - break; - case 47 : - // InternalEntities.g:1:286: T__59 - { - mT__59(); - - } - break; - case 48 : - // InternalEntities.g:1:292: T__60 - { - mT__60(); - - } - break; - case 49 : - // InternalEntities.g:1:298: T__61 - { - mT__61(); - - } - break; - case 50 : - // InternalEntities.g:1:304: T__62 - { - mT__62(); - - } - break; - case 51 : - // InternalEntities.g:1:310: T__63 - { - mT__63(); - - } - break; - case 52 : - // InternalEntities.g:1:316: T__64 - { - mT__64(); - - } - break; - case 53 : - // InternalEntities.g:1:322: T__65 - { - mT__65(); - - } - break; - case 54 : - // InternalEntities.g:1:328: T__66 - { - mT__66(); - - } - break; - case 55 : - // InternalEntities.g:1:334: T__67 - { - mT__67(); - - } - break; - case 56 : - // InternalEntities.g:1:340: T__68 - { - mT__68(); - - } - break; - case 57 : - // InternalEntities.g:1:346: T__69 - { - mT__69(); - - } - break; - case 58 : - // InternalEntities.g:1:352: T__70 - { - mT__70(); - - } - break; - case 59 : - // InternalEntities.g:1:358: T__71 - { - mT__71(); - - } - break; - case 60 : - // InternalEntities.g:1:364: T__72 - { - mT__72(); - - } - break; - case 61 : - // InternalEntities.g:1:370: T__73 - { - mT__73(); - - } - break; - case 62 : - // InternalEntities.g:1:376: T__74 - { - mT__74(); - - } - break; - case 63 : - // InternalEntities.g:1:382: T__75 - { - mT__75(); - - } - break; - case 64 : - // InternalEntities.g:1:388: T__76 - { - mT__76(); - - } - break; - case 65 : - // InternalEntities.g:1:394: T__77 - { - mT__77(); - - } - break; - case 66 : - // InternalEntities.g:1:400: T__78 - { - mT__78(); - - } - break; - case 67 : - // InternalEntities.g:1:406: T__79 - { - mT__79(); - - } - break; - case 68 : - // InternalEntities.g:1:412: T__80 - { - mT__80(); - - } - break; - case 69 : - // InternalEntities.g:1:418: T__81 - { - mT__81(); - - } - break; - case 70 : - // InternalEntities.g:1:424: T__82 - { - mT__82(); - - } - break; - case 71 : - // InternalEntities.g:1:430: T__83 - { - mT__83(); - - } - break; - case 72 : - // InternalEntities.g:1:436: T__84 - { - mT__84(); - - } - break; - case 73 : - // InternalEntities.g:1:442: T__85 - { - mT__85(); - - } - break; - case 74 : - // InternalEntities.g:1:448: T__86 - { - mT__86(); - - } - break; - case 75 : - // InternalEntities.g:1:454: T__87 - { - mT__87(); - - } - break; - case 76 : - // InternalEntities.g:1:460: T__88 - { - mT__88(); - - } - break; - case 77 : - // InternalEntities.g:1:466: T__89 - { - mT__89(); - - } - break; - case 78 : - // InternalEntities.g:1:472: RULE_HEX - { - mRULE_HEX(); - - } - break; - case 79 : - // InternalEntities.g:1:481: RULE_INT - { - mRULE_INT(); - - } - break; - case 80 : - // InternalEntities.g:1:490: RULE_DECIMAL - { - mRULE_DECIMAL(); - - } - break; - case 81 : - // InternalEntities.g:1:503: RULE_ID - { - mRULE_ID(); - - } - break; - case 82 : - // InternalEntities.g:1:511: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 83 : - // InternalEntities.g:1:523: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 84 : - // InternalEntities.g:1:539: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 85 : - // InternalEntities.g:1:555: RULE_WS - { - mRULE_WS(); - - } - break; - case 86 : - // InternalEntities.g:1:563: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA21 dfa21 = new DFA21(this); - static final String DFA21_eotS = - "\1\uffff\1\60\1\62\1\64\1\67\1\73\1\76\1\102\1\104\1\106\1\110\1\112\1\114\1\117\6\121\2\uffff\1\143\1\121\3\uffff\1\121\4\uffff\6\121\2\171\1\55\5\uffff\1\176\26\uffff\1\u0080\5\uffff\1\u0082\4\uffff\1\121\1\uffff\11\121\1\u008e\4\121\4\uffff\1\u0093\3\uffff\1\u0094\4\uffff\1\121\1\u0096\10\121\1\uffff\1\171\12\uffff\1\u00a1\1\u00a2\11\121\1\uffff\1\121\1\u00ad\2\121\2\uffff\1\121\1\uffff\3\121\1\u00b4\3\121\1\u00b8\2\121\2\uffff\2\121\1\u00bd\7\121\1\uffff\3\121\1\u00c8\2\121\1\uffff\1\u00cb\2\121\1\uffff\1\u00ce\3\121\1\uffff\1\121\1\u00d4\4\121\1\u00d9\3\121\1\uffff\1\u00dd\1\u00de\1\uffff\1\121\1\u00e0\1\uffff\3\121\1\u00e4\1\u00e5\1\uffff\1\u00e6\1\121\1\u00e8\1\121\1\uffff\3\121\2\uffff\1\u00ed\1\uffff\1\u00ee\1\u00ef\1\121\3\uffff\1\121\1\uffff\1\121\1\u00f3\1\u00f4\1\u00f5\3\uffff\3\121\3\uffff\1\u00f9\2\121\1\uffff\1\121\1\u00fd\1\121\1\uffff\1\u00ff\1\uffff"; - static final String DFA21_eofS = - "\u0100\uffff"; - static final String DFA21_minS = - "\1\0\1\75\1\174\1\46\1\53\1\55\2\52\3\75\1\76\2\56\1\141\1\154\1\164\1\146\2\141\2\uffff\1\72\1\160\3\uffff\1\163\4\uffff\1\145\1\141\1\150\1\145\1\150\1\145\2\60\1\44\5\uffff\1\75\26\uffff\1\75\5\uffff\1\74\4\uffff\1\154\1\uffff\2\164\1\163\1\141\1\160\1\151\1\156\1\160\1\163\1\44\1\154\1\162\1\156\1\143\4\uffff\1\44\3\uffff\1\44\4\uffff\1\146\1\44\1\163\1\151\1\167\1\154\1\160\1\162\1\165\1\164\1\uffff\1\60\12\uffff\2\44\1\145\1\151\1\145\1\164\1\145\1\164\1\143\1\157\1\164\1\uffff\1\163\1\44\1\141\1\153\2\uffff\1\141\1\uffff\1\145\1\143\1\154\1\44\1\154\1\145\1\157\1\44\1\145\1\165\2\uffff\1\156\1\164\1\44\1\151\1\162\1\143\1\150\1\162\1\141\1\145\1\uffff\1\154\1\141\1\165\1\44\1\150\1\145\1\uffff\1\44\1\157\1\167\1\uffff\1\44\1\162\1\144\1\171\1\uffff\1\143\1\44\1\150\1\162\1\164\1\156\1\44\1\154\1\147\1\154\1\uffff\2\44\1\uffff\1\146\1\44\1\uffff\1\156\1\163\1\151\2\44\1\uffff\1\44\1\157\1\44\1\143\1\uffff\1\171\1\145\1\164\2\uffff\1\44\1\uffff\2\44\1\157\3\uffff\1\156\1\uffff\1\145\3\44\3\uffff\1\156\1\151\1\157\3\uffff\1\44\1\172\1\146\1\uffff\1\145\1\44\1\144\1\uffff\1\44\1\uffff"; - static final String DFA21_maxS = - "\1\uffff\1\76\1\174\1\46\1\75\1\76\5\75\1\76\1\56\1\72\1\141\1\170\1\171\1\156\1\157\1\141\2\uffff\1\72\1\160\3\uffff\1\163\4\uffff\1\157\1\141\1\150\1\165\1\171\1\145\1\170\1\154\1\172\5\uffff\1\75\26\uffff\1\75\5\uffff\1\74\4\uffff\1\162\1\uffff\2\164\1\163\1\141\1\160\1\151\1\156\1\160\1\163\1\172\1\154\1\162\1\156\1\143\4\uffff\1\172\3\uffff\1\172\4\uffff\1\146\1\172\1\164\1\151\1\167\1\154\1\160\1\162\1\171\1\164\1\uffff\1\154\12\uffff\2\172\1\145\1\151\1\145\1\164\1\145\1\164\1\143\1\157\1\164\1\uffff\1\163\1\172\1\141\1\153\2\uffff\1\141\1\uffff\1\145\1\143\1\154\1\172\1\154\1\145\1\157\1\172\1\145\1\165\2\uffff\1\156\1\164\1\172\1\151\1\162\1\143\1\150\1\162\1\141\1\145\1\uffff\1\154\1\141\1\165\1\172\1\150\1\145\1\uffff\1\172\1\157\1\167\1\uffff\1\172\1\162\1\163\1\171\1\uffff\1\143\1\172\1\150\1\162\1\164\1\156\1\172\1\154\1\147\1\154\1\uffff\2\172\1\uffff\1\146\1\172\1\uffff\1\156\1\163\1\151\2\172\1\uffff\1\172\1\157\1\172\1\143\1\uffff\1\171\1\145\1\164\2\uffff\1\172\1\uffff\2\172\1\157\3\uffff\1\156\1\uffff\1\145\3\172\3\uffff\1\156\1\151\1\157\3\uffff\2\172\1\146\1\uffff\1\145\1\172\1\144\1\uffff\1\172\1\uffff"; - static final String DFA21_acceptS = - "\24\uffff\1\50\1\51\2\uffff\1\55\1\56\1\57\1\uffff\1\62\1\63\1\64\1\65\11\uffff\1\121\2\122\1\125\1\126\1\uffff\1\23\1\1\1\2\1\113\1\3\1\110\1\4\1\35\1\26\1\5\1\20\1\36\1\27\1\6\1\31\1\30\1\7\1\123\1\124\1\32\1\10\1\33\1\uffff\1\34\1\15\1\16\1\24\1\17\1\uffff\1\37\1\25\1\112\1\107\1\uffff\1\121\16\uffff\1\50\1\51\1\111\1\53\1\uffff\1\55\1\56\1\57\1\uffff\1\62\1\63\1\64\1\65\12\uffff\1\116\1\uffff\1\117\1\120\1\122\1\125\1\13\1\11\1\14\1\12\1\21\1\22\13\uffff\1\66\4\uffff\1\54\1\61\1\uffff\1\75\12\uffff\1\40\1\114\12\uffff\1\73\6\uffff\1\76\3\uffff\1\103\4\uffff\1\67\12\uffff\1\72\2\uffff\1\77\2\uffff\1\115\5\uffff\1\45\4\uffff\1\46\3\uffff\1\106\1\74\1\uffff\1\101\3\uffff\1\52\1\42\1\70\1\uffff\1\43\4\uffff\1\100\1\102\1\41\3\uffff\1\104\1\47\1\71\3\uffff\1\44\3\uffff\1\60\1\uffff\1\105"; - static final String DFA21_specialS = - "\1\0\u00ff\uffff}>"; - static final String[] DFA21_transitionS = { - "\11\55\2\54\2\55\1\54\22\55\1\54\1\11\1\52\1\34\1\51\1\10\1\3\1\53\1\30\1\31\1\6\1\4\1\32\1\5\1\14\1\7\1\46\11\47\1\26\1\37\1\13\1\1\1\12\1\15\1\55\32\51\1\35\1\55\1\36\1\50\1\51\1\55\1\33\1\51\1\41\1\40\1\17\1\22\2\51\1\21\4\51\1\43\1\27\1\23\1\51\1\45\1\20\1\44\1\51\1\16\1\42\3\51\1\24\1\2\1\25\uff82\55", - "\1\56\1\57", - "\1\61", - "\1\63", - "\1\66\21\uffff\1\65", - "\1\72\17\uffff\1\70\1\71", - "\1\75\22\uffff\1\74", - "\1\100\4\uffff\1\101\15\uffff\1\77", - "\1\103", - "\1\105", - "\1\107", - "\1\111", - "\1\113", - "\1\116\13\uffff\1\115", - "\1\120", - "\1\124\1\uffff\1\123\11\uffff\1\122", - "\1\125\1\126\1\uffff\1\127\1\uffff\1\130", - "\1\133\6\uffff\1\131\1\132", - "\1\134\7\uffff\1\136\5\uffff\1\135", - "\1\137", - "", - "", - "\1\142", - "\1\144", - "", - "", - "", - "\1\150", - "", - "", - "", - "", - "\1\155\11\uffff\1\156", - "\1\157", - "\1\160", - "\1\161\17\uffff\1\162", - "\1\164\11\uffff\1\165\6\uffff\1\163", - "\1\166", - "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\13\uffff\1\167\6\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172\13\uffff\1\167", - "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\22\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172", - "\1\121\34\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "", - "", - "", - "", - "\1\175", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\177", - "", - "", - "", - "", - "", - "\1\u0081", - "", - "", - "", - "", - "\1\u0083\5\uffff\1\u0084", - "", - "\1\u0085", - "\1\u0086", - "\1\u0087", - "\1\u0088", - "\1\u0089", - "\1\u008a", - "\1\u008b", - "\1\u008c", - "\1\u008d", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u008f", - "\1\u0090", - "\1\u0091", - "\1\u0092", - "", - "", - "", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "", - "", - "", - "\1\u0095", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u0097\1\u0098", - "\1\u0099", - "\1\u009a", - "\1\u009b", - "\1\u009c", - "\1\u009d", - "\1\u009f\3\uffff\1\u009e", - "\1\u00a0", - "", - "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\22\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00a3", - "\1\u00a4", - "\1\u00a5", - "\1\u00a6", - "\1\u00a7", - "\1\u00a8", - "\1\u00a9", - "\1\u00aa", - "\1\u00ab", - "", - "\1\u00ac", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00ae", - "\1\u00af", - "", - "", - "\1\u00b0", - "", - "\1\u00b1", - "\1\u00b2", - "\1\u00b3", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00b5", - "\1\u00b6", - "\1\u00b7", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00b9", - "\1\u00ba", - "", - "", - "\1\u00bb", - "\1\u00bc", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00be", - "\1\u00bf", - "\1\u00c0", - "\1\u00c1", - "\1\u00c2", - "\1\u00c3", - "\1\u00c4", - "", - "\1\u00c5", - "\1\u00c6", - "\1\u00c7", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00c9", - "\1\u00ca", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00cc", - "\1\u00cd", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00cf", - "\1\u00d0\16\uffff\1\u00d1", - "\1\u00d2", - "", - "\1\u00d3", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00d5", - "\1\u00d6", - "\1\u00d7", - "\1\u00d8", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00da", - "\1\u00db", - "\1\u00dc", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "\1\u00df", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "\1\u00e1", - "\1\u00e2", - "\1\u00e3", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00e7", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00e9", - "", - "\1\u00ea", - "\1\u00eb", - "\1\u00ec", - "", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00f0", - "", - "", - "", - "\1\u00f1", - "", - "\1\u00f2", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "", - "", - "", - "\1\u00f6", - "\1\u00f7", - "\1\u00f8", - "", - "", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00fa", - "\1\u00fb", - "", - "\1\u00fc", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "\1\u00fe", - "", - "\1\121\13\uffff\12\121\7\uffff\32\121\4\uffff\1\121\1\uffff\32\121", - "" - }; - - static final short[] DFA21_eot = DFA.unpackEncodedString(DFA21_eotS); - static final short[] DFA21_eof = DFA.unpackEncodedString(DFA21_eofS); - static final char[] DFA21_min = DFA.unpackEncodedStringToUnsignedChars(DFA21_minS); - static final char[] DFA21_max = DFA.unpackEncodedStringToUnsignedChars(DFA21_maxS); - static final short[] DFA21_accept = DFA.unpackEncodedString(DFA21_acceptS); - static final short[] DFA21_special = DFA.unpackEncodedString(DFA21_specialS); - static final short[][] DFA21_transition; - - static { - int numStates = DFA21_transitionS.length; - DFA21_transition = new short[numStates][]; - for (int i=0; i') ) {s = 10;} - - else if ( (LA21_0=='<') ) {s = 11;} - - else if ( (LA21_0=='.') ) {s = 12;} - - else if ( (LA21_0=='?') ) {s = 13;} - - else if ( (LA21_0=='v') ) {s = 14;} - - else if ( (LA21_0=='e') ) {s = 15;} - - else if ( (LA21_0=='s') ) {s = 16;} - - else if ( (LA21_0=='i') ) {s = 17;} - - else if ( (LA21_0=='f') ) {s = 18;} - - else if ( (LA21_0=='p') ) {s = 19;} - - else if ( (LA21_0=='{') ) {s = 20;} - - else if ( (LA21_0=='}') ) {s = 21;} - - else if ( (LA21_0==':') ) {s = 22;} - - else if ( (LA21_0=='o') ) {s = 23;} - - else if ( (LA21_0=='(') ) {s = 24;} - - else if ( (LA21_0==')') ) {s = 25;} - - else if ( (LA21_0==',') ) {s = 26;} - - else if ( (LA21_0=='a') ) {s = 27;} - - else if ( (LA21_0=='#') ) {s = 28;} - - else if ( (LA21_0=='[') ) {s = 29;} - - else if ( (LA21_0==']') ) {s = 30;} - - else if ( (LA21_0==';') ) {s = 31;} - - else if ( (LA21_0=='d') ) {s = 32;} - - else if ( (LA21_0=='c') ) {s = 33;} - - else if ( (LA21_0=='w') ) {s = 34;} - - else if ( (LA21_0=='n') ) {s = 35;} - - else if ( (LA21_0=='t') ) {s = 36;} - - else if ( (LA21_0=='r') ) {s = 37;} - - else if ( (LA21_0=='0') ) {s = 38;} - - else if ( ((LA21_0>='1' && LA21_0<='9')) ) {s = 39;} - - else if ( (LA21_0=='^') ) {s = 40;} - - else if ( (LA21_0=='$'||(LA21_0>='A' && LA21_0<='Z')||LA21_0=='_'||LA21_0=='b'||(LA21_0>='g' && LA21_0<='h')||(LA21_0>='j' && LA21_0<='m')||LA21_0=='q'||LA21_0=='u'||(LA21_0>='x' && LA21_0<='z')) ) {s = 41;} - - else if ( (LA21_0=='\"') ) {s = 42;} - - else if ( (LA21_0=='\'') ) {s = 43;} - - else if ( ((LA21_0>='\t' && LA21_0<='\n')||LA21_0=='\r'||LA21_0==' ') ) {s = 44;} - - else if ( ((LA21_0>='\u0000' && LA21_0<='\b')||(LA21_0>='\u000B' && LA21_0<='\f')||(LA21_0>='\u000E' && LA21_0<='\u001F')||LA21_0=='@'||LA21_0=='\\'||LA21_0=='`'||(LA21_0>='~' && LA21_0<='\uFFFF')) ) {s = 45;} - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 21, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntitiesParser.java b/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntitiesParser.java deleted file mode 100644 index cc11d5b4809..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src-gen/org/eclipse/xtext/web/example/entities/ide/contentassist/antlr/internal/InternalEntitiesParser.java +++ /dev/null @@ -1,63017 +0,0 @@ -package org.eclipse.xtext.web.example.entities.ide.contentassist.antlr.internal; - -import java.io.InputStream; -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.DFA; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -@SuppressWarnings("all") -public class InternalEntitiesParser extends AbstractInternalContentAssistParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_ID", "RULE_HEX", "RULE_INT", "RULE_DECIMAL", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'='", "'||'", "'&&'", "'+='", "'-='", "'*='", "'/='", "'%='", "'=='", "'!='", "'==='", "'!=='", "'>='", "'>'", "'<'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'+'", "'-'", "'*'", "'**'", "'/'", "'%'", "'!'", "'++'", "'--'", "'.'", "'val'", "'extends'", "'static'", "'import'", "'extension'", "'super'", "'false'", "'package'", "'{'", "'}'", "'entity'", "':'", "'op'", "'('", "')'", "','", "'instanceof'", "'as'", "'#'", "'['", "']'", "';'", "'if'", "'else'", "'switch'", "'default'", "'case'", "'for'", "'while'", "'do'", "'new'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'", "'::'", "'?.'", "'|'", "'var'", "'true'" - }; - public static final int RULE_HEX=5; - public static final int T__50=50; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__59=59; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__55=55; - public static final int T__56=56; - public static final int T__13=13; - public static final int T__57=57; - public static final int T__14=14; - public static final int T__58=58; - public static final int T__51=51; - public static final int T__52=52; - public static final int T__53=53; - public static final int T__54=54; - public static final int T__60=60; - public static final int T__61=61; - public static final int RULE_ID=4; - public static final int RULE_DECIMAL=7; - public static final int T__26=26; - public static final int T__27=27; - public static final int T__28=28; - public static final int RULE_INT=6; - public static final int T__29=29; - public static final int T__22=22; - public static final int T__66=66; - public static final int RULE_ML_COMMENT=9; - public static final int T__23=23; - public static final int T__67=67; - public static final int T__24=24; - public static final int T__68=68; - public static final int T__25=25; - public static final int T__69=69; - public static final int T__62=62; - public static final int T__63=63; - public static final int T__20=20; - public static final int T__64=64; - public static final int T__21=21; - public static final int T__65=65; - public static final int T__70=70; - public static final int T__71=71; - public static final int T__72=72; - public static final int RULE_STRING=8; - public static final int RULE_SL_COMMENT=10; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__39=39; - public static final int T__33=33; - public static final int T__77=77; - public static final int T__34=34; - public static final int T__78=78; - public static final int T__35=35; - public static final int T__79=79; - public static final int T__36=36; - public static final int T__73=73; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__74=74; - public static final int T__31=31; - public static final int T__75=75; - public static final int T__32=32; - public static final int T__76=76; - public static final int T__80=80; - public static final int T__81=81; - public static final int T__82=82; - public static final int T__83=83; - public static final int RULE_WS=11; - public static final int RULE_ANY_OTHER=12; - public static final int T__48=48; - public static final int T__49=49; - public static final int T__44=44; - public static final int T__88=88; - public static final int T__45=45; - public static final int T__89=89; - public static final int T__46=46; - public static final int T__47=47; - public static final int T__40=40; - public static final int T__84=84; - public static final int T__41=41; - public static final int T__85=85; - public static final int T__42=42; - public static final int T__86=86; - public static final int T__43=43; - public static final int T__87=87; - - // delegates - // delegators - - - public InternalEntitiesParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalEntitiesParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalEntitiesParser.tokenNames; } - public String getGrammarFileName() { return "InternalEntities.g"; } - - - private EntitiesGrammarAccess grammarAccess; - - public void setGrammarAccess(EntitiesGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - @Override - protected Grammar getGrammar() { - return grammarAccess.getGrammar(); - } - - @Override - protected String getValueForTokenName(String tokenName) { - return tokenName; - } - - - - // $ANTLR start "entryRuleEntities" - // InternalEntities.g:59:1: entryRuleEntities : ruleEntities EOF ; - public final void entryRuleEntities() throws RecognitionException { - try { - // InternalEntities.g:60:1: ( ruleEntities EOF ) - // InternalEntities.g:61:1: ruleEntities EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntitiesRule()); - } - pushFollow(FOLLOW_1); - ruleEntities(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntitiesRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleEntities" - - - // $ANTLR start "ruleEntities" - // InternalEntities.g:68:1: ruleEntities : ( ( rule__Entities__Group__0 ) ) ; - public final void ruleEntities() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:72:2: ( ( ( rule__Entities__Group__0 ) ) ) - // InternalEntities.g:73:2: ( ( rule__Entities__Group__0 ) ) - { - // InternalEntities.g:73:2: ( ( rule__Entities__Group__0 ) ) - // InternalEntities.g:74:3: ( rule__Entities__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntitiesAccess().getGroup()); - } - // InternalEntities.g:75:3: ( rule__Entities__Group__0 ) - // InternalEntities.g:75:4: rule__Entities__Group__0 - { - pushFollow(FOLLOW_2); - rule__Entities__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntitiesAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleEntities" - - - // $ANTLR start "entryRuleAbstractElement" - // InternalEntities.g:84:1: entryRuleAbstractElement : ruleAbstractElement EOF ; - public final void entryRuleAbstractElement() throws RecognitionException { - try { - // InternalEntities.g:85:1: ( ruleAbstractElement EOF ) - // InternalEntities.g:86:1: ruleAbstractElement EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getAbstractElementRule()); - } - pushFollow(FOLLOW_1); - ruleAbstractElement(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getAbstractElementRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleAbstractElement" - - - // $ANTLR start "ruleAbstractElement" - // InternalEntities.g:93:1: ruleAbstractElement : ( ( rule__AbstractElement__Alternatives ) ) ; - public final void ruleAbstractElement() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:97:2: ( ( ( rule__AbstractElement__Alternatives ) ) ) - // InternalEntities.g:98:2: ( ( rule__AbstractElement__Alternatives ) ) - { - // InternalEntities.g:98:2: ( ( rule__AbstractElement__Alternatives ) ) - // InternalEntities.g:99:3: ( rule__AbstractElement__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getAbstractElementAccess().getAlternatives()); - } - // InternalEntities.g:100:3: ( rule__AbstractElement__Alternatives ) - // InternalEntities.g:100:4: rule__AbstractElement__Alternatives - { - pushFollow(FOLLOW_2); - rule__AbstractElement__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getAbstractElementAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleAbstractElement" - - - // $ANTLR start "entryRulePackageDeclaration" - // InternalEntities.g:109:1: entryRulePackageDeclaration : rulePackageDeclaration EOF ; - public final void entryRulePackageDeclaration() throws RecognitionException { - try { - // InternalEntities.g:110:1: ( rulePackageDeclaration EOF ) - // InternalEntities.g:111:1: rulePackageDeclaration EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationRule()); - } - pushFollow(FOLLOW_1); - rulePackageDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRulePackageDeclaration" - - - // $ANTLR start "rulePackageDeclaration" - // InternalEntities.g:118:1: rulePackageDeclaration : ( ( rule__PackageDeclaration__Group__0 ) ) ; - public final void rulePackageDeclaration() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:122:2: ( ( ( rule__PackageDeclaration__Group__0 ) ) ) - // InternalEntities.g:123:2: ( ( rule__PackageDeclaration__Group__0 ) ) - { - // InternalEntities.g:123:2: ( ( rule__PackageDeclaration__Group__0 ) ) - // InternalEntities.g:124:3: ( rule__PackageDeclaration__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getGroup()); - } - // InternalEntities.g:125:3: ( rule__PackageDeclaration__Group__0 ) - // InternalEntities.g:125:4: rule__PackageDeclaration__Group__0 - { - pushFollow(FOLLOW_2); - rule__PackageDeclaration__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rulePackageDeclaration" - - - // $ANTLR start "entryRuleEntity" - // InternalEntities.g:134:1: entryRuleEntity : ruleEntity EOF ; - public final void entryRuleEntity() throws RecognitionException { - try { - // InternalEntities.g:135:1: ( ruleEntity EOF ) - // InternalEntities.g:136:1: ruleEntity EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityRule()); - } - pushFollow(FOLLOW_1); - ruleEntity(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleEntity" - - - // $ANTLR start "ruleEntity" - // InternalEntities.g:143:1: ruleEntity : ( ( rule__Entity__Group__0 ) ) ; - public final void ruleEntity() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:147:2: ( ( ( rule__Entity__Group__0 ) ) ) - // InternalEntities.g:148:2: ( ( rule__Entity__Group__0 ) ) - { - // InternalEntities.g:148:2: ( ( rule__Entity__Group__0 ) ) - // InternalEntities.g:149:3: ( rule__Entity__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getGroup()); - } - // InternalEntities.g:150:3: ( rule__Entity__Group__0 ) - // InternalEntities.g:150:4: rule__Entity__Group__0 - { - pushFollow(FOLLOW_2); - rule__Entity__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleEntity" - - - // $ANTLR start "entryRuleFeature" - // InternalEntities.g:159:1: entryRuleFeature : ruleFeature EOF ; - public final void entryRuleFeature() throws RecognitionException { - try { - // InternalEntities.g:160:1: ( ruleFeature EOF ) - // InternalEntities.g:161:1: ruleFeature EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureRule()); - } - pushFollow(FOLLOW_1); - ruleFeature(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleFeature" - - - // $ANTLR start "ruleFeature" - // InternalEntities.g:168:1: ruleFeature : ( ( rule__Feature__Alternatives ) ) ; - public final void ruleFeature() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:172:2: ( ( ( rule__Feature__Alternatives ) ) ) - // InternalEntities.g:173:2: ( ( rule__Feature__Alternatives ) ) - { - // InternalEntities.g:173:2: ( ( rule__Feature__Alternatives ) ) - // InternalEntities.g:174:3: ( rule__Feature__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureAccess().getAlternatives()); - } - // InternalEntities.g:175:3: ( rule__Feature__Alternatives ) - // InternalEntities.g:175:4: rule__Feature__Alternatives - { - pushFollow(FOLLOW_2); - rule__Feature__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleFeature" - - - // $ANTLR start "entryRuleProperty" - // InternalEntities.g:184:1: entryRuleProperty : ruleProperty EOF ; - public final void entryRuleProperty() throws RecognitionException { - try { - // InternalEntities.g:185:1: ( ruleProperty EOF ) - // InternalEntities.g:186:1: ruleProperty EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyRule()); - } - pushFollow(FOLLOW_1); - ruleProperty(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleProperty" - - - // $ANTLR start "ruleProperty" - // InternalEntities.g:193:1: ruleProperty : ( ( rule__Property__Group__0 ) ) ; - public final void ruleProperty() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:197:2: ( ( ( rule__Property__Group__0 ) ) ) - // InternalEntities.g:198:2: ( ( rule__Property__Group__0 ) ) - { - // InternalEntities.g:198:2: ( ( rule__Property__Group__0 ) ) - // InternalEntities.g:199:3: ( rule__Property__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyAccess().getGroup()); - } - // InternalEntities.g:200:3: ( rule__Property__Group__0 ) - // InternalEntities.g:200:4: rule__Property__Group__0 - { - pushFollow(FOLLOW_2); - rule__Property__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleProperty" - - - // $ANTLR start "entryRuleOperation" - // InternalEntities.g:209:1: entryRuleOperation : ruleOperation EOF ; - public final void entryRuleOperation() throws RecognitionException { - try { - // InternalEntities.g:210:1: ( ruleOperation EOF ) - // InternalEntities.g:211:1: ruleOperation EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationRule()); - } - pushFollow(FOLLOW_1); - ruleOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOperation" - - - // $ANTLR start "ruleOperation" - // InternalEntities.g:218:1: ruleOperation : ( ( rule__Operation__Group__0 ) ) ; - public final void ruleOperation() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:222:2: ( ( ( rule__Operation__Group__0 ) ) ) - // InternalEntities.g:223:2: ( ( rule__Operation__Group__0 ) ) - { - // InternalEntities.g:223:2: ( ( rule__Operation__Group__0 ) ) - // InternalEntities.g:224:3: ( rule__Operation__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getGroup()); - } - // InternalEntities.g:225:3: ( rule__Operation__Group__0 ) - // InternalEntities.g:225:4: rule__Operation__Group__0 - { - pushFollow(FOLLOW_2); - rule__Operation__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOperation" - - - // $ANTLR start "entryRuleXExpression" - // InternalEntities.g:234:1: entryRuleXExpression : ruleXExpression EOF ; - public final void entryRuleXExpression() throws RecognitionException { - try { - // InternalEntities.g:235:1: ( ruleXExpression EOF ) - // InternalEntities.g:236:1: ruleXExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXExpression" - - - // $ANTLR start "ruleXExpression" - // InternalEntities.g:243:1: ruleXExpression : ( ruleXAssignment ) ; - public final void ruleXExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:247:2: ( ( ruleXAssignment ) ) - // InternalEntities.g:248:2: ( ruleXAssignment ) - { - // InternalEntities.g:248:2: ( ruleXAssignment ) - // InternalEntities.g:249:3: ruleXAssignment - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); - } - pushFollow(FOLLOW_2); - ruleXAssignment(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXExpression" - - - // $ANTLR start "entryRuleXAssignment" - // InternalEntities.g:259:1: entryRuleXAssignment : ruleXAssignment EOF ; - public final void entryRuleXAssignment() throws RecognitionException { - try { - // InternalEntities.g:260:1: ( ruleXAssignment EOF ) - // InternalEntities.g:261:1: ruleXAssignment EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentRule()); - } - pushFollow(FOLLOW_1); - ruleXAssignment(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXAssignment" - - - // $ANTLR start "ruleXAssignment" - // InternalEntities.g:268:1: ruleXAssignment : ( ( rule__XAssignment__Alternatives ) ) ; - public final void ruleXAssignment() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:272:2: ( ( ( rule__XAssignment__Alternatives ) ) ) - // InternalEntities.g:273:2: ( ( rule__XAssignment__Alternatives ) ) - { - // InternalEntities.g:273:2: ( ( rule__XAssignment__Alternatives ) ) - // InternalEntities.g:274:3: ( rule__XAssignment__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getAlternatives()); - } - // InternalEntities.g:275:3: ( rule__XAssignment__Alternatives ) - // InternalEntities.g:275:4: rule__XAssignment__Alternatives - { - pushFollow(FOLLOW_2); - rule__XAssignment__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXAssignment" - - - // $ANTLR start "entryRuleOpSingleAssign" - // InternalEntities.g:284:1: entryRuleOpSingleAssign : ruleOpSingleAssign EOF ; - public final void entryRuleOpSingleAssign() throws RecognitionException { - try { - // InternalEntities.g:285:1: ( ruleOpSingleAssign EOF ) - // InternalEntities.g:286:1: ruleOpSingleAssign EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpSingleAssignRule()); - } - pushFollow(FOLLOW_1); - ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpSingleAssignRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpSingleAssign" - - - // $ANTLR start "ruleOpSingleAssign" - // InternalEntities.g:293:1: ruleOpSingleAssign : ( '=' ) ; - public final void ruleOpSingleAssign() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:297:2: ( ( '=' ) ) - // InternalEntities.g:298:2: ( '=' ) - { - // InternalEntities.g:298:2: ( '=' ) - // InternalEntities.g:299:3: '=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); - } - match(input,13,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpSingleAssign" - - - // $ANTLR start "entryRuleOpMultiAssign" - // InternalEntities.g:309:1: entryRuleOpMultiAssign : ruleOpMultiAssign EOF ; - public final void entryRuleOpMultiAssign() throws RecognitionException { - try { - // InternalEntities.g:310:1: ( ruleOpMultiAssign EOF ) - // InternalEntities.g:311:1: ruleOpMultiAssign EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignRule()); - } - pushFollow(FOLLOW_1); - ruleOpMultiAssign(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpMultiAssign" - - - // $ANTLR start "ruleOpMultiAssign" - // InternalEntities.g:318:1: ruleOpMultiAssign : ( ( rule__OpMultiAssign__Alternatives ) ) ; - public final void ruleOpMultiAssign() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:322:2: ( ( ( rule__OpMultiAssign__Alternatives ) ) ) - // InternalEntities.g:323:2: ( ( rule__OpMultiAssign__Alternatives ) ) - { - // InternalEntities.g:323:2: ( ( rule__OpMultiAssign__Alternatives ) ) - // InternalEntities.g:324:3: ( rule__OpMultiAssign__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getAlternatives()); - } - // InternalEntities.g:325:3: ( rule__OpMultiAssign__Alternatives ) - // InternalEntities.g:325:4: rule__OpMultiAssign__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpMultiAssign" - - - // $ANTLR start "entryRuleXOrExpression" - // InternalEntities.g:334:1: entryRuleXOrExpression : ruleXOrExpression EOF ; - public final void entryRuleXOrExpression() throws RecognitionException { - try { - // InternalEntities.g:335:1: ( ruleXOrExpression EOF ) - // InternalEntities.g:336:1: ruleXOrExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXOrExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXOrExpression" - - - // $ANTLR start "ruleXOrExpression" - // InternalEntities.g:343:1: ruleXOrExpression : ( ( rule__XOrExpression__Group__0 ) ) ; - public final void ruleXOrExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:347:2: ( ( ( rule__XOrExpression__Group__0 ) ) ) - // InternalEntities.g:348:2: ( ( rule__XOrExpression__Group__0 ) ) - { - // InternalEntities.g:348:2: ( ( rule__XOrExpression__Group__0 ) ) - // InternalEntities.g:349:3: ( rule__XOrExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getGroup()); - } - // InternalEntities.g:350:3: ( rule__XOrExpression__Group__0 ) - // InternalEntities.g:350:4: rule__XOrExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXOrExpression" - - - // $ANTLR start "entryRuleOpOr" - // InternalEntities.g:359:1: entryRuleOpOr : ruleOpOr EOF ; - public final void entryRuleOpOr() throws RecognitionException { - try { - // InternalEntities.g:360:1: ( ruleOpOr EOF ) - // InternalEntities.g:361:1: ruleOpOr EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOrRule()); - } - pushFollow(FOLLOW_1); - ruleOpOr(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOrRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpOr" - - - // $ANTLR start "ruleOpOr" - // InternalEntities.g:368:1: ruleOpOr : ( '||' ) ; - public final void ruleOpOr() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:372:2: ( ( '||' ) ) - // InternalEntities.g:373:2: ( '||' ) - { - // InternalEntities.g:373:2: ( '||' ) - // InternalEntities.g:374:3: '||' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); - } - match(input,14,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpOr" - - - // $ANTLR start "entryRuleXAndExpression" - // InternalEntities.g:384:1: entryRuleXAndExpression : ruleXAndExpression EOF ; - public final void entryRuleXAndExpression() throws RecognitionException { - try { - // InternalEntities.g:385:1: ( ruleXAndExpression EOF ) - // InternalEntities.g:386:1: ruleXAndExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXAndExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXAndExpression" - - - // $ANTLR start "ruleXAndExpression" - // InternalEntities.g:393:1: ruleXAndExpression : ( ( rule__XAndExpression__Group__0 ) ) ; - public final void ruleXAndExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:397:2: ( ( ( rule__XAndExpression__Group__0 ) ) ) - // InternalEntities.g:398:2: ( ( rule__XAndExpression__Group__0 ) ) - { - // InternalEntities.g:398:2: ( ( rule__XAndExpression__Group__0 ) ) - // InternalEntities.g:399:3: ( rule__XAndExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getGroup()); - } - // InternalEntities.g:400:3: ( rule__XAndExpression__Group__0 ) - // InternalEntities.g:400:4: rule__XAndExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXAndExpression" - - - // $ANTLR start "entryRuleOpAnd" - // InternalEntities.g:409:1: entryRuleOpAnd : ruleOpAnd EOF ; - public final void entryRuleOpAnd() throws RecognitionException { - try { - // InternalEntities.g:410:1: ( ruleOpAnd EOF ) - // InternalEntities.g:411:1: ruleOpAnd EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpAndRule()); - } - pushFollow(FOLLOW_1); - ruleOpAnd(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpAndRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpAnd" - - - // $ANTLR start "ruleOpAnd" - // InternalEntities.g:418:1: ruleOpAnd : ( '&&' ) ; - public final void ruleOpAnd() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:422:2: ( ( '&&' ) ) - // InternalEntities.g:423:2: ( '&&' ) - { - // InternalEntities.g:423:2: ( '&&' ) - // InternalEntities.g:424:3: '&&' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); - } - match(input,15,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpAnd" - - - // $ANTLR start "entryRuleXEqualityExpression" - // InternalEntities.g:434:1: entryRuleXEqualityExpression : ruleXEqualityExpression EOF ; - public final void entryRuleXEqualityExpression() throws RecognitionException { - try { - // InternalEntities.g:435:1: ( ruleXEqualityExpression EOF ) - // InternalEntities.g:436:1: ruleXEqualityExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXEqualityExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXEqualityExpression" - - - // $ANTLR start "ruleXEqualityExpression" - // InternalEntities.g:443:1: ruleXEqualityExpression : ( ( rule__XEqualityExpression__Group__0 ) ) ; - public final void ruleXEqualityExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:447:2: ( ( ( rule__XEqualityExpression__Group__0 ) ) ) - // InternalEntities.g:448:2: ( ( rule__XEqualityExpression__Group__0 ) ) - { - // InternalEntities.g:448:2: ( ( rule__XEqualityExpression__Group__0 ) ) - // InternalEntities.g:449:3: ( rule__XEqualityExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getGroup()); - } - // InternalEntities.g:450:3: ( rule__XEqualityExpression__Group__0 ) - // InternalEntities.g:450:4: rule__XEqualityExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXEqualityExpression" - - - // $ANTLR start "entryRuleOpEquality" - // InternalEntities.g:459:1: entryRuleOpEquality : ruleOpEquality EOF ; - public final void entryRuleOpEquality() throws RecognitionException { - try { - // InternalEntities.g:460:1: ( ruleOpEquality EOF ) - // InternalEntities.g:461:1: ruleOpEquality EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpEqualityRule()); - } - pushFollow(FOLLOW_1); - ruleOpEquality(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpEqualityRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpEquality" - - - // $ANTLR start "ruleOpEquality" - // InternalEntities.g:468:1: ruleOpEquality : ( ( rule__OpEquality__Alternatives ) ) ; - public final void ruleOpEquality() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:472:2: ( ( ( rule__OpEquality__Alternatives ) ) ) - // InternalEntities.g:473:2: ( ( rule__OpEquality__Alternatives ) ) - { - // InternalEntities.g:473:2: ( ( rule__OpEquality__Alternatives ) ) - // InternalEntities.g:474:3: ( rule__OpEquality__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpEqualityAccess().getAlternatives()); - } - // InternalEntities.g:475:3: ( rule__OpEquality__Alternatives ) - // InternalEntities.g:475:4: rule__OpEquality__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpEquality__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpEqualityAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpEquality" - - - // $ANTLR start "entryRuleXRelationalExpression" - // InternalEntities.g:484:1: entryRuleXRelationalExpression : ruleXRelationalExpression EOF ; - public final void entryRuleXRelationalExpression() throws RecognitionException { - try { - // InternalEntities.g:485:1: ( ruleXRelationalExpression EOF ) - // InternalEntities.g:486:1: ruleXRelationalExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXRelationalExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXRelationalExpression" - - - // $ANTLR start "ruleXRelationalExpression" - // InternalEntities.g:493:1: ruleXRelationalExpression : ( ( rule__XRelationalExpression__Group__0 ) ) ; - public final void ruleXRelationalExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:497:2: ( ( ( rule__XRelationalExpression__Group__0 ) ) ) - // InternalEntities.g:498:2: ( ( rule__XRelationalExpression__Group__0 ) ) - { - // InternalEntities.g:498:2: ( ( rule__XRelationalExpression__Group__0 ) ) - // InternalEntities.g:499:3: ( rule__XRelationalExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup()); - } - // InternalEntities.g:500:3: ( rule__XRelationalExpression__Group__0 ) - // InternalEntities.g:500:4: rule__XRelationalExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXRelationalExpression" - - - // $ANTLR start "entryRuleOpCompare" - // InternalEntities.g:509:1: entryRuleOpCompare : ruleOpCompare EOF ; - public final void entryRuleOpCompare() throws RecognitionException { - try { - // InternalEntities.g:510:1: ( ruleOpCompare EOF ) - // InternalEntities.g:511:1: ruleOpCompare EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareRule()); - } - pushFollow(FOLLOW_1); - ruleOpCompare(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpCompare" - - - // $ANTLR start "ruleOpCompare" - // InternalEntities.g:518:1: ruleOpCompare : ( ( rule__OpCompare__Alternatives ) ) ; - public final void ruleOpCompare() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:522:2: ( ( ( rule__OpCompare__Alternatives ) ) ) - // InternalEntities.g:523:2: ( ( rule__OpCompare__Alternatives ) ) - { - // InternalEntities.g:523:2: ( ( rule__OpCompare__Alternatives ) ) - // InternalEntities.g:524:3: ( rule__OpCompare__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getAlternatives()); - } - // InternalEntities.g:525:3: ( rule__OpCompare__Alternatives ) - // InternalEntities.g:525:4: rule__OpCompare__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpCompare__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpCompare" - - - // $ANTLR start "entryRuleXOtherOperatorExpression" - // InternalEntities.g:534:1: entryRuleXOtherOperatorExpression : ruleXOtherOperatorExpression EOF ; - public final void entryRuleXOtherOperatorExpression() throws RecognitionException { - try { - // InternalEntities.g:535:1: ( ruleXOtherOperatorExpression EOF ) - // InternalEntities.g:536:1: ruleXOtherOperatorExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXOtherOperatorExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXOtherOperatorExpression" - - - // $ANTLR start "ruleXOtherOperatorExpression" - // InternalEntities.g:543:1: ruleXOtherOperatorExpression : ( ( rule__XOtherOperatorExpression__Group__0 ) ) ; - public final void ruleXOtherOperatorExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:547:2: ( ( ( rule__XOtherOperatorExpression__Group__0 ) ) ) - // InternalEntities.g:548:2: ( ( rule__XOtherOperatorExpression__Group__0 ) ) - { - // InternalEntities.g:548:2: ( ( rule__XOtherOperatorExpression__Group__0 ) ) - // InternalEntities.g:549:3: ( rule__XOtherOperatorExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup()); - } - // InternalEntities.g:550:3: ( rule__XOtherOperatorExpression__Group__0 ) - // InternalEntities.g:550:4: rule__XOtherOperatorExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXOtherOperatorExpression" - - - // $ANTLR start "entryRuleOpOther" - // InternalEntities.g:559:1: entryRuleOpOther : ruleOpOther EOF ; - public final void entryRuleOpOther() throws RecognitionException { - try { - // InternalEntities.g:560:1: ( ruleOpOther EOF ) - // InternalEntities.g:561:1: ruleOpOther EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherRule()); - } - pushFollow(FOLLOW_1); - ruleOpOther(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpOther" - - - // $ANTLR start "ruleOpOther" - // InternalEntities.g:568:1: ruleOpOther : ( ( rule__OpOther__Alternatives ) ) ; - public final void ruleOpOther() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:572:2: ( ( ( rule__OpOther__Alternatives ) ) ) - // InternalEntities.g:573:2: ( ( rule__OpOther__Alternatives ) ) - { - // InternalEntities.g:573:2: ( ( rule__OpOther__Alternatives ) ) - // InternalEntities.g:574:3: ( rule__OpOther__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getAlternatives()); - } - // InternalEntities.g:575:3: ( rule__OpOther__Alternatives ) - // InternalEntities.g:575:4: rule__OpOther__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpOther__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpOther" - - - // $ANTLR start "entryRuleXAdditiveExpression" - // InternalEntities.g:584:1: entryRuleXAdditiveExpression : ruleXAdditiveExpression EOF ; - public final void entryRuleXAdditiveExpression() throws RecognitionException { - try { - // InternalEntities.g:585:1: ( ruleXAdditiveExpression EOF ) - // InternalEntities.g:586:1: ruleXAdditiveExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXAdditiveExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXAdditiveExpression" - - - // $ANTLR start "ruleXAdditiveExpression" - // InternalEntities.g:593:1: ruleXAdditiveExpression : ( ( rule__XAdditiveExpression__Group__0 ) ) ; - public final void ruleXAdditiveExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:597:2: ( ( ( rule__XAdditiveExpression__Group__0 ) ) ) - // InternalEntities.g:598:2: ( ( rule__XAdditiveExpression__Group__0 ) ) - { - // InternalEntities.g:598:2: ( ( rule__XAdditiveExpression__Group__0 ) ) - // InternalEntities.g:599:3: ( rule__XAdditiveExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getGroup()); - } - // InternalEntities.g:600:3: ( rule__XAdditiveExpression__Group__0 ) - // InternalEntities.g:600:4: rule__XAdditiveExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXAdditiveExpression" - - - // $ANTLR start "entryRuleOpAdd" - // InternalEntities.g:609:1: entryRuleOpAdd : ruleOpAdd EOF ; - public final void entryRuleOpAdd() throws RecognitionException { - try { - // InternalEntities.g:610:1: ( ruleOpAdd EOF ) - // InternalEntities.g:611:1: ruleOpAdd EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpAddRule()); - } - pushFollow(FOLLOW_1); - ruleOpAdd(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpAddRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpAdd" - - - // $ANTLR start "ruleOpAdd" - // InternalEntities.g:618:1: ruleOpAdd : ( ( rule__OpAdd__Alternatives ) ) ; - public final void ruleOpAdd() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:622:2: ( ( ( rule__OpAdd__Alternatives ) ) ) - // InternalEntities.g:623:2: ( ( rule__OpAdd__Alternatives ) ) - { - // InternalEntities.g:623:2: ( ( rule__OpAdd__Alternatives ) ) - // InternalEntities.g:624:3: ( rule__OpAdd__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpAddAccess().getAlternatives()); - } - // InternalEntities.g:625:3: ( rule__OpAdd__Alternatives ) - // InternalEntities.g:625:4: rule__OpAdd__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpAdd__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpAddAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpAdd" - - - // $ANTLR start "entryRuleXMultiplicativeExpression" - // InternalEntities.g:634:1: entryRuleXMultiplicativeExpression : ruleXMultiplicativeExpression EOF ; - public final void entryRuleXMultiplicativeExpression() throws RecognitionException { - try { - // InternalEntities.g:635:1: ( ruleXMultiplicativeExpression EOF ) - // InternalEntities.g:636:1: ruleXMultiplicativeExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXMultiplicativeExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXMultiplicativeExpression" - - - // $ANTLR start "ruleXMultiplicativeExpression" - // InternalEntities.g:643:1: ruleXMultiplicativeExpression : ( ( rule__XMultiplicativeExpression__Group__0 ) ) ; - public final void ruleXMultiplicativeExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:647:2: ( ( ( rule__XMultiplicativeExpression__Group__0 ) ) ) - // InternalEntities.g:648:2: ( ( rule__XMultiplicativeExpression__Group__0 ) ) - { - // InternalEntities.g:648:2: ( ( rule__XMultiplicativeExpression__Group__0 ) ) - // InternalEntities.g:649:3: ( rule__XMultiplicativeExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup()); - } - // InternalEntities.g:650:3: ( rule__XMultiplicativeExpression__Group__0 ) - // InternalEntities.g:650:4: rule__XMultiplicativeExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXMultiplicativeExpression" - - - // $ANTLR start "entryRuleOpMulti" - // InternalEntities.g:659:1: entryRuleOpMulti : ruleOpMulti EOF ; - public final void entryRuleOpMulti() throws RecognitionException { - try { - // InternalEntities.g:660:1: ( ruleOpMulti EOF ) - // InternalEntities.g:661:1: ruleOpMulti EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiRule()); - } - pushFollow(FOLLOW_1); - ruleOpMulti(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpMulti" - - - // $ANTLR start "ruleOpMulti" - // InternalEntities.g:668:1: ruleOpMulti : ( ( rule__OpMulti__Alternatives ) ) ; - public final void ruleOpMulti() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:672:2: ( ( ( rule__OpMulti__Alternatives ) ) ) - // InternalEntities.g:673:2: ( ( rule__OpMulti__Alternatives ) ) - { - // InternalEntities.g:673:2: ( ( rule__OpMulti__Alternatives ) ) - // InternalEntities.g:674:3: ( rule__OpMulti__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAccess().getAlternatives()); - } - // InternalEntities.g:675:3: ( rule__OpMulti__Alternatives ) - // InternalEntities.g:675:4: rule__OpMulti__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpMulti__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpMulti" - - - // $ANTLR start "entryRuleXUnaryOperation" - // InternalEntities.g:684:1: entryRuleXUnaryOperation : ruleXUnaryOperation EOF ; - public final void entryRuleXUnaryOperation() throws RecognitionException { - try { - // InternalEntities.g:685:1: ( ruleXUnaryOperation EOF ) - // InternalEntities.g:686:1: ruleXUnaryOperation EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationRule()); - } - pushFollow(FOLLOW_1); - ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXUnaryOperation" - - - // $ANTLR start "ruleXUnaryOperation" - // InternalEntities.g:693:1: ruleXUnaryOperation : ( ( rule__XUnaryOperation__Alternatives ) ) ; - public final void ruleXUnaryOperation() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:697:2: ( ( ( rule__XUnaryOperation__Alternatives ) ) ) - // InternalEntities.g:698:2: ( ( rule__XUnaryOperation__Alternatives ) ) - { - // InternalEntities.g:698:2: ( ( rule__XUnaryOperation__Alternatives ) ) - // InternalEntities.g:699:3: ( rule__XUnaryOperation__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getAlternatives()); - } - // InternalEntities.g:700:3: ( rule__XUnaryOperation__Alternatives ) - // InternalEntities.g:700:4: rule__XUnaryOperation__Alternatives - { - pushFollow(FOLLOW_2); - rule__XUnaryOperation__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXUnaryOperation" - - - // $ANTLR start "entryRuleOpUnary" - // InternalEntities.g:709:1: entryRuleOpUnary : ruleOpUnary EOF ; - public final void entryRuleOpUnary() throws RecognitionException { - try { - // InternalEntities.g:710:1: ( ruleOpUnary EOF ) - // InternalEntities.g:711:1: ruleOpUnary EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpUnaryRule()); - } - pushFollow(FOLLOW_1); - ruleOpUnary(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpUnaryRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpUnary" - - - // $ANTLR start "ruleOpUnary" - // InternalEntities.g:718:1: ruleOpUnary : ( ( rule__OpUnary__Alternatives ) ) ; - public final void ruleOpUnary() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:722:2: ( ( ( rule__OpUnary__Alternatives ) ) ) - // InternalEntities.g:723:2: ( ( rule__OpUnary__Alternatives ) ) - { - // InternalEntities.g:723:2: ( ( rule__OpUnary__Alternatives ) ) - // InternalEntities.g:724:3: ( rule__OpUnary__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpUnaryAccess().getAlternatives()); - } - // InternalEntities.g:725:3: ( rule__OpUnary__Alternatives ) - // InternalEntities.g:725:4: rule__OpUnary__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpUnary__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpUnaryAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpUnary" - - - // $ANTLR start "entryRuleXCastedExpression" - // InternalEntities.g:734:1: entryRuleXCastedExpression : ruleXCastedExpression EOF ; - public final void entryRuleXCastedExpression() throws RecognitionException { - try { - // InternalEntities.g:735:1: ( ruleXCastedExpression EOF ) - // InternalEntities.g:736:1: ruleXCastedExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXCastedExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXCastedExpression" - - - // $ANTLR start "ruleXCastedExpression" - // InternalEntities.g:743:1: ruleXCastedExpression : ( ( rule__XCastedExpression__Group__0 ) ) ; - public final void ruleXCastedExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:747:2: ( ( ( rule__XCastedExpression__Group__0 ) ) ) - // InternalEntities.g:748:2: ( ( rule__XCastedExpression__Group__0 ) ) - { - // InternalEntities.g:748:2: ( ( rule__XCastedExpression__Group__0 ) ) - // InternalEntities.g:749:3: ( rule__XCastedExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getGroup()); - } - // InternalEntities.g:750:3: ( rule__XCastedExpression__Group__0 ) - // InternalEntities.g:750:4: rule__XCastedExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXCastedExpression" - - - // $ANTLR start "entryRuleXPostfixOperation" - // InternalEntities.g:759:1: entryRuleXPostfixOperation : ruleXPostfixOperation EOF ; - public final void entryRuleXPostfixOperation() throws RecognitionException { - try { - // InternalEntities.g:760:1: ( ruleXPostfixOperation EOF ) - // InternalEntities.g:761:1: ruleXPostfixOperation EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationRule()); - } - pushFollow(FOLLOW_1); - ruleXPostfixOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXPostfixOperation" - - - // $ANTLR start "ruleXPostfixOperation" - // InternalEntities.g:768:1: ruleXPostfixOperation : ( ( rule__XPostfixOperation__Group__0 ) ) ; - public final void ruleXPostfixOperation() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:772:2: ( ( ( rule__XPostfixOperation__Group__0 ) ) ) - // InternalEntities.g:773:2: ( ( rule__XPostfixOperation__Group__0 ) ) - { - // InternalEntities.g:773:2: ( ( rule__XPostfixOperation__Group__0 ) ) - // InternalEntities.g:774:3: ( rule__XPostfixOperation__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getGroup()); - } - // InternalEntities.g:775:3: ( rule__XPostfixOperation__Group__0 ) - // InternalEntities.g:775:4: rule__XPostfixOperation__Group__0 - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXPostfixOperation" - - - // $ANTLR start "entryRuleOpPostfix" - // InternalEntities.g:784:1: entryRuleOpPostfix : ruleOpPostfix EOF ; - public final void entryRuleOpPostfix() throws RecognitionException { - try { - // InternalEntities.g:785:1: ( ruleOpPostfix EOF ) - // InternalEntities.g:786:1: ruleOpPostfix EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpPostfixRule()); - } - pushFollow(FOLLOW_1); - ruleOpPostfix(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpPostfixRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOpPostfix" - - - // $ANTLR start "ruleOpPostfix" - // InternalEntities.g:793:1: ruleOpPostfix : ( ( rule__OpPostfix__Alternatives ) ) ; - public final void ruleOpPostfix() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:797:2: ( ( ( rule__OpPostfix__Alternatives ) ) ) - // InternalEntities.g:798:2: ( ( rule__OpPostfix__Alternatives ) ) - { - // InternalEntities.g:798:2: ( ( rule__OpPostfix__Alternatives ) ) - // InternalEntities.g:799:3: ( rule__OpPostfix__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpPostfixAccess().getAlternatives()); - } - // InternalEntities.g:800:3: ( rule__OpPostfix__Alternatives ) - // InternalEntities.g:800:4: rule__OpPostfix__Alternatives - { - pushFollow(FOLLOW_2); - rule__OpPostfix__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpPostfixAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOpPostfix" - - - // $ANTLR start "entryRuleXMemberFeatureCall" - // InternalEntities.g:809:1: entryRuleXMemberFeatureCall : ruleXMemberFeatureCall EOF ; - public final void entryRuleXMemberFeatureCall() throws RecognitionException { - try { - // InternalEntities.g:810:1: ( ruleXMemberFeatureCall EOF ) - // InternalEntities.g:811:1: ruleXMemberFeatureCall EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallRule()); - } - pushFollow(FOLLOW_1); - ruleXMemberFeatureCall(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXMemberFeatureCall" - - - // $ANTLR start "ruleXMemberFeatureCall" - // InternalEntities.g:818:1: ruleXMemberFeatureCall : ( ( rule__XMemberFeatureCall__Group__0 ) ) ; - public final void ruleXMemberFeatureCall() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:822:2: ( ( ( rule__XMemberFeatureCall__Group__0 ) ) ) - // InternalEntities.g:823:2: ( ( rule__XMemberFeatureCall__Group__0 ) ) - { - // InternalEntities.g:823:2: ( ( rule__XMemberFeatureCall__Group__0 ) ) - // InternalEntities.g:824:3: ( rule__XMemberFeatureCall__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup()); - } - // InternalEntities.g:825:3: ( rule__XMemberFeatureCall__Group__0 ) - // InternalEntities.g:825:4: rule__XMemberFeatureCall__Group__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXMemberFeatureCall" - - - // $ANTLR start "entryRuleXPrimaryExpression" - // InternalEntities.g:834:1: entryRuleXPrimaryExpression : ruleXPrimaryExpression EOF ; - public final void entryRuleXPrimaryExpression() throws RecognitionException { - try { - // InternalEntities.g:835:1: ( ruleXPrimaryExpression EOF ) - // InternalEntities.g:836:1: ruleXPrimaryExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXPrimaryExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXPrimaryExpression" - - - // $ANTLR start "ruleXPrimaryExpression" - // InternalEntities.g:843:1: ruleXPrimaryExpression : ( ( rule__XPrimaryExpression__Alternatives ) ) ; - public final void ruleXPrimaryExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:847:2: ( ( ( rule__XPrimaryExpression__Alternatives ) ) ) - // InternalEntities.g:848:2: ( ( rule__XPrimaryExpression__Alternatives ) ) - { - // InternalEntities.g:848:2: ( ( rule__XPrimaryExpression__Alternatives ) ) - // InternalEntities.g:849:3: ( rule__XPrimaryExpression__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); - } - // InternalEntities.g:850:3: ( rule__XPrimaryExpression__Alternatives ) - // InternalEntities.g:850:4: rule__XPrimaryExpression__Alternatives - { - pushFollow(FOLLOW_2); - rule__XPrimaryExpression__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXPrimaryExpression" - - - // $ANTLR start "entryRuleXLiteral" - // InternalEntities.g:859:1: entryRuleXLiteral : ruleXLiteral EOF ; - public final void entryRuleXLiteral() throws RecognitionException { - try { - // InternalEntities.g:860:1: ( ruleXLiteral EOF ) - // InternalEntities.g:861:1: ruleXLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXLiteral" - - - // $ANTLR start "ruleXLiteral" - // InternalEntities.g:868:1: ruleXLiteral : ( ( rule__XLiteral__Alternatives ) ) ; - public final void ruleXLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:872:2: ( ( ( rule__XLiteral__Alternatives ) ) ) - // InternalEntities.g:873:2: ( ( rule__XLiteral__Alternatives ) ) - { - // InternalEntities.g:873:2: ( ( rule__XLiteral__Alternatives ) ) - // InternalEntities.g:874:3: ( rule__XLiteral__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getAlternatives()); - } - // InternalEntities.g:875:3: ( rule__XLiteral__Alternatives ) - // InternalEntities.g:875:4: rule__XLiteral__Alternatives - { - pushFollow(FOLLOW_2); - rule__XLiteral__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXLiteral" - - - // $ANTLR start "entryRuleXCollectionLiteral" - // InternalEntities.g:884:1: entryRuleXCollectionLiteral : ruleXCollectionLiteral EOF ; - public final void entryRuleXCollectionLiteral() throws RecognitionException { - try { - // InternalEntities.g:885:1: ( ruleXCollectionLiteral EOF ) - // InternalEntities.g:886:1: ruleXCollectionLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCollectionLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXCollectionLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCollectionLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXCollectionLiteral" - - - // $ANTLR start "ruleXCollectionLiteral" - // InternalEntities.g:893:1: ruleXCollectionLiteral : ( ( rule__XCollectionLiteral__Alternatives ) ) ; - public final void ruleXCollectionLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:897:2: ( ( ( rule__XCollectionLiteral__Alternatives ) ) ) - // InternalEntities.g:898:2: ( ( rule__XCollectionLiteral__Alternatives ) ) - { - // InternalEntities.g:898:2: ( ( rule__XCollectionLiteral__Alternatives ) ) - // InternalEntities.g:899:3: ( rule__XCollectionLiteral__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCollectionLiteralAccess().getAlternatives()); - } - // InternalEntities.g:900:3: ( rule__XCollectionLiteral__Alternatives ) - // InternalEntities.g:900:4: rule__XCollectionLiteral__Alternatives - { - pushFollow(FOLLOW_2); - rule__XCollectionLiteral__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCollectionLiteralAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXCollectionLiteral" - - - // $ANTLR start "entryRuleXSetLiteral" - // InternalEntities.g:909:1: entryRuleXSetLiteral : ruleXSetLiteral EOF ; - public final void entryRuleXSetLiteral() throws RecognitionException { - try { - // InternalEntities.g:910:1: ( ruleXSetLiteral EOF ) - // InternalEntities.g:911:1: ruleXSetLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXSetLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXSetLiteral" - - - // $ANTLR start "ruleXSetLiteral" - // InternalEntities.g:918:1: ruleXSetLiteral : ( ( rule__XSetLiteral__Group__0 ) ) ; - public final void ruleXSetLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:922:2: ( ( ( rule__XSetLiteral__Group__0 ) ) ) - // InternalEntities.g:923:2: ( ( rule__XSetLiteral__Group__0 ) ) - { - // InternalEntities.g:923:2: ( ( rule__XSetLiteral__Group__0 ) ) - // InternalEntities.g:924:3: ( rule__XSetLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getGroup()); - } - // InternalEntities.g:925:3: ( rule__XSetLiteral__Group__0 ) - // InternalEntities.g:925:4: rule__XSetLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXSetLiteral" - - - // $ANTLR start "entryRuleXListLiteral" - // InternalEntities.g:934:1: entryRuleXListLiteral : ruleXListLiteral EOF ; - public final void entryRuleXListLiteral() throws RecognitionException { - try { - // InternalEntities.g:935:1: ( ruleXListLiteral EOF ) - // InternalEntities.g:936:1: ruleXListLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXListLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXListLiteral" - - - // $ANTLR start "ruleXListLiteral" - // InternalEntities.g:943:1: ruleXListLiteral : ( ( rule__XListLiteral__Group__0 ) ) ; - public final void ruleXListLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:947:2: ( ( ( rule__XListLiteral__Group__0 ) ) ) - // InternalEntities.g:948:2: ( ( rule__XListLiteral__Group__0 ) ) - { - // InternalEntities.g:948:2: ( ( rule__XListLiteral__Group__0 ) ) - // InternalEntities.g:949:3: ( rule__XListLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getGroup()); - } - // InternalEntities.g:950:3: ( rule__XListLiteral__Group__0 ) - // InternalEntities.g:950:4: rule__XListLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XListLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXListLiteral" - - - // $ANTLR start "entryRuleXClosure" - // InternalEntities.g:959:1: entryRuleXClosure : ruleXClosure EOF ; - public final void entryRuleXClosure() throws RecognitionException { - try { - // InternalEntities.g:960:1: ( ruleXClosure EOF ) - // InternalEntities.g:961:1: ruleXClosure EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureRule()); - } - pushFollow(FOLLOW_1); - ruleXClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXClosure" - - - // $ANTLR start "ruleXClosure" - // InternalEntities.g:968:1: ruleXClosure : ( ( rule__XClosure__Group__0 ) ) ; - public final void ruleXClosure() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:972:2: ( ( ( rule__XClosure__Group__0 ) ) ) - // InternalEntities.g:973:2: ( ( rule__XClosure__Group__0 ) ) - { - // InternalEntities.g:973:2: ( ( rule__XClosure__Group__0 ) ) - // InternalEntities.g:974:3: ( rule__XClosure__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup()); - } - // InternalEntities.g:975:3: ( rule__XClosure__Group__0 ) - // InternalEntities.g:975:4: rule__XClosure__Group__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXClosure" - - - // $ANTLR start "entryRuleXExpressionInClosure" - // InternalEntities.g:984:1: entryRuleXExpressionInClosure : ruleXExpressionInClosure EOF ; - public final void entryRuleXExpressionInClosure() throws RecognitionException { - try { - // InternalEntities.g:985:1: ( ruleXExpressionInClosure EOF ) - // InternalEntities.g:986:1: ruleXExpressionInClosure EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureRule()); - } - pushFollow(FOLLOW_1); - ruleXExpressionInClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXExpressionInClosure" - - - // $ANTLR start "ruleXExpressionInClosure" - // InternalEntities.g:993:1: ruleXExpressionInClosure : ( ( rule__XExpressionInClosure__Group__0 ) ) ; - public final void ruleXExpressionInClosure() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:997:2: ( ( ( rule__XExpressionInClosure__Group__0 ) ) ) - // InternalEntities.g:998:2: ( ( rule__XExpressionInClosure__Group__0 ) ) - { - // InternalEntities.g:998:2: ( ( rule__XExpressionInClosure__Group__0 ) ) - // InternalEntities.g:999:3: ( rule__XExpressionInClosure__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureAccess().getGroup()); - } - // InternalEntities.g:1000:3: ( rule__XExpressionInClosure__Group__0 ) - // InternalEntities.g:1000:4: rule__XExpressionInClosure__Group__0 - { - pushFollow(FOLLOW_2); - rule__XExpressionInClosure__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXExpressionInClosure" - - - // $ANTLR start "entryRuleXShortClosure" - // InternalEntities.g:1009:1: entryRuleXShortClosure : ruleXShortClosure EOF ; - public final void entryRuleXShortClosure() throws RecognitionException { - try { - // InternalEntities.g:1010:1: ( ruleXShortClosure EOF ) - // InternalEntities.g:1011:1: ruleXShortClosure EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureRule()); - } - pushFollow(FOLLOW_1); - ruleXShortClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXShortClosure" - - - // $ANTLR start "ruleXShortClosure" - // InternalEntities.g:1018:1: ruleXShortClosure : ( ( rule__XShortClosure__Group__0 ) ) ; - public final void ruleXShortClosure() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1022:2: ( ( ( rule__XShortClosure__Group__0 ) ) ) - // InternalEntities.g:1023:2: ( ( rule__XShortClosure__Group__0 ) ) - { - // InternalEntities.g:1023:2: ( ( rule__XShortClosure__Group__0 ) ) - // InternalEntities.g:1024:3: ( rule__XShortClosure__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getGroup()); - } - // InternalEntities.g:1025:3: ( rule__XShortClosure__Group__0 ) - // InternalEntities.g:1025:4: rule__XShortClosure__Group__0 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXShortClosure" - - - // $ANTLR start "entryRuleXParenthesizedExpression" - // InternalEntities.g:1034:1: entryRuleXParenthesizedExpression : ruleXParenthesizedExpression EOF ; - public final void entryRuleXParenthesizedExpression() throws RecognitionException { - try { - // InternalEntities.g:1035:1: ( ruleXParenthesizedExpression EOF ) - // InternalEntities.g:1036:1: ruleXParenthesizedExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXParenthesizedExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXParenthesizedExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXParenthesizedExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXParenthesizedExpression" - - - // $ANTLR start "ruleXParenthesizedExpression" - // InternalEntities.g:1043:1: ruleXParenthesizedExpression : ( ( rule__XParenthesizedExpression__Group__0 ) ) ; - public final void ruleXParenthesizedExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1047:2: ( ( ( rule__XParenthesizedExpression__Group__0 ) ) ) - // InternalEntities.g:1048:2: ( ( rule__XParenthesizedExpression__Group__0 ) ) - { - // InternalEntities.g:1048:2: ( ( rule__XParenthesizedExpression__Group__0 ) ) - // InternalEntities.g:1049:3: ( rule__XParenthesizedExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXParenthesizedExpressionAccess().getGroup()); - } - // InternalEntities.g:1050:3: ( rule__XParenthesizedExpression__Group__0 ) - // InternalEntities.g:1050:4: rule__XParenthesizedExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XParenthesizedExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXParenthesizedExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXParenthesizedExpression" - - - // $ANTLR start "entryRuleXIfExpression" - // InternalEntities.g:1059:1: entryRuleXIfExpression : ruleXIfExpression EOF ; - public final void entryRuleXIfExpression() throws RecognitionException { - try { - // InternalEntities.g:1060:1: ( ruleXIfExpression EOF ) - // InternalEntities.g:1061:1: ruleXIfExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXIfExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXIfExpression" - - - // $ANTLR start "ruleXIfExpression" - // InternalEntities.g:1068:1: ruleXIfExpression : ( ( rule__XIfExpression__Group__0 ) ) ; - public final void ruleXIfExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1072:2: ( ( ( rule__XIfExpression__Group__0 ) ) ) - // InternalEntities.g:1073:2: ( ( rule__XIfExpression__Group__0 ) ) - { - // InternalEntities.g:1073:2: ( ( rule__XIfExpression__Group__0 ) ) - // InternalEntities.g:1074:3: ( rule__XIfExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getGroup()); - } - // InternalEntities.g:1075:3: ( rule__XIfExpression__Group__0 ) - // InternalEntities.g:1075:4: rule__XIfExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXIfExpression" - - - // $ANTLR start "entryRuleXSwitchExpression" - // InternalEntities.g:1084:1: entryRuleXSwitchExpression : ruleXSwitchExpression EOF ; - public final void entryRuleXSwitchExpression() throws RecognitionException { - try { - // InternalEntities.g:1085:1: ( ruleXSwitchExpression EOF ) - // InternalEntities.g:1086:1: ruleXSwitchExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXSwitchExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXSwitchExpression" - - - // $ANTLR start "ruleXSwitchExpression" - // InternalEntities.g:1093:1: ruleXSwitchExpression : ( ( rule__XSwitchExpression__Group__0 ) ) ; - public final void ruleXSwitchExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1097:2: ( ( ( rule__XSwitchExpression__Group__0 ) ) ) - // InternalEntities.g:1098:2: ( ( rule__XSwitchExpression__Group__0 ) ) - { - // InternalEntities.g:1098:2: ( ( rule__XSwitchExpression__Group__0 ) ) - // InternalEntities.g:1099:3: ( rule__XSwitchExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup()); - } - // InternalEntities.g:1100:3: ( rule__XSwitchExpression__Group__0 ) - // InternalEntities.g:1100:4: rule__XSwitchExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXSwitchExpression" - - - // $ANTLR start "entryRuleXCasePart" - // InternalEntities.g:1109:1: entryRuleXCasePart : ruleXCasePart EOF ; - public final void entryRuleXCasePart() throws RecognitionException { - try { - // InternalEntities.g:1110:1: ( ruleXCasePart EOF ) - // InternalEntities.g:1111:1: ruleXCasePart EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartRule()); - } - pushFollow(FOLLOW_1); - ruleXCasePart(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXCasePart" - - - // $ANTLR start "ruleXCasePart" - // InternalEntities.g:1118:1: ruleXCasePart : ( ( rule__XCasePart__Group__0 ) ) ; - public final void ruleXCasePart() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1122:2: ( ( ( rule__XCasePart__Group__0 ) ) ) - // InternalEntities.g:1123:2: ( ( rule__XCasePart__Group__0 ) ) - { - // InternalEntities.g:1123:2: ( ( rule__XCasePart__Group__0 ) ) - // InternalEntities.g:1124:3: ( rule__XCasePart__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getGroup()); - } - // InternalEntities.g:1125:3: ( rule__XCasePart__Group__0 ) - // InternalEntities.g:1125:4: rule__XCasePart__Group__0 - { - pushFollow(FOLLOW_2); - rule__XCasePart__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXCasePart" - - - // $ANTLR start "entryRuleXForLoopExpression" - // InternalEntities.g:1134:1: entryRuleXForLoopExpression : ruleXForLoopExpression EOF ; - public final void entryRuleXForLoopExpression() throws RecognitionException { - try { - // InternalEntities.g:1135:1: ( ruleXForLoopExpression EOF ) - // InternalEntities.g:1136:1: ruleXForLoopExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXForLoopExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXForLoopExpression" - - - // $ANTLR start "ruleXForLoopExpression" - // InternalEntities.g:1143:1: ruleXForLoopExpression : ( ( rule__XForLoopExpression__Group__0 ) ) ; - public final void ruleXForLoopExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1147:2: ( ( ( rule__XForLoopExpression__Group__0 ) ) ) - // InternalEntities.g:1148:2: ( ( rule__XForLoopExpression__Group__0 ) ) - { - // InternalEntities.g:1148:2: ( ( rule__XForLoopExpression__Group__0 ) ) - // InternalEntities.g:1149:3: ( rule__XForLoopExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getGroup()); - } - // InternalEntities.g:1150:3: ( rule__XForLoopExpression__Group__0 ) - // InternalEntities.g:1150:4: rule__XForLoopExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXForLoopExpression" - - - // $ANTLR start "entryRuleXBasicForLoopExpression" - // InternalEntities.g:1159:1: entryRuleXBasicForLoopExpression : ruleXBasicForLoopExpression EOF ; - public final void entryRuleXBasicForLoopExpression() throws RecognitionException { - try { - // InternalEntities.g:1160:1: ( ruleXBasicForLoopExpression EOF ) - // InternalEntities.g:1161:1: ruleXBasicForLoopExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXBasicForLoopExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXBasicForLoopExpression" - - - // $ANTLR start "ruleXBasicForLoopExpression" - // InternalEntities.g:1168:1: ruleXBasicForLoopExpression : ( ( rule__XBasicForLoopExpression__Group__0 ) ) ; - public final void ruleXBasicForLoopExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1172:2: ( ( ( rule__XBasicForLoopExpression__Group__0 ) ) ) - // InternalEntities.g:1173:2: ( ( rule__XBasicForLoopExpression__Group__0 ) ) - { - // InternalEntities.g:1173:2: ( ( rule__XBasicForLoopExpression__Group__0 ) ) - // InternalEntities.g:1174:3: ( rule__XBasicForLoopExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup()); - } - // InternalEntities.g:1175:3: ( rule__XBasicForLoopExpression__Group__0 ) - // InternalEntities.g:1175:4: rule__XBasicForLoopExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXBasicForLoopExpression" - - - // $ANTLR start "entryRuleXWhileExpression" - // InternalEntities.g:1184:1: entryRuleXWhileExpression : ruleXWhileExpression EOF ; - public final void entryRuleXWhileExpression() throws RecognitionException { - try { - // InternalEntities.g:1185:1: ( ruleXWhileExpression EOF ) - // InternalEntities.g:1186:1: ruleXWhileExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXWhileExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXWhileExpression" - - - // $ANTLR start "ruleXWhileExpression" - // InternalEntities.g:1193:1: ruleXWhileExpression : ( ( rule__XWhileExpression__Group__0 ) ) ; - public final void ruleXWhileExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1197:2: ( ( ( rule__XWhileExpression__Group__0 ) ) ) - // InternalEntities.g:1198:2: ( ( rule__XWhileExpression__Group__0 ) ) - { - // InternalEntities.g:1198:2: ( ( rule__XWhileExpression__Group__0 ) ) - // InternalEntities.g:1199:3: ( rule__XWhileExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getGroup()); - } - // InternalEntities.g:1200:3: ( rule__XWhileExpression__Group__0 ) - // InternalEntities.g:1200:4: rule__XWhileExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXWhileExpression" - - - // $ANTLR start "entryRuleXDoWhileExpression" - // InternalEntities.g:1209:1: entryRuleXDoWhileExpression : ruleXDoWhileExpression EOF ; - public final void entryRuleXDoWhileExpression() throws RecognitionException { - try { - // InternalEntities.g:1210:1: ( ruleXDoWhileExpression EOF ) - // InternalEntities.g:1211:1: ruleXDoWhileExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXDoWhileExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXDoWhileExpression" - - - // $ANTLR start "ruleXDoWhileExpression" - // InternalEntities.g:1218:1: ruleXDoWhileExpression : ( ( rule__XDoWhileExpression__Group__0 ) ) ; - public final void ruleXDoWhileExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1222:2: ( ( ( rule__XDoWhileExpression__Group__0 ) ) ) - // InternalEntities.g:1223:2: ( ( rule__XDoWhileExpression__Group__0 ) ) - { - // InternalEntities.g:1223:2: ( ( rule__XDoWhileExpression__Group__0 ) ) - // InternalEntities.g:1224:3: ( rule__XDoWhileExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getGroup()); - } - // InternalEntities.g:1225:3: ( rule__XDoWhileExpression__Group__0 ) - // InternalEntities.g:1225:4: rule__XDoWhileExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXDoWhileExpression" - - - // $ANTLR start "entryRuleXBlockExpression" - // InternalEntities.g:1234:1: entryRuleXBlockExpression : ruleXBlockExpression EOF ; - public final void entryRuleXBlockExpression() throws RecognitionException { - try { - // InternalEntities.g:1235:1: ( ruleXBlockExpression EOF ) - // InternalEntities.g:1236:1: ruleXBlockExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXBlockExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXBlockExpression" - - - // $ANTLR start "ruleXBlockExpression" - // InternalEntities.g:1243:1: ruleXBlockExpression : ( ( rule__XBlockExpression__Group__0 ) ) ; - public final void ruleXBlockExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1247:2: ( ( ( rule__XBlockExpression__Group__0 ) ) ) - // InternalEntities.g:1248:2: ( ( rule__XBlockExpression__Group__0 ) ) - { - // InternalEntities.g:1248:2: ( ( rule__XBlockExpression__Group__0 ) ) - // InternalEntities.g:1249:3: ( rule__XBlockExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getGroup()); - } - // InternalEntities.g:1250:3: ( rule__XBlockExpression__Group__0 ) - // InternalEntities.g:1250:4: rule__XBlockExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXBlockExpression" - - - // $ANTLR start "entryRuleXExpressionOrVarDeclaration" - // InternalEntities.g:1259:1: entryRuleXExpressionOrVarDeclaration : ruleXExpressionOrVarDeclaration EOF ; - public final void entryRuleXExpressionOrVarDeclaration() throws RecognitionException { - try { - // InternalEntities.g:1260:1: ( ruleXExpressionOrVarDeclaration EOF ) - // InternalEntities.g:1261:1: ruleXExpressionOrVarDeclaration EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionOrVarDeclarationRule()); - } - pushFollow(FOLLOW_1); - ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionOrVarDeclarationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXExpressionOrVarDeclaration" - - - // $ANTLR start "ruleXExpressionOrVarDeclaration" - // InternalEntities.g:1268:1: ruleXExpressionOrVarDeclaration : ( ( rule__XExpressionOrVarDeclaration__Alternatives ) ) ; - public final void ruleXExpressionOrVarDeclaration() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1272:2: ( ( ( rule__XExpressionOrVarDeclaration__Alternatives ) ) ) - // InternalEntities.g:1273:2: ( ( rule__XExpressionOrVarDeclaration__Alternatives ) ) - { - // InternalEntities.g:1273:2: ( ( rule__XExpressionOrVarDeclaration__Alternatives ) ) - // InternalEntities.g:1274:3: ( rule__XExpressionOrVarDeclaration__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionOrVarDeclarationAccess().getAlternatives()); - } - // InternalEntities.g:1275:3: ( rule__XExpressionOrVarDeclaration__Alternatives ) - // InternalEntities.g:1275:4: rule__XExpressionOrVarDeclaration__Alternatives - { - pushFollow(FOLLOW_2); - rule__XExpressionOrVarDeclaration__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionOrVarDeclarationAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXExpressionOrVarDeclaration" - - - // $ANTLR start "entryRuleXVariableDeclaration" - // InternalEntities.g:1284:1: entryRuleXVariableDeclaration : ruleXVariableDeclaration EOF ; - public final void entryRuleXVariableDeclaration() throws RecognitionException { - try { - // InternalEntities.g:1285:1: ( ruleXVariableDeclaration EOF ) - // InternalEntities.g:1286:1: ruleXVariableDeclaration EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationRule()); - } - pushFollow(FOLLOW_1); - ruleXVariableDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXVariableDeclaration" - - - // $ANTLR start "ruleXVariableDeclaration" - // InternalEntities.g:1293:1: ruleXVariableDeclaration : ( ( rule__XVariableDeclaration__Group__0 ) ) ; - public final void ruleXVariableDeclaration() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1297:2: ( ( ( rule__XVariableDeclaration__Group__0 ) ) ) - // InternalEntities.g:1298:2: ( ( rule__XVariableDeclaration__Group__0 ) ) - { - // InternalEntities.g:1298:2: ( ( rule__XVariableDeclaration__Group__0 ) ) - // InternalEntities.g:1299:3: ( rule__XVariableDeclaration__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getGroup()); - } - // InternalEntities.g:1300:3: ( rule__XVariableDeclaration__Group__0 ) - // InternalEntities.g:1300:4: rule__XVariableDeclaration__Group__0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXVariableDeclaration" - - - // $ANTLR start "entryRuleJvmFormalParameter" - // InternalEntities.g:1309:1: entryRuleJvmFormalParameter : ruleJvmFormalParameter EOF ; - public final void entryRuleJvmFormalParameter() throws RecognitionException { - try { - // InternalEntities.g:1310:1: ( ruleJvmFormalParameter EOF ) - // InternalEntities.g:1311:1: ruleJvmFormalParameter EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmFormalParameterRule()); - } - pushFollow(FOLLOW_1); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmFormalParameterRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmFormalParameter" - - - // $ANTLR start "ruleJvmFormalParameter" - // InternalEntities.g:1318:1: ruleJvmFormalParameter : ( ( rule__JvmFormalParameter__Group__0 ) ) ; - public final void ruleJvmFormalParameter() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1322:2: ( ( ( rule__JvmFormalParameter__Group__0 ) ) ) - // InternalEntities.g:1323:2: ( ( rule__JvmFormalParameter__Group__0 ) ) - { - // InternalEntities.g:1323:2: ( ( rule__JvmFormalParameter__Group__0 ) ) - // InternalEntities.g:1324:3: ( rule__JvmFormalParameter__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmFormalParameterAccess().getGroup()); - } - // InternalEntities.g:1325:3: ( rule__JvmFormalParameter__Group__0 ) - // InternalEntities.g:1325:4: rule__JvmFormalParameter__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmFormalParameter__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmFormalParameterAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmFormalParameter" - - - // $ANTLR start "entryRuleFullJvmFormalParameter" - // InternalEntities.g:1334:1: entryRuleFullJvmFormalParameter : ruleFullJvmFormalParameter EOF ; - public final void entryRuleFullJvmFormalParameter() throws RecognitionException { - try { - // InternalEntities.g:1335:1: ( ruleFullJvmFormalParameter EOF ) - // InternalEntities.g:1336:1: ruleFullJvmFormalParameter EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFullJvmFormalParameterRule()); - } - pushFollow(FOLLOW_1); - ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFullJvmFormalParameterRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleFullJvmFormalParameter" - - - // $ANTLR start "ruleFullJvmFormalParameter" - // InternalEntities.g:1343:1: ruleFullJvmFormalParameter : ( ( rule__FullJvmFormalParameter__Group__0 ) ) ; - public final void ruleFullJvmFormalParameter() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1347:2: ( ( ( rule__FullJvmFormalParameter__Group__0 ) ) ) - // InternalEntities.g:1348:2: ( ( rule__FullJvmFormalParameter__Group__0 ) ) - { - // InternalEntities.g:1348:2: ( ( rule__FullJvmFormalParameter__Group__0 ) ) - // InternalEntities.g:1349:3: ( rule__FullJvmFormalParameter__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFullJvmFormalParameterAccess().getGroup()); - } - // InternalEntities.g:1350:3: ( rule__FullJvmFormalParameter__Group__0 ) - // InternalEntities.g:1350:4: rule__FullJvmFormalParameter__Group__0 - { - pushFollow(FOLLOW_2); - rule__FullJvmFormalParameter__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getFullJvmFormalParameterAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleFullJvmFormalParameter" - - - // $ANTLR start "entryRuleXFeatureCall" - // InternalEntities.g:1359:1: entryRuleXFeatureCall : ruleXFeatureCall EOF ; - public final void entryRuleXFeatureCall() throws RecognitionException { - try { - // InternalEntities.g:1360:1: ( ruleXFeatureCall EOF ) - // InternalEntities.g:1361:1: ruleXFeatureCall EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallRule()); - } - pushFollow(FOLLOW_1); - ruleXFeatureCall(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXFeatureCall" - - - // $ANTLR start "ruleXFeatureCall" - // InternalEntities.g:1368:1: ruleXFeatureCall : ( ( rule__XFeatureCall__Group__0 ) ) ; - public final void ruleXFeatureCall() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1372:2: ( ( ( rule__XFeatureCall__Group__0 ) ) ) - // InternalEntities.g:1373:2: ( ( rule__XFeatureCall__Group__0 ) ) - { - // InternalEntities.g:1373:2: ( ( rule__XFeatureCall__Group__0 ) ) - // InternalEntities.g:1374:3: ( rule__XFeatureCall__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGroup()); - } - // InternalEntities.g:1375:3: ( rule__XFeatureCall__Group__0 ) - // InternalEntities.g:1375:4: rule__XFeatureCall__Group__0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXFeatureCall" - - - // $ANTLR start "entryRuleFeatureCallID" - // InternalEntities.g:1384:1: entryRuleFeatureCallID : ruleFeatureCallID EOF ; - public final void entryRuleFeatureCallID() throws RecognitionException { - try { - // InternalEntities.g:1385:1: ( ruleFeatureCallID EOF ) - // InternalEntities.g:1386:1: ruleFeatureCallID EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDRule()); - } - pushFollow(FOLLOW_1); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleFeatureCallID" - - - // $ANTLR start "ruleFeatureCallID" - // InternalEntities.g:1393:1: ruleFeatureCallID : ( ( rule__FeatureCallID__Alternatives ) ) ; - public final void ruleFeatureCallID() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1397:2: ( ( ( rule__FeatureCallID__Alternatives ) ) ) - // InternalEntities.g:1398:2: ( ( rule__FeatureCallID__Alternatives ) ) - { - // InternalEntities.g:1398:2: ( ( rule__FeatureCallID__Alternatives ) ) - // InternalEntities.g:1399:3: ( rule__FeatureCallID__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDAccess().getAlternatives()); - } - // InternalEntities.g:1400:3: ( rule__FeatureCallID__Alternatives ) - // InternalEntities.g:1400:4: rule__FeatureCallID__Alternatives - { - pushFollow(FOLLOW_2); - rule__FeatureCallID__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleFeatureCallID" - - - // $ANTLR start "entryRuleIdOrSuper" - // InternalEntities.g:1409:1: entryRuleIdOrSuper : ruleIdOrSuper EOF ; - public final void entryRuleIdOrSuper() throws RecognitionException { - try { - // InternalEntities.g:1410:1: ( ruleIdOrSuper EOF ) - // InternalEntities.g:1411:1: ruleIdOrSuper EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getIdOrSuperRule()); - } - pushFollow(FOLLOW_1); - ruleIdOrSuper(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getIdOrSuperRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleIdOrSuper" - - - // $ANTLR start "ruleIdOrSuper" - // InternalEntities.g:1418:1: ruleIdOrSuper : ( ( rule__IdOrSuper__Alternatives ) ) ; - public final void ruleIdOrSuper() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1422:2: ( ( ( rule__IdOrSuper__Alternatives ) ) ) - // InternalEntities.g:1423:2: ( ( rule__IdOrSuper__Alternatives ) ) - { - // InternalEntities.g:1423:2: ( ( rule__IdOrSuper__Alternatives ) ) - // InternalEntities.g:1424:3: ( rule__IdOrSuper__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getIdOrSuperAccess().getAlternatives()); - } - // InternalEntities.g:1425:3: ( rule__IdOrSuper__Alternatives ) - // InternalEntities.g:1425:4: rule__IdOrSuper__Alternatives - { - pushFollow(FOLLOW_2); - rule__IdOrSuper__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getIdOrSuperAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleIdOrSuper" - - - // $ANTLR start "entryRuleXConstructorCall" - // InternalEntities.g:1434:1: entryRuleXConstructorCall : ruleXConstructorCall EOF ; - public final void entryRuleXConstructorCall() throws RecognitionException { - try { - // InternalEntities.g:1435:1: ( ruleXConstructorCall EOF ) - // InternalEntities.g:1436:1: ruleXConstructorCall EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallRule()); - } - pushFollow(FOLLOW_1); - ruleXConstructorCall(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXConstructorCall" - - - // $ANTLR start "ruleXConstructorCall" - // InternalEntities.g:1443:1: ruleXConstructorCall : ( ( rule__XConstructorCall__Group__0 ) ) ; - public final void ruleXConstructorCall() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1447:2: ( ( ( rule__XConstructorCall__Group__0 ) ) ) - // InternalEntities.g:1448:2: ( ( rule__XConstructorCall__Group__0 ) ) - { - // InternalEntities.g:1448:2: ( ( rule__XConstructorCall__Group__0 ) ) - // InternalEntities.g:1449:3: ( rule__XConstructorCall__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGroup()); - } - // InternalEntities.g:1450:3: ( rule__XConstructorCall__Group__0 ) - // InternalEntities.g:1450:4: rule__XConstructorCall__Group__0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXConstructorCall" - - - // $ANTLR start "entryRuleXBooleanLiteral" - // InternalEntities.g:1459:1: entryRuleXBooleanLiteral : ruleXBooleanLiteral EOF ; - public final void entryRuleXBooleanLiteral() throws RecognitionException { - try { - // InternalEntities.g:1460:1: ( ruleXBooleanLiteral EOF ) - // InternalEntities.g:1461:1: ruleXBooleanLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXBooleanLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXBooleanLiteral" - - - // $ANTLR start "ruleXBooleanLiteral" - // InternalEntities.g:1468:1: ruleXBooleanLiteral : ( ( rule__XBooleanLiteral__Group__0 ) ) ; - public final void ruleXBooleanLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1472:2: ( ( ( rule__XBooleanLiteral__Group__0 ) ) ) - // InternalEntities.g:1473:2: ( ( rule__XBooleanLiteral__Group__0 ) ) - { - // InternalEntities.g:1473:2: ( ( rule__XBooleanLiteral__Group__0 ) ) - // InternalEntities.g:1474:3: ( rule__XBooleanLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getGroup()); - } - // InternalEntities.g:1475:3: ( rule__XBooleanLiteral__Group__0 ) - // InternalEntities.g:1475:4: rule__XBooleanLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XBooleanLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXBooleanLiteral" - - - // $ANTLR start "entryRuleXNullLiteral" - // InternalEntities.g:1484:1: entryRuleXNullLiteral : ruleXNullLiteral EOF ; - public final void entryRuleXNullLiteral() throws RecognitionException { - try { - // InternalEntities.g:1485:1: ( ruleXNullLiteral EOF ) - // InternalEntities.g:1486:1: ruleXNullLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNullLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXNullLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXNullLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXNullLiteral" - - - // $ANTLR start "ruleXNullLiteral" - // InternalEntities.g:1493:1: ruleXNullLiteral : ( ( rule__XNullLiteral__Group__0 ) ) ; - public final void ruleXNullLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1497:2: ( ( ( rule__XNullLiteral__Group__0 ) ) ) - // InternalEntities.g:1498:2: ( ( rule__XNullLiteral__Group__0 ) ) - { - // InternalEntities.g:1498:2: ( ( rule__XNullLiteral__Group__0 ) ) - // InternalEntities.g:1499:3: ( rule__XNullLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNullLiteralAccess().getGroup()); - } - // InternalEntities.g:1500:3: ( rule__XNullLiteral__Group__0 ) - // InternalEntities.g:1500:4: rule__XNullLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XNullLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXNullLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXNullLiteral" - - - // $ANTLR start "entryRuleXNumberLiteral" - // InternalEntities.g:1509:1: entryRuleXNumberLiteral : ruleXNumberLiteral EOF ; - public final void entryRuleXNumberLiteral() throws RecognitionException { - try { - // InternalEntities.g:1510:1: ( ruleXNumberLiteral EOF ) - // InternalEntities.g:1511:1: ruleXNumberLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNumberLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXNumberLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXNumberLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXNumberLiteral" - - - // $ANTLR start "ruleXNumberLiteral" - // InternalEntities.g:1518:1: ruleXNumberLiteral : ( ( rule__XNumberLiteral__Group__0 ) ) ; - public final void ruleXNumberLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1522:2: ( ( ( rule__XNumberLiteral__Group__0 ) ) ) - // InternalEntities.g:1523:2: ( ( rule__XNumberLiteral__Group__0 ) ) - { - // InternalEntities.g:1523:2: ( ( rule__XNumberLiteral__Group__0 ) ) - // InternalEntities.g:1524:3: ( rule__XNumberLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNumberLiteralAccess().getGroup()); - } - // InternalEntities.g:1525:3: ( rule__XNumberLiteral__Group__0 ) - // InternalEntities.g:1525:4: rule__XNumberLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XNumberLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXNumberLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXNumberLiteral" - - - // $ANTLR start "entryRuleXStringLiteral" - // InternalEntities.g:1534:1: entryRuleXStringLiteral : ruleXStringLiteral EOF ; - public final void entryRuleXStringLiteral() throws RecognitionException { - try { - // InternalEntities.g:1535:1: ( ruleXStringLiteral EOF ) - // InternalEntities.g:1536:1: ruleXStringLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXStringLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXStringLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXStringLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXStringLiteral" - - - // $ANTLR start "ruleXStringLiteral" - // InternalEntities.g:1543:1: ruleXStringLiteral : ( ( rule__XStringLiteral__Group__0 ) ) ; - public final void ruleXStringLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1547:2: ( ( ( rule__XStringLiteral__Group__0 ) ) ) - // InternalEntities.g:1548:2: ( ( rule__XStringLiteral__Group__0 ) ) - { - // InternalEntities.g:1548:2: ( ( rule__XStringLiteral__Group__0 ) ) - // InternalEntities.g:1549:3: ( rule__XStringLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXStringLiteralAccess().getGroup()); - } - // InternalEntities.g:1550:3: ( rule__XStringLiteral__Group__0 ) - // InternalEntities.g:1550:4: rule__XStringLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XStringLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXStringLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXStringLiteral" - - - // $ANTLR start "entryRuleXTypeLiteral" - // InternalEntities.g:1559:1: entryRuleXTypeLiteral : ruleXTypeLiteral EOF ; - public final void entryRuleXTypeLiteral() throws RecognitionException { - try { - // InternalEntities.g:1560:1: ( ruleXTypeLiteral EOF ) - // InternalEntities.g:1561:1: ruleXTypeLiteral EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralRule()); - } - pushFollow(FOLLOW_1); - ruleXTypeLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXTypeLiteral" - - - // $ANTLR start "ruleXTypeLiteral" - // InternalEntities.g:1568:1: ruleXTypeLiteral : ( ( rule__XTypeLiteral__Group__0 ) ) ; - public final void ruleXTypeLiteral() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1572:2: ( ( ( rule__XTypeLiteral__Group__0 ) ) ) - // InternalEntities.g:1573:2: ( ( rule__XTypeLiteral__Group__0 ) ) - { - // InternalEntities.g:1573:2: ( ( rule__XTypeLiteral__Group__0 ) ) - // InternalEntities.g:1574:3: ( rule__XTypeLiteral__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getGroup()); - } - // InternalEntities.g:1575:3: ( rule__XTypeLiteral__Group__0 ) - // InternalEntities.g:1575:4: rule__XTypeLiteral__Group__0 - { - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXTypeLiteral" - - - // $ANTLR start "entryRuleXThrowExpression" - // InternalEntities.g:1584:1: entryRuleXThrowExpression : ruleXThrowExpression EOF ; - public final void entryRuleXThrowExpression() throws RecognitionException { - try { - // InternalEntities.g:1585:1: ( ruleXThrowExpression EOF ) - // InternalEntities.g:1586:1: ruleXThrowExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXThrowExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXThrowExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXThrowExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXThrowExpression" - - - // $ANTLR start "ruleXThrowExpression" - // InternalEntities.g:1593:1: ruleXThrowExpression : ( ( rule__XThrowExpression__Group__0 ) ) ; - public final void ruleXThrowExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1597:2: ( ( ( rule__XThrowExpression__Group__0 ) ) ) - // InternalEntities.g:1598:2: ( ( rule__XThrowExpression__Group__0 ) ) - { - // InternalEntities.g:1598:2: ( ( rule__XThrowExpression__Group__0 ) ) - // InternalEntities.g:1599:3: ( rule__XThrowExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXThrowExpressionAccess().getGroup()); - } - // InternalEntities.g:1600:3: ( rule__XThrowExpression__Group__0 ) - // InternalEntities.g:1600:4: rule__XThrowExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XThrowExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXThrowExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXThrowExpression" - - - // $ANTLR start "entryRuleXReturnExpression" - // InternalEntities.g:1609:1: entryRuleXReturnExpression : ruleXReturnExpression EOF ; - public final void entryRuleXReturnExpression() throws RecognitionException { - try { - // InternalEntities.g:1610:1: ( ruleXReturnExpression EOF ) - // InternalEntities.g:1611:1: ruleXReturnExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXReturnExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXReturnExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXReturnExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXReturnExpression" - - - // $ANTLR start "ruleXReturnExpression" - // InternalEntities.g:1618:1: ruleXReturnExpression : ( ( rule__XReturnExpression__Group__0 ) ) ; - public final void ruleXReturnExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1622:2: ( ( ( rule__XReturnExpression__Group__0 ) ) ) - // InternalEntities.g:1623:2: ( ( rule__XReturnExpression__Group__0 ) ) - { - // InternalEntities.g:1623:2: ( ( rule__XReturnExpression__Group__0 ) ) - // InternalEntities.g:1624:3: ( rule__XReturnExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXReturnExpressionAccess().getGroup()); - } - // InternalEntities.g:1625:3: ( rule__XReturnExpression__Group__0 ) - // InternalEntities.g:1625:4: rule__XReturnExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XReturnExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXReturnExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXReturnExpression" - - - // $ANTLR start "entryRuleXTryCatchFinallyExpression" - // InternalEntities.g:1634:1: entryRuleXTryCatchFinallyExpression : ruleXTryCatchFinallyExpression EOF ; - public final void entryRuleXTryCatchFinallyExpression() throws RecognitionException { - try { - // InternalEntities.g:1635:1: ( ruleXTryCatchFinallyExpression EOF ) - // InternalEntities.g:1636:1: ruleXTryCatchFinallyExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXTryCatchFinallyExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXTryCatchFinallyExpression" - - - // $ANTLR start "ruleXTryCatchFinallyExpression" - // InternalEntities.g:1643:1: ruleXTryCatchFinallyExpression : ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) ; - public final void ruleXTryCatchFinallyExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1647:2: ( ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) ) - // InternalEntities.g:1648:2: ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) - { - // InternalEntities.g:1648:2: ( ( rule__XTryCatchFinallyExpression__Group__0 ) ) - // InternalEntities.g:1649:3: ( rule__XTryCatchFinallyExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); - } - // InternalEntities.g:1650:3: ( rule__XTryCatchFinallyExpression__Group__0 ) - // InternalEntities.g:1650:4: rule__XTryCatchFinallyExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXTryCatchFinallyExpression" - - - // $ANTLR start "entryRuleXSynchronizedExpression" - // InternalEntities.g:1659:1: entryRuleXSynchronizedExpression : ruleXSynchronizedExpression EOF ; - public final void entryRuleXSynchronizedExpression() throws RecognitionException { - try { - // InternalEntities.g:1660:1: ( ruleXSynchronizedExpression EOF ) - // InternalEntities.g:1661:1: ruleXSynchronizedExpression EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionRule()); - } - pushFollow(FOLLOW_1); - ruleXSynchronizedExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXSynchronizedExpression" - - - // $ANTLR start "ruleXSynchronizedExpression" - // InternalEntities.g:1668:1: ruleXSynchronizedExpression : ( ( rule__XSynchronizedExpression__Group__0 ) ) ; - public final void ruleXSynchronizedExpression() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1672:2: ( ( ( rule__XSynchronizedExpression__Group__0 ) ) ) - // InternalEntities.g:1673:2: ( ( rule__XSynchronizedExpression__Group__0 ) ) - { - // InternalEntities.g:1673:2: ( ( rule__XSynchronizedExpression__Group__0 ) ) - // InternalEntities.g:1674:3: ( rule__XSynchronizedExpression__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getGroup()); - } - // InternalEntities.g:1675:3: ( rule__XSynchronizedExpression__Group__0 ) - // InternalEntities.g:1675:4: rule__XSynchronizedExpression__Group__0 - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXSynchronizedExpression" - - - // $ANTLR start "entryRuleXCatchClause" - // InternalEntities.g:1684:1: entryRuleXCatchClause : ruleXCatchClause EOF ; - public final void entryRuleXCatchClause() throws RecognitionException { - try { - // InternalEntities.g:1685:1: ( ruleXCatchClause EOF ) - // InternalEntities.g:1686:1: ruleXCatchClause EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseRule()); - } - pushFollow(FOLLOW_1); - ruleXCatchClause(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXCatchClause" - - - // $ANTLR start "ruleXCatchClause" - // InternalEntities.g:1693:1: ruleXCatchClause : ( ( rule__XCatchClause__Group__0 ) ) ; - public final void ruleXCatchClause() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1697:2: ( ( ( rule__XCatchClause__Group__0 ) ) ) - // InternalEntities.g:1698:2: ( ( rule__XCatchClause__Group__0 ) ) - { - // InternalEntities.g:1698:2: ( ( rule__XCatchClause__Group__0 ) ) - // InternalEntities.g:1699:3: ( rule__XCatchClause__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getGroup()); - } - // InternalEntities.g:1700:3: ( rule__XCatchClause__Group__0 ) - // InternalEntities.g:1700:4: rule__XCatchClause__Group__0 - { - pushFollow(FOLLOW_2); - rule__XCatchClause__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXCatchClause" - - - // $ANTLR start "entryRuleQualifiedName" - // InternalEntities.g:1709:1: entryRuleQualifiedName : ruleQualifiedName EOF ; - public final void entryRuleQualifiedName() throws RecognitionException { - try { - // InternalEntities.g:1710:1: ( ruleQualifiedName EOF ) - // InternalEntities.g:1711:1: ruleQualifiedName EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameRule()); - } - pushFollow(FOLLOW_1); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleQualifiedName" - - - // $ANTLR start "ruleQualifiedName" - // InternalEntities.g:1718:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ; - public final void ruleQualifiedName() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1722:2: ( ( ( rule__QualifiedName__Group__0 ) ) ) - // InternalEntities.g:1723:2: ( ( rule__QualifiedName__Group__0 ) ) - { - // InternalEntities.g:1723:2: ( ( rule__QualifiedName__Group__0 ) ) - // InternalEntities.g:1724:3: ( rule__QualifiedName__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameAccess().getGroup()); - } - // InternalEntities.g:1725:3: ( rule__QualifiedName__Group__0 ) - // InternalEntities.g:1725:4: rule__QualifiedName__Group__0 - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQualifiedName" - - - // $ANTLR start "entryRuleNumber" - // InternalEntities.g:1734:1: entryRuleNumber : ruleNumber EOF ; - public final void entryRuleNumber() throws RecognitionException { - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalEntities.g:1738:1: ( ruleNumber EOF ) - // InternalEntities.g:1739:1: ruleNumber EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberRule()); - } - pushFollow(FOLLOW_1); - ruleNumber(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - myHiddenTokenState.restore(); - - } - return ; - } - // $ANTLR end "entryRuleNumber" - - - // $ANTLR start "ruleNumber" - // InternalEntities.g:1749:1: ruleNumber : ( ( rule__Number__Alternatives ) ) ; - public final void ruleNumber() throws RecognitionException { - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1754:2: ( ( ( rule__Number__Alternatives ) ) ) - // InternalEntities.g:1755:2: ( ( rule__Number__Alternatives ) ) - { - // InternalEntities.g:1755:2: ( ( rule__Number__Alternatives ) ) - // InternalEntities.g:1756:3: ( rule__Number__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getAlternatives()); - } - // InternalEntities.g:1757:3: ( rule__Number__Alternatives ) - // InternalEntities.g:1757:4: rule__Number__Alternatives - { - pushFollow(FOLLOW_2); - rule__Number__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - myHiddenTokenState.restore(); - - } - return ; - } - // $ANTLR end "ruleNumber" - - - // $ANTLR start "entryRuleJvmTypeReference" - // InternalEntities.g:1767:1: entryRuleJvmTypeReference : ruleJvmTypeReference EOF ; - public final void entryRuleJvmTypeReference() throws RecognitionException { - try { - // InternalEntities.g:1768:1: ( ruleJvmTypeReference EOF ) - // InternalEntities.g:1769:1: ruleJvmTypeReference EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmTypeReference" - - - // $ANTLR start "ruleJvmTypeReference" - // InternalEntities.g:1776:1: ruleJvmTypeReference : ( ( rule__JvmTypeReference__Alternatives ) ) ; - public final void ruleJvmTypeReference() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1780:2: ( ( ( rule__JvmTypeReference__Alternatives ) ) ) - // InternalEntities.g:1781:2: ( ( rule__JvmTypeReference__Alternatives ) ) - { - // InternalEntities.g:1781:2: ( ( rule__JvmTypeReference__Alternatives ) ) - // InternalEntities.g:1782:3: ( rule__JvmTypeReference__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getAlternatives()); - } - // InternalEntities.g:1783:3: ( rule__JvmTypeReference__Alternatives ) - // InternalEntities.g:1783:4: rule__JvmTypeReference__Alternatives - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmTypeReference" - - - // $ANTLR start "entryRuleArrayBrackets" - // InternalEntities.g:1792:1: entryRuleArrayBrackets : ruleArrayBrackets EOF ; - public final void entryRuleArrayBrackets() throws RecognitionException { - try { - // InternalEntities.g:1793:1: ( ruleArrayBrackets EOF ) - // InternalEntities.g:1794:1: ruleArrayBrackets EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getArrayBracketsRule()); - } - pushFollow(FOLLOW_1); - ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getArrayBracketsRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleArrayBrackets" - - - // $ANTLR start "ruleArrayBrackets" - // InternalEntities.g:1801:1: ruleArrayBrackets : ( ( rule__ArrayBrackets__Group__0 ) ) ; - public final void ruleArrayBrackets() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1805:2: ( ( ( rule__ArrayBrackets__Group__0 ) ) ) - // InternalEntities.g:1806:2: ( ( rule__ArrayBrackets__Group__0 ) ) - { - // InternalEntities.g:1806:2: ( ( rule__ArrayBrackets__Group__0 ) ) - // InternalEntities.g:1807:3: ( rule__ArrayBrackets__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getArrayBracketsAccess().getGroup()); - } - // InternalEntities.g:1808:3: ( rule__ArrayBrackets__Group__0 ) - // InternalEntities.g:1808:4: rule__ArrayBrackets__Group__0 - { - pushFollow(FOLLOW_2); - rule__ArrayBrackets__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getArrayBracketsAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleArrayBrackets" - - - // $ANTLR start "entryRuleXFunctionTypeRef" - // InternalEntities.g:1817:1: entryRuleXFunctionTypeRef : ruleXFunctionTypeRef EOF ; - public final void entryRuleXFunctionTypeRef() throws RecognitionException { - try { - // InternalEntities.g:1818:1: ( ruleXFunctionTypeRef EOF ) - // InternalEntities.g:1819:1: ruleXFunctionTypeRef EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefRule()); - } - pushFollow(FOLLOW_1); - ruleXFunctionTypeRef(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXFunctionTypeRef" - - - // $ANTLR start "ruleXFunctionTypeRef" - // InternalEntities.g:1826:1: ruleXFunctionTypeRef : ( ( rule__XFunctionTypeRef__Group__0 ) ) ; - public final void ruleXFunctionTypeRef() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1830:2: ( ( ( rule__XFunctionTypeRef__Group__0 ) ) ) - // InternalEntities.g:1831:2: ( ( rule__XFunctionTypeRef__Group__0 ) ) - { - // InternalEntities.g:1831:2: ( ( rule__XFunctionTypeRef__Group__0 ) ) - // InternalEntities.g:1832:3: ( rule__XFunctionTypeRef__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getGroup()); - } - // InternalEntities.g:1833:3: ( rule__XFunctionTypeRef__Group__0 ) - // InternalEntities.g:1833:4: rule__XFunctionTypeRef__Group__0 - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXFunctionTypeRef" - - - // $ANTLR start "entryRuleJvmParameterizedTypeReference" - // InternalEntities.g:1842:1: entryRuleJvmParameterizedTypeReference : ruleJvmParameterizedTypeReference EOF ; - public final void entryRuleJvmParameterizedTypeReference() throws RecognitionException { - try { - // InternalEntities.g:1843:1: ( ruleJvmParameterizedTypeReference EOF ) - // InternalEntities.g:1844:1: ruleJvmParameterizedTypeReference EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - ruleJvmParameterizedTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmParameterizedTypeReference" - - - // $ANTLR start "ruleJvmParameterizedTypeReference" - // InternalEntities.g:1851:1: ruleJvmParameterizedTypeReference : ( ( rule__JvmParameterizedTypeReference__Group__0 ) ) ; - public final void ruleJvmParameterizedTypeReference() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1855:2: ( ( ( rule__JvmParameterizedTypeReference__Group__0 ) ) ) - // InternalEntities.g:1856:2: ( ( rule__JvmParameterizedTypeReference__Group__0 ) ) - { - // InternalEntities.g:1856:2: ( ( rule__JvmParameterizedTypeReference__Group__0 ) ) - // InternalEntities.g:1857:3: ( rule__JvmParameterizedTypeReference__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup()); - } - // InternalEntities.g:1858:3: ( rule__JvmParameterizedTypeReference__Group__0 ) - // InternalEntities.g:1858:4: rule__JvmParameterizedTypeReference__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmParameterizedTypeReference" - - - // $ANTLR start "entryRuleJvmArgumentTypeReference" - // InternalEntities.g:1867:1: entryRuleJvmArgumentTypeReference : ruleJvmArgumentTypeReference EOF ; - public final void entryRuleJvmArgumentTypeReference() throws RecognitionException { - try { - // InternalEntities.g:1868:1: ( ruleJvmArgumentTypeReference EOF ) - // InternalEntities.g:1869:1: ruleJvmArgumentTypeReference EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmArgumentTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmArgumentTypeReferenceRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmArgumentTypeReference" - - - // $ANTLR start "ruleJvmArgumentTypeReference" - // InternalEntities.g:1876:1: ruleJvmArgumentTypeReference : ( ( rule__JvmArgumentTypeReference__Alternatives ) ) ; - public final void ruleJvmArgumentTypeReference() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1880:2: ( ( ( rule__JvmArgumentTypeReference__Alternatives ) ) ) - // InternalEntities.g:1881:2: ( ( rule__JvmArgumentTypeReference__Alternatives ) ) - { - // InternalEntities.g:1881:2: ( ( rule__JvmArgumentTypeReference__Alternatives ) ) - // InternalEntities.g:1882:3: ( rule__JvmArgumentTypeReference__Alternatives ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmArgumentTypeReferenceAccess().getAlternatives()); - } - // InternalEntities.g:1883:3: ( rule__JvmArgumentTypeReference__Alternatives ) - // InternalEntities.g:1883:4: rule__JvmArgumentTypeReference__Alternatives - { - pushFollow(FOLLOW_2); - rule__JvmArgumentTypeReference__Alternatives(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmArgumentTypeReferenceAccess().getAlternatives()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmArgumentTypeReference" - - - // $ANTLR start "entryRuleJvmWildcardTypeReference" - // InternalEntities.g:1892:1: entryRuleJvmWildcardTypeReference : ruleJvmWildcardTypeReference EOF ; - public final void entryRuleJvmWildcardTypeReference() throws RecognitionException { - try { - // InternalEntities.g:1893:1: ( ruleJvmWildcardTypeReference EOF ) - // InternalEntities.g:1894:1: ruleJvmWildcardTypeReference EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - ruleJvmWildcardTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmWildcardTypeReference" - - - // $ANTLR start "ruleJvmWildcardTypeReference" - // InternalEntities.g:1901:1: ruleJvmWildcardTypeReference : ( ( rule__JvmWildcardTypeReference__Group__0 ) ) ; - public final void ruleJvmWildcardTypeReference() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1905:2: ( ( ( rule__JvmWildcardTypeReference__Group__0 ) ) ) - // InternalEntities.g:1906:2: ( ( rule__JvmWildcardTypeReference__Group__0 ) ) - { - // InternalEntities.g:1906:2: ( ( rule__JvmWildcardTypeReference__Group__0 ) ) - // InternalEntities.g:1907:3: ( rule__JvmWildcardTypeReference__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup()); - } - // InternalEntities.g:1908:3: ( rule__JvmWildcardTypeReference__Group__0 ) - // InternalEntities.g:1908:4: rule__JvmWildcardTypeReference__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmWildcardTypeReference" - - - // $ANTLR start "entryRuleJvmUpperBound" - // InternalEntities.g:1917:1: entryRuleJvmUpperBound : ruleJvmUpperBound EOF ; - public final void entryRuleJvmUpperBound() throws RecognitionException { - try { - // InternalEntities.g:1918:1: ( ruleJvmUpperBound EOF ) - // InternalEntities.g:1919:1: ruleJvmUpperBound EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundRule()); - } - pushFollow(FOLLOW_1); - ruleJvmUpperBound(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmUpperBound" - - - // $ANTLR start "ruleJvmUpperBound" - // InternalEntities.g:1926:1: ruleJvmUpperBound : ( ( rule__JvmUpperBound__Group__0 ) ) ; - public final void ruleJvmUpperBound() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1930:2: ( ( ( rule__JvmUpperBound__Group__0 ) ) ) - // InternalEntities.g:1931:2: ( ( rule__JvmUpperBound__Group__0 ) ) - { - // InternalEntities.g:1931:2: ( ( rule__JvmUpperBound__Group__0 ) ) - // InternalEntities.g:1932:3: ( rule__JvmUpperBound__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAccess().getGroup()); - } - // InternalEntities.g:1933:3: ( rule__JvmUpperBound__Group__0 ) - // InternalEntities.g:1933:4: rule__JvmUpperBound__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmUpperBound__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmUpperBound" - - - // $ANTLR start "entryRuleJvmUpperBoundAnded" - // InternalEntities.g:1942:1: entryRuleJvmUpperBoundAnded : ruleJvmUpperBoundAnded EOF ; - public final void entryRuleJvmUpperBoundAnded() throws RecognitionException { - try { - // InternalEntities.g:1943:1: ( ruleJvmUpperBoundAnded EOF ) - // InternalEntities.g:1944:1: ruleJvmUpperBoundAnded EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAndedRule()); - } - pushFollow(FOLLOW_1); - ruleJvmUpperBoundAnded(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAndedRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmUpperBoundAnded" - - - // $ANTLR start "ruleJvmUpperBoundAnded" - // InternalEntities.g:1951:1: ruleJvmUpperBoundAnded : ( ( rule__JvmUpperBoundAnded__Group__0 ) ) ; - public final void ruleJvmUpperBoundAnded() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1955:2: ( ( ( rule__JvmUpperBoundAnded__Group__0 ) ) ) - // InternalEntities.g:1956:2: ( ( rule__JvmUpperBoundAnded__Group__0 ) ) - { - // InternalEntities.g:1956:2: ( ( rule__JvmUpperBoundAnded__Group__0 ) ) - // InternalEntities.g:1957:3: ( rule__JvmUpperBoundAnded__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAndedAccess().getGroup()); - } - // InternalEntities.g:1958:3: ( rule__JvmUpperBoundAnded__Group__0 ) - // InternalEntities.g:1958:4: rule__JvmUpperBoundAnded__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmUpperBoundAnded__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAndedAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmUpperBoundAnded" - - - // $ANTLR start "entryRuleJvmLowerBound" - // InternalEntities.g:1967:1: entryRuleJvmLowerBound : ruleJvmLowerBound EOF ; - public final void entryRuleJvmLowerBound() throws RecognitionException { - try { - // InternalEntities.g:1968:1: ( ruleJvmLowerBound EOF ) - // InternalEntities.g:1969:1: ruleJvmLowerBound EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundRule()); - } - pushFollow(FOLLOW_1); - ruleJvmLowerBound(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmLowerBound" - - - // $ANTLR start "ruleJvmLowerBound" - // InternalEntities.g:1976:1: ruleJvmLowerBound : ( ( rule__JvmLowerBound__Group__0 ) ) ; - public final void ruleJvmLowerBound() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:1980:2: ( ( ( rule__JvmLowerBound__Group__0 ) ) ) - // InternalEntities.g:1981:2: ( ( rule__JvmLowerBound__Group__0 ) ) - { - // InternalEntities.g:1981:2: ( ( rule__JvmLowerBound__Group__0 ) ) - // InternalEntities.g:1982:3: ( rule__JvmLowerBound__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAccess().getGroup()); - } - // InternalEntities.g:1983:3: ( rule__JvmLowerBound__Group__0 ) - // InternalEntities.g:1983:4: rule__JvmLowerBound__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmLowerBound__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmLowerBound" - - - // $ANTLR start "entryRuleJvmLowerBoundAnded" - // InternalEntities.g:1992:1: entryRuleJvmLowerBoundAnded : ruleJvmLowerBoundAnded EOF ; - public final void entryRuleJvmLowerBoundAnded() throws RecognitionException { - try { - // InternalEntities.g:1993:1: ( ruleJvmLowerBoundAnded EOF ) - // InternalEntities.g:1994:1: ruleJvmLowerBoundAnded EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAndedRule()); - } - pushFollow(FOLLOW_1); - ruleJvmLowerBoundAnded(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAndedRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleJvmLowerBoundAnded" - - - // $ANTLR start "ruleJvmLowerBoundAnded" - // InternalEntities.g:2001:1: ruleJvmLowerBoundAnded : ( ( rule__JvmLowerBoundAnded__Group__0 ) ) ; - public final void ruleJvmLowerBoundAnded() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2005:2: ( ( ( rule__JvmLowerBoundAnded__Group__0 ) ) ) - // InternalEntities.g:2006:2: ( ( rule__JvmLowerBoundAnded__Group__0 ) ) - { - // InternalEntities.g:2006:2: ( ( rule__JvmLowerBoundAnded__Group__0 ) ) - // InternalEntities.g:2007:3: ( rule__JvmLowerBoundAnded__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAndedAccess().getGroup()); - } - // InternalEntities.g:2008:3: ( rule__JvmLowerBoundAnded__Group__0 ) - // InternalEntities.g:2008:4: rule__JvmLowerBoundAnded__Group__0 - { - pushFollow(FOLLOW_2); - rule__JvmLowerBoundAnded__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAndedAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleJvmLowerBoundAnded" - - - // $ANTLR start "entryRuleQualifiedNameWithWildcard" - // InternalEntities.g:2017:1: entryRuleQualifiedNameWithWildcard : ruleQualifiedNameWithWildcard EOF ; - public final void entryRuleQualifiedNameWithWildcard() throws RecognitionException { - try { - // InternalEntities.g:2018:1: ( ruleQualifiedNameWithWildcard EOF ) - // InternalEntities.g:2019:1: ruleQualifiedNameWithWildcard EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameWithWildcardRule()); - } - pushFollow(FOLLOW_1); - ruleQualifiedNameWithWildcard(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameWithWildcardRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleQualifiedNameWithWildcard" - - - // $ANTLR start "ruleQualifiedNameWithWildcard" - // InternalEntities.g:2026:1: ruleQualifiedNameWithWildcard : ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) ; - public final void ruleQualifiedNameWithWildcard() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2030:2: ( ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) ) - // InternalEntities.g:2031:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) - { - // InternalEntities.g:2031:2: ( ( rule__QualifiedNameWithWildcard__Group__0 ) ) - // InternalEntities.g:2032:3: ( rule__QualifiedNameWithWildcard__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); - } - // InternalEntities.g:2033:3: ( rule__QualifiedNameWithWildcard__Group__0 ) - // InternalEntities.g:2033:4: rule__QualifiedNameWithWildcard__Group__0 - { - pushFollow(FOLLOW_2); - rule__QualifiedNameWithWildcard__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameWithWildcardAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQualifiedNameWithWildcard" - - - // $ANTLR start "entryRuleValidID" - // InternalEntities.g:2042:1: entryRuleValidID : ruleValidID EOF ; - public final void entryRuleValidID() throws RecognitionException { - try { - // InternalEntities.g:2043:1: ( ruleValidID EOF ) - // InternalEntities.g:2044:1: ruleValidID EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getValidIDRule()); - } - pushFollow(FOLLOW_1); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getValidIDRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleValidID" - - - // $ANTLR start "ruleValidID" - // InternalEntities.g:2051:1: ruleValidID : ( RULE_ID ) ; - public final void ruleValidID() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2055:2: ( ( RULE_ID ) ) - // InternalEntities.g:2056:2: ( RULE_ID ) - { - // InternalEntities.g:2056:2: ( RULE_ID ) - // InternalEntities.g:2057:3: RULE_ID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); - } - match(input,RULE_ID,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleValidID" - - - // $ANTLR start "entryRuleXImportSection" - // InternalEntities.g:2067:1: entryRuleXImportSection : ruleXImportSection EOF ; - public final void entryRuleXImportSection() throws RecognitionException { - try { - // InternalEntities.g:2068:1: ( ruleXImportSection EOF ) - // InternalEntities.g:2069:1: ruleXImportSection EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportSectionRule()); - } - pushFollow(FOLLOW_1); - ruleXImportSection(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportSectionRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXImportSection" - - - // $ANTLR start "ruleXImportSection" - // InternalEntities.g:2076:1: ruleXImportSection : ( ( ( rule__XImportSection__ImportDeclarationsAssignment ) ) ( ( rule__XImportSection__ImportDeclarationsAssignment )* ) ) ; - public final void ruleXImportSection() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2080:2: ( ( ( ( rule__XImportSection__ImportDeclarationsAssignment ) ) ( ( rule__XImportSection__ImportDeclarationsAssignment )* ) ) ) - // InternalEntities.g:2081:2: ( ( ( rule__XImportSection__ImportDeclarationsAssignment ) ) ( ( rule__XImportSection__ImportDeclarationsAssignment )* ) ) - { - // InternalEntities.g:2081:2: ( ( ( rule__XImportSection__ImportDeclarationsAssignment ) ) ( ( rule__XImportSection__ImportDeclarationsAssignment )* ) ) - // InternalEntities.g:2082:3: ( ( rule__XImportSection__ImportDeclarationsAssignment ) ) ( ( rule__XImportSection__ImportDeclarationsAssignment )* ) - { - // InternalEntities.g:2082:3: ( ( rule__XImportSection__ImportDeclarationsAssignment ) ) - // InternalEntities.g:2083:4: ( rule__XImportSection__ImportDeclarationsAssignment ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); - } - // InternalEntities.g:2084:4: ( rule__XImportSection__ImportDeclarationsAssignment ) - // InternalEntities.g:2084:5: rule__XImportSection__ImportDeclarationsAssignment - { - pushFollow(FOLLOW_3); - rule__XImportSection__ImportDeclarationsAssignment(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); - } - - } - - // InternalEntities.g:2087:3: ( ( rule__XImportSection__ImportDeclarationsAssignment )* ) - // InternalEntities.g:2088:4: ( rule__XImportSection__ImportDeclarationsAssignment )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); - } - // InternalEntities.g:2089:4: ( rule__XImportSection__ImportDeclarationsAssignment )* - loop1: - do { - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0==47) ) { - alt1=1; - } - - - switch (alt1) { - case 1 : - // InternalEntities.g:2089:5: rule__XImportSection__ImportDeclarationsAssignment - { - pushFollow(FOLLOW_3); - rule__XImportSection__ImportDeclarationsAssignment(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop1; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportSectionAccess().getImportDeclarationsAssignment()); - } - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXImportSection" - - - // $ANTLR start "entryRuleXImportDeclaration" - // InternalEntities.g:2099:1: entryRuleXImportDeclaration : ruleXImportDeclaration EOF ; - public final void entryRuleXImportDeclaration() throws RecognitionException { - try { - // InternalEntities.g:2100:1: ( ruleXImportDeclaration EOF ) - // InternalEntities.g:2101:1: ruleXImportDeclaration EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationRule()); - } - pushFollow(FOLLOW_1); - ruleXImportDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleXImportDeclaration" - - - // $ANTLR start "ruleXImportDeclaration" - // InternalEntities.g:2108:1: ruleXImportDeclaration : ( ( rule__XImportDeclaration__Group__0 ) ) ; - public final void ruleXImportDeclaration() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2112:2: ( ( ( rule__XImportDeclaration__Group__0 ) ) ) - // InternalEntities.g:2113:2: ( ( rule__XImportDeclaration__Group__0 ) ) - { - // InternalEntities.g:2113:2: ( ( rule__XImportDeclaration__Group__0 ) ) - // InternalEntities.g:2114:3: ( rule__XImportDeclaration__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getGroup()); - } - // InternalEntities.g:2115:3: ( rule__XImportDeclaration__Group__0 ) - // InternalEntities.g:2115:4: rule__XImportDeclaration__Group__0 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getGroup()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleXImportDeclaration" - - - // $ANTLR start "entryRuleQualifiedNameInStaticImport" - // InternalEntities.g:2124:1: entryRuleQualifiedNameInStaticImport : ruleQualifiedNameInStaticImport EOF ; - public final void entryRuleQualifiedNameInStaticImport() throws RecognitionException { - try { - // InternalEntities.g:2125:1: ( ruleQualifiedNameInStaticImport EOF ) - // InternalEntities.g:2126:1: ruleQualifiedNameInStaticImport EOF - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameInStaticImportRule()); - } - pushFollow(FOLLOW_1); - ruleQualifiedNameInStaticImport(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameInStaticImportRule()); - } - match(input,EOF,FOLLOW_2); if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleQualifiedNameInStaticImport" - - - // $ANTLR start "ruleQualifiedNameInStaticImport" - // InternalEntities.g:2133:1: ruleQualifiedNameInStaticImport : ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) ) ; - public final void ruleQualifiedNameInStaticImport() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2137:2: ( ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) ) ) - // InternalEntities.g:2138:2: ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) ) - { - // InternalEntities.g:2138:2: ( ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) ) - // InternalEntities.g:2139:3: ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) - { - // InternalEntities.g:2139:3: ( ( rule__QualifiedNameInStaticImport__Group__0 ) ) - // InternalEntities.g:2140:4: ( rule__QualifiedNameInStaticImport__Group__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); - } - // InternalEntities.g:2141:4: ( rule__QualifiedNameInStaticImport__Group__0 ) - // InternalEntities.g:2141:5: rule__QualifiedNameInStaticImport__Group__0 - { - pushFollow(FOLLOW_4); - rule__QualifiedNameInStaticImport__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); - } - - } - - // InternalEntities.g:2144:3: ( ( rule__QualifiedNameInStaticImport__Group__0 )* ) - // InternalEntities.g:2145:4: ( rule__QualifiedNameInStaticImport__Group__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); - } - // InternalEntities.g:2146:4: ( rule__QualifiedNameInStaticImport__Group__0 )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0==RULE_ID) ) { - int LA2_2 = input.LA(2); - - if ( (LA2_2==43) ) { - alt2=1; - } - - - } - - - switch (alt2) { - case 1 : - // InternalEntities.g:2146:5: rule__QualifiedNameInStaticImport__Group__0 - { - pushFollow(FOLLOW_4); - rule__QualifiedNameInStaticImport__Group__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop2; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameInStaticImportAccess().getGroup()); - } - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQualifiedNameInStaticImport" - - - // $ANTLR start "rule__AbstractElement__Alternatives" - // InternalEntities.g:2155:1: rule__AbstractElement__Alternatives : ( ( rulePackageDeclaration ) | ( ruleEntity ) ); - public final void rule__AbstractElement__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2159:1: ( ( rulePackageDeclaration ) | ( ruleEntity ) ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0==51) ) { - alt3=1; - } - else if ( (LA3_0==54) ) { - alt3=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // InternalEntities.g:2160:2: ( rulePackageDeclaration ) - { - // InternalEntities.g:2160:2: ( rulePackageDeclaration ) - // InternalEntities.g:2161:3: rulePackageDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - rulePackageDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2166:2: ( ruleEntity ) - { - // InternalEntities.g:2166:2: ( ruleEntity ) - // InternalEntities.g:2167:3: ruleEntity - { - if ( state.backtracking==0 ) { - before(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleEntity(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__AbstractElement__Alternatives" - - - // $ANTLR start "rule__Feature__Alternatives" - // InternalEntities.g:2176:1: rule__Feature__Alternatives : ( ( ruleProperty ) | ( ruleOperation ) ); - public final void rule__Feature__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2180:1: ( ( ruleProperty ) | ( ruleOperation ) ) - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==RULE_ID) ) { - alt4=1; - } - else if ( (LA4_0==56) ) { - alt4=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 4, 0, input); - - throw nvae; - } - switch (alt4) { - case 1 : - // InternalEntities.g:2181:2: ( ruleProperty ) - { - // InternalEntities.g:2181:2: ( ruleProperty ) - // InternalEntities.g:2182:3: ruleProperty - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleProperty(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2187:2: ( ruleOperation ) - { - // InternalEntities.g:2187:2: ( ruleOperation ) - // InternalEntities.g:2188:3: ruleOperation - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Feature__Alternatives" - - - // $ANTLR start "rule__XAssignment__Alternatives" - // InternalEntities.g:2197:1: rule__XAssignment__Alternatives : ( ( ( rule__XAssignment__Group_0__0 ) ) | ( ( rule__XAssignment__Group_1__0 ) ) ); - public final void rule__XAssignment__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2201:1: ( ( ( rule__XAssignment__Group_0__0 ) ) | ( ( rule__XAssignment__Group_1__0 ) ) ) - int alt5=2; - switch ( input.LA(1) ) { - case RULE_ID: - { - int LA5_1 = input.LA(2); - - if ( (LA5_1==EOF||(LA5_1>=RULE_ID && LA5_1<=RULE_STRING)||(LA5_1>=14 && LA5_1<=50)||(LA5_1>=52 && LA5_1<=53)||LA5_1==55||(LA5_1>=57 && LA5_1<=82)||(LA5_1>=85 && LA5_1<=86)||(LA5_1>=88 && LA5_1<=89)) ) { - alt5=2; - } - else if ( (LA5_1==13) ) { - alt5=1; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 5, 1, input); - - throw nvae; - } - } - break; - case 45: - { - int LA5_2 = input.LA(2); - - if ( (LA5_2==EOF||(LA5_2>=RULE_ID && LA5_2<=RULE_STRING)||(LA5_2>=14 && LA5_2<=50)||(LA5_2>=52 && LA5_2<=53)||LA5_2==55||(LA5_2>=57 && LA5_2<=82)||(LA5_2>=85 && LA5_2<=86)||(LA5_2>=88 && LA5_2<=89)) ) { - alt5=2; - } - else if ( (LA5_2==13) ) { - alt5=1; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 5, 2, input); - - throw nvae; - } - } - break; - case 46: - { - int LA5_3 = input.LA(2); - - if ( (LA5_3==13) ) { - alt5=1; - } - else if ( (LA5_3==EOF||(LA5_3>=RULE_ID && LA5_3<=RULE_STRING)||(LA5_3>=14 && LA5_3<=50)||(LA5_3>=52 && LA5_3<=53)||LA5_3==55||(LA5_3>=57 && LA5_3<=82)||(LA5_3>=85 && LA5_3<=86)||(LA5_3>=88 && LA5_3<=89)) ) { - alt5=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 5, 3, input); - - throw nvae; - } - } - break; - case 47: - { - int LA5_4 = input.LA(2); - - if ( (LA5_4==13) ) { - alt5=1; - } - else if ( (LA5_4==EOF||(LA5_4>=RULE_ID && LA5_4<=RULE_STRING)||(LA5_4>=14 && LA5_4<=50)||(LA5_4>=52 && LA5_4<=53)||LA5_4==55||(LA5_4>=57 && LA5_4<=82)||(LA5_4>=85 && LA5_4<=86)||(LA5_4>=88 && LA5_4<=89)) ) { - alt5=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 5, 4, input); - - throw nvae; - } - } - break; - case 48: - { - int LA5_5 = input.LA(2); - - if ( (LA5_5==13) ) { - alt5=1; - } - else if ( (LA5_5==EOF||(LA5_5>=RULE_ID && LA5_5<=RULE_STRING)||(LA5_5>=14 && LA5_5<=50)||(LA5_5>=52 && LA5_5<=53)||LA5_5==55||(LA5_5>=57 && LA5_5<=82)||(LA5_5>=85 && LA5_5<=86)||(LA5_5>=88 && LA5_5<=89)) ) { - alt5=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 5, 5, input); - - throw nvae; - } - } - break; - case RULE_HEX: - case RULE_INT: - case RULE_DECIMAL: - case RULE_STRING: - case 27: - case 34: - case 35: - case 40: - case 49: - case 50: - case 52: - case 57: - case 62: - case 63: - case 66: - case 68: - case 71: - case 72: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 79: - case 81: - case 89: - { - alt5=2; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 5, 0, input); - - throw nvae; - } - - switch (alt5) { - case 1 : - // InternalEntities.g:2202:2: ( ( rule__XAssignment__Group_0__0 ) ) - { - // InternalEntities.g:2202:2: ( ( rule__XAssignment__Group_0__0 ) ) - // InternalEntities.g:2203:3: ( rule__XAssignment__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getGroup_0()); - } - // InternalEntities.g:2204:3: ( rule__XAssignment__Group_0__0 ) - // InternalEntities.g:2204:4: rule__XAssignment__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getGroup_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2208:2: ( ( rule__XAssignment__Group_1__0 ) ) - { - // InternalEntities.g:2208:2: ( ( rule__XAssignment__Group_1__0 ) ) - // InternalEntities.g:2209:3: ( rule__XAssignment__Group_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getGroup_1()); - } - // InternalEntities.g:2210:3: ( rule__XAssignment__Group_1__0 ) - // InternalEntities.g:2210:4: rule__XAssignment__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getGroup_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Alternatives" - - - // $ANTLR start "rule__OpMultiAssign__Alternatives" - // InternalEntities.g:2218:1: rule__OpMultiAssign__Alternatives : ( ( '+=' ) | ( '-=' ) | ( '*=' ) | ( '/=' ) | ( '%=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAssign__Group_6__0 ) ) ); - public final void rule__OpMultiAssign__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2222:1: ( ( '+=' ) | ( '-=' ) | ( '*=' ) | ( '/=' ) | ( '%=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAssign__Group_6__0 ) ) ) - int alt6=7; - switch ( input.LA(1) ) { - case 16: - { - alt6=1; - } - break; - case 17: - { - alt6=2; - } - break; - case 18: - { - alt6=3; - } - break; - case 19: - { - alt6=4; - } - break; - case 20: - { - alt6=5; - } - break; - case 27: - { - alt6=6; - } - break; - case 26: - { - alt6=7; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 6, 0, input); - - throw nvae; - } - - switch (alt6) { - case 1 : - // InternalEntities.g:2223:2: ( '+=' ) - { - // InternalEntities.g:2223:2: ( '+=' ) - // InternalEntities.g:2224:3: '+=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); - } - match(input,16,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2229:2: ( '-=' ) - { - // InternalEntities.g:2229:2: ( '-=' ) - // InternalEntities.g:2230:3: '-=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); - } - match(input,17,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2235:2: ( '*=' ) - { - // InternalEntities.g:2235:2: ( '*=' ) - // InternalEntities.g:2236:3: '*=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); - } - match(input,18,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2241:2: ( '/=' ) - { - // InternalEntities.g:2241:2: ( '/=' ) - // InternalEntities.g:2242:3: '/=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); - } - match(input,19,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); - } - - } - - - } - break; - case 5 : - // InternalEntities.g:2247:2: ( '%=' ) - { - // InternalEntities.g:2247:2: ( '%=' ) - // InternalEntities.g:2248:3: '%=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); - } - match(input,20,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); - } - - } - - - } - break; - case 6 : - // InternalEntities.g:2253:2: ( ( rule__OpMultiAssign__Group_5__0 ) ) - { - // InternalEntities.g:2253:2: ( ( rule__OpMultiAssign__Group_5__0 ) ) - // InternalEntities.g:2254:3: ( rule__OpMultiAssign__Group_5__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getGroup_5()); - } - // InternalEntities.g:2255:3: ( rule__OpMultiAssign__Group_5__0 ) - // InternalEntities.g:2255:4: rule__OpMultiAssign__Group_5__0 - { - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_5__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getGroup_5()); - } - - } - - - } - break; - case 7 : - // InternalEntities.g:2259:2: ( ( rule__OpMultiAssign__Group_6__0 ) ) - { - // InternalEntities.g:2259:2: ( ( rule__OpMultiAssign__Group_6__0 ) ) - // InternalEntities.g:2260:3: ( rule__OpMultiAssign__Group_6__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getGroup_6()); - } - // InternalEntities.g:2261:3: ( rule__OpMultiAssign__Group_6__0 ) - // InternalEntities.g:2261:4: rule__OpMultiAssign__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_6__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getGroup_6()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Alternatives" - - - // $ANTLR start "rule__OpEquality__Alternatives" - // InternalEntities.g:2269:1: rule__OpEquality__Alternatives : ( ( '==' ) | ( '!=' ) | ( '===' ) | ( '!==' ) ); - public final void rule__OpEquality__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2273:1: ( ( '==' ) | ( '!=' ) | ( '===' ) | ( '!==' ) ) - int alt7=4; - switch ( input.LA(1) ) { - case 21: - { - alt7=1; - } - break; - case 22: - { - alt7=2; - } - break; - case 23: - { - alt7=3; - } - break; - case 24: - { - alt7=4; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 7, 0, input); - - throw nvae; - } - - switch (alt7) { - case 1 : - // InternalEntities.g:2274:2: ( '==' ) - { - // InternalEntities.g:2274:2: ( '==' ) - // InternalEntities.g:2275:3: '==' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); - } - match(input,21,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2280:2: ( '!=' ) - { - // InternalEntities.g:2280:2: ( '!=' ) - // InternalEntities.g:2281:3: '!=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); - } - match(input,22,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2286:2: ( '===' ) - { - // InternalEntities.g:2286:2: ( '===' ) - // InternalEntities.g:2287:3: '===' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); - } - match(input,23,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2292:2: ( '!==' ) - { - // InternalEntities.g:2292:2: ( '!==' ) - // InternalEntities.g:2293:3: '!==' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); - } - match(input,24,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpEquality__Alternatives" - - - // $ANTLR start "rule__XRelationalExpression__Alternatives_1" - // InternalEntities.g:2302:1: rule__XRelationalExpression__Alternatives_1 : ( ( ( rule__XRelationalExpression__Group_1_0__0 ) ) | ( ( rule__XRelationalExpression__Group_1_1__0 ) ) ); - public final void rule__XRelationalExpression__Alternatives_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2306:1: ( ( ( rule__XRelationalExpression__Group_1_0__0 ) ) | ( ( rule__XRelationalExpression__Group_1_1__0 ) ) ) - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==60) ) { - alt8=1; - } - else if ( ((LA8_0>=25 && LA8_0<=27)) ) { - alt8=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 8, 0, input); - - throw nvae; - } - switch (alt8) { - case 1 : - // InternalEntities.g:2307:2: ( ( rule__XRelationalExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:2307:2: ( ( rule__XRelationalExpression__Group_1_0__0 ) ) - // InternalEntities.g:2308:3: ( rule__XRelationalExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:2309:3: ( rule__XRelationalExpression__Group_1_0__0 ) - // InternalEntities.g:2309:4: rule__XRelationalExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2313:2: ( ( rule__XRelationalExpression__Group_1_1__0 ) ) - { - // InternalEntities.g:2313:2: ( ( rule__XRelationalExpression__Group_1_1__0 ) ) - // InternalEntities.g:2314:3: ( rule__XRelationalExpression__Group_1_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1()); - } - // InternalEntities.g:2315:3: ( rule__XRelationalExpression__Group_1_1__0 ) - // InternalEntities.g:2315:4: rule__XRelationalExpression__Group_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Alternatives_1" - - - // $ANTLR start "rule__OpCompare__Alternatives" - // InternalEntities.g:2323:1: rule__OpCompare__Alternatives : ( ( '>=' ) | ( ( rule__OpCompare__Group_1__0 ) ) | ( '>' ) | ( '<' ) ); - public final void rule__OpCompare__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2327:1: ( ( '>=' ) | ( ( rule__OpCompare__Group_1__0 ) ) | ( '>' ) | ( '<' ) ) - int alt9=4; - switch ( input.LA(1) ) { - case 25: - { - alt9=1; - } - break; - case 27: - { - int LA9_2 = input.LA(2); - - if ( (LA9_2==EOF||(LA9_2>=RULE_ID && LA9_2<=RULE_STRING)||LA9_2==27||(LA9_2>=34 && LA9_2<=35)||LA9_2==40||(LA9_2>=45 && LA9_2<=50)||LA9_2==52||LA9_2==57||(LA9_2>=62 && LA9_2<=63)||LA9_2==66||LA9_2==68||(LA9_2>=71 && LA9_2<=79)||LA9_2==81||LA9_2==89) ) { - alt9=4; - } - else if ( (LA9_2==13) ) { - alt9=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 9, 2, input); - - throw nvae; - } - } - break; - case 26: - { - alt9=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 9, 0, input); - - throw nvae; - } - - switch (alt9) { - case 1 : - // InternalEntities.g:2328:2: ( '>=' ) - { - // InternalEntities.g:2328:2: ( '>=' ) - // InternalEntities.g:2329:3: '>=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); - } - match(input,25,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2334:2: ( ( rule__OpCompare__Group_1__0 ) ) - { - // InternalEntities.g:2334:2: ( ( rule__OpCompare__Group_1__0 ) ) - // InternalEntities.g:2335:3: ( rule__OpCompare__Group_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getGroup_1()); - } - // InternalEntities.g:2336:3: ( rule__OpCompare__Group_1__0 ) - // InternalEntities.g:2336:4: rule__OpCompare__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__OpCompare__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getGroup_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2340:2: ( '>' ) - { - // InternalEntities.g:2340:2: ( '>' ) - // InternalEntities.g:2341:3: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2346:2: ( '<' ) - { - // InternalEntities.g:2346:2: ( '<' ) - // InternalEntities.g:2347:3: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpCompare__Alternatives" - - - // $ANTLR start "rule__OpOther__Alternatives" - // InternalEntities.g:2356:1: rule__OpOther__Alternatives : ( ( '->' ) | ( '..<' ) | ( ( rule__OpOther__Group_2__0 ) ) | ( '..' ) | ( '=>' ) | ( ( rule__OpOther__Group_5__0 ) ) | ( ( rule__OpOther__Group_6__0 ) ) | ( '<>' ) | ( '?:' ) ); - public final void rule__OpOther__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2360:1: ( ( '->' ) | ( '..<' ) | ( ( rule__OpOther__Group_2__0 ) ) | ( '..' ) | ( '=>' ) | ( ( rule__OpOther__Group_5__0 ) ) | ( ( rule__OpOther__Group_6__0 ) ) | ( '<>' ) | ( '?:' ) ) - int alt10=9; - alt10 = dfa10.predict(input); - switch (alt10) { - case 1 : - // InternalEntities.g:2361:2: ( '->' ) - { - // InternalEntities.g:2361:2: ( '->' ) - // InternalEntities.g:2362:3: '->' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); - } - match(input,28,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2367:2: ( '..<' ) - { - // InternalEntities.g:2367:2: ( '..<' ) - // InternalEntities.g:2368:3: '..<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); - } - match(input,29,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2373:2: ( ( rule__OpOther__Group_2__0 ) ) - { - // InternalEntities.g:2373:2: ( ( rule__OpOther__Group_2__0 ) ) - // InternalEntities.g:2374:3: ( rule__OpOther__Group_2__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_2()); - } - // InternalEntities.g:2375:3: ( rule__OpOther__Group_2__0 ) - // InternalEntities.g:2375:4: rule__OpOther__Group_2__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2379:2: ( '..' ) - { - // InternalEntities.g:2379:2: ( '..' ) - // InternalEntities.g:2380:3: '..' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); - } - match(input,30,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); - } - - } - - - } - break; - case 5 : - // InternalEntities.g:2385:2: ( '=>' ) - { - // InternalEntities.g:2385:2: ( '=>' ) - // InternalEntities.g:2386:3: '=>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); - } - match(input,31,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); - } - - } - - - } - break; - case 6 : - // InternalEntities.g:2391:2: ( ( rule__OpOther__Group_5__0 ) ) - { - // InternalEntities.g:2391:2: ( ( rule__OpOther__Group_5__0 ) ) - // InternalEntities.g:2392:3: ( rule__OpOther__Group_5__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_5()); - } - // InternalEntities.g:2393:3: ( rule__OpOther__Group_5__0 ) - // InternalEntities.g:2393:4: rule__OpOther__Group_5__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_5__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_5()); - } - - } - - - } - break; - case 7 : - // InternalEntities.g:2397:2: ( ( rule__OpOther__Group_6__0 ) ) - { - // InternalEntities.g:2397:2: ( ( rule__OpOther__Group_6__0 ) ) - // InternalEntities.g:2398:3: ( rule__OpOther__Group_6__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_6()); - } - // InternalEntities.g:2399:3: ( rule__OpOther__Group_6__0 ) - // InternalEntities.g:2399:4: rule__OpOther__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_6()); - } - - } - - - } - break; - case 8 : - // InternalEntities.g:2403:2: ( '<>' ) - { - // InternalEntities.g:2403:2: ( '<>' ) - // InternalEntities.g:2404:3: '<>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); - } - match(input,32,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); - } - - } - - - } - break; - case 9 : - // InternalEntities.g:2409:2: ( '?:' ) - { - // InternalEntities.g:2409:2: ( '?:' ) - // InternalEntities.g:2410:3: '?:' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); - } - match(input,33,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Alternatives" - - - // $ANTLR start "rule__OpOther__Alternatives_5_1" - // InternalEntities.g:2419:1: rule__OpOther__Alternatives_5_1 : ( ( ( rule__OpOther__Group_5_1_0__0 ) ) | ( '>' ) ); - public final void rule__OpOther__Alternatives_5_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2423:1: ( ( ( rule__OpOther__Group_5_1_0__0 ) ) | ( '>' ) ) - int alt11=2; - int LA11_0 = input.LA(1); - - if ( (LA11_0==26) ) { - int LA11_1 = input.LA(2); - - if ( (LA11_1==EOF||(LA11_1>=RULE_ID && LA11_1<=RULE_STRING)||LA11_1==27||(LA11_1>=34 && LA11_1<=35)||LA11_1==40||(LA11_1>=45 && LA11_1<=50)||LA11_1==52||LA11_1==57||(LA11_1>=62 && LA11_1<=63)||LA11_1==66||LA11_1==68||(LA11_1>=71 && LA11_1<=79)||LA11_1==81||LA11_1==89) ) { - alt11=2; - } - else if ( (LA11_1==26) ) { - alt11=1; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 11, 1, input); - - throw nvae; - } - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 11, 0, input); - - throw nvae; - } - switch (alt11) { - case 1 : - // InternalEntities.g:2424:2: ( ( rule__OpOther__Group_5_1_0__0 ) ) - { - // InternalEntities.g:2424:2: ( ( rule__OpOther__Group_5_1_0__0 ) ) - // InternalEntities.g:2425:3: ( rule__OpOther__Group_5_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_5_1_0()); - } - // InternalEntities.g:2426:3: ( rule__OpOther__Group_5_1_0__0 ) - // InternalEntities.g:2426:4: rule__OpOther__Group_5_1_0__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_5_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_5_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2430:2: ( '>' ) - { - // InternalEntities.g:2430:2: ( '>' ) - // InternalEntities.g:2431:3: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Alternatives_5_1" - - - // $ANTLR start "rule__OpOther__Alternatives_6_1" - // InternalEntities.g:2440:1: rule__OpOther__Alternatives_6_1 : ( ( ( rule__OpOther__Group_6_1_0__0 ) ) | ( '<' ) | ( '=>' ) ); - public final void rule__OpOther__Alternatives_6_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2444:1: ( ( ( rule__OpOther__Group_6_1_0__0 ) ) | ( '<' ) | ( '=>' ) ) - int alt12=3; - int LA12_0 = input.LA(1); - - if ( (LA12_0==27) ) { - int LA12_1 = input.LA(2); - - if ( (synpred28_InternalEntities()) ) { - alt12=1; - } - else if ( (synpred29_InternalEntities()) ) { - alt12=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 12, 1, input); - - throw nvae; - } - } - else if ( (LA12_0==31) ) { - alt12=3; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 12, 0, input); - - throw nvae; - } - switch (alt12) { - case 1 : - // InternalEntities.g:2445:2: ( ( rule__OpOther__Group_6_1_0__0 ) ) - { - // InternalEntities.g:2445:2: ( ( rule__OpOther__Group_6_1_0__0 ) ) - // InternalEntities.g:2446:3: ( rule__OpOther__Group_6_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_6_1_0()); - } - // InternalEntities.g:2447:3: ( rule__OpOther__Group_6_1_0__0 ) - // InternalEntities.g:2447:4: rule__OpOther__Group_6_1_0__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_6_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2451:2: ( '<' ) - { - // InternalEntities.g:2451:2: ( '<' ) - // InternalEntities.g:2452:3: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2457:2: ( '=>' ) - { - // InternalEntities.g:2457:2: ( '=>' ) - // InternalEntities.g:2458:3: '=>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); - } - match(input,31,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Alternatives_6_1" - - - // $ANTLR start "rule__OpAdd__Alternatives" - // InternalEntities.g:2467:1: rule__OpAdd__Alternatives : ( ( '+' ) | ( '-' ) ); - public final void rule__OpAdd__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2471:1: ( ( '+' ) | ( '-' ) ) - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0==34) ) { - alt13=1; - } - else if ( (LA13_0==35) ) { - alt13=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 13, 0, input); - - throw nvae; - } - switch (alt13) { - case 1 : - // InternalEntities.g:2472:2: ( '+' ) - { - // InternalEntities.g:2472:2: ( '+' ) - // InternalEntities.g:2473:3: '+' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); - } - match(input,34,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2478:2: ( '-' ) - { - // InternalEntities.g:2478:2: ( '-' ) - // InternalEntities.g:2479:3: '-' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); - } - match(input,35,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpAdd__Alternatives" - - - // $ANTLR start "rule__OpMulti__Alternatives" - // InternalEntities.g:2488:1: rule__OpMulti__Alternatives : ( ( '*' ) | ( '**' ) | ( '/' ) | ( '%' ) ); - public final void rule__OpMulti__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2492:1: ( ( '*' ) | ( '**' ) | ( '/' ) | ( '%' ) ) - int alt14=4; - switch ( input.LA(1) ) { - case 36: - { - alt14=1; - } - break; - case 37: - { - alt14=2; - } - break; - case 38: - { - alt14=3; - } - break; - case 39: - { - alt14=4; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 14, 0, input); - - throw nvae; - } - - switch (alt14) { - case 1 : - // InternalEntities.g:2493:2: ( '*' ) - { - // InternalEntities.g:2493:2: ( '*' ) - // InternalEntities.g:2494:3: '*' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); - } - match(input,36,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2499:2: ( '**' ) - { - // InternalEntities.g:2499:2: ( '**' ) - // InternalEntities.g:2500:3: '**' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); - } - match(input,37,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2505:2: ( '/' ) - { - // InternalEntities.g:2505:2: ( '/' ) - // InternalEntities.g:2506:3: '/' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); - } - match(input,38,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2511:2: ( '%' ) - { - // InternalEntities.g:2511:2: ( '%' ) - // InternalEntities.g:2512:3: '%' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); - } - match(input,39,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMulti__Alternatives" - - - // $ANTLR start "rule__XUnaryOperation__Alternatives" - // InternalEntities.g:2521:1: rule__XUnaryOperation__Alternatives : ( ( ( rule__XUnaryOperation__Group_0__0 ) ) | ( ruleXCastedExpression ) ); - public final void rule__XUnaryOperation__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2525:1: ( ( ( rule__XUnaryOperation__Group_0__0 ) ) | ( ruleXCastedExpression ) ) - int alt15=2; - int LA15_0 = input.LA(1); - - if ( ((LA15_0>=34 && LA15_0<=35)||LA15_0==40) ) { - alt15=1; - } - else if ( ((LA15_0>=RULE_ID && LA15_0<=RULE_STRING)||LA15_0==27||(LA15_0>=45 && LA15_0<=50)||LA15_0==52||LA15_0==57||(LA15_0>=62 && LA15_0<=63)||LA15_0==66||LA15_0==68||(LA15_0>=71 && LA15_0<=79)||LA15_0==81||LA15_0==89) ) { - alt15=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 15, 0, input); - - throw nvae; - } - switch (alt15) { - case 1 : - // InternalEntities.g:2526:2: ( ( rule__XUnaryOperation__Group_0__0 ) ) - { - // InternalEntities.g:2526:2: ( ( rule__XUnaryOperation__Group_0__0 ) ) - // InternalEntities.g:2527:3: ( rule__XUnaryOperation__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getGroup_0()); - } - // InternalEntities.g:2528:3: ( rule__XUnaryOperation__Group_0__0 ) - // InternalEntities.g:2528:4: rule__XUnaryOperation__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XUnaryOperation__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getGroup_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2532:2: ( ruleXCastedExpression ) - { - // InternalEntities.g:2532:2: ( ruleXCastedExpression ) - // InternalEntities.g:2533:3: ruleXCastedExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleXCastedExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Alternatives" - - - // $ANTLR start "rule__OpUnary__Alternatives" - // InternalEntities.g:2542:1: rule__OpUnary__Alternatives : ( ( '!' ) | ( '-' ) | ( '+' ) ); - public final void rule__OpUnary__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2546:1: ( ( '!' ) | ( '-' ) | ( '+' ) ) - int alt16=3; - switch ( input.LA(1) ) { - case 40: - { - alt16=1; - } - break; - case 35: - { - alt16=2; - } - break; - case 34: - { - alt16=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 16, 0, input); - - throw nvae; - } - - switch (alt16) { - case 1 : - // InternalEntities.g:2547:2: ( '!' ) - { - // InternalEntities.g:2547:2: ( '!' ) - // InternalEntities.g:2548:3: '!' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); - } - match(input,40,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2553:2: ( '-' ) - { - // InternalEntities.g:2553:2: ( '-' ) - // InternalEntities.g:2554:3: '-' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); - } - match(input,35,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2559:2: ( '+' ) - { - // InternalEntities.g:2559:2: ( '+' ) - // InternalEntities.g:2560:3: '+' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); - } - match(input,34,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpUnary__Alternatives" - - - // $ANTLR start "rule__OpPostfix__Alternatives" - // InternalEntities.g:2569:1: rule__OpPostfix__Alternatives : ( ( '++' ) | ( '--' ) ); - public final void rule__OpPostfix__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2573:1: ( ( '++' ) | ( '--' ) ) - int alt17=2; - int LA17_0 = input.LA(1); - - if ( (LA17_0==41) ) { - alt17=1; - } - else if ( (LA17_0==42) ) { - alt17=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 17, 0, input); - - throw nvae; - } - switch (alt17) { - case 1 : - // InternalEntities.g:2574:2: ( '++' ) - { - // InternalEntities.g:2574:2: ( '++' ) - // InternalEntities.g:2575:3: '++' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); - } - match(input,41,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2580:2: ( '--' ) - { - // InternalEntities.g:2580:2: ( '--' ) - // InternalEntities.g:2581:3: '--' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); - } - match(input,42,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpPostfix__Alternatives" - - - // $ANTLR start "rule__XMemberFeatureCall__Alternatives_1" - // InternalEntities.g:2590:1: rule__XMemberFeatureCall__Alternatives_1 : ( ( ( rule__XMemberFeatureCall__Group_1_0__0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1__0 ) ) ); - public final void rule__XMemberFeatureCall__Alternatives_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2594:1: ( ( ( rule__XMemberFeatureCall__Group_1_0__0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1__0 ) ) ) - int alt18=2; - alt18 = dfa18.predict(input); - switch (alt18) { - case 1 : - // InternalEntities.g:2595:2: ( ( rule__XMemberFeatureCall__Group_1_0__0 ) ) - { - // InternalEntities.g:2595:2: ( ( rule__XMemberFeatureCall__Group_1_0__0 ) ) - // InternalEntities.g:2596:3: ( rule__XMemberFeatureCall__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0()); - } - // InternalEntities.g:2597:3: ( rule__XMemberFeatureCall__Group_1_0__0 ) - // InternalEntities.g:2597:4: rule__XMemberFeatureCall__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2601:2: ( ( rule__XMemberFeatureCall__Group_1_1__0 ) ) - { - // InternalEntities.g:2601:2: ( ( rule__XMemberFeatureCall__Group_1_1__0 ) ) - // InternalEntities.g:2602:3: ( rule__XMemberFeatureCall__Group_1_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1()); - } - // InternalEntities.g:2603:3: ( rule__XMemberFeatureCall__Group_1_1__0 ) - // InternalEntities.g:2603:4: rule__XMemberFeatureCall__Group_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Alternatives_1" - - - // $ANTLR start "rule__XMemberFeatureCall__Alternatives_1_0_0_0_1" - // InternalEntities.g:2611:1: rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 : ( ( '.' ) | ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 ) ) ); - public final void rule__XMemberFeatureCall__Alternatives_1_0_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2615:1: ( ( '.' ) | ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 ) ) ) - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0==43) ) { - alt19=1; - } - else if ( (LA19_0==85) ) { - alt19=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 19, 0, input); - - throw nvae; - } - switch (alt19) { - case 1 : - // InternalEntities.g:2616:2: ( '.' ) - { - // InternalEntities.g:2616:2: ( '.' ) - // InternalEntities.g:2617:3: '.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); - } - match(input,43,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2622:2: ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 ) ) - { - // InternalEntities.g:2622:2: ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 ) ) - // InternalEntities.g:2623:3: ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_0_0_0_1_1()); - } - // InternalEntities.g:2624:3: ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 ) - // InternalEntities.g:2624:4: rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_0_0_0_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Alternatives_1_0_0_0_1" - - - // $ANTLR start "rule__XMemberFeatureCall__Alternatives_1_1_0_0_1" - // InternalEntities.g:2632:1: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 : ( ( '.' ) | ( ( rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 ) ) | ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 ) ) ); - public final void rule__XMemberFeatureCall__Alternatives_1_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2636:1: ( ( '.' ) | ( ( rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 ) ) | ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 ) ) ) - int alt20=3; - switch ( input.LA(1) ) { - case 43: - { - alt20=1; - } - break; - case 86: - { - alt20=2; - } - break; - case 85: - { - alt20=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 20, 0, input); - - throw nvae; - } - - switch (alt20) { - case 1 : - // InternalEntities.g:2637:2: ( '.' ) - { - // InternalEntities.g:2637:2: ( '.' ) - // InternalEntities.g:2638:3: '.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); - } - match(input,43,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2643:2: ( ( rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 ) ) - { - // InternalEntities.g:2643:2: ( ( rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 ) ) - // InternalEntities.g:2644:3: ( rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getNullSafeAssignment_1_1_0_0_1_1()); - } - // InternalEntities.g:2645:3: ( rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 ) - // InternalEntities.g:2645:4: rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getNullSafeAssignment_1_1_0_0_1_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2649:2: ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 ) ) - { - // InternalEntities.g:2649:2: ( ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 ) ) - // InternalEntities.g:2650:3: ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_1_0_0_1_2()); - } - // InternalEntities.g:2651:3: ( rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 ) - // InternalEntities.g:2651:4: rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticAssignment_1_1_0_0_1_2()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Alternatives_1_1_0_0_1" - - - // $ANTLR start "rule__XMemberFeatureCall__Alternatives_1_1_3_1" - // InternalEntities.g:2659:1: rule__XMemberFeatureCall__Alternatives_1_1_3_1 : ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) ) ); - public final void rule__XMemberFeatureCall__Alternatives_1_1_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2663:1: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) ) ) - int alt21=2; - alt21 = dfa21.predict(input); - switch (alt21) { - case 1 : - // InternalEntities.g:2664:2: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) - { - // InternalEntities.g:2664:2: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) - // InternalEntities.g:2665:3: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_0()); - } - // InternalEntities.g:2666:3: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) - // InternalEntities.g:2666:4: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2670:2: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) ) - { - // InternalEntities.g:2670:2: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) ) - // InternalEntities.g:2671:3: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1()); - } - // InternalEntities.g:2672:3: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) - // InternalEntities.g:2672:4: rule__XMemberFeatureCall__Group_1_1_3_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Alternatives_1_1_3_1" - - - // $ANTLR start "rule__XPrimaryExpression__Alternatives" - // InternalEntities.g:2680:1: rule__XPrimaryExpression__Alternatives : ( ( ruleXConstructorCall ) | ( ruleXBlockExpression ) | ( ruleXSwitchExpression ) | ( ( ruleXSynchronizedExpression ) ) | ( ruleXFeatureCall ) | ( ruleXLiteral ) | ( ruleXIfExpression ) | ( ( ruleXForLoopExpression ) ) | ( ruleXBasicForLoopExpression ) | ( ruleXWhileExpression ) | ( ruleXDoWhileExpression ) | ( ruleXThrowExpression ) | ( ruleXReturnExpression ) | ( ruleXTryCatchFinallyExpression ) | ( ruleXParenthesizedExpression ) ); - public final void rule__XPrimaryExpression__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2684:1: ( ( ruleXConstructorCall ) | ( ruleXBlockExpression ) | ( ruleXSwitchExpression ) | ( ( ruleXSynchronizedExpression ) ) | ( ruleXFeatureCall ) | ( ruleXLiteral ) | ( ruleXIfExpression ) | ( ( ruleXForLoopExpression ) ) | ( ruleXBasicForLoopExpression ) | ( ruleXWhileExpression ) | ( ruleXDoWhileExpression ) | ( ruleXThrowExpression ) | ( ruleXReturnExpression ) | ( ruleXTryCatchFinallyExpression ) | ( ruleXParenthesizedExpression ) ) - int alt22=15; - alt22 = dfa22.predict(input); - switch (alt22) { - case 1 : - // InternalEntities.g:2685:2: ( ruleXConstructorCall ) - { - // InternalEntities.g:2685:2: ( ruleXConstructorCall ) - // InternalEntities.g:2686:3: ruleXConstructorCall - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXConstructorCall(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2691:2: ( ruleXBlockExpression ) - { - // InternalEntities.g:2691:2: ( ruleXBlockExpression ) - // InternalEntities.g:2692:3: ruleXBlockExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleXBlockExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2697:2: ( ruleXSwitchExpression ) - { - // InternalEntities.g:2697:2: ( ruleXSwitchExpression ) - // InternalEntities.g:2698:3: ruleXSwitchExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); - } - pushFollow(FOLLOW_2); - ruleXSwitchExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2703:2: ( ( ruleXSynchronizedExpression ) ) - { - // InternalEntities.g:2703:2: ( ( ruleXSynchronizedExpression ) ) - // InternalEntities.g:2704:3: ( ruleXSynchronizedExpression ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); - } - // InternalEntities.g:2705:3: ( ruleXSynchronizedExpression ) - // InternalEntities.g:2705:4: ruleXSynchronizedExpression - { - pushFollow(FOLLOW_2); - ruleXSynchronizedExpression(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); - } - - } - - - } - break; - case 5 : - // InternalEntities.g:2709:2: ( ruleXFeatureCall ) - { - // InternalEntities.g:2709:2: ( ruleXFeatureCall ) - // InternalEntities.g:2710:3: ruleXFeatureCall - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); - } - pushFollow(FOLLOW_2); - ruleXFeatureCall(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); - } - - } - - - } - break; - case 6 : - // InternalEntities.g:2715:2: ( ruleXLiteral ) - { - // InternalEntities.g:2715:2: ( ruleXLiteral ) - // InternalEntities.g:2716:3: ruleXLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); - } - pushFollow(FOLLOW_2); - ruleXLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); - } - - } - - - } - break; - case 7 : - // InternalEntities.g:2721:2: ( ruleXIfExpression ) - { - // InternalEntities.g:2721:2: ( ruleXIfExpression ) - // InternalEntities.g:2722:3: ruleXIfExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); - } - pushFollow(FOLLOW_2); - ruleXIfExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); - } - - } - - - } - break; - case 8 : - // InternalEntities.g:2727:2: ( ( ruleXForLoopExpression ) ) - { - // InternalEntities.g:2727:2: ( ( ruleXForLoopExpression ) ) - // InternalEntities.g:2728:3: ( ruleXForLoopExpression ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); - } - // InternalEntities.g:2729:3: ( ruleXForLoopExpression ) - // InternalEntities.g:2729:4: ruleXForLoopExpression - { - pushFollow(FOLLOW_2); - ruleXForLoopExpression(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); - } - - } - - - } - break; - case 9 : - // InternalEntities.g:2733:2: ( ruleXBasicForLoopExpression ) - { - // InternalEntities.g:2733:2: ( ruleXBasicForLoopExpression ) - // InternalEntities.g:2734:3: ruleXBasicForLoopExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); - } - pushFollow(FOLLOW_2); - ruleXBasicForLoopExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); - } - - } - - - } - break; - case 10 : - // InternalEntities.g:2739:2: ( ruleXWhileExpression ) - { - // InternalEntities.g:2739:2: ( ruleXWhileExpression ) - // InternalEntities.g:2740:3: ruleXWhileExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); - } - pushFollow(FOLLOW_2); - ruleXWhileExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); - } - - } - - - } - break; - case 11 : - // InternalEntities.g:2745:2: ( ruleXDoWhileExpression ) - { - // InternalEntities.g:2745:2: ( ruleXDoWhileExpression ) - // InternalEntities.g:2746:3: ruleXDoWhileExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); - } - pushFollow(FOLLOW_2); - ruleXDoWhileExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); - } - - } - - - } - break; - case 12 : - // InternalEntities.g:2751:2: ( ruleXThrowExpression ) - { - // InternalEntities.g:2751:2: ( ruleXThrowExpression ) - // InternalEntities.g:2752:3: ruleXThrowExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); - } - pushFollow(FOLLOW_2); - ruleXThrowExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); - } - - } - - - } - break; - case 13 : - // InternalEntities.g:2757:2: ( ruleXReturnExpression ) - { - // InternalEntities.g:2757:2: ( ruleXReturnExpression ) - // InternalEntities.g:2758:3: ruleXReturnExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); - } - pushFollow(FOLLOW_2); - ruleXReturnExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); - } - - } - - - } - break; - case 14 : - // InternalEntities.g:2763:2: ( ruleXTryCatchFinallyExpression ) - { - // InternalEntities.g:2763:2: ( ruleXTryCatchFinallyExpression ) - // InternalEntities.g:2764:3: ruleXTryCatchFinallyExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); - } - pushFollow(FOLLOW_2); - ruleXTryCatchFinallyExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); - } - - } - - - } - break; - case 15 : - // InternalEntities.g:2769:2: ( ruleXParenthesizedExpression ) - { - // InternalEntities.g:2769:2: ( ruleXParenthesizedExpression ) - // InternalEntities.g:2770:3: ruleXParenthesizedExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); - } - pushFollow(FOLLOW_2); - ruleXParenthesizedExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPrimaryExpression__Alternatives" - - - // $ANTLR start "rule__XLiteral__Alternatives" - // InternalEntities.g:2779:1: rule__XLiteral__Alternatives : ( ( ruleXCollectionLiteral ) | ( ( ruleXClosure ) ) | ( ruleXBooleanLiteral ) | ( ruleXNumberLiteral ) | ( ruleXNullLiteral ) | ( ruleXStringLiteral ) | ( ruleXTypeLiteral ) ); - public final void rule__XLiteral__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2783:1: ( ( ruleXCollectionLiteral ) | ( ( ruleXClosure ) ) | ( ruleXBooleanLiteral ) | ( ruleXNumberLiteral ) | ( ruleXNullLiteral ) | ( ruleXStringLiteral ) | ( ruleXTypeLiteral ) ) - int alt23=7; - switch ( input.LA(1) ) { - case 62: - { - alt23=1; - } - break; - case 63: - { - alt23=2; - } - break; - case 50: - case 89: - { - alt23=3; - } - break; - case RULE_HEX: - case RULE_INT: - case RULE_DECIMAL: - { - alt23=4; - } - break; - case 75: - { - alt23=5; - } - break; - case RULE_STRING: - { - alt23=6; - } - break; - case 76: - { - alt23=7; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 23, 0, input); - - throw nvae; - } - - switch (alt23) { - case 1 : - // InternalEntities.g:2784:2: ( ruleXCollectionLiteral ) - { - // InternalEntities.g:2784:2: ( ruleXCollectionLiteral ) - // InternalEntities.g:2785:3: ruleXCollectionLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXCollectionLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2790:2: ( ( ruleXClosure ) ) - { - // InternalEntities.g:2790:2: ( ( ruleXClosure ) ) - // InternalEntities.g:2791:3: ( ruleXClosure ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); - } - // InternalEntities.g:2792:3: ( ruleXClosure ) - // InternalEntities.g:2792:4: ruleXClosure - { - pushFollow(FOLLOW_2); - ruleXClosure(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2796:2: ( ruleXBooleanLiteral ) - { - // InternalEntities.g:2796:2: ( ruleXBooleanLiteral ) - // InternalEntities.g:2797:3: ruleXBooleanLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); - } - pushFollow(FOLLOW_2); - ruleXBooleanLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:2802:2: ( ruleXNumberLiteral ) - { - // InternalEntities.g:2802:2: ( ruleXNumberLiteral ) - // InternalEntities.g:2803:3: ruleXNumberLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); - } - pushFollow(FOLLOW_2); - ruleXNumberLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); - } - - } - - - } - break; - case 5 : - // InternalEntities.g:2808:2: ( ruleXNullLiteral ) - { - // InternalEntities.g:2808:2: ( ruleXNullLiteral ) - // InternalEntities.g:2809:3: ruleXNullLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); - } - pushFollow(FOLLOW_2); - ruleXNullLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); - } - - } - - - } - break; - case 6 : - // InternalEntities.g:2814:2: ( ruleXStringLiteral ) - { - // InternalEntities.g:2814:2: ( ruleXStringLiteral ) - // InternalEntities.g:2815:3: ruleXStringLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); - } - pushFollow(FOLLOW_2); - ruleXStringLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); - } - - } - - - } - break; - case 7 : - // InternalEntities.g:2820:2: ( ruleXTypeLiteral ) - { - // InternalEntities.g:2820:2: ( ruleXTypeLiteral ) - // InternalEntities.g:2821:3: ruleXTypeLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); - } - pushFollow(FOLLOW_2); - ruleXTypeLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XLiteral__Alternatives" - - - // $ANTLR start "rule__XCollectionLiteral__Alternatives" - // InternalEntities.g:2830:1: rule__XCollectionLiteral__Alternatives : ( ( ruleXSetLiteral ) | ( ruleXListLiteral ) ); - public final void rule__XCollectionLiteral__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2834:1: ( ( ruleXSetLiteral ) | ( ruleXListLiteral ) ) - int alt24=2; - int LA24_0 = input.LA(1); - - if ( (LA24_0==62) ) { - int LA24_1 = input.LA(2); - - if ( (LA24_1==52) ) { - alt24=1; - } - else if ( (LA24_1==63) ) { - alt24=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 24, 1, input); - - throw nvae; - } - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 24, 0, input); - - throw nvae; - } - switch (alt24) { - case 1 : - // InternalEntities.g:2835:2: ( ruleXSetLiteral ) - { - // InternalEntities.g:2835:2: ( ruleXSetLiteral ) - // InternalEntities.g:2836:3: ruleXSetLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXSetLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2841:2: ( ruleXListLiteral ) - { - // InternalEntities.g:2841:2: ( ruleXListLiteral ) - // InternalEntities.g:2842:3: ruleXListLiteral - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleXListLiteral(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCollectionLiteral__Alternatives" - - - // $ANTLR start "rule__XSwitchExpression__Alternatives_2" - // InternalEntities.g:2851:1: rule__XSwitchExpression__Alternatives_2 : ( ( ( rule__XSwitchExpression__Group_2_0__0 ) ) | ( ( rule__XSwitchExpression__Group_2_1__0 ) ) ); - public final void rule__XSwitchExpression__Alternatives_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2855:1: ( ( ( rule__XSwitchExpression__Group_2_0__0 ) ) | ( ( rule__XSwitchExpression__Group_2_1__0 ) ) ) - int alt25=2; - alt25 = dfa25.predict(input); - switch (alt25) { - case 1 : - // InternalEntities.g:2856:2: ( ( rule__XSwitchExpression__Group_2_0__0 ) ) - { - // InternalEntities.g:2856:2: ( ( rule__XSwitchExpression__Group_2_0__0 ) ) - // InternalEntities.g:2857:3: ( rule__XSwitchExpression__Group_2_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0()); - } - // InternalEntities.g:2858:3: ( rule__XSwitchExpression__Group_2_0__0 ) - // InternalEntities.g:2858:4: rule__XSwitchExpression__Group_2_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2862:2: ( ( rule__XSwitchExpression__Group_2_1__0 ) ) - { - // InternalEntities.g:2862:2: ( ( rule__XSwitchExpression__Group_2_1__0 ) ) - // InternalEntities.g:2863:3: ( rule__XSwitchExpression__Group_2_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1()); - } - // InternalEntities.g:2864:3: ( rule__XSwitchExpression__Group_2_1__0 ) - // InternalEntities.g:2864:4: rule__XSwitchExpression__Group_2_1__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Alternatives_2" - - - // $ANTLR start "rule__XCasePart__Alternatives_3" - // InternalEntities.g:2872:1: rule__XCasePart__Alternatives_3 : ( ( ( rule__XCasePart__Group_3_0__0 ) ) | ( ( rule__XCasePart__FallThroughAssignment_3_1 ) ) ); - public final void rule__XCasePart__Alternatives_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2876:1: ( ( ( rule__XCasePart__Group_3_0__0 ) ) | ( ( rule__XCasePart__FallThroughAssignment_3_1 ) ) ) - int alt26=2; - int LA26_0 = input.LA(1); - - if ( (LA26_0==55) ) { - alt26=1; - } - else if ( (LA26_0==59) ) { - alt26=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 26, 0, input); - - throw nvae; - } - switch (alt26) { - case 1 : - // InternalEntities.g:2877:2: ( ( rule__XCasePart__Group_3_0__0 ) ) - { - // InternalEntities.g:2877:2: ( ( rule__XCasePart__Group_3_0__0 ) ) - // InternalEntities.g:2878:3: ( rule__XCasePart__Group_3_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getGroup_3_0()); - } - // InternalEntities.g:2879:3: ( rule__XCasePart__Group_3_0__0 ) - // InternalEntities.g:2879:4: rule__XCasePart__Group_3_0__0 - { - pushFollow(FOLLOW_2); - rule__XCasePart__Group_3_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getGroup_3_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2883:2: ( ( rule__XCasePart__FallThroughAssignment_3_1 ) ) - { - // InternalEntities.g:2883:2: ( ( rule__XCasePart__FallThroughAssignment_3_1 ) ) - // InternalEntities.g:2884:3: ( rule__XCasePart__FallThroughAssignment_3_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getFallThroughAssignment_3_1()); - } - // InternalEntities.g:2885:3: ( rule__XCasePart__FallThroughAssignment_3_1 ) - // InternalEntities.g:2885:4: rule__XCasePart__FallThroughAssignment_3_1 - { - pushFollow(FOLLOW_2); - rule__XCasePart__FallThroughAssignment_3_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getFallThroughAssignment_3_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Alternatives_3" - - - // $ANTLR start "rule__XExpressionOrVarDeclaration__Alternatives" - // InternalEntities.g:2893:1: rule__XExpressionOrVarDeclaration__Alternatives : ( ( ruleXVariableDeclaration ) | ( ruleXExpression ) ); - public final void rule__XExpressionOrVarDeclaration__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2897:1: ( ( ruleXVariableDeclaration ) | ( ruleXExpression ) ) - int alt27=2; - int LA27_0 = input.LA(1); - - if ( (LA27_0==44||LA27_0==88) ) { - alt27=1; - } - else if ( ((LA27_0>=RULE_ID && LA27_0<=RULE_STRING)||LA27_0==27||(LA27_0>=34 && LA27_0<=35)||LA27_0==40||(LA27_0>=45 && LA27_0<=50)||LA27_0==52||LA27_0==57||(LA27_0>=62 && LA27_0<=63)||LA27_0==66||LA27_0==68||(LA27_0>=71 && LA27_0<=79)||LA27_0==81||LA27_0==89) ) { - alt27=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 27, 0, input); - - throw nvae; - } - switch (alt27) { - case 1 : - // InternalEntities.g:2898:2: ( ruleXVariableDeclaration ) - { - // InternalEntities.g:2898:2: ( ruleXVariableDeclaration ) - // InternalEntities.g:2899:3: ruleXVariableDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXVariableDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2904:2: ( ruleXExpression ) - { - // InternalEntities.g:2904:2: ( ruleXExpression ) - // InternalEntities.g:2905:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionOrVarDeclaration__Alternatives" - - - // $ANTLR start "rule__XVariableDeclaration__Alternatives_1" - // InternalEntities.g:2914:1: rule__XVariableDeclaration__Alternatives_1 : ( ( ( rule__XVariableDeclaration__WriteableAssignment_1_0 ) ) | ( 'val' ) ); - public final void rule__XVariableDeclaration__Alternatives_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2918:1: ( ( ( rule__XVariableDeclaration__WriteableAssignment_1_0 ) ) | ( 'val' ) ) - int alt28=2; - int LA28_0 = input.LA(1); - - if ( (LA28_0==88) ) { - alt28=1; - } - else if ( (LA28_0==44) ) { - alt28=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 28, 0, input); - - throw nvae; - } - switch (alt28) { - case 1 : - // InternalEntities.g:2919:2: ( ( rule__XVariableDeclaration__WriteableAssignment_1_0 ) ) - { - // InternalEntities.g:2919:2: ( ( rule__XVariableDeclaration__WriteableAssignment_1_0 ) ) - // InternalEntities.g:2920:3: ( rule__XVariableDeclaration__WriteableAssignment_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getWriteableAssignment_1_0()); - } - // InternalEntities.g:2921:3: ( rule__XVariableDeclaration__WriteableAssignment_1_0 ) - // InternalEntities.g:2921:4: rule__XVariableDeclaration__WriteableAssignment_1_0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__WriteableAssignment_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getWriteableAssignment_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2925:2: ( 'val' ) - { - // InternalEntities.g:2925:2: ( 'val' ) - // InternalEntities.g:2926:3: 'val' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); - } - match(input,44,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Alternatives_1" - - - // $ANTLR start "rule__XVariableDeclaration__Alternatives_2" - // InternalEntities.g:2935:1: rule__XVariableDeclaration__Alternatives_2 : ( ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) | ( ( rule__XVariableDeclaration__NameAssignment_2_1 ) ) ); - public final void rule__XVariableDeclaration__Alternatives_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2939:1: ( ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) | ( ( rule__XVariableDeclaration__NameAssignment_2_1 ) ) ) - int alt29=2; - int LA29_0 = input.LA(1); - - if ( (LA29_0==RULE_ID) ) { - int LA29_1 = input.LA(2); - - if ( (synpred68_InternalEntities()) ) { - alt29=1; - } - else if ( (true) ) { - alt29=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 29, 1, input); - - throw nvae; - } - } - else if ( (LA29_0==31||LA29_0==57) ) { - alt29=1; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 29, 0, input); - - throw nvae; - } - switch (alt29) { - case 1 : - // InternalEntities.g:2940:2: ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) - { - // InternalEntities.g:2940:2: ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) - // InternalEntities.g:2941:3: ( rule__XVariableDeclaration__Group_2_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0()); - } - // InternalEntities.g:2942:3: ( rule__XVariableDeclaration__Group_2_0__0 ) - // InternalEntities.g:2942:4: rule__XVariableDeclaration__Group_2_0__0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_2_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2946:2: ( ( rule__XVariableDeclaration__NameAssignment_2_1 ) ) - { - // InternalEntities.g:2946:2: ( ( rule__XVariableDeclaration__NameAssignment_2_1 ) ) - // InternalEntities.g:2947:3: ( rule__XVariableDeclaration__NameAssignment_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_1()); - } - // InternalEntities.g:2948:3: ( rule__XVariableDeclaration__NameAssignment_2_1 ) - // InternalEntities.g:2948:4: rule__XVariableDeclaration__NameAssignment_2_1 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__NameAssignment_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Alternatives_2" - - - // $ANTLR start "rule__XFeatureCall__Alternatives_3_1" - // InternalEntities.g:2956:1: rule__XFeatureCall__Alternatives_3_1 : ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) | ( ( rule__XFeatureCall__Group_3_1_1__0 ) ) ); - public final void rule__XFeatureCall__Alternatives_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2960:1: ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) | ( ( rule__XFeatureCall__Group_3_1_1__0 ) ) ) - int alt30=2; - alt30 = dfa30.predict(input); - switch (alt30) { - case 1 : - // InternalEntities.g:2961:2: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) - { - // InternalEntities.g:2961:2: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) - // InternalEntities.g:2962:3: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_0()); - } - // InternalEntities.g:2963:3: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) - // InternalEntities.g:2963:4: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2967:2: ( ( rule__XFeatureCall__Group_3_1_1__0 ) ) - { - // InternalEntities.g:2967:2: ( ( rule__XFeatureCall__Group_3_1_1__0 ) ) - // InternalEntities.g:2968:3: ( rule__XFeatureCall__Group_3_1_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1()); - } - // InternalEntities.g:2969:3: ( rule__XFeatureCall__Group_3_1_1__0 ) - // InternalEntities.g:2969:4: rule__XFeatureCall__Group_3_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Alternatives_3_1" - - - // $ANTLR start "rule__FeatureCallID__Alternatives" - // InternalEntities.g:2977:1: rule__FeatureCallID__Alternatives : ( ( ruleValidID ) | ( 'extends' ) | ( 'static' ) | ( 'import' ) | ( 'extension' ) ); - public final void rule__FeatureCallID__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:2981:1: ( ( ruleValidID ) | ( 'extends' ) | ( 'static' ) | ( 'import' ) | ( 'extension' ) ) - int alt31=5; - switch ( input.LA(1) ) { - case RULE_ID: - { - alt31=1; - } - break; - case 45: - { - alt31=2; - } - break; - case 46: - { - alt31=3; - } - break; - case 47: - { - alt31=4; - } - break; - case 48: - { - alt31=5; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 31, 0, input); - - throw nvae; - } - - switch (alt31) { - case 1 : - // InternalEntities.g:2982:2: ( ruleValidID ) - { - // InternalEntities.g:2982:2: ( ruleValidID ) - // InternalEntities.g:2983:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:2988:2: ( 'extends' ) - { - // InternalEntities.g:2988:2: ( 'extends' ) - // InternalEntities.g:2989:3: 'extends' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); - } - match(input,45,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2994:2: ( 'static' ) - { - // InternalEntities.g:2994:2: ( 'static' ) - // InternalEntities.g:2995:3: 'static' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); - } - match(input,46,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); - } - - } - - - } - break; - case 4 : - // InternalEntities.g:3000:2: ( 'import' ) - { - // InternalEntities.g:3000:2: ( 'import' ) - // InternalEntities.g:3001:3: 'import' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); - } - match(input,47,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); - } - - } - - - } - break; - case 5 : - // InternalEntities.g:3006:2: ( 'extension' ) - { - // InternalEntities.g:3006:2: ( 'extension' ) - // InternalEntities.g:3007:3: 'extension' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); - } - match(input,48,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FeatureCallID__Alternatives" - - - // $ANTLR start "rule__IdOrSuper__Alternatives" - // InternalEntities.g:3016:1: rule__IdOrSuper__Alternatives : ( ( ruleFeatureCallID ) | ( 'super' ) ); - public final void rule__IdOrSuper__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3020:1: ( ( ruleFeatureCallID ) | ( 'super' ) ) - int alt32=2; - int LA32_0 = input.LA(1); - - if ( (LA32_0==RULE_ID||(LA32_0>=45 && LA32_0<=48)) ) { - alt32=1; - } - else if ( (LA32_0==49) ) { - alt32=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 32, 0, input); - - throw nvae; - } - switch (alt32) { - case 1 : - // InternalEntities.g:3021:2: ( ruleFeatureCallID ) - { - // InternalEntities.g:3021:2: ( ruleFeatureCallID ) - // InternalEntities.g:3022:3: ruleFeatureCallID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3027:2: ( 'super' ) - { - // InternalEntities.g:3027:2: ( 'super' ) - // InternalEntities.g:3028:3: 'super' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); - } - match(input,49,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__IdOrSuper__Alternatives" - - - // $ANTLR start "rule__XConstructorCall__Alternatives_4_1" - // InternalEntities.g:3037:1: rule__XConstructorCall__Alternatives_4_1 : ( ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) | ( ( rule__XConstructorCall__Group_4_1_1__0 ) ) ); - public final void rule__XConstructorCall__Alternatives_4_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3041:1: ( ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) | ( ( rule__XConstructorCall__Group_4_1_1__0 ) ) ) - int alt33=2; - alt33 = dfa33.predict(input); - switch (alt33) { - case 1 : - // InternalEntities.g:3042:2: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) - { - // InternalEntities.g:3042:2: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) - // InternalEntities.g:3043:3: ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_0()); - } - // InternalEntities.g:3044:3: ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) - // InternalEntities.g:3044:4: rule__XConstructorCall__ArgumentsAssignment_4_1_0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ArgumentsAssignment_4_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3048:2: ( ( rule__XConstructorCall__Group_4_1_1__0 ) ) - { - // InternalEntities.g:3048:2: ( ( rule__XConstructorCall__Group_4_1_1__0 ) ) - // InternalEntities.g:3049:3: ( rule__XConstructorCall__Group_4_1_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1()); - } - // InternalEntities.g:3050:3: ( rule__XConstructorCall__Group_4_1_1__0 ) - // InternalEntities.g:3050:4: rule__XConstructorCall__Group_4_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Alternatives_4_1" - - - // $ANTLR start "rule__XBooleanLiteral__Alternatives_1" - // InternalEntities.g:3058:1: rule__XBooleanLiteral__Alternatives_1 : ( ( 'false' ) | ( ( rule__XBooleanLiteral__IsTrueAssignment_1_1 ) ) ); - public final void rule__XBooleanLiteral__Alternatives_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3062:1: ( ( 'false' ) | ( ( rule__XBooleanLiteral__IsTrueAssignment_1_1 ) ) ) - int alt34=2; - int LA34_0 = input.LA(1); - - if ( (LA34_0==50) ) { - alt34=1; - } - else if ( (LA34_0==89) ) { - alt34=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 34, 0, input); - - throw nvae; - } - switch (alt34) { - case 1 : - // InternalEntities.g:3063:2: ( 'false' ) - { - // InternalEntities.g:3063:2: ( 'false' ) - // InternalEntities.g:3064:3: 'false' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); - } - match(input,50,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3069:2: ( ( rule__XBooleanLiteral__IsTrueAssignment_1_1 ) ) - { - // InternalEntities.g:3069:2: ( ( rule__XBooleanLiteral__IsTrueAssignment_1_1 ) ) - // InternalEntities.g:3070:3: ( rule__XBooleanLiteral__IsTrueAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getIsTrueAssignment_1_1()); - } - // InternalEntities.g:3071:3: ( rule__XBooleanLiteral__IsTrueAssignment_1_1 ) - // InternalEntities.g:3071:4: rule__XBooleanLiteral__IsTrueAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XBooleanLiteral__IsTrueAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getIsTrueAssignment_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBooleanLiteral__Alternatives_1" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Alternatives_3" - // InternalEntities.g:3079:1: rule__XTryCatchFinallyExpression__Alternatives_3 : ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) ); - public final void rule__XTryCatchFinallyExpression__Alternatives_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3083:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) | ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) ) - int alt35=2; - int LA35_0 = input.LA(1); - - if ( (LA35_0==82) ) { - alt35=1; - } - else if ( (LA35_0==80) ) { - alt35=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 35, 0, input); - - throw nvae; - } - switch (alt35) { - case 1 : - // InternalEntities.g:3084:2: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) - { - // InternalEntities.g:3084:2: ( ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) ) - // InternalEntities.g:3085:3: ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); - } - // InternalEntities.g:3086:3: ( rule__XTryCatchFinallyExpression__Group_3_0__0 ) - // InternalEntities.g:3086:4: rule__XTryCatchFinallyExpression__Group_3_0__0 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3090:2: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) - { - // InternalEntities.g:3090:2: ( ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) ) - // InternalEntities.g:3091:3: ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); - } - // InternalEntities.g:3092:3: ( rule__XTryCatchFinallyExpression__Group_3_1__0 ) - // InternalEntities.g:3092:4: rule__XTryCatchFinallyExpression__Group_3_1__0 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Alternatives_3" - - - // $ANTLR start "rule__Number__Alternatives" - // InternalEntities.g:3100:1: rule__Number__Alternatives : ( ( RULE_HEX ) | ( ( rule__Number__Group_1__0 ) ) ); - public final void rule__Number__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3104:1: ( ( RULE_HEX ) | ( ( rule__Number__Group_1__0 ) ) ) - int alt36=2; - int LA36_0 = input.LA(1); - - if ( (LA36_0==RULE_HEX) ) { - alt36=1; - } - else if ( ((LA36_0>=RULE_INT && LA36_0<=RULE_DECIMAL)) ) { - alt36=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 36, 0, input); - - throw nvae; - } - switch (alt36) { - case 1 : - // InternalEntities.g:3105:2: ( RULE_HEX ) - { - // InternalEntities.g:3105:2: ( RULE_HEX ) - // InternalEntities.g:3106:3: RULE_HEX - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); - } - match(input,RULE_HEX,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3111:2: ( ( rule__Number__Group_1__0 ) ) - { - // InternalEntities.g:3111:2: ( ( rule__Number__Group_1__0 ) ) - // InternalEntities.g:3112:3: ( rule__Number__Group_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getGroup_1()); - } - // InternalEntities.g:3113:3: ( rule__Number__Group_1__0 ) - // InternalEntities.g:3113:4: rule__Number__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__Number__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getGroup_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Alternatives" - - - // $ANTLR start "rule__Number__Alternatives_1_0" - // InternalEntities.g:3121:1: rule__Number__Alternatives_1_0 : ( ( RULE_INT ) | ( RULE_DECIMAL ) ); - public final void rule__Number__Alternatives_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3125:1: ( ( RULE_INT ) | ( RULE_DECIMAL ) ) - int alt37=2; - int LA37_0 = input.LA(1); - - if ( (LA37_0==RULE_INT) ) { - alt37=1; - } - else if ( (LA37_0==RULE_DECIMAL) ) { - alt37=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 37, 0, input); - - throw nvae; - } - switch (alt37) { - case 1 : - // InternalEntities.g:3126:2: ( RULE_INT ) - { - // InternalEntities.g:3126:2: ( RULE_INT ) - // InternalEntities.g:3127:3: RULE_INT - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); - } - match(input,RULE_INT,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3132:2: ( RULE_DECIMAL ) - { - // InternalEntities.g:3132:2: ( RULE_DECIMAL ) - // InternalEntities.g:3133:3: RULE_DECIMAL - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); - } - match(input,RULE_DECIMAL,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Alternatives_1_0" - - - // $ANTLR start "rule__Number__Alternatives_1_1_1" - // InternalEntities.g:3142:1: rule__Number__Alternatives_1_1_1 : ( ( RULE_INT ) | ( RULE_DECIMAL ) ); - public final void rule__Number__Alternatives_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3146:1: ( ( RULE_INT ) | ( RULE_DECIMAL ) ) - int alt38=2; - int LA38_0 = input.LA(1); - - if ( (LA38_0==RULE_INT) ) { - alt38=1; - } - else if ( (LA38_0==RULE_DECIMAL) ) { - alt38=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 38, 0, input); - - throw nvae; - } - switch (alt38) { - case 1 : - // InternalEntities.g:3147:2: ( RULE_INT ) - { - // InternalEntities.g:3147:2: ( RULE_INT ) - // InternalEntities.g:3148:3: RULE_INT - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); - } - match(input,RULE_INT,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3153:2: ( RULE_DECIMAL ) - { - // InternalEntities.g:3153:2: ( RULE_DECIMAL ) - // InternalEntities.g:3154:3: RULE_DECIMAL - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); - } - match(input,RULE_DECIMAL,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Alternatives_1_1_1" - - - // $ANTLR start "rule__JvmTypeReference__Alternatives" - // InternalEntities.g:3163:1: rule__JvmTypeReference__Alternatives : ( ( ( rule__JvmTypeReference__Group_0__0 ) ) | ( ruleXFunctionTypeRef ) ); - public final void rule__JvmTypeReference__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3167:1: ( ( ( rule__JvmTypeReference__Group_0__0 ) ) | ( ruleXFunctionTypeRef ) ) - int alt39=2; - int LA39_0 = input.LA(1); - - if ( (LA39_0==RULE_ID) ) { - alt39=1; - } - else if ( (LA39_0==31||LA39_0==57) ) { - alt39=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 39, 0, input); - - throw nvae; - } - switch (alt39) { - case 1 : - // InternalEntities.g:3168:2: ( ( rule__JvmTypeReference__Group_0__0 ) ) - { - // InternalEntities.g:3168:2: ( ( rule__JvmTypeReference__Group_0__0 ) ) - // InternalEntities.g:3169:3: ( rule__JvmTypeReference__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getGroup_0()); - } - // InternalEntities.g:3170:3: ( rule__JvmTypeReference__Group_0__0 ) - // InternalEntities.g:3170:4: rule__JvmTypeReference__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getGroup_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3174:2: ( ruleXFunctionTypeRef ) - { - // InternalEntities.g:3174:2: ( ruleXFunctionTypeRef ) - // InternalEntities.g:3175:3: ruleXFunctionTypeRef - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleXFunctionTypeRef(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Alternatives" - - - // $ANTLR start "rule__JvmArgumentTypeReference__Alternatives" - // InternalEntities.g:3184:1: rule__JvmArgumentTypeReference__Alternatives : ( ( ruleJvmTypeReference ) | ( ruleJvmWildcardTypeReference ) ); - public final void rule__JvmArgumentTypeReference__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3188:1: ( ( ruleJvmTypeReference ) | ( ruleJvmWildcardTypeReference ) ) - int alt40=2; - int LA40_0 = input.LA(1); - - if ( (LA40_0==RULE_ID||LA40_0==31||LA40_0==57) ) { - alt40=1; - } - else if ( (LA40_0==83) ) { - alt40=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 40, 0, input); - - throw nvae; - } - switch (alt40) { - case 1 : - // InternalEntities.g:3189:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:3189:2: ( ruleJvmTypeReference ) - // InternalEntities.g:3190:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3195:2: ( ruleJvmWildcardTypeReference ) - { - // InternalEntities.g:3195:2: ( ruleJvmWildcardTypeReference ) - // InternalEntities.g:3196:3: ruleJvmWildcardTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleJvmWildcardTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmArgumentTypeReference__Alternatives" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Alternatives_2" - // InternalEntities.g:3205:1: rule__JvmWildcardTypeReference__Alternatives_2 : ( ( ( rule__JvmWildcardTypeReference__Group_2_0__0 ) ) | ( ( rule__JvmWildcardTypeReference__Group_2_1__0 ) ) ); - public final void rule__JvmWildcardTypeReference__Alternatives_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3209:1: ( ( ( rule__JvmWildcardTypeReference__Group_2_0__0 ) ) | ( ( rule__JvmWildcardTypeReference__Group_2_1__0 ) ) ) - int alt41=2; - int LA41_0 = input.LA(1); - - if ( (LA41_0==45) ) { - alt41=1; - } - else if ( (LA41_0==49) ) { - alt41=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 41, 0, input); - - throw nvae; - } - switch (alt41) { - case 1 : - // InternalEntities.g:3210:2: ( ( rule__JvmWildcardTypeReference__Group_2_0__0 ) ) - { - // InternalEntities.g:3210:2: ( ( rule__JvmWildcardTypeReference__Group_2_0__0 ) ) - // InternalEntities.g:3211:3: ( rule__JvmWildcardTypeReference__Group_2_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_0()); - } - // InternalEntities.g:3212:3: ( rule__JvmWildcardTypeReference__Group_2_0__0 ) - // InternalEntities.g:3212:4: rule__JvmWildcardTypeReference__Group_2_0__0 - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group_2_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3216:2: ( ( rule__JvmWildcardTypeReference__Group_2_1__0 ) ) - { - // InternalEntities.g:3216:2: ( ( rule__JvmWildcardTypeReference__Group_2_1__0 ) ) - // InternalEntities.g:3217:3: ( rule__JvmWildcardTypeReference__Group_2_1__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_1()); - } - // InternalEntities.g:3218:3: ( rule__JvmWildcardTypeReference__Group_2_1__0 ) - // InternalEntities.g:3218:4: rule__JvmWildcardTypeReference__Group_2_1__0 - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group_2_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getGroup_2_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Alternatives_2" - - - // $ANTLR start "rule__XImportDeclaration__Alternatives_1" - // InternalEntities.g:3226:1: rule__XImportDeclaration__Alternatives_1 : ( ( ( rule__XImportDeclaration__Group_1_0__0 ) ) | ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) ) | ( ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) ) ); - public final void rule__XImportDeclaration__Alternatives_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3230:1: ( ( ( rule__XImportDeclaration__Group_1_0__0 ) ) | ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) ) | ( ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) ) ) - int alt42=3; - alt42 = dfa42.predict(input); - switch (alt42) { - case 1 : - // InternalEntities.g:3231:2: ( ( rule__XImportDeclaration__Group_1_0__0 ) ) - { - // InternalEntities.g:3231:2: ( ( rule__XImportDeclaration__Group_1_0__0 ) ) - // InternalEntities.g:3232:3: ( rule__XImportDeclaration__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getGroup_1_0()); - } - // InternalEntities.g:3233:3: ( rule__XImportDeclaration__Group_1_0__0 ) - // InternalEntities.g:3233:4: rule__XImportDeclaration__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getGroup_1_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3237:2: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) ) - { - // InternalEntities.g:3237:2: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) ) - // InternalEntities.g:3238:3: ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_1()); - } - // InternalEntities.g:3239:3: ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) - // InternalEntities.g:3239:4: rule__XImportDeclaration__ImportedTypeAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__ImportedTypeAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_1()); - } - - } - - - } - break; - case 3 : - // InternalEntities.g:3243:2: ( ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) ) - { - // InternalEntities.g:3243:2: ( ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) ) - // InternalEntities.g:3244:3: ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceAssignment_1_2()); - } - // InternalEntities.g:3245:3: ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) - // InternalEntities.g:3245:4: rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__ImportedNamespaceAssignment_1_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceAssignment_1_2()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Alternatives_1" - - - // $ANTLR start "rule__XImportDeclaration__Alternatives_1_0_3" - // InternalEntities.g:3253:1: rule__XImportDeclaration__Alternatives_1_0_3 : ( ( ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) ) | ( ( rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 ) ) ); - public final void rule__XImportDeclaration__Alternatives_1_0_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3257:1: ( ( ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) ) | ( ( rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 ) ) ) - int alt43=2; - int LA43_0 = input.LA(1); - - if ( (LA43_0==36) ) { - alt43=1; - } - else if ( (LA43_0==RULE_ID) ) { - alt43=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 43, 0, input); - - throw nvae; - } - switch (alt43) { - case 1 : - // InternalEntities.g:3258:2: ( ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) ) - { - // InternalEntities.g:3258:2: ( ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) ) - // InternalEntities.g:3259:3: ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getWildcardAssignment_1_0_3_0()); - } - // InternalEntities.g:3260:3: ( rule__XImportDeclaration__WildcardAssignment_1_0_3_0 ) - // InternalEntities.g:3260:4: rule__XImportDeclaration__WildcardAssignment_1_0_3_0 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__WildcardAssignment_1_0_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getWildcardAssignment_1_0_3_0()); - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3264:2: ( ( rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 ) ) - { - // InternalEntities.g:3264:2: ( ( rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 ) ) - // InternalEntities.g:3265:3: ( rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getMemberNameAssignment_1_0_3_1()); - } - // InternalEntities.g:3266:3: ( rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 ) - // InternalEntities.g:3266:4: rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__MemberNameAssignment_1_0_3_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getMemberNameAssignment_1_0_3_1()); - } - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Alternatives_1_0_3" - - - // $ANTLR start "rule__Entities__Group__0" - // InternalEntities.g:3274:1: rule__Entities__Group__0 : rule__Entities__Group__0__Impl rule__Entities__Group__1 ; - public final void rule__Entities__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3278:1: ( rule__Entities__Group__0__Impl rule__Entities__Group__1 ) - // InternalEntities.g:3279:2: rule__Entities__Group__0__Impl rule__Entities__Group__1 - { - pushFollow(FOLLOW_5); - rule__Entities__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entities__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entities__Group__0" - - - // $ANTLR start "rule__Entities__Group__0__Impl" - // InternalEntities.g:3286:1: rule__Entities__Group__0__Impl : ( ( rule__Entities__ImportSectionAssignment_0 )? ) ; - public final void rule__Entities__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3290:1: ( ( ( rule__Entities__ImportSectionAssignment_0 )? ) ) - // InternalEntities.g:3291:1: ( ( rule__Entities__ImportSectionAssignment_0 )? ) - { - // InternalEntities.g:3291:1: ( ( rule__Entities__ImportSectionAssignment_0 )? ) - // InternalEntities.g:3292:2: ( rule__Entities__ImportSectionAssignment_0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntitiesAccess().getImportSectionAssignment_0()); - } - // InternalEntities.g:3293:2: ( rule__Entities__ImportSectionAssignment_0 )? - int alt44=2; - int LA44_0 = input.LA(1); - - if ( (LA44_0==47) ) { - alt44=1; - } - switch (alt44) { - case 1 : - // InternalEntities.g:3293:3: rule__Entities__ImportSectionAssignment_0 - { - pushFollow(FOLLOW_2); - rule__Entities__ImportSectionAssignment_0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntitiesAccess().getImportSectionAssignment_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entities__Group__0__Impl" - - - // $ANTLR start "rule__Entities__Group__1" - // InternalEntities.g:3301:1: rule__Entities__Group__1 : rule__Entities__Group__1__Impl ; - public final void rule__Entities__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3305:1: ( rule__Entities__Group__1__Impl ) - // InternalEntities.g:3306:2: rule__Entities__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__Entities__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entities__Group__1" - - - // $ANTLR start "rule__Entities__Group__1__Impl" - // InternalEntities.g:3312:1: rule__Entities__Group__1__Impl : ( ( rule__Entities__ElementsAssignment_1 )* ) ; - public final void rule__Entities__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3316:1: ( ( ( rule__Entities__ElementsAssignment_1 )* ) ) - // InternalEntities.g:3317:1: ( ( rule__Entities__ElementsAssignment_1 )* ) - { - // InternalEntities.g:3317:1: ( ( rule__Entities__ElementsAssignment_1 )* ) - // InternalEntities.g:3318:2: ( rule__Entities__ElementsAssignment_1 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntitiesAccess().getElementsAssignment_1()); - } - // InternalEntities.g:3319:2: ( rule__Entities__ElementsAssignment_1 )* - loop45: - do { - int alt45=2; - int LA45_0 = input.LA(1); - - if ( (LA45_0==51||LA45_0==54) ) { - alt45=1; - } - - - switch (alt45) { - case 1 : - // InternalEntities.g:3319:3: rule__Entities__ElementsAssignment_1 - { - pushFollow(FOLLOW_6); - rule__Entities__ElementsAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop45; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntitiesAccess().getElementsAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entities__Group__1__Impl" - - - // $ANTLR start "rule__PackageDeclaration__Group__0" - // InternalEntities.g:3328:1: rule__PackageDeclaration__Group__0 : rule__PackageDeclaration__Group__0__Impl rule__PackageDeclaration__Group__1 ; - public final void rule__PackageDeclaration__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3332:1: ( rule__PackageDeclaration__Group__0__Impl rule__PackageDeclaration__Group__1 ) - // InternalEntities.g:3333:2: rule__PackageDeclaration__Group__0__Impl rule__PackageDeclaration__Group__1 - { - pushFollow(FOLLOW_7); - rule__PackageDeclaration__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__PackageDeclaration__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__0" - - - // $ANTLR start "rule__PackageDeclaration__Group__0__Impl" - // InternalEntities.g:3340:1: rule__PackageDeclaration__Group__0__Impl : ( 'package' ) ; - public final void rule__PackageDeclaration__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3344:1: ( ( 'package' ) ) - // InternalEntities.g:3345:1: ( 'package' ) - { - // InternalEntities.g:3345:1: ( 'package' ) - // InternalEntities.g:3346:2: 'package' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0()); - } - match(input,51,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__0__Impl" - - - // $ANTLR start "rule__PackageDeclaration__Group__1" - // InternalEntities.g:3355:1: rule__PackageDeclaration__Group__1 : rule__PackageDeclaration__Group__1__Impl rule__PackageDeclaration__Group__2 ; - public final void rule__PackageDeclaration__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3359:1: ( rule__PackageDeclaration__Group__1__Impl rule__PackageDeclaration__Group__2 ) - // InternalEntities.g:3360:2: rule__PackageDeclaration__Group__1__Impl rule__PackageDeclaration__Group__2 - { - pushFollow(FOLLOW_8); - rule__PackageDeclaration__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__PackageDeclaration__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__1" - - - // $ANTLR start "rule__PackageDeclaration__Group__1__Impl" - // InternalEntities.g:3367:1: rule__PackageDeclaration__Group__1__Impl : ( ( rule__PackageDeclaration__NameAssignment_1 ) ) ; - public final void rule__PackageDeclaration__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3371:1: ( ( ( rule__PackageDeclaration__NameAssignment_1 ) ) ) - // InternalEntities.g:3372:1: ( ( rule__PackageDeclaration__NameAssignment_1 ) ) - { - // InternalEntities.g:3372:1: ( ( rule__PackageDeclaration__NameAssignment_1 ) ) - // InternalEntities.g:3373:2: ( rule__PackageDeclaration__NameAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getNameAssignment_1()); - } - // InternalEntities.g:3374:2: ( rule__PackageDeclaration__NameAssignment_1 ) - // InternalEntities.g:3374:3: rule__PackageDeclaration__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__PackageDeclaration__NameAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getNameAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__1__Impl" - - - // $ANTLR start "rule__PackageDeclaration__Group__2" - // InternalEntities.g:3382:1: rule__PackageDeclaration__Group__2 : rule__PackageDeclaration__Group__2__Impl rule__PackageDeclaration__Group__3 ; - public final void rule__PackageDeclaration__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3386:1: ( rule__PackageDeclaration__Group__2__Impl rule__PackageDeclaration__Group__3 ) - // InternalEntities.g:3387:2: rule__PackageDeclaration__Group__2__Impl rule__PackageDeclaration__Group__3 - { - pushFollow(FOLLOW_9); - rule__PackageDeclaration__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__PackageDeclaration__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__2" - - - // $ANTLR start "rule__PackageDeclaration__Group__2__Impl" - // InternalEntities.g:3394:1: rule__PackageDeclaration__Group__2__Impl : ( '{' ) ; - public final void rule__PackageDeclaration__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3398:1: ( ( '{' ) ) - // InternalEntities.g:3399:1: ( '{' ) - { - // InternalEntities.g:3399:1: ( '{' ) - // InternalEntities.g:3400:2: '{' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2()); - } - match(input,52,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__2__Impl" - - - // $ANTLR start "rule__PackageDeclaration__Group__3" - // InternalEntities.g:3409:1: rule__PackageDeclaration__Group__3 : rule__PackageDeclaration__Group__3__Impl rule__PackageDeclaration__Group__4 ; - public final void rule__PackageDeclaration__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3413:1: ( rule__PackageDeclaration__Group__3__Impl rule__PackageDeclaration__Group__4 ) - // InternalEntities.g:3414:2: rule__PackageDeclaration__Group__3__Impl rule__PackageDeclaration__Group__4 - { - pushFollow(FOLLOW_9); - rule__PackageDeclaration__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__PackageDeclaration__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__3" - - - // $ANTLR start "rule__PackageDeclaration__Group__3__Impl" - // InternalEntities.g:3421:1: rule__PackageDeclaration__Group__3__Impl : ( ( rule__PackageDeclaration__ElementsAssignment_3 )* ) ; - public final void rule__PackageDeclaration__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3425:1: ( ( ( rule__PackageDeclaration__ElementsAssignment_3 )* ) ) - // InternalEntities.g:3426:1: ( ( rule__PackageDeclaration__ElementsAssignment_3 )* ) - { - // InternalEntities.g:3426:1: ( ( rule__PackageDeclaration__ElementsAssignment_3 )* ) - // InternalEntities.g:3427:2: ( rule__PackageDeclaration__ElementsAssignment_3 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getElementsAssignment_3()); - } - // InternalEntities.g:3428:2: ( rule__PackageDeclaration__ElementsAssignment_3 )* - loop46: - do { - int alt46=2; - int LA46_0 = input.LA(1); - - if ( (LA46_0==51||LA46_0==54) ) { - alt46=1; - } - - - switch (alt46) { - case 1 : - // InternalEntities.g:3428:3: rule__PackageDeclaration__ElementsAssignment_3 - { - pushFollow(FOLLOW_6); - rule__PackageDeclaration__ElementsAssignment_3(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop46; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getElementsAssignment_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__3__Impl" - - - // $ANTLR start "rule__PackageDeclaration__Group__4" - // InternalEntities.g:3436:1: rule__PackageDeclaration__Group__4 : rule__PackageDeclaration__Group__4__Impl ; - public final void rule__PackageDeclaration__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3440:1: ( rule__PackageDeclaration__Group__4__Impl ) - // InternalEntities.g:3441:2: rule__PackageDeclaration__Group__4__Impl - { - pushFollow(FOLLOW_2); - rule__PackageDeclaration__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__4" - - - // $ANTLR start "rule__PackageDeclaration__Group__4__Impl" - // InternalEntities.g:3447:1: rule__PackageDeclaration__Group__4__Impl : ( '}' ) ; - public final void rule__PackageDeclaration__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3451:1: ( ( '}' ) ) - // InternalEntities.g:3452:1: ( '}' ) - { - // InternalEntities.g:3452:1: ( '}' ) - // InternalEntities.g:3453:2: '}' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); - } - match(input,53,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__Group__4__Impl" - - - // $ANTLR start "rule__Entity__Group__0" - // InternalEntities.g:3463:1: rule__Entity__Group__0 : rule__Entity__Group__0__Impl rule__Entity__Group__1 ; - public final void rule__Entity__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3467:1: ( rule__Entity__Group__0__Impl rule__Entity__Group__1 ) - // InternalEntities.g:3468:2: rule__Entity__Group__0__Impl rule__Entity__Group__1 - { - pushFollow(FOLLOW_7); - rule__Entity__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entity__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__0" - - - // $ANTLR start "rule__Entity__Group__0__Impl" - // InternalEntities.g:3475:1: rule__Entity__Group__0__Impl : ( 'entity' ) ; - public final void rule__Entity__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3479:1: ( ( 'entity' ) ) - // InternalEntities.g:3480:1: ( 'entity' ) - { - // InternalEntities.g:3480:1: ( 'entity' ) - // InternalEntities.g:3481:2: 'entity' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getEntityKeyword_0()); - } - match(input,54,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getEntityKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__0__Impl" - - - // $ANTLR start "rule__Entity__Group__1" - // InternalEntities.g:3490:1: rule__Entity__Group__1 : rule__Entity__Group__1__Impl rule__Entity__Group__2 ; - public final void rule__Entity__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3494:1: ( rule__Entity__Group__1__Impl rule__Entity__Group__2 ) - // InternalEntities.g:3495:2: rule__Entity__Group__1__Impl rule__Entity__Group__2 - { - pushFollow(FOLLOW_10); - rule__Entity__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entity__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__1" - - - // $ANTLR start "rule__Entity__Group__1__Impl" - // InternalEntities.g:3502:1: rule__Entity__Group__1__Impl : ( ( rule__Entity__NameAssignment_1 ) ) ; - public final void rule__Entity__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3506:1: ( ( ( rule__Entity__NameAssignment_1 ) ) ) - // InternalEntities.g:3507:1: ( ( rule__Entity__NameAssignment_1 ) ) - { - // InternalEntities.g:3507:1: ( ( rule__Entity__NameAssignment_1 ) ) - // InternalEntities.g:3508:2: ( rule__Entity__NameAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getNameAssignment_1()); - } - // InternalEntities.g:3509:2: ( rule__Entity__NameAssignment_1 ) - // InternalEntities.g:3509:3: rule__Entity__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__Entity__NameAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getNameAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__1__Impl" - - - // $ANTLR start "rule__Entity__Group__2" - // InternalEntities.g:3517:1: rule__Entity__Group__2 : rule__Entity__Group__2__Impl rule__Entity__Group__3 ; - public final void rule__Entity__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3521:1: ( rule__Entity__Group__2__Impl rule__Entity__Group__3 ) - // InternalEntities.g:3522:2: rule__Entity__Group__2__Impl rule__Entity__Group__3 - { - pushFollow(FOLLOW_10); - rule__Entity__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entity__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__2" - - - // $ANTLR start "rule__Entity__Group__2__Impl" - // InternalEntities.g:3529:1: rule__Entity__Group__2__Impl : ( ( rule__Entity__Group_2__0 )? ) ; - public final void rule__Entity__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3533:1: ( ( ( rule__Entity__Group_2__0 )? ) ) - // InternalEntities.g:3534:1: ( ( rule__Entity__Group_2__0 )? ) - { - // InternalEntities.g:3534:1: ( ( rule__Entity__Group_2__0 )? ) - // InternalEntities.g:3535:2: ( rule__Entity__Group_2__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getGroup_2()); - } - // InternalEntities.g:3536:2: ( rule__Entity__Group_2__0 )? - int alt47=2; - int LA47_0 = input.LA(1); - - if ( (LA47_0==45) ) { - alt47=1; - } - switch (alt47) { - case 1 : - // InternalEntities.g:3536:3: rule__Entity__Group_2__0 - { - pushFollow(FOLLOW_2); - rule__Entity__Group_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getGroup_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__2__Impl" - - - // $ANTLR start "rule__Entity__Group__3" - // InternalEntities.g:3544:1: rule__Entity__Group__3 : rule__Entity__Group__3__Impl rule__Entity__Group__4 ; - public final void rule__Entity__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3548:1: ( rule__Entity__Group__3__Impl rule__Entity__Group__4 ) - // InternalEntities.g:3549:2: rule__Entity__Group__3__Impl rule__Entity__Group__4 - { - pushFollow(FOLLOW_11); - rule__Entity__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entity__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__3" - - - // $ANTLR start "rule__Entity__Group__3__Impl" - // InternalEntities.g:3556:1: rule__Entity__Group__3__Impl : ( '{' ) ; - public final void rule__Entity__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3560:1: ( ( '{' ) ) - // InternalEntities.g:3561:1: ( '{' ) - { - // InternalEntities.g:3561:1: ( '{' ) - // InternalEntities.g:3562:2: '{' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3()); - } - match(input,52,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__3__Impl" - - - // $ANTLR start "rule__Entity__Group__4" - // InternalEntities.g:3571:1: rule__Entity__Group__4 : rule__Entity__Group__4__Impl rule__Entity__Group__5 ; - public final void rule__Entity__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3575:1: ( rule__Entity__Group__4__Impl rule__Entity__Group__5 ) - // InternalEntities.g:3576:2: rule__Entity__Group__4__Impl rule__Entity__Group__5 - { - pushFollow(FOLLOW_11); - rule__Entity__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entity__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__4" - - - // $ANTLR start "rule__Entity__Group__4__Impl" - // InternalEntities.g:3583:1: rule__Entity__Group__4__Impl : ( ( rule__Entity__FeaturesAssignment_4 )* ) ; - public final void rule__Entity__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3587:1: ( ( ( rule__Entity__FeaturesAssignment_4 )* ) ) - // InternalEntities.g:3588:1: ( ( rule__Entity__FeaturesAssignment_4 )* ) - { - // InternalEntities.g:3588:1: ( ( rule__Entity__FeaturesAssignment_4 )* ) - // InternalEntities.g:3589:2: ( rule__Entity__FeaturesAssignment_4 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getFeaturesAssignment_4()); - } - // InternalEntities.g:3590:2: ( rule__Entity__FeaturesAssignment_4 )* - loop48: - do { - int alt48=2; - int LA48_0 = input.LA(1); - - if ( (LA48_0==RULE_ID||LA48_0==56) ) { - alt48=1; - } - - - switch (alt48) { - case 1 : - // InternalEntities.g:3590:3: rule__Entity__FeaturesAssignment_4 - { - pushFollow(FOLLOW_12); - rule__Entity__FeaturesAssignment_4(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop48; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getFeaturesAssignment_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__4__Impl" - - - // $ANTLR start "rule__Entity__Group__5" - // InternalEntities.g:3598:1: rule__Entity__Group__5 : rule__Entity__Group__5__Impl ; - public final void rule__Entity__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3602:1: ( rule__Entity__Group__5__Impl ) - // InternalEntities.g:3603:2: rule__Entity__Group__5__Impl - { - pushFollow(FOLLOW_2); - rule__Entity__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__5" - - - // $ANTLR start "rule__Entity__Group__5__Impl" - // InternalEntities.g:3609:1: rule__Entity__Group__5__Impl : ( '}' ) ; - public final void rule__Entity__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3613:1: ( ( '}' ) ) - // InternalEntities.g:3614:1: ( '}' ) - { - // InternalEntities.g:3614:1: ( '}' ) - // InternalEntities.g:3615:2: '}' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5()); - } - match(input,53,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group__5__Impl" - - - // $ANTLR start "rule__Entity__Group_2__0" - // InternalEntities.g:3625:1: rule__Entity__Group_2__0 : rule__Entity__Group_2__0__Impl rule__Entity__Group_2__1 ; - public final void rule__Entity__Group_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3629:1: ( rule__Entity__Group_2__0__Impl rule__Entity__Group_2__1 ) - // InternalEntities.g:3630:2: rule__Entity__Group_2__0__Impl rule__Entity__Group_2__1 - { - pushFollow(FOLLOW_7); - rule__Entity__Group_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Entity__Group_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group_2__0" - - - // $ANTLR start "rule__Entity__Group_2__0__Impl" - // InternalEntities.g:3637:1: rule__Entity__Group_2__0__Impl : ( 'extends' ) ; - public final void rule__Entity__Group_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3641:1: ( ( 'extends' ) ) - // InternalEntities.g:3642:1: ( 'extends' ) - { - // InternalEntities.g:3642:1: ( 'extends' ) - // InternalEntities.g:3643:2: 'extends' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getExtendsKeyword_2_0()); - } - match(input,45,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getExtendsKeyword_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group_2__0__Impl" - - - // $ANTLR start "rule__Entity__Group_2__1" - // InternalEntities.g:3652:1: rule__Entity__Group_2__1 : rule__Entity__Group_2__1__Impl ; - public final void rule__Entity__Group_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3656:1: ( rule__Entity__Group_2__1__Impl ) - // InternalEntities.g:3657:2: rule__Entity__Group_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__Entity__Group_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group_2__1" - - - // $ANTLR start "rule__Entity__Group_2__1__Impl" - // InternalEntities.g:3663:1: rule__Entity__Group_2__1__Impl : ( ( rule__Entity__SuperTypeAssignment_2_1 ) ) ; - public final void rule__Entity__Group_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3667:1: ( ( ( rule__Entity__SuperTypeAssignment_2_1 ) ) ) - // InternalEntities.g:3668:1: ( ( rule__Entity__SuperTypeAssignment_2_1 ) ) - { - // InternalEntities.g:3668:1: ( ( rule__Entity__SuperTypeAssignment_2_1 ) ) - // InternalEntities.g:3669:2: ( rule__Entity__SuperTypeAssignment_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getSuperTypeAssignment_2_1()); - } - // InternalEntities.g:3670:2: ( rule__Entity__SuperTypeAssignment_2_1 ) - // InternalEntities.g:3670:3: rule__Entity__SuperTypeAssignment_2_1 - { - pushFollow(FOLLOW_2); - rule__Entity__SuperTypeAssignment_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getSuperTypeAssignment_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__Group_2__1__Impl" - - - // $ANTLR start "rule__Property__Group__0" - // InternalEntities.g:3679:1: rule__Property__Group__0 : rule__Property__Group__0__Impl rule__Property__Group__1 ; - public final void rule__Property__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3683:1: ( rule__Property__Group__0__Impl rule__Property__Group__1 ) - // InternalEntities.g:3684:2: rule__Property__Group__0__Impl rule__Property__Group__1 - { - pushFollow(FOLLOW_13); - rule__Property__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Property__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__Group__0" - - - // $ANTLR start "rule__Property__Group__0__Impl" - // InternalEntities.g:3691:1: rule__Property__Group__0__Impl : ( ( rule__Property__NameAssignment_0 ) ) ; - public final void rule__Property__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3695:1: ( ( ( rule__Property__NameAssignment_0 ) ) ) - // InternalEntities.g:3696:1: ( ( rule__Property__NameAssignment_0 ) ) - { - // InternalEntities.g:3696:1: ( ( rule__Property__NameAssignment_0 ) ) - // InternalEntities.g:3697:2: ( rule__Property__NameAssignment_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyAccess().getNameAssignment_0()); - } - // InternalEntities.g:3698:2: ( rule__Property__NameAssignment_0 ) - // InternalEntities.g:3698:3: rule__Property__NameAssignment_0 - { - pushFollow(FOLLOW_2); - rule__Property__NameAssignment_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyAccess().getNameAssignment_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__Group__0__Impl" - - - // $ANTLR start "rule__Property__Group__1" - // InternalEntities.g:3706:1: rule__Property__Group__1 : rule__Property__Group__1__Impl rule__Property__Group__2 ; - public final void rule__Property__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3710:1: ( rule__Property__Group__1__Impl rule__Property__Group__2 ) - // InternalEntities.g:3711:2: rule__Property__Group__1__Impl rule__Property__Group__2 - { - pushFollow(FOLLOW_14); - rule__Property__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Property__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__Group__1" - - - // $ANTLR start "rule__Property__Group__1__Impl" - // InternalEntities.g:3718:1: rule__Property__Group__1__Impl : ( ':' ) ; - public final void rule__Property__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3722:1: ( ( ':' ) ) - // InternalEntities.g:3723:1: ( ':' ) - { - // InternalEntities.g:3723:1: ( ':' ) - // InternalEntities.g:3724:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyAccess().getColonKeyword_1()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyAccess().getColonKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__Group__1__Impl" - - - // $ANTLR start "rule__Property__Group__2" - // InternalEntities.g:3733:1: rule__Property__Group__2 : rule__Property__Group__2__Impl ; - public final void rule__Property__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3737:1: ( rule__Property__Group__2__Impl ) - // InternalEntities.g:3738:2: rule__Property__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__Property__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__Group__2" - - - // $ANTLR start "rule__Property__Group__2__Impl" - // InternalEntities.g:3744:1: rule__Property__Group__2__Impl : ( ( rule__Property__TypeAssignment_2 ) ) ; - public final void rule__Property__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3748:1: ( ( ( rule__Property__TypeAssignment_2 ) ) ) - // InternalEntities.g:3749:1: ( ( rule__Property__TypeAssignment_2 ) ) - { - // InternalEntities.g:3749:1: ( ( rule__Property__TypeAssignment_2 ) ) - // InternalEntities.g:3750:2: ( rule__Property__TypeAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyAccess().getTypeAssignment_2()); - } - // InternalEntities.g:3751:2: ( rule__Property__TypeAssignment_2 ) - // InternalEntities.g:3751:3: rule__Property__TypeAssignment_2 - { - pushFollow(FOLLOW_2); - rule__Property__TypeAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyAccess().getTypeAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__Group__2__Impl" - - - // $ANTLR start "rule__Operation__Group__0" - // InternalEntities.g:3760:1: rule__Operation__Group__0 : rule__Operation__Group__0__Impl rule__Operation__Group__1 ; - public final void rule__Operation__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3764:1: ( rule__Operation__Group__0__Impl rule__Operation__Group__1 ) - // InternalEntities.g:3765:2: rule__Operation__Group__0__Impl rule__Operation__Group__1 - { - pushFollow(FOLLOW_7); - rule__Operation__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__0" - - - // $ANTLR start "rule__Operation__Group__0__Impl" - // InternalEntities.g:3772:1: rule__Operation__Group__0__Impl : ( 'op' ) ; - public final void rule__Operation__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3776:1: ( ( 'op' ) ) - // InternalEntities.g:3777:1: ( 'op' ) - { - // InternalEntities.g:3777:1: ( 'op' ) - // InternalEntities.g:3778:2: 'op' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getOpKeyword_0()); - } - match(input,56,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getOpKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__0__Impl" - - - // $ANTLR start "rule__Operation__Group__1" - // InternalEntities.g:3787:1: rule__Operation__Group__1 : rule__Operation__Group__1__Impl rule__Operation__Group__2 ; - public final void rule__Operation__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3791:1: ( rule__Operation__Group__1__Impl rule__Operation__Group__2 ) - // InternalEntities.g:3792:2: rule__Operation__Group__1__Impl rule__Operation__Group__2 - { - pushFollow(FOLLOW_15); - rule__Operation__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__1" - - - // $ANTLR start "rule__Operation__Group__1__Impl" - // InternalEntities.g:3799:1: rule__Operation__Group__1__Impl : ( ( rule__Operation__NameAssignment_1 ) ) ; - public final void rule__Operation__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3803:1: ( ( ( rule__Operation__NameAssignment_1 ) ) ) - // InternalEntities.g:3804:1: ( ( rule__Operation__NameAssignment_1 ) ) - { - // InternalEntities.g:3804:1: ( ( rule__Operation__NameAssignment_1 ) ) - // InternalEntities.g:3805:2: ( rule__Operation__NameAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getNameAssignment_1()); - } - // InternalEntities.g:3806:2: ( rule__Operation__NameAssignment_1 ) - // InternalEntities.g:3806:3: rule__Operation__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__Operation__NameAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getNameAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__1__Impl" - - - // $ANTLR start "rule__Operation__Group__2" - // InternalEntities.g:3814:1: rule__Operation__Group__2 : rule__Operation__Group__2__Impl rule__Operation__Group__3 ; - public final void rule__Operation__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3818:1: ( rule__Operation__Group__2__Impl rule__Operation__Group__3 ) - // InternalEntities.g:3819:2: rule__Operation__Group__2__Impl rule__Operation__Group__3 - { - pushFollow(FOLLOW_16); - rule__Operation__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__2" - - - // $ANTLR start "rule__Operation__Group__2__Impl" - // InternalEntities.g:3826:1: rule__Operation__Group__2__Impl : ( '(' ) ; - public final void rule__Operation__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3830:1: ( ( '(' ) ) - // InternalEntities.g:3831:1: ( '(' ) - { - // InternalEntities.g:3831:1: ( '(' ) - // InternalEntities.g:3832:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__2__Impl" - - - // $ANTLR start "rule__Operation__Group__3" - // InternalEntities.g:3841:1: rule__Operation__Group__3 : rule__Operation__Group__3__Impl rule__Operation__Group__4 ; - public final void rule__Operation__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3845:1: ( rule__Operation__Group__3__Impl rule__Operation__Group__4 ) - // InternalEntities.g:3846:2: rule__Operation__Group__3__Impl rule__Operation__Group__4 - { - pushFollow(FOLLOW_16); - rule__Operation__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__3" - - - // $ANTLR start "rule__Operation__Group__3__Impl" - // InternalEntities.g:3853:1: rule__Operation__Group__3__Impl : ( ( rule__Operation__Group_3__0 )? ) ; - public final void rule__Operation__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3857:1: ( ( ( rule__Operation__Group_3__0 )? ) ) - // InternalEntities.g:3858:1: ( ( rule__Operation__Group_3__0 )? ) - { - // InternalEntities.g:3858:1: ( ( rule__Operation__Group_3__0 )? ) - // InternalEntities.g:3859:2: ( rule__Operation__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getGroup_3()); - } - // InternalEntities.g:3860:2: ( rule__Operation__Group_3__0 )? - int alt49=2; - int LA49_0 = input.LA(1); - - if ( (LA49_0==RULE_ID||LA49_0==31||LA49_0==57) ) { - alt49=1; - } - switch (alt49) { - case 1 : - // InternalEntities.g:3860:3: rule__Operation__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__Operation__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__3__Impl" - - - // $ANTLR start "rule__Operation__Group__4" - // InternalEntities.g:3868:1: rule__Operation__Group__4 : rule__Operation__Group__4__Impl rule__Operation__Group__5 ; - public final void rule__Operation__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3872:1: ( rule__Operation__Group__4__Impl rule__Operation__Group__5 ) - // InternalEntities.g:3873:2: rule__Operation__Group__4__Impl rule__Operation__Group__5 - { - pushFollow(FOLLOW_17); - rule__Operation__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__4" - - - // $ANTLR start "rule__Operation__Group__4__Impl" - // InternalEntities.g:3880:1: rule__Operation__Group__4__Impl : ( ')' ) ; - public final void rule__Operation__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3884:1: ( ( ')' ) ) - // InternalEntities.g:3885:1: ( ')' ) - { - // InternalEntities.g:3885:1: ( ')' ) - // InternalEntities.g:3886:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getRightParenthesisKeyword_4()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getRightParenthesisKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__4__Impl" - - - // $ANTLR start "rule__Operation__Group__5" - // InternalEntities.g:3895:1: rule__Operation__Group__5 : rule__Operation__Group__5__Impl rule__Operation__Group__6 ; - public final void rule__Operation__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3899:1: ( rule__Operation__Group__5__Impl rule__Operation__Group__6 ) - // InternalEntities.g:3900:2: rule__Operation__Group__5__Impl rule__Operation__Group__6 - { - pushFollow(FOLLOW_17); - rule__Operation__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group__6(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__5" - - - // $ANTLR start "rule__Operation__Group__5__Impl" - // InternalEntities.g:3907:1: rule__Operation__Group__5__Impl : ( ( rule__Operation__Group_5__0 )? ) ; - public final void rule__Operation__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3911:1: ( ( ( rule__Operation__Group_5__0 )? ) ) - // InternalEntities.g:3912:1: ( ( rule__Operation__Group_5__0 )? ) - { - // InternalEntities.g:3912:1: ( ( rule__Operation__Group_5__0 )? ) - // InternalEntities.g:3913:2: ( rule__Operation__Group_5__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getGroup_5()); - } - // InternalEntities.g:3914:2: ( rule__Operation__Group_5__0 )? - int alt50=2; - int LA50_0 = input.LA(1); - - if ( (LA50_0==55) ) { - alt50=1; - } - switch (alt50) { - case 1 : - // InternalEntities.g:3914:3: rule__Operation__Group_5__0 - { - pushFollow(FOLLOW_2); - rule__Operation__Group_5__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getGroup_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__5__Impl" - - - // $ANTLR start "rule__Operation__Group__6" - // InternalEntities.g:3922:1: rule__Operation__Group__6 : rule__Operation__Group__6__Impl ; - public final void rule__Operation__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3926:1: ( rule__Operation__Group__6__Impl ) - // InternalEntities.g:3927:2: rule__Operation__Group__6__Impl - { - pushFollow(FOLLOW_2); - rule__Operation__Group__6__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__6" - - - // $ANTLR start "rule__Operation__Group__6__Impl" - // InternalEntities.g:3933:1: rule__Operation__Group__6__Impl : ( ( rule__Operation__BodyAssignment_6 ) ) ; - public final void rule__Operation__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3937:1: ( ( ( rule__Operation__BodyAssignment_6 ) ) ) - // InternalEntities.g:3938:1: ( ( rule__Operation__BodyAssignment_6 ) ) - { - // InternalEntities.g:3938:1: ( ( rule__Operation__BodyAssignment_6 ) ) - // InternalEntities.g:3939:2: ( rule__Operation__BodyAssignment_6 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getBodyAssignment_6()); - } - // InternalEntities.g:3940:2: ( rule__Operation__BodyAssignment_6 ) - // InternalEntities.g:3940:3: rule__Operation__BodyAssignment_6 - { - pushFollow(FOLLOW_2); - rule__Operation__BodyAssignment_6(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getBodyAssignment_6()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group__6__Impl" - - - // $ANTLR start "rule__Operation__Group_3__0" - // InternalEntities.g:3949:1: rule__Operation__Group_3__0 : rule__Operation__Group_3__0__Impl rule__Operation__Group_3__1 ; - public final void rule__Operation__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3953:1: ( rule__Operation__Group_3__0__Impl rule__Operation__Group_3__1 ) - // InternalEntities.g:3954:2: rule__Operation__Group_3__0__Impl rule__Operation__Group_3__1 - { - pushFollow(FOLLOW_18); - rule__Operation__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3__0" - - - // $ANTLR start "rule__Operation__Group_3__0__Impl" - // InternalEntities.g:3961:1: rule__Operation__Group_3__0__Impl : ( ( rule__Operation__ParamsAssignment_3_0 ) ) ; - public final void rule__Operation__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3965:1: ( ( ( rule__Operation__ParamsAssignment_3_0 ) ) ) - // InternalEntities.g:3966:1: ( ( rule__Operation__ParamsAssignment_3_0 ) ) - { - // InternalEntities.g:3966:1: ( ( rule__Operation__ParamsAssignment_3_0 ) ) - // InternalEntities.g:3967:2: ( rule__Operation__ParamsAssignment_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getParamsAssignment_3_0()); - } - // InternalEntities.g:3968:2: ( rule__Operation__ParamsAssignment_3_0 ) - // InternalEntities.g:3968:3: rule__Operation__ParamsAssignment_3_0 - { - pushFollow(FOLLOW_2); - rule__Operation__ParamsAssignment_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getParamsAssignment_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3__0__Impl" - - - // $ANTLR start "rule__Operation__Group_3__1" - // InternalEntities.g:3976:1: rule__Operation__Group_3__1 : rule__Operation__Group_3__1__Impl ; - public final void rule__Operation__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3980:1: ( rule__Operation__Group_3__1__Impl ) - // InternalEntities.g:3981:2: rule__Operation__Group_3__1__Impl - { - pushFollow(FOLLOW_2); - rule__Operation__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3__1" - - - // $ANTLR start "rule__Operation__Group_3__1__Impl" - // InternalEntities.g:3987:1: rule__Operation__Group_3__1__Impl : ( ( rule__Operation__Group_3_1__0 )* ) ; - public final void rule__Operation__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:3991:1: ( ( ( rule__Operation__Group_3_1__0 )* ) ) - // InternalEntities.g:3992:1: ( ( rule__Operation__Group_3_1__0 )* ) - { - // InternalEntities.g:3992:1: ( ( rule__Operation__Group_3_1__0 )* ) - // InternalEntities.g:3993:2: ( rule__Operation__Group_3_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getGroup_3_1()); - } - // InternalEntities.g:3994:2: ( rule__Operation__Group_3_1__0 )* - loop51: - do { - int alt51=2; - int LA51_0 = input.LA(1); - - if ( (LA51_0==59) ) { - alt51=1; - } - - - switch (alt51) { - case 1 : - // InternalEntities.g:3994:3: rule__Operation__Group_3_1__0 - { - pushFollow(FOLLOW_19); - rule__Operation__Group_3_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop51; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getGroup_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3__1__Impl" - - - // $ANTLR start "rule__Operation__Group_3_1__0" - // InternalEntities.g:4003:1: rule__Operation__Group_3_1__0 : rule__Operation__Group_3_1__0__Impl rule__Operation__Group_3_1__1 ; - public final void rule__Operation__Group_3_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4007:1: ( rule__Operation__Group_3_1__0__Impl rule__Operation__Group_3_1__1 ) - // InternalEntities.g:4008:2: rule__Operation__Group_3_1__0__Impl rule__Operation__Group_3_1__1 - { - pushFollow(FOLLOW_14); - rule__Operation__Group_3_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group_3_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3_1__0" - - - // $ANTLR start "rule__Operation__Group_3_1__0__Impl" - // InternalEntities.g:4015:1: rule__Operation__Group_3_1__0__Impl : ( ',' ) ; - public final void rule__Operation__Group_3_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4019:1: ( ( ',' ) ) - // InternalEntities.g:4020:1: ( ',' ) - { - // InternalEntities.g:4020:1: ( ',' ) - // InternalEntities.g:4021:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getCommaKeyword_3_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getCommaKeyword_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3_1__0__Impl" - - - // $ANTLR start "rule__Operation__Group_3_1__1" - // InternalEntities.g:4030:1: rule__Operation__Group_3_1__1 : rule__Operation__Group_3_1__1__Impl ; - public final void rule__Operation__Group_3_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4034:1: ( rule__Operation__Group_3_1__1__Impl ) - // InternalEntities.g:4035:2: rule__Operation__Group_3_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__Operation__Group_3_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3_1__1" - - - // $ANTLR start "rule__Operation__Group_3_1__1__Impl" - // InternalEntities.g:4041:1: rule__Operation__Group_3_1__1__Impl : ( ( rule__Operation__ParamsAssignment_3_1_1 ) ) ; - public final void rule__Operation__Group_3_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4045:1: ( ( ( rule__Operation__ParamsAssignment_3_1_1 ) ) ) - // InternalEntities.g:4046:1: ( ( rule__Operation__ParamsAssignment_3_1_1 ) ) - { - // InternalEntities.g:4046:1: ( ( rule__Operation__ParamsAssignment_3_1_1 ) ) - // InternalEntities.g:4047:2: ( rule__Operation__ParamsAssignment_3_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getParamsAssignment_3_1_1()); - } - // InternalEntities.g:4048:2: ( rule__Operation__ParamsAssignment_3_1_1 ) - // InternalEntities.g:4048:3: rule__Operation__ParamsAssignment_3_1_1 - { - pushFollow(FOLLOW_2); - rule__Operation__ParamsAssignment_3_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getParamsAssignment_3_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_3_1__1__Impl" - - - // $ANTLR start "rule__Operation__Group_5__0" - // InternalEntities.g:4057:1: rule__Operation__Group_5__0 : rule__Operation__Group_5__0__Impl rule__Operation__Group_5__1 ; - public final void rule__Operation__Group_5__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4061:1: ( rule__Operation__Group_5__0__Impl rule__Operation__Group_5__1 ) - // InternalEntities.g:4062:2: rule__Operation__Group_5__0__Impl rule__Operation__Group_5__1 - { - pushFollow(FOLLOW_14); - rule__Operation__Group_5__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Operation__Group_5__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_5__0" - - - // $ANTLR start "rule__Operation__Group_5__0__Impl" - // InternalEntities.g:4069:1: rule__Operation__Group_5__0__Impl : ( ':' ) ; - public final void rule__Operation__Group_5__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4073:1: ( ( ':' ) ) - // InternalEntities.g:4074:1: ( ':' ) - { - // InternalEntities.g:4074:1: ( ':' ) - // InternalEntities.g:4075:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getColonKeyword_5_0()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getColonKeyword_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_5__0__Impl" - - - // $ANTLR start "rule__Operation__Group_5__1" - // InternalEntities.g:4084:1: rule__Operation__Group_5__1 : rule__Operation__Group_5__1__Impl ; - public final void rule__Operation__Group_5__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4088:1: ( rule__Operation__Group_5__1__Impl ) - // InternalEntities.g:4089:2: rule__Operation__Group_5__1__Impl - { - pushFollow(FOLLOW_2); - rule__Operation__Group_5__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_5__1" - - - // $ANTLR start "rule__Operation__Group_5__1__Impl" - // InternalEntities.g:4095:1: rule__Operation__Group_5__1__Impl : ( ( rule__Operation__TypeAssignment_5_1 ) ) ; - public final void rule__Operation__Group_5__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4099:1: ( ( ( rule__Operation__TypeAssignment_5_1 ) ) ) - // InternalEntities.g:4100:1: ( ( rule__Operation__TypeAssignment_5_1 ) ) - { - // InternalEntities.g:4100:1: ( ( rule__Operation__TypeAssignment_5_1 ) ) - // InternalEntities.g:4101:2: ( rule__Operation__TypeAssignment_5_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getTypeAssignment_5_1()); - } - // InternalEntities.g:4102:2: ( rule__Operation__TypeAssignment_5_1 ) - // InternalEntities.g:4102:3: rule__Operation__TypeAssignment_5_1 - { - pushFollow(FOLLOW_2); - rule__Operation__TypeAssignment_5_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getTypeAssignment_5_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__Group_5__1__Impl" - - - // $ANTLR start "rule__XAssignment__Group_0__0" - // InternalEntities.g:4111:1: rule__XAssignment__Group_0__0 : rule__XAssignment__Group_0__0__Impl rule__XAssignment__Group_0__1 ; - public final void rule__XAssignment__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4115:1: ( rule__XAssignment__Group_0__0__Impl rule__XAssignment__Group_0__1 ) - // InternalEntities.g:4116:2: rule__XAssignment__Group_0__0__Impl rule__XAssignment__Group_0__1 - { - pushFollow(FOLLOW_20); - rule__XAssignment__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAssignment__Group_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__0" - - - // $ANTLR start "rule__XAssignment__Group_0__0__Impl" - // InternalEntities.g:4123:1: rule__XAssignment__Group_0__0__Impl : ( () ) ; - public final void rule__XAssignment__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4127:1: ( ( () ) ) - // InternalEntities.g:4128:1: ( () ) - { - // InternalEntities.g:4128:1: ( () ) - // InternalEntities.g:4129:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0()); - } - // InternalEntities.g:4130:2: () - // InternalEntities.g:4130:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__0__Impl" - - - // $ANTLR start "rule__XAssignment__Group_0__1" - // InternalEntities.g:4138:1: rule__XAssignment__Group_0__1 : rule__XAssignment__Group_0__1__Impl rule__XAssignment__Group_0__2 ; - public final void rule__XAssignment__Group_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4142:1: ( rule__XAssignment__Group_0__1__Impl rule__XAssignment__Group_0__2 ) - // InternalEntities.g:4143:2: rule__XAssignment__Group_0__1__Impl rule__XAssignment__Group_0__2 - { - pushFollow(FOLLOW_21); - rule__XAssignment__Group_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAssignment__Group_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__1" - - - // $ANTLR start "rule__XAssignment__Group_0__1__Impl" - // InternalEntities.g:4150:1: rule__XAssignment__Group_0__1__Impl : ( ( rule__XAssignment__FeatureAssignment_0_1 ) ) ; - public final void rule__XAssignment__Group_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4154:1: ( ( ( rule__XAssignment__FeatureAssignment_0_1 ) ) ) - // InternalEntities.g:4155:1: ( ( rule__XAssignment__FeatureAssignment_0_1 ) ) - { - // InternalEntities.g:4155:1: ( ( rule__XAssignment__FeatureAssignment_0_1 ) ) - // InternalEntities.g:4156:2: ( rule__XAssignment__FeatureAssignment_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_0_1()); - } - // InternalEntities.g:4157:2: ( rule__XAssignment__FeatureAssignment_0_1 ) - // InternalEntities.g:4157:3: rule__XAssignment__FeatureAssignment_0_1 - { - pushFollow(FOLLOW_2); - rule__XAssignment__FeatureAssignment_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__1__Impl" - - - // $ANTLR start "rule__XAssignment__Group_0__2" - // InternalEntities.g:4165:1: rule__XAssignment__Group_0__2 : rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3 ; - public final void rule__XAssignment__Group_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4169:1: ( rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3 ) - // InternalEntities.g:4170:2: rule__XAssignment__Group_0__2__Impl rule__XAssignment__Group_0__3 - { - pushFollow(FOLLOW_22); - rule__XAssignment__Group_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAssignment__Group_0__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__2" - - - // $ANTLR start "rule__XAssignment__Group_0__2__Impl" - // InternalEntities.g:4177:1: rule__XAssignment__Group_0__2__Impl : ( ruleOpSingleAssign ) ; - public final void rule__XAssignment__Group_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4181:1: ( ( ruleOpSingleAssign ) ) - // InternalEntities.g:4182:1: ( ruleOpSingleAssign ) - { - // InternalEntities.g:4182:1: ( ruleOpSingleAssign ) - // InternalEntities.g:4183:2: ruleOpSingleAssign - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); - } - pushFollow(FOLLOW_2); - ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__2__Impl" - - - // $ANTLR start "rule__XAssignment__Group_0__3" - // InternalEntities.g:4192:1: rule__XAssignment__Group_0__3 : rule__XAssignment__Group_0__3__Impl ; - public final void rule__XAssignment__Group_0__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4196:1: ( rule__XAssignment__Group_0__3__Impl ) - // InternalEntities.g:4197:2: rule__XAssignment__Group_0__3__Impl - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_0__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__3" - - - // $ANTLR start "rule__XAssignment__Group_0__3__Impl" - // InternalEntities.g:4203:1: rule__XAssignment__Group_0__3__Impl : ( ( rule__XAssignment__ValueAssignment_0_3 ) ) ; - public final void rule__XAssignment__Group_0__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4207:1: ( ( ( rule__XAssignment__ValueAssignment_0_3 ) ) ) - // InternalEntities.g:4208:1: ( ( rule__XAssignment__ValueAssignment_0_3 ) ) - { - // InternalEntities.g:4208:1: ( ( rule__XAssignment__ValueAssignment_0_3 ) ) - // InternalEntities.g:4209:2: ( rule__XAssignment__ValueAssignment_0_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getValueAssignment_0_3()); - } - // InternalEntities.g:4210:2: ( rule__XAssignment__ValueAssignment_0_3 ) - // InternalEntities.g:4210:3: rule__XAssignment__ValueAssignment_0_3 - { - pushFollow(FOLLOW_2); - rule__XAssignment__ValueAssignment_0_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getValueAssignment_0_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_0__3__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1__0" - // InternalEntities.g:4219:1: rule__XAssignment__Group_1__0 : rule__XAssignment__Group_1__0__Impl rule__XAssignment__Group_1__1 ; - public final void rule__XAssignment__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4223:1: ( rule__XAssignment__Group_1__0__Impl rule__XAssignment__Group_1__1 ) - // InternalEntities.g:4224:2: rule__XAssignment__Group_1__0__Impl rule__XAssignment__Group_1__1 - { - pushFollow(FOLLOW_23); - rule__XAssignment__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1__0" - - - // $ANTLR start "rule__XAssignment__Group_1__0__Impl" - // InternalEntities.g:4231:1: rule__XAssignment__Group_1__0__Impl : ( ruleXOrExpression ) ; - public final void rule__XAssignment__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4235:1: ( ( ruleXOrExpression ) ) - // InternalEntities.g:4236:1: ( ruleXOrExpression ) - { - // InternalEntities.g:4236:1: ( ruleXOrExpression ) - // InternalEntities.g:4237:2: ruleXOrExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleXOrExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1__0__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1__1" - // InternalEntities.g:4246:1: rule__XAssignment__Group_1__1 : rule__XAssignment__Group_1__1__Impl ; - public final void rule__XAssignment__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4250:1: ( rule__XAssignment__Group_1__1__Impl ) - // InternalEntities.g:4251:2: rule__XAssignment__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1__1" - - - // $ANTLR start "rule__XAssignment__Group_1__1__Impl" - // InternalEntities.g:4257:1: rule__XAssignment__Group_1__1__Impl : ( ( rule__XAssignment__Group_1_1__0 )? ) ; - public final void rule__XAssignment__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4261:1: ( ( ( rule__XAssignment__Group_1_1__0 )? ) ) - // InternalEntities.g:4262:1: ( ( rule__XAssignment__Group_1_1__0 )? ) - { - // InternalEntities.g:4262:1: ( ( rule__XAssignment__Group_1_1__0 )? ) - // InternalEntities.g:4263:2: ( rule__XAssignment__Group_1_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getGroup_1_1()); - } - // InternalEntities.g:4264:2: ( rule__XAssignment__Group_1_1__0 )? - int alt52=2; - alt52 = dfa52.predict(input); - switch (alt52) { - case 1 : - // InternalEntities.g:4264:3: rule__XAssignment__Group_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getGroup_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1__1__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1_1__0" - // InternalEntities.g:4273:1: rule__XAssignment__Group_1_1__0 : rule__XAssignment__Group_1_1__0__Impl rule__XAssignment__Group_1_1__1 ; - public final void rule__XAssignment__Group_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4277:1: ( rule__XAssignment__Group_1_1__0__Impl rule__XAssignment__Group_1_1__1 ) - // InternalEntities.g:4278:2: rule__XAssignment__Group_1_1__0__Impl rule__XAssignment__Group_1_1__1 - { - pushFollow(FOLLOW_22); - rule__XAssignment__Group_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1__0" - - - // $ANTLR start "rule__XAssignment__Group_1_1__0__Impl" - // InternalEntities.g:4285:1: rule__XAssignment__Group_1_1__0__Impl : ( ( rule__XAssignment__Group_1_1_0__0 ) ) ; - public final void rule__XAssignment__Group_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4289:1: ( ( ( rule__XAssignment__Group_1_1_0__0 ) ) ) - // InternalEntities.g:4290:1: ( ( rule__XAssignment__Group_1_1_0__0 ) ) - { - // InternalEntities.g:4290:1: ( ( rule__XAssignment__Group_1_1_0__0 ) ) - // InternalEntities.g:4291:2: ( rule__XAssignment__Group_1_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); - } - // InternalEntities.g:4292:2: ( rule__XAssignment__Group_1_1_0__0 ) - // InternalEntities.g:4292:3: rule__XAssignment__Group_1_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1__0__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1_1__1" - // InternalEntities.g:4300:1: rule__XAssignment__Group_1_1__1 : rule__XAssignment__Group_1_1__1__Impl ; - public final void rule__XAssignment__Group_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4304:1: ( rule__XAssignment__Group_1_1__1__Impl ) - // InternalEntities.g:4305:2: rule__XAssignment__Group_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1__1" - - - // $ANTLR start "rule__XAssignment__Group_1_1__1__Impl" - // InternalEntities.g:4311:1: rule__XAssignment__Group_1_1__1__Impl : ( ( rule__XAssignment__RightOperandAssignment_1_1_1 ) ) ; - public final void rule__XAssignment__Group_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4315:1: ( ( ( rule__XAssignment__RightOperandAssignment_1_1_1 ) ) ) - // InternalEntities.g:4316:1: ( ( rule__XAssignment__RightOperandAssignment_1_1_1 ) ) - { - // InternalEntities.g:4316:1: ( ( rule__XAssignment__RightOperandAssignment_1_1_1 ) ) - // InternalEntities.g:4317:2: ( rule__XAssignment__RightOperandAssignment_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getRightOperandAssignment_1_1_1()); - } - // InternalEntities.g:4318:2: ( rule__XAssignment__RightOperandAssignment_1_1_1 ) - // InternalEntities.g:4318:3: rule__XAssignment__RightOperandAssignment_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XAssignment__RightOperandAssignment_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getRightOperandAssignment_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1__1__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1_1_0__0" - // InternalEntities.g:4327:1: rule__XAssignment__Group_1_1_0__0 : rule__XAssignment__Group_1_1_0__0__Impl ; - public final void rule__XAssignment__Group_1_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4331:1: ( rule__XAssignment__Group_1_1_0__0__Impl ) - // InternalEntities.g:4332:2: rule__XAssignment__Group_1_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1_0__0" - - - // $ANTLR start "rule__XAssignment__Group_1_1_0__0__Impl" - // InternalEntities.g:4338:1: rule__XAssignment__Group_1_1_0__0__Impl : ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) ; - public final void rule__XAssignment__Group_1_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4342:1: ( ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) ) - // InternalEntities.g:4343:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) - { - // InternalEntities.g:4343:1: ( ( rule__XAssignment__Group_1_1_0_0__0 ) ) - // InternalEntities.g:4344:2: ( rule__XAssignment__Group_1_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); - } - // InternalEntities.g:4345:2: ( rule__XAssignment__Group_1_1_0_0__0 ) - // InternalEntities.g:4345:3: rule__XAssignment__Group_1_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getGroup_1_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1_0__0__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1_1_0_0__0" - // InternalEntities.g:4354:1: rule__XAssignment__Group_1_1_0_0__0 : rule__XAssignment__Group_1_1_0_0__0__Impl rule__XAssignment__Group_1_1_0_0__1 ; - public final void rule__XAssignment__Group_1_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4358:1: ( rule__XAssignment__Group_1_1_0_0__0__Impl rule__XAssignment__Group_1_1_0_0__1 ) - // InternalEntities.g:4359:2: rule__XAssignment__Group_1_1_0_0__0__Impl rule__XAssignment__Group_1_1_0_0__1 - { - pushFollow(FOLLOW_23); - rule__XAssignment__Group_1_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1_0_0__0" - - - // $ANTLR start "rule__XAssignment__Group_1_1_0_0__0__Impl" - // InternalEntities.g:4366:1: rule__XAssignment__Group_1_1_0_0__0__Impl : ( () ) ; - public final void rule__XAssignment__Group_1_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4370:1: ( ( () ) ) - // InternalEntities.g:4371:1: ( () ) - { - // InternalEntities.g:4371:1: ( () ) - // InternalEntities.g:4372:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); - } - // InternalEntities.g:4373:2: () - // InternalEntities.g:4373:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1_0_0__0__Impl" - - - // $ANTLR start "rule__XAssignment__Group_1_1_0_0__1" - // InternalEntities.g:4381:1: rule__XAssignment__Group_1_1_0_0__1 : rule__XAssignment__Group_1_1_0_0__1__Impl ; - public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4385:1: ( rule__XAssignment__Group_1_1_0_0__1__Impl ) - // InternalEntities.g:4386:2: rule__XAssignment__Group_1_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1_0_0__1" - - - // $ANTLR start "rule__XAssignment__Group_1_1_0_0__1__Impl" - // InternalEntities.g:4392:1: rule__XAssignment__Group_1_1_0_0__1__Impl : ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) ; - public final void rule__XAssignment__Group_1_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4396:1: ( ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) ) - // InternalEntities.g:4397:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) - { - // InternalEntities.g:4397:1: ( ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) ) - // InternalEntities.g:4398:2: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); - } - // InternalEntities.g:4399:2: ( rule__XAssignment__FeatureAssignment_1_1_0_0_1 ) - // InternalEntities.g:4399:3: rule__XAssignment__FeatureAssignment_1_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XAssignment__FeatureAssignment_1_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getFeatureAssignment_1_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__Group_1_1_0_0__1__Impl" - - - // $ANTLR start "rule__OpMultiAssign__Group_5__0" - // InternalEntities.g:4408:1: rule__OpMultiAssign__Group_5__0 : rule__OpMultiAssign__Group_5__0__Impl rule__OpMultiAssign__Group_5__1 ; - public final void rule__OpMultiAssign__Group_5__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4412:1: ( rule__OpMultiAssign__Group_5__0__Impl rule__OpMultiAssign__Group_5__1 ) - // InternalEntities.g:4413:2: rule__OpMultiAssign__Group_5__0__Impl rule__OpMultiAssign__Group_5__1 - { - pushFollow(FOLLOW_24); - rule__OpMultiAssign__Group_5__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_5__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_5__0" - - - // $ANTLR start "rule__OpMultiAssign__Group_5__0__Impl" - // InternalEntities.g:4420:1: rule__OpMultiAssign__Group_5__0__Impl : ( '<' ) ; - public final void rule__OpMultiAssign__Group_5__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4424:1: ( ( '<' ) ) - // InternalEntities.g:4425:1: ( '<' ) - { - // InternalEntities.g:4425:1: ( '<' ) - // InternalEntities.g:4426:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_5__0__Impl" - - - // $ANTLR start "rule__OpMultiAssign__Group_5__1" - // InternalEntities.g:4435:1: rule__OpMultiAssign__Group_5__1 : rule__OpMultiAssign__Group_5__1__Impl rule__OpMultiAssign__Group_5__2 ; - public final void rule__OpMultiAssign__Group_5__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4439:1: ( rule__OpMultiAssign__Group_5__1__Impl rule__OpMultiAssign__Group_5__2 ) - // InternalEntities.g:4440:2: rule__OpMultiAssign__Group_5__1__Impl rule__OpMultiAssign__Group_5__2 - { - pushFollow(FOLLOW_21); - rule__OpMultiAssign__Group_5__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_5__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_5__1" - - - // $ANTLR start "rule__OpMultiAssign__Group_5__1__Impl" - // InternalEntities.g:4447:1: rule__OpMultiAssign__Group_5__1__Impl : ( '<' ) ; - public final void rule__OpMultiAssign__Group_5__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4451:1: ( ( '<' ) ) - // InternalEntities.g:4452:1: ( '<' ) - { - // InternalEntities.g:4452:1: ( '<' ) - // InternalEntities.g:4453:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_5__1__Impl" - - - // $ANTLR start "rule__OpMultiAssign__Group_5__2" - // InternalEntities.g:4462:1: rule__OpMultiAssign__Group_5__2 : rule__OpMultiAssign__Group_5__2__Impl ; - public final void rule__OpMultiAssign__Group_5__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4466:1: ( rule__OpMultiAssign__Group_5__2__Impl ) - // InternalEntities.g:4467:2: rule__OpMultiAssign__Group_5__2__Impl - { - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_5__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_5__2" - - - // $ANTLR start "rule__OpMultiAssign__Group_5__2__Impl" - // InternalEntities.g:4473:1: rule__OpMultiAssign__Group_5__2__Impl : ( '=' ) ; - public final void rule__OpMultiAssign__Group_5__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4477:1: ( ( '=' ) ) - // InternalEntities.g:4478:1: ( '=' ) - { - // InternalEntities.g:4478:1: ( '=' ) - // InternalEntities.g:4479:2: '=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); - } - match(input,13,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_5__2__Impl" - - - // $ANTLR start "rule__OpMultiAssign__Group_6__0" - // InternalEntities.g:4489:1: rule__OpMultiAssign__Group_6__0 : rule__OpMultiAssign__Group_6__0__Impl rule__OpMultiAssign__Group_6__1 ; - public final void rule__OpMultiAssign__Group_6__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4493:1: ( rule__OpMultiAssign__Group_6__0__Impl rule__OpMultiAssign__Group_6__1 ) - // InternalEntities.g:4494:2: rule__OpMultiAssign__Group_6__0__Impl rule__OpMultiAssign__Group_6__1 - { - pushFollow(FOLLOW_25); - rule__OpMultiAssign__Group_6__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_6__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_6__0" - - - // $ANTLR start "rule__OpMultiAssign__Group_6__0__Impl" - // InternalEntities.g:4501:1: rule__OpMultiAssign__Group_6__0__Impl : ( '>' ) ; - public final void rule__OpMultiAssign__Group_6__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4505:1: ( ( '>' ) ) - // InternalEntities.g:4506:1: ( '>' ) - { - // InternalEntities.g:4506:1: ( '>' ) - // InternalEntities.g:4507:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_6__0__Impl" - - - // $ANTLR start "rule__OpMultiAssign__Group_6__1" - // InternalEntities.g:4516:1: rule__OpMultiAssign__Group_6__1 : rule__OpMultiAssign__Group_6__1__Impl rule__OpMultiAssign__Group_6__2 ; - public final void rule__OpMultiAssign__Group_6__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4520:1: ( rule__OpMultiAssign__Group_6__1__Impl rule__OpMultiAssign__Group_6__2 ) - // InternalEntities.g:4521:2: rule__OpMultiAssign__Group_6__1__Impl rule__OpMultiAssign__Group_6__2 - { - pushFollow(FOLLOW_25); - rule__OpMultiAssign__Group_6__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_6__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_6__1" - - - // $ANTLR start "rule__OpMultiAssign__Group_6__1__Impl" - // InternalEntities.g:4528:1: rule__OpMultiAssign__Group_6__1__Impl : ( ( '>' )? ) ; - public final void rule__OpMultiAssign__Group_6__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4532:1: ( ( ( '>' )? ) ) - // InternalEntities.g:4533:1: ( ( '>' )? ) - { - // InternalEntities.g:4533:1: ( ( '>' )? ) - // InternalEntities.g:4534:2: ( '>' )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); - } - // InternalEntities.g:4535:2: ( '>' )? - int alt53=2; - int LA53_0 = input.LA(1); - - if ( (LA53_0==26) ) { - alt53=1; - } - switch (alt53) { - case 1 : - // InternalEntities.g:4535:3: '>' - { - match(input,26,FOLLOW_2); if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_6__1__Impl" - - - // $ANTLR start "rule__OpMultiAssign__Group_6__2" - // InternalEntities.g:4543:1: rule__OpMultiAssign__Group_6__2 : rule__OpMultiAssign__Group_6__2__Impl ; - public final void rule__OpMultiAssign__Group_6__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4547:1: ( rule__OpMultiAssign__Group_6__2__Impl ) - // InternalEntities.g:4548:2: rule__OpMultiAssign__Group_6__2__Impl - { - pushFollow(FOLLOW_2); - rule__OpMultiAssign__Group_6__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_6__2" - - - // $ANTLR start "rule__OpMultiAssign__Group_6__2__Impl" - // InternalEntities.g:4554:1: rule__OpMultiAssign__Group_6__2__Impl : ( '>=' ) ; - public final void rule__OpMultiAssign__Group_6__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4558:1: ( ( '>=' ) ) - // InternalEntities.g:4559:1: ( '>=' ) - { - // InternalEntities.g:4559:1: ( '>=' ) - // InternalEntities.g:4560:2: '>=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); - } - match(input,25,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpMultiAssign__Group_6__2__Impl" - - - // $ANTLR start "rule__XOrExpression__Group__0" - // InternalEntities.g:4570:1: rule__XOrExpression__Group__0 : rule__XOrExpression__Group__0__Impl rule__XOrExpression__Group__1 ; - public final void rule__XOrExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4574:1: ( rule__XOrExpression__Group__0__Impl rule__XOrExpression__Group__1 ) - // InternalEntities.g:4575:2: rule__XOrExpression__Group__0__Impl rule__XOrExpression__Group__1 - { - pushFollow(FOLLOW_26); - rule__XOrExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XOrExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group__0" - - - // $ANTLR start "rule__XOrExpression__Group__0__Impl" - // InternalEntities.g:4582:1: rule__XOrExpression__Group__0__Impl : ( ruleXAndExpression ) ; - public final void rule__XOrExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4586:1: ( ( ruleXAndExpression ) ) - // InternalEntities.g:4587:1: ( ruleXAndExpression ) - { - // InternalEntities.g:4587:1: ( ruleXAndExpression ) - // InternalEntities.g:4588:2: ruleXAndExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXAndExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group__0__Impl" - - - // $ANTLR start "rule__XOrExpression__Group__1" - // InternalEntities.g:4597:1: rule__XOrExpression__Group__1 : rule__XOrExpression__Group__1__Impl ; - public final void rule__XOrExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4601:1: ( rule__XOrExpression__Group__1__Impl ) - // InternalEntities.g:4602:2: rule__XOrExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group__1" - - - // $ANTLR start "rule__XOrExpression__Group__1__Impl" - // InternalEntities.g:4608:1: rule__XOrExpression__Group__1__Impl : ( ( rule__XOrExpression__Group_1__0 )* ) ; - public final void rule__XOrExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4612:1: ( ( ( rule__XOrExpression__Group_1__0 )* ) ) - // InternalEntities.g:4613:1: ( ( rule__XOrExpression__Group_1__0 )* ) - { - // InternalEntities.g:4613:1: ( ( rule__XOrExpression__Group_1__0 )* ) - // InternalEntities.g:4614:2: ( rule__XOrExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getGroup_1()); - } - // InternalEntities.g:4615:2: ( rule__XOrExpression__Group_1__0 )* - loop54: - do { - int alt54=2; - int LA54_0 = input.LA(1); - - if ( (LA54_0==14) ) { - int LA54_2 = input.LA(2); - - if ( (synpred97_InternalEntities()) ) { - alt54=1; - } - - - } - - - switch (alt54) { - case 1 : - // InternalEntities.g:4615:3: rule__XOrExpression__Group_1__0 - { - pushFollow(FOLLOW_27); - rule__XOrExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop54; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group__1__Impl" - - - // $ANTLR start "rule__XOrExpression__Group_1__0" - // InternalEntities.g:4624:1: rule__XOrExpression__Group_1__0 : rule__XOrExpression__Group_1__0__Impl rule__XOrExpression__Group_1__1 ; - public final void rule__XOrExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4628:1: ( rule__XOrExpression__Group_1__0__Impl rule__XOrExpression__Group_1__1 ) - // InternalEntities.g:4629:2: rule__XOrExpression__Group_1__0__Impl rule__XOrExpression__Group_1__1 - { - pushFollow(FOLLOW_22); - rule__XOrExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1__0" - - - // $ANTLR start "rule__XOrExpression__Group_1__0__Impl" - // InternalEntities.g:4636:1: rule__XOrExpression__Group_1__0__Impl : ( ( rule__XOrExpression__Group_1_0__0 ) ) ; - public final void rule__XOrExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4640:1: ( ( ( rule__XOrExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:4641:1: ( ( rule__XOrExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:4641:1: ( ( rule__XOrExpression__Group_1_0__0 ) ) - // InternalEntities.g:4642:2: ( rule__XOrExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:4643:2: ( rule__XOrExpression__Group_1_0__0 ) - // InternalEntities.g:4643:3: rule__XOrExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XOrExpression__Group_1__1" - // InternalEntities.g:4651:1: rule__XOrExpression__Group_1__1 : rule__XOrExpression__Group_1__1__Impl ; - public final void rule__XOrExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4655:1: ( rule__XOrExpression__Group_1__1__Impl ) - // InternalEntities.g:4656:2: rule__XOrExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1__1" - - - // $ANTLR start "rule__XOrExpression__Group_1__1__Impl" - // InternalEntities.g:4662:1: rule__XOrExpression__Group_1__1__Impl : ( ( rule__XOrExpression__RightOperandAssignment_1_1 ) ) ; - public final void rule__XOrExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4666:1: ( ( ( rule__XOrExpression__RightOperandAssignment_1_1 ) ) ) - // InternalEntities.g:4667:1: ( ( rule__XOrExpression__RightOperandAssignment_1_1 ) ) - { - // InternalEntities.g:4667:1: ( ( rule__XOrExpression__RightOperandAssignment_1_1 ) ) - // InternalEntities.g:4668:2: ( rule__XOrExpression__RightOperandAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getRightOperandAssignment_1_1()); - } - // InternalEntities.g:4669:2: ( rule__XOrExpression__RightOperandAssignment_1_1 ) - // InternalEntities.g:4669:3: rule__XOrExpression__RightOperandAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XOrExpression__RightOperandAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getRightOperandAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XOrExpression__Group_1_0__0" - // InternalEntities.g:4678:1: rule__XOrExpression__Group_1_0__0 : rule__XOrExpression__Group_1_0__0__Impl ; - public final void rule__XOrExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4682:1: ( rule__XOrExpression__Group_1_0__0__Impl ) - // InternalEntities.g:4683:2: rule__XOrExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1_0__0" - - - // $ANTLR start "rule__XOrExpression__Group_1_0__0__Impl" - // InternalEntities.g:4689:1: rule__XOrExpression__Group_1_0__0__Impl : ( ( rule__XOrExpression__Group_1_0_0__0 ) ) ; - public final void rule__XOrExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4693:1: ( ( ( rule__XOrExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:4694:1: ( ( rule__XOrExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:4694:1: ( ( rule__XOrExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:4695:2: ( rule__XOrExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:4696:2: ( rule__XOrExpression__Group_1_0_0__0 ) - // InternalEntities.g:4696:3: rule__XOrExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XOrExpression__Group_1_0_0__0" - // InternalEntities.g:4705:1: rule__XOrExpression__Group_1_0_0__0 : rule__XOrExpression__Group_1_0_0__0__Impl rule__XOrExpression__Group_1_0_0__1 ; - public final void rule__XOrExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4709:1: ( rule__XOrExpression__Group_1_0_0__0__Impl rule__XOrExpression__Group_1_0_0__1 ) - // InternalEntities.g:4710:2: rule__XOrExpression__Group_1_0_0__0__Impl rule__XOrExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_26); - rule__XOrExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XOrExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:4717:1: rule__XOrExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XOrExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4721:1: ( ( () ) ) - // InternalEntities.g:4722:1: ( () ) - { - // InternalEntities.g:4722:1: ( () ) - // InternalEntities.g:4723:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - // InternalEntities.g:4724:2: () - // InternalEntities.g:4724:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XOrExpression__Group_1_0_0__1" - // InternalEntities.g:4732:1: rule__XOrExpression__Group_1_0_0__1 : rule__XOrExpression__Group_1_0_0__1__Impl ; - public final void rule__XOrExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4736:1: ( rule__XOrExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:4737:2: rule__XOrExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XOrExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:4743:1: rule__XOrExpression__Group_1_0_0__1__Impl : ( ( rule__XOrExpression__FeatureAssignment_1_0_0_1 ) ) ; - public final void rule__XOrExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4747:1: ( ( ( rule__XOrExpression__FeatureAssignment_1_0_0_1 ) ) ) - // InternalEntities.g:4748:1: ( ( rule__XOrExpression__FeatureAssignment_1_0_0_1 ) ) - { - // InternalEntities.g:4748:1: ( ( rule__XOrExpression__FeatureAssignment_1_0_0_1 ) ) - // InternalEntities.g:4749:2: ( rule__XOrExpression__FeatureAssignment_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - // InternalEntities.g:4750:2: ( rule__XOrExpression__FeatureAssignment_1_0_0_1 ) - // InternalEntities.g:4750:3: rule__XOrExpression__FeatureAssignment_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XOrExpression__FeatureAssignment_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XAndExpression__Group__0" - // InternalEntities.g:4759:1: rule__XAndExpression__Group__0 : rule__XAndExpression__Group__0__Impl rule__XAndExpression__Group__1 ; - public final void rule__XAndExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4763:1: ( rule__XAndExpression__Group__0__Impl rule__XAndExpression__Group__1 ) - // InternalEntities.g:4764:2: rule__XAndExpression__Group__0__Impl rule__XAndExpression__Group__1 - { - pushFollow(FOLLOW_28); - rule__XAndExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAndExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group__0" - - - // $ANTLR start "rule__XAndExpression__Group__0__Impl" - // InternalEntities.g:4771:1: rule__XAndExpression__Group__0__Impl : ( ruleXEqualityExpression ) ; - public final void rule__XAndExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4775:1: ( ( ruleXEqualityExpression ) ) - // InternalEntities.g:4776:1: ( ruleXEqualityExpression ) - { - // InternalEntities.g:4776:1: ( ruleXEqualityExpression ) - // InternalEntities.g:4777:2: ruleXEqualityExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXEqualityExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group__0__Impl" - - - // $ANTLR start "rule__XAndExpression__Group__1" - // InternalEntities.g:4786:1: rule__XAndExpression__Group__1 : rule__XAndExpression__Group__1__Impl ; - public final void rule__XAndExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4790:1: ( rule__XAndExpression__Group__1__Impl ) - // InternalEntities.g:4791:2: rule__XAndExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group__1" - - - // $ANTLR start "rule__XAndExpression__Group__1__Impl" - // InternalEntities.g:4797:1: rule__XAndExpression__Group__1__Impl : ( ( rule__XAndExpression__Group_1__0 )* ) ; - public final void rule__XAndExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4801:1: ( ( ( rule__XAndExpression__Group_1__0 )* ) ) - // InternalEntities.g:4802:1: ( ( rule__XAndExpression__Group_1__0 )* ) - { - // InternalEntities.g:4802:1: ( ( rule__XAndExpression__Group_1__0 )* ) - // InternalEntities.g:4803:2: ( rule__XAndExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getGroup_1()); - } - // InternalEntities.g:4804:2: ( rule__XAndExpression__Group_1__0 )* - loop55: - do { - int alt55=2; - int LA55_0 = input.LA(1); - - if ( (LA55_0==15) ) { - int LA55_2 = input.LA(2); - - if ( (synpred98_InternalEntities()) ) { - alt55=1; - } - - - } - - - switch (alt55) { - case 1 : - // InternalEntities.g:4804:3: rule__XAndExpression__Group_1__0 - { - pushFollow(FOLLOW_29); - rule__XAndExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop55; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group__1__Impl" - - - // $ANTLR start "rule__XAndExpression__Group_1__0" - // InternalEntities.g:4813:1: rule__XAndExpression__Group_1__0 : rule__XAndExpression__Group_1__0__Impl rule__XAndExpression__Group_1__1 ; - public final void rule__XAndExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4817:1: ( rule__XAndExpression__Group_1__0__Impl rule__XAndExpression__Group_1__1 ) - // InternalEntities.g:4818:2: rule__XAndExpression__Group_1__0__Impl rule__XAndExpression__Group_1__1 - { - pushFollow(FOLLOW_22); - rule__XAndExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1__0" - - - // $ANTLR start "rule__XAndExpression__Group_1__0__Impl" - // InternalEntities.g:4825:1: rule__XAndExpression__Group_1__0__Impl : ( ( rule__XAndExpression__Group_1_0__0 ) ) ; - public final void rule__XAndExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4829:1: ( ( ( rule__XAndExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:4830:1: ( ( rule__XAndExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:4830:1: ( ( rule__XAndExpression__Group_1_0__0 ) ) - // InternalEntities.g:4831:2: ( rule__XAndExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:4832:2: ( rule__XAndExpression__Group_1_0__0 ) - // InternalEntities.g:4832:3: rule__XAndExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XAndExpression__Group_1__1" - // InternalEntities.g:4840:1: rule__XAndExpression__Group_1__1 : rule__XAndExpression__Group_1__1__Impl ; - public final void rule__XAndExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4844:1: ( rule__XAndExpression__Group_1__1__Impl ) - // InternalEntities.g:4845:2: rule__XAndExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1__1" - - - // $ANTLR start "rule__XAndExpression__Group_1__1__Impl" - // InternalEntities.g:4851:1: rule__XAndExpression__Group_1__1__Impl : ( ( rule__XAndExpression__RightOperandAssignment_1_1 ) ) ; - public final void rule__XAndExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4855:1: ( ( ( rule__XAndExpression__RightOperandAssignment_1_1 ) ) ) - // InternalEntities.g:4856:1: ( ( rule__XAndExpression__RightOperandAssignment_1_1 ) ) - { - // InternalEntities.g:4856:1: ( ( rule__XAndExpression__RightOperandAssignment_1_1 ) ) - // InternalEntities.g:4857:2: ( rule__XAndExpression__RightOperandAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getRightOperandAssignment_1_1()); - } - // InternalEntities.g:4858:2: ( rule__XAndExpression__RightOperandAssignment_1_1 ) - // InternalEntities.g:4858:3: rule__XAndExpression__RightOperandAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XAndExpression__RightOperandAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getRightOperandAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XAndExpression__Group_1_0__0" - // InternalEntities.g:4867:1: rule__XAndExpression__Group_1_0__0 : rule__XAndExpression__Group_1_0__0__Impl ; - public final void rule__XAndExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4871:1: ( rule__XAndExpression__Group_1_0__0__Impl ) - // InternalEntities.g:4872:2: rule__XAndExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1_0__0" - - - // $ANTLR start "rule__XAndExpression__Group_1_0__0__Impl" - // InternalEntities.g:4878:1: rule__XAndExpression__Group_1_0__0__Impl : ( ( rule__XAndExpression__Group_1_0_0__0 ) ) ; - public final void rule__XAndExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4882:1: ( ( ( rule__XAndExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:4883:1: ( ( rule__XAndExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:4883:1: ( ( rule__XAndExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:4884:2: ( rule__XAndExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:4885:2: ( rule__XAndExpression__Group_1_0_0__0 ) - // InternalEntities.g:4885:3: rule__XAndExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XAndExpression__Group_1_0_0__0" - // InternalEntities.g:4894:1: rule__XAndExpression__Group_1_0_0__0 : rule__XAndExpression__Group_1_0_0__0__Impl rule__XAndExpression__Group_1_0_0__1 ; - public final void rule__XAndExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4898:1: ( rule__XAndExpression__Group_1_0_0__0__Impl rule__XAndExpression__Group_1_0_0__1 ) - // InternalEntities.g:4899:2: rule__XAndExpression__Group_1_0_0__0__Impl rule__XAndExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_28); - rule__XAndExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XAndExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:4906:1: rule__XAndExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XAndExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4910:1: ( ( () ) ) - // InternalEntities.g:4911:1: ( () ) - { - // InternalEntities.g:4911:1: ( () ) - // InternalEntities.g:4912:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - // InternalEntities.g:4913:2: () - // InternalEntities.g:4913:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XAndExpression__Group_1_0_0__1" - // InternalEntities.g:4921:1: rule__XAndExpression__Group_1_0_0__1 : rule__XAndExpression__Group_1_0_0__1__Impl ; - public final void rule__XAndExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4925:1: ( rule__XAndExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:4926:2: rule__XAndExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XAndExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:4932:1: rule__XAndExpression__Group_1_0_0__1__Impl : ( ( rule__XAndExpression__FeatureAssignment_1_0_0_1 ) ) ; - public final void rule__XAndExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4936:1: ( ( ( rule__XAndExpression__FeatureAssignment_1_0_0_1 ) ) ) - // InternalEntities.g:4937:1: ( ( rule__XAndExpression__FeatureAssignment_1_0_0_1 ) ) - { - // InternalEntities.g:4937:1: ( ( rule__XAndExpression__FeatureAssignment_1_0_0_1 ) ) - // InternalEntities.g:4938:2: ( rule__XAndExpression__FeatureAssignment_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - // InternalEntities.g:4939:2: ( rule__XAndExpression__FeatureAssignment_1_0_0_1 ) - // InternalEntities.g:4939:3: rule__XAndExpression__FeatureAssignment_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XAndExpression__FeatureAssignment_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group__0" - // InternalEntities.g:4948:1: rule__XEqualityExpression__Group__0 : rule__XEqualityExpression__Group__0__Impl rule__XEqualityExpression__Group__1 ; - public final void rule__XEqualityExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4952:1: ( rule__XEqualityExpression__Group__0__Impl rule__XEqualityExpression__Group__1 ) - // InternalEntities.g:4953:2: rule__XEqualityExpression__Group__0__Impl rule__XEqualityExpression__Group__1 - { - pushFollow(FOLLOW_30); - rule__XEqualityExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group__0" - - - // $ANTLR start "rule__XEqualityExpression__Group__0__Impl" - // InternalEntities.g:4960:1: rule__XEqualityExpression__Group__0__Impl : ( ruleXRelationalExpression ) ; - public final void rule__XEqualityExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4964:1: ( ( ruleXRelationalExpression ) ) - // InternalEntities.g:4965:1: ( ruleXRelationalExpression ) - { - // InternalEntities.g:4965:1: ( ruleXRelationalExpression ) - // InternalEntities.g:4966:2: ruleXRelationalExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXRelationalExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group__0__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group__1" - // InternalEntities.g:4975:1: rule__XEqualityExpression__Group__1 : rule__XEqualityExpression__Group__1__Impl ; - public final void rule__XEqualityExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4979:1: ( rule__XEqualityExpression__Group__1__Impl ) - // InternalEntities.g:4980:2: rule__XEqualityExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group__1" - - - // $ANTLR start "rule__XEqualityExpression__Group__1__Impl" - // InternalEntities.g:4986:1: rule__XEqualityExpression__Group__1__Impl : ( ( rule__XEqualityExpression__Group_1__0 )* ) ; - public final void rule__XEqualityExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:4990:1: ( ( ( rule__XEqualityExpression__Group_1__0 )* ) ) - // InternalEntities.g:4991:1: ( ( rule__XEqualityExpression__Group_1__0 )* ) - { - // InternalEntities.g:4991:1: ( ( rule__XEqualityExpression__Group_1__0 )* ) - // InternalEntities.g:4992:2: ( rule__XEqualityExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getGroup_1()); - } - // InternalEntities.g:4993:2: ( rule__XEqualityExpression__Group_1__0 )* - loop56: - do { - int alt56=2; - switch ( input.LA(1) ) { - case 21: - { - int LA56_2 = input.LA(2); - - if ( (synpred99_InternalEntities()) ) { - alt56=1; - } - - - } - break; - case 22: - { - int LA56_3 = input.LA(2); - - if ( (synpred99_InternalEntities()) ) { - alt56=1; - } - - - } - break; - case 23: - { - int LA56_4 = input.LA(2); - - if ( (synpred99_InternalEntities()) ) { - alt56=1; - } - - - } - break; - case 24: - { - int LA56_5 = input.LA(2); - - if ( (synpred99_InternalEntities()) ) { - alt56=1; - } - - - } - break; - - } - - switch (alt56) { - case 1 : - // InternalEntities.g:4993:3: rule__XEqualityExpression__Group_1__0 - { - pushFollow(FOLLOW_31); - rule__XEqualityExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop56; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group__1__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group_1__0" - // InternalEntities.g:5002:1: rule__XEqualityExpression__Group_1__0 : rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1 ; - public final void rule__XEqualityExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5006:1: ( rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1 ) - // InternalEntities.g:5007:2: rule__XEqualityExpression__Group_1__0__Impl rule__XEqualityExpression__Group_1__1 - { - pushFollow(FOLLOW_22); - rule__XEqualityExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1__0" - - - // $ANTLR start "rule__XEqualityExpression__Group_1__0__Impl" - // InternalEntities.g:5014:1: rule__XEqualityExpression__Group_1__0__Impl : ( ( rule__XEqualityExpression__Group_1_0__0 ) ) ; - public final void rule__XEqualityExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5018:1: ( ( ( rule__XEqualityExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:5019:1: ( ( rule__XEqualityExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:5019:1: ( ( rule__XEqualityExpression__Group_1_0__0 ) ) - // InternalEntities.g:5020:2: ( rule__XEqualityExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:5021:2: ( rule__XEqualityExpression__Group_1_0__0 ) - // InternalEntities.g:5021:3: rule__XEqualityExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group_1__1" - // InternalEntities.g:5029:1: rule__XEqualityExpression__Group_1__1 : rule__XEqualityExpression__Group_1__1__Impl ; - public final void rule__XEqualityExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5033:1: ( rule__XEqualityExpression__Group_1__1__Impl ) - // InternalEntities.g:5034:2: rule__XEqualityExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1__1" - - - // $ANTLR start "rule__XEqualityExpression__Group_1__1__Impl" - // InternalEntities.g:5040:1: rule__XEqualityExpression__Group_1__1__Impl : ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) ; - public final void rule__XEqualityExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5044:1: ( ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) ) - // InternalEntities.g:5045:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) - { - // InternalEntities.g:5045:1: ( ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) ) - // InternalEntities.g:5046:2: ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); - } - // InternalEntities.g:5047:2: ( rule__XEqualityExpression__RightOperandAssignment_1_1 ) - // InternalEntities.g:5047:3: rule__XEqualityExpression__RightOperandAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__RightOperandAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getRightOperandAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group_1_0__0" - // InternalEntities.g:5056:1: rule__XEqualityExpression__Group_1_0__0 : rule__XEqualityExpression__Group_1_0__0__Impl ; - public final void rule__XEqualityExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5060:1: ( rule__XEqualityExpression__Group_1_0__0__Impl ) - // InternalEntities.g:5061:2: rule__XEqualityExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1_0__0" - - - // $ANTLR start "rule__XEqualityExpression__Group_1_0__0__Impl" - // InternalEntities.g:5067:1: rule__XEqualityExpression__Group_1_0__0__Impl : ( ( rule__XEqualityExpression__Group_1_0_0__0 ) ) ; - public final void rule__XEqualityExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5071:1: ( ( ( rule__XEqualityExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:5072:1: ( ( rule__XEqualityExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:5072:1: ( ( rule__XEqualityExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:5073:2: ( rule__XEqualityExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:5074:2: ( rule__XEqualityExpression__Group_1_0_0__0 ) - // InternalEntities.g:5074:3: rule__XEqualityExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group_1_0_0__0" - // InternalEntities.g:5083:1: rule__XEqualityExpression__Group_1_0_0__0 : rule__XEqualityExpression__Group_1_0_0__0__Impl rule__XEqualityExpression__Group_1_0_0__1 ; - public final void rule__XEqualityExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5087:1: ( rule__XEqualityExpression__Group_1_0_0__0__Impl rule__XEqualityExpression__Group_1_0_0__1 ) - // InternalEntities.g:5088:2: rule__XEqualityExpression__Group_1_0_0__0__Impl rule__XEqualityExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_30); - rule__XEqualityExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XEqualityExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:5095:1: rule__XEqualityExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XEqualityExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5099:1: ( ( () ) ) - // InternalEntities.g:5100:1: ( () ) - { - // InternalEntities.g:5100:1: ( () ) - // InternalEntities.g:5101:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - // InternalEntities.g:5102:2: () - // InternalEntities.g:5102:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XEqualityExpression__Group_1_0_0__1" - // InternalEntities.g:5110:1: rule__XEqualityExpression__Group_1_0_0__1 : rule__XEqualityExpression__Group_1_0_0__1__Impl ; - public final void rule__XEqualityExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5114:1: ( rule__XEqualityExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:5115:2: rule__XEqualityExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XEqualityExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:5121:1: rule__XEqualityExpression__Group_1_0_0__1__Impl : ( ( rule__XEqualityExpression__FeatureAssignment_1_0_0_1 ) ) ; - public final void rule__XEqualityExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5125:1: ( ( ( rule__XEqualityExpression__FeatureAssignment_1_0_0_1 ) ) ) - // InternalEntities.g:5126:1: ( ( rule__XEqualityExpression__FeatureAssignment_1_0_0_1 ) ) - { - // InternalEntities.g:5126:1: ( ( rule__XEqualityExpression__FeatureAssignment_1_0_0_1 ) ) - // InternalEntities.g:5127:2: ( rule__XEqualityExpression__FeatureAssignment_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - // InternalEntities.g:5128:2: ( rule__XEqualityExpression__FeatureAssignment_1_0_0_1 ) - // InternalEntities.g:5128:3: rule__XEqualityExpression__FeatureAssignment_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__FeatureAssignment_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group__0" - // InternalEntities.g:5137:1: rule__XRelationalExpression__Group__0 : rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1 ; - public final void rule__XRelationalExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5141:1: ( rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1 ) - // InternalEntities.g:5142:2: rule__XRelationalExpression__Group__0__Impl rule__XRelationalExpression__Group__1 - { - pushFollow(FOLLOW_32); - rule__XRelationalExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group__0" - - - // $ANTLR start "rule__XRelationalExpression__Group__0__Impl" - // InternalEntities.g:5149:1: rule__XRelationalExpression__Group__0__Impl : ( ruleXOtherOperatorExpression ) ; - public final void rule__XRelationalExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5153:1: ( ( ruleXOtherOperatorExpression ) ) - // InternalEntities.g:5154:1: ( ruleXOtherOperatorExpression ) - { - // InternalEntities.g:5154:1: ( ruleXOtherOperatorExpression ) - // InternalEntities.g:5155:2: ruleXOtherOperatorExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXOtherOperatorExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group__1" - // InternalEntities.g:5164:1: rule__XRelationalExpression__Group__1 : rule__XRelationalExpression__Group__1__Impl ; - public final void rule__XRelationalExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5168:1: ( rule__XRelationalExpression__Group__1__Impl ) - // InternalEntities.g:5169:2: rule__XRelationalExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group__1" - - - // $ANTLR start "rule__XRelationalExpression__Group__1__Impl" - // InternalEntities.g:5175:1: rule__XRelationalExpression__Group__1__Impl : ( ( rule__XRelationalExpression__Alternatives_1 )* ) ; - public final void rule__XRelationalExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5179:1: ( ( ( rule__XRelationalExpression__Alternatives_1 )* ) ) - // InternalEntities.g:5180:1: ( ( rule__XRelationalExpression__Alternatives_1 )* ) - { - // InternalEntities.g:5180:1: ( ( rule__XRelationalExpression__Alternatives_1 )* ) - // InternalEntities.g:5181:2: ( rule__XRelationalExpression__Alternatives_1 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getAlternatives_1()); - } - // InternalEntities.g:5182:2: ( rule__XRelationalExpression__Alternatives_1 )* - loop57: - do { - int alt57=2; - switch ( input.LA(1) ) { - case 27: - { - int LA57_2 = input.LA(2); - - if ( (synpred100_InternalEntities()) ) { - alt57=1; - } - - - } - break; - case 26: - { - int LA57_3 = input.LA(2); - - if ( (synpred100_InternalEntities()) ) { - alt57=1; - } - - - } - break; - case 60: - { - int LA57_4 = input.LA(2); - - if ( (synpred100_InternalEntities()) ) { - alt57=1; - } - - - } - break; - case 25: - { - int LA57_5 = input.LA(2); - - if ( (synpred100_InternalEntities()) ) { - alt57=1; - } - - - } - break; - - } - - switch (alt57) { - case 1 : - // InternalEntities.g:5182:3: rule__XRelationalExpression__Alternatives_1 - { - pushFollow(FOLLOW_33); - rule__XRelationalExpression__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop57; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getAlternatives_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group__1__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0__0" - // InternalEntities.g:5191:1: rule__XRelationalExpression__Group_1_0__0 : rule__XRelationalExpression__Group_1_0__0__Impl rule__XRelationalExpression__Group_1_0__1 ; - public final void rule__XRelationalExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5195:1: ( rule__XRelationalExpression__Group_1_0__0__Impl rule__XRelationalExpression__Group_1_0__1 ) - // InternalEntities.g:5196:2: rule__XRelationalExpression__Group_1_0__0__Impl rule__XRelationalExpression__Group_1_0__1 - { - pushFollow(FOLLOW_14); - rule__XRelationalExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0__0" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0__0__Impl" - // InternalEntities.g:5203:1: rule__XRelationalExpression__Group_1_0__0__Impl : ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) ; - public final void rule__XRelationalExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5207:1: ( ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:5208:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:5208:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:5209:2: ( rule__XRelationalExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:5210:2: ( rule__XRelationalExpression__Group_1_0_0__0 ) - // InternalEntities.g:5210:3: rule__XRelationalExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0__1" - // InternalEntities.g:5218:1: rule__XRelationalExpression__Group_1_0__1 : rule__XRelationalExpression__Group_1_0__1__Impl ; - public final void rule__XRelationalExpression__Group_1_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5222:1: ( rule__XRelationalExpression__Group_1_0__1__Impl ) - // InternalEntities.g:5223:2: rule__XRelationalExpression__Group_1_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0__1" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0__1__Impl" - // InternalEntities.g:5229:1: rule__XRelationalExpression__Group_1_0__1__Impl : ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) ; - public final void rule__XRelationalExpression__Group_1_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5233:1: ( ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) ) - // InternalEntities.g:5234:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) - { - // InternalEntities.g:5234:1: ( ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) ) - // InternalEntities.g:5235:2: ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); - } - // InternalEntities.g:5236:2: ( rule__XRelationalExpression__TypeAssignment_1_0_1 ) - // InternalEntities.g:5236:3: rule__XRelationalExpression__TypeAssignment_1_0_1 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__TypeAssignment_1_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getTypeAssignment_1_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0__1__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0_0__0" - // InternalEntities.g:5245:1: rule__XRelationalExpression__Group_1_0_0__0 : rule__XRelationalExpression__Group_1_0_0__0__Impl ; - public final void rule__XRelationalExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5249:1: ( rule__XRelationalExpression__Group_1_0_0__0__Impl ) - // InternalEntities.g:5250:2: rule__XRelationalExpression__Group_1_0_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:5256:1: rule__XRelationalExpression__Group_1_0_0__0__Impl : ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) ; - public final void rule__XRelationalExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5260:1: ( ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) ) - // InternalEntities.g:5261:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) - { - // InternalEntities.g:5261:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) - // InternalEntities.g:5262:2: ( rule__XRelationalExpression__Group_1_0_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); - } - // InternalEntities.g:5263:2: ( rule__XRelationalExpression__Group_1_0_0_0__0 ) - // InternalEntities.g:5263:3: rule__XRelationalExpression__Group_1_0_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0_0_0__0" - // InternalEntities.g:5272:1: rule__XRelationalExpression__Group_1_0_0_0__0 : rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1 ; - public final void rule__XRelationalExpression__Group_1_0_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5276:1: ( rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1 ) - // InternalEntities.g:5277:2: rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1 - { - pushFollow(FOLLOW_34); - rule__XRelationalExpression__Group_1_0_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0_0_0__0" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0_0_0__0__Impl" - // InternalEntities.g:5284:1: rule__XRelationalExpression__Group_1_0_0_0__0__Impl : ( () ) ; - public final void rule__XRelationalExpression__Group_1_0_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5288:1: ( ( () ) ) - // InternalEntities.g:5289:1: ( () ) - { - // InternalEntities.g:5289:1: ( () ) - // InternalEntities.g:5290:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); - } - // InternalEntities.g:5291:2: () - // InternalEntities.g:5291:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0_0_0__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0_0_0__1" - // InternalEntities.g:5299:1: rule__XRelationalExpression__Group_1_0_0_0__1 : rule__XRelationalExpression__Group_1_0_0_0__1__Impl ; - public final void rule__XRelationalExpression__Group_1_0_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5303:1: ( rule__XRelationalExpression__Group_1_0_0_0__1__Impl ) - // InternalEntities.g:5304:2: rule__XRelationalExpression__Group_1_0_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_0_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0_0_0__1" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_0_0_0__1__Impl" - // InternalEntities.g:5310:1: rule__XRelationalExpression__Group_1_0_0_0__1__Impl : ( 'instanceof' ) ; - public final void rule__XRelationalExpression__Group_1_0_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5314:1: ( ( 'instanceof' ) ) - // InternalEntities.g:5315:1: ( 'instanceof' ) - { - // InternalEntities.g:5315:1: ( 'instanceof' ) - // InternalEntities.g:5316:2: 'instanceof' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); - } - match(input,60,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_0_0_0__1__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1__0" - // InternalEntities.g:5326:1: rule__XRelationalExpression__Group_1_1__0 : rule__XRelationalExpression__Group_1_1__0__Impl rule__XRelationalExpression__Group_1_1__1 ; - public final void rule__XRelationalExpression__Group_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5330:1: ( rule__XRelationalExpression__Group_1_1__0__Impl rule__XRelationalExpression__Group_1_1__1 ) - // InternalEntities.g:5331:2: rule__XRelationalExpression__Group_1_1__0__Impl rule__XRelationalExpression__Group_1_1__1 - { - pushFollow(FOLLOW_22); - rule__XRelationalExpression__Group_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1__0" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1__0__Impl" - // InternalEntities.g:5338:1: rule__XRelationalExpression__Group_1_1__0__Impl : ( ( rule__XRelationalExpression__Group_1_1_0__0 ) ) ; - public final void rule__XRelationalExpression__Group_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5342:1: ( ( ( rule__XRelationalExpression__Group_1_1_0__0 ) ) ) - // InternalEntities.g:5343:1: ( ( rule__XRelationalExpression__Group_1_1_0__0 ) ) - { - // InternalEntities.g:5343:1: ( ( rule__XRelationalExpression__Group_1_1_0__0 ) ) - // InternalEntities.g:5344:2: ( rule__XRelationalExpression__Group_1_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); - } - // InternalEntities.g:5345:2: ( rule__XRelationalExpression__Group_1_1_0__0 ) - // InternalEntities.g:5345:3: rule__XRelationalExpression__Group_1_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1__1" - // InternalEntities.g:5353:1: rule__XRelationalExpression__Group_1_1__1 : rule__XRelationalExpression__Group_1_1__1__Impl ; - public final void rule__XRelationalExpression__Group_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5357:1: ( rule__XRelationalExpression__Group_1_1__1__Impl ) - // InternalEntities.g:5358:2: rule__XRelationalExpression__Group_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1__1" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1__1__Impl" - // InternalEntities.g:5364:1: rule__XRelationalExpression__Group_1_1__1__Impl : ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) ) ; - public final void rule__XRelationalExpression__Group_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5368:1: ( ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) ) ) - // InternalEntities.g:5369:1: ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) ) - { - // InternalEntities.g:5369:1: ( ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) ) - // InternalEntities.g:5370:2: ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); - } - // InternalEntities.g:5371:2: ( rule__XRelationalExpression__RightOperandAssignment_1_1_1 ) - // InternalEntities.g:5371:3: rule__XRelationalExpression__RightOperandAssignment_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__RightOperandAssignment_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getRightOperandAssignment_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1__1__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1_0__0" - // InternalEntities.g:5380:1: rule__XRelationalExpression__Group_1_1_0__0 : rule__XRelationalExpression__Group_1_1_0__0__Impl ; - public final void rule__XRelationalExpression__Group_1_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5384:1: ( rule__XRelationalExpression__Group_1_1_0__0__Impl ) - // InternalEntities.g:5385:2: rule__XRelationalExpression__Group_1_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1_0__0" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1_0__0__Impl" - // InternalEntities.g:5391:1: rule__XRelationalExpression__Group_1_1_0__0__Impl : ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) ; - public final void rule__XRelationalExpression__Group_1_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5395:1: ( ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) ) - // InternalEntities.g:5396:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) - { - // InternalEntities.g:5396:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) - // InternalEntities.g:5397:2: ( rule__XRelationalExpression__Group_1_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); - } - // InternalEntities.g:5398:2: ( rule__XRelationalExpression__Group_1_1_0_0__0 ) - // InternalEntities.g:5398:3: rule__XRelationalExpression__Group_1_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1_0__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1_0_0__0" - // InternalEntities.g:5407:1: rule__XRelationalExpression__Group_1_1_0_0__0 : rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1 ; - public final void rule__XRelationalExpression__Group_1_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5411:1: ( rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1 ) - // InternalEntities.g:5412:2: rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1 - { - pushFollow(FOLLOW_32); - rule__XRelationalExpression__Group_1_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1_0_0__0" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1_0_0__0__Impl" - // InternalEntities.g:5419:1: rule__XRelationalExpression__Group_1_1_0_0__0__Impl : ( () ) ; - public final void rule__XRelationalExpression__Group_1_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5423:1: ( ( () ) ) - // InternalEntities.g:5424:1: ( () ) - { - // InternalEntities.g:5424:1: ( () ) - // InternalEntities.g:5425:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); - } - // InternalEntities.g:5426:2: () - // InternalEntities.g:5426:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1_0_0__0__Impl" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1_0_0__1" - // InternalEntities.g:5434:1: rule__XRelationalExpression__Group_1_1_0_0__1 : rule__XRelationalExpression__Group_1_1_0_0__1__Impl ; - public final void rule__XRelationalExpression__Group_1_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5438:1: ( rule__XRelationalExpression__Group_1_1_0_0__1__Impl ) - // InternalEntities.g:5439:2: rule__XRelationalExpression__Group_1_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Group_1_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1_0_0__1" - - - // $ANTLR start "rule__XRelationalExpression__Group_1_1_0_0__1__Impl" - // InternalEntities.g:5445:1: rule__XRelationalExpression__Group_1_1_0_0__1__Impl : ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) ) ; - public final void rule__XRelationalExpression__Group_1_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5449:1: ( ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) ) ) - // InternalEntities.g:5450:1: ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) ) - { - // InternalEntities.g:5450:1: ( ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) ) - // InternalEntities.g:5451:2: ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1()); - } - // InternalEntities.g:5452:2: ( rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 ) - // InternalEntities.g:5452:3: rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getFeatureAssignment_1_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__Group_1_1_0_0__1__Impl" - - - // $ANTLR start "rule__OpCompare__Group_1__0" - // InternalEntities.g:5461:1: rule__OpCompare__Group_1__0 : rule__OpCompare__Group_1__0__Impl rule__OpCompare__Group_1__1 ; - public final void rule__OpCompare__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5465:1: ( rule__OpCompare__Group_1__0__Impl rule__OpCompare__Group_1__1 ) - // InternalEntities.g:5466:2: rule__OpCompare__Group_1__0__Impl rule__OpCompare__Group_1__1 - { - pushFollow(FOLLOW_21); - rule__OpCompare__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpCompare__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpCompare__Group_1__0" - - - // $ANTLR start "rule__OpCompare__Group_1__0__Impl" - // InternalEntities.g:5473:1: rule__OpCompare__Group_1__0__Impl : ( '<' ) ; - public final void rule__OpCompare__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5477:1: ( ( '<' ) ) - // InternalEntities.g:5478:1: ( '<' ) - { - // InternalEntities.g:5478:1: ( '<' ) - // InternalEntities.g:5479:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpCompare__Group_1__0__Impl" - - - // $ANTLR start "rule__OpCompare__Group_1__1" - // InternalEntities.g:5488:1: rule__OpCompare__Group_1__1 : rule__OpCompare__Group_1__1__Impl ; - public final void rule__OpCompare__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5492:1: ( rule__OpCompare__Group_1__1__Impl ) - // InternalEntities.g:5493:2: rule__OpCompare__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__OpCompare__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpCompare__Group_1__1" - - - // $ANTLR start "rule__OpCompare__Group_1__1__Impl" - // InternalEntities.g:5499:1: rule__OpCompare__Group_1__1__Impl : ( '=' ) ; - public final void rule__OpCompare__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5503:1: ( ( '=' ) ) - // InternalEntities.g:5504:1: ( '=' ) - { - // InternalEntities.g:5504:1: ( '=' ) - // InternalEntities.g:5505:2: '=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); - } - match(input,13,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpCompare__Group_1__1__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group__0" - // InternalEntities.g:5515:1: rule__XOtherOperatorExpression__Group__0 : rule__XOtherOperatorExpression__Group__0__Impl rule__XOtherOperatorExpression__Group__1 ; - public final void rule__XOtherOperatorExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5519:1: ( rule__XOtherOperatorExpression__Group__0__Impl rule__XOtherOperatorExpression__Group__1 ) - // InternalEntities.g:5520:2: rule__XOtherOperatorExpression__Group__0__Impl rule__XOtherOperatorExpression__Group__1 - { - pushFollow(FOLLOW_35); - rule__XOtherOperatorExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group__0" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group__0__Impl" - // InternalEntities.g:5527:1: rule__XOtherOperatorExpression__Group__0__Impl : ( ruleXAdditiveExpression ) ; - public final void rule__XOtherOperatorExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5531:1: ( ( ruleXAdditiveExpression ) ) - // InternalEntities.g:5532:1: ( ruleXAdditiveExpression ) - { - // InternalEntities.g:5532:1: ( ruleXAdditiveExpression ) - // InternalEntities.g:5533:2: ruleXAdditiveExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXAdditiveExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group__0__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group__1" - // InternalEntities.g:5542:1: rule__XOtherOperatorExpression__Group__1 : rule__XOtherOperatorExpression__Group__1__Impl ; - public final void rule__XOtherOperatorExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5546:1: ( rule__XOtherOperatorExpression__Group__1__Impl ) - // InternalEntities.g:5547:2: rule__XOtherOperatorExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group__1" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group__1__Impl" - // InternalEntities.g:5553:1: rule__XOtherOperatorExpression__Group__1__Impl : ( ( rule__XOtherOperatorExpression__Group_1__0 )* ) ; - public final void rule__XOtherOperatorExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5557:1: ( ( ( rule__XOtherOperatorExpression__Group_1__0 )* ) ) - // InternalEntities.g:5558:1: ( ( rule__XOtherOperatorExpression__Group_1__0 )* ) - { - // InternalEntities.g:5558:1: ( ( rule__XOtherOperatorExpression__Group_1__0 )* ) - // InternalEntities.g:5559:2: ( rule__XOtherOperatorExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1()); - } - // InternalEntities.g:5560:2: ( rule__XOtherOperatorExpression__Group_1__0 )* - loop58: - do { - int alt58=2; - alt58 = dfa58.predict(input); - switch (alt58) { - case 1 : - // InternalEntities.g:5560:3: rule__XOtherOperatorExpression__Group_1__0 - { - pushFollow(FOLLOW_36); - rule__XOtherOperatorExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop58; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group__1__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1__0" - // InternalEntities.g:5569:1: rule__XOtherOperatorExpression__Group_1__0 : rule__XOtherOperatorExpression__Group_1__0__Impl rule__XOtherOperatorExpression__Group_1__1 ; - public final void rule__XOtherOperatorExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5573:1: ( rule__XOtherOperatorExpression__Group_1__0__Impl rule__XOtherOperatorExpression__Group_1__1 ) - // InternalEntities.g:5574:2: rule__XOtherOperatorExpression__Group_1__0__Impl rule__XOtherOperatorExpression__Group_1__1 - { - pushFollow(FOLLOW_22); - rule__XOtherOperatorExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1__0" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1__0__Impl" - // InternalEntities.g:5581:1: rule__XOtherOperatorExpression__Group_1__0__Impl : ( ( rule__XOtherOperatorExpression__Group_1_0__0 ) ) ; - public final void rule__XOtherOperatorExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5585:1: ( ( ( rule__XOtherOperatorExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:5586:1: ( ( rule__XOtherOperatorExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:5586:1: ( ( rule__XOtherOperatorExpression__Group_1_0__0 ) ) - // InternalEntities.g:5587:2: ( rule__XOtherOperatorExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:5588:2: ( rule__XOtherOperatorExpression__Group_1_0__0 ) - // InternalEntities.g:5588:3: rule__XOtherOperatorExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1__1" - // InternalEntities.g:5596:1: rule__XOtherOperatorExpression__Group_1__1 : rule__XOtherOperatorExpression__Group_1__1__Impl ; - public final void rule__XOtherOperatorExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5600:1: ( rule__XOtherOperatorExpression__Group_1__1__Impl ) - // InternalEntities.g:5601:2: rule__XOtherOperatorExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1__1" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1__1__Impl" - // InternalEntities.g:5607:1: rule__XOtherOperatorExpression__Group_1__1__Impl : ( ( rule__XOtherOperatorExpression__RightOperandAssignment_1_1 ) ) ; - public final void rule__XOtherOperatorExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5611:1: ( ( ( rule__XOtherOperatorExpression__RightOperandAssignment_1_1 ) ) ) - // InternalEntities.g:5612:1: ( ( rule__XOtherOperatorExpression__RightOperandAssignment_1_1 ) ) - { - // InternalEntities.g:5612:1: ( ( rule__XOtherOperatorExpression__RightOperandAssignment_1_1 ) ) - // InternalEntities.g:5613:2: ( rule__XOtherOperatorExpression__RightOperandAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandAssignment_1_1()); - } - // InternalEntities.g:5614:2: ( rule__XOtherOperatorExpression__RightOperandAssignment_1_1 ) - // InternalEntities.g:5614:3: rule__XOtherOperatorExpression__RightOperandAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__RightOperandAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1_0__0" - // InternalEntities.g:5623:1: rule__XOtherOperatorExpression__Group_1_0__0 : rule__XOtherOperatorExpression__Group_1_0__0__Impl ; - public final void rule__XOtherOperatorExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5627:1: ( rule__XOtherOperatorExpression__Group_1_0__0__Impl ) - // InternalEntities.g:5628:2: rule__XOtherOperatorExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1_0__0" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1_0__0__Impl" - // InternalEntities.g:5634:1: rule__XOtherOperatorExpression__Group_1_0__0__Impl : ( ( rule__XOtherOperatorExpression__Group_1_0_0__0 ) ) ; - public final void rule__XOtherOperatorExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5638:1: ( ( ( rule__XOtherOperatorExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:5639:1: ( ( rule__XOtherOperatorExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:5639:1: ( ( rule__XOtherOperatorExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:5640:2: ( rule__XOtherOperatorExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:5641:2: ( rule__XOtherOperatorExpression__Group_1_0_0__0 ) - // InternalEntities.g:5641:3: rule__XOtherOperatorExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1_0_0__0" - // InternalEntities.g:5650:1: rule__XOtherOperatorExpression__Group_1_0_0__0 : rule__XOtherOperatorExpression__Group_1_0_0__0__Impl rule__XOtherOperatorExpression__Group_1_0_0__1 ; - public final void rule__XOtherOperatorExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5654:1: ( rule__XOtherOperatorExpression__Group_1_0_0__0__Impl rule__XOtherOperatorExpression__Group_1_0_0__1 ) - // InternalEntities.g:5655:2: rule__XOtherOperatorExpression__Group_1_0_0__0__Impl rule__XOtherOperatorExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_35); - rule__XOtherOperatorExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:5662:1: rule__XOtherOperatorExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XOtherOperatorExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5666:1: ( ( () ) ) - // InternalEntities.g:5667:1: ( () ) - { - // InternalEntities.g:5667:1: ( () ) - // InternalEntities.g:5668:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - // InternalEntities.g:5669:2: () - // InternalEntities.g:5669:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1_0_0__1" - // InternalEntities.g:5677:1: rule__XOtherOperatorExpression__Group_1_0_0__1 : rule__XOtherOperatorExpression__Group_1_0_0__1__Impl ; - public final void rule__XOtherOperatorExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5681:1: ( rule__XOtherOperatorExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:5682:2: rule__XOtherOperatorExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XOtherOperatorExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:5688:1: rule__XOtherOperatorExpression__Group_1_0_0__1__Impl : ( ( rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 ) ) ; - public final void rule__XOtherOperatorExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5692:1: ( ( ( rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 ) ) ) - // InternalEntities.g:5693:1: ( ( rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 ) ) - { - // InternalEntities.g:5693:1: ( ( rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 ) ) - // InternalEntities.g:5694:2: ( rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - // InternalEntities.g:5695:2: ( rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 ) - // InternalEntities.g:5695:3: rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__OpOther__Group_2__0" - // InternalEntities.g:5704:1: rule__OpOther__Group_2__0 : rule__OpOther__Group_2__0__Impl rule__OpOther__Group_2__1 ; - public final void rule__OpOther__Group_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5708:1: ( rule__OpOther__Group_2__0__Impl rule__OpOther__Group_2__1 ) - // InternalEntities.g:5709:2: rule__OpOther__Group_2__0__Impl rule__OpOther__Group_2__1 - { - pushFollow(FOLLOW_37); - rule__OpOther__Group_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpOther__Group_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_2__0" - - - // $ANTLR start "rule__OpOther__Group_2__0__Impl" - // InternalEntities.g:5716:1: rule__OpOther__Group_2__0__Impl : ( '>' ) ; - public final void rule__OpOther__Group_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5720:1: ( ( '>' ) ) - // InternalEntities.g:5721:1: ( '>' ) - { - // InternalEntities.g:5721:1: ( '>' ) - // InternalEntities.g:5722:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_2__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_2__1" - // InternalEntities.g:5731:1: rule__OpOther__Group_2__1 : rule__OpOther__Group_2__1__Impl ; - public final void rule__OpOther__Group_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5735:1: ( rule__OpOther__Group_2__1__Impl ) - // InternalEntities.g:5736:2: rule__OpOther__Group_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_2__1" - - - // $ANTLR start "rule__OpOther__Group_2__1__Impl" - // InternalEntities.g:5742:1: rule__OpOther__Group_2__1__Impl : ( '..' ) ; - public final void rule__OpOther__Group_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5746:1: ( ( '..' ) ) - // InternalEntities.g:5747:1: ( '..' ) - { - // InternalEntities.g:5747:1: ( '..' ) - // InternalEntities.g:5748:2: '..' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); - } - match(input,30,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_2__1__Impl" - - - // $ANTLR start "rule__OpOther__Group_5__0" - // InternalEntities.g:5758:1: rule__OpOther__Group_5__0 : rule__OpOther__Group_5__0__Impl rule__OpOther__Group_5__1 ; - public final void rule__OpOther__Group_5__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5762:1: ( rule__OpOther__Group_5__0__Impl rule__OpOther__Group_5__1 ) - // InternalEntities.g:5763:2: rule__OpOther__Group_5__0__Impl rule__OpOther__Group_5__1 - { - pushFollow(FOLLOW_38); - rule__OpOther__Group_5__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpOther__Group_5__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5__0" - - - // $ANTLR start "rule__OpOther__Group_5__0__Impl" - // InternalEntities.g:5770:1: rule__OpOther__Group_5__0__Impl : ( '>' ) ; - public final void rule__OpOther__Group_5__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5774:1: ( ( '>' ) ) - // InternalEntities.g:5775:1: ( '>' ) - { - // InternalEntities.g:5775:1: ( '>' ) - // InternalEntities.g:5776:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_5__1" - // InternalEntities.g:5785:1: rule__OpOther__Group_5__1 : rule__OpOther__Group_5__1__Impl ; - public final void rule__OpOther__Group_5__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5789:1: ( rule__OpOther__Group_5__1__Impl ) - // InternalEntities.g:5790:2: rule__OpOther__Group_5__1__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_5__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5__1" - - - // $ANTLR start "rule__OpOther__Group_5__1__Impl" - // InternalEntities.g:5796:1: rule__OpOther__Group_5__1__Impl : ( ( rule__OpOther__Alternatives_5_1 ) ) ; - public final void rule__OpOther__Group_5__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5800:1: ( ( ( rule__OpOther__Alternatives_5_1 ) ) ) - // InternalEntities.g:5801:1: ( ( rule__OpOther__Alternatives_5_1 ) ) - { - // InternalEntities.g:5801:1: ( ( rule__OpOther__Alternatives_5_1 ) ) - // InternalEntities.g:5802:2: ( rule__OpOther__Alternatives_5_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getAlternatives_5_1()); - } - // InternalEntities.g:5803:2: ( rule__OpOther__Alternatives_5_1 ) - // InternalEntities.g:5803:3: rule__OpOther__Alternatives_5_1 - { - pushFollow(FOLLOW_2); - rule__OpOther__Alternatives_5_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getAlternatives_5_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5__1__Impl" - - - // $ANTLR start "rule__OpOther__Group_5_1_0__0" - // InternalEntities.g:5812:1: rule__OpOther__Group_5_1_0__0 : rule__OpOther__Group_5_1_0__0__Impl ; - public final void rule__OpOther__Group_5_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5816:1: ( rule__OpOther__Group_5_1_0__0__Impl ) - // InternalEntities.g:5817:2: rule__OpOther__Group_5_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_5_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5_1_0__0" - - - // $ANTLR start "rule__OpOther__Group_5_1_0__0__Impl" - // InternalEntities.g:5823:1: rule__OpOther__Group_5_1_0__0__Impl : ( ( rule__OpOther__Group_5_1_0_0__0 ) ) ; - public final void rule__OpOther__Group_5_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5827:1: ( ( ( rule__OpOther__Group_5_1_0_0__0 ) ) ) - // InternalEntities.g:5828:1: ( ( rule__OpOther__Group_5_1_0_0__0 ) ) - { - // InternalEntities.g:5828:1: ( ( rule__OpOther__Group_5_1_0_0__0 ) ) - // InternalEntities.g:5829:2: ( rule__OpOther__Group_5_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_5_1_0_0()); - } - // InternalEntities.g:5830:2: ( rule__OpOther__Group_5_1_0_0__0 ) - // InternalEntities.g:5830:3: rule__OpOther__Group_5_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_5_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_5_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5_1_0__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_5_1_0_0__0" - // InternalEntities.g:5839:1: rule__OpOther__Group_5_1_0_0__0 : rule__OpOther__Group_5_1_0_0__0__Impl rule__OpOther__Group_5_1_0_0__1 ; - public final void rule__OpOther__Group_5_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5843:1: ( rule__OpOther__Group_5_1_0_0__0__Impl rule__OpOther__Group_5_1_0_0__1 ) - // InternalEntities.g:5844:2: rule__OpOther__Group_5_1_0_0__0__Impl rule__OpOther__Group_5_1_0_0__1 - { - pushFollow(FOLLOW_38); - rule__OpOther__Group_5_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpOther__Group_5_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5_1_0_0__0" - - - // $ANTLR start "rule__OpOther__Group_5_1_0_0__0__Impl" - // InternalEntities.g:5851:1: rule__OpOther__Group_5_1_0_0__0__Impl : ( '>' ) ; - public final void rule__OpOther__Group_5_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5855:1: ( ( '>' ) ) - // InternalEntities.g:5856:1: ( '>' ) - { - // InternalEntities.g:5856:1: ( '>' ) - // InternalEntities.g:5857:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5_1_0_0__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_5_1_0_0__1" - // InternalEntities.g:5866:1: rule__OpOther__Group_5_1_0_0__1 : rule__OpOther__Group_5_1_0_0__1__Impl ; - public final void rule__OpOther__Group_5_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5870:1: ( rule__OpOther__Group_5_1_0_0__1__Impl ) - // InternalEntities.g:5871:2: rule__OpOther__Group_5_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_5_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5_1_0_0__1" - - - // $ANTLR start "rule__OpOther__Group_5_1_0_0__1__Impl" - // InternalEntities.g:5877:1: rule__OpOther__Group_5_1_0_0__1__Impl : ( '>' ) ; - public final void rule__OpOther__Group_5_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5881:1: ( ( '>' ) ) - // InternalEntities.g:5882:1: ( '>' ) - { - // InternalEntities.g:5882:1: ( '>' ) - // InternalEntities.g:5883:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_5_1_0_0__1__Impl" - - - // $ANTLR start "rule__OpOther__Group_6__0" - // InternalEntities.g:5893:1: rule__OpOther__Group_6__0 : rule__OpOther__Group_6__0__Impl rule__OpOther__Group_6__1 ; - public final void rule__OpOther__Group_6__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5897:1: ( rule__OpOther__Group_6__0__Impl rule__OpOther__Group_6__1 ) - // InternalEntities.g:5898:2: rule__OpOther__Group_6__0__Impl rule__OpOther__Group_6__1 - { - pushFollow(FOLLOW_39); - rule__OpOther__Group_6__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpOther__Group_6__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6__0" - - - // $ANTLR start "rule__OpOther__Group_6__0__Impl" - // InternalEntities.g:5905:1: rule__OpOther__Group_6__0__Impl : ( '<' ) ; - public final void rule__OpOther__Group_6__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5909:1: ( ( '<' ) ) - // InternalEntities.g:5910:1: ( '<' ) - { - // InternalEntities.g:5910:1: ( '<' ) - // InternalEntities.g:5911:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_6__1" - // InternalEntities.g:5920:1: rule__OpOther__Group_6__1 : rule__OpOther__Group_6__1__Impl ; - public final void rule__OpOther__Group_6__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5924:1: ( rule__OpOther__Group_6__1__Impl ) - // InternalEntities.g:5925:2: rule__OpOther__Group_6__1__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6__1" - - - // $ANTLR start "rule__OpOther__Group_6__1__Impl" - // InternalEntities.g:5931:1: rule__OpOther__Group_6__1__Impl : ( ( rule__OpOther__Alternatives_6_1 ) ) ; - public final void rule__OpOther__Group_6__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5935:1: ( ( ( rule__OpOther__Alternatives_6_1 ) ) ) - // InternalEntities.g:5936:1: ( ( rule__OpOther__Alternatives_6_1 ) ) - { - // InternalEntities.g:5936:1: ( ( rule__OpOther__Alternatives_6_1 ) ) - // InternalEntities.g:5937:2: ( rule__OpOther__Alternatives_6_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getAlternatives_6_1()); - } - // InternalEntities.g:5938:2: ( rule__OpOther__Alternatives_6_1 ) - // InternalEntities.g:5938:3: rule__OpOther__Alternatives_6_1 - { - pushFollow(FOLLOW_2); - rule__OpOther__Alternatives_6_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getAlternatives_6_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6__1__Impl" - - - // $ANTLR start "rule__OpOther__Group_6_1_0__0" - // InternalEntities.g:5947:1: rule__OpOther__Group_6_1_0__0 : rule__OpOther__Group_6_1_0__0__Impl ; - public final void rule__OpOther__Group_6_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5951:1: ( rule__OpOther__Group_6_1_0__0__Impl ) - // InternalEntities.g:5952:2: rule__OpOther__Group_6_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6_1_0__0" - - - // $ANTLR start "rule__OpOther__Group_6_1_0__0__Impl" - // InternalEntities.g:5958:1: rule__OpOther__Group_6_1_0__0__Impl : ( ( rule__OpOther__Group_6_1_0_0__0 ) ) ; - public final void rule__OpOther__Group_6_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5962:1: ( ( ( rule__OpOther__Group_6_1_0_0__0 ) ) ) - // InternalEntities.g:5963:1: ( ( rule__OpOther__Group_6_1_0_0__0 ) ) - { - // InternalEntities.g:5963:1: ( ( rule__OpOther__Group_6_1_0_0__0 ) ) - // InternalEntities.g:5964:2: ( rule__OpOther__Group_6_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_6_1_0_0()); - } - // InternalEntities.g:5965:2: ( rule__OpOther__Group_6_1_0_0__0 ) - // InternalEntities.g:5965:3: rule__OpOther__Group_6_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getGroup_6_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6_1_0__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_6_1_0_0__0" - // InternalEntities.g:5974:1: rule__OpOther__Group_6_1_0_0__0 : rule__OpOther__Group_6_1_0_0__0__Impl rule__OpOther__Group_6_1_0_0__1 ; - public final void rule__OpOther__Group_6_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5978:1: ( rule__OpOther__Group_6_1_0_0__0__Impl rule__OpOther__Group_6_1_0_0__1 ) - // InternalEntities.g:5979:2: rule__OpOther__Group_6_1_0_0__0__Impl rule__OpOther__Group_6_1_0_0__1 - { - pushFollow(FOLLOW_24); - rule__OpOther__Group_6_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__OpOther__Group_6_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6_1_0_0__0" - - - // $ANTLR start "rule__OpOther__Group_6_1_0_0__0__Impl" - // InternalEntities.g:5986:1: rule__OpOther__Group_6_1_0_0__0__Impl : ( '<' ) ; - public final void rule__OpOther__Group_6_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:5990:1: ( ( '<' ) ) - // InternalEntities.g:5991:1: ( '<' ) - { - // InternalEntities.g:5991:1: ( '<' ) - // InternalEntities.g:5992:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6_1_0_0__0__Impl" - - - // $ANTLR start "rule__OpOther__Group_6_1_0_0__1" - // InternalEntities.g:6001:1: rule__OpOther__Group_6_1_0_0__1 : rule__OpOther__Group_6_1_0_0__1__Impl ; - public final void rule__OpOther__Group_6_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6005:1: ( rule__OpOther__Group_6_1_0_0__1__Impl ) - // InternalEntities.g:6006:2: rule__OpOther__Group_6_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6_1_0_0__1" - - - // $ANTLR start "rule__OpOther__Group_6_1_0_0__1__Impl" - // InternalEntities.g:6012:1: rule__OpOther__Group_6_1_0_0__1__Impl : ( '<' ) ; - public final void rule__OpOther__Group_6_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6016:1: ( ( '<' ) ) - // InternalEntities.g:6017:1: ( '<' ) - { - // InternalEntities.g:6017:1: ( '<' ) - // InternalEntities.g:6018:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OpOther__Group_6_1_0_0__1__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group__0" - // InternalEntities.g:6028:1: rule__XAdditiveExpression__Group__0 : rule__XAdditiveExpression__Group__0__Impl rule__XAdditiveExpression__Group__1 ; - public final void rule__XAdditiveExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6032:1: ( rule__XAdditiveExpression__Group__0__Impl rule__XAdditiveExpression__Group__1 ) - // InternalEntities.g:6033:2: rule__XAdditiveExpression__Group__0__Impl rule__XAdditiveExpression__Group__1 - { - pushFollow(FOLLOW_40); - rule__XAdditiveExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group__0" - - - // $ANTLR start "rule__XAdditiveExpression__Group__0__Impl" - // InternalEntities.g:6040:1: rule__XAdditiveExpression__Group__0__Impl : ( ruleXMultiplicativeExpression ) ; - public final void rule__XAdditiveExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6044:1: ( ( ruleXMultiplicativeExpression ) ) - // InternalEntities.g:6045:1: ( ruleXMultiplicativeExpression ) - { - // InternalEntities.g:6045:1: ( ruleXMultiplicativeExpression ) - // InternalEntities.g:6046:2: ruleXMultiplicativeExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXMultiplicativeExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group__0__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group__1" - // InternalEntities.g:6055:1: rule__XAdditiveExpression__Group__1 : rule__XAdditiveExpression__Group__1__Impl ; - public final void rule__XAdditiveExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6059:1: ( rule__XAdditiveExpression__Group__1__Impl ) - // InternalEntities.g:6060:2: rule__XAdditiveExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group__1" - - - // $ANTLR start "rule__XAdditiveExpression__Group__1__Impl" - // InternalEntities.g:6066:1: rule__XAdditiveExpression__Group__1__Impl : ( ( rule__XAdditiveExpression__Group_1__0 )* ) ; - public final void rule__XAdditiveExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6070:1: ( ( ( rule__XAdditiveExpression__Group_1__0 )* ) ) - // InternalEntities.g:6071:1: ( ( rule__XAdditiveExpression__Group_1__0 )* ) - { - // InternalEntities.g:6071:1: ( ( rule__XAdditiveExpression__Group_1__0 )* ) - // InternalEntities.g:6072:2: ( rule__XAdditiveExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getGroup_1()); - } - // InternalEntities.g:6073:2: ( rule__XAdditiveExpression__Group_1__0 )* - loop59: - do { - int alt59=2; - int LA59_0 = input.LA(1); - - if ( (LA59_0==35) ) { - int LA59_2 = input.LA(2); - - if ( (synpred102_InternalEntities()) ) { - alt59=1; - } - - - } - else if ( (LA59_0==34) ) { - int LA59_3 = input.LA(2); - - if ( (synpred102_InternalEntities()) ) { - alt59=1; - } - - - } - - - switch (alt59) { - case 1 : - // InternalEntities.g:6073:3: rule__XAdditiveExpression__Group_1__0 - { - pushFollow(FOLLOW_41); - rule__XAdditiveExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop59; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group__1__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1__0" - // InternalEntities.g:6082:1: rule__XAdditiveExpression__Group_1__0 : rule__XAdditiveExpression__Group_1__0__Impl rule__XAdditiveExpression__Group_1__1 ; - public final void rule__XAdditiveExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6086:1: ( rule__XAdditiveExpression__Group_1__0__Impl rule__XAdditiveExpression__Group_1__1 ) - // InternalEntities.g:6087:2: rule__XAdditiveExpression__Group_1__0__Impl rule__XAdditiveExpression__Group_1__1 - { - pushFollow(FOLLOW_22); - rule__XAdditiveExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1__0" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1__0__Impl" - // InternalEntities.g:6094:1: rule__XAdditiveExpression__Group_1__0__Impl : ( ( rule__XAdditiveExpression__Group_1_0__0 ) ) ; - public final void rule__XAdditiveExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6098:1: ( ( ( rule__XAdditiveExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:6099:1: ( ( rule__XAdditiveExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:6099:1: ( ( rule__XAdditiveExpression__Group_1_0__0 ) ) - // InternalEntities.g:6100:2: ( rule__XAdditiveExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:6101:2: ( rule__XAdditiveExpression__Group_1_0__0 ) - // InternalEntities.g:6101:3: rule__XAdditiveExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1__1" - // InternalEntities.g:6109:1: rule__XAdditiveExpression__Group_1__1 : rule__XAdditiveExpression__Group_1__1__Impl ; - public final void rule__XAdditiveExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6113:1: ( rule__XAdditiveExpression__Group_1__1__Impl ) - // InternalEntities.g:6114:2: rule__XAdditiveExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1__1" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1__1__Impl" - // InternalEntities.g:6120:1: rule__XAdditiveExpression__Group_1__1__Impl : ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) ) ; - public final void rule__XAdditiveExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6124:1: ( ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) ) ) - // InternalEntities.g:6125:1: ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) ) - { - // InternalEntities.g:6125:1: ( ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) ) - // InternalEntities.g:6126:2: ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); - } - // InternalEntities.g:6127:2: ( rule__XAdditiveExpression__RightOperandAssignment_1_1 ) - // InternalEntities.g:6127:3: rule__XAdditiveExpression__RightOperandAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__RightOperandAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1_0__0" - // InternalEntities.g:6136:1: rule__XAdditiveExpression__Group_1_0__0 : rule__XAdditiveExpression__Group_1_0__0__Impl ; - public final void rule__XAdditiveExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6140:1: ( rule__XAdditiveExpression__Group_1_0__0__Impl ) - // InternalEntities.g:6141:2: rule__XAdditiveExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1_0__0" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1_0__0__Impl" - // InternalEntities.g:6147:1: rule__XAdditiveExpression__Group_1_0__0__Impl : ( ( rule__XAdditiveExpression__Group_1_0_0__0 ) ) ; - public final void rule__XAdditiveExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6151:1: ( ( ( rule__XAdditiveExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:6152:1: ( ( rule__XAdditiveExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:6152:1: ( ( rule__XAdditiveExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:6153:2: ( rule__XAdditiveExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:6154:2: ( rule__XAdditiveExpression__Group_1_0_0__0 ) - // InternalEntities.g:6154:3: rule__XAdditiveExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1_0_0__0" - // InternalEntities.g:6163:1: rule__XAdditiveExpression__Group_1_0_0__0 : rule__XAdditiveExpression__Group_1_0_0__0__Impl rule__XAdditiveExpression__Group_1_0_0__1 ; - public final void rule__XAdditiveExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6167:1: ( rule__XAdditiveExpression__Group_1_0_0__0__Impl rule__XAdditiveExpression__Group_1_0_0__1 ) - // InternalEntities.g:6168:2: rule__XAdditiveExpression__Group_1_0_0__0__Impl rule__XAdditiveExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_40); - rule__XAdditiveExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:6175:1: rule__XAdditiveExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XAdditiveExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6179:1: ( ( () ) ) - // InternalEntities.g:6180:1: ( () ) - { - // InternalEntities.g:6180:1: ( () ) - // InternalEntities.g:6181:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - // InternalEntities.g:6182:2: () - // InternalEntities.g:6182:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1_0_0__1" - // InternalEntities.g:6190:1: rule__XAdditiveExpression__Group_1_0_0__1 : rule__XAdditiveExpression__Group_1_0_0__1__Impl ; - public final void rule__XAdditiveExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6194:1: ( rule__XAdditiveExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:6195:2: rule__XAdditiveExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XAdditiveExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:6201:1: rule__XAdditiveExpression__Group_1_0_0__1__Impl : ( ( rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 ) ) ; - public final void rule__XAdditiveExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6205:1: ( ( ( rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 ) ) ) - // InternalEntities.g:6206:1: ( ( rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 ) ) - { - // InternalEntities.g:6206:1: ( ( rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 ) ) - // InternalEntities.g:6207:2: ( rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - // InternalEntities.g:6208:2: ( rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 ) - // InternalEntities.g:6208:3: rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__FeatureAssignment_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group__0" - // InternalEntities.g:6217:1: rule__XMultiplicativeExpression__Group__0 : rule__XMultiplicativeExpression__Group__0__Impl rule__XMultiplicativeExpression__Group__1 ; - public final void rule__XMultiplicativeExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6221:1: ( rule__XMultiplicativeExpression__Group__0__Impl rule__XMultiplicativeExpression__Group__1 ) - // InternalEntities.g:6222:2: rule__XMultiplicativeExpression__Group__0__Impl rule__XMultiplicativeExpression__Group__1 - { - pushFollow(FOLLOW_42); - rule__XMultiplicativeExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group__0" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group__0__Impl" - // InternalEntities.g:6229:1: rule__XMultiplicativeExpression__Group__0__Impl : ( ruleXUnaryOperation ) ; - public final void rule__XMultiplicativeExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6233:1: ( ( ruleXUnaryOperation ) ) - // InternalEntities.g:6234:1: ( ruleXUnaryOperation ) - { - // InternalEntities.g:6234:1: ( ruleXUnaryOperation ) - // InternalEntities.g:6235:2: ruleXUnaryOperation - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group__0__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group__1" - // InternalEntities.g:6244:1: rule__XMultiplicativeExpression__Group__1 : rule__XMultiplicativeExpression__Group__1__Impl ; - public final void rule__XMultiplicativeExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6248:1: ( rule__XMultiplicativeExpression__Group__1__Impl ) - // InternalEntities.g:6249:2: rule__XMultiplicativeExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group__1" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group__1__Impl" - // InternalEntities.g:6255:1: rule__XMultiplicativeExpression__Group__1__Impl : ( ( rule__XMultiplicativeExpression__Group_1__0 )* ) ; - public final void rule__XMultiplicativeExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6259:1: ( ( ( rule__XMultiplicativeExpression__Group_1__0 )* ) ) - // InternalEntities.g:6260:1: ( ( rule__XMultiplicativeExpression__Group_1__0 )* ) - { - // InternalEntities.g:6260:1: ( ( rule__XMultiplicativeExpression__Group_1__0 )* ) - // InternalEntities.g:6261:2: ( rule__XMultiplicativeExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1()); - } - // InternalEntities.g:6262:2: ( rule__XMultiplicativeExpression__Group_1__0 )* - loop60: - do { - int alt60=2; - switch ( input.LA(1) ) { - case 36: - { - int LA60_2 = input.LA(2); - - if ( (synpred103_InternalEntities()) ) { - alt60=1; - } - - - } - break; - case 37: - { - int LA60_3 = input.LA(2); - - if ( (synpred103_InternalEntities()) ) { - alt60=1; - } - - - } - break; - case 38: - { - int LA60_4 = input.LA(2); - - if ( (synpred103_InternalEntities()) ) { - alt60=1; - } - - - } - break; - case 39: - { - int LA60_5 = input.LA(2); - - if ( (synpred103_InternalEntities()) ) { - alt60=1; - } - - - } - break; - - } - - switch (alt60) { - case 1 : - // InternalEntities.g:6262:3: rule__XMultiplicativeExpression__Group_1__0 - { - pushFollow(FOLLOW_43); - rule__XMultiplicativeExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop60; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group__1__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1__0" - // InternalEntities.g:6271:1: rule__XMultiplicativeExpression__Group_1__0 : rule__XMultiplicativeExpression__Group_1__0__Impl rule__XMultiplicativeExpression__Group_1__1 ; - public final void rule__XMultiplicativeExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6275:1: ( rule__XMultiplicativeExpression__Group_1__0__Impl rule__XMultiplicativeExpression__Group_1__1 ) - // InternalEntities.g:6276:2: rule__XMultiplicativeExpression__Group_1__0__Impl rule__XMultiplicativeExpression__Group_1__1 - { - pushFollow(FOLLOW_22); - rule__XMultiplicativeExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1__0" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1__0__Impl" - // InternalEntities.g:6283:1: rule__XMultiplicativeExpression__Group_1__0__Impl : ( ( rule__XMultiplicativeExpression__Group_1_0__0 ) ) ; - public final void rule__XMultiplicativeExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6287:1: ( ( ( rule__XMultiplicativeExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:6288:1: ( ( rule__XMultiplicativeExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:6288:1: ( ( rule__XMultiplicativeExpression__Group_1_0__0 ) ) - // InternalEntities.g:6289:2: ( rule__XMultiplicativeExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:6290:2: ( rule__XMultiplicativeExpression__Group_1_0__0 ) - // InternalEntities.g:6290:3: rule__XMultiplicativeExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1__1" - // InternalEntities.g:6298:1: rule__XMultiplicativeExpression__Group_1__1 : rule__XMultiplicativeExpression__Group_1__1__Impl ; - public final void rule__XMultiplicativeExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6302:1: ( rule__XMultiplicativeExpression__Group_1__1__Impl ) - // InternalEntities.g:6303:2: rule__XMultiplicativeExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1__1" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1__1__Impl" - // InternalEntities.g:6309:1: rule__XMultiplicativeExpression__Group_1__1__Impl : ( ( rule__XMultiplicativeExpression__RightOperandAssignment_1_1 ) ) ; - public final void rule__XMultiplicativeExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6313:1: ( ( ( rule__XMultiplicativeExpression__RightOperandAssignment_1_1 ) ) ) - // InternalEntities.g:6314:1: ( ( rule__XMultiplicativeExpression__RightOperandAssignment_1_1 ) ) - { - // InternalEntities.g:6314:1: ( ( rule__XMultiplicativeExpression__RightOperandAssignment_1_1 ) ) - // InternalEntities.g:6315:2: ( rule__XMultiplicativeExpression__RightOperandAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandAssignment_1_1()); - } - // InternalEntities.g:6316:2: ( rule__XMultiplicativeExpression__RightOperandAssignment_1_1 ) - // InternalEntities.g:6316:3: rule__XMultiplicativeExpression__RightOperandAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__RightOperandAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1_0__0" - // InternalEntities.g:6325:1: rule__XMultiplicativeExpression__Group_1_0__0 : rule__XMultiplicativeExpression__Group_1_0__0__Impl ; - public final void rule__XMultiplicativeExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6329:1: ( rule__XMultiplicativeExpression__Group_1_0__0__Impl ) - // InternalEntities.g:6330:2: rule__XMultiplicativeExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1_0__0" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1_0__0__Impl" - // InternalEntities.g:6336:1: rule__XMultiplicativeExpression__Group_1_0__0__Impl : ( ( rule__XMultiplicativeExpression__Group_1_0_0__0 ) ) ; - public final void rule__XMultiplicativeExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6340:1: ( ( ( rule__XMultiplicativeExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:6341:1: ( ( rule__XMultiplicativeExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:6341:1: ( ( rule__XMultiplicativeExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:6342:2: ( rule__XMultiplicativeExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:6343:2: ( rule__XMultiplicativeExpression__Group_1_0_0__0 ) - // InternalEntities.g:6343:3: rule__XMultiplicativeExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1_0_0__0" - // InternalEntities.g:6352:1: rule__XMultiplicativeExpression__Group_1_0_0__0 : rule__XMultiplicativeExpression__Group_1_0_0__0__Impl rule__XMultiplicativeExpression__Group_1_0_0__1 ; - public final void rule__XMultiplicativeExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6356:1: ( rule__XMultiplicativeExpression__Group_1_0_0__0__Impl rule__XMultiplicativeExpression__Group_1_0_0__1 ) - // InternalEntities.g:6357:2: rule__XMultiplicativeExpression__Group_1_0_0__0__Impl rule__XMultiplicativeExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_42); - rule__XMultiplicativeExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:6364:1: rule__XMultiplicativeExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XMultiplicativeExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6368:1: ( ( () ) ) - // InternalEntities.g:6369:1: ( () ) - { - // InternalEntities.g:6369:1: ( () ) - // InternalEntities.g:6370:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - // InternalEntities.g:6371:2: () - // InternalEntities.g:6371:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1_0_0__1" - // InternalEntities.g:6379:1: rule__XMultiplicativeExpression__Group_1_0_0__1 : rule__XMultiplicativeExpression__Group_1_0_0__1__Impl ; - public final void rule__XMultiplicativeExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6383:1: ( rule__XMultiplicativeExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:6384:2: rule__XMultiplicativeExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XMultiplicativeExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:6390:1: rule__XMultiplicativeExpression__Group_1_0_0__1__Impl : ( ( rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 ) ) ; - public final void rule__XMultiplicativeExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6394:1: ( ( ( rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 ) ) ) - // InternalEntities.g:6395:1: ( ( rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 ) ) - { - // InternalEntities.g:6395:1: ( ( rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 ) ) - // InternalEntities.g:6396:2: ( rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - // InternalEntities.g:6397:2: ( rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 ) - // InternalEntities.g:6397:3: rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureAssignment_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XUnaryOperation__Group_0__0" - // InternalEntities.g:6406:1: rule__XUnaryOperation__Group_0__0 : rule__XUnaryOperation__Group_0__0__Impl rule__XUnaryOperation__Group_0__1 ; - public final void rule__XUnaryOperation__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6410:1: ( rule__XUnaryOperation__Group_0__0__Impl rule__XUnaryOperation__Group_0__1 ) - // InternalEntities.g:6411:2: rule__XUnaryOperation__Group_0__0__Impl rule__XUnaryOperation__Group_0__1 - { - pushFollow(FOLLOW_44); - rule__XUnaryOperation__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XUnaryOperation__Group_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Group_0__0" - - - // $ANTLR start "rule__XUnaryOperation__Group_0__0__Impl" - // InternalEntities.g:6418:1: rule__XUnaryOperation__Group_0__0__Impl : ( () ) ; - public final void rule__XUnaryOperation__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6422:1: ( ( () ) ) - // InternalEntities.g:6423:1: ( () ) - { - // InternalEntities.g:6423:1: ( () ) - // InternalEntities.g:6424:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); - } - // InternalEntities.g:6425:2: () - // InternalEntities.g:6425:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Group_0__0__Impl" - - - // $ANTLR start "rule__XUnaryOperation__Group_0__1" - // InternalEntities.g:6433:1: rule__XUnaryOperation__Group_0__1 : rule__XUnaryOperation__Group_0__1__Impl rule__XUnaryOperation__Group_0__2 ; - public final void rule__XUnaryOperation__Group_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6437:1: ( rule__XUnaryOperation__Group_0__1__Impl rule__XUnaryOperation__Group_0__2 ) - // InternalEntities.g:6438:2: rule__XUnaryOperation__Group_0__1__Impl rule__XUnaryOperation__Group_0__2 - { - pushFollow(FOLLOW_22); - rule__XUnaryOperation__Group_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XUnaryOperation__Group_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Group_0__1" - - - // $ANTLR start "rule__XUnaryOperation__Group_0__1__Impl" - // InternalEntities.g:6445:1: rule__XUnaryOperation__Group_0__1__Impl : ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) ) ; - public final void rule__XUnaryOperation__Group_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6449:1: ( ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) ) ) - // InternalEntities.g:6450:1: ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) ) - { - // InternalEntities.g:6450:1: ( ( rule__XUnaryOperation__FeatureAssignment_0_1 ) ) - // InternalEntities.g:6451:2: ( rule__XUnaryOperation__FeatureAssignment_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getFeatureAssignment_0_1()); - } - // InternalEntities.g:6452:2: ( rule__XUnaryOperation__FeatureAssignment_0_1 ) - // InternalEntities.g:6452:3: rule__XUnaryOperation__FeatureAssignment_0_1 - { - pushFollow(FOLLOW_2); - rule__XUnaryOperation__FeatureAssignment_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getFeatureAssignment_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Group_0__1__Impl" - - - // $ANTLR start "rule__XUnaryOperation__Group_0__2" - // InternalEntities.g:6460:1: rule__XUnaryOperation__Group_0__2 : rule__XUnaryOperation__Group_0__2__Impl ; - public final void rule__XUnaryOperation__Group_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6464:1: ( rule__XUnaryOperation__Group_0__2__Impl ) - // InternalEntities.g:6465:2: rule__XUnaryOperation__Group_0__2__Impl - { - pushFollow(FOLLOW_2); - rule__XUnaryOperation__Group_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Group_0__2" - - - // $ANTLR start "rule__XUnaryOperation__Group_0__2__Impl" - // InternalEntities.g:6471:1: rule__XUnaryOperation__Group_0__2__Impl : ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) ) ; - public final void rule__XUnaryOperation__Group_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6475:1: ( ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) ) ) - // InternalEntities.g:6476:1: ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) ) - { - // InternalEntities.g:6476:1: ( ( rule__XUnaryOperation__OperandAssignment_0_2 ) ) - // InternalEntities.g:6477:2: ( rule__XUnaryOperation__OperandAssignment_0_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); - } - // InternalEntities.g:6478:2: ( rule__XUnaryOperation__OperandAssignment_0_2 ) - // InternalEntities.g:6478:3: rule__XUnaryOperation__OperandAssignment_0_2 - { - pushFollow(FOLLOW_2); - rule__XUnaryOperation__OperandAssignment_0_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getOperandAssignment_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__Group_0__2__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group__0" - // InternalEntities.g:6487:1: rule__XCastedExpression__Group__0 : rule__XCastedExpression__Group__0__Impl rule__XCastedExpression__Group__1 ; - public final void rule__XCastedExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6491:1: ( rule__XCastedExpression__Group__0__Impl rule__XCastedExpression__Group__1 ) - // InternalEntities.g:6492:2: rule__XCastedExpression__Group__0__Impl rule__XCastedExpression__Group__1 - { - pushFollow(FOLLOW_45); - rule__XCastedExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group__0" - - - // $ANTLR start "rule__XCastedExpression__Group__0__Impl" - // InternalEntities.g:6499:1: rule__XCastedExpression__Group__0__Impl : ( ruleXPostfixOperation ) ; - public final void rule__XCastedExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6503:1: ( ( ruleXPostfixOperation ) ) - // InternalEntities.g:6504:1: ( ruleXPostfixOperation ) - { - // InternalEntities.g:6504:1: ( ruleXPostfixOperation ) - // InternalEntities.g:6505:2: ruleXPostfixOperation - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXPostfixOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group__0__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group__1" - // InternalEntities.g:6514:1: rule__XCastedExpression__Group__1 : rule__XCastedExpression__Group__1__Impl ; - public final void rule__XCastedExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6518:1: ( rule__XCastedExpression__Group__1__Impl ) - // InternalEntities.g:6519:2: rule__XCastedExpression__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group__1" - - - // $ANTLR start "rule__XCastedExpression__Group__1__Impl" - // InternalEntities.g:6525:1: rule__XCastedExpression__Group__1__Impl : ( ( rule__XCastedExpression__Group_1__0 )* ) ; - public final void rule__XCastedExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6529:1: ( ( ( rule__XCastedExpression__Group_1__0 )* ) ) - // InternalEntities.g:6530:1: ( ( rule__XCastedExpression__Group_1__0 )* ) - { - // InternalEntities.g:6530:1: ( ( rule__XCastedExpression__Group_1__0 )* ) - // InternalEntities.g:6531:2: ( rule__XCastedExpression__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getGroup_1()); - } - // InternalEntities.g:6532:2: ( rule__XCastedExpression__Group_1__0 )* - loop61: - do { - int alt61=2; - int LA61_0 = input.LA(1); - - if ( (LA61_0==61) ) { - int LA61_2 = input.LA(2); - - if ( (synpred104_InternalEntities()) ) { - alt61=1; - } - - - } - - - switch (alt61) { - case 1 : - // InternalEntities.g:6532:3: rule__XCastedExpression__Group_1__0 - { - pushFollow(FOLLOW_46); - rule__XCastedExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop61; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group__1__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group_1__0" - // InternalEntities.g:6541:1: rule__XCastedExpression__Group_1__0 : rule__XCastedExpression__Group_1__0__Impl rule__XCastedExpression__Group_1__1 ; - public final void rule__XCastedExpression__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6545:1: ( rule__XCastedExpression__Group_1__0__Impl rule__XCastedExpression__Group_1__1 ) - // InternalEntities.g:6546:2: rule__XCastedExpression__Group_1__0__Impl rule__XCastedExpression__Group_1__1 - { - pushFollow(FOLLOW_14); - rule__XCastedExpression__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1__0" - - - // $ANTLR start "rule__XCastedExpression__Group_1__0__Impl" - // InternalEntities.g:6553:1: rule__XCastedExpression__Group_1__0__Impl : ( ( rule__XCastedExpression__Group_1_0__0 ) ) ; - public final void rule__XCastedExpression__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6557:1: ( ( ( rule__XCastedExpression__Group_1_0__0 ) ) ) - // InternalEntities.g:6558:1: ( ( rule__XCastedExpression__Group_1_0__0 ) ) - { - // InternalEntities.g:6558:1: ( ( rule__XCastedExpression__Group_1_0__0 ) ) - // InternalEntities.g:6559:2: ( rule__XCastedExpression__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getGroup_1_0()); - } - // InternalEntities.g:6560:2: ( rule__XCastedExpression__Group_1_0__0 ) - // InternalEntities.g:6560:3: rule__XCastedExpression__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1__0__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group_1__1" - // InternalEntities.g:6568:1: rule__XCastedExpression__Group_1__1 : rule__XCastedExpression__Group_1__1__Impl ; - public final void rule__XCastedExpression__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6572:1: ( rule__XCastedExpression__Group_1__1__Impl ) - // InternalEntities.g:6573:2: rule__XCastedExpression__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1__1" - - - // $ANTLR start "rule__XCastedExpression__Group_1__1__Impl" - // InternalEntities.g:6579:1: rule__XCastedExpression__Group_1__1__Impl : ( ( rule__XCastedExpression__TypeAssignment_1_1 ) ) ; - public final void rule__XCastedExpression__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6583:1: ( ( ( rule__XCastedExpression__TypeAssignment_1_1 ) ) ) - // InternalEntities.g:6584:1: ( ( rule__XCastedExpression__TypeAssignment_1_1 ) ) - { - // InternalEntities.g:6584:1: ( ( rule__XCastedExpression__TypeAssignment_1_1 ) ) - // InternalEntities.g:6585:2: ( rule__XCastedExpression__TypeAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); - } - // InternalEntities.g:6586:2: ( rule__XCastedExpression__TypeAssignment_1_1 ) - // InternalEntities.g:6586:3: rule__XCastedExpression__TypeAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__TypeAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getTypeAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1__1__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group_1_0__0" - // InternalEntities.g:6595:1: rule__XCastedExpression__Group_1_0__0 : rule__XCastedExpression__Group_1_0__0__Impl ; - public final void rule__XCastedExpression__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6599:1: ( rule__XCastedExpression__Group_1_0__0__Impl ) - // InternalEntities.g:6600:2: rule__XCastedExpression__Group_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1_0__0" - - - // $ANTLR start "rule__XCastedExpression__Group_1_0__0__Impl" - // InternalEntities.g:6606:1: rule__XCastedExpression__Group_1_0__0__Impl : ( ( rule__XCastedExpression__Group_1_0_0__0 ) ) ; - public final void rule__XCastedExpression__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6610:1: ( ( ( rule__XCastedExpression__Group_1_0_0__0 ) ) ) - // InternalEntities.g:6611:1: ( ( rule__XCastedExpression__Group_1_0_0__0 ) ) - { - // InternalEntities.g:6611:1: ( ( rule__XCastedExpression__Group_1_0_0__0 ) ) - // InternalEntities.g:6612:2: ( rule__XCastedExpression__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getGroup_1_0_0()); - } - // InternalEntities.g:6613:2: ( rule__XCastedExpression__Group_1_0_0__0 ) - // InternalEntities.g:6613:3: rule__XCastedExpression__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group_1_0_0__0" - // InternalEntities.g:6622:1: rule__XCastedExpression__Group_1_0_0__0 : rule__XCastedExpression__Group_1_0_0__0__Impl rule__XCastedExpression__Group_1_0_0__1 ; - public final void rule__XCastedExpression__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6626:1: ( rule__XCastedExpression__Group_1_0_0__0__Impl rule__XCastedExpression__Group_1_0_0__1 ) - // InternalEntities.g:6627:2: rule__XCastedExpression__Group_1_0_0__0__Impl rule__XCastedExpression__Group_1_0_0__1 - { - pushFollow(FOLLOW_45); - rule__XCastedExpression__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1_0_0__0" - - - // $ANTLR start "rule__XCastedExpression__Group_1_0_0__0__Impl" - // InternalEntities.g:6634:1: rule__XCastedExpression__Group_1_0_0__0__Impl : ( () ) ; - public final void rule__XCastedExpression__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6638:1: ( ( () ) ) - // InternalEntities.g:6639:1: ( () ) - { - // InternalEntities.g:6639:1: ( () ) - // InternalEntities.g:6640:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0()); - } - // InternalEntities.g:6641:2: () - // InternalEntities.g:6641:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XCastedExpression__Group_1_0_0__1" - // InternalEntities.g:6649:1: rule__XCastedExpression__Group_1_0_0__1 : rule__XCastedExpression__Group_1_0_0__1__Impl ; - public final void rule__XCastedExpression__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6653:1: ( rule__XCastedExpression__Group_1_0_0__1__Impl ) - // InternalEntities.g:6654:2: rule__XCastedExpression__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1_0_0__1" - - - // $ANTLR start "rule__XCastedExpression__Group_1_0_0__1__Impl" - // InternalEntities.g:6660:1: rule__XCastedExpression__Group_1_0_0__1__Impl : ( 'as' ) ; - public final void rule__XCastedExpression__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6664:1: ( ( 'as' ) ) - // InternalEntities.g:6665:1: ( 'as' ) - { - // InternalEntities.g:6665:1: ( 'as' ) - // InternalEntities.g:6666:2: 'as' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); - } - match(input,61,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XPostfixOperation__Group__0" - // InternalEntities.g:6676:1: rule__XPostfixOperation__Group__0 : rule__XPostfixOperation__Group__0__Impl rule__XPostfixOperation__Group__1 ; - public final void rule__XPostfixOperation__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6680:1: ( rule__XPostfixOperation__Group__0__Impl rule__XPostfixOperation__Group__1 ) - // InternalEntities.g:6681:2: rule__XPostfixOperation__Group__0__Impl rule__XPostfixOperation__Group__1 - { - pushFollow(FOLLOW_47); - rule__XPostfixOperation__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group__0" - - - // $ANTLR start "rule__XPostfixOperation__Group__0__Impl" - // InternalEntities.g:6688:1: rule__XPostfixOperation__Group__0__Impl : ( ruleXMemberFeatureCall ) ; - public final void rule__XPostfixOperation__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6692:1: ( ( ruleXMemberFeatureCall ) ) - // InternalEntities.g:6693:1: ( ruleXMemberFeatureCall ) - { - // InternalEntities.g:6693:1: ( ruleXMemberFeatureCall ) - // InternalEntities.g:6694:2: ruleXMemberFeatureCall - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXMemberFeatureCall(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group__0__Impl" - - - // $ANTLR start "rule__XPostfixOperation__Group__1" - // InternalEntities.g:6703:1: rule__XPostfixOperation__Group__1 : rule__XPostfixOperation__Group__1__Impl ; - public final void rule__XPostfixOperation__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6707:1: ( rule__XPostfixOperation__Group__1__Impl ) - // InternalEntities.g:6708:2: rule__XPostfixOperation__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group__1" - - - // $ANTLR start "rule__XPostfixOperation__Group__1__Impl" - // InternalEntities.g:6714:1: rule__XPostfixOperation__Group__1__Impl : ( ( rule__XPostfixOperation__Group_1__0 )? ) ; - public final void rule__XPostfixOperation__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6718:1: ( ( ( rule__XPostfixOperation__Group_1__0 )? ) ) - // InternalEntities.g:6719:1: ( ( rule__XPostfixOperation__Group_1__0 )? ) - { - // InternalEntities.g:6719:1: ( ( rule__XPostfixOperation__Group_1__0 )? ) - // InternalEntities.g:6720:2: ( rule__XPostfixOperation__Group_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getGroup_1()); - } - // InternalEntities.g:6721:2: ( rule__XPostfixOperation__Group_1__0 )? - int alt62=2; - int LA62_0 = input.LA(1); - - if ( (LA62_0==41) ) { - int LA62_1 = input.LA(2); - - if ( (synpred105_InternalEntities()) ) { - alt62=1; - } - } - else if ( (LA62_0==42) ) { - int LA62_2 = input.LA(2); - - if ( (synpred105_InternalEntities()) ) { - alt62=1; - } - } - switch (alt62) { - case 1 : - // InternalEntities.g:6721:3: rule__XPostfixOperation__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group__1__Impl" - - - // $ANTLR start "rule__XPostfixOperation__Group_1__0" - // InternalEntities.g:6730:1: rule__XPostfixOperation__Group_1__0 : rule__XPostfixOperation__Group_1__0__Impl ; - public final void rule__XPostfixOperation__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6734:1: ( rule__XPostfixOperation__Group_1__0__Impl ) - // InternalEntities.g:6735:2: rule__XPostfixOperation__Group_1__0__Impl - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group_1__0" - - - // $ANTLR start "rule__XPostfixOperation__Group_1__0__Impl" - // InternalEntities.g:6741:1: rule__XPostfixOperation__Group_1__0__Impl : ( ( rule__XPostfixOperation__Group_1_0__0 ) ) ; - public final void rule__XPostfixOperation__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6745:1: ( ( ( rule__XPostfixOperation__Group_1_0__0 ) ) ) - // InternalEntities.g:6746:1: ( ( rule__XPostfixOperation__Group_1_0__0 ) ) - { - // InternalEntities.g:6746:1: ( ( rule__XPostfixOperation__Group_1_0__0 ) ) - // InternalEntities.g:6747:2: ( rule__XPostfixOperation__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getGroup_1_0()); - } - // InternalEntities.g:6748:2: ( rule__XPostfixOperation__Group_1_0__0 ) - // InternalEntities.g:6748:3: rule__XPostfixOperation__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group_1__0__Impl" - - - // $ANTLR start "rule__XPostfixOperation__Group_1_0__0" - // InternalEntities.g:6757:1: rule__XPostfixOperation__Group_1_0__0 : rule__XPostfixOperation__Group_1_0__0__Impl rule__XPostfixOperation__Group_1_0__1 ; - public final void rule__XPostfixOperation__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6761:1: ( rule__XPostfixOperation__Group_1_0__0__Impl rule__XPostfixOperation__Group_1_0__1 ) - // InternalEntities.g:6762:2: rule__XPostfixOperation__Group_1_0__0__Impl rule__XPostfixOperation__Group_1_0__1 - { - pushFollow(FOLLOW_47); - rule__XPostfixOperation__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group_1_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group_1_0__0" - - - // $ANTLR start "rule__XPostfixOperation__Group_1_0__0__Impl" - // InternalEntities.g:6769:1: rule__XPostfixOperation__Group_1_0__0__Impl : ( () ) ; - public final void rule__XPostfixOperation__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6773:1: ( ( () ) ) - // InternalEntities.g:6774:1: ( () ) - { - // InternalEntities.g:6774:1: ( () ) - // InternalEntities.g:6775:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0()); - } - // InternalEntities.g:6776:2: () - // InternalEntities.g:6776:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XPostfixOperation__Group_1_0__1" - // InternalEntities.g:6784:1: rule__XPostfixOperation__Group_1_0__1 : rule__XPostfixOperation__Group_1_0__1__Impl ; - public final void rule__XPostfixOperation__Group_1_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6788:1: ( rule__XPostfixOperation__Group_1_0__1__Impl ) - // InternalEntities.g:6789:2: rule__XPostfixOperation__Group_1_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group_1_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group_1_0__1" - - - // $ANTLR start "rule__XPostfixOperation__Group_1_0__1__Impl" - // InternalEntities.g:6795:1: rule__XPostfixOperation__Group_1_0__1__Impl : ( ( rule__XPostfixOperation__FeatureAssignment_1_0_1 ) ) ; - public final void rule__XPostfixOperation__Group_1_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6799:1: ( ( ( rule__XPostfixOperation__FeatureAssignment_1_0_1 ) ) ) - // InternalEntities.g:6800:1: ( ( rule__XPostfixOperation__FeatureAssignment_1_0_1 ) ) - { - // InternalEntities.g:6800:1: ( ( rule__XPostfixOperation__FeatureAssignment_1_0_1 ) ) - // InternalEntities.g:6801:2: ( rule__XPostfixOperation__FeatureAssignment_1_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getFeatureAssignment_1_0_1()); - } - // InternalEntities.g:6802:2: ( rule__XPostfixOperation__FeatureAssignment_1_0_1 ) - // InternalEntities.g:6802:3: rule__XPostfixOperation__FeatureAssignment_1_0_1 - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__FeatureAssignment_1_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getFeatureAssignment_1_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__Group_1_0__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group__0" - // InternalEntities.g:6811:1: rule__XMemberFeatureCall__Group__0 : rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1 ; - public final void rule__XMemberFeatureCall__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6815:1: ( rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1 ) - // InternalEntities.g:6816:2: rule__XMemberFeatureCall__Group__0__Impl rule__XMemberFeatureCall__Group__1 - { - pushFollow(FOLLOW_48); - rule__XMemberFeatureCall__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group__0__Impl" - // InternalEntities.g:6823:1: rule__XMemberFeatureCall__Group__0__Impl : ( ruleXPrimaryExpression ) ; - public final void rule__XMemberFeatureCall__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6827:1: ( ( ruleXPrimaryExpression ) ) - // InternalEntities.g:6828:1: ( ruleXPrimaryExpression ) - { - // InternalEntities.g:6828:1: ( ruleXPrimaryExpression ) - // InternalEntities.g:6829:2: ruleXPrimaryExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXPrimaryExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group__1" - // InternalEntities.g:6838:1: rule__XMemberFeatureCall__Group__1 : rule__XMemberFeatureCall__Group__1__Impl ; - public final void rule__XMemberFeatureCall__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6842:1: ( rule__XMemberFeatureCall__Group__1__Impl ) - // InternalEntities.g:6843:2: rule__XMemberFeatureCall__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group__1__Impl" - // InternalEntities.g:6849:1: rule__XMemberFeatureCall__Group__1__Impl : ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) ; - public final void rule__XMemberFeatureCall__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6853:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) ) - // InternalEntities.g:6854:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) - { - // InternalEntities.g:6854:1: ( ( rule__XMemberFeatureCall__Alternatives_1 )* ) - // InternalEntities.g:6855:2: ( rule__XMemberFeatureCall__Alternatives_1 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); - } - // InternalEntities.g:6856:2: ( rule__XMemberFeatureCall__Alternatives_1 )* - loop63: - do { - int alt63=2; - switch ( input.LA(1) ) { - case 43: - { - int LA63_2 = input.LA(2); - - if ( (synpred106_InternalEntities()) ) { - alt63=1; - } - - - } - break; - case 85: - { - int LA63_3 = input.LA(2); - - if ( (synpred106_InternalEntities()) ) { - alt63=1; - } - - - } - break; - case 86: - { - int LA63_4 = input.LA(2); - - if ( (synpred106_InternalEntities()) ) { - alt63=1; - } - - - } - break; - - } - - switch (alt63) { - case 1 : - // InternalEntities.g:6856:3: rule__XMemberFeatureCall__Alternatives_1 - { - pushFollow(FOLLOW_49); - rule__XMemberFeatureCall__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop63; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0__0" - // InternalEntities.g:6865:1: rule__XMemberFeatureCall__Group_1_0__0 : rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1 ; - public final void rule__XMemberFeatureCall__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6869:1: ( rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1 ) - // InternalEntities.g:6870:2: rule__XMemberFeatureCall__Group_1_0__0__Impl rule__XMemberFeatureCall__Group_1_0__1 - { - pushFollow(FOLLOW_22); - rule__XMemberFeatureCall__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0__0__Impl" - // InternalEntities.g:6877:1: rule__XMemberFeatureCall__Group_1_0__0__Impl : ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6881:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) ) - // InternalEntities.g:6882:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) - { - // InternalEntities.g:6882:1: ( ( rule__XMemberFeatureCall__Group_1_0_0__0 ) ) - // InternalEntities.g:6883:2: ( rule__XMemberFeatureCall__Group_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); - } - // InternalEntities.g:6884:2: ( rule__XMemberFeatureCall__Group_1_0_0__0 ) - // InternalEntities.g:6884:3: rule__XMemberFeatureCall__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0__1" - // InternalEntities.g:6892:1: rule__XMemberFeatureCall__Group_1_0__1 : rule__XMemberFeatureCall__Group_1_0__1__Impl ; - public final void rule__XMemberFeatureCall__Group_1_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6896:1: ( rule__XMemberFeatureCall__Group_1_0__1__Impl ) - // InternalEntities.g:6897:2: rule__XMemberFeatureCall__Group_1_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0__1__Impl" - // InternalEntities.g:6903:1: rule__XMemberFeatureCall__Group_1_0__1__Impl : ( ( rule__XMemberFeatureCall__ValueAssignment_1_0_1 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6907:1: ( ( ( rule__XMemberFeatureCall__ValueAssignment_1_0_1 ) ) ) - // InternalEntities.g:6908:1: ( ( rule__XMemberFeatureCall__ValueAssignment_1_0_1 ) ) - { - // InternalEntities.g:6908:1: ( ( rule__XMemberFeatureCall__ValueAssignment_1_0_1 ) ) - // InternalEntities.g:6909:2: ( rule__XMemberFeatureCall__ValueAssignment_1_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getValueAssignment_1_0_1()); - } - // InternalEntities.g:6910:2: ( rule__XMemberFeatureCall__ValueAssignment_1_0_1 ) - // InternalEntities.g:6910:3: rule__XMemberFeatureCall__ValueAssignment_1_0_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__ValueAssignment_1_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getValueAssignment_1_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0__0" - // InternalEntities.g:6919:1: rule__XMemberFeatureCall__Group_1_0_0__0 : rule__XMemberFeatureCall__Group_1_0_0__0__Impl ; - public final void rule__XMemberFeatureCall__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6923:1: ( rule__XMemberFeatureCall__Group_1_0_0__0__Impl ) - // InternalEntities.g:6924:2: rule__XMemberFeatureCall__Group_1_0_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0__0__Impl" - // InternalEntities.g:6930:1: rule__XMemberFeatureCall__Group_1_0_0__0__Impl : ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6934:1: ( ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) ) - // InternalEntities.g:6935:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) - { - // InternalEntities.g:6935:1: ( ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) ) - // InternalEntities.g:6936:2: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); - } - // InternalEntities.g:6937:2: ( rule__XMemberFeatureCall__Group_1_0_0_0__0 ) - // InternalEntities.g:6937:3: rule__XMemberFeatureCall__Group_1_0_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__0" - // InternalEntities.g:6946:1: rule__XMemberFeatureCall__Group_1_0_0_0__0 : rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1 ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6950:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1 ) - // InternalEntities.g:6951:2: rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl rule__XMemberFeatureCall__Group_1_0_0_0__1 - { - pushFollow(FOLLOW_50); - rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl" - // InternalEntities.g:6958:1: rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl : ( () ) ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6962:1: ( ( () ) ) - // InternalEntities.g:6963:1: ( () ) - { - // InternalEntities.g:6963:1: ( () ) - // InternalEntities.g:6964:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0()); - } - // InternalEntities.g:6965:2: () - // InternalEntities.g:6965:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__1" - // InternalEntities.g:6973:1: rule__XMemberFeatureCall__Group_1_0_0_0__1 : rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2 ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6977:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2 ) - // InternalEntities.g:6978:2: rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl rule__XMemberFeatureCall__Group_1_0_0_0__2 - { - pushFollow(FOLLOW_20); - rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl" - // InternalEntities.g:6985:1: rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl : ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:6989:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) ) - // InternalEntities.g:6990:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) - { - // InternalEntities.g:6990:1: ( ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) ) - // InternalEntities.g:6991:2: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); - } - // InternalEntities.g:6992:2: ( rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 ) - // InternalEntities.g:6992:3: rule__XMemberFeatureCall__Alternatives_1_0_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Alternatives_1_0_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_0_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__2" - // InternalEntities.g:7000:1: rule__XMemberFeatureCall__Group_1_0_0_0__2 : rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7004:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 ) - // InternalEntities.g:7005:2: rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 - { - pushFollow(FOLLOW_21); - rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0_0__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__2" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl" - // InternalEntities.g:7012:1: rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl : ( ( rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7016:1: ( ( ( rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 ) ) ) - // InternalEntities.g:7017:1: ( ( rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 ) ) - { - // InternalEntities.g:7017:1: ( ( rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 ) ) - // InternalEntities.g:7018:2: ( rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_0_0_0_2()); - } - // InternalEntities.g:7019:2: ( rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 ) - // InternalEntities.g:7019:3: rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_0_0_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__3" - // InternalEntities.g:7027:1: rule__XMemberFeatureCall__Group_1_0_0_0__3 : rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7031:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl ) - // InternalEntities.g:7032:2: rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__3" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl" - // InternalEntities.g:7038:1: rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl : ( ruleOpSingleAssign ) ; - public final void rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7042:1: ( ( ruleOpSingleAssign ) ) - // InternalEntities.g:7043:1: ( ruleOpSingleAssign ) - { - // InternalEntities.g:7043:1: ( ruleOpSingleAssign ) - // InternalEntities.g:7044:2: ruleOpSingleAssign - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); - } - pushFollow(FOLLOW_2); - ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__0" - // InternalEntities.g:7054:1: rule__XMemberFeatureCall__Group_1_1__0 : rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1 ; - public final void rule__XMemberFeatureCall__Group_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7058:1: ( rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1 ) - // InternalEntities.g:7059:2: rule__XMemberFeatureCall__Group_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1__1 - { - pushFollow(FOLLOW_51); - rule__XMemberFeatureCall__Group_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__0__Impl" - // InternalEntities.g:7066:1: rule__XMemberFeatureCall__Group_1_1__0__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7070:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) ) - // InternalEntities.g:7071:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) - { - // InternalEntities.g:7071:1: ( ( rule__XMemberFeatureCall__Group_1_1_0__0 ) ) - // InternalEntities.g:7072:2: ( rule__XMemberFeatureCall__Group_1_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); - } - // InternalEntities.g:7073:2: ( rule__XMemberFeatureCall__Group_1_1_0__0 ) - // InternalEntities.g:7073:3: rule__XMemberFeatureCall__Group_1_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__1" - // InternalEntities.g:7081:1: rule__XMemberFeatureCall__Group_1_1__1 : rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 ; - public final void rule__XMemberFeatureCall__Group_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7085:1: ( rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 ) - // InternalEntities.g:7086:2: rule__XMemberFeatureCall__Group_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1__2 - { - pushFollow(FOLLOW_51); - rule__XMemberFeatureCall__Group_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__1__Impl" - // InternalEntities.g:7093:1: rule__XMemberFeatureCall__Group_1_1__1__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) ; - public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7097:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) ) - // InternalEntities.g:7098:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) - { - // InternalEntities.g:7098:1: ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) - // InternalEntities.g:7099:2: ( rule__XMemberFeatureCall__Group_1_1_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); - } - // InternalEntities.g:7100:2: ( rule__XMemberFeatureCall__Group_1_1_1__0 )? - int alt64=2; - int LA64_0 = input.LA(1); - - if ( (LA64_0==27) ) { - alt64=1; - } - switch (alt64) { - case 1 : - // InternalEntities.g:7100:3: rule__XMemberFeatureCall__Group_1_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__2" - // InternalEntities.g:7108:1: rule__XMemberFeatureCall__Group_1_1__2 : rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 ; - public final void rule__XMemberFeatureCall__Group_1_1__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7112:1: ( rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 ) - // InternalEntities.g:7113:2: rule__XMemberFeatureCall__Group_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1__3 - { - pushFollow(FOLLOW_52); - rule__XMemberFeatureCall__Group_1_1__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__2" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__2__Impl" - // InternalEntities.g:7120:1: rule__XMemberFeatureCall__Group_1_1__2__Impl : ( ( rule__XMemberFeatureCall__FeatureAssignment_1_1_2 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7124:1: ( ( ( rule__XMemberFeatureCall__FeatureAssignment_1_1_2 ) ) ) - // InternalEntities.g:7125:1: ( ( rule__XMemberFeatureCall__FeatureAssignment_1_1_2 ) ) - { - // InternalEntities.g:7125:1: ( ( rule__XMemberFeatureCall__FeatureAssignment_1_1_2 ) ) - // InternalEntities.g:7126:2: ( rule__XMemberFeatureCall__FeatureAssignment_1_1_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_1_2()); - } - // InternalEntities.g:7127:2: ( rule__XMemberFeatureCall__FeatureAssignment_1_1_2 ) - // InternalEntities.g:7127:3: rule__XMemberFeatureCall__FeatureAssignment_1_1_2 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__FeatureAssignment_1_1_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFeatureAssignment_1_1_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__2__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__3" - // InternalEntities.g:7135:1: rule__XMemberFeatureCall__Group_1_1__3 : rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4 ; - public final void rule__XMemberFeatureCall__Group_1_1__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7139:1: ( rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4 ) - // InternalEntities.g:7140:2: rule__XMemberFeatureCall__Group_1_1__3__Impl rule__XMemberFeatureCall__Group_1_1__4 - { - pushFollow(FOLLOW_52); - rule__XMemberFeatureCall__Group_1_1__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__3" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__3__Impl" - // InternalEntities.g:7147:1: rule__XMemberFeatureCall__Group_1_1__3__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) ; - public final void rule__XMemberFeatureCall__Group_1_1__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7151:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) ) - // InternalEntities.g:7152:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) - { - // InternalEntities.g:7152:1: ( ( rule__XMemberFeatureCall__Group_1_1_3__0 )? ) - // InternalEntities.g:7153:2: ( rule__XMemberFeatureCall__Group_1_1_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); - } - // InternalEntities.g:7154:2: ( rule__XMemberFeatureCall__Group_1_1_3__0 )? - int alt65=2; - alt65 = dfa65.predict(input); - switch (alt65) { - case 1 : - // InternalEntities.g:7154:3: rule__XMemberFeatureCall__Group_1_1_3__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__3__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__4" - // InternalEntities.g:7162:1: rule__XMemberFeatureCall__Group_1_1__4 : rule__XMemberFeatureCall__Group_1_1__4__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7166:1: ( rule__XMemberFeatureCall__Group_1_1__4__Impl ) - // InternalEntities.g:7167:2: rule__XMemberFeatureCall__Group_1_1__4__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__4" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1__4__Impl" - // InternalEntities.g:7173:1: rule__XMemberFeatureCall__Group_1_1__4__Impl : ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) ; - public final void rule__XMemberFeatureCall__Group_1_1__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7177:1: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) ) - // InternalEntities.g:7178:1: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) - { - // InternalEntities.g:7178:1: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) - // InternalEntities.g:7179:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_4()); - } - // InternalEntities.g:7180:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? - int alt66=2; - alt66 = dfa66.predict(input); - switch (alt66) { - case 1 : - // InternalEntities.g:7180:3: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1__4__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0__0" - // InternalEntities.g:7189:1: rule__XMemberFeatureCall__Group_1_1_0__0 : rule__XMemberFeatureCall__Group_1_1_0__0__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7193:1: ( rule__XMemberFeatureCall__Group_1_1_0__0__Impl ) - // InternalEntities.g:7194:2: rule__XMemberFeatureCall__Group_1_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_0__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0__0__Impl" - // InternalEntities.g:7200:1: rule__XMemberFeatureCall__Group_1_1_0__0__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7204:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) ) - // InternalEntities.g:7205:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) - { - // InternalEntities.g:7205:1: ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) - // InternalEntities.g:7206:2: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); - } - // InternalEntities.g:7207:2: ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) - // InternalEntities.g:7207:3: rule__XMemberFeatureCall__Group_1_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_0__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0_0__0" - // InternalEntities.g:7216:1: rule__XMemberFeatureCall__Group_1_1_0_0__0 : rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1 ; - public final void rule__XMemberFeatureCall__Group_1_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7220:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1 ) - // InternalEntities.g:7221:2: rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl rule__XMemberFeatureCall__Group_1_1_0_0__1 - { - pushFollow(FOLLOW_48); - rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_0_0__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl" - // InternalEntities.g:7228:1: rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl : ( () ) ; - public final void rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7232:1: ( ( () ) ) - // InternalEntities.g:7233:1: ( () ) - { - // InternalEntities.g:7233:1: ( () ) - // InternalEntities.g:7234:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); - } - // InternalEntities.g:7235:2: () - // InternalEntities.g:7235:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0_0__1" - // InternalEntities.g:7243:1: rule__XMemberFeatureCall__Group_1_1_0_0__1 : rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7247:1: ( rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl ) - // InternalEntities.g:7248:2: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_0_0__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl" - // InternalEntities.g:7254:1: rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl : ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7258:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) ) - // InternalEntities.g:7259:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) - { - // InternalEntities.g:7259:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) ) - // InternalEntities.g:7260:2: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); - } - // InternalEntities.g:7261:2: ( rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 ) - // InternalEntities.g:7261:3: rule__XMemberFeatureCall__Alternatives_1_1_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Alternatives_1_1_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_0_0__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__0" - // InternalEntities.g:7270:1: rule__XMemberFeatureCall__Group_1_1_1__0 : rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1 ; - public final void rule__XMemberFeatureCall__Group_1_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7274:1: ( rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1 ) - // InternalEntities.g:7275:2: rule__XMemberFeatureCall__Group_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_1__1 - { - pushFollow(FOLLOW_53); - rule__XMemberFeatureCall__Group_1_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__0__Impl" - // InternalEntities.g:7282:1: rule__XMemberFeatureCall__Group_1_1_1__0__Impl : ( '<' ) ; - public final void rule__XMemberFeatureCall__Group_1_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7286:1: ( ( '<' ) ) - // InternalEntities.g:7287:1: ( '<' ) - { - // InternalEntities.g:7287:1: ( '<' ) - // InternalEntities.g:7288:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__1" - // InternalEntities.g:7297:1: rule__XMemberFeatureCall__Group_1_1_1__1 : rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2 ; - public final void rule__XMemberFeatureCall__Group_1_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7301:1: ( rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2 ) - // InternalEntities.g:7302:2: rule__XMemberFeatureCall__Group_1_1_1__1__Impl rule__XMemberFeatureCall__Group_1_1_1__2 - { - pushFollow(FOLLOW_54); - rule__XMemberFeatureCall__Group_1_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__1__Impl" - // InternalEntities.g:7309:1: rule__XMemberFeatureCall__Group_1_1_1__1__Impl : ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7313:1: ( ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 ) ) ) - // InternalEntities.g:7314:1: ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 ) ) - { - // InternalEntities.g:7314:1: ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 ) ) - // InternalEntities.g:7315:2: ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_1()); - } - // InternalEntities.g:7316:2: ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 ) - // InternalEntities.g:7316:3: rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__2" - // InternalEntities.g:7324:1: rule__XMemberFeatureCall__Group_1_1_1__2 : rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 ; - public final void rule__XMemberFeatureCall__Group_1_1_1__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7328:1: ( rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 ) - // InternalEntities.g:7329:2: rule__XMemberFeatureCall__Group_1_1_1__2__Impl rule__XMemberFeatureCall__Group_1_1_1__3 - { - pushFollow(FOLLOW_54); - rule__XMemberFeatureCall__Group_1_1_1__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__2" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__2__Impl" - // InternalEntities.g:7336:1: rule__XMemberFeatureCall__Group_1_1_1__2__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) ; - public final void rule__XMemberFeatureCall__Group_1_1_1__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7340:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) ) - // InternalEntities.g:7341:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) - { - // InternalEntities.g:7341:1: ( ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* ) - // InternalEntities.g:7342:2: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); - } - // InternalEntities.g:7343:2: ( rule__XMemberFeatureCall__Group_1_1_1_2__0 )* - loop67: - do { - int alt67=2; - int LA67_0 = input.LA(1); - - if ( (LA67_0==59) ) { - alt67=1; - } - - - switch (alt67) { - case 1 : - // InternalEntities.g:7343:3: rule__XMemberFeatureCall__Group_1_1_1_2__0 - { - pushFollow(FOLLOW_19); - rule__XMemberFeatureCall__Group_1_1_1_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop67; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_1_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__2__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__3" - // InternalEntities.g:7351:1: rule__XMemberFeatureCall__Group_1_1_1__3 : rule__XMemberFeatureCall__Group_1_1_1__3__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_1__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7355:1: ( rule__XMemberFeatureCall__Group_1_1_1__3__Impl ) - // InternalEntities.g:7356:2: rule__XMemberFeatureCall__Group_1_1_1__3__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__3" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1__3__Impl" - // InternalEntities.g:7362:1: rule__XMemberFeatureCall__Group_1_1_1__3__Impl : ( '>' ) ; - public final void rule__XMemberFeatureCall__Group_1_1_1__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7366:1: ( ( '>' ) ) - // InternalEntities.g:7367:1: ( '>' ) - { - // InternalEntities.g:7367:1: ( '>' ) - // InternalEntities.g:7368:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__3__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1_2__0" - // InternalEntities.g:7378:1: rule__XMemberFeatureCall__Group_1_1_1_2__0 : rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 ; - public final void rule__XMemberFeatureCall__Group_1_1_1_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7382:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 ) - // InternalEntities.g:7383:2: rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl rule__XMemberFeatureCall__Group_1_1_1_2__1 - { - pushFollow(FOLLOW_53); - rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1_2__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl" - // InternalEntities.g:7390:1: rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl : ( ',' ) ; - public final void rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7394:1: ( ( ',' ) ) - // InternalEntities.g:7395:1: ( ',' ) - { - // InternalEntities.g:7395:1: ( ',' ) - // InternalEntities.g:7396:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1_2__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1_2__1" - // InternalEntities.g:7405:1: rule__XMemberFeatureCall__Group_1_1_1_2__1 : rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7409:1: ( rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl ) - // InternalEntities.g:7410:2: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1_2__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl" - // InternalEntities.g:7416:1: rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl : ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7420:1: ( ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 ) ) ) - // InternalEntities.g:7421:1: ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 ) ) - { - // InternalEntities.g:7421:1: ( ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 ) ) - // InternalEntities.g:7422:2: ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_2_1()); - } - // InternalEntities.g:7423:2: ( rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 ) - // InternalEntities.g:7423:3: rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsAssignment_1_1_1_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_1_2__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3__0" - // InternalEntities.g:7432:1: rule__XMemberFeatureCall__Group_1_1_3__0 : rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1 ; - public final void rule__XMemberFeatureCall__Group_1_1_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7436:1: ( rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1 ) - // InternalEntities.g:7437:2: rule__XMemberFeatureCall__Group_1_1_3__0__Impl rule__XMemberFeatureCall__Group_1_1_3__1 - { - pushFollow(FOLLOW_55); - rule__XMemberFeatureCall__Group_1_1_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3__0__Impl" - // InternalEntities.g:7444:1: rule__XMemberFeatureCall__Group_1_1_3__0__Impl : ( ( rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7448:1: ( ( ( rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 ) ) ) - // InternalEntities.g:7449:1: ( ( rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 ) ) - { - // InternalEntities.g:7449:1: ( ( rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 ) ) - // InternalEntities.g:7450:2: ( rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallAssignment_1_1_3_0()); - } - // InternalEntities.g:7451:2: ( rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 ) - // InternalEntities.g:7451:3: rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallAssignment_1_1_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3__1" - // InternalEntities.g:7459:1: rule__XMemberFeatureCall__Group_1_1_3__1 : rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2 ; - public final void rule__XMemberFeatureCall__Group_1_1_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7463:1: ( rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2 ) - // InternalEntities.g:7464:2: rule__XMemberFeatureCall__Group_1_1_3__1__Impl rule__XMemberFeatureCall__Group_1_1_3__2 - { - pushFollow(FOLLOW_55); - rule__XMemberFeatureCall__Group_1_1_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3__1__Impl" - // InternalEntities.g:7471:1: rule__XMemberFeatureCall__Group_1_1_3__1__Impl : ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7475:1: ( ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) ) - // InternalEntities.g:7476:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) - { - // InternalEntities.g:7476:1: ( ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? ) - // InternalEntities.g:7477:2: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); - } - // InternalEntities.g:7478:2: ( rule__XMemberFeatureCall__Alternatives_1_1_3_1 )? - int alt68=2; - int LA68_0 = input.LA(1); - - if ( ((LA68_0>=RULE_ID && LA68_0<=RULE_STRING)||LA68_0==27||LA68_0==31||(LA68_0>=34 && LA68_0<=35)||LA68_0==40||(LA68_0>=45 && LA68_0<=50)||LA68_0==52||LA68_0==57||(LA68_0>=62 && LA68_0<=63)||LA68_0==66||LA68_0==68||(LA68_0>=71 && LA68_0<=79)||LA68_0==81||LA68_0==87||LA68_0==89) ) { - alt68=1; - } - switch (alt68) { - case 1 : - // InternalEntities.g:7478:3: rule__XMemberFeatureCall__Alternatives_1_1_3_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Alternatives_1_1_3_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getAlternatives_1_1_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3__2" - // InternalEntities.g:7486:1: rule__XMemberFeatureCall__Group_1_1_3__2 : rule__XMemberFeatureCall__Group_1_1_3__2__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_3__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7490:1: ( rule__XMemberFeatureCall__Group_1_1_3__2__Impl ) - // InternalEntities.g:7491:2: rule__XMemberFeatureCall__Group_1_1_3__2__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3__2" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3__2__Impl" - // InternalEntities.g:7497:1: rule__XMemberFeatureCall__Group_1_1_3__2__Impl : ( ')' ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7501:1: ( ( ')' ) ) - // InternalEntities.g:7502:1: ( ')' ) - { - // InternalEntities.g:7502:1: ( ')' ) - // InternalEntities.g:7503:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3__2__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1__0" - // InternalEntities.g:7513:1: rule__XMemberFeatureCall__Group_1_1_3_1_1__0 : rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1 ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7517:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1 ) - // InternalEntities.g:7518:2: rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1__1 - { - pushFollow(FOLLOW_18); - rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl" - // InternalEntities.g:7525:1: rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl : ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7529:1: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 ) ) ) - // InternalEntities.g:7530:1: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 ) ) - { - // InternalEntities.g:7530:1: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 ) ) - // InternalEntities.g:7531:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_0()); - } - // InternalEntities.g:7532:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 ) - // InternalEntities.g:7532:3: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1__1" - // InternalEntities.g:7540:1: rule__XMemberFeatureCall__Group_1_1_3_1_1__1 : rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7544:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl ) - // InternalEntities.g:7545:2: rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl" - // InternalEntities.g:7551:1: rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7555:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) ) - // InternalEntities.g:7556:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) - { - // InternalEntities.g:7556:1: ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* ) - // InternalEntities.g:7557:2: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); - } - // InternalEntities.g:7558:2: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 )* - loop69: - do { - int alt69=2; - int LA69_0 = input.LA(1); - - if ( (LA69_0==59) ) { - alt69=1; - } - - - switch (alt69) { - case 1 : - // InternalEntities.g:7558:3: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 - { - pushFollow(FOLLOW_19); - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop69; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getGroup_1_1_3_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1__1__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0" - // InternalEntities.g:7567:1: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0 : rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7571:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 ) - // InternalEntities.g:7572:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 - { - pushFollow(FOLLOW_56); - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl" - // InternalEntities.g:7579:1: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl : ( ',' ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7583:1: ( ( ',' ) ) - // InternalEntities.g:7584:1: ( ',' ) - { - // InternalEntities.g:7584:1: ( ',' ) - // InternalEntities.g:7585:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__0__Impl" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1" - // InternalEntities.g:7594:1: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1 : rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7598:1: ( rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl ) - // InternalEntities.g:7599:2: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1" - - - // $ANTLR start "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl" - // InternalEntities.g:7605:1: rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl : ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 ) ) ; - public final void rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7609:1: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 ) ) ) - // InternalEntities.g:7610:1: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 ) ) - { - // InternalEntities.g:7610:1: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 ) ) - // InternalEntities.g:7611:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_1_1()); - } - // InternalEntities.g:7612:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 ) - // InternalEntities.g:7612:3: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__Group_1_1_3_1_1_1__1__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group__0" - // InternalEntities.g:7621:1: rule__XSetLiteral__Group__0 : rule__XSetLiteral__Group__0__Impl rule__XSetLiteral__Group__1 ; - public final void rule__XSetLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7625:1: ( rule__XSetLiteral__Group__0__Impl rule__XSetLiteral__Group__1 ) - // InternalEntities.g:7626:2: rule__XSetLiteral__Group__0__Impl rule__XSetLiteral__Group__1 - { - pushFollow(FOLLOW_57); - rule__XSetLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__0" - - - // $ANTLR start "rule__XSetLiteral__Group__0__Impl" - // InternalEntities.g:7633:1: rule__XSetLiteral__Group__0__Impl : ( () ) ; - public final void rule__XSetLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7637:1: ( ( () ) ) - // InternalEntities.g:7638:1: ( () ) - { - // InternalEntities.g:7638:1: ( () ) - // InternalEntities.g:7639:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0()); - } - // InternalEntities.g:7640:2: () - // InternalEntities.g:7640:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group__1" - // InternalEntities.g:7648:1: rule__XSetLiteral__Group__1 : rule__XSetLiteral__Group__1__Impl rule__XSetLiteral__Group__2 ; - public final void rule__XSetLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7652:1: ( rule__XSetLiteral__Group__1__Impl rule__XSetLiteral__Group__2 ) - // InternalEntities.g:7653:2: rule__XSetLiteral__Group__1__Impl rule__XSetLiteral__Group__2 - { - pushFollow(FOLLOW_8); - rule__XSetLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__1" - - - // $ANTLR start "rule__XSetLiteral__Group__1__Impl" - // InternalEntities.g:7660:1: rule__XSetLiteral__Group__1__Impl : ( '#' ) ; - public final void rule__XSetLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7664:1: ( ( '#' ) ) - // InternalEntities.g:7665:1: ( '#' ) - { - // InternalEntities.g:7665:1: ( '#' ) - // InternalEntities.g:7666:2: '#' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); - } - match(input,62,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group__2" - // InternalEntities.g:7675:1: rule__XSetLiteral__Group__2 : rule__XSetLiteral__Group__2__Impl rule__XSetLiteral__Group__3 ; - public final void rule__XSetLiteral__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7679:1: ( rule__XSetLiteral__Group__2__Impl rule__XSetLiteral__Group__3 ) - // InternalEntities.g:7680:2: rule__XSetLiteral__Group__2__Impl rule__XSetLiteral__Group__3 - { - pushFollow(FOLLOW_58); - rule__XSetLiteral__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__2" - - - // $ANTLR start "rule__XSetLiteral__Group__2__Impl" - // InternalEntities.g:7687:1: rule__XSetLiteral__Group__2__Impl : ( '{' ) ; - public final void rule__XSetLiteral__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7691:1: ( ( '{' ) ) - // InternalEntities.g:7692:1: ( '{' ) - { - // InternalEntities.g:7692:1: ( '{' ) - // InternalEntities.g:7693:2: '{' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); - } - match(input,52,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__2__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group__3" - // InternalEntities.g:7702:1: rule__XSetLiteral__Group__3 : rule__XSetLiteral__Group__3__Impl rule__XSetLiteral__Group__4 ; - public final void rule__XSetLiteral__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7706:1: ( rule__XSetLiteral__Group__3__Impl rule__XSetLiteral__Group__4 ) - // InternalEntities.g:7707:2: rule__XSetLiteral__Group__3__Impl rule__XSetLiteral__Group__4 - { - pushFollow(FOLLOW_58); - rule__XSetLiteral__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__3" - - - // $ANTLR start "rule__XSetLiteral__Group__3__Impl" - // InternalEntities.g:7714:1: rule__XSetLiteral__Group__3__Impl : ( ( rule__XSetLiteral__Group_3__0 )? ) ; - public final void rule__XSetLiteral__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7718:1: ( ( ( rule__XSetLiteral__Group_3__0 )? ) ) - // InternalEntities.g:7719:1: ( ( rule__XSetLiteral__Group_3__0 )? ) - { - // InternalEntities.g:7719:1: ( ( rule__XSetLiteral__Group_3__0 )? ) - // InternalEntities.g:7720:2: ( rule__XSetLiteral__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getGroup_3()); - } - // InternalEntities.g:7721:2: ( rule__XSetLiteral__Group_3__0 )? - int alt70=2; - int LA70_0 = input.LA(1); - - if ( ((LA70_0>=RULE_ID && LA70_0<=RULE_STRING)||LA70_0==27||(LA70_0>=34 && LA70_0<=35)||LA70_0==40||(LA70_0>=45 && LA70_0<=50)||LA70_0==52||LA70_0==57||(LA70_0>=62 && LA70_0<=63)||LA70_0==66||LA70_0==68||(LA70_0>=71 && LA70_0<=79)||LA70_0==81||LA70_0==89) ) { - alt70=1; - } - switch (alt70) { - case 1 : - // InternalEntities.g:7721:3: rule__XSetLiteral__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__3__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group__4" - // InternalEntities.g:7729:1: rule__XSetLiteral__Group__4 : rule__XSetLiteral__Group__4__Impl ; - public final void rule__XSetLiteral__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7733:1: ( rule__XSetLiteral__Group__4__Impl ) - // InternalEntities.g:7734:2: rule__XSetLiteral__Group__4__Impl - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__4" - - - // $ANTLR start "rule__XSetLiteral__Group__4__Impl" - // InternalEntities.g:7740:1: rule__XSetLiteral__Group__4__Impl : ( '}' ) ; - public final void rule__XSetLiteral__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7744:1: ( ( '}' ) ) - // InternalEntities.g:7745:1: ( '}' ) - { - // InternalEntities.g:7745:1: ( '}' ) - // InternalEntities.g:7746:2: '}' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); - } - match(input,53,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group__4__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group_3__0" - // InternalEntities.g:7756:1: rule__XSetLiteral__Group_3__0 : rule__XSetLiteral__Group_3__0__Impl rule__XSetLiteral__Group_3__1 ; - public final void rule__XSetLiteral__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7760:1: ( rule__XSetLiteral__Group_3__0__Impl rule__XSetLiteral__Group_3__1 ) - // InternalEntities.g:7761:2: rule__XSetLiteral__Group_3__0__Impl rule__XSetLiteral__Group_3__1 - { - pushFollow(FOLLOW_18); - rule__XSetLiteral__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3__0" - - - // $ANTLR start "rule__XSetLiteral__Group_3__0__Impl" - // InternalEntities.g:7768:1: rule__XSetLiteral__Group_3__0__Impl : ( ( rule__XSetLiteral__ElementsAssignment_3_0 ) ) ; - public final void rule__XSetLiteral__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7772:1: ( ( ( rule__XSetLiteral__ElementsAssignment_3_0 ) ) ) - // InternalEntities.g:7773:1: ( ( rule__XSetLiteral__ElementsAssignment_3_0 ) ) - { - // InternalEntities.g:7773:1: ( ( rule__XSetLiteral__ElementsAssignment_3_0 ) ) - // InternalEntities.g:7774:2: ( rule__XSetLiteral__ElementsAssignment_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_0()); - } - // InternalEntities.g:7775:2: ( rule__XSetLiteral__ElementsAssignment_3_0 ) - // InternalEntities.g:7775:3: rule__XSetLiteral__ElementsAssignment_3_0 - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__ElementsAssignment_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3__0__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group_3__1" - // InternalEntities.g:7783:1: rule__XSetLiteral__Group_3__1 : rule__XSetLiteral__Group_3__1__Impl ; - public final void rule__XSetLiteral__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7787:1: ( rule__XSetLiteral__Group_3__1__Impl ) - // InternalEntities.g:7788:2: rule__XSetLiteral__Group_3__1__Impl - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3__1" - - - // $ANTLR start "rule__XSetLiteral__Group_3__1__Impl" - // InternalEntities.g:7794:1: rule__XSetLiteral__Group_3__1__Impl : ( ( rule__XSetLiteral__Group_3_1__0 )* ) ; - public final void rule__XSetLiteral__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7798:1: ( ( ( rule__XSetLiteral__Group_3_1__0 )* ) ) - // InternalEntities.g:7799:1: ( ( rule__XSetLiteral__Group_3_1__0 )* ) - { - // InternalEntities.g:7799:1: ( ( rule__XSetLiteral__Group_3_1__0 )* ) - // InternalEntities.g:7800:2: ( rule__XSetLiteral__Group_3_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getGroup_3_1()); - } - // InternalEntities.g:7801:2: ( rule__XSetLiteral__Group_3_1__0 )* - loop71: - do { - int alt71=2; - int LA71_0 = input.LA(1); - - if ( (LA71_0==59) ) { - alt71=1; - } - - - switch (alt71) { - case 1 : - // InternalEntities.g:7801:3: rule__XSetLiteral__Group_3_1__0 - { - pushFollow(FOLLOW_19); - rule__XSetLiteral__Group_3_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop71; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getGroup_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3__1__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group_3_1__0" - // InternalEntities.g:7810:1: rule__XSetLiteral__Group_3_1__0 : rule__XSetLiteral__Group_3_1__0__Impl rule__XSetLiteral__Group_3_1__1 ; - public final void rule__XSetLiteral__Group_3_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7814:1: ( rule__XSetLiteral__Group_3_1__0__Impl rule__XSetLiteral__Group_3_1__1 ) - // InternalEntities.g:7815:2: rule__XSetLiteral__Group_3_1__0__Impl rule__XSetLiteral__Group_3_1__1 - { - pushFollow(FOLLOW_56); - rule__XSetLiteral__Group_3_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group_3_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3_1__0" - - - // $ANTLR start "rule__XSetLiteral__Group_3_1__0__Impl" - // InternalEntities.g:7822:1: rule__XSetLiteral__Group_3_1__0__Impl : ( ',' ) ; - public final void rule__XSetLiteral__Group_3_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7826:1: ( ( ',' ) ) - // InternalEntities.g:7827:1: ( ',' ) - { - // InternalEntities.g:7827:1: ( ',' ) - // InternalEntities.g:7828:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3_1__0__Impl" - - - // $ANTLR start "rule__XSetLiteral__Group_3_1__1" - // InternalEntities.g:7837:1: rule__XSetLiteral__Group_3_1__1 : rule__XSetLiteral__Group_3_1__1__Impl ; - public final void rule__XSetLiteral__Group_3_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7841:1: ( rule__XSetLiteral__Group_3_1__1__Impl ) - // InternalEntities.g:7842:2: rule__XSetLiteral__Group_3_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__Group_3_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3_1__1" - - - // $ANTLR start "rule__XSetLiteral__Group_3_1__1__Impl" - // InternalEntities.g:7848:1: rule__XSetLiteral__Group_3_1__1__Impl : ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) ) ; - public final void rule__XSetLiteral__Group_3_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7852:1: ( ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) ) ) - // InternalEntities.g:7853:1: ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) ) - { - // InternalEntities.g:7853:1: ( ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) ) - // InternalEntities.g:7854:2: ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1()); - } - // InternalEntities.g:7855:2: ( rule__XSetLiteral__ElementsAssignment_3_1_1 ) - // InternalEntities.g:7855:3: rule__XSetLiteral__ElementsAssignment_3_1_1 - { - pushFollow(FOLLOW_2); - rule__XSetLiteral__ElementsAssignment_3_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getElementsAssignment_3_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__Group_3_1__1__Impl" - - - // $ANTLR start "rule__XListLiteral__Group__0" - // InternalEntities.g:7864:1: rule__XListLiteral__Group__0 : rule__XListLiteral__Group__0__Impl rule__XListLiteral__Group__1 ; - public final void rule__XListLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7868:1: ( rule__XListLiteral__Group__0__Impl rule__XListLiteral__Group__1 ) - // InternalEntities.g:7869:2: rule__XListLiteral__Group__0__Impl rule__XListLiteral__Group__1 - { - pushFollow(FOLLOW_57); - rule__XListLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XListLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__0" - - - // $ANTLR start "rule__XListLiteral__Group__0__Impl" - // InternalEntities.g:7876:1: rule__XListLiteral__Group__0__Impl : ( () ) ; - public final void rule__XListLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7880:1: ( ( () ) ) - // InternalEntities.g:7881:1: ( () ) - { - // InternalEntities.g:7881:1: ( () ) - // InternalEntities.g:7882:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getXListLiteralAction_0()); - } - // InternalEntities.g:7883:2: () - // InternalEntities.g:7883:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getXListLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XListLiteral__Group__1" - // InternalEntities.g:7891:1: rule__XListLiteral__Group__1 : rule__XListLiteral__Group__1__Impl rule__XListLiteral__Group__2 ; - public final void rule__XListLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7895:1: ( rule__XListLiteral__Group__1__Impl rule__XListLiteral__Group__2 ) - // InternalEntities.g:7896:2: rule__XListLiteral__Group__1__Impl rule__XListLiteral__Group__2 - { - pushFollow(FOLLOW_59); - rule__XListLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XListLiteral__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__1" - - - // $ANTLR start "rule__XListLiteral__Group__1__Impl" - // InternalEntities.g:7903:1: rule__XListLiteral__Group__1__Impl : ( '#' ) ; - public final void rule__XListLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7907:1: ( ( '#' ) ) - // InternalEntities.g:7908:1: ( '#' ) - { - // InternalEntities.g:7908:1: ( '#' ) - // InternalEntities.g:7909:2: '#' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); - } - match(input,62,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XListLiteral__Group__2" - // InternalEntities.g:7918:1: rule__XListLiteral__Group__2 : rule__XListLiteral__Group__2__Impl rule__XListLiteral__Group__3 ; - public final void rule__XListLiteral__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7922:1: ( rule__XListLiteral__Group__2__Impl rule__XListLiteral__Group__3 ) - // InternalEntities.g:7923:2: rule__XListLiteral__Group__2__Impl rule__XListLiteral__Group__3 - { - pushFollow(FOLLOW_60); - rule__XListLiteral__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XListLiteral__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__2" - - - // $ANTLR start "rule__XListLiteral__Group__2__Impl" - // InternalEntities.g:7930:1: rule__XListLiteral__Group__2__Impl : ( '[' ) ; - public final void rule__XListLiteral__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7934:1: ( ( '[' ) ) - // InternalEntities.g:7935:1: ( '[' ) - { - // InternalEntities.g:7935:1: ( '[' ) - // InternalEntities.g:7936:2: '[' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); - } - match(input,63,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__2__Impl" - - - // $ANTLR start "rule__XListLiteral__Group__3" - // InternalEntities.g:7945:1: rule__XListLiteral__Group__3 : rule__XListLiteral__Group__3__Impl rule__XListLiteral__Group__4 ; - public final void rule__XListLiteral__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7949:1: ( rule__XListLiteral__Group__3__Impl rule__XListLiteral__Group__4 ) - // InternalEntities.g:7950:2: rule__XListLiteral__Group__3__Impl rule__XListLiteral__Group__4 - { - pushFollow(FOLLOW_60); - rule__XListLiteral__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XListLiteral__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__3" - - - // $ANTLR start "rule__XListLiteral__Group__3__Impl" - // InternalEntities.g:7957:1: rule__XListLiteral__Group__3__Impl : ( ( rule__XListLiteral__Group_3__0 )? ) ; - public final void rule__XListLiteral__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7961:1: ( ( ( rule__XListLiteral__Group_3__0 )? ) ) - // InternalEntities.g:7962:1: ( ( rule__XListLiteral__Group_3__0 )? ) - { - // InternalEntities.g:7962:1: ( ( rule__XListLiteral__Group_3__0 )? ) - // InternalEntities.g:7963:2: ( rule__XListLiteral__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getGroup_3()); - } - // InternalEntities.g:7964:2: ( rule__XListLiteral__Group_3__0 )? - int alt72=2; - int LA72_0 = input.LA(1); - - if ( ((LA72_0>=RULE_ID && LA72_0<=RULE_STRING)||LA72_0==27||(LA72_0>=34 && LA72_0<=35)||LA72_0==40||(LA72_0>=45 && LA72_0<=50)||LA72_0==52||LA72_0==57||(LA72_0>=62 && LA72_0<=63)||LA72_0==66||LA72_0==68||(LA72_0>=71 && LA72_0<=79)||LA72_0==81||LA72_0==89) ) { - alt72=1; - } - switch (alt72) { - case 1 : - // InternalEntities.g:7964:3: rule__XListLiteral__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XListLiteral__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__3__Impl" - - - // $ANTLR start "rule__XListLiteral__Group__4" - // InternalEntities.g:7972:1: rule__XListLiteral__Group__4 : rule__XListLiteral__Group__4__Impl ; - public final void rule__XListLiteral__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7976:1: ( rule__XListLiteral__Group__4__Impl ) - // InternalEntities.g:7977:2: rule__XListLiteral__Group__4__Impl - { - pushFollow(FOLLOW_2); - rule__XListLiteral__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__4" - - - // $ANTLR start "rule__XListLiteral__Group__4__Impl" - // InternalEntities.g:7983:1: rule__XListLiteral__Group__4__Impl : ( ']' ) ; - public final void rule__XListLiteral__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:7987:1: ( ( ']' ) ) - // InternalEntities.g:7988:1: ( ']' ) - { - // InternalEntities.g:7988:1: ( ']' ) - // InternalEntities.g:7989:2: ']' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); - } - match(input,64,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group__4__Impl" - - - // $ANTLR start "rule__XListLiteral__Group_3__0" - // InternalEntities.g:7999:1: rule__XListLiteral__Group_3__0 : rule__XListLiteral__Group_3__0__Impl rule__XListLiteral__Group_3__1 ; - public final void rule__XListLiteral__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8003:1: ( rule__XListLiteral__Group_3__0__Impl rule__XListLiteral__Group_3__1 ) - // InternalEntities.g:8004:2: rule__XListLiteral__Group_3__0__Impl rule__XListLiteral__Group_3__1 - { - pushFollow(FOLLOW_18); - rule__XListLiteral__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XListLiteral__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3__0" - - - // $ANTLR start "rule__XListLiteral__Group_3__0__Impl" - // InternalEntities.g:8011:1: rule__XListLiteral__Group_3__0__Impl : ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) ; - public final void rule__XListLiteral__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8015:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) ) - // InternalEntities.g:8016:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) - { - // InternalEntities.g:8016:1: ( ( rule__XListLiteral__ElementsAssignment_3_0 ) ) - // InternalEntities.g:8017:2: ( rule__XListLiteral__ElementsAssignment_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); - } - // InternalEntities.g:8018:2: ( rule__XListLiteral__ElementsAssignment_3_0 ) - // InternalEntities.g:8018:3: rule__XListLiteral__ElementsAssignment_3_0 - { - pushFollow(FOLLOW_2); - rule__XListLiteral__ElementsAssignment_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3__0__Impl" - - - // $ANTLR start "rule__XListLiteral__Group_3__1" - // InternalEntities.g:8026:1: rule__XListLiteral__Group_3__1 : rule__XListLiteral__Group_3__1__Impl ; - public final void rule__XListLiteral__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8030:1: ( rule__XListLiteral__Group_3__1__Impl ) - // InternalEntities.g:8031:2: rule__XListLiteral__Group_3__1__Impl - { - pushFollow(FOLLOW_2); - rule__XListLiteral__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3__1" - - - // $ANTLR start "rule__XListLiteral__Group_3__1__Impl" - // InternalEntities.g:8037:1: rule__XListLiteral__Group_3__1__Impl : ( ( rule__XListLiteral__Group_3_1__0 )* ) ; - public final void rule__XListLiteral__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8041:1: ( ( ( rule__XListLiteral__Group_3_1__0 )* ) ) - // InternalEntities.g:8042:1: ( ( rule__XListLiteral__Group_3_1__0 )* ) - { - // InternalEntities.g:8042:1: ( ( rule__XListLiteral__Group_3_1__0 )* ) - // InternalEntities.g:8043:2: ( rule__XListLiteral__Group_3_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getGroup_3_1()); - } - // InternalEntities.g:8044:2: ( rule__XListLiteral__Group_3_1__0 )* - loop73: - do { - int alt73=2; - int LA73_0 = input.LA(1); - - if ( (LA73_0==59) ) { - alt73=1; - } - - - switch (alt73) { - case 1 : - // InternalEntities.g:8044:3: rule__XListLiteral__Group_3_1__0 - { - pushFollow(FOLLOW_19); - rule__XListLiteral__Group_3_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop73; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getGroup_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3__1__Impl" - - - // $ANTLR start "rule__XListLiteral__Group_3_1__0" - // InternalEntities.g:8053:1: rule__XListLiteral__Group_3_1__0 : rule__XListLiteral__Group_3_1__0__Impl rule__XListLiteral__Group_3_1__1 ; - public final void rule__XListLiteral__Group_3_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8057:1: ( rule__XListLiteral__Group_3_1__0__Impl rule__XListLiteral__Group_3_1__1 ) - // InternalEntities.g:8058:2: rule__XListLiteral__Group_3_1__0__Impl rule__XListLiteral__Group_3_1__1 - { - pushFollow(FOLLOW_56); - rule__XListLiteral__Group_3_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XListLiteral__Group_3_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3_1__0" - - - // $ANTLR start "rule__XListLiteral__Group_3_1__0__Impl" - // InternalEntities.g:8065:1: rule__XListLiteral__Group_3_1__0__Impl : ( ',' ) ; - public final void rule__XListLiteral__Group_3_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8069:1: ( ( ',' ) ) - // InternalEntities.g:8070:1: ( ',' ) - { - // InternalEntities.g:8070:1: ( ',' ) - // InternalEntities.g:8071:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3_1__0__Impl" - - - // $ANTLR start "rule__XListLiteral__Group_3_1__1" - // InternalEntities.g:8080:1: rule__XListLiteral__Group_3_1__1 : rule__XListLiteral__Group_3_1__1__Impl ; - public final void rule__XListLiteral__Group_3_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8084:1: ( rule__XListLiteral__Group_3_1__1__Impl ) - // InternalEntities.g:8085:2: rule__XListLiteral__Group_3_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XListLiteral__Group_3_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3_1__1" - - - // $ANTLR start "rule__XListLiteral__Group_3_1__1__Impl" - // InternalEntities.g:8091:1: rule__XListLiteral__Group_3_1__1__Impl : ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) ; - public final void rule__XListLiteral__Group_3_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8095:1: ( ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) ) - // InternalEntities.g:8096:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) - { - // InternalEntities.g:8096:1: ( ( rule__XListLiteral__ElementsAssignment_3_1_1 ) ) - // InternalEntities.g:8097:2: ( rule__XListLiteral__ElementsAssignment_3_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); - } - // InternalEntities.g:8098:2: ( rule__XListLiteral__ElementsAssignment_3_1_1 ) - // InternalEntities.g:8098:3: rule__XListLiteral__ElementsAssignment_3_1_1 - { - pushFollow(FOLLOW_2); - rule__XListLiteral__ElementsAssignment_3_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getElementsAssignment_3_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__Group_3_1__1__Impl" - - - // $ANTLR start "rule__XClosure__Group__0" - // InternalEntities.g:8107:1: rule__XClosure__Group__0 : rule__XClosure__Group__0__Impl rule__XClosure__Group__1 ; - public final void rule__XClosure__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8111:1: ( rule__XClosure__Group__0__Impl rule__XClosure__Group__1 ) - // InternalEntities.g:8112:2: rule__XClosure__Group__0__Impl rule__XClosure__Group__1 - { - pushFollow(FOLLOW_61); - rule__XClosure__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__0" - - - // $ANTLR start "rule__XClosure__Group__0__Impl" - // InternalEntities.g:8119:1: rule__XClosure__Group__0__Impl : ( ( rule__XClosure__Group_0__0 ) ) ; - public final void rule__XClosure__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8123:1: ( ( ( rule__XClosure__Group_0__0 ) ) ) - // InternalEntities.g:8124:1: ( ( rule__XClosure__Group_0__0 ) ) - { - // InternalEntities.g:8124:1: ( ( rule__XClosure__Group_0__0 ) ) - // InternalEntities.g:8125:2: ( rule__XClosure__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup_0()); - } - // InternalEntities.g:8126:2: ( rule__XClosure__Group_0__0 ) - // InternalEntities.g:8126:3: rule__XClosure__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__0__Impl" - - - // $ANTLR start "rule__XClosure__Group__1" - // InternalEntities.g:8134:1: rule__XClosure__Group__1 : rule__XClosure__Group__1__Impl rule__XClosure__Group__2 ; - public final void rule__XClosure__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8138:1: ( rule__XClosure__Group__1__Impl rule__XClosure__Group__2 ) - // InternalEntities.g:8139:2: rule__XClosure__Group__1__Impl rule__XClosure__Group__2 - { - pushFollow(FOLLOW_61); - rule__XClosure__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__1" - - - // $ANTLR start "rule__XClosure__Group__1__Impl" - // InternalEntities.g:8146:1: rule__XClosure__Group__1__Impl : ( ( rule__XClosure__Group_1__0 )? ) ; - public final void rule__XClosure__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8150:1: ( ( ( rule__XClosure__Group_1__0 )? ) ) - // InternalEntities.g:8151:1: ( ( rule__XClosure__Group_1__0 )? ) - { - // InternalEntities.g:8151:1: ( ( rule__XClosure__Group_1__0 )? ) - // InternalEntities.g:8152:2: ( rule__XClosure__Group_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup_1()); - } - // InternalEntities.g:8153:2: ( rule__XClosure__Group_1__0 )? - int alt74=2; - alt74 = dfa74.predict(input); - switch (alt74) { - case 1 : - // InternalEntities.g:8153:3: rule__XClosure__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__1__Impl" - - - // $ANTLR start "rule__XClosure__Group__2" - // InternalEntities.g:8161:1: rule__XClosure__Group__2 : rule__XClosure__Group__2__Impl rule__XClosure__Group__3 ; - public final void rule__XClosure__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8165:1: ( rule__XClosure__Group__2__Impl rule__XClosure__Group__3 ) - // InternalEntities.g:8166:2: rule__XClosure__Group__2__Impl rule__XClosure__Group__3 - { - pushFollow(FOLLOW_62); - rule__XClosure__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__2" - - - // $ANTLR start "rule__XClosure__Group__2__Impl" - // InternalEntities.g:8173:1: rule__XClosure__Group__2__Impl : ( ( rule__XClosure__ExpressionAssignment_2 ) ) ; - public final void rule__XClosure__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8177:1: ( ( ( rule__XClosure__ExpressionAssignment_2 ) ) ) - // InternalEntities.g:8178:1: ( ( rule__XClosure__ExpressionAssignment_2 ) ) - { - // InternalEntities.g:8178:1: ( ( rule__XClosure__ExpressionAssignment_2 ) ) - // InternalEntities.g:8179:2: ( rule__XClosure__ExpressionAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getExpressionAssignment_2()); - } - // InternalEntities.g:8180:2: ( rule__XClosure__ExpressionAssignment_2 ) - // InternalEntities.g:8180:3: rule__XClosure__ExpressionAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XClosure__ExpressionAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getExpressionAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__2__Impl" - - - // $ANTLR start "rule__XClosure__Group__3" - // InternalEntities.g:8188:1: rule__XClosure__Group__3 : rule__XClosure__Group__3__Impl ; - public final void rule__XClosure__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8192:1: ( rule__XClosure__Group__3__Impl ) - // InternalEntities.g:8193:2: rule__XClosure__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__3" - - - // $ANTLR start "rule__XClosure__Group__3__Impl" - // InternalEntities.g:8199:1: rule__XClosure__Group__3__Impl : ( ']' ) ; - public final void rule__XClosure__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8203:1: ( ( ']' ) ) - // InternalEntities.g:8204:1: ( ']' ) - { - // InternalEntities.g:8204:1: ( ']' ) - // InternalEntities.g:8205:2: ']' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); - } - match(input,64,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group__3__Impl" - - - // $ANTLR start "rule__XClosure__Group_0__0" - // InternalEntities.g:8215:1: rule__XClosure__Group_0__0 : rule__XClosure__Group_0__0__Impl ; - public final void rule__XClosure__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8219:1: ( rule__XClosure__Group_0__0__Impl ) - // InternalEntities.g:8220:2: rule__XClosure__Group_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_0__0" - - - // $ANTLR start "rule__XClosure__Group_0__0__Impl" - // InternalEntities.g:8226:1: rule__XClosure__Group_0__0__Impl : ( ( rule__XClosure__Group_0_0__0 ) ) ; - public final void rule__XClosure__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8230:1: ( ( ( rule__XClosure__Group_0_0__0 ) ) ) - // InternalEntities.g:8231:1: ( ( rule__XClosure__Group_0_0__0 ) ) - { - // InternalEntities.g:8231:1: ( ( rule__XClosure__Group_0_0__0 ) ) - // InternalEntities.g:8232:2: ( rule__XClosure__Group_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup_0_0()); - } - // InternalEntities.g:8233:2: ( rule__XClosure__Group_0_0__0 ) - // InternalEntities.g:8233:3: rule__XClosure__Group_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_0__0__Impl" - - - // $ANTLR start "rule__XClosure__Group_0_0__0" - // InternalEntities.g:8242:1: rule__XClosure__Group_0_0__0 : rule__XClosure__Group_0_0__0__Impl rule__XClosure__Group_0_0__1 ; - public final void rule__XClosure__Group_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8246:1: ( rule__XClosure__Group_0_0__0__Impl rule__XClosure__Group_0_0__1 ) - // InternalEntities.g:8247:2: rule__XClosure__Group_0_0__0__Impl rule__XClosure__Group_0_0__1 - { - pushFollow(FOLLOW_59); - rule__XClosure__Group_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_0_0__0" - - - // $ANTLR start "rule__XClosure__Group_0_0__0__Impl" - // InternalEntities.g:8254:1: rule__XClosure__Group_0_0__0__Impl : ( () ) ; - public final void rule__XClosure__Group_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8258:1: ( ( () ) ) - // InternalEntities.g:8259:1: ( () ) - { - // InternalEntities.g:8259:1: ( () ) - // InternalEntities.g:8260:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getXClosureAction_0_0_0()); - } - // InternalEntities.g:8261:2: () - // InternalEntities.g:8261:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getXClosureAction_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_0_0__0__Impl" - - - // $ANTLR start "rule__XClosure__Group_0_0__1" - // InternalEntities.g:8269:1: rule__XClosure__Group_0_0__1 : rule__XClosure__Group_0_0__1__Impl ; - public final void rule__XClosure__Group_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8273:1: ( rule__XClosure__Group_0_0__1__Impl ) - // InternalEntities.g:8274:2: rule__XClosure__Group_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_0_0__1" - - - // $ANTLR start "rule__XClosure__Group_0_0__1__Impl" - // InternalEntities.g:8280:1: rule__XClosure__Group_0_0__1__Impl : ( '[' ) ; - public final void rule__XClosure__Group_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8284:1: ( ( '[' ) ) - // InternalEntities.g:8285:1: ( '[' ) - { - // InternalEntities.g:8285:1: ( '[' ) - // InternalEntities.g:8286:2: '[' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); - } - match(input,63,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_0_0__1__Impl" - - - // $ANTLR start "rule__XClosure__Group_1__0" - // InternalEntities.g:8296:1: rule__XClosure__Group_1__0 : rule__XClosure__Group_1__0__Impl ; - public final void rule__XClosure__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8300:1: ( rule__XClosure__Group_1__0__Impl ) - // InternalEntities.g:8301:2: rule__XClosure__Group_1__0__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1__0" - - - // $ANTLR start "rule__XClosure__Group_1__0__Impl" - // InternalEntities.g:8307:1: rule__XClosure__Group_1__0__Impl : ( ( rule__XClosure__Group_1_0__0 ) ) ; - public final void rule__XClosure__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8311:1: ( ( ( rule__XClosure__Group_1_0__0 ) ) ) - // InternalEntities.g:8312:1: ( ( rule__XClosure__Group_1_0__0 ) ) - { - // InternalEntities.g:8312:1: ( ( rule__XClosure__Group_1_0__0 ) ) - // InternalEntities.g:8313:2: ( rule__XClosure__Group_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup_1_0()); - } - // InternalEntities.g:8314:2: ( rule__XClosure__Group_1_0__0 ) - // InternalEntities.g:8314:3: rule__XClosure__Group_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1__0__Impl" - - - // $ANTLR start "rule__XClosure__Group_1_0__0" - // InternalEntities.g:8323:1: rule__XClosure__Group_1_0__0 : rule__XClosure__Group_1_0__0__Impl rule__XClosure__Group_1_0__1 ; - public final void rule__XClosure__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8327:1: ( rule__XClosure__Group_1_0__0__Impl rule__XClosure__Group_1_0__1 ) - // InternalEntities.g:8328:2: rule__XClosure__Group_1_0__0__Impl rule__XClosure__Group_1_0__1 - { - pushFollow(FOLLOW_63); - rule__XClosure__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0__0" - - - // $ANTLR start "rule__XClosure__Group_1_0__0__Impl" - // InternalEntities.g:8335:1: rule__XClosure__Group_1_0__0__Impl : ( ( rule__XClosure__Group_1_0_0__0 )? ) ; - public final void rule__XClosure__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8339:1: ( ( ( rule__XClosure__Group_1_0_0__0 )? ) ) - // InternalEntities.g:8340:1: ( ( rule__XClosure__Group_1_0_0__0 )? ) - { - // InternalEntities.g:8340:1: ( ( rule__XClosure__Group_1_0_0__0 )? ) - // InternalEntities.g:8341:2: ( rule__XClosure__Group_1_0_0__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup_1_0_0()); - } - // InternalEntities.g:8342:2: ( rule__XClosure__Group_1_0_0__0 )? - int alt75=2; - int LA75_0 = input.LA(1); - - if ( (LA75_0==RULE_ID||LA75_0==31||LA75_0==57) ) { - alt75=1; - } - switch (alt75) { - case 1 : - // InternalEntities.g:8342:3: rule__XClosure__Group_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XClosure__Group_1_0__1" - // InternalEntities.g:8350:1: rule__XClosure__Group_1_0__1 : rule__XClosure__Group_1_0__1__Impl ; - public final void rule__XClosure__Group_1_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8354:1: ( rule__XClosure__Group_1_0__1__Impl ) - // InternalEntities.g:8355:2: rule__XClosure__Group_1_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0__1" - - - // $ANTLR start "rule__XClosure__Group_1_0__1__Impl" - // InternalEntities.g:8361:1: rule__XClosure__Group_1_0__1__Impl : ( ( rule__XClosure__ExplicitSyntaxAssignment_1_0_1 ) ) ; - public final void rule__XClosure__Group_1_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8365:1: ( ( ( rule__XClosure__ExplicitSyntaxAssignment_1_0_1 ) ) ) - // InternalEntities.g:8366:1: ( ( rule__XClosure__ExplicitSyntaxAssignment_1_0_1 ) ) - { - // InternalEntities.g:8366:1: ( ( rule__XClosure__ExplicitSyntaxAssignment_1_0_1 ) ) - // InternalEntities.g:8367:2: ( rule__XClosure__ExplicitSyntaxAssignment_1_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getExplicitSyntaxAssignment_1_0_1()); - } - // InternalEntities.g:8368:2: ( rule__XClosure__ExplicitSyntaxAssignment_1_0_1 ) - // InternalEntities.g:8368:3: rule__XClosure__ExplicitSyntaxAssignment_1_0_1 - { - pushFollow(FOLLOW_2); - rule__XClosure__ExplicitSyntaxAssignment_1_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getExplicitSyntaxAssignment_1_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0__1__Impl" - - - // $ANTLR start "rule__XClosure__Group_1_0_0__0" - // InternalEntities.g:8377:1: rule__XClosure__Group_1_0_0__0 : rule__XClosure__Group_1_0_0__0__Impl rule__XClosure__Group_1_0_0__1 ; - public final void rule__XClosure__Group_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8381:1: ( rule__XClosure__Group_1_0_0__0__Impl rule__XClosure__Group_1_0_0__1 ) - // InternalEntities.g:8382:2: rule__XClosure__Group_1_0_0__0__Impl rule__XClosure__Group_1_0_0__1 - { - pushFollow(FOLLOW_18); - rule__XClosure__Group_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0__0" - - - // $ANTLR start "rule__XClosure__Group_1_0_0__0__Impl" - // InternalEntities.g:8389:1: rule__XClosure__Group_1_0_0__0__Impl : ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 ) ) ; - public final void rule__XClosure__Group_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8393:1: ( ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 ) ) ) - // InternalEntities.g:8394:1: ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 ) ) - { - // InternalEntities.g:8394:1: ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 ) ) - // InternalEntities.g:8395:2: ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_0()); - } - // InternalEntities.g:8396:2: ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 ) - // InternalEntities.g:8396:3: rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 - { - pushFollow(FOLLOW_2); - rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0__0__Impl" - - - // $ANTLR start "rule__XClosure__Group_1_0_0__1" - // InternalEntities.g:8404:1: rule__XClosure__Group_1_0_0__1 : rule__XClosure__Group_1_0_0__1__Impl ; - public final void rule__XClosure__Group_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8408:1: ( rule__XClosure__Group_1_0_0__1__Impl ) - // InternalEntities.g:8409:2: rule__XClosure__Group_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0__1" - - - // $ANTLR start "rule__XClosure__Group_1_0_0__1__Impl" - // InternalEntities.g:8415:1: rule__XClosure__Group_1_0_0__1__Impl : ( ( rule__XClosure__Group_1_0_0_1__0 )* ) ; - public final void rule__XClosure__Group_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8419:1: ( ( ( rule__XClosure__Group_1_0_0_1__0 )* ) ) - // InternalEntities.g:8420:1: ( ( rule__XClosure__Group_1_0_0_1__0 )* ) - { - // InternalEntities.g:8420:1: ( ( rule__XClosure__Group_1_0_0_1__0 )* ) - // InternalEntities.g:8421:2: ( rule__XClosure__Group_1_0_0_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); - } - // InternalEntities.g:8422:2: ( rule__XClosure__Group_1_0_0_1__0 )* - loop76: - do { - int alt76=2; - int LA76_0 = input.LA(1); - - if ( (LA76_0==59) ) { - alt76=1; - } - - - switch (alt76) { - case 1 : - // InternalEntities.g:8422:3: rule__XClosure__Group_1_0_0_1__0 - { - pushFollow(FOLLOW_19); - rule__XClosure__Group_1_0_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop76; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getGroup_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0__1__Impl" - - - // $ANTLR start "rule__XClosure__Group_1_0_0_1__0" - // InternalEntities.g:8431:1: rule__XClosure__Group_1_0_0_1__0 : rule__XClosure__Group_1_0_0_1__0__Impl rule__XClosure__Group_1_0_0_1__1 ; - public final void rule__XClosure__Group_1_0_0_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8435:1: ( rule__XClosure__Group_1_0_0_1__0__Impl rule__XClosure__Group_1_0_0_1__1 ) - // InternalEntities.g:8436:2: rule__XClosure__Group_1_0_0_1__0__Impl rule__XClosure__Group_1_0_0_1__1 - { - pushFollow(FOLLOW_14); - rule__XClosure__Group_1_0_0_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0_0_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0_1__0" - - - // $ANTLR start "rule__XClosure__Group_1_0_0_1__0__Impl" - // InternalEntities.g:8443:1: rule__XClosure__Group_1_0_0_1__0__Impl : ( ',' ) ; - public final void rule__XClosure__Group_1_0_0_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8447:1: ( ( ',' ) ) - // InternalEntities.g:8448:1: ( ',' ) - { - // InternalEntities.g:8448:1: ( ',' ) - // InternalEntities.g:8449:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0_1__0__Impl" - - - // $ANTLR start "rule__XClosure__Group_1_0_0_1__1" - // InternalEntities.g:8458:1: rule__XClosure__Group_1_0_0_1__1 : rule__XClosure__Group_1_0_0_1__1__Impl ; - public final void rule__XClosure__Group_1_0_0_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8462:1: ( rule__XClosure__Group_1_0_0_1__1__Impl ) - // InternalEntities.g:8463:2: rule__XClosure__Group_1_0_0_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1_0_0_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0_1__1" - - - // $ANTLR start "rule__XClosure__Group_1_0_0_1__1__Impl" - // InternalEntities.g:8469:1: rule__XClosure__Group_1_0_0_1__1__Impl : ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 ) ) ; - public final void rule__XClosure__Group_1_0_0_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8473:1: ( ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 ) ) ) - // InternalEntities.g:8474:1: ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 ) ) - { - // InternalEntities.g:8474:1: ( ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 ) ) - // InternalEntities.g:8475:2: ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_1_1()); - } - // InternalEntities.g:8476:2: ( rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 ) - // InternalEntities.g:8476:3: rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 - { - pushFollow(FOLLOW_2); - rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersAssignment_1_0_0_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__Group_1_0_0_1__1__Impl" - - - // $ANTLR start "rule__XExpressionInClosure__Group__0" - // InternalEntities.g:8485:1: rule__XExpressionInClosure__Group__0 : rule__XExpressionInClosure__Group__0__Impl rule__XExpressionInClosure__Group__1 ; - public final void rule__XExpressionInClosure__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8489:1: ( rule__XExpressionInClosure__Group__0__Impl rule__XExpressionInClosure__Group__1 ) - // InternalEntities.g:8490:2: rule__XExpressionInClosure__Group__0__Impl rule__XExpressionInClosure__Group__1 - { - pushFollow(FOLLOW_61); - rule__XExpressionInClosure__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XExpressionInClosure__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group__0" - - - // $ANTLR start "rule__XExpressionInClosure__Group__0__Impl" - // InternalEntities.g:8497:1: rule__XExpressionInClosure__Group__0__Impl : ( () ) ; - public final void rule__XExpressionInClosure__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8501:1: ( ( () ) ) - // InternalEntities.g:8502:1: ( () ) - { - // InternalEntities.g:8502:1: ( () ) - // InternalEntities.g:8503:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0()); - } - // InternalEntities.g:8504:2: () - // InternalEntities.g:8504:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group__0__Impl" - - - // $ANTLR start "rule__XExpressionInClosure__Group__1" - // InternalEntities.g:8512:1: rule__XExpressionInClosure__Group__1 : rule__XExpressionInClosure__Group__1__Impl ; - public final void rule__XExpressionInClosure__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8516:1: ( rule__XExpressionInClosure__Group__1__Impl ) - // InternalEntities.g:8517:2: rule__XExpressionInClosure__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XExpressionInClosure__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group__1" - - - // $ANTLR start "rule__XExpressionInClosure__Group__1__Impl" - // InternalEntities.g:8523:1: rule__XExpressionInClosure__Group__1__Impl : ( ( rule__XExpressionInClosure__Group_1__0 )* ) ; - public final void rule__XExpressionInClosure__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8527:1: ( ( ( rule__XExpressionInClosure__Group_1__0 )* ) ) - // InternalEntities.g:8528:1: ( ( rule__XExpressionInClosure__Group_1__0 )* ) - { - // InternalEntities.g:8528:1: ( ( rule__XExpressionInClosure__Group_1__0 )* ) - // InternalEntities.g:8529:2: ( rule__XExpressionInClosure__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureAccess().getGroup_1()); - } - // InternalEntities.g:8530:2: ( rule__XExpressionInClosure__Group_1__0 )* - loop77: - do { - int alt77=2; - int LA77_0 = input.LA(1); - - if ( ((LA77_0>=RULE_ID && LA77_0<=RULE_STRING)||LA77_0==27||(LA77_0>=34 && LA77_0<=35)||LA77_0==40||(LA77_0>=44 && LA77_0<=50)||LA77_0==52||LA77_0==57||(LA77_0>=62 && LA77_0<=63)||LA77_0==66||LA77_0==68||(LA77_0>=71 && LA77_0<=79)||LA77_0==81||(LA77_0>=88 && LA77_0<=89)) ) { - alt77=1; - } - - - switch (alt77) { - case 1 : - // InternalEntities.g:8530:3: rule__XExpressionInClosure__Group_1__0 - { - pushFollow(FOLLOW_64); - rule__XExpressionInClosure__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop77; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group__1__Impl" - - - // $ANTLR start "rule__XExpressionInClosure__Group_1__0" - // InternalEntities.g:8539:1: rule__XExpressionInClosure__Group_1__0 : rule__XExpressionInClosure__Group_1__0__Impl rule__XExpressionInClosure__Group_1__1 ; - public final void rule__XExpressionInClosure__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8543:1: ( rule__XExpressionInClosure__Group_1__0__Impl rule__XExpressionInClosure__Group_1__1 ) - // InternalEntities.g:8544:2: rule__XExpressionInClosure__Group_1__0__Impl rule__XExpressionInClosure__Group_1__1 - { - pushFollow(FOLLOW_65); - rule__XExpressionInClosure__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XExpressionInClosure__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group_1__0" - - - // $ANTLR start "rule__XExpressionInClosure__Group_1__0__Impl" - // InternalEntities.g:8551:1: rule__XExpressionInClosure__Group_1__0__Impl : ( ( rule__XExpressionInClosure__ExpressionsAssignment_1_0 ) ) ; - public final void rule__XExpressionInClosure__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8555:1: ( ( ( rule__XExpressionInClosure__ExpressionsAssignment_1_0 ) ) ) - // InternalEntities.g:8556:1: ( ( rule__XExpressionInClosure__ExpressionsAssignment_1_0 ) ) - { - // InternalEntities.g:8556:1: ( ( rule__XExpressionInClosure__ExpressionsAssignment_1_0 ) ) - // InternalEntities.g:8557:2: ( rule__XExpressionInClosure__ExpressionsAssignment_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureAccess().getExpressionsAssignment_1_0()); - } - // InternalEntities.g:8558:2: ( rule__XExpressionInClosure__ExpressionsAssignment_1_0 ) - // InternalEntities.g:8558:3: rule__XExpressionInClosure__ExpressionsAssignment_1_0 - { - pushFollow(FOLLOW_2); - rule__XExpressionInClosure__ExpressionsAssignment_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureAccess().getExpressionsAssignment_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group_1__0__Impl" - - - // $ANTLR start "rule__XExpressionInClosure__Group_1__1" - // InternalEntities.g:8566:1: rule__XExpressionInClosure__Group_1__1 : rule__XExpressionInClosure__Group_1__1__Impl ; - public final void rule__XExpressionInClosure__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8570:1: ( rule__XExpressionInClosure__Group_1__1__Impl ) - // InternalEntities.g:8571:2: rule__XExpressionInClosure__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XExpressionInClosure__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group_1__1" - - - // $ANTLR start "rule__XExpressionInClosure__Group_1__1__Impl" - // InternalEntities.g:8577:1: rule__XExpressionInClosure__Group_1__1__Impl : ( ( ';' )? ) ; - public final void rule__XExpressionInClosure__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8581:1: ( ( ( ';' )? ) ) - // InternalEntities.g:8582:1: ( ( ';' )? ) - { - // InternalEntities.g:8582:1: ( ( ';' )? ) - // InternalEntities.g:8583:2: ( ';' )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); - } - // InternalEntities.g:8584:2: ( ';' )? - int alt78=2; - int LA78_0 = input.LA(1); - - if ( (LA78_0==65) ) { - alt78=1; - } - switch (alt78) { - case 1 : - // InternalEntities.g:8584:3: ';' - { - match(input,65,FOLLOW_2); if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__Group_1__1__Impl" - - - // $ANTLR start "rule__XShortClosure__Group__0" - // InternalEntities.g:8593:1: rule__XShortClosure__Group__0 : rule__XShortClosure__Group__0__Impl rule__XShortClosure__Group__1 ; - public final void rule__XShortClosure__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8597:1: ( rule__XShortClosure__Group__0__Impl rule__XShortClosure__Group__1 ) - // InternalEntities.g:8598:2: rule__XShortClosure__Group__0__Impl rule__XShortClosure__Group__1 - { - pushFollow(FOLLOW_56); - rule__XShortClosure__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XShortClosure__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group__0" - - - // $ANTLR start "rule__XShortClosure__Group__0__Impl" - // InternalEntities.g:8605:1: rule__XShortClosure__Group__0__Impl : ( ( rule__XShortClosure__Group_0__0 ) ) ; - public final void rule__XShortClosure__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8609:1: ( ( ( rule__XShortClosure__Group_0__0 ) ) ) - // InternalEntities.g:8610:1: ( ( rule__XShortClosure__Group_0__0 ) ) - { - // InternalEntities.g:8610:1: ( ( rule__XShortClosure__Group_0__0 ) ) - // InternalEntities.g:8611:2: ( rule__XShortClosure__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getGroup_0()); - } - // InternalEntities.g:8612:2: ( rule__XShortClosure__Group_0__0 ) - // InternalEntities.g:8612:3: rule__XShortClosure__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getGroup_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group__0__Impl" - - - // $ANTLR start "rule__XShortClosure__Group__1" - // InternalEntities.g:8620:1: rule__XShortClosure__Group__1 : rule__XShortClosure__Group__1__Impl ; - public final void rule__XShortClosure__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8624:1: ( rule__XShortClosure__Group__1__Impl ) - // InternalEntities.g:8625:2: rule__XShortClosure__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group__1" - - - // $ANTLR start "rule__XShortClosure__Group__1__Impl" - // InternalEntities.g:8631:1: rule__XShortClosure__Group__1__Impl : ( ( rule__XShortClosure__ExpressionAssignment_1 ) ) ; - public final void rule__XShortClosure__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8635:1: ( ( ( rule__XShortClosure__ExpressionAssignment_1 ) ) ) - // InternalEntities.g:8636:1: ( ( rule__XShortClosure__ExpressionAssignment_1 ) ) - { - // InternalEntities.g:8636:1: ( ( rule__XShortClosure__ExpressionAssignment_1 ) ) - // InternalEntities.g:8637:2: ( rule__XShortClosure__ExpressionAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getExpressionAssignment_1()); - } - // InternalEntities.g:8638:2: ( rule__XShortClosure__ExpressionAssignment_1 ) - // InternalEntities.g:8638:3: rule__XShortClosure__ExpressionAssignment_1 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__ExpressionAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getExpressionAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group__1__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0__0" - // InternalEntities.g:8647:1: rule__XShortClosure__Group_0__0 : rule__XShortClosure__Group_0__0__Impl ; - public final void rule__XShortClosure__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8651:1: ( rule__XShortClosure__Group_0__0__Impl ) - // InternalEntities.g:8652:2: rule__XShortClosure__Group_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0__0" - - - // $ANTLR start "rule__XShortClosure__Group_0__0__Impl" - // InternalEntities.g:8658:1: rule__XShortClosure__Group_0__0__Impl : ( ( rule__XShortClosure__Group_0_0__0 ) ) ; - public final void rule__XShortClosure__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8662:1: ( ( ( rule__XShortClosure__Group_0_0__0 ) ) ) - // InternalEntities.g:8663:1: ( ( rule__XShortClosure__Group_0_0__0 ) ) - { - // InternalEntities.g:8663:1: ( ( rule__XShortClosure__Group_0_0__0 ) ) - // InternalEntities.g:8664:2: ( rule__XShortClosure__Group_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getGroup_0_0()); - } - // InternalEntities.g:8665:2: ( rule__XShortClosure__Group_0_0__0 ) - // InternalEntities.g:8665:3: rule__XShortClosure__Group_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getGroup_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0__0__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0__0" - // InternalEntities.g:8674:1: rule__XShortClosure__Group_0_0__0 : rule__XShortClosure__Group_0_0__0__Impl rule__XShortClosure__Group_0_0__1 ; - public final void rule__XShortClosure__Group_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8678:1: ( rule__XShortClosure__Group_0_0__0__Impl rule__XShortClosure__Group_0_0__1 ) - // InternalEntities.g:8679:2: rule__XShortClosure__Group_0_0__0__Impl rule__XShortClosure__Group_0_0__1 - { - pushFollow(FOLLOW_63); - rule__XShortClosure__Group_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0__0" - - - // $ANTLR start "rule__XShortClosure__Group_0_0__0__Impl" - // InternalEntities.g:8686:1: rule__XShortClosure__Group_0_0__0__Impl : ( () ) ; - public final void rule__XShortClosure__Group_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8690:1: ( ( () ) ) - // InternalEntities.g:8691:1: ( () ) - { - // InternalEntities.g:8691:1: ( () ) - // InternalEntities.g:8692:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0()); - } - // InternalEntities.g:8693:2: () - // InternalEntities.g:8693:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0__0__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0__1" - // InternalEntities.g:8701:1: rule__XShortClosure__Group_0_0__1 : rule__XShortClosure__Group_0_0__1__Impl rule__XShortClosure__Group_0_0__2 ; - public final void rule__XShortClosure__Group_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8705:1: ( rule__XShortClosure__Group_0_0__1__Impl rule__XShortClosure__Group_0_0__2 ) - // InternalEntities.g:8706:2: rule__XShortClosure__Group_0_0__1__Impl rule__XShortClosure__Group_0_0__2 - { - pushFollow(FOLLOW_63); - rule__XShortClosure__Group_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0__1" - - - // $ANTLR start "rule__XShortClosure__Group_0_0__1__Impl" - // InternalEntities.g:8713:1: rule__XShortClosure__Group_0_0__1__Impl : ( ( rule__XShortClosure__Group_0_0_1__0 )? ) ; - public final void rule__XShortClosure__Group_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8717:1: ( ( ( rule__XShortClosure__Group_0_0_1__0 )? ) ) - // InternalEntities.g:8718:1: ( ( rule__XShortClosure__Group_0_0_1__0 )? ) - { - // InternalEntities.g:8718:1: ( ( rule__XShortClosure__Group_0_0_1__0 )? ) - // InternalEntities.g:8719:2: ( rule__XShortClosure__Group_0_0_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getGroup_0_0_1()); - } - // InternalEntities.g:8720:2: ( rule__XShortClosure__Group_0_0_1__0 )? - int alt79=2; - int LA79_0 = input.LA(1); - - if ( (LA79_0==RULE_ID||LA79_0==31||LA79_0==57) ) { - alt79=1; - } - switch (alt79) { - case 1 : - // InternalEntities.g:8720:3: rule__XShortClosure__Group_0_0_1__0 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getGroup_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0__1__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0__2" - // InternalEntities.g:8728:1: rule__XShortClosure__Group_0_0__2 : rule__XShortClosure__Group_0_0__2__Impl ; - public final void rule__XShortClosure__Group_0_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8732:1: ( rule__XShortClosure__Group_0_0__2__Impl ) - // InternalEntities.g:8733:2: rule__XShortClosure__Group_0_0__2__Impl - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0__2" - - - // $ANTLR start "rule__XShortClosure__Group_0_0__2__Impl" - // InternalEntities.g:8739:1: rule__XShortClosure__Group_0_0__2__Impl : ( ( rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 ) ) ; - public final void rule__XShortClosure__Group_0_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8743:1: ( ( ( rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 ) ) ) - // InternalEntities.g:8744:1: ( ( rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 ) ) - { - // InternalEntities.g:8744:1: ( ( rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 ) ) - // InternalEntities.g:8745:2: ( rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getExplicitSyntaxAssignment_0_0_2()); - } - // InternalEntities.g:8746:2: ( rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 ) - // InternalEntities.g:8746:3: rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getExplicitSyntaxAssignment_0_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0__2__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1__0" - // InternalEntities.g:8755:1: rule__XShortClosure__Group_0_0_1__0 : rule__XShortClosure__Group_0_0_1__0__Impl rule__XShortClosure__Group_0_0_1__1 ; - public final void rule__XShortClosure__Group_0_0_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8759:1: ( rule__XShortClosure__Group_0_0_1__0__Impl rule__XShortClosure__Group_0_0_1__1 ) - // InternalEntities.g:8760:2: rule__XShortClosure__Group_0_0_1__0__Impl rule__XShortClosure__Group_0_0_1__1 - { - pushFollow(FOLLOW_18); - rule__XShortClosure__Group_0_0_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1__0" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1__0__Impl" - // InternalEntities.g:8767:1: rule__XShortClosure__Group_0_0_1__0__Impl : ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 ) ) ; - public final void rule__XShortClosure__Group_0_0_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8771:1: ( ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 ) ) ) - // InternalEntities.g:8772:1: ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 ) ) - { - // InternalEntities.g:8772:1: ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 ) ) - // InternalEntities.g:8773:2: ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_0()); - } - // InternalEntities.g:8774:2: ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 ) - // InternalEntities.g:8774:3: rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1__0__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1__1" - // InternalEntities.g:8782:1: rule__XShortClosure__Group_0_0_1__1 : rule__XShortClosure__Group_0_0_1__1__Impl ; - public final void rule__XShortClosure__Group_0_0_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8786:1: ( rule__XShortClosure__Group_0_0_1__1__Impl ) - // InternalEntities.g:8787:2: rule__XShortClosure__Group_0_0_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1__1" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1__1__Impl" - // InternalEntities.g:8793:1: rule__XShortClosure__Group_0_0_1__1__Impl : ( ( rule__XShortClosure__Group_0_0_1_1__0 )* ) ; - public final void rule__XShortClosure__Group_0_0_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8797:1: ( ( ( rule__XShortClosure__Group_0_0_1_1__0 )* ) ) - // InternalEntities.g:8798:1: ( ( rule__XShortClosure__Group_0_0_1_1__0 )* ) - { - // InternalEntities.g:8798:1: ( ( rule__XShortClosure__Group_0_0_1_1__0 )* ) - // InternalEntities.g:8799:2: ( rule__XShortClosure__Group_0_0_1_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getGroup_0_0_1_1()); - } - // InternalEntities.g:8800:2: ( rule__XShortClosure__Group_0_0_1_1__0 )* - loop80: - do { - int alt80=2; - int LA80_0 = input.LA(1); - - if ( (LA80_0==59) ) { - alt80=1; - } - - - switch (alt80) { - case 1 : - // InternalEntities.g:8800:3: rule__XShortClosure__Group_0_0_1_1__0 - { - pushFollow(FOLLOW_19); - rule__XShortClosure__Group_0_0_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop80; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getGroup_0_0_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1__1__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1_1__0" - // InternalEntities.g:8809:1: rule__XShortClosure__Group_0_0_1_1__0 : rule__XShortClosure__Group_0_0_1_1__0__Impl rule__XShortClosure__Group_0_0_1_1__1 ; - public final void rule__XShortClosure__Group_0_0_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8813:1: ( rule__XShortClosure__Group_0_0_1_1__0__Impl rule__XShortClosure__Group_0_0_1_1__1 ) - // InternalEntities.g:8814:2: rule__XShortClosure__Group_0_0_1_1__0__Impl rule__XShortClosure__Group_0_0_1_1__1 - { - pushFollow(FOLLOW_14); - rule__XShortClosure__Group_0_0_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1_1__0" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1_1__0__Impl" - // InternalEntities.g:8821:1: rule__XShortClosure__Group_0_0_1_1__0__Impl : ( ',' ) ; - public final void rule__XShortClosure__Group_0_0_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8825:1: ( ( ',' ) ) - // InternalEntities.g:8826:1: ( ',' ) - { - // InternalEntities.g:8826:1: ( ',' ) - // InternalEntities.g:8827:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1_1__0__Impl" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1_1__1" - // InternalEntities.g:8836:1: rule__XShortClosure__Group_0_0_1_1__1 : rule__XShortClosure__Group_0_0_1_1__1__Impl ; - public final void rule__XShortClosure__Group_0_0_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8840:1: ( rule__XShortClosure__Group_0_0_1_1__1__Impl ) - // InternalEntities.g:8841:2: rule__XShortClosure__Group_0_0_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XShortClosure__Group_0_0_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1_1__1" - - - // $ANTLR start "rule__XShortClosure__Group_0_0_1_1__1__Impl" - // InternalEntities.g:8847:1: rule__XShortClosure__Group_0_0_1_1__1__Impl : ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 ) ) ; - public final void rule__XShortClosure__Group_0_0_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8851:1: ( ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 ) ) ) - // InternalEntities.g:8852:1: ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 ) ) - { - // InternalEntities.g:8852:1: ( ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 ) ) - // InternalEntities.g:8853:2: ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_1_1()); - } - // InternalEntities.g:8854:2: ( rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 ) - // InternalEntities.g:8854:3: rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersAssignment_0_0_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__Group_0_0_1_1__1__Impl" - - - // $ANTLR start "rule__XParenthesizedExpression__Group__0" - // InternalEntities.g:8863:1: rule__XParenthesizedExpression__Group__0 : rule__XParenthesizedExpression__Group__0__Impl rule__XParenthesizedExpression__Group__1 ; - public final void rule__XParenthesizedExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8867:1: ( rule__XParenthesizedExpression__Group__0__Impl rule__XParenthesizedExpression__Group__1 ) - // InternalEntities.g:8868:2: rule__XParenthesizedExpression__Group__0__Impl rule__XParenthesizedExpression__Group__1 - { - pushFollow(FOLLOW_56); - rule__XParenthesizedExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XParenthesizedExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XParenthesizedExpression__Group__0" - - - // $ANTLR start "rule__XParenthesizedExpression__Group__0__Impl" - // InternalEntities.g:8875:1: rule__XParenthesizedExpression__Group__0__Impl : ( '(' ) ; - public final void rule__XParenthesizedExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8879:1: ( ( '(' ) ) - // InternalEntities.g:8880:1: ( '(' ) - { - // InternalEntities.g:8880:1: ( '(' ) - // InternalEntities.g:8881:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XParenthesizedExpression__Group__0__Impl" - - - // $ANTLR start "rule__XParenthesizedExpression__Group__1" - // InternalEntities.g:8890:1: rule__XParenthesizedExpression__Group__1 : rule__XParenthesizedExpression__Group__1__Impl rule__XParenthesizedExpression__Group__2 ; - public final void rule__XParenthesizedExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8894:1: ( rule__XParenthesizedExpression__Group__1__Impl rule__XParenthesizedExpression__Group__2 ) - // InternalEntities.g:8895:2: rule__XParenthesizedExpression__Group__1__Impl rule__XParenthesizedExpression__Group__2 - { - pushFollow(FOLLOW_66); - rule__XParenthesizedExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XParenthesizedExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XParenthesizedExpression__Group__1" - - - // $ANTLR start "rule__XParenthesizedExpression__Group__1__Impl" - // InternalEntities.g:8902:1: rule__XParenthesizedExpression__Group__1__Impl : ( ruleXExpression ) ; - public final void rule__XParenthesizedExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8906:1: ( ( ruleXExpression ) ) - // InternalEntities.g:8907:1: ( ruleXExpression ) - { - // InternalEntities.g:8907:1: ( ruleXExpression ) - // InternalEntities.g:8908:2: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XParenthesizedExpression__Group__1__Impl" - - - // $ANTLR start "rule__XParenthesizedExpression__Group__2" - // InternalEntities.g:8917:1: rule__XParenthesizedExpression__Group__2 : rule__XParenthesizedExpression__Group__2__Impl ; - public final void rule__XParenthesizedExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8921:1: ( rule__XParenthesizedExpression__Group__2__Impl ) - // InternalEntities.g:8922:2: rule__XParenthesizedExpression__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__XParenthesizedExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XParenthesizedExpression__Group__2" - - - // $ANTLR start "rule__XParenthesizedExpression__Group__2__Impl" - // InternalEntities.g:8928:1: rule__XParenthesizedExpression__Group__2__Impl : ( ')' ) ; - public final void rule__XParenthesizedExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8932:1: ( ( ')' ) ) - // InternalEntities.g:8933:1: ( ')' ) - { - // InternalEntities.g:8933:1: ( ')' ) - // InternalEntities.g:8934:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XParenthesizedExpression__Group__2__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__0" - // InternalEntities.g:8944:1: rule__XIfExpression__Group__0 : rule__XIfExpression__Group__0__Impl rule__XIfExpression__Group__1 ; - public final void rule__XIfExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8948:1: ( rule__XIfExpression__Group__0__Impl rule__XIfExpression__Group__1 ) - // InternalEntities.g:8949:2: rule__XIfExpression__Group__0__Impl rule__XIfExpression__Group__1 - { - pushFollow(FOLLOW_67); - rule__XIfExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__0" - - - // $ANTLR start "rule__XIfExpression__Group__0__Impl" - // InternalEntities.g:8956:1: rule__XIfExpression__Group__0__Impl : ( () ) ; - public final void rule__XIfExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8960:1: ( ( () ) ) - // InternalEntities.g:8961:1: ( () ) - { - // InternalEntities.g:8961:1: ( () ) - // InternalEntities.g:8962:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0()); - } - // InternalEntities.g:8963:2: () - // InternalEntities.g:8963:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__0__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__1" - // InternalEntities.g:8971:1: rule__XIfExpression__Group__1 : rule__XIfExpression__Group__1__Impl rule__XIfExpression__Group__2 ; - public final void rule__XIfExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8975:1: ( rule__XIfExpression__Group__1__Impl rule__XIfExpression__Group__2 ) - // InternalEntities.g:8976:2: rule__XIfExpression__Group__1__Impl rule__XIfExpression__Group__2 - { - pushFollow(FOLLOW_15); - rule__XIfExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__1" - - - // $ANTLR start "rule__XIfExpression__Group__1__Impl" - // InternalEntities.g:8983:1: rule__XIfExpression__Group__1__Impl : ( 'if' ) ; - public final void rule__XIfExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:8987:1: ( ( 'if' ) ) - // InternalEntities.g:8988:1: ( 'if' ) - { - // InternalEntities.g:8988:1: ( 'if' ) - // InternalEntities.g:8989:2: 'if' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); - } - match(input,66,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__1__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__2" - // InternalEntities.g:8998:1: rule__XIfExpression__Group__2 : rule__XIfExpression__Group__2__Impl rule__XIfExpression__Group__3 ; - public final void rule__XIfExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9002:1: ( rule__XIfExpression__Group__2__Impl rule__XIfExpression__Group__3 ) - // InternalEntities.g:9003:2: rule__XIfExpression__Group__2__Impl rule__XIfExpression__Group__3 - { - pushFollow(FOLLOW_56); - rule__XIfExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__2" - - - // $ANTLR start "rule__XIfExpression__Group__2__Impl" - // InternalEntities.g:9010:1: rule__XIfExpression__Group__2__Impl : ( '(' ) ; - public final void rule__XIfExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9014:1: ( ( '(' ) ) - // InternalEntities.g:9015:1: ( '(' ) - { - // InternalEntities.g:9015:1: ( '(' ) - // InternalEntities.g:9016:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__2__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__3" - // InternalEntities.g:9025:1: rule__XIfExpression__Group__3 : rule__XIfExpression__Group__3__Impl rule__XIfExpression__Group__4 ; - public final void rule__XIfExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9029:1: ( rule__XIfExpression__Group__3__Impl rule__XIfExpression__Group__4 ) - // InternalEntities.g:9030:2: rule__XIfExpression__Group__3__Impl rule__XIfExpression__Group__4 - { - pushFollow(FOLLOW_66); - rule__XIfExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__3" - - - // $ANTLR start "rule__XIfExpression__Group__3__Impl" - // InternalEntities.g:9037:1: rule__XIfExpression__Group__3__Impl : ( ( rule__XIfExpression__IfAssignment_3 ) ) ; - public final void rule__XIfExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9041:1: ( ( ( rule__XIfExpression__IfAssignment_3 ) ) ) - // InternalEntities.g:9042:1: ( ( rule__XIfExpression__IfAssignment_3 ) ) - { - // InternalEntities.g:9042:1: ( ( rule__XIfExpression__IfAssignment_3 ) ) - // InternalEntities.g:9043:2: ( rule__XIfExpression__IfAssignment_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getIfAssignment_3()); - } - // InternalEntities.g:9044:2: ( rule__XIfExpression__IfAssignment_3 ) - // InternalEntities.g:9044:3: rule__XIfExpression__IfAssignment_3 - { - pushFollow(FOLLOW_2); - rule__XIfExpression__IfAssignment_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getIfAssignment_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__3__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__4" - // InternalEntities.g:9052:1: rule__XIfExpression__Group__4 : rule__XIfExpression__Group__4__Impl rule__XIfExpression__Group__5 ; - public final void rule__XIfExpression__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9056:1: ( rule__XIfExpression__Group__4__Impl rule__XIfExpression__Group__5 ) - // InternalEntities.g:9057:2: rule__XIfExpression__Group__4__Impl rule__XIfExpression__Group__5 - { - pushFollow(FOLLOW_56); - rule__XIfExpression__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__4" - - - // $ANTLR start "rule__XIfExpression__Group__4__Impl" - // InternalEntities.g:9064:1: rule__XIfExpression__Group__4__Impl : ( ')' ) ; - public final void rule__XIfExpression__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9068:1: ( ( ')' ) ) - // InternalEntities.g:9069:1: ( ')' ) - { - // InternalEntities.g:9069:1: ( ')' ) - // InternalEntities.g:9070:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__4__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__5" - // InternalEntities.g:9079:1: rule__XIfExpression__Group__5 : rule__XIfExpression__Group__5__Impl rule__XIfExpression__Group__6 ; - public final void rule__XIfExpression__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9083:1: ( rule__XIfExpression__Group__5__Impl rule__XIfExpression__Group__6 ) - // InternalEntities.g:9084:2: rule__XIfExpression__Group__5__Impl rule__XIfExpression__Group__6 - { - pushFollow(FOLLOW_68); - rule__XIfExpression__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__6(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__5" - - - // $ANTLR start "rule__XIfExpression__Group__5__Impl" - // InternalEntities.g:9091:1: rule__XIfExpression__Group__5__Impl : ( ( rule__XIfExpression__ThenAssignment_5 ) ) ; - public final void rule__XIfExpression__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9095:1: ( ( ( rule__XIfExpression__ThenAssignment_5 ) ) ) - // InternalEntities.g:9096:1: ( ( rule__XIfExpression__ThenAssignment_5 ) ) - { - // InternalEntities.g:9096:1: ( ( rule__XIfExpression__ThenAssignment_5 ) ) - // InternalEntities.g:9097:2: ( rule__XIfExpression__ThenAssignment_5 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getThenAssignment_5()); - } - // InternalEntities.g:9098:2: ( rule__XIfExpression__ThenAssignment_5 ) - // InternalEntities.g:9098:3: rule__XIfExpression__ThenAssignment_5 - { - pushFollow(FOLLOW_2); - rule__XIfExpression__ThenAssignment_5(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getThenAssignment_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__5__Impl" - - - // $ANTLR start "rule__XIfExpression__Group__6" - // InternalEntities.g:9106:1: rule__XIfExpression__Group__6 : rule__XIfExpression__Group__6__Impl ; - public final void rule__XIfExpression__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9110:1: ( rule__XIfExpression__Group__6__Impl ) - // InternalEntities.g:9111:2: rule__XIfExpression__Group__6__Impl - { - pushFollow(FOLLOW_2); - rule__XIfExpression__Group__6__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__6" - - - // $ANTLR start "rule__XIfExpression__Group__6__Impl" - // InternalEntities.g:9117:1: rule__XIfExpression__Group__6__Impl : ( ( rule__XIfExpression__Group_6__0 )? ) ; - public final void rule__XIfExpression__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9121:1: ( ( ( rule__XIfExpression__Group_6__0 )? ) ) - // InternalEntities.g:9122:1: ( ( rule__XIfExpression__Group_6__0 )? ) - { - // InternalEntities.g:9122:1: ( ( rule__XIfExpression__Group_6__0 )? ) - // InternalEntities.g:9123:2: ( rule__XIfExpression__Group_6__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getGroup_6()); - } - // InternalEntities.g:9124:2: ( rule__XIfExpression__Group_6__0 )? - int alt81=2; - int LA81_0 = input.LA(1); - - if ( (LA81_0==67) ) { - int LA81_1 = input.LA(2); - - if ( (synpred124_InternalEntities()) ) { - alt81=1; - } - } - switch (alt81) { - case 1 : - // InternalEntities.g:9124:3: rule__XIfExpression__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__XIfExpression__Group_6__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getGroup_6()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group__6__Impl" - - - // $ANTLR start "rule__XIfExpression__Group_6__0" - // InternalEntities.g:9133:1: rule__XIfExpression__Group_6__0 : rule__XIfExpression__Group_6__0__Impl rule__XIfExpression__Group_6__1 ; - public final void rule__XIfExpression__Group_6__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9137:1: ( rule__XIfExpression__Group_6__0__Impl rule__XIfExpression__Group_6__1 ) - // InternalEntities.g:9138:2: rule__XIfExpression__Group_6__0__Impl rule__XIfExpression__Group_6__1 - { - pushFollow(FOLLOW_56); - rule__XIfExpression__Group_6__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XIfExpression__Group_6__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group_6__0" - - - // $ANTLR start "rule__XIfExpression__Group_6__0__Impl" - // InternalEntities.g:9145:1: rule__XIfExpression__Group_6__0__Impl : ( ( 'else' ) ) ; - public final void rule__XIfExpression__Group_6__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9149:1: ( ( ( 'else' ) ) ) - // InternalEntities.g:9150:1: ( ( 'else' ) ) - { - // InternalEntities.g:9150:1: ( ( 'else' ) ) - // InternalEntities.g:9151:2: ( 'else' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); - } - // InternalEntities.g:9152:2: ( 'else' ) - // InternalEntities.g:9152:3: 'else' - { - match(input,67,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group_6__0__Impl" - - - // $ANTLR start "rule__XIfExpression__Group_6__1" - // InternalEntities.g:9160:1: rule__XIfExpression__Group_6__1 : rule__XIfExpression__Group_6__1__Impl ; - public final void rule__XIfExpression__Group_6__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9164:1: ( rule__XIfExpression__Group_6__1__Impl ) - // InternalEntities.g:9165:2: rule__XIfExpression__Group_6__1__Impl - { - pushFollow(FOLLOW_2); - rule__XIfExpression__Group_6__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group_6__1" - - - // $ANTLR start "rule__XIfExpression__Group_6__1__Impl" - // InternalEntities.g:9171:1: rule__XIfExpression__Group_6__1__Impl : ( ( rule__XIfExpression__ElseAssignment_6_1 ) ) ; - public final void rule__XIfExpression__Group_6__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9175:1: ( ( ( rule__XIfExpression__ElseAssignment_6_1 ) ) ) - // InternalEntities.g:9176:1: ( ( rule__XIfExpression__ElseAssignment_6_1 ) ) - { - // InternalEntities.g:9176:1: ( ( rule__XIfExpression__ElseAssignment_6_1 ) ) - // InternalEntities.g:9177:2: ( rule__XIfExpression__ElseAssignment_6_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getElseAssignment_6_1()); - } - // InternalEntities.g:9178:2: ( rule__XIfExpression__ElseAssignment_6_1 ) - // InternalEntities.g:9178:3: rule__XIfExpression__ElseAssignment_6_1 - { - pushFollow(FOLLOW_2); - rule__XIfExpression__ElseAssignment_6_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getElseAssignment_6_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__Group_6__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__0" - // InternalEntities.g:9187:1: rule__XSwitchExpression__Group__0 : rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1 ; - public final void rule__XSwitchExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9191:1: ( rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1 ) - // InternalEntities.g:9192:2: rule__XSwitchExpression__Group__0__Impl rule__XSwitchExpression__Group__1 - { - pushFollow(FOLLOW_69); - rule__XSwitchExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__0" - - - // $ANTLR start "rule__XSwitchExpression__Group__0__Impl" - // InternalEntities.g:9199:1: rule__XSwitchExpression__Group__0__Impl : ( () ) ; - public final void rule__XSwitchExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9203:1: ( ( () ) ) - // InternalEntities.g:9204:1: ( () ) - { - // InternalEntities.g:9204:1: ( () ) - // InternalEntities.g:9205:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0()); - } - // InternalEntities.g:9206:2: () - // InternalEntities.g:9206:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__1" - // InternalEntities.g:9214:1: rule__XSwitchExpression__Group__1 : rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2 ; - public final void rule__XSwitchExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9218:1: ( rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2 ) - // InternalEntities.g:9219:2: rule__XSwitchExpression__Group__1__Impl rule__XSwitchExpression__Group__2 - { - pushFollow(FOLLOW_56); - rule__XSwitchExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__1" - - - // $ANTLR start "rule__XSwitchExpression__Group__1__Impl" - // InternalEntities.g:9226:1: rule__XSwitchExpression__Group__1__Impl : ( 'switch' ) ; - public final void rule__XSwitchExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9230:1: ( ( 'switch' ) ) - // InternalEntities.g:9231:1: ( 'switch' ) - { - // InternalEntities.g:9231:1: ( 'switch' ) - // InternalEntities.g:9232:2: 'switch' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); - } - match(input,68,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__2" - // InternalEntities.g:9241:1: rule__XSwitchExpression__Group__2 : rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 ; - public final void rule__XSwitchExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9245:1: ( rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 ) - // InternalEntities.g:9246:2: rule__XSwitchExpression__Group__2__Impl rule__XSwitchExpression__Group__3 - { - pushFollow(FOLLOW_8); - rule__XSwitchExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__2" - - - // $ANTLR start "rule__XSwitchExpression__Group__2__Impl" - // InternalEntities.g:9253:1: rule__XSwitchExpression__Group__2__Impl : ( ( rule__XSwitchExpression__Alternatives_2 ) ) ; - public final void rule__XSwitchExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9257:1: ( ( ( rule__XSwitchExpression__Alternatives_2 ) ) ) - // InternalEntities.g:9258:1: ( ( rule__XSwitchExpression__Alternatives_2 ) ) - { - // InternalEntities.g:9258:1: ( ( rule__XSwitchExpression__Alternatives_2 ) ) - // InternalEntities.g:9259:2: ( rule__XSwitchExpression__Alternatives_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getAlternatives_2()); - } - // InternalEntities.g:9260:2: ( rule__XSwitchExpression__Alternatives_2 ) - // InternalEntities.g:9260:3: rule__XSwitchExpression__Alternatives_2 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Alternatives_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getAlternatives_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__2__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__3" - // InternalEntities.g:9268:1: rule__XSwitchExpression__Group__3 : rule__XSwitchExpression__Group__3__Impl rule__XSwitchExpression__Group__4 ; - public final void rule__XSwitchExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9272:1: ( rule__XSwitchExpression__Group__3__Impl rule__XSwitchExpression__Group__4 ) - // InternalEntities.g:9273:2: rule__XSwitchExpression__Group__3__Impl rule__XSwitchExpression__Group__4 - { - pushFollow(FOLLOW_70); - rule__XSwitchExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__3" - - - // $ANTLR start "rule__XSwitchExpression__Group__3__Impl" - // InternalEntities.g:9280:1: rule__XSwitchExpression__Group__3__Impl : ( '{' ) ; - public final void rule__XSwitchExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9284:1: ( ( '{' ) ) - // InternalEntities.g:9285:1: ( '{' ) - { - // InternalEntities.g:9285:1: ( '{' ) - // InternalEntities.g:9286:2: '{' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); - } - match(input,52,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__3__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__4" - // InternalEntities.g:9295:1: rule__XSwitchExpression__Group__4 : rule__XSwitchExpression__Group__4__Impl rule__XSwitchExpression__Group__5 ; - public final void rule__XSwitchExpression__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9299:1: ( rule__XSwitchExpression__Group__4__Impl rule__XSwitchExpression__Group__5 ) - // InternalEntities.g:9300:2: rule__XSwitchExpression__Group__4__Impl rule__XSwitchExpression__Group__5 - { - pushFollow(FOLLOW_70); - rule__XSwitchExpression__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__4" - - - // $ANTLR start "rule__XSwitchExpression__Group__4__Impl" - // InternalEntities.g:9307:1: rule__XSwitchExpression__Group__4__Impl : ( ( rule__XSwitchExpression__CasesAssignment_4 )* ) ; - public final void rule__XSwitchExpression__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9311:1: ( ( ( rule__XSwitchExpression__CasesAssignment_4 )* ) ) - // InternalEntities.g:9312:1: ( ( rule__XSwitchExpression__CasesAssignment_4 )* ) - { - // InternalEntities.g:9312:1: ( ( rule__XSwitchExpression__CasesAssignment_4 )* ) - // InternalEntities.g:9313:2: ( rule__XSwitchExpression__CasesAssignment_4 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getCasesAssignment_4()); - } - // InternalEntities.g:9314:2: ( rule__XSwitchExpression__CasesAssignment_4 )* - loop82: - do { - int alt82=2; - int LA82_0 = input.LA(1); - - if ( (LA82_0==RULE_ID||LA82_0==31||LA82_0==55||LA82_0==57||LA82_0==59||LA82_0==70) ) { - alt82=1; - } - - - switch (alt82) { - case 1 : - // InternalEntities.g:9314:3: rule__XSwitchExpression__CasesAssignment_4 - { - pushFollow(FOLLOW_71); - rule__XSwitchExpression__CasesAssignment_4(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop82; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getCasesAssignment_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__4__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__5" - // InternalEntities.g:9322:1: rule__XSwitchExpression__Group__5 : rule__XSwitchExpression__Group__5__Impl rule__XSwitchExpression__Group__6 ; - public final void rule__XSwitchExpression__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9326:1: ( rule__XSwitchExpression__Group__5__Impl rule__XSwitchExpression__Group__6 ) - // InternalEntities.g:9327:2: rule__XSwitchExpression__Group__5__Impl rule__XSwitchExpression__Group__6 - { - pushFollow(FOLLOW_70); - rule__XSwitchExpression__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__6(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__5" - - - // $ANTLR start "rule__XSwitchExpression__Group__5__Impl" - // InternalEntities.g:9334:1: rule__XSwitchExpression__Group__5__Impl : ( ( rule__XSwitchExpression__Group_5__0 )? ) ; - public final void rule__XSwitchExpression__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9338:1: ( ( ( rule__XSwitchExpression__Group_5__0 )? ) ) - // InternalEntities.g:9339:1: ( ( rule__XSwitchExpression__Group_5__0 )? ) - { - // InternalEntities.g:9339:1: ( ( rule__XSwitchExpression__Group_5__0 )? ) - // InternalEntities.g:9340:2: ( rule__XSwitchExpression__Group_5__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_5()); - } - // InternalEntities.g:9341:2: ( rule__XSwitchExpression__Group_5__0 )? - int alt83=2; - int LA83_0 = input.LA(1); - - if ( (LA83_0==69) ) { - alt83=1; - } - switch (alt83) { - case 1 : - // InternalEntities.g:9341:3: rule__XSwitchExpression__Group_5__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_5__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__5__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group__6" - // InternalEntities.g:9349:1: rule__XSwitchExpression__Group__6 : rule__XSwitchExpression__Group__6__Impl ; - public final void rule__XSwitchExpression__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9353:1: ( rule__XSwitchExpression__Group__6__Impl ) - // InternalEntities.g:9354:2: rule__XSwitchExpression__Group__6__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group__6__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__6" - - - // $ANTLR start "rule__XSwitchExpression__Group__6__Impl" - // InternalEntities.g:9360:1: rule__XSwitchExpression__Group__6__Impl : ( '}' ) ; - public final void rule__XSwitchExpression__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9364:1: ( ( '}' ) ) - // InternalEntities.g:9365:1: ( '}' ) - { - // InternalEntities.g:9365:1: ( '}' ) - // InternalEntities.g:9366:2: '}' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); - } - match(input,53,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group__6__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0__0" - // InternalEntities.g:9376:1: rule__XSwitchExpression__Group_2_0__0 : rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 ; - public final void rule__XSwitchExpression__Group_2_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9380:1: ( rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 ) - // InternalEntities.g:9381:2: rule__XSwitchExpression__Group_2_0__0__Impl rule__XSwitchExpression__Group_2_0__1 - { - pushFollow(FOLLOW_56); - rule__XSwitchExpression__Group_2_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0__0__Impl" - // InternalEntities.g:9388:1: rule__XSwitchExpression__Group_2_0__0__Impl : ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) ; - public final void rule__XSwitchExpression__Group_2_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9392:1: ( ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) ) - // InternalEntities.g:9393:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) - { - // InternalEntities.g:9393:1: ( ( rule__XSwitchExpression__Group_2_0_0__0 ) ) - // InternalEntities.g:9394:2: ( rule__XSwitchExpression__Group_2_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); - } - // InternalEntities.g:9395:2: ( rule__XSwitchExpression__Group_2_0_0__0 ) - // InternalEntities.g:9395:3: rule__XSwitchExpression__Group_2_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0__1" - // InternalEntities.g:9403:1: rule__XSwitchExpression__Group_2_0__1 : rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2 ; - public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9407:1: ( rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2 ) - // InternalEntities.g:9408:2: rule__XSwitchExpression__Group_2_0__1__Impl rule__XSwitchExpression__Group_2_0__2 - { - pushFollow(FOLLOW_66); - rule__XSwitchExpression__Group_2_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0__1" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0__1__Impl" - // InternalEntities.g:9415:1: rule__XSwitchExpression__Group_2_0__1__Impl : ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) ) ; - public final void rule__XSwitchExpression__Group_2_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9419:1: ( ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) ) ) - // InternalEntities.g:9420:1: ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) ) - { - // InternalEntities.g:9420:1: ( ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) ) - // InternalEntities.g:9421:2: ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1()); - } - // InternalEntities.g:9422:2: ( rule__XSwitchExpression__SwitchAssignment_2_0_1 ) - // InternalEntities.g:9422:3: rule__XSwitchExpression__SwitchAssignment_2_0_1 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__SwitchAssignment_2_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0__2" - // InternalEntities.g:9430:1: rule__XSwitchExpression__Group_2_0__2 : rule__XSwitchExpression__Group_2_0__2__Impl ; - public final void rule__XSwitchExpression__Group_2_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9434:1: ( rule__XSwitchExpression__Group_2_0__2__Impl ) - // InternalEntities.g:9435:2: rule__XSwitchExpression__Group_2_0__2__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0__2" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0__2__Impl" - // InternalEntities.g:9441:1: rule__XSwitchExpression__Group_2_0__2__Impl : ( ')' ) ; - public final void rule__XSwitchExpression__Group_2_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9445:1: ( ( ')' ) ) - // InternalEntities.g:9446:1: ( ')' ) - { - // InternalEntities.g:9446:1: ( ')' ) - // InternalEntities.g:9447:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0__2__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0__0" - // InternalEntities.g:9457:1: rule__XSwitchExpression__Group_2_0_0__0 : rule__XSwitchExpression__Group_2_0_0__0__Impl ; - public final void rule__XSwitchExpression__Group_2_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9461:1: ( rule__XSwitchExpression__Group_2_0_0__0__Impl ) - // InternalEntities.g:9462:2: rule__XSwitchExpression__Group_2_0_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0__0__Impl" - // InternalEntities.g:9468:1: rule__XSwitchExpression__Group_2_0_0__0__Impl : ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) ; - public final void rule__XSwitchExpression__Group_2_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9472:1: ( ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) ) - // InternalEntities.g:9473:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) - { - // InternalEntities.g:9473:1: ( ( rule__XSwitchExpression__Group_2_0_0_0__0 ) ) - // InternalEntities.g:9474:2: ( rule__XSwitchExpression__Group_2_0_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); - } - // InternalEntities.g:9475:2: ( rule__XSwitchExpression__Group_2_0_0_0__0 ) - // InternalEntities.g:9475:3: rule__XSwitchExpression__Group_2_0_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__0" - // InternalEntities.g:9484:1: rule__XSwitchExpression__Group_2_0_0_0__0 : rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1 ; - public final void rule__XSwitchExpression__Group_2_0_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9488:1: ( rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1 ) - // InternalEntities.g:9489:2: rule__XSwitchExpression__Group_2_0_0_0__0__Impl rule__XSwitchExpression__Group_2_0_0_0__1 - { - pushFollow(FOLLOW_14); - rule__XSwitchExpression__Group_2_0_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__0__Impl" - // InternalEntities.g:9496:1: rule__XSwitchExpression__Group_2_0_0_0__0__Impl : ( '(' ) ; - public final void rule__XSwitchExpression__Group_2_0_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9500:1: ( ( '(' ) ) - // InternalEntities.g:9501:1: ( '(' ) - { - // InternalEntities.g:9501:1: ( '(' ) - // InternalEntities.g:9502:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__1" - // InternalEntities.g:9511:1: rule__XSwitchExpression__Group_2_0_0_0__1 : rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2 ; - public final void rule__XSwitchExpression__Group_2_0_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9515:1: ( rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2 ) - // InternalEntities.g:9516:2: rule__XSwitchExpression__Group_2_0_0_0__1__Impl rule__XSwitchExpression__Group_2_0_0_0__2 - { - pushFollow(FOLLOW_13); - rule__XSwitchExpression__Group_2_0_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0_0_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__1" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__1__Impl" - // InternalEntities.g:9523:1: rule__XSwitchExpression__Group_2_0_0_0__1__Impl : ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 ) ) ; - public final void rule__XSwitchExpression__Group_2_0_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9527:1: ( ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 ) ) ) - // InternalEntities.g:9528:1: ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 ) ) - { - // InternalEntities.g:9528:1: ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 ) ) - // InternalEntities.g:9529:2: ( rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_0_0_0_1()); - } - // InternalEntities.g:9530:2: ( rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 ) - // InternalEntities.g:9530:3: rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_0_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__2" - // InternalEntities.g:9538:1: rule__XSwitchExpression__Group_2_0_0_0__2 : rule__XSwitchExpression__Group_2_0_0_0__2__Impl ; - public final void rule__XSwitchExpression__Group_2_0_0_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9542:1: ( rule__XSwitchExpression__Group_2_0_0_0__2__Impl ) - // InternalEntities.g:9543:2: rule__XSwitchExpression__Group_2_0_0_0__2__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0_0_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__2" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_0_0_0__2__Impl" - // InternalEntities.g:9549:1: rule__XSwitchExpression__Group_2_0_0_0__2__Impl : ( ':' ) ; - public final void rule__XSwitchExpression__Group_2_0_0_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9553:1: ( ( ':' ) ) - // InternalEntities.g:9554:1: ( ':' ) - { - // InternalEntities.g:9554:1: ( ':' ) - // InternalEntities.g:9555:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__2__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1__0" - // InternalEntities.g:9565:1: rule__XSwitchExpression__Group_2_1__0 : rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 ; - public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9569:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 ) - // InternalEntities.g:9570:2: rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 - { - pushFollow(FOLLOW_56); - rule__XSwitchExpression__Group_2_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1__0__Impl" - // InternalEntities.g:9577:1: rule__XSwitchExpression__Group_2_1__0__Impl : ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) ; - public final void rule__XSwitchExpression__Group_2_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9581:1: ( ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) ) - // InternalEntities.g:9582:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) - { - // InternalEntities.g:9582:1: ( ( rule__XSwitchExpression__Group_2_1_0__0 )? ) - // InternalEntities.g:9583:2: ( rule__XSwitchExpression__Group_2_1_0__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); - } - // InternalEntities.g:9584:2: ( rule__XSwitchExpression__Group_2_1_0__0 )? - int alt84=2; - alt84 = dfa84.predict(input); - switch (alt84) { - case 1 : - // InternalEntities.g:9584:3: rule__XSwitchExpression__Group_2_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1__1" - // InternalEntities.g:9592:1: rule__XSwitchExpression__Group_2_1__1 : rule__XSwitchExpression__Group_2_1__1__Impl ; - public final void rule__XSwitchExpression__Group_2_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9596:1: ( rule__XSwitchExpression__Group_2_1__1__Impl ) - // InternalEntities.g:9597:2: rule__XSwitchExpression__Group_2_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1__1" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1__1__Impl" - // InternalEntities.g:9603:1: rule__XSwitchExpression__Group_2_1__1__Impl : ( ( rule__XSwitchExpression__SwitchAssignment_2_1_1 ) ) ; - public final void rule__XSwitchExpression__Group_2_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9607:1: ( ( ( rule__XSwitchExpression__SwitchAssignment_2_1_1 ) ) ) - // InternalEntities.g:9608:1: ( ( rule__XSwitchExpression__SwitchAssignment_2_1_1 ) ) - { - // InternalEntities.g:9608:1: ( ( rule__XSwitchExpression__SwitchAssignment_2_1_1 ) ) - // InternalEntities.g:9609:2: ( rule__XSwitchExpression__SwitchAssignment_2_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_1_1()); - } - // InternalEntities.g:9610:2: ( rule__XSwitchExpression__SwitchAssignment_2_1_1 ) - // InternalEntities.g:9610:3: rule__XSwitchExpression__SwitchAssignment_2_1_1 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__SwitchAssignment_2_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getSwitchAssignment_2_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1_0__0" - // InternalEntities.g:9619:1: rule__XSwitchExpression__Group_2_1_0__0 : rule__XSwitchExpression__Group_2_1_0__0__Impl ; - public final void rule__XSwitchExpression__Group_2_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9623:1: ( rule__XSwitchExpression__Group_2_1_0__0__Impl ) - // InternalEntities.g:9624:2: rule__XSwitchExpression__Group_2_1_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1_0__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1_0__0__Impl" - // InternalEntities.g:9630:1: rule__XSwitchExpression__Group_2_1_0__0__Impl : ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) ; - public final void rule__XSwitchExpression__Group_2_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9634:1: ( ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) ) - // InternalEntities.g:9635:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) - { - // InternalEntities.g:9635:1: ( ( rule__XSwitchExpression__Group_2_1_0_0__0 ) ) - // InternalEntities.g:9636:2: ( rule__XSwitchExpression__Group_2_1_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); - } - // InternalEntities.g:9637:2: ( rule__XSwitchExpression__Group_2_1_0_0__0 ) - // InternalEntities.g:9637:3: rule__XSwitchExpression__Group_2_1_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getGroup_2_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1_0__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1_0_0__0" - // InternalEntities.g:9646:1: rule__XSwitchExpression__Group_2_1_0_0__0 : rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 ; - public final void rule__XSwitchExpression__Group_2_1_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9650:1: ( rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 ) - // InternalEntities.g:9651:2: rule__XSwitchExpression__Group_2_1_0_0__0__Impl rule__XSwitchExpression__Group_2_1_0_0__1 - { - pushFollow(FOLLOW_13); - rule__XSwitchExpression__Group_2_1_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1_0_0__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1_0_0__0__Impl" - // InternalEntities.g:9658:1: rule__XSwitchExpression__Group_2_1_0_0__0__Impl : ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 ) ) ; - public final void rule__XSwitchExpression__Group_2_1_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9662:1: ( ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 ) ) ) - // InternalEntities.g:9663:1: ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 ) ) - { - // InternalEntities.g:9663:1: ( ( rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 ) ) - // InternalEntities.g:9664:2: ( rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_1_0_0_0()); - } - // InternalEntities.g:9665:2: ( rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 ) - // InternalEntities.g:9665:3: rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamAssignment_2_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1_0_0__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1_0_0__1" - // InternalEntities.g:9673:1: rule__XSwitchExpression__Group_2_1_0_0__1 : rule__XSwitchExpression__Group_2_1_0_0__1__Impl ; - public final void rule__XSwitchExpression__Group_2_1_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9677:1: ( rule__XSwitchExpression__Group_2_1_0_0__1__Impl ) - // InternalEntities.g:9678:2: rule__XSwitchExpression__Group_2_1_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1_0_0__1" - - - // $ANTLR start "rule__XSwitchExpression__Group_2_1_0_0__1__Impl" - // InternalEntities.g:9684:1: rule__XSwitchExpression__Group_2_1_0_0__1__Impl : ( ':' ) ; - public final void rule__XSwitchExpression__Group_2_1_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9688:1: ( ( ':' ) ) - // InternalEntities.g:9689:1: ( ':' ) - { - // InternalEntities.g:9689:1: ( ':' ) - // InternalEntities.g:9690:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_2_1_0_0__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_5__0" - // InternalEntities.g:9700:1: rule__XSwitchExpression__Group_5__0 : rule__XSwitchExpression__Group_5__0__Impl rule__XSwitchExpression__Group_5__1 ; - public final void rule__XSwitchExpression__Group_5__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9704:1: ( rule__XSwitchExpression__Group_5__0__Impl rule__XSwitchExpression__Group_5__1 ) - // InternalEntities.g:9705:2: rule__XSwitchExpression__Group_5__0__Impl rule__XSwitchExpression__Group_5__1 - { - pushFollow(FOLLOW_13); - rule__XSwitchExpression__Group_5__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_5__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_5__0" - - - // $ANTLR start "rule__XSwitchExpression__Group_5__0__Impl" - // InternalEntities.g:9712:1: rule__XSwitchExpression__Group_5__0__Impl : ( 'default' ) ; - public final void rule__XSwitchExpression__Group_5__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9716:1: ( ( 'default' ) ) - // InternalEntities.g:9717:1: ( 'default' ) - { - // InternalEntities.g:9717:1: ( 'default' ) - // InternalEntities.g:9718:2: 'default' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); - } - match(input,69,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_5__0__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_5__1" - // InternalEntities.g:9727:1: rule__XSwitchExpression__Group_5__1 : rule__XSwitchExpression__Group_5__1__Impl rule__XSwitchExpression__Group_5__2 ; - public final void rule__XSwitchExpression__Group_5__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9731:1: ( rule__XSwitchExpression__Group_5__1__Impl rule__XSwitchExpression__Group_5__2 ) - // InternalEntities.g:9732:2: rule__XSwitchExpression__Group_5__1__Impl rule__XSwitchExpression__Group_5__2 - { - pushFollow(FOLLOW_56); - rule__XSwitchExpression__Group_5__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_5__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_5__1" - - - // $ANTLR start "rule__XSwitchExpression__Group_5__1__Impl" - // InternalEntities.g:9739:1: rule__XSwitchExpression__Group_5__1__Impl : ( ':' ) ; - public final void rule__XSwitchExpression__Group_5__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9743:1: ( ( ':' ) ) - // InternalEntities.g:9744:1: ( ':' ) - { - // InternalEntities.g:9744:1: ( ':' ) - // InternalEntities.g:9745:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_5__1__Impl" - - - // $ANTLR start "rule__XSwitchExpression__Group_5__2" - // InternalEntities.g:9754:1: rule__XSwitchExpression__Group_5__2 : rule__XSwitchExpression__Group_5__2__Impl ; - public final void rule__XSwitchExpression__Group_5__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9758:1: ( rule__XSwitchExpression__Group_5__2__Impl ) - // InternalEntities.g:9759:2: rule__XSwitchExpression__Group_5__2__Impl - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_5__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_5__2" - - - // $ANTLR start "rule__XSwitchExpression__Group_5__2__Impl" - // InternalEntities.g:9765:1: rule__XSwitchExpression__Group_5__2__Impl : ( ( rule__XSwitchExpression__DefaultAssignment_5_2 ) ) ; - public final void rule__XSwitchExpression__Group_5__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9769:1: ( ( ( rule__XSwitchExpression__DefaultAssignment_5_2 ) ) ) - // InternalEntities.g:9770:1: ( ( rule__XSwitchExpression__DefaultAssignment_5_2 ) ) - { - // InternalEntities.g:9770:1: ( ( rule__XSwitchExpression__DefaultAssignment_5_2 ) ) - // InternalEntities.g:9771:2: ( rule__XSwitchExpression__DefaultAssignment_5_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDefaultAssignment_5_2()); - } - // InternalEntities.g:9772:2: ( rule__XSwitchExpression__DefaultAssignment_5_2 ) - // InternalEntities.g:9772:3: rule__XSwitchExpression__DefaultAssignment_5_2 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__DefaultAssignment_5_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDefaultAssignment_5_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__Group_5__2__Impl" - - - // $ANTLR start "rule__XCasePart__Group__0" - // InternalEntities.g:9781:1: rule__XCasePart__Group__0 : rule__XCasePart__Group__0__Impl rule__XCasePart__Group__1 ; - public final void rule__XCasePart__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9785:1: ( rule__XCasePart__Group__0__Impl rule__XCasePart__Group__1 ) - // InternalEntities.g:9786:2: rule__XCasePart__Group__0__Impl rule__XCasePart__Group__1 - { - pushFollow(FOLLOW_72); - rule__XCasePart__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCasePart__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__0" - - - // $ANTLR start "rule__XCasePart__Group__0__Impl" - // InternalEntities.g:9793:1: rule__XCasePart__Group__0__Impl : ( () ) ; - public final void rule__XCasePart__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9797:1: ( ( () ) ) - // InternalEntities.g:9798:1: ( () ) - { - // InternalEntities.g:9798:1: ( () ) - // InternalEntities.g:9799:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getXCasePartAction_0()); - } - // InternalEntities.g:9800:2: () - // InternalEntities.g:9800:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getXCasePartAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__0__Impl" - - - // $ANTLR start "rule__XCasePart__Group__1" - // InternalEntities.g:9808:1: rule__XCasePart__Group__1 : rule__XCasePart__Group__1__Impl rule__XCasePart__Group__2 ; - public final void rule__XCasePart__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9812:1: ( rule__XCasePart__Group__1__Impl rule__XCasePart__Group__2 ) - // InternalEntities.g:9813:2: rule__XCasePart__Group__1__Impl rule__XCasePart__Group__2 - { - pushFollow(FOLLOW_72); - rule__XCasePart__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCasePart__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__1" - - - // $ANTLR start "rule__XCasePart__Group__1__Impl" - // InternalEntities.g:9820:1: rule__XCasePart__Group__1__Impl : ( ( rule__XCasePart__TypeGuardAssignment_1 )? ) ; - public final void rule__XCasePart__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9824:1: ( ( ( rule__XCasePart__TypeGuardAssignment_1 )? ) ) - // InternalEntities.g:9825:1: ( ( rule__XCasePart__TypeGuardAssignment_1 )? ) - { - // InternalEntities.g:9825:1: ( ( rule__XCasePart__TypeGuardAssignment_1 )? ) - // InternalEntities.g:9826:2: ( rule__XCasePart__TypeGuardAssignment_1 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); - } - // InternalEntities.g:9827:2: ( rule__XCasePart__TypeGuardAssignment_1 )? - int alt85=2; - int LA85_0 = input.LA(1); - - if ( (LA85_0==RULE_ID||LA85_0==31||LA85_0==57) ) { - alt85=1; - } - switch (alt85) { - case 1 : - // InternalEntities.g:9827:3: rule__XCasePart__TypeGuardAssignment_1 - { - pushFollow(FOLLOW_2); - rule__XCasePart__TypeGuardAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getTypeGuardAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__1__Impl" - - - // $ANTLR start "rule__XCasePart__Group__2" - // InternalEntities.g:9835:1: rule__XCasePart__Group__2 : rule__XCasePart__Group__2__Impl rule__XCasePart__Group__3 ; - public final void rule__XCasePart__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9839:1: ( rule__XCasePart__Group__2__Impl rule__XCasePart__Group__3 ) - // InternalEntities.g:9840:2: rule__XCasePart__Group__2__Impl rule__XCasePart__Group__3 - { - pushFollow(FOLLOW_72); - rule__XCasePart__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCasePart__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__2" - - - // $ANTLR start "rule__XCasePart__Group__2__Impl" - // InternalEntities.g:9847:1: rule__XCasePart__Group__2__Impl : ( ( rule__XCasePart__Group_2__0 )? ) ; - public final void rule__XCasePart__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9851:1: ( ( ( rule__XCasePart__Group_2__0 )? ) ) - // InternalEntities.g:9852:1: ( ( rule__XCasePart__Group_2__0 )? ) - { - // InternalEntities.g:9852:1: ( ( rule__XCasePart__Group_2__0 )? ) - // InternalEntities.g:9853:2: ( rule__XCasePart__Group_2__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getGroup_2()); - } - // InternalEntities.g:9854:2: ( rule__XCasePart__Group_2__0 )? - int alt86=2; - int LA86_0 = input.LA(1); - - if ( (LA86_0==70) ) { - alt86=1; - } - switch (alt86) { - case 1 : - // InternalEntities.g:9854:3: rule__XCasePart__Group_2__0 - { - pushFollow(FOLLOW_2); - rule__XCasePart__Group_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getGroup_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__2__Impl" - - - // $ANTLR start "rule__XCasePart__Group__3" - // InternalEntities.g:9862:1: rule__XCasePart__Group__3 : rule__XCasePart__Group__3__Impl ; - public final void rule__XCasePart__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9866:1: ( rule__XCasePart__Group__3__Impl ) - // InternalEntities.g:9867:2: rule__XCasePart__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XCasePart__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__3" - - - // $ANTLR start "rule__XCasePart__Group__3__Impl" - // InternalEntities.g:9873:1: rule__XCasePart__Group__3__Impl : ( ( rule__XCasePart__Alternatives_3 ) ) ; - public final void rule__XCasePart__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9877:1: ( ( ( rule__XCasePart__Alternatives_3 ) ) ) - // InternalEntities.g:9878:1: ( ( rule__XCasePart__Alternatives_3 ) ) - { - // InternalEntities.g:9878:1: ( ( rule__XCasePart__Alternatives_3 ) ) - // InternalEntities.g:9879:2: ( rule__XCasePart__Alternatives_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getAlternatives_3()); - } - // InternalEntities.g:9880:2: ( rule__XCasePart__Alternatives_3 ) - // InternalEntities.g:9880:3: rule__XCasePart__Alternatives_3 - { - pushFollow(FOLLOW_2); - rule__XCasePart__Alternatives_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getAlternatives_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group__3__Impl" - - - // $ANTLR start "rule__XCasePart__Group_2__0" - // InternalEntities.g:9889:1: rule__XCasePart__Group_2__0 : rule__XCasePart__Group_2__0__Impl rule__XCasePart__Group_2__1 ; - public final void rule__XCasePart__Group_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9893:1: ( rule__XCasePart__Group_2__0__Impl rule__XCasePart__Group_2__1 ) - // InternalEntities.g:9894:2: rule__XCasePart__Group_2__0__Impl rule__XCasePart__Group_2__1 - { - pushFollow(FOLLOW_56); - rule__XCasePart__Group_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCasePart__Group_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_2__0" - - - // $ANTLR start "rule__XCasePart__Group_2__0__Impl" - // InternalEntities.g:9901:1: rule__XCasePart__Group_2__0__Impl : ( 'case' ) ; - public final void rule__XCasePart__Group_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9905:1: ( ( 'case' ) ) - // InternalEntities.g:9906:1: ( 'case' ) - { - // InternalEntities.g:9906:1: ( 'case' ) - // InternalEntities.g:9907:2: 'case' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); - } - match(input,70,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_2__0__Impl" - - - // $ANTLR start "rule__XCasePart__Group_2__1" - // InternalEntities.g:9916:1: rule__XCasePart__Group_2__1 : rule__XCasePart__Group_2__1__Impl ; - public final void rule__XCasePart__Group_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9920:1: ( rule__XCasePart__Group_2__1__Impl ) - // InternalEntities.g:9921:2: rule__XCasePart__Group_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__XCasePart__Group_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_2__1" - - - // $ANTLR start "rule__XCasePart__Group_2__1__Impl" - // InternalEntities.g:9927:1: rule__XCasePart__Group_2__1__Impl : ( ( rule__XCasePart__CaseAssignment_2_1 ) ) ; - public final void rule__XCasePart__Group_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9931:1: ( ( ( rule__XCasePart__CaseAssignment_2_1 ) ) ) - // InternalEntities.g:9932:1: ( ( rule__XCasePart__CaseAssignment_2_1 ) ) - { - // InternalEntities.g:9932:1: ( ( rule__XCasePart__CaseAssignment_2_1 ) ) - // InternalEntities.g:9933:2: ( rule__XCasePart__CaseAssignment_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getCaseAssignment_2_1()); - } - // InternalEntities.g:9934:2: ( rule__XCasePart__CaseAssignment_2_1 ) - // InternalEntities.g:9934:3: rule__XCasePart__CaseAssignment_2_1 - { - pushFollow(FOLLOW_2); - rule__XCasePart__CaseAssignment_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getCaseAssignment_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_2__1__Impl" - - - // $ANTLR start "rule__XCasePart__Group_3_0__0" - // InternalEntities.g:9943:1: rule__XCasePart__Group_3_0__0 : rule__XCasePart__Group_3_0__0__Impl rule__XCasePart__Group_3_0__1 ; - public final void rule__XCasePart__Group_3_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9947:1: ( rule__XCasePart__Group_3_0__0__Impl rule__XCasePart__Group_3_0__1 ) - // InternalEntities.g:9948:2: rule__XCasePart__Group_3_0__0__Impl rule__XCasePart__Group_3_0__1 - { - pushFollow(FOLLOW_56); - rule__XCasePart__Group_3_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCasePart__Group_3_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_3_0__0" - - - // $ANTLR start "rule__XCasePart__Group_3_0__0__Impl" - // InternalEntities.g:9955:1: rule__XCasePart__Group_3_0__0__Impl : ( ':' ) ; - public final void rule__XCasePart__Group_3_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9959:1: ( ( ':' ) ) - // InternalEntities.g:9960:1: ( ':' ) - { - // InternalEntities.g:9960:1: ( ':' ) - // InternalEntities.g:9961:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_3_0__0__Impl" - - - // $ANTLR start "rule__XCasePart__Group_3_0__1" - // InternalEntities.g:9970:1: rule__XCasePart__Group_3_0__1 : rule__XCasePart__Group_3_0__1__Impl ; - public final void rule__XCasePart__Group_3_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9974:1: ( rule__XCasePart__Group_3_0__1__Impl ) - // InternalEntities.g:9975:2: rule__XCasePart__Group_3_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XCasePart__Group_3_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_3_0__1" - - - // $ANTLR start "rule__XCasePart__Group_3_0__1__Impl" - // InternalEntities.g:9981:1: rule__XCasePart__Group_3_0__1__Impl : ( ( rule__XCasePart__ThenAssignment_3_0_1 ) ) ; - public final void rule__XCasePart__Group_3_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:9985:1: ( ( ( rule__XCasePart__ThenAssignment_3_0_1 ) ) ) - // InternalEntities.g:9986:1: ( ( rule__XCasePart__ThenAssignment_3_0_1 ) ) - { - // InternalEntities.g:9986:1: ( ( rule__XCasePart__ThenAssignment_3_0_1 ) ) - // InternalEntities.g:9987:2: ( rule__XCasePart__ThenAssignment_3_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getThenAssignment_3_0_1()); - } - // InternalEntities.g:9988:2: ( rule__XCasePart__ThenAssignment_3_0_1 ) - // InternalEntities.g:9988:3: rule__XCasePart__ThenAssignment_3_0_1 - { - pushFollow(FOLLOW_2); - rule__XCasePart__ThenAssignment_3_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getThenAssignment_3_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__Group_3_0__1__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group__0" - // InternalEntities.g:9997:1: rule__XForLoopExpression__Group__0 : rule__XForLoopExpression__Group__0__Impl rule__XForLoopExpression__Group__1 ; - public final void rule__XForLoopExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10001:1: ( rule__XForLoopExpression__Group__0__Impl rule__XForLoopExpression__Group__1 ) - // InternalEntities.g:10002:2: rule__XForLoopExpression__Group__0__Impl rule__XForLoopExpression__Group__1 - { - pushFollow(FOLLOW_56); - rule__XForLoopExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__0" - - - // $ANTLR start "rule__XForLoopExpression__Group__0__Impl" - // InternalEntities.g:10009:1: rule__XForLoopExpression__Group__0__Impl : ( ( rule__XForLoopExpression__Group_0__0 ) ) ; - public final void rule__XForLoopExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10013:1: ( ( ( rule__XForLoopExpression__Group_0__0 ) ) ) - // InternalEntities.g:10014:1: ( ( rule__XForLoopExpression__Group_0__0 ) ) - { - // InternalEntities.g:10014:1: ( ( rule__XForLoopExpression__Group_0__0 ) ) - // InternalEntities.g:10015:2: ( rule__XForLoopExpression__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getGroup_0()); - } - // InternalEntities.g:10016:2: ( rule__XForLoopExpression__Group_0__0 ) - // InternalEntities.g:10016:3: rule__XForLoopExpression__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getGroup_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__0__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group__1" - // InternalEntities.g:10024:1: rule__XForLoopExpression__Group__1 : rule__XForLoopExpression__Group__1__Impl rule__XForLoopExpression__Group__2 ; - public final void rule__XForLoopExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10028:1: ( rule__XForLoopExpression__Group__1__Impl rule__XForLoopExpression__Group__2 ) - // InternalEntities.g:10029:2: rule__XForLoopExpression__Group__1__Impl rule__XForLoopExpression__Group__2 - { - pushFollow(FOLLOW_66); - rule__XForLoopExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__1" - - - // $ANTLR start "rule__XForLoopExpression__Group__1__Impl" - // InternalEntities.g:10036:1: rule__XForLoopExpression__Group__1__Impl : ( ( rule__XForLoopExpression__ForExpressionAssignment_1 ) ) ; - public final void rule__XForLoopExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10040:1: ( ( ( rule__XForLoopExpression__ForExpressionAssignment_1 ) ) ) - // InternalEntities.g:10041:1: ( ( rule__XForLoopExpression__ForExpressionAssignment_1 ) ) - { - // InternalEntities.g:10041:1: ( ( rule__XForLoopExpression__ForExpressionAssignment_1 ) ) - // InternalEntities.g:10042:2: ( rule__XForLoopExpression__ForExpressionAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getForExpressionAssignment_1()); - } - // InternalEntities.g:10043:2: ( rule__XForLoopExpression__ForExpressionAssignment_1 ) - // InternalEntities.g:10043:3: rule__XForLoopExpression__ForExpressionAssignment_1 - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__ForExpressionAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getForExpressionAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__1__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group__2" - // InternalEntities.g:10051:1: rule__XForLoopExpression__Group__2 : rule__XForLoopExpression__Group__2__Impl rule__XForLoopExpression__Group__3 ; - public final void rule__XForLoopExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10055:1: ( rule__XForLoopExpression__Group__2__Impl rule__XForLoopExpression__Group__3 ) - // InternalEntities.g:10056:2: rule__XForLoopExpression__Group__2__Impl rule__XForLoopExpression__Group__3 - { - pushFollow(FOLLOW_56); - rule__XForLoopExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__2" - - - // $ANTLR start "rule__XForLoopExpression__Group__2__Impl" - // InternalEntities.g:10063:1: rule__XForLoopExpression__Group__2__Impl : ( ')' ) ; - public final void rule__XForLoopExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10067:1: ( ( ')' ) ) - // InternalEntities.g:10068:1: ( ')' ) - { - // InternalEntities.g:10068:1: ( ')' ) - // InternalEntities.g:10069:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__2__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group__3" - // InternalEntities.g:10078:1: rule__XForLoopExpression__Group__3 : rule__XForLoopExpression__Group__3__Impl ; - public final void rule__XForLoopExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10082:1: ( rule__XForLoopExpression__Group__3__Impl ) - // InternalEntities.g:10083:2: rule__XForLoopExpression__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__3" - - - // $ANTLR start "rule__XForLoopExpression__Group__3__Impl" - // InternalEntities.g:10089:1: rule__XForLoopExpression__Group__3__Impl : ( ( rule__XForLoopExpression__EachExpressionAssignment_3 ) ) ; - public final void rule__XForLoopExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10093:1: ( ( ( rule__XForLoopExpression__EachExpressionAssignment_3 ) ) ) - // InternalEntities.g:10094:1: ( ( rule__XForLoopExpression__EachExpressionAssignment_3 ) ) - { - // InternalEntities.g:10094:1: ( ( rule__XForLoopExpression__EachExpressionAssignment_3 ) ) - // InternalEntities.g:10095:2: ( rule__XForLoopExpression__EachExpressionAssignment_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getEachExpressionAssignment_3()); - } - // InternalEntities.g:10096:2: ( rule__XForLoopExpression__EachExpressionAssignment_3 ) - // InternalEntities.g:10096:3: rule__XForLoopExpression__EachExpressionAssignment_3 - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__EachExpressionAssignment_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getEachExpressionAssignment_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group__3__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group_0__0" - // InternalEntities.g:10105:1: rule__XForLoopExpression__Group_0__0 : rule__XForLoopExpression__Group_0__0__Impl ; - public final void rule__XForLoopExpression__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10109:1: ( rule__XForLoopExpression__Group_0__0__Impl ) - // InternalEntities.g:10110:2: rule__XForLoopExpression__Group_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0__0" - - - // $ANTLR start "rule__XForLoopExpression__Group_0__0__Impl" - // InternalEntities.g:10116:1: rule__XForLoopExpression__Group_0__0__Impl : ( ( rule__XForLoopExpression__Group_0_0__0 ) ) ; - public final void rule__XForLoopExpression__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10120:1: ( ( ( rule__XForLoopExpression__Group_0_0__0 ) ) ) - // InternalEntities.g:10121:1: ( ( rule__XForLoopExpression__Group_0_0__0 ) ) - { - // InternalEntities.g:10121:1: ( ( rule__XForLoopExpression__Group_0_0__0 ) ) - // InternalEntities.g:10122:2: ( rule__XForLoopExpression__Group_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getGroup_0_0()); - } - // InternalEntities.g:10123:2: ( rule__XForLoopExpression__Group_0_0__0 ) - // InternalEntities.g:10123:3: rule__XForLoopExpression__Group_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getGroup_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0__0__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__0" - // InternalEntities.g:10132:1: rule__XForLoopExpression__Group_0_0__0 : rule__XForLoopExpression__Group_0_0__0__Impl rule__XForLoopExpression__Group_0_0__1 ; - public final void rule__XForLoopExpression__Group_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10136:1: ( rule__XForLoopExpression__Group_0_0__0__Impl rule__XForLoopExpression__Group_0_0__1 ) - // InternalEntities.g:10137:2: rule__XForLoopExpression__Group_0_0__0__Impl rule__XForLoopExpression__Group_0_0__1 - { - pushFollow(FOLLOW_73); - rule__XForLoopExpression__Group_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__0" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__0__Impl" - // InternalEntities.g:10144:1: rule__XForLoopExpression__Group_0_0__0__Impl : ( () ) ; - public final void rule__XForLoopExpression__Group_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10148:1: ( ( () ) ) - // InternalEntities.g:10149:1: ( () ) - { - // InternalEntities.g:10149:1: ( () ) - // InternalEntities.g:10150:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0()); - } - // InternalEntities.g:10151:2: () - // InternalEntities.g:10151:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__0__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__1" - // InternalEntities.g:10159:1: rule__XForLoopExpression__Group_0_0__1 : rule__XForLoopExpression__Group_0_0__1__Impl rule__XForLoopExpression__Group_0_0__2 ; - public final void rule__XForLoopExpression__Group_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10163:1: ( rule__XForLoopExpression__Group_0_0__1__Impl rule__XForLoopExpression__Group_0_0__2 ) - // InternalEntities.g:10164:2: rule__XForLoopExpression__Group_0_0__1__Impl rule__XForLoopExpression__Group_0_0__2 - { - pushFollow(FOLLOW_15); - rule__XForLoopExpression__Group_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__1" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__1__Impl" - // InternalEntities.g:10171:1: rule__XForLoopExpression__Group_0_0__1__Impl : ( 'for' ) ; - public final void rule__XForLoopExpression__Group_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10175:1: ( ( 'for' ) ) - // InternalEntities.g:10176:1: ( 'for' ) - { - // InternalEntities.g:10176:1: ( 'for' ) - // InternalEntities.g:10177:2: 'for' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); - } - match(input,71,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__1__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__2" - // InternalEntities.g:10186:1: rule__XForLoopExpression__Group_0_0__2 : rule__XForLoopExpression__Group_0_0__2__Impl rule__XForLoopExpression__Group_0_0__3 ; - public final void rule__XForLoopExpression__Group_0_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10190:1: ( rule__XForLoopExpression__Group_0_0__2__Impl rule__XForLoopExpression__Group_0_0__3 ) - // InternalEntities.g:10191:2: rule__XForLoopExpression__Group_0_0__2__Impl rule__XForLoopExpression__Group_0_0__3 - { - pushFollow(FOLLOW_14); - rule__XForLoopExpression__Group_0_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0_0__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__2" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__2__Impl" - // InternalEntities.g:10198:1: rule__XForLoopExpression__Group_0_0__2__Impl : ( '(' ) ; - public final void rule__XForLoopExpression__Group_0_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10202:1: ( ( '(' ) ) - // InternalEntities.g:10203:1: ( '(' ) - { - // InternalEntities.g:10203:1: ( '(' ) - // InternalEntities.g:10204:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__2__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__3" - // InternalEntities.g:10213:1: rule__XForLoopExpression__Group_0_0__3 : rule__XForLoopExpression__Group_0_0__3__Impl rule__XForLoopExpression__Group_0_0__4 ; - public final void rule__XForLoopExpression__Group_0_0__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10217:1: ( rule__XForLoopExpression__Group_0_0__3__Impl rule__XForLoopExpression__Group_0_0__4 ) - // InternalEntities.g:10218:2: rule__XForLoopExpression__Group_0_0__3__Impl rule__XForLoopExpression__Group_0_0__4 - { - pushFollow(FOLLOW_13); - rule__XForLoopExpression__Group_0_0__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0_0__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__3" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__3__Impl" - // InternalEntities.g:10225:1: rule__XForLoopExpression__Group_0_0__3__Impl : ( ( rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 ) ) ; - public final void rule__XForLoopExpression__Group_0_0__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10229:1: ( ( ( rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 ) ) ) - // InternalEntities.g:10230:1: ( ( rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 ) ) - { - // InternalEntities.g:10230:1: ( ( rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 ) ) - // InternalEntities.g:10231:2: ( rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamAssignment_0_0_3()); - } - // InternalEntities.g:10232:2: ( rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 ) - // InternalEntities.g:10232:3: rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__DeclaredParamAssignment_0_0_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamAssignment_0_0_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__3__Impl" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__4" - // InternalEntities.g:10240:1: rule__XForLoopExpression__Group_0_0__4 : rule__XForLoopExpression__Group_0_0__4__Impl ; - public final void rule__XForLoopExpression__Group_0_0__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10244:1: ( rule__XForLoopExpression__Group_0_0__4__Impl ) - // InternalEntities.g:10245:2: rule__XForLoopExpression__Group_0_0__4__Impl - { - pushFollow(FOLLOW_2); - rule__XForLoopExpression__Group_0_0__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__4" - - - // $ANTLR start "rule__XForLoopExpression__Group_0_0__4__Impl" - // InternalEntities.g:10251:1: rule__XForLoopExpression__Group_0_0__4__Impl : ( ':' ) ; - public final void rule__XForLoopExpression__Group_0_0__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10255:1: ( ( ':' ) ) - // InternalEntities.g:10256:1: ( ':' ) - { - // InternalEntities.g:10256:1: ( ':' ) - // InternalEntities.g:10257:2: ':' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); - } - match(input,55,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__Group_0_0__4__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__0" - // InternalEntities.g:10267:1: rule__XBasicForLoopExpression__Group__0 : rule__XBasicForLoopExpression__Group__0__Impl rule__XBasicForLoopExpression__Group__1 ; - public final void rule__XBasicForLoopExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10271:1: ( rule__XBasicForLoopExpression__Group__0__Impl rule__XBasicForLoopExpression__Group__1 ) - // InternalEntities.g:10272:2: rule__XBasicForLoopExpression__Group__0__Impl rule__XBasicForLoopExpression__Group__1 - { - pushFollow(FOLLOW_73); - rule__XBasicForLoopExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__0" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__0__Impl" - // InternalEntities.g:10279:1: rule__XBasicForLoopExpression__Group__0__Impl : ( () ) ; - public final void rule__XBasicForLoopExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10283:1: ( ( () ) ) - // InternalEntities.g:10284:1: ( () ) - { - // InternalEntities.g:10284:1: ( () ) - // InternalEntities.g:10285:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0()); - } - // InternalEntities.g:10286:2: () - // InternalEntities.g:10286:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__0__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__1" - // InternalEntities.g:10294:1: rule__XBasicForLoopExpression__Group__1 : rule__XBasicForLoopExpression__Group__1__Impl rule__XBasicForLoopExpression__Group__2 ; - public final void rule__XBasicForLoopExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10298:1: ( rule__XBasicForLoopExpression__Group__1__Impl rule__XBasicForLoopExpression__Group__2 ) - // InternalEntities.g:10299:2: rule__XBasicForLoopExpression__Group__1__Impl rule__XBasicForLoopExpression__Group__2 - { - pushFollow(FOLLOW_15); - rule__XBasicForLoopExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__1" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__1__Impl" - // InternalEntities.g:10306:1: rule__XBasicForLoopExpression__Group__1__Impl : ( 'for' ) ; - public final void rule__XBasicForLoopExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10310:1: ( ( 'for' ) ) - // InternalEntities.g:10311:1: ( 'for' ) - { - // InternalEntities.g:10311:1: ( 'for' ) - // InternalEntities.g:10312:2: 'for' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); - } - match(input,71,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__1__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__2" - // InternalEntities.g:10321:1: rule__XBasicForLoopExpression__Group__2 : rule__XBasicForLoopExpression__Group__2__Impl rule__XBasicForLoopExpression__Group__3 ; - public final void rule__XBasicForLoopExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10325:1: ( rule__XBasicForLoopExpression__Group__2__Impl rule__XBasicForLoopExpression__Group__3 ) - // InternalEntities.g:10326:2: rule__XBasicForLoopExpression__Group__2__Impl rule__XBasicForLoopExpression__Group__3 - { - pushFollow(FOLLOW_74); - rule__XBasicForLoopExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__2" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__2__Impl" - // InternalEntities.g:10333:1: rule__XBasicForLoopExpression__Group__2__Impl : ( '(' ) ; - public final void rule__XBasicForLoopExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10337:1: ( ( '(' ) ) - // InternalEntities.g:10338:1: ( '(' ) - { - // InternalEntities.g:10338:1: ( '(' ) - // InternalEntities.g:10339:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__2__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__3" - // InternalEntities.g:10348:1: rule__XBasicForLoopExpression__Group__3 : rule__XBasicForLoopExpression__Group__3__Impl rule__XBasicForLoopExpression__Group__4 ; - public final void rule__XBasicForLoopExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10352:1: ( rule__XBasicForLoopExpression__Group__3__Impl rule__XBasicForLoopExpression__Group__4 ) - // InternalEntities.g:10353:2: rule__XBasicForLoopExpression__Group__3__Impl rule__XBasicForLoopExpression__Group__4 - { - pushFollow(FOLLOW_74); - rule__XBasicForLoopExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__3" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__3__Impl" - // InternalEntities.g:10360:1: rule__XBasicForLoopExpression__Group__3__Impl : ( ( rule__XBasicForLoopExpression__Group_3__0 )? ) ; - public final void rule__XBasicForLoopExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10364:1: ( ( ( rule__XBasicForLoopExpression__Group_3__0 )? ) ) - // InternalEntities.g:10365:1: ( ( rule__XBasicForLoopExpression__Group_3__0 )? ) - { - // InternalEntities.g:10365:1: ( ( rule__XBasicForLoopExpression__Group_3__0 )? ) - // InternalEntities.g:10366:2: ( rule__XBasicForLoopExpression__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3()); - } - // InternalEntities.g:10367:2: ( rule__XBasicForLoopExpression__Group_3__0 )? - int alt87=2; - int LA87_0 = input.LA(1); - - if ( ((LA87_0>=RULE_ID && LA87_0<=RULE_STRING)||LA87_0==27||(LA87_0>=34 && LA87_0<=35)||LA87_0==40||(LA87_0>=44 && LA87_0<=50)||LA87_0==52||LA87_0==57||(LA87_0>=62 && LA87_0<=63)||LA87_0==66||LA87_0==68||(LA87_0>=71 && LA87_0<=79)||LA87_0==81||(LA87_0>=88 && LA87_0<=89)) ) { - alt87=1; - } - switch (alt87) { - case 1 : - // InternalEntities.g:10367:3: rule__XBasicForLoopExpression__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__3__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__4" - // InternalEntities.g:10375:1: rule__XBasicForLoopExpression__Group__4 : rule__XBasicForLoopExpression__Group__4__Impl rule__XBasicForLoopExpression__Group__5 ; - public final void rule__XBasicForLoopExpression__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10379:1: ( rule__XBasicForLoopExpression__Group__4__Impl rule__XBasicForLoopExpression__Group__5 ) - // InternalEntities.g:10380:2: rule__XBasicForLoopExpression__Group__4__Impl rule__XBasicForLoopExpression__Group__5 - { - pushFollow(FOLLOW_75); - rule__XBasicForLoopExpression__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__4" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__4__Impl" - // InternalEntities.g:10387:1: rule__XBasicForLoopExpression__Group__4__Impl : ( ';' ) ; - public final void rule__XBasicForLoopExpression__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10391:1: ( ( ';' ) ) - // InternalEntities.g:10392:1: ( ';' ) - { - // InternalEntities.g:10392:1: ( ';' ) - // InternalEntities.g:10393:2: ';' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); - } - match(input,65,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__4__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__5" - // InternalEntities.g:10402:1: rule__XBasicForLoopExpression__Group__5 : rule__XBasicForLoopExpression__Group__5__Impl rule__XBasicForLoopExpression__Group__6 ; - public final void rule__XBasicForLoopExpression__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10406:1: ( rule__XBasicForLoopExpression__Group__5__Impl rule__XBasicForLoopExpression__Group__6 ) - // InternalEntities.g:10407:2: rule__XBasicForLoopExpression__Group__5__Impl rule__XBasicForLoopExpression__Group__6 - { - pushFollow(FOLLOW_75); - rule__XBasicForLoopExpression__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__6(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__5" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__5__Impl" - // InternalEntities.g:10414:1: rule__XBasicForLoopExpression__Group__5__Impl : ( ( rule__XBasicForLoopExpression__ExpressionAssignment_5 )? ) ; - public final void rule__XBasicForLoopExpression__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10418:1: ( ( ( rule__XBasicForLoopExpression__ExpressionAssignment_5 )? ) ) - // InternalEntities.g:10419:1: ( ( rule__XBasicForLoopExpression__ExpressionAssignment_5 )? ) - { - // InternalEntities.g:10419:1: ( ( rule__XBasicForLoopExpression__ExpressionAssignment_5 )? ) - // InternalEntities.g:10420:2: ( rule__XBasicForLoopExpression__ExpressionAssignment_5 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionAssignment_5()); - } - // InternalEntities.g:10421:2: ( rule__XBasicForLoopExpression__ExpressionAssignment_5 )? - int alt88=2; - int LA88_0 = input.LA(1); - - if ( ((LA88_0>=RULE_ID && LA88_0<=RULE_STRING)||LA88_0==27||(LA88_0>=34 && LA88_0<=35)||LA88_0==40||(LA88_0>=45 && LA88_0<=50)||LA88_0==52||LA88_0==57||(LA88_0>=62 && LA88_0<=63)||LA88_0==66||LA88_0==68||(LA88_0>=71 && LA88_0<=79)||LA88_0==81||LA88_0==89) ) { - alt88=1; - } - switch (alt88) { - case 1 : - // InternalEntities.g:10421:3: rule__XBasicForLoopExpression__ExpressionAssignment_5 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__ExpressionAssignment_5(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionAssignment_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__5__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__6" - // InternalEntities.g:10429:1: rule__XBasicForLoopExpression__Group__6 : rule__XBasicForLoopExpression__Group__6__Impl rule__XBasicForLoopExpression__Group__7 ; - public final void rule__XBasicForLoopExpression__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10433:1: ( rule__XBasicForLoopExpression__Group__6__Impl rule__XBasicForLoopExpression__Group__7 ) - // InternalEntities.g:10434:2: rule__XBasicForLoopExpression__Group__6__Impl rule__XBasicForLoopExpression__Group__7 - { - pushFollow(FOLLOW_55); - rule__XBasicForLoopExpression__Group__6__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__7(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__6" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__6__Impl" - // InternalEntities.g:10441:1: rule__XBasicForLoopExpression__Group__6__Impl : ( ';' ) ; - public final void rule__XBasicForLoopExpression__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10445:1: ( ( ';' ) ) - // InternalEntities.g:10446:1: ( ';' ) - { - // InternalEntities.g:10446:1: ( ';' ) - // InternalEntities.g:10447:2: ';' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); - } - match(input,65,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__6__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__7" - // InternalEntities.g:10456:1: rule__XBasicForLoopExpression__Group__7 : rule__XBasicForLoopExpression__Group__7__Impl rule__XBasicForLoopExpression__Group__8 ; - public final void rule__XBasicForLoopExpression__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10460:1: ( rule__XBasicForLoopExpression__Group__7__Impl rule__XBasicForLoopExpression__Group__8 ) - // InternalEntities.g:10461:2: rule__XBasicForLoopExpression__Group__7__Impl rule__XBasicForLoopExpression__Group__8 - { - pushFollow(FOLLOW_55); - rule__XBasicForLoopExpression__Group__7__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__8(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__7" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__7__Impl" - // InternalEntities.g:10468:1: rule__XBasicForLoopExpression__Group__7__Impl : ( ( rule__XBasicForLoopExpression__Group_7__0 )? ) ; - public final void rule__XBasicForLoopExpression__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10472:1: ( ( ( rule__XBasicForLoopExpression__Group_7__0 )? ) ) - // InternalEntities.g:10473:1: ( ( rule__XBasicForLoopExpression__Group_7__0 )? ) - { - // InternalEntities.g:10473:1: ( ( rule__XBasicForLoopExpression__Group_7__0 )? ) - // InternalEntities.g:10474:2: ( rule__XBasicForLoopExpression__Group_7__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7()); - } - // InternalEntities.g:10475:2: ( rule__XBasicForLoopExpression__Group_7__0 )? - int alt89=2; - int LA89_0 = input.LA(1); - - if ( ((LA89_0>=RULE_ID && LA89_0<=RULE_STRING)||LA89_0==27||(LA89_0>=34 && LA89_0<=35)||LA89_0==40||(LA89_0>=45 && LA89_0<=50)||LA89_0==52||LA89_0==57||(LA89_0>=62 && LA89_0<=63)||LA89_0==66||LA89_0==68||(LA89_0>=71 && LA89_0<=79)||LA89_0==81||LA89_0==89) ) { - alt89=1; - } - switch (alt89) { - case 1 : - // InternalEntities.g:10475:3: rule__XBasicForLoopExpression__Group_7__0 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_7__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__7__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__8" - // InternalEntities.g:10483:1: rule__XBasicForLoopExpression__Group__8 : rule__XBasicForLoopExpression__Group__8__Impl rule__XBasicForLoopExpression__Group__9 ; - public final void rule__XBasicForLoopExpression__Group__8() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10487:1: ( rule__XBasicForLoopExpression__Group__8__Impl rule__XBasicForLoopExpression__Group__9 ) - // InternalEntities.g:10488:2: rule__XBasicForLoopExpression__Group__8__Impl rule__XBasicForLoopExpression__Group__9 - { - pushFollow(FOLLOW_56); - rule__XBasicForLoopExpression__Group__8__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__9(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__8" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__8__Impl" - // InternalEntities.g:10495:1: rule__XBasicForLoopExpression__Group__8__Impl : ( ')' ) ; - public final void rule__XBasicForLoopExpression__Group__8__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10499:1: ( ( ')' ) ) - // InternalEntities.g:10500:1: ( ')' ) - { - // InternalEntities.g:10500:1: ( ')' ) - // InternalEntities.g:10501:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__8__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__9" - // InternalEntities.g:10510:1: rule__XBasicForLoopExpression__Group__9 : rule__XBasicForLoopExpression__Group__9__Impl ; - public final void rule__XBasicForLoopExpression__Group__9() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10514:1: ( rule__XBasicForLoopExpression__Group__9__Impl ) - // InternalEntities.g:10515:2: rule__XBasicForLoopExpression__Group__9__Impl - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group__9__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__9" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group__9__Impl" - // InternalEntities.g:10521:1: rule__XBasicForLoopExpression__Group__9__Impl : ( ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) ) ; - public final void rule__XBasicForLoopExpression__Group__9__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10525:1: ( ( ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) ) ) - // InternalEntities.g:10526:1: ( ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) ) - { - // InternalEntities.g:10526:1: ( ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) ) - // InternalEntities.g:10527:2: ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionAssignment_9()); - } - // InternalEntities.g:10528:2: ( rule__XBasicForLoopExpression__EachExpressionAssignment_9 ) - // InternalEntities.g:10528:3: rule__XBasicForLoopExpression__EachExpressionAssignment_9 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__EachExpressionAssignment_9(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionAssignment_9()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group__9__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3__0" - // InternalEntities.g:10537:1: rule__XBasicForLoopExpression__Group_3__0 : rule__XBasicForLoopExpression__Group_3__0__Impl rule__XBasicForLoopExpression__Group_3__1 ; - public final void rule__XBasicForLoopExpression__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10541:1: ( rule__XBasicForLoopExpression__Group_3__0__Impl rule__XBasicForLoopExpression__Group_3__1 ) - // InternalEntities.g:10542:2: rule__XBasicForLoopExpression__Group_3__0__Impl rule__XBasicForLoopExpression__Group_3__1 - { - pushFollow(FOLLOW_18); - rule__XBasicForLoopExpression__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3__0" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3__0__Impl" - // InternalEntities.g:10549:1: rule__XBasicForLoopExpression__Group_3__0__Impl : ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) ) ; - public final void rule__XBasicForLoopExpression__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10553:1: ( ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) ) ) - // InternalEntities.g:10554:1: ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) ) - { - // InternalEntities.g:10554:1: ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) ) - // InternalEntities.g:10555:2: ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_0()); - } - // InternalEntities.g:10556:2: ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 ) - // InternalEntities.g:10556:3: rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3__0__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3__1" - // InternalEntities.g:10564:1: rule__XBasicForLoopExpression__Group_3__1 : rule__XBasicForLoopExpression__Group_3__1__Impl ; - public final void rule__XBasicForLoopExpression__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10568:1: ( rule__XBasicForLoopExpression__Group_3__1__Impl ) - // InternalEntities.g:10569:2: rule__XBasicForLoopExpression__Group_3__1__Impl - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3__1" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3__1__Impl" - // InternalEntities.g:10575:1: rule__XBasicForLoopExpression__Group_3__1__Impl : ( ( rule__XBasicForLoopExpression__Group_3_1__0 )* ) ; - public final void rule__XBasicForLoopExpression__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10579:1: ( ( ( rule__XBasicForLoopExpression__Group_3_1__0 )* ) ) - // InternalEntities.g:10580:1: ( ( rule__XBasicForLoopExpression__Group_3_1__0 )* ) - { - // InternalEntities.g:10580:1: ( ( rule__XBasicForLoopExpression__Group_3_1__0 )* ) - // InternalEntities.g:10581:2: ( rule__XBasicForLoopExpression__Group_3_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3_1()); - } - // InternalEntities.g:10582:2: ( rule__XBasicForLoopExpression__Group_3_1__0 )* - loop90: - do { - int alt90=2; - int LA90_0 = input.LA(1); - - if ( (LA90_0==59) ) { - alt90=1; - } - - - switch (alt90) { - case 1 : - // InternalEntities.g:10582:3: rule__XBasicForLoopExpression__Group_3_1__0 - { - pushFollow(FOLLOW_19); - rule__XBasicForLoopExpression__Group_3_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop90; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3__1__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3_1__0" - // InternalEntities.g:10591:1: rule__XBasicForLoopExpression__Group_3_1__0 : rule__XBasicForLoopExpression__Group_3_1__0__Impl rule__XBasicForLoopExpression__Group_3_1__1 ; - public final void rule__XBasicForLoopExpression__Group_3_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10595:1: ( rule__XBasicForLoopExpression__Group_3_1__0__Impl rule__XBasicForLoopExpression__Group_3_1__1 ) - // InternalEntities.g:10596:2: rule__XBasicForLoopExpression__Group_3_1__0__Impl rule__XBasicForLoopExpression__Group_3_1__1 - { - pushFollow(FOLLOW_61); - rule__XBasicForLoopExpression__Group_3_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_3_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3_1__0" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3_1__0__Impl" - // InternalEntities.g:10603:1: rule__XBasicForLoopExpression__Group_3_1__0__Impl : ( ',' ) ; - public final void rule__XBasicForLoopExpression__Group_3_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10607:1: ( ( ',' ) ) - // InternalEntities.g:10608:1: ( ',' ) - { - // InternalEntities.g:10608:1: ( ',' ) - // InternalEntities.g:10609:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3_1__0__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3_1__1" - // InternalEntities.g:10618:1: rule__XBasicForLoopExpression__Group_3_1__1 : rule__XBasicForLoopExpression__Group_3_1__1__Impl ; - public final void rule__XBasicForLoopExpression__Group_3_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10622:1: ( rule__XBasicForLoopExpression__Group_3_1__1__Impl ) - // InternalEntities.g:10623:2: rule__XBasicForLoopExpression__Group_3_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_3_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3_1__1" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_3_1__1__Impl" - // InternalEntities.g:10629:1: rule__XBasicForLoopExpression__Group_3_1__1__Impl : ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 ) ) ; - public final void rule__XBasicForLoopExpression__Group_3_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10633:1: ( ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 ) ) ) - // InternalEntities.g:10634:1: ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 ) ) - { - // InternalEntities.g:10634:1: ( ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 ) ) - // InternalEntities.g:10635:2: ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_1_1()); - } - // InternalEntities.g:10636:2: ( rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 ) - // InternalEntities.g:10636:3: rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsAssignment_3_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_3_1__1__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7__0" - // InternalEntities.g:10645:1: rule__XBasicForLoopExpression__Group_7__0 : rule__XBasicForLoopExpression__Group_7__0__Impl rule__XBasicForLoopExpression__Group_7__1 ; - public final void rule__XBasicForLoopExpression__Group_7__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10649:1: ( rule__XBasicForLoopExpression__Group_7__0__Impl rule__XBasicForLoopExpression__Group_7__1 ) - // InternalEntities.g:10650:2: rule__XBasicForLoopExpression__Group_7__0__Impl rule__XBasicForLoopExpression__Group_7__1 - { - pushFollow(FOLLOW_18); - rule__XBasicForLoopExpression__Group_7__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_7__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7__0" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7__0__Impl" - // InternalEntities.g:10657:1: rule__XBasicForLoopExpression__Group_7__0__Impl : ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 ) ) ; - public final void rule__XBasicForLoopExpression__Group_7__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10661:1: ( ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 ) ) ) - // InternalEntities.g:10662:1: ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 ) ) - { - // InternalEntities.g:10662:1: ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 ) ) - // InternalEntities.g:10663:2: ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_0()); - } - // InternalEntities.g:10664:2: ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 ) - // InternalEntities.g:10664:3: rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7__0__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7__1" - // InternalEntities.g:10672:1: rule__XBasicForLoopExpression__Group_7__1 : rule__XBasicForLoopExpression__Group_7__1__Impl ; - public final void rule__XBasicForLoopExpression__Group_7__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10676:1: ( rule__XBasicForLoopExpression__Group_7__1__Impl ) - // InternalEntities.g:10677:2: rule__XBasicForLoopExpression__Group_7__1__Impl - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_7__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7__1" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7__1__Impl" - // InternalEntities.g:10683:1: rule__XBasicForLoopExpression__Group_7__1__Impl : ( ( rule__XBasicForLoopExpression__Group_7_1__0 )* ) ; - public final void rule__XBasicForLoopExpression__Group_7__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10687:1: ( ( ( rule__XBasicForLoopExpression__Group_7_1__0 )* ) ) - // InternalEntities.g:10688:1: ( ( rule__XBasicForLoopExpression__Group_7_1__0 )* ) - { - // InternalEntities.g:10688:1: ( ( rule__XBasicForLoopExpression__Group_7_1__0 )* ) - // InternalEntities.g:10689:2: ( rule__XBasicForLoopExpression__Group_7_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7_1()); - } - // InternalEntities.g:10690:2: ( rule__XBasicForLoopExpression__Group_7_1__0 )* - loop91: - do { - int alt91=2; - int LA91_0 = input.LA(1); - - if ( (LA91_0==59) ) { - alt91=1; - } - - - switch (alt91) { - case 1 : - // InternalEntities.g:10690:3: rule__XBasicForLoopExpression__Group_7_1__0 - { - pushFollow(FOLLOW_19); - rule__XBasicForLoopExpression__Group_7_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop91; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getGroup_7_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7__1__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7_1__0" - // InternalEntities.g:10699:1: rule__XBasicForLoopExpression__Group_7_1__0 : rule__XBasicForLoopExpression__Group_7_1__0__Impl rule__XBasicForLoopExpression__Group_7_1__1 ; - public final void rule__XBasicForLoopExpression__Group_7_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10703:1: ( rule__XBasicForLoopExpression__Group_7_1__0__Impl rule__XBasicForLoopExpression__Group_7_1__1 ) - // InternalEntities.g:10704:2: rule__XBasicForLoopExpression__Group_7_1__0__Impl rule__XBasicForLoopExpression__Group_7_1__1 - { - pushFollow(FOLLOW_56); - rule__XBasicForLoopExpression__Group_7_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_7_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7_1__0" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7_1__0__Impl" - // InternalEntities.g:10711:1: rule__XBasicForLoopExpression__Group_7_1__0__Impl : ( ',' ) ; - public final void rule__XBasicForLoopExpression__Group_7_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10715:1: ( ( ',' ) ) - // InternalEntities.g:10716:1: ( ',' ) - { - // InternalEntities.g:10716:1: ( ',' ) - // InternalEntities.g:10717:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7_1__0__Impl" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7_1__1" - // InternalEntities.g:10726:1: rule__XBasicForLoopExpression__Group_7_1__1 : rule__XBasicForLoopExpression__Group_7_1__1__Impl ; - public final void rule__XBasicForLoopExpression__Group_7_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10730:1: ( rule__XBasicForLoopExpression__Group_7_1__1__Impl ) - // InternalEntities.g:10731:2: rule__XBasicForLoopExpression__Group_7_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__Group_7_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7_1__1" - - - // $ANTLR start "rule__XBasicForLoopExpression__Group_7_1__1__Impl" - // InternalEntities.g:10737:1: rule__XBasicForLoopExpression__Group_7_1__1__Impl : ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 ) ) ; - public final void rule__XBasicForLoopExpression__Group_7_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10741:1: ( ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 ) ) ) - // InternalEntities.g:10742:1: ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 ) ) - { - // InternalEntities.g:10742:1: ( ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 ) ) - // InternalEntities.g:10743:2: ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_1_1()); - } - // InternalEntities.g:10744:2: ( rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 ) - // InternalEntities.g:10744:3: rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 - { - pushFollow(FOLLOW_2); - rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsAssignment_7_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__Group_7_1__1__Impl" - - - // $ANTLR start "rule__XWhileExpression__Group__0" - // InternalEntities.g:10753:1: rule__XWhileExpression__Group__0 : rule__XWhileExpression__Group__0__Impl rule__XWhileExpression__Group__1 ; - public final void rule__XWhileExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10757:1: ( rule__XWhileExpression__Group__0__Impl rule__XWhileExpression__Group__1 ) - // InternalEntities.g:10758:2: rule__XWhileExpression__Group__0__Impl rule__XWhileExpression__Group__1 - { - pushFollow(FOLLOW_76); - rule__XWhileExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__0" - - - // $ANTLR start "rule__XWhileExpression__Group__0__Impl" - // InternalEntities.g:10765:1: rule__XWhileExpression__Group__0__Impl : ( () ) ; - public final void rule__XWhileExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10769:1: ( ( () ) ) - // InternalEntities.g:10770:1: ( () ) - { - // InternalEntities.g:10770:1: ( () ) - // InternalEntities.g:10771:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0()); - } - // InternalEntities.g:10772:2: () - // InternalEntities.g:10772:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__0__Impl" - - - // $ANTLR start "rule__XWhileExpression__Group__1" - // InternalEntities.g:10780:1: rule__XWhileExpression__Group__1 : rule__XWhileExpression__Group__1__Impl rule__XWhileExpression__Group__2 ; - public final void rule__XWhileExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10784:1: ( rule__XWhileExpression__Group__1__Impl rule__XWhileExpression__Group__2 ) - // InternalEntities.g:10785:2: rule__XWhileExpression__Group__1__Impl rule__XWhileExpression__Group__2 - { - pushFollow(FOLLOW_15); - rule__XWhileExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__1" - - - // $ANTLR start "rule__XWhileExpression__Group__1__Impl" - // InternalEntities.g:10792:1: rule__XWhileExpression__Group__1__Impl : ( 'while' ) ; - public final void rule__XWhileExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10796:1: ( ( 'while' ) ) - // InternalEntities.g:10797:1: ( 'while' ) - { - // InternalEntities.g:10797:1: ( 'while' ) - // InternalEntities.g:10798:2: 'while' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); - } - match(input,72,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__1__Impl" - - - // $ANTLR start "rule__XWhileExpression__Group__2" - // InternalEntities.g:10807:1: rule__XWhileExpression__Group__2 : rule__XWhileExpression__Group__2__Impl rule__XWhileExpression__Group__3 ; - public final void rule__XWhileExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10811:1: ( rule__XWhileExpression__Group__2__Impl rule__XWhileExpression__Group__3 ) - // InternalEntities.g:10812:2: rule__XWhileExpression__Group__2__Impl rule__XWhileExpression__Group__3 - { - pushFollow(FOLLOW_56); - rule__XWhileExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__2" - - - // $ANTLR start "rule__XWhileExpression__Group__2__Impl" - // InternalEntities.g:10819:1: rule__XWhileExpression__Group__2__Impl : ( '(' ) ; - public final void rule__XWhileExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10823:1: ( ( '(' ) ) - // InternalEntities.g:10824:1: ( '(' ) - { - // InternalEntities.g:10824:1: ( '(' ) - // InternalEntities.g:10825:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__2__Impl" - - - // $ANTLR start "rule__XWhileExpression__Group__3" - // InternalEntities.g:10834:1: rule__XWhileExpression__Group__3 : rule__XWhileExpression__Group__3__Impl rule__XWhileExpression__Group__4 ; - public final void rule__XWhileExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10838:1: ( rule__XWhileExpression__Group__3__Impl rule__XWhileExpression__Group__4 ) - // InternalEntities.g:10839:2: rule__XWhileExpression__Group__3__Impl rule__XWhileExpression__Group__4 - { - pushFollow(FOLLOW_66); - rule__XWhileExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__3" - - - // $ANTLR start "rule__XWhileExpression__Group__3__Impl" - // InternalEntities.g:10846:1: rule__XWhileExpression__Group__3__Impl : ( ( rule__XWhileExpression__PredicateAssignment_3 ) ) ; - public final void rule__XWhileExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10850:1: ( ( ( rule__XWhileExpression__PredicateAssignment_3 ) ) ) - // InternalEntities.g:10851:1: ( ( rule__XWhileExpression__PredicateAssignment_3 ) ) - { - // InternalEntities.g:10851:1: ( ( rule__XWhileExpression__PredicateAssignment_3 ) ) - // InternalEntities.g:10852:2: ( rule__XWhileExpression__PredicateAssignment_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getPredicateAssignment_3()); - } - // InternalEntities.g:10853:2: ( rule__XWhileExpression__PredicateAssignment_3 ) - // InternalEntities.g:10853:3: rule__XWhileExpression__PredicateAssignment_3 - { - pushFollow(FOLLOW_2); - rule__XWhileExpression__PredicateAssignment_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getPredicateAssignment_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__3__Impl" - - - // $ANTLR start "rule__XWhileExpression__Group__4" - // InternalEntities.g:10861:1: rule__XWhileExpression__Group__4 : rule__XWhileExpression__Group__4__Impl rule__XWhileExpression__Group__5 ; - public final void rule__XWhileExpression__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10865:1: ( rule__XWhileExpression__Group__4__Impl rule__XWhileExpression__Group__5 ) - // InternalEntities.g:10866:2: rule__XWhileExpression__Group__4__Impl rule__XWhileExpression__Group__5 - { - pushFollow(FOLLOW_56); - rule__XWhileExpression__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__4" - - - // $ANTLR start "rule__XWhileExpression__Group__4__Impl" - // InternalEntities.g:10873:1: rule__XWhileExpression__Group__4__Impl : ( ')' ) ; - public final void rule__XWhileExpression__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10877:1: ( ( ')' ) ) - // InternalEntities.g:10878:1: ( ')' ) - { - // InternalEntities.g:10878:1: ( ')' ) - // InternalEntities.g:10879:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__4__Impl" - - - // $ANTLR start "rule__XWhileExpression__Group__5" - // InternalEntities.g:10888:1: rule__XWhileExpression__Group__5 : rule__XWhileExpression__Group__5__Impl ; - public final void rule__XWhileExpression__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10892:1: ( rule__XWhileExpression__Group__5__Impl ) - // InternalEntities.g:10893:2: rule__XWhileExpression__Group__5__Impl - { - pushFollow(FOLLOW_2); - rule__XWhileExpression__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__5" - - - // $ANTLR start "rule__XWhileExpression__Group__5__Impl" - // InternalEntities.g:10899:1: rule__XWhileExpression__Group__5__Impl : ( ( rule__XWhileExpression__BodyAssignment_5 ) ) ; - public final void rule__XWhileExpression__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10903:1: ( ( ( rule__XWhileExpression__BodyAssignment_5 ) ) ) - // InternalEntities.g:10904:1: ( ( rule__XWhileExpression__BodyAssignment_5 ) ) - { - // InternalEntities.g:10904:1: ( ( rule__XWhileExpression__BodyAssignment_5 ) ) - // InternalEntities.g:10905:2: ( rule__XWhileExpression__BodyAssignment_5 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getBodyAssignment_5()); - } - // InternalEntities.g:10906:2: ( rule__XWhileExpression__BodyAssignment_5 ) - // InternalEntities.g:10906:3: rule__XWhileExpression__BodyAssignment_5 - { - pushFollow(FOLLOW_2); - rule__XWhileExpression__BodyAssignment_5(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getBodyAssignment_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__Group__5__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__0" - // InternalEntities.g:10915:1: rule__XDoWhileExpression__Group__0 : rule__XDoWhileExpression__Group__0__Impl rule__XDoWhileExpression__Group__1 ; - public final void rule__XDoWhileExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10919:1: ( rule__XDoWhileExpression__Group__0__Impl rule__XDoWhileExpression__Group__1 ) - // InternalEntities.g:10920:2: rule__XDoWhileExpression__Group__0__Impl rule__XDoWhileExpression__Group__1 - { - pushFollow(FOLLOW_77); - rule__XDoWhileExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__0" - - - // $ANTLR start "rule__XDoWhileExpression__Group__0__Impl" - // InternalEntities.g:10927:1: rule__XDoWhileExpression__Group__0__Impl : ( () ) ; - public final void rule__XDoWhileExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10931:1: ( ( () ) ) - // InternalEntities.g:10932:1: ( () ) - { - // InternalEntities.g:10932:1: ( () ) - // InternalEntities.g:10933:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0()); - } - // InternalEntities.g:10934:2: () - // InternalEntities.g:10934:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__0__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__1" - // InternalEntities.g:10942:1: rule__XDoWhileExpression__Group__1 : rule__XDoWhileExpression__Group__1__Impl rule__XDoWhileExpression__Group__2 ; - public final void rule__XDoWhileExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10946:1: ( rule__XDoWhileExpression__Group__1__Impl rule__XDoWhileExpression__Group__2 ) - // InternalEntities.g:10947:2: rule__XDoWhileExpression__Group__1__Impl rule__XDoWhileExpression__Group__2 - { - pushFollow(FOLLOW_56); - rule__XDoWhileExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__1" - - - // $ANTLR start "rule__XDoWhileExpression__Group__1__Impl" - // InternalEntities.g:10954:1: rule__XDoWhileExpression__Group__1__Impl : ( 'do' ) ; - public final void rule__XDoWhileExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10958:1: ( ( 'do' ) ) - // InternalEntities.g:10959:1: ( 'do' ) - { - // InternalEntities.g:10959:1: ( 'do' ) - // InternalEntities.g:10960:2: 'do' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); - } - match(input,73,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__1__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__2" - // InternalEntities.g:10969:1: rule__XDoWhileExpression__Group__2 : rule__XDoWhileExpression__Group__2__Impl rule__XDoWhileExpression__Group__3 ; - public final void rule__XDoWhileExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10973:1: ( rule__XDoWhileExpression__Group__2__Impl rule__XDoWhileExpression__Group__3 ) - // InternalEntities.g:10974:2: rule__XDoWhileExpression__Group__2__Impl rule__XDoWhileExpression__Group__3 - { - pushFollow(FOLLOW_76); - rule__XDoWhileExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__2" - - - // $ANTLR start "rule__XDoWhileExpression__Group__2__Impl" - // InternalEntities.g:10981:1: rule__XDoWhileExpression__Group__2__Impl : ( ( rule__XDoWhileExpression__BodyAssignment_2 ) ) ; - public final void rule__XDoWhileExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:10985:1: ( ( ( rule__XDoWhileExpression__BodyAssignment_2 ) ) ) - // InternalEntities.g:10986:1: ( ( rule__XDoWhileExpression__BodyAssignment_2 ) ) - { - // InternalEntities.g:10986:1: ( ( rule__XDoWhileExpression__BodyAssignment_2 ) ) - // InternalEntities.g:10987:2: ( rule__XDoWhileExpression__BodyAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getBodyAssignment_2()); - } - // InternalEntities.g:10988:2: ( rule__XDoWhileExpression__BodyAssignment_2 ) - // InternalEntities.g:10988:3: rule__XDoWhileExpression__BodyAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__BodyAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getBodyAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__2__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__3" - // InternalEntities.g:10996:1: rule__XDoWhileExpression__Group__3 : rule__XDoWhileExpression__Group__3__Impl rule__XDoWhileExpression__Group__4 ; - public final void rule__XDoWhileExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11000:1: ( rule__XDoWhileExpression__Group__3__Impl rule__XDoWhileExpression__Group__4 ) - // InternalEntities.g:11001:2: rule__XDoWhileExpression__Group__3__Impl rule__XDoWhileExpression__Group__4 - { - pushFollow(FOLLOW_15); - rule__XDoWhileExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__3" - - - // $ANTLR start "rule__XDoWhileExpression__Group__3__Impl" - // InternalEntities.g:11008:1: rule__XDoWhileExpression__Group__3__Impl : ( 'while' ) ; - public final void rule__XDoWhileExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11012:1: ( ( 'while' ) ) - // InternalEntities.g:11013:1: ( 'while' ) - { - // InternalEntities.g:11013:1: ( 'while' ) - // InternalEntities.g:11014:2: 'while' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); - } - match(input,72,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__3__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__4" - // InternalEntities.g:11023:1: rule__XDoWhileExpression__Group__4 : rule__XDoWhileExpression__Group__4__Impl rule__XDoWhileExpression__Group__5 ; - public final void rule__XDoWhileExpression__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11027:1: ( rule__XDoWhileExpression__Group__4__Impl rule__XDoWhileExpression__Group__5 ) - // InternalEntities.g:11028:2: rule__XDoWhileExpression__Group__4__Impl rule__XDoWhileExpression__Group__5 - { - pushFollow(FOLLOW_56); - rule__XDoWhileExpression__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__4" - - - // $ANTLR start "rule__XDoWhileExpression__Group__4__Impl" - // InternalEntities.g:11035:1: rule__XDoWhileExpression__Group__4__Impl : ( '(' ) ; - public final void rule__XDoWhileExpression__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11039:1: ( ( '(' ) ) - // InternalEntities.g:11040:1: ( '(' ) - { - // InternalEntities.g:11040:1: ( '(' ) - // InternalEntities.g:11041:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__4__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__5" - // InternalEntities.g:11050:1: rule__XDoWhileExpression__Group__5 : rule__XDoWhileExpression__Group__5__Impl rule__XDoWhileExpression__Group__6 ; - public final void rule__XDoWhileExpression__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11054:1: ( rule__XDoWhileExpression__Group__5__Impl rule__XDoWhileExpression__Group__6 ) - // InternalEntities.g:11055:2: rule__XDoWhileExpression__Group__5__Impl rule__XDoWhileExpression__Group__6 - { - pushFollow(FOLLOW_66); - rule__XDoWhileExpression__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__6(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__5" - - - // $ANTLR start "rule__XDoWhileExpression__Group__5__Impl" - // InternalEntities.g:11062:1: rule__XDoWhileExpression__Group__5__Impl : ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) ; - public final void rule__XDoWhileExpression__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11066:1: ( ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) ) - // InternalEntities.g:11067:1: ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) - { - // InternalEntities.g:11067:1: ( ( rule__XDoWhileExpression__PredicateAssignment_5 ) ) - // InternalEntities.g:11068:2: ( rule__XDoWhileExpression__PredicateAssignment_5 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getPredicateAssignment_5()); - } - // InternalEntities.g:11069:2: ( rule__XDoWhileExpression__PredicateAssignment_5 ) - // InternalEntities.g:11069:3: rule__XDoWhileExpression__PredicateAssignment_5 - { - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__PredicateAssignment_5(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getPredicateAssignment_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__5__Impl" - - - // $ANTLR start "rule__XDoWhileExpression__Group__6" - // InternalEntities.g:11077:1: rule__XDoWhileExpression__Group__6 : rule__XDoWhileExpression__Group__6__Impl ; - public final void rule__XDoWhileExpression__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11081:1: ( rule__XDoWhileExpression__Group__6__Impl ) - // InternalEntities.g:11082:2: rule__XDoWhileExpression__Group__6__Impl - { - pushFollow(FOLLOW_2); - rule__XDoWhileExpression__Group__6__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__6" - - - // $ANTLR start "rule__XDoWhileExpression__Group__6__Impl" - // InternalEntities.g:11088:1: rule__XDoWhileExpression__Group__6__Impl : ( ')' ) ; - public final void rule__XDoWhileExpression__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11092:1: ( ( ')' ) ) - // InternalEntities.g:11093:1: ( ')' ) - { - // InternalEntities.g:11093:1: ( ')' ) - // InternalEntities.g:11094:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__Group__6__Impl" - - - // $ANTLR start "rule__XBlockExpression__Group__0" - // InternalEntities.g:11104:1: rule__XBlockExpression__Group__0 : rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 ; - public final void rule__XBlockExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11108:1: ( rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 ) - // InternalEntities.g:11109:2: rule__XBlockExpression__Group__0__Impl rule__XBlockExpression__Group__1 - { - pushFollow(FOLLOW_17); - rule__XBlockExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__0" - - - // $ANTLR start "rule__XBlockExpression__Group__0__Impl" - // InternalEntities.g:11116:1: rule__XBlockExpression__Group__0__Impl : ( () ) ; - public final void rule__XBlockExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11120:1: ( ( () ) ) - // InternalEntities.g:11121:1: ( () ) - { - // InternalEntities.g:11121:1: ( () ) - // InternalEntities.g:11122:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); - } - // InternalEntities.g:11123:2: () - // InternalEntities.g:11123:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__0__Impl" - - - // $ANTLR start "rule__XBlockExpression__Group__1" - // InternalEntities.g:11131:1: rule__XBlockExpression__Group__1 : rule__XBlockExpression__Group__1__Impl rule__XBlockExpression__Group__2 ; - public final void rule__XBlockExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11135:1: ( rule__XBlockExpression__Group__1__Impl rule__XBlockExpression__Group__2 ) - // InternalEntities.g:11136:2: rule__XBlockExpression__Group__1__Impl rule__XBlockExpression__Group__2 - { - pushFollow(FOLLOW_78); - rule__XBlockExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__1" - - - // $ANTLR start "rule__XBlockExpression__Group__1__Impl" - // InternalEntities.g:11143:1: rule__XBlockExpression__Group__1__Impl : ( '{' ) ; - public final void rule__XBlockExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11147:1: ( ( '{' ) ) - // InternalEntities.g:11148:1: ( '{' ) - { - // InternalEntities.g:11148:1: ( '{' ) - // InternalEntities.g:11149:2: '{' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); - } - match(input,52,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__1__Impl" - - - // $ANTLR start "rule__XBlockExpression__Group__2" - // InternalEntities.g:11158:1: rule__XBlockExpression__Group__2 : rule__XBlockExpression__Group__2__Impl rule__XBlockExpression__Group__3 ; - public final void rule__XBlockExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11162:1: ( rule__XBlockExpression__Group__2__Impl rule__XBlockExpression__Group__3 ) - // InternalEntities.g:11163:2: rule__XBlockExpression__Group__2__Impl rule__XBlockExpression__Group__3 - { - pushFollow(FOLLOW_78); - rule__XBlockExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__2" - - - // $ANTLR start "rule__XBlockExpression__Group__2__Impl" - // InternalEntities.g:11170:1: rule__XBlockExpression__Group__2__Impl : ( ( rule__XBlockExpression__Group_2__0 )* ) ; - public final void rule__XBlockExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11174:1: ( ( ( rule__XBlockExpression__Group_2__0 )* ) ) - // InternalEntities.g:11175:1: ( ( rule__XBlockExpression__Group_2__0 )* ) - { - // InternalEntities.g:11175:1: ( ( rule__XBlockExpression__Group_2__0 )* ) - // InternalEntities.g:11176:2: ( rule__XBlockExpression__Group_2__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getGroup_2()); - } - // InternalEntities.g:11177:2: ( rule__XBlockExpression__Group_2__0 )* - loop92: - do { - int alt92=2; - int LA92_0 = input.LA(1); - - if ( ((LA92_0>=RULE_ID && LA92_0<=RULE_STRING)||LA92_0==27||(LA92_0>=34 && LA92_0<=35)||LA92_0==40||(LA92_0>=44 && LA92_0<=50)||LA92_0==52||LA92_0==57||(LA92_0>=62 && LA92_0<=63)||LA92_0==66||LA92_0==68||(LA92_0>=71 && LA92_0<=79)||LA92_0==81||(LA92_0>=88 && LA92_0<=89)) ) { - alt92=1; - } - - - switch (alt92) { - case 1 : - // InternalEntities.g:11177:3: rule__XBlockExpression__Group_2__0 - { - pushFollow(FOLLOW_64); - rule__XBlockExpression__Group_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop92; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getGroup_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__2__Impl" - - - // $ANTLR start "rule__XBlockExpression__Group__3" - // InternalEntities.g:11185:1: rule__XBlockExpression__Group__3 : rule__XBlockExpression__Group__3__Impl ; - public final void rule__XBlockExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11189:1: ( rule__XBlockExpression__Group__3__Impl ) - // InternalEntities.g:11190:2: rule__XBlockExpression__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__3" - - - // $ANTLR start "rule__XBlockExpression__Group__3__Impl" - // InternalEntities.g:11196:1: rule__XBlockExpression__Group__3__Impl : ( '}' ) ; - public final void rule__XBlockExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11200:1: ( ( '}' ) ) - // InternalEntities.g:11201:1: ( '}' ) - { - // InternalEntities.g:11201:1: ( '}' ) - // InternalEntities.g:11202:2: '}' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); - } - match(input,53,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group__3__Impl" - - - // $ANTLR start "rule__XBlockExpression__Group_2__0" - // InternalEntities.g:11212:1: rule__XBlockExpression__Group_2__0 : rule__XBlockExpression__Group_2__0__Impl rule__XBlockExpression__Group_2__1 ; - public final void rule__XBlockExpression__Group_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11216:1: ( rule__XBlockExpression__Group_2__0__Impl rule__XBlockExpression__Group_2__1 ) - // InternalEntities.g:11217:2: rule__XBlockExpression__Group_2__0__Impl rule__XBlockExpression__Group_2__1 - { - pushFollow(FOLLOW_65); - rule__XBlockExpression__Group_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group_2__0" - - - // $ANTLR start "rule__XBlockExpression__Group_2__0__Impl" - // InternalEntities.g:11224:1: rule__XBlockExpression__Group_2__0__Impl : ( ( rule__XBlockExpression__ExpressionsAssignment_2_0 ) ) ; - public final void rule__XBlockExpression__Group_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11228:1: ( ( ( rule__XBlockExpression__ExpressionsAssignment_2_0 ) ) ) - // InternalEntities.g:11229:1: ( ( rule__XBlockExpression__ExpressionsAssignment_2_0 ) ) - { - // InternalEntities.g:11229:1: ( ( rule__XBlockExpression__ExpressionsAssignment_2_0 ) ) - // InternalEntities.g:11230:2: ( rule__XBlockExpression__ExpressionsAssignment_2_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getExpressionsAssignment_2_0()); - } - // InternalEntities.g:11231:2: ( rule__XBlockExpression__ExpressionsAssignment_2_0 ) - // InternalEntities.g:11231:3: rule__XBlockExpression__ExpressionsAssignment_2_0 - { - pushFollow(FOLLOW_2); - rule__XBlockExpression__ExpressionsAssignment_2_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getExpressionsAssignment_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group_2__0__Impl" - - - // $ANTLR start "rule__XBlockExpression__Group_2__1" - // InternalEntities.g:11239:1: rule__XBlockExpression__Group_2__1 : rule__XBlockExpression__Group_2__1__Impl ; - public final void rule__XBlockExpression__Group_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11243:1: ( rule__XBlockExpression__Group_2__1__Impl ) - // InternalEntities.g:11244:2: rule__XBlockExpression__Group_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__XBlockExpression__Group_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group_2__1" - - - // $ANTLR start "rule__XBlockExpression__Group_2__1__Impl" - // InternalEntities.g:11250:1: rule__XBlockExpression__Group_2__1__Impl : ( ( ';' )? ) ; - public final void rule__XBlockExpression__Group_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11254:1: ( ( ( ';' )? ) ) - // InternalEntities.g:11255:1: ( ( ';' )? ) - { - // InternalEntities.g:11255:1: ( ( ';' )? ) - // InternalEntities.g:11256:2: ( ';' )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); - } - // InternalEntities.g:11257:2: ( ';' )? - int alt93=2; - int LA93_0 = input.LA(1); - - if ( (LA93_0==65) ) { - alt93=1; - } - switch (alt93) { - case 1 : - // InternalEntities.g:11257:3: ';' - { - match(input,65,FOLLOW_2); if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__Group_2__1__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group__0" - // InternalEntities.g:11266:1: rule__XVariableDeclaration__Group__0 : rule__XVariableDeclaration__Group__0__Impl rule__XVariableDeclaration__Group__1 ; - public final void rule__XVariableDeclaration__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11270:1: ( rule__XVariableDeclaration__Group__0__Impl rule__XVariableDeclaration__Group__1 ) - // InternalEntities.g:11271:2: rule__XVariableDeclaration__Group__0__Impl rule__XVariableDeclaration__Group__1 - { - pushFollow(FOLLOW_79); - rule__XVariableDeclaration__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__0" - - - // $ANTLR start "rule__XVariableDeclaration__Group__0__Impl" - // InternalEntities.g:11278:1: rule__XVariableDeclaration__Group__0__Impl : ( () ) ; - public final void rule__XVariableDeclaration__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11282:1: ( ( () ) ) - // InternalEntities.g:11283:1: ( () ) - { - // InternalEntities.g:11283:1: ( () ) - // InternalEntities.g:11284:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0()); - } - // InternalEntities.g:11285:2: () - // InternalEntities.g:11285:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__0__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group__1" - // InternalEntities.g:11293:1: rule__XVariableDeclaration__Group__1 : rule__XVariableDeclaration__Group__1__Impl rule__XVariableDeclaration__Group__2 ; - public final void rule__XVariableDeclaration__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11297:1: ( rule__XVariableDeclaration__Group__1__Impl rule__XVariableDeclaration__Group__2 ) - // InternalEntities.g:11298:2: rule__XVariableDeclaration__Group__1__Impl rule__XVariableDeclaration__Group__2 - { - pushFollow(FOLLOW_14); - rule__XVariableDeclaration__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__1" - - - // $ANTLR start "rule__XVariableDeclaration__Group__1__Impl" - // InternalEntities.g:11305:1: rule__XVariableDeclaration__Group__1__Impl : ( ( rule__XVariableDeclaration__Alternatives_1 ) ) ; - public final void rule__XVariableDeclaration__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11309:1: ( ( ( rule__XVariableDeclaration__Alternatives_1 ) ) ) - // InternalEntities.g:11310:1: ( ( rule__XVariableDeclaration__Alternatives_1 ) ) - { - // InternalEntities.g:11310:1: ( ( rule__XVariableDeclaration__Alternatives_1 ) ) - // InternalEntities.g:11311:2: ( rule__XVariableDeclaration__Alternatives_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getAlternatives_1()); - } - // InternalEntities.g:11312:2: ( rule__XVariableDeclaration__Alternatives_1 ) - // InternalEntities.g:11312:3: rule__XVariableDeclaration__Alternatives_1 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getAlternatives_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__1__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group__2" - // InternalEntities.g:11320:1: rule__XVariableDeclaration__Group__2 : rule__XVariableDeclaration__Group__2__Impl rule__XVariableDeclaration__Group__3 ; - public final void rule__XVariableDeclaration__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11324:1: ( rule__XVariableDeclaration__Group__2__Impl rule__XVariableDeclaration__Group__3 ) - // InternalEntities.g:11325:2: rule__XVariableDeclaration__Group__2__Impl rule__XVariableDeclaration__Group__3 - { - pushFollow(FOLLOW_21); - rule__XVariableDeclaration__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__2" - - - // $ANTLR start "rule__XVariableDeclaration__Group__2__Impl" - // InternalEntities.g:11332:1: rule__XVariableDeclaration__Group__2__Impl : ( ( rule__XVariableDeclaration__Alternatives_2 ) ) ; - public final void rule__XVariableDeclaration__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11336:1: ( ( ( rule__XVariableDeclaration__Alternatives_2 ) ) ) - // InternalEntities.g:11337:1: ( ( rule__XVariableDeclaration__Alternatives_2 ) ) - { - // InternalEntities.g:11337:1: ( ( rule__XVariableDeclaration__Alternatives_2 ) ) - // InternalEntities.g:11338:2: ( rule__XVariableDeclaration__Alternatives_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getAlternatives_2()); - } - // InternalEntities.g:11339:2: ( rule__XVariableDeclaration__Alternatives_2 ) - // InternalEntities.g:11339:3: rule__XVariableDeclaration__Alternatives_2 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Alternatives_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getAlternatives_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__2__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group__3" - // InternalEntities.g:11347:1: rule__XVariableDeclaration__Group__3 : rule__XVariableDeclaration__Group__3__Impl ; - public final void rule__XVariableDeclaration__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11351:1: ( rule__XVariableDeclaration__Group__3__Impl ) - // InternalEntities.g:11352:2: rule__XVariableDeclaration__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__3" - - - // $ANTLR start "rule__XVariableDeclaration__Group__3__Impl" - // InternalEntities.g:11358:1: rule__XVariableDeclaration__Group__3__Impl : ( ( rule__XVariableDeclaration__Group_3__0 )? ) ; - public final void rule__XVariableDeclaration__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11362:1: ( ( ( rule__XVariableDeclaration__Group_3__0 )? ) ) - // InternalEntities.g:11363:1: ( ( rule__XVariableDeclaration__Group_3__0 )? ) - { - // InternalEntities.g:11363:1: ( ( rule__XVariableDeclaration__Group_3__0 )? ) - // InternalEntities.g:11364:2: ( rule__XVariableDeclaration__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getGroup_3()); - } - // InternalEntities.g:11365:2: ( rule__XVariableDeclaration__Group_3__0 )? - int alt94=2; - int LA94_0 = input.LA(1); - - if ( (LA94_0==13) ) { - alt94=1; - } - switch (alt94) { - case 1 : - // InternalEntities.g:11365:3: rule__XVariableDeclaration__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group__3__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group_2_0__0" - // InternalEntities.g:11374:1: rule__XVariableDeclaration__Group_2_0__0 : rule__XVariableDeclaration__Group_2_0__0__Impl ; - public final void rule__XVariableDeclaration__Group_2_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11378:1: ( rule__XVariableDeclaration__Group_2_0__0__Impl ) - // InternalEntities.g:11379:2: rule__XVariableDeclaration__Group_2_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_2_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_2_0__0" - - - // $ANTLR start "rule__XVariableDeclaration__Group_2_0__0__Impl" - // InternalEntities.g:11385:1: rule__XVariableDeclaration__Group_2_0__0__Impl : ( ( rule__XVariableDeclaration__Group_2_0_0__0 ) ) ; - public final void rule__XVariableDeclaration__Group_2_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11389:1: ( ( ( rule__XVariableDeclaration__Group_2_0_0__0 ) ) ) - // InternalEntities.g:11390:1: ( ( rule__XVariableDeclaration__Group_2_0_0__0 ) ) - { - // InternalEntities.g:11390:1: ( ( rule__XVariableDeclaration__Group_2_0_0__0 ) ) - // InternalEntities.g:11391:2: ( rule__XVariableDeclaration__Group_2_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0_0()); - } - // InternalEntities.g:11392:2: ( rule__XVariableDeclaration__Group_2_0_0__0 ) - // InternalEntities.g:11392:3: rule__XVariableDeclaration__Group_2_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_2_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_2_0__0__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group_2_0_0__0" - // InternalEntities.g:11401:1: rule__XVariableDeclaration__Group_2_0_0__0 : rule__XVariableDeclaration__Group_2_0_0__0__Impl rule__XVariableDeclaration__Group_2_0_0__1 ; - public final void rule__XVariableDeclaration__Group_2_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11405:1: ( rule__XVariableDeclaration__Group_2_0_0__0__Impl rule__XVariableDeclaration__Group_2_0_0__1 ) - // InternalEntities.g:11406:2: rule__XVariableDeclaration__Group_2_0_0__0__Impl rule__XVariableDeclaration__Group_2_0_0__1 - { - pushFollow(FOLLOW_7); - rule__XVariableDeclaration__Group_2_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_2_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_2_0_0__0" - - - // $ANTLR start "rule__XVariableDeclaration__Group_2_0_0__0__Impl" - // InternalEntities.g:11413:1: rule__XVariableDeclaration__Group_2_0_0__0__Impl : ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) ; - public final void rule__XVariableDeclaration__Group_2_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11417:1: ( ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) ) - // InternalEntities.g:11418:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) - { - // InternalEntities.g:11418:1: ( ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) ) - // InternalEntities.g:11419:2: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); - } - // InternalEntities.g:11420:2: ( rule__XVariableDeclaration__TypeAssignment_2_0_0_0 ) - // InternalEntities.g:11420:3: rule__XVariableDeclaration__TypeAssignment_2_0_0_0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__TypeAssignment_2_0_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getTypeAssignment_2_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_2_0_0__0__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group_2_0_0__1" - // InternalEntities.g:11428:1: rule__XVariableDeclaration__Group_2_0_0__1 : rule__XVariableDeclaration__Group_2_0_0__1__Impl ; - public final void rule__XVariableDeclaration__Group_2_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11432:1: ( rule__XVariableDeclaration__Group_2_0_0__1__Impl ) - // InternalEntities.g:11433:2: rule__XVariableDeclaration__Group_2_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_2_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_2_0_0__1" - - - // $ANTLR start "rule__XVariableDeclaration__Group_2_0_0__1__Impl" - // InternalEntities.g:11439:1: rule__XVariableDeclaration__Group_2_0_0__1__Impl : ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) ) ; - public final void rule__XVariableDeclaration__Group_2_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11443:1: ( ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) ) ) - // InternalEntities.g:11444:1: ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) ) - { - // InternalEntities.g:11444:1: ( ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) ) - // InternalEntities.g:11445:2: ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1()); - } - // InternalEntities.g:11446:2: ( rule__XVariableDeclaration__NameAssignment_2_0_0_1 ) - // InternalEntities.g:11446:3: rule__XVariableDeclaration__NameAssignment_2_0_0_1 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__NameAssignment_2_0_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getNameAssignment_2_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_2_0_0__1__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group_3__0" - // InternalEntities.g:11455:1: rule__XVariableDeclaration__Group_3__0 : rule__XVariableDeclaration__Group_3__0__Impl rule__XVariableDeclaration__Group_3__1 ; - public final void rule__XVariableDeclaration__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11459:1: ( rule__XVariableDeclaration__Group_3__0__Impl rule__XVariableDeclaration__Group_3__1 ) - // InternalEntities.g:11460:2: rule__XVariableDeclaration__Group_3__0__Impl rule__XVariableDeclaration__Group_3__1 - { - pushFollow(FOLLOW_56); - rule__XVariableDeclaration__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_3__0" - - - // $ANTLR start "rule__XVariableDeclaration__Group_3__0__Impl" - // InternalEntities.g:11467:1: rule__XVariableDeclaration__Group_3__0__Impl : ( '=' ) ; - public final void rule__XVariableDeclaration__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11471:1: ( ( '=' ) ) - // InternalEntities.g:11472:1: ( '=' ) - { - // InternalEntities.g:11472:1: ( '=' ) - // InternalEntities.g:11473:2: '=' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); - } - match(input,13,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_3__0__Impl" - - - // $ANTLR start "rule__XVariableDeclaration__Group_3__1" - // InternalEntities.g:11482:1: rule__XVariableDeclaration__Group_3__1 : rule__XVariableDeclaration__Group_3__1__Impl ; - public final void rule__XVariableDeclaration__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11486:1: ( rule__XVariableDeclaration__Group_3__1__Impl ) - // InternalEntities.g:11487:2: rule__XVariableDeclaration__Group_3__1__Impl - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_3__1" - - - // $ANTLR start "rule__XVariableDeclaration__Group_3__1__Impl" - // InternalEntities.g:11493:1: rule__XVariableDeclaration__Group_3__1__Impl : ( ( rule__XVariableDeclaration__RightAssignment_3_1 ) ) ; - public final void rule__XVariableDeclaration__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11497:1: ( ( ( rule__XVariableDeclaration__RightAssignment_3_1 ) ) ) - // InternalEntities.g:11498:1: ( ( rule__XVariableDeclaration__RightAssignment_3_1 ) ) - { - // InternalEntities.g:11498:1: ( ( rule__XVariableDeclaration__RightAssignment_3_1 ) ) - // InternalEntities.g:11499:2: ( rule__XVariableDeclaration__RightAssignment_3_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getRightAssignment_3_1()); - } - // InternalEntities.g:11500:2: ( rule__XVariableDeclaration__RightAssignment_3_1 ) - // InternalEntities.g:11500:3: rule__XVariableDeclaration__RightAssignment_3_1 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__RightAssignment_3_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getRightAssignment_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__Group_3__1__Impl" - - - // $ANTLR start "rule__JvmFormalParameter__Group__0" - // InternalEntities.g:11509:1: rule__JvmFormalParameter__Group__0 : rule__JvmFormalParameter__Group__0__Impl rule__JvmFormalParameter__Group__1 ; - public final void rule__JvmFormalParameter__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11513:1: ( rule__JvmFormalParameter__Group__0__Impl rule__JvmFormalParameter__Group__1 ) - // InternalEntities.g:11514:2: rule__JvmFormalParameter__Group__0__Impl rule__JvmFormalParameter__Group__1 - { - pushFollow(FOLLOW_14); - rule__JvmFormalParameter__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmFormalParameter__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmFormalParameter__Group__0" - - - // $ANTLR start "rule__JvmFormalParameter__Group__0__Impl" - // InternalEntities.g:11521:1: rule__JvmFormalParameter__Group__0__Impl : ( ( rule__JvmFormalParameter__ParameterTypeAssignment_0 )? ) ; - public final void rule__JvmFormalParameter__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11525:1: ( ( ( rule__JvmFormalParameter__ParameterTypeAssignment_0 )? ) ) - // InternalEntities.g:11526:1: ( ( rule__JvmFormalParameter__ParameterTypeAssignment_0 )? ) - { - // InternalEntities.g:11526:1: ( ( rule__JvmFormalParameter__ParameterTypeAssignment_0 )? ) - // InternalEntities.g:11527:2: ( rule__JvmFormalParameter__ParameterTypeAssignment_0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmFormalParameterAccess().getParameterTypeAssignment_0()); - } - // InternalEntities.g:11528:2: ( rule__JvmFormalParameter__ParameterTypeAssignment_0 )? - int alt95=2; - int LA95_0 = input.LA(1); - - if ( (LA95_0==RULE_ID) ) { - int LA95_1 = input.LA(2); - - if ( (LA95_1==RULE_ID||LA95_1==27||LA95_1==43||LA95_1==63) ) { - alt95=1; - } - } - else if ( (LA95_0==31||LA95_0==57) ) { - alt95=1; - } - switch (alt95) { - case 1 : - // InternalEntities.g:11528:3: rule__JvmFormalParameter__ParameterTypeAssignment_0 - { - pushFollow(FOLLOW_2); - rule__JvmFormalParameter__ParameterTypeAssignment_0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmFormalParameterAccess().getParameterTypeAssignment_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmFormalParameter__Group__0__Impl" - - - // $ANTLR start "rule__JvmFormalParameter__Group__1" - // InternalEntities.g:11536:1: rule__JvmFormalParameter__Group__1 : rule__JvmFormalParameter__Group__1__Impl ; - public final void rule__JvmFormalParameter__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11540:1: ( rule__JvmFormalParameter__Group__1__Impl ) - // InternalEntities.g:11541:2: rule__JvmFormalParameter__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmFormalParameter__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmFormalParameter__Group__1" - - - // $ANTLR start "rule__JvmFormalParameter__Group__1__Impl" - // InternalEntities.g:11547:1: rule__JvmFormalParameter__Group__1__Impl : ( ( rule__JvmFormalParameter__NameAssignment_1 ) ) ; - public final void rule__JvmFormalParameter__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11551:1: ( ( ( rule__JvmFormalParameter__NameAssignment_1 ) ) ) - // InternalEntities.g:11552:1: ( ( rule__JvmFormalParameter__NameAssignment_1 ) ) - { - // InternalEntities.g:11552:1: ( ( rule__JvmFormalParameter__NameAssignment_1 ) ) - // InternalEntities.g:11553:2: ( rule__JvmFormalParameter__NameAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmFormalParameterAccess().getNameAssignment_1()); - } - // InternalEntities.g:11554:2: ( rule__JvmFormalParameter__NameAssignment_1 ) - // InternalEntities.g:11554:3: rule__JvmFormalParameter__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__JvmFormalParameter__NameAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmFormalParameterAccess().getNameAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmFormalParameter__Group__1__Impl" - - - // $ANTLR start "rule__FullJvmFormalParameter__Group__0" - // InternalEntities.g:11563:1: rule__FullJvmFormalParameter__Group__0 : rule__FullJvmFormalParameter__Group__0__Impl rule__FullJvmFormalParameter__Group__1 ; - public final void rule__FullJvmFormalParameter__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11567:1: ( rule__FullJvmFormalParameter__Group__0__Impl rule__FullJvmFormalParameter__Group__1 ) - // InternalEntities.g:11568:2: rule__FullJvmFormalParameter__Group__0__Impl rule__FullJvmFormalParameter__Group__1 - { - pushFollow(FOLLOW_7); - rule__FullJvmFormalParameter__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__FullJvmFormalParameter__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FullJvmFormalParameter__Group__0" - - - // $ANTLR start "rule__FullJvmFormalParameter__Group__0__Impl" - // InternalEntities.g:11575:1: rule__FullJvmFormalParameter__Group__0__Impl : ( ( rule__FullJvmFormalParameter__ParameterTypeAssignment_0 ) ) ; - public final void rule__FullJvmFormalParameter__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11579:1: ( ( ( rule__FullJvmFormalParameter__ParameterTypeAssignment_0 ) ) ) - // InternalEntities.g:11580:1: ( ( rule__FullJvmFormalParameter__ParameterTypeAssignment_0 ) ) - { - // InternalEntities.g:11580:1: ( ( rule__FullJvmFormalParameter__ParameterTypeAssignment_0 ) ) - // InternalEntities.g:11581:2: ( rule__FullJvmFormalParameter__ParameterTypeAssignment_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeAssignment_0()); - } - // InternalEntities.g:11582:2: ( rule__FullJvmFormalParameter__ParameterTypeAssignment_0 ) - // InternalEntities.g:11582:3: rule__FullJvmFormalParameter__ParameterTypeAssignment_0 - { - pushFollow(FOLLOW_2); - rule__FullJvmFormalParameter__ParameterTypeAssignment_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeAssignment_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FullJvmFormalParameter__Group__0__Impl" - - - // $ANTLR start "rule__FullJvmFormalParameter__Group__1" - // InternalEntities.g:11590:1: rule__FullJvmFormalParameter__Group__1 : rule__FullJvmFormalParameter__Group__1__Impl ; - public final void rule__FullJvmFormalParameter__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11594:1: ( rule__FullJvmFormalParameter__Group__1__Impl ) - // InternalEntities.g:11595:2: rule__FullJvmFormalParameter__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__FullJvmFormalParameter__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FullJvmFormalParameter__Group__1" - - - // $ANTLR start "rule__FullJvmFormalParameter__Group__1__Impl" - // InternalEntities.g:11601:1: rule__FullJvmFormalParameter__Group__1__Impl : ( ( rule__FullJvmFormalParameter__NameAssignment_1 ) ) ; - public final void rule__FullJvmFormalParameter__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11605:1: ( ( ( rule__FullJvmFormalParameter__NameAssignment_1 ) ) ) - // InternalEntities.g:11606:1: ( ( rule__FullJvmFormalParameter__NameAssignment_1 ) ) - { - // InternalEntities.g:11606:1: ( ( rule__FullJvmFormalParameter__NameAssignment_1 ) ) - // InternalEntities.g:11607:2: ( rule__FullJvmFormalParameter__NameAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFullJvmFormalParameterAccess().getNameAssignment_1()); - } - // InternalEntities.g:11608:2: ( rule__FullJvmFormalParameter__NameAssignment_1 ) - // InternalEntities.g:11608:3: rule__FullJvmFormalParameter__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__FullJvmFormalParameter__NameAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getFullJvmFormalParameterAccess().getNameAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FullJvmFormalParameter__Group__1__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group__0" - // InternalEntities.g:11617:1: rule__XFeatureCall__Group__0 : rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 ; - public final void rule__XFeatureCall__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11621:1: ( rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 ) - // InternalEntities.g:11622:2: rule__XFeatureCall__Group__0__Impl rule__XFeatureCall__Group__1 - { - pushFollow(FOLLOW_51); - rule__XFeatureCall__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__0" - - - // $ANTLR start "rule__XFeatureCall__Group__0__Impl" - // InternalEntities.g:11629:1: rule__XFeatureCall__Group__0__Impl : ( () ) ; - public final void rule__XFeatureCall__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11633:1: ( ( () ) ) - // InternalEntities.g:11634:1: ( () ) - { - // InternalEntities.g:11634:1: ( () ) - // InternalEntities.g:11635:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); - } - // InternalEntities.g:11636:2: () - // InternalEntities.g:11636:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__0__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group__1" - // InternalEntities.g:11644:1: rule__XFeatureCall__Group__1 : rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 ; - public final void rule__XFeatureCall__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11648:1: ( rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 ) - // InternalEntities.g:11649:2: rule__XFeatureCall__Group__1__Impl rule__XFeatureCall__Group__2 - { - pushFollow(FOLLOW_51); - rule__XFeatureCall__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__1" - - - // $ANTLR start "rule__XFeatureCall__Group__1__Impl" - // InternalEntities.g:11656:1: rule__XFeatureCall__Group__1__Impl : ( ( rule__XFeatureCall__Group_1__0 )? ) ; - public final void rule__XFeatureCall__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11660:1: ( ( ( rule__XFeatureCall__Group_1__0 )? ) ) - // InternalEntities.g:11661:1: ( ( rule__XFeatureCall__Group_1__0 )? ) - { - // InternalEntities.g:11661:1: ( ( rule__XFeatureCall__Group_1__0 )? ) - // InternalEntities.g:11662:2: ( rule__XFeatureCall__Group_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGroup_1()); - } - // InternalEntities.g:11663:2: ( rule__XFeatureCall__Group_1__0 )? - int alt96=2; - int LA96_0 = input.LA(1); - - if ( (LA96_0==27) ) { - alt96=1; - } - switch (alt96) { - case 1 : - // InternalEntities.g:11663:3: rule__XFeatureCall__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__1__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group__2" - // InternalEntities.g:11671:1: rule__XFeatureCall__Group__2 : rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3 ; - public final void rule__XFeatureCall__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11675:1: ( rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3 ) - // InternalEntities.g:11676:2: rule__XFeatureCall__Group__2__Impl rule__XFeatureCall__Group__3 - { - pushFollow(FOLLOW_52); - rule__XFeatureCall__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__2" - - - // $ANTLR start "rule__XFeatureCall__Group__2__Impl" - // InternalEntities.g:11683:1: rule__XFeatureCall__Group__2__Impl : ( ( rule__XFeatureCall__FeatureAssignment_2 ) ) ; - public final void rule__XFeatureCall__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11687:1: ( ( ( rule__XFeatureCall__FeatureAssignment_2 ) ) ) - // InternalEntities.g:11688:1: ( ( rule__XFeatureCall__FeatureAssignment_2 ) ) - { - // InternalEntities.g:11688:1: ( ( rule__XFeatureCall__FeatureAssignment_2 ) ) - // InternalEntities.g:11689:2: ( rule__XFeatureCall__FeatureAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureAssignment_2()); - } - // InternalEntities.g:11690:2: ( rule__XFeatureCall__FeatureAssignment_2 ) - // InternalEntities.g:11690:3: rule__XFeatureCall__FeatureAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__2__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group__3" - // InternalEntities.g:11698:1: rule__XFeatureCall__Group__3 : rule__XFeatureCall__Group__3__Impl rule__XFeatureCall__Group__4 ; - public final void rule__XFeatureCall__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11702:1: ( rule__XFeatureCall__Group__3__Impl rule__XFeatureCall__Group__4 ) - // InternalEntities.g:11703:2: rule__XFeatureCall__Group__3__Impl rule__XFeatureCall__Group__4 - { - pushFollow(FOLLOW_52); - rule__XFeatureCall__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__3" - - - // $ANTLR start "rule__XFeatureCall__Group__3__Impl" - // InternalEntities.g:11710:1: rule__XFeatureCall__Group__3__Impl : ( ( rule__XFeatureCall__Group_3__0 )? ) ; - public final void rule__XFeatureCall__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11714:1: ( ( ( rule__XFeatureCall__Group_3__0 )? ) ) - // InternalEntities.g:11715:1: ( ( rule__XFeatureCall__Group_3__0 )? ) - { - // InternalEntities.g:11715:1: ( ( rule__XFeatureCall__Group_3__0 )? ) - // InternalEntities.g:11716:2: ( rule__XFeatureCall__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGroup_3()); - } - // InternalEntities.g:11717:2: ( rule__XFeatureCall__Group_3__0 )? - int alt97=2; - alt97 = dfa97.predict(input); - switch (alt97) { - case 1 : - // InternalEntities.g:11717:3: rule__XFeatureCall__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__3__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group__4" - // InternalEntities.g:11725:1: rule__XFeatureCall__Group__4 : rule__XFeatureCall__Group__4__Impl ; - public final void rule__XFeatureCall__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11729:1: ( rule__XFeatureCall__Group__4__Impl ) - // InternalEntities.g:11730:2: rule__XFeatureCall__Group__4__Impl - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__4" - - - // $ANTLR start "rule__XFeatureCall__Group__4__Impl" - // InternalEntities.g:11736:1: rule__XFeatureCall__Group__4__Impl : ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )? ) ; - public final void rule__XFeatureCall__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11740:1: ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )? ) ) - // InternalEntities.g:11741:1: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )? ) - { - // InternalEntities.g:11741:1: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )? ) - // InternalEntities.g:11742:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_4()); - } - // InternalEntities.g:11743:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )? - int alt98=2; - alt98 = dfa98.predict(input); - switch (alt98) { - case 1 : - // InternalEntities.g:11743:3: rule__XFeatureCall__FeatureCallArgumentsAssignment_4 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureCallArgumentsAssignment_4(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group__4__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_1__0" - // InternalEntities.g:11752:1: rule__XFeatureCall__Group_1__0 : rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1 ; - public final void rule__XFeatureCall__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11756:1: ( rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1 ) - // InternalEntities.g:11757:2: rule__XFeatureCall__Group_1__0__Impl rule__XFeatureCall__Group_1__1 - { - pushFollow(FOLLOW_53); - rule__XFeatureCall__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__0" - - - // $ANTLR start "rule__XFeatureCall__Group_1__0__Impl" - // InternalEntities.g:11764:1: rule__XFeatureCall__Group_1__0__Impl : ( '<' ) ; - public final void rule__XFeatureCall__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11768:1: ( ( '<' ) ) - // InternalEntities.g:11769:1: ( '<' ) - { - // InternalEntities.g:11769:1: ( '<' ) - // InternalEntities.g:11770:2: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__0__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_1__1" - // InternalEntities.g:11779:1: rule__XFeatureCall__Group_1__1 : rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 ; - public final void rule__XFeatureCall__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11783:1: ( rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 ) - // InternalEntities.g:11784:2: rule__XFeatureCall__Group_1__1__Impl rule__XFeatureCall__Group_1__2 - { - pushFollow(FOLLOW_54); - rule__XFeatureCall__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__1" - - - // $ANTLR start "rule__XFeatureCall__Group_1__1__Impl" - // InternalEntities.g:11791:1: rule__XFeatureCall__Group_1__1__Impl : ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_1 ) ) ; - public final void rule__XFeatureCall__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11795:1: ( ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_1 ) ) ) - // InternalEntities.g:11796:1: ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_1 ) ) - { - // InternalEntities.g:11796:1: ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_1 ) ) - // InternalEntities.g:11797:2: ( rule__XFeatureCall__TypeArgumentsAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_1()); - } - // InternalEntities.g:11798:2: ( rule__XFeatureCall__TypeArgumentsAssignment_1_1 ) - // InternalEntities.g:11798:3: rule__XFeatureCall__TypeArgumentsAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__TypeArgumentsAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__1__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_1__2" - // InternalEntities.g:11806:1: rule__XFeatureCall__Group_1__2 : rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 ; - public final void rule__XFeatureCall__Group_1__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11810:1: ( rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 ) - // InternalEntities.g:11811:2: rule__XFeatureCall__Group_1__2__Impl rule__XFeatureCall__Group_1__3 - { - pushFollow(FOLLOW_54); - rule__XFeatureCall__Group_1__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__2" - - - // $ANTLR start "rule__XFeatureCall__Group_1__2__Impl" - // InternalEntities.g:11818:1: rule__XFeatureCall__Group_1__2__Impl : ( ( rule__XFeatureCall__Group_1_2__0 )* ) ; - public final void rule__XFeatureCall__Group_1__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11822:1: ( ( ( rule__XFeatureCall__Group_1_2__0 )* ) ) - // InternalEntities.g:11823:1: ( ( rule__XFeatureCall__Group_1_2__0 )* ) - { - // InternalEntities.g:11823:1: ( ( rule__XFeatureCall__Group_1_2__0 )* ) - // InternalEntities.g:11824:2: ( rule__XFeatureCall__Group_1_2__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); - } - // InternalEntities.g:11825:2: ( rule__XFeatureCall__Group_1_2__0 )* - loop99: - do { - int alt99=2; - int LA99_0 = input.LA(1); - - if ( (LA99_0==59) ) { - alt99=1; - } - - - switch (alt99) { - case 1 : - // InternalEntities.g:11825:3: rule__XFeatureCall__Group_1_2__0 - { - pushFollow(FOLLOW_19); - rule__XFeatureCall__Group_1_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop99; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGroup_1_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__2__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_1__3" - // InternalEntities.g:11833:1: rule__XFeatureCall__Group_1__3 : rule__XFeatureCall__Group_1__3__Impl ; - public final void rule__XFeatureCall__Group_1__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11837:1: ( rule__XFeatureCall__Group_1__3__Impl ) - // InternalEntities.g:11838:2: rule__XFeatureCall__Group_1__3__Impl - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__3" - - - // $ANTLR start "rule__XFeatureCall__Group_1__3__Impl" - // InternalEntities.g:11844:1: rule__XFeatureCall__Group_1__3__Impl : ( '>' ) ; - public final void rule__XFeatureCall__Group_1__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11848:1: ( ( '>' ) ) - // InternalEntities.g:11849:1: ( '>' ) - { - // InternalEntities.g:11849:1: ( '>' ) - // InternalEntities.g:11850:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1__3__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_1_2__0" - // InternalEntities.g:11860:1: rule__XFeatureCall__Group_1_2__0 : rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 ; - public final void rule__XFeatureCall__Group_1_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11864:1: ( rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 ) - // InternalEntities.g:11865:2: rule__XFeatureCall__Group_1_2__0__Impl rule__XFeatureCall__Group_1_2__1 - { - pushFollow(FOLLOW_53); - rule__XFeatureCall__Group_1_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1_2__0" - - - // $ANTLR start "rule__XFeatureCall__Group_1_2__0__Impl" - // InternalEntities.g:11872:1: rule__XFeatureCall__Group_1_2__0__Impl : ( ',' ) ; - public final void rule__XFeatureCall__Group_1_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11876:1: ( ( ',' ) ) - // InternalEntities.g:11877:1: ( ',' ) - { - // InternalEntities.g:11877:1: ( ',' ) - // InternalEntities.g:11878:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1_2__0__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_1_2__1" - // InternalEntities.g:11887:1: rule__XFeatureCall__Group_1_2__1 : rule__XFeatureCall__Group_1_2__1__Impl ; - public final void rule__XFeatureCall__Group_1_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11891:1: ( rule__XFeatureCall__Group_1_2__1__Impl ) - // InternalEntities.g:11892:2: rule__XFeatureCall__Group_1_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_1_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1_2__1" - - - // $ANTLR start "rule__XFeatureCall__Group_1_2__1__Impl" - // InternalEntities.g:11898:1: rule__XFeatureCall__Group_1_2__1__Impl : ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 ) ) ; - public final void rule__XFeatureCall__Group_1_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11902:1: ( ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 ) ) ) - // InternalEntities.g:11903:1: ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 ) ) - { - // InternalEntities.g:11903:1: ( ( rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 ) ) - // InternalEntities.g:11904:2: ( rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_2_1()); - } - // InternalEntities.g:11905:2: ( rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 ) - // InternalEntities.g:11905:3: rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__TypeArgumentsAssignment_1_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsAssignment_1_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_1_2__1__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3__0" - // InternalEntities.g:11914:1: rule__XFeatureCall__Group_3__0 : rule__XFeatureCall__Group_3__0__Impl rule__XFeatureCall__Group_3__1 ; - public final void rule__XFeatureCall__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11918:1: ( rule__XFeatureCall__Group_3__0__Impl rule__XFeatureCall__Group_3__1 ) - // InternalEntities.g:11919:2: rule__XFeatureCall__Group_3__0__Impl rule__XFeatureCall__Group_3__1 - { - pushFollow(FOLLOW_55); - rule__XFeatureCall__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3__0" - - - // $ANTLR start "rule__XFeatureCall__Group_3__0__Impl" - // InternalEntities.g:11926:1: rule__XFeatureCall__Group_3__0__Impl : ( ( rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 ) ) ; - public final void rule__XFeatureCall__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11930:1: ( ( ( rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 ) ) ) - // InternalEntities.g:11931:1: ( ( rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 ) ) - { - // InternalEntities.g:11931:1: ( ( rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 ) ) - // InternalEntities.g:11932:2: ( rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallAssignment_3_0()); - } - // InternalEntities.g:11933:2: ( rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 ) - // InternalEntities.g:11933:3: rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__ExplicitOperationCallAssignment_3_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallAssignment_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3__0__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3__1" - // InternalEntities.g:11941:1: rule__XFeatureCall__Group_3__1 : rule__XFeatureCall__Group_3__1__Impl rule__XFeatureCall__Group_3__2 ; - public final void rule__XFeatureCall__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11945:1: ( rule__XFeatureCall__Group_3__1__Impl rule__XFeatureCall__Group_3__2 ) - // InternalEntities.g:11946:2: rule__XFeatureCall__Group_3__1__Impl rule__XFeatureCall__Group_3__2 - { - pushFollow(FOLLOW_55); - rule__XFeatureCall__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3__1" - - - // $ANTLR start "rule__XFeatureCall__Group_3__1__Impl" - // InternalEntities.g:11953:1: rule__XFeatureCall__Group_3__1__Impl : ( ( rule__XFeatureCall__Alternatives_3_1 )? ) ; - public final void rule__XFeatureCall__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11957:1: ( ( ( rule__XFeatureCall__Alternatives_3_1 )? ) ) - // InternalEntities.g:11958:1: ( ( rule__XFeatureCall__Alternatives_3_1 )? ) - { - // InternalEntities.g:11958:1: ( ( rule__XFeatureCall__Alternatives_3_1 )? ) - // InternalEntities.g:11959:2: ( rule__XFeatureCall__Alternatives_3_1 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getAlternatives_3_1()); - } - // InternalEntities.g:11960:2: ( rule__XFeatureCall__Alternatives_3_1 )? - int alt100=2; - int LA100_0 = input.LA(1); - - if ( ((LA100_0>=RULE_ID && LA100_0<=RULE_STRING)||LA100_0==27||LA100_0==31||(LA100_0>=34 && LA100_0<=35)||LA100_0==40||(LA100_0>=45 && LA100_0<=50)||LA100_0==52||LA100_0==57||(LA100_0>=62 && LA100_0<=63)||LA100_0==66||LA100_0==68||(LA100_0>=71 && LA100_0<=79)||LA100_0==81||LA100_0==87||LA100_0==89) ) { - alt100=1; - } - switch (alt100) { - case 1 : - // InternalEntities.g:11960:3: rule__XFeatureCall__Alternatives_3_1 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Alternatives_3_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getAlternatives_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3__1__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3__2" - // InternalEntities.g:11968:1: rule__XFeatureCall__Group_3__2 : rule__XFeatureCall__Group_3__2__Impl ; - public final void rule__XFeatureCall__Group_3__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11972:1: ( rule__XFeatureCall__Group_3__2__Impl ) - // InternalEntities.g:11973:2: rule__XFeatureCall__Group_3__2__Impl - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3__2" - - - // $ANTLR start "rule__XFeatureCall__Group_3__2__Impl" - // InternalEntities.g:11979:1: rule__XFeatureCall__Group_3__2__Impl : ( ')' ) ; - public final void rule__XFeatureCall__Group_3__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11983:1: ( ( ')' ) ) - // InternalEntities.g:11984:1: ( ')' ) - { - // InternalEntities.g:11984:1: ( ')' ) - // InternalEntities.g:11985:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3__2__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1__0" - // InternalEntities.g:11995:1: rule__XFeatureCall__Group_3_1_1__0 : rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1 ; - public final void rule__XFeatureCall__Group_3_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:11999:1: ( rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1 ) - // InternalEntities.g:12000:2: rule__XFeatureCall__Group_3_1_1__0__Impl rule__XFeatureCall__Group_3_1_1__1 - { - pushFollow(FOLLOW_18); - rule__XFeatureCall__Group_3_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1__0" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1__0__Impl" - // InternalEntities.g:12007:1: rule__XFeatureCall__Group_3_1_1__0__Impl : ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 ) ) ; - public final void rule__XFeatureCall__Group_3_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12011:1: ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 ) ) ) - // InternalEntities.g:12012:1: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 ) ) - { - // InternalEntities.g:12012:1: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 ) ) - // InternalEntities.g:12013:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_0()); - } - // InternalEntities.g:12014:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 ) - // InternalEntities.g:12014:3: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1__0__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1__1" - // InternalEntities.g:12022:1: rule__XFeatureCall__Group_3_1_1__1 : rule__XFeatureCall__Group_3_1_1__1__Impl ; - public final void rule__XFeatureCall__Group_3_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12026:1: ( rule__XFeatureCall__Group_3_1_1__1__Impl ) - // InternalEntities.g:12027:2: rule__XFeatureCall__Group_3_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1__1" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1__1__Impl" - // InternalEntities.g:12033:1: rule__XFeatureCall__Group_3_1_1__1__Impl : ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* ) ; - public final void rule__XFeatureCall__Group_3_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12037:1: ( ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* ) ) - // InternalEntities.g:12038:1: ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* ) - { - // InternalEntities.g:12038:1: ( ( rule__XFeatureCall__Group_3_1_1_1__0 )* ) - // InternalEntities.g:12039:2: ( rule__XFeatureCall__Group_3_1_1_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); - } - // InternalEntities.g:12040:2: ( rule__XFeatureCall__Group_3_1_1_1__0 )* - loop101: - do { - int alt101=2; - int LA101_0 = input.LA(1); - - if ( (LA101_0==59) ) { - alt101=1; - } - - - switch (alt101) { - case 1 : - // InternalEntities.g:12040:3: rule__XFeatureCall__Group_3_1_1_1__0 - { - pushFollow(FOLLOW_19); - rule__XFeatureCall__Group_3_1_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop101; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getGroup_3_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1__1__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1_1__0" - // InternalEntities.g:12049:1: rule__XFeatureCall__Group_3_1_1_1__0 : rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1 ; - public final void rule__XFeatureCall__Group_3_1_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12053:1: ( rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1 ) - // InternalEntities.g:12054:2: rule__XFeatureCall__Group_3_1_1_1__0__Impl rule__XFeatureCall__Group_3_1_1_1__1 - { - pushFollow(FOLLOW_56); - rule__XFeatureCall__Group_3_1_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3_1_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1_1__0" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1_1__0__Impl" - // InternalEntities.g:12061:1: rule__XFeatureCall__Group_3_1_1_1__0__Impl : ( ',' ) ; - public final void rule__XFeatureCall__Group_3_1_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12065:1: ( ( ',' ) ) - // InternalEntities.g:12066:1: ( ',' ) - { - // InternalEntities.g:12066:1: ( ',' ) - // InternalEntities.g:12067:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1_1__0__Impl" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1_1__1" - // InternalEntities.g:12076:1: rule__XFeatureCall__Group_3_1_1_1__1 : rule__XFeatureCall__Group_3_1_1_1__1__Impl ; - public final void rule__XFeatureCall__Group_3_1_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12080:1: ( rule__XFeatureCall__Group_3_1_1_1__1__Impl ) - // InternalEntities.g:12081:2: rule__XFeatureCall__Group_3_1_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3_1_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1_1__1" - - - // $ANTLR start "rule__XFeatureCall__Group_3_1_1_1__1__Impl" - // InternalEntities.g:12087:1: rule__XFeatureCall__Group_3_1_1_1__1__Impl : ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 ) ) ; - public final void rule__XFeatureCall__Group_3_1_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12091:1: ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 ) ) ) - // InternalEntities.g:12092:1: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 ) ) - { - // InternalEntities.g:12092:1: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 ) ) - // InternalEntities.g:12093:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_1_1()); - } - // InternalEntities.g:12094:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 ) - // InternalEntities.g:12094:3: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__Group_3_1_1_1__1__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group__0" - // InternalEntities.g:12103:1: rule__XConstructorCall__Group__0 : rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1 ; - public final void rule__XConstructorCall__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12107:1: ( rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1 ) - // InternalEntities.g:12108:2: rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1 - { - pushFollow(FOLLOW_80); - rule__XConstructorCall__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__0" - - - // $ANTLR start "rule__XConstructorCall__Group__0__Impl" - // InternalEntities.g:12115:1: rule__XConstructorCall__Group__0__Impl : ( () ) ; - public final void rule__XConstructorCall__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12119:1: ( ( () ) ) - // InternalEntities.g:12120:1: ( () ) - { - // InternalEntities.g:12120:1: ( () ) - // InternalEntities.g:12121:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0()); - } - // InternalEntities.g:12122:2: () - // InternalEntities.g:12122:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__0__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group__1" - // InternalEntities.g:12130:1: rule__XConstructorCall__Group__1 : rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2 ; - public final void rule__XConstructorCall__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12134:1: ( rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2 ) - // InternalEntities.g:12135:2: rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2 - { - pushFollow(FOLLOW_7); - rule__XConstructorCall__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__1" - - - // $ANTLR start "rule__XConstructorCall__Group__1__Impl" - // InternalEntities.g:12142:1: rule__XConstructorCall__Group__1__Impl : ( 'new' ) ; - public final void rule__XConstructorCall__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12146:1: ( ( 'new' ) ) - // InternalEntities.g:12147:1: ( 'new' ) - { - // InternalEntities.g:12147:1: ( 'new' ) - // InternalEntities.g:12148:2: 'new' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); - } - match(input,74,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__1__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group__2" - // InternalEntities.g:12157:1: rule__XConstructorCall__Group__2 : rule__XConstructorCall__Group__2__Impl rule__XConstructorCall__Group__3 ; - public final void rule__XConstructorCall__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12161:1: ( rule__XConstructorCall__Group__2__Impl rule__XConstructorCall__Group__3 ) - // InternalEntities.g:12162:2: rule__XConstructorCall__Group__2__Impl rule__XConstructorCall__Group__3 - { - pushFollow(FOLLOW_81); - rule__XConstructorCall__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__2" - - - // $ANTLR start "rule__XConstructorCall__Group__2__Impl" - // InternalEntities.g:12169:1: rule__XConstructorCall__Group__2__Impl : ( ( rule__XConstructorCall__ConstructorAssignment_2 ) ) ; - public final void rule__XConstructorCall__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12173:1: ( ( ( rule__XConstructorCall__ConstructorAssignment_2 ) ) ) - // InternalEntities.g:12174:1: ( ( rule__XConstructorCall__ConstructorAssignment_2 ) ) - { - // InternalEntities.g:12174:1: ( ( rule__XConstructorCall__ConstructorAssignment_2 ) ) - // InternalEntities.g:12175:2: ( rule__XConstructorCall__ConstructorAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getConstructorAssignment_2()); - } - // InternalEntities.g:12176:2: ( rule__XConstructorCall__ConstructorAssignment_2 ) - // InternalEntities.g:12176:3: rule__XConstructorCall__ConstructorAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ConstructorAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getConstructorAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__2__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group__3" - // InternalEntities.g:12184:1: rule__XConstructorCall__Group__3 : rule__XConstructorCall__Group__3__Impl rule__XConstructorCall__Group__4 ; - public final void rule__XConstructorCall__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12188:1: ( rule__XConstructorCall__Group__3__Impl rule__XConstructorCall__Group__4 ) - // InternalEntities.g:12189:2: rule__XConstructorCall__Group__3__Impl rule__XConstructorCall__Group__4 - { - pushFollow(FOLLOW_81); - rule__XConstructorCall__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__3" - - - // $ANTLR start "rule__XConstructorCall__Group__3__Impl" - // InternalEntities.g:12196:1: rule__XConstructorCall__Group__3__Impl : ( ( rule__XConstructorCall__Group_3__0 )? ) ; - public final void rule__XConstructorCall__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12200:1: ( ( ( rule__XConstructorCall__Group_3__0 )? ) ) - // InternalEntities.g:12201:1: ( ( rule__XConstructorCall__Group_3__0 )? ) - { - // InternalEntities.g:12201:1: ( ( rule__XConstructorCall__Group_3__0 )? ) - // InternalEntities.g:12202:2: ( rule__XConstructorCall__Group_3__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGroup_3()); - } - // InternalEntities.g:12203:2: ( rule__XConstructorCall__Group_3__0 )? - int alt102=2; - alt102 = dfa102.predict(input); - switch (alt102) { - case 1 : - // InternalEntities.g:12203:3: rule__XConstructorCall__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGroup_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__3__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group__4" - // InternalEntities.g:12211:1: rule__XConstructorCall__Group__4 : rule__XConstructorCall__Group__4__Impl rule__XConstructorCall__Group__5 ; - public final void rule__XConstructorCall__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12215:1: ( rule__XConstructorCall__Group__4__Impl rule__XConstructorCall__Group__5 ) - // InternalEntities.g:12216:2: rule__XConstructorCall__Group__4__Impl rule__XConstructorCall__Group__5 - { - pushFollow(FOLLOW_81); - rule__XConstructorCall__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__4" - - - // $ANTLR start "rule__XConstructorCall__Group__4__Impl" - // InternalEntities.g:12223:1: rule__XConstructorCall__Group__4__Impl : ( ( rule__XConstructorCall__Group_4__0 )? ) ; - public final void rule__XConstructorCall__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12227:1: ( ( ( rule__XConstructorCall__Group_4__0 )? ) ) - // InternalEntities.g:12228:1: ( ( rule__XConstructorCall__Group_4__0 )? ) - { - // InternalEntities.g:12228:1: ( ( rule__XConstructorCall__Group_4__0 )? ) - // InternalEntities.g:12229:2: ( rule__XConstructorCall__Group_4__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGroup_4()); - } - // InternalEntities.g:12230:2: ( rule__XConstructorCall__Group_4__0 )? - int alt103=2; - alt103 = dfa103.predict(input); - switch (alt103) { - case 1 : - // InternalEntities.g:12230:3: rule__XConstructorCall__Group_4__0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGroup_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__4__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group__5" - // InternalEntities.g:12238:1: rule__XConstructorCall__Group__5 : rule__XConstructorCall__Group__5__Impl ; - public final void rule__XConstructorCall__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12242:1: ( rule__XConstructorCall__Group__5__Impl ) - // InternalEntities.g:12243:2: rule__XConstructorCall__Group__5__Impl - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__5" - - - // $ANTLR start "rule__XConstructorCall__Group__5__Impl" - // InternalEntities.g:12249:1: rule__XConstructorCall__Group__5__Impl : ( ( rule__XConstructorCall__ArgumentsAssignment_5 )? ) ; - public final void rule__XConstructorCall__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12253:1: ( ( ( rule__XConstructorCall__ArgumentsAssignment_5 )? ) ) - // InternalEntities.g:12254:1: ( ( rule__XConstructorCall__ArgumentsAssignment_5 )? ) - { - // InternalEntities.g:12254:1: ( ( rule__XConstructorCall__ArgumentsAssignment_5 )? ) - // InternalEntities.g:12255:2: ( rule__XConstructorCall__ArgumentsAssignment_5 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_5()); - } - // InternalEntities.g:12256:2: ( rule__XConstructorCall__ArgumentsAssignment_5 )? - int alt104=2; - alt104 = dfa104.predict(input); - switch (alt104) { - case 1 : - // InternalEntities.g:12256:3: rule__XConstructorCall__ArgumentsAssignment_5 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ArgumentsAssignment_5(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group__5__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_3__0" - // InternalEntities.g:12265:1: rule__XConstructorCall__Group_3__0 : rule__XConstructorCall__Group_3__0__Impl rule__XConstructorCall__Group_3__1 ; - public final void rule__XConstructorCall__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12269:1: ( rule__XConstructorCall__Group_3__0__Impl rule__XConstructorCall__Group_3__1 ) - // InternalEntities.g:12270:2: rule__XConstructorCall__Group_3__0__Impl rule__XConstructorCall__Group_3__1 - { - pushFollow(FOLLOW_53); - rule__XConstructorCall__Group_3__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__0" - - - // $ANTLR start "rule__XConstructorCall__Group_3__0__Impl" - // InternalEntities.g:12277:1: rule__XConstructorCall__Group_3__0__Impl : ( ( '<' ) ) ; - public final void rule__XConstructorCall__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12281:1: ( ( ( '<' ) ) ) - // InternalEntities.g:12282:1: ( ( '<' ) ) - { - // InternalEntities.g:12282:1: ( ( '<' ) ) - // InternalEntities.g:12283:2: ( '<' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); - } - // InternalEntities.g:12284:2: ( '<' ) - // InternalEntities.g:12284:3: '<' - { - match(input,27,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__0__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_3__1" - // InternalEntities.g:12292:1: rule__XConstructorCall__Group_3__1 : rule__XConstructorCall__Group_3__1__Impl rule__XConstructorCall__Group_3__2 ; - public final void rule__XConstructorCall__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12296:1: ( rule__XConstructorCall__Group_3__1__Impl rule__XConstructorCall__Group_3__2 ) - // InternalEntities.g:12297:2: rule__XConstructorCall__Group_3__1__Impl rule__XConstructorCall__Group_3__2 - { - pushFollow(FOLLOW_54); - rule__XConstructorCall__Group_3__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__1" - - - // $ANTLR start "rule__XConstructorCall__Group_3__1__Impl" - // InternalEntities.g:12304:1: rule__XConstructorCall__Group_3__1__Impl : ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_1 ) ) ; - public final void rule__XConstructorCall__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12308:1: ( ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_1 ) ) ) - // InternalEntities.g:12309:1: ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_1 ) ) - { - // InternalEntities.g:12309:1: ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_1 ) ) - // InternalEntities.g:12310:2: ( rule__XConstructorCall__TypeArgumentsAssignment_3_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_1()); - } - // InternalEntities.g:12311:2: ( rule__XConstructorCall__TypeArgumentsAssignment_3_1 ) - // InternalEntities.g:12311:3: rule__XConstructorCall__TypeArgumentsAssignment_3_1 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__TypeArgumentsAssignment_3_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__1__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_3__2" - // InternalEntities.g:12319:1: rule__XConstructorCall__Group_3__2 : rule__XConstructorCall__Group_3__2__Impl rule__XConstructorCall__Group_3__3 ; - public final void rule__XConstructorCall__Group_3__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12323:1: ( rule__XConstructorCall__Group_3__2__Impl rule__XConstructorCall__Group_3__3 ) - // InternalEntities.g:12324:2: rule__XConstructorCall__Group_3__2__Impl rule__XConstructorCall__Group_3__3 - { - pushFollow(FOLLOW_54); - rule__XConstructorCall__Group_3__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__2" - - - // $ANTLR start "rule__XConstructorCall__Group_3__2__Impl" - // InternalEntities.g:12331:1: rule__XConstructorCall__Group_3__2__Impl : ( ( rule__XConstructorCall__Group_3_2__0 )* ) ; - public final void rule__XConstructorCall__Group_3__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12335:1: ( ( ( rule__XConstructorCall__Group_3_2__0 )* ) ) - // InternalEntities.g:12336:1: ( ( rule__XConstructorCall__Group_3_2__0 )* ) - { - // InternalEntities.g:12336:1: ( ( rule__XConstructorCall__Group_3_2__0 )* ) - // InternalEntities.g:12337:2: ( rule__XConstructorCall__Group_3_2__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGroup_3_2()); - } - // InternalEntities.g:12338:2: ( rule__XConstructorCall__Group_3_2__0 )* - loop105: - do { - int alt105=2; - int LA105_0 = input.LA(1); - - if ( (LA105_0==59) ) { - alt105=1; - } - - - switch (alt105) { - case 1 : - // InternalEntities.g:12338:3: rule__XConstructorCall__Group_3_2__0 - { - pushFollow(FOLLOW_19); - rule__XConstructorCall__Group_3_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop105; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGroup_3_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__2__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_3__3" - // InternalEntities.g:12346:1: rule__XConstructorCall__Group_3__3 : rule__XConstructorCall__Group_3__3__Impl ; - public final void rule__XConstructorCall__Group_3__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12350:1: ( rule__XConstructorCall__Group_3__3__Impl ) - // InternalEntities.g:12351:2: rule__XConstructorCall__Group_3__3__Impl - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__3" - - - // $ANTLR start "rule__XConstructorCall__Group_3__3__Impl" - // InternalEntities.g:12357:1: rule__XConstructorCall__Group_3__3__Impl : ( '>' ) ; - public final void rule__XConstructorCall__Group_3__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12361:1: ( ( '>' ) ) - // InternalEntities.g:12362:1: ( '>' ) - { - // InternalEntities.g:12362:1: ( '>' ) - // InternalEntities.g:12363:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3__3__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_3_2__0" - // InternalEntities.g:12373:1: rule__XConstructorCall__Group_3_2__0 : rule__XConstructorCall__Group_3_2__0__Impl rule__XConstructorCall__Group_3_2__1 ; - public final void rule__XConstructorCall__Group_3_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12377:1: ( rule__XConstructorCall__Group_3_2__0__Impl rule__XConstructorCall__Group_3_2__1 ) - // InternalEntities.g:12378:2: rule__XConstructorCall__Group_3_2__0__Impl rule__XConstructorCall__Group_3_2__1 - { - pushFollow(FOLLOW_53); - rule__XConstructorCall__Group_3_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3_2__0" - - - // $ANTLR start "rule__XConstructorCall__Group_3_2__0__Impl" - // InternalEntities.g:12385:1: rule__XConstructorCall__Group_3_2__0__Impl : ( ',' ) ; - public final void rule__XConstructorCall__Group_3_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12389:1: ( ( ',' ) ) - // InternalEntities.g:12390:1: ( ',' ) - { - // InternalEntities.g:12390:1: ( ',' ) - // InternalEntities.g:12391:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3_2__0__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_3_2__1" - // InternalEntities.g:12400:1: rule__XConstructorCall__Group_3_2__1 : rule__XConstructorCall__Group_3_2__1__Impl ; - public final void rule__XConstructorCall__Group_3_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12404:1: ( rule__XConstructorCall__Group_3_2__1__Impl ) - // InternalEntities.g:12405:2: rule__XConstructorCall__Group_3_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3_2__1" - - - // $ANTLR start "rule__XConstructorCall__Group_3_2__1__Impl" - // InternalEntities.g:12411:1: rule__XConstructorCall__Group_3_2__1__Impl : ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 ) ) ; - public final void rule__XConstructorCall__Group_3_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12415:1: ( ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 ) ) ) - // InternalEntities.g:12416:1: ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 ) ) - { - // InternalEntities.g:12416:1: ( ( rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 ) ) - // InternalEntities.g:12417:2: ( rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_2_1()); - } - // InternalEntities.g:12418:2: ( rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 ) - // InternalEntities.g:12418:3: rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__TypeArgumentsAssignment_3_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsAssignment_3_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_3_2__1__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4__0" - // InternalEntities.g:12427:1: rule__XConstructorCall__Group_4__0 : rule__XConstructorCall__Group_4__0__Impl rule__XConstructorCall__Group_4__1 ; - public final void rule__XConstructorCall__Group_4__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12431:1: ( rule__XConstructorCall__Group_4__0__Impl rule__XConstructorCall__Group_4__1 ) - // InternalEntities.g:12432:2: rule__XConstructorCall__Group_4__0__Impl rule__XConstructorCall__Group_4__1 - { - pushFollow(FOLLOW_55); - rule__XConstructorCall__Group_4__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4__0" - - - // $ANTLR start "rule__XConstructorCall__Group_4__0__Impl" - // InternalEntities.g:12439:1: rule__XConstructorCall__Group_4__0__Impl : ( ( rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 ) ) ; - public final void rule__XConstructorCall__Group_4__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12443:1: ( ( ( rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 ) ) ) - // InternalEntities.g:12444:1: ( ( rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 ) ) - { - // InternalEntities.g:12444:1: ( ( rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 ) ) - // InternalEntities.g:12445:2: ( rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallAssignment_4_0()); - } - // InternalEntities.g:12446:2: ( rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 ) - // InternalEntities.g:12446:3: rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallAssignment_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4__0__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4__1" - // InternalEntities.g:12454:1: rule__XConstructorCall__Group_4__1 : rule__XConstructorCall__Group_4__1__Impl rule__XConstructorCall__Group_4__2 ; - public final void rule__XConstructorCall__Group_4__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12458:1: ( rule__XConstructorCall__Group_4__1__Impl rule__XConstructorCall__Group_4__2 ) - // InternalEntities.g:12459:2: rule__XConstructorCall__Group_4__1__Impl rule__XConstructorCall__Group_4__2 - { - pushFollow(FOLLOW_55); - rule__XConstructorCall__Group_4__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4__1" - - - // $ANTLR start "rule__XConstructorCall__Group_4__1__Impl" - // InternalEntities.g:12466:1: rule__XConstructorCall__Group_4__1__Impl : ( ( rule__XConstructorCall__Alternatives_4_1 )? ) ; - public final void rule__XConstructorCall__Group_4__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12470:1: ( ( ( rule__XConstructorCall__Alternatives_4_1 )? ) ) - // InternalEntities.g:12471:1: ( ( rule__XConstructorCall__Alternatives_4_1 )? ) - { - // InternalEntities.g:12471:1: ( ( rule__XConstructorCall__Alternatives_4_1 )? ) - // InternalEntities.g:12472:2: ( rule__XConstructorCall__Alternatives_4_1 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getAlternatives_4_1()); - } - // InternalEntities.g:12473:2: ( rule__XConstructorCall__Alternatives_4_1 )? - int alt106=2; - int LA106_0 = input.LA(1); - - if ( ((LA106_0>=RULE_ID && LA106_0<=RULE_STRING)||LA106_0==27||LA106_0==31||(LA106_0>=34 && LA106_0<=35)||LA106_0==40||(LA106_0>=45 && LA106_0<=50)||LA106_0==52||LA106_0==57||(LA106_0>=62 && LA106_0<=63)||LA106_0==66||LA106_0==68||(LA106_0>=71 && LA106_0<=79)||LA106_0==81||LA106_0==87||LA106_0==89) ) { - alt106=1; - } - switch (alt106) { - case 1 : - // InternalEntities.g:12473:3: rule__XConstructorCall__Alternatives_4_1 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Alternatives_4_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getAlternatives_4_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4__1__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4__2" - // InternalEntities.g:12481:1: rule__XConstructorCall__Group_4__2 : rule__XConstructorCall__Group_4__2__Impl ; - public final void rule__XConstructorCall__Group_4__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12485:1: ( rule__XConstructorCall__Group_4__2__Impl ) - // InternalEntities.g:12486:2: rule__XConstructorCall__Group_4__2__Impl - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4__2" - - - // $ANTLR start "rule__XConstructorCall__Group_4__2__Impl" - // InternalEntities.g:12492:1: rule__XConstructorCall__Group_4__2__Impl : ( ')' ) ; - public final void rule__XConstructorCall__Group_4__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12496:1: ( ( ')' ) ) - // InternalEntities.g:12497:1: ( ')' ) - { - // InternalEntities.g:12497:1: ( ')' ) - // InternalEntities.g:12498:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4__2__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1__0" - // InternalEntities.g:12508:1: rule__XConstructorCall__Group_4_1_1__0 : rule__XConstructorCall__Group_4_1_1__0__Impl rule__XConstructorCall__Group_4_1_1__1 ; - public final void rule__XConstructorCall__Group_4_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12512:1: ( rule__XConstructorCall__Group_4_1_1__0__Impl rule__XConstructorCall__Group_4_1_1__1 ) - // InternalEntities.g:12513:2: rule__XConstructorCall__Group_4_1_1__0__Impl rule__XConstructorCall__Group_4_1_1__1 - { - pushFollow(FOLLOW_18); - rule__XConstructorCall__Group_4_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1__0" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1__0__Impl" - // InternalEntities.g:12520:1: rule__XConstructorCall__Group_4_1_1__0__Impl : ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 ) ) ; - public final void rule__XConstructorCall__Group_4_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12524:1: ( ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 ) ) ) - // InternalEntities.g:12525:1: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 ) ) - { - // InternalEntities.g:12525:1: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 ) ) - // InternalEntities.g:12526:2: ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_0()); - } - // InternalEntities.g:12527:2: ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 ) - // InternalEntities.g:12527:3: rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ArgumentsAssignment_4_1_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1__0__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1__1" - // InternalEntities.g:12535:1: rule__XConstructorCall__Group_4_1_1__1 : rule__XConstructorCall__Group_4_1_1__1__Impl ; - public final void rule__XConstructorCall__Group_4_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12539:1: ( rule__XConstructorCall__Group_4_1_1__1__Impl ) - // InternalEntities.g:12540:2: rule__XConstructorCall__Group_4_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1__1" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1__1__Impl" - // InternalEntities.g:12546:1: rule__XConstructorCall__Group_4_1_1__1__Impl : ( ( rule__XConstructorCall__Group_4_1_1_1__0 )* ) ; - public final void rule__XConstructorCall__Group_4_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12550:1: ( ( ( rule__XConstructorCall__Group_4_1_1_1__0 )* ) ) - // InternalEntities.g:12551:1: ( ( rule__XConstructorCall__Group_4_1_1_1__0 )* ) - { - // InternalEntities.g:12551:1: ( ( rule__XConstructorCall__Group_4_1_1_1__0 )* ) - // InternalEntities.g:12552:2: ( rule__XConstructorCall__Group_4_1_1_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1_1()); - } - // InternalEntities.g:12553:2: ( rule__XConstructorCall__Group_4_1_1_1__0 )* - loop107: - do { - int alt107=2; - int LA107_0 = input.LA(1); - - if ( (LA107_0==59) ) { - alt107=1; - } - - - switch (alt107) { - case 1 : - // InternalEntities.g:12553:3: rule__XConstructorCall__Group_4_1_1_1__0 - { - pushFollow(FOLLOW_19); - rule__XConstructorCall__Group_4_1_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop107; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getGroup_4_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1__1__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1_1__0" - // InternalEntities.g:12562:1: rule__XConstructorCall__Group_4_1_1_1__0 : rule__XConstructorCall__Group_4_1_1_1__0__Impl rule__XConstructorCall__Group_4_1_1_1__1 ; - public final void rule__XConstructorCall__Group_4_1_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12566:1: ( rule__XConstructorCall__Group_4_1_1_1__0__Impl rule__XConstructorCall__Group_4_1_1_1__1 ) - // InternalEntities.g:12567:2: rule__XConstructorCall__Group_4_1_1_1__0__Impl rule__XConstructorCall__Group_4_1_1_1__1 - { - pushFollow(FOLLOW_56); - rule__XConstructorCall__Group_4_1_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4_1_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1_1__0" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1_1__0__Impl" - // InternalEntities.g:12574:1: rule__XConstructorCall__Group_4_1_1_1__0__Impl : ( ',' ) ; - public final void rule__XConstructorCall__Group_4_1_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12578:1: ( ( ',' ) ) - // InternalEntities.g:12579:1: ( ',' ) - { - // InternalEntities.g:12579:1: ( ',' ) - // InternalEntities.g:12580:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1_1__0__Impl" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1_1__1" - // InternalEntities.g:12589:1: rule__XConstructorCall__Group_4_1_1_1__1 : rule__XConstructorCall__Group_4_1_1_1__1__Impl ; - public final void rule__XConstructorCall__Group_4_1_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12593:1: ( rule__XConstructorCall__Group_4_1_1_1__1__Impl ) - // InternalEntities.g:12594:2: rule__XConstructorCall__Group_4_1_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4_1_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1_1__1" - - - // $ANTLR start "rule__XConstructorCall__Group_4_1_1_1__1__Impl" - // InternalEntities.g:12600:1: rule__XConstructorCall__Group_4_1_1_1__1__Impl : ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) ) ; - public final void rule__XConstructorCall__Group_4_1_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12604:1: ( ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) ) ) - // InternalEntities.g:12605:1: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) ) - { - // InternalEntities.g:12605:1: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) ) - // InternalEntities.g:12606:2: ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_1_1()); - } - // InternalEntities.g:12607:2: ( rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) - // InternalEntities.g:12607:3: rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__Group_4_1_1_1__1__Impl" - - - // $ANTLR start "rule__XBooleanLiteral__Group__0" - // InternalEntities.g:12616:1: rule__XBooleanLiteral__Group__0 : rule__XBooleanLiteral__Group__0__Impl rule__XBooleanLiteral__Group__1 ; - public final void rule__XBooleanLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12620:1: ( rule__XBooleanLiteral__Group__0__Impl rule__XBooleanLiteral__Group__1 ) - // InternalEntities.g:12621:2: rule__XBooleanLiteral__Group__0__Impl rule__XBooleanLiteral__Group__1 - { - pushFollow(FOLLOW_82); - rule__XBooleanLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XBooleanLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBooleanLiteral__Group__0" - - - // $ANTLR start "rule__XBooleanLiteral__Group__0__Impl" - // InternalEntities.g:12628:1: rule__XBooleanLiteral__Group__0__Impl : ( () ) ; - public final void rule__XBooleanLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12632:1: ( ( () ) ) - // InternalEntities.g:12633:1: ( () ) - { - // InternalEntities.g:12633:1: ( () ) - // InternalEntities.g:12634:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0()); - } - // InternalEntities.g:12635:2: () - // InternalEntities.g:12635:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBooleanLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XBooleanLiteral__Group__1" - // InternalEntities.g:12643:1: rule__XBooleanLiteral__Group__1 : rule__XBooleanLiteral__Group__1__Impl ; - public final void rule__XBooleanLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12647:1: ( rule__XBooleanLiteral__Group__1__Impl ) - // InternalEntities.g:12648:2: rule__XBooleanLiteral__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XBooleanLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBooleanLiteral__Group__1" - - - // $ANTLR start "rule__XBooleanLiteral__Group__1__Impl" - // InternalEntities.g:12654:1: rule__XBooleanLiteral__Group__1__Impl : ( ( rule__XBooleanLiteral__Alternatives_1 ) ) ; - public final void rule__XBooleanLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12658:1: ( ( ( rule__XBooleanLiteral__Alternatives_1 ) ) ) - // InternalEntities.g:12659:1: ( ( rule__XBooleanLiteral__Alternatives_1 ) ) - { - // InternalEntities.g:12659:1: ( ( rule__XBooleanLiteral__Alternatives_1 ) ) - // InternalEntities.g:12660:2: ( rule__XBooleanLiteral__Alternatives_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getAlternatives_1()); - } - // InternalEntities.g:12661:2: ( rule__XBooleanLiteral__Alternatives_1 ) - // InternalEntities.g:12661:3: rule__XBooleanLiteral__Alternatives_1 - { - pushFollow(FOLLOW_2); - rule__XBooleanLiteral__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getAlternatives_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBooleanLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XNullLiteral__Group__0" - // InternalEntities.g:12670:1: rule__XNullLiteral__Group__0 : rule__XNullLiteral__Group__0__Impl rule__XNullLiteral__Group__1 ; - public final void rule__XNullLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12674:1: ( rule__XNullLiteral__Group__0__Impl rule__XNullLiteral__Group__1 ) - // InternalEntities.g:12675:2: rule__XNullLiteral__Group__0__Impl rule__XNullLiteral__Group__1 - { - pushFollow(FOLLOW_83); - rule__XNullLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XNullLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNullLiteral__Group__0" - - - // $ANTLR start "rule__XNullLiteral__Group__0__Impl" - // InternalEntities.g:12682:1: rule__XNullLiteral__Group__0__Impl : ( () ) ; - public final void rule__XNullLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12686:1: ( ( () ) ) - // InternalEntities.g:12687:1: ( () ) - { - // InternalEntities.g:12687:1: ( () ) - // InternalEntities.g:12688:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0()); - } - // InternalEntities.g:12689:2: () - // InternalEntities.g:12689:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNullLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XNullLiteral__Group__1" - // InternalEntities.g:12697:1: rule__XNullLiteral__Group__1 : rule__XNullLiteral__Group__1__Impl ; - public final void rule__XNullLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12701:1: ( rule__XNullLiteral__Group__1__Impl ) - // InternalEntities.g:12702:2: rule__XNullLiteral__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XNullLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNullLiteral__Group__1" - - - // $ANTLR start "rule__XNullLiteral__Group__1__Impl" - // InternalEntities.g:12708:1: rule__XNullLiteral__Group__1__Impl : ( 'null' ) ; - public final void rule__XNullLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12712:1: ( ( 'null' ) ) - // InternalEntities.g:12713:1: ( 'null' ) - { - // InternalEntities.g:12713:1: ( 'null' ) - // InternalEntities.g:12714:2: 'null' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); - } - match(input,75,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNullLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XNumberLiteral__Group__0" - // InternalEntities.g:12724:1: rule__XNumberLiteral__Group__0 : rule__XNumberLiteral__Group__0__Impl rule__XNumberLiteral__Group__1 ; - public final void rule__XNumberLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12728:1: ( rule__XNumberLiteral__Group__0__Impl rule__XNumberLiteral__Group__1 ) - // InternalEntities.g:12729:2: rule__XNumberLiteral__Group__0__Impl rule__XNumberLiteral__Group__1 - { - pushFollow(FOLLOW_84); - rule__XNumberLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XNumberLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNumberLiteral__Group__0" - - - // $ANTLR start "rule__XNumberLiteral__Group__0__Impl" - // InternalEntities.g:12736:1: rule__XNumberLiteral__Group__0__Impl : ( () ) ; - public final void rule__XNumberLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12740:1: ( ( () ) ) - // InternalEntities.g:12741:1: ( () ) - { - // InternalEntities.g:12741:1: ( () ) - // InternalEntities.g:12742:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0()); - } - // InternalEntities.g:12743:2: () - // InternalEntities.g:12743:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNumberLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XNumberLiteral__Group__1" - // InternalEntities.g:12751:1: rule__XNumberLiteral__Group__1 : rule__XNumberLiteral__Group__1__Impl ; - public final void rule__XNumberLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12755:1: ( rule__XNumberLiteral__Group__1__Impl ) - // InternalEntities.g:12756:2: rule__XNumberLiteral__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XNumberLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNumberLiteral__Group__1" - - - // $ANTLR start "rule__XNumberLiteral__Group__1__Impl" - // InternalEntities.g:12762:1: rule__XNumberLiteral__Group__1__Impl : ( ( rule__XNumberLiteral__ValueAssignment_1 ) ) ; - public final void rule__XNumberLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12766:1: ( ( ( rule__XNumberLiteral__ValueAssignment_1 ) ) ) - // InternalEntities.g:12767:1: ( ( rule__XNumberLiteral__ValueAssignment_1 ) ) - { - // InternalEntities.g:12767:1: ( ( rule__XNumberLiteral__ValueAssignment_1 ) ) - // InternalEntities.g:12768:2: ( rule__XNumberLiteral__ValueAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNumberLiteralAccess().getValueAssignment_1()); - } - // InternalEntities.g:12769:2: ( rule__XNumberLiteral__ValueAssignment_1 ) - // InternalEntities.g:12769:3: rule__XNumberLiteral__ValueAssignment_1 - { - pushFollow(FOLLOW_2); - rule__XNumberLiteral__ValueAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXNumberLiteralAccess().getValueAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNumberLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XStringLiteral__Group__0" - // InternalEntities.g:12778:1: rule__XStringLiteral__Group__0 : rule__XStringLiteral__Group__0__Impl rule__XStringLiteral__Group__1 ; - public final void rule__XStringLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12782:1: ( rule__XStringLiteral__Group__0__Impl rule__XStringLiteral__Group__1 ) - // InternalEntities.g:12783:2: rule__XStringLiteral__Group__0__Impl rule__XStringLiteral__Group__1 - { - pushFollow(FOLLOW_85); - rule__XStringLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XStringLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XStringLiteral__Group__0" - - - // $ANTLR start "rule__XStringLiteral__Group__0__Impl" - // InternalEntities.g:12790:1: rule__XStringLiteral__Group__0__Impl : ( () ) ; - public final void rule__XStringLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12794:1: ( ( () ) ) - // InternalEntities.g:12795:1: ( () ) - { - // InternalEntities.g:12795:1: ( () ) - // InternalEntities.g:12796:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0()); - } - // InternalEntities.g:12797:2: () - // InternalEntities.g:12797:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XStringLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XStringLiteral__Group__1" - // InternalEntities.g:12805:1: rule__XStringLiteral__Group__1 : rule__XStringLiteral__Group__1__Impl ; - public final void rule__XStringLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12809:1: ( rule__XStringLiteral__Group__1__Impl ) - // InternalEntities.g:12810:2: rule__XStringLiteral__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__XStringLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XStringLiteral__Group__1" - - - // $ANTLR start "rule__XStringLiteral__Group__1__Impl" - // InternalEntities.g:12816:1: rule__XStringLiteral__Group__1__Impl : ( ( rule__XStringLiteral__ValueAssignment_1 ) ) ; - public final void rule__XStringLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12820:1: ( ( ( rule__XStringLiteral__ValueAssignment_1 ) ) ) - // InternalEntities.g:12821:1: ( ( rule__XStringLiteral__ValueAssignment_1 ) ) - { - // InternalEntities.g:12821:1: ( ( rule__XStringLiteral__ValueAssignment_1 ) ) - // InternalEntities.g:12822:2: ( rule__XStringLiteral__ValueAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXStringLiteralAccess().getValueAssignment_1()); - } - // InternalEntities.g:12823:2: ( rule__XStringLiteral__ValueAssignment_1 ) - // InternalEntities.g:12823:3: rule__XStringLiteral__ValueAssignment_1 - { - pushFollow(FOLLOW_2); - rule__XStringLiteral__ValueAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXStringLiteralAccess().getValueAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XStringLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XTypeLiteral__Group__0" - // InternalEntities.g:12832:1: rule__XTypeLiteral__Group__0 : rule__XTypeLiteral__Group__0__Impl rule__XTypeLiteral__Group__1 ; - public final void rule__XTypeLiteral__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12836:1: ( rule__XTypeLiteral__Group__0__Impl rule__XTypeLiteral__Group__1 ) - // InternalEntities.g:12837:2: rule__XTypeLiteral__Group__0__Impl rule__XTypeLiteral__Group__1 - { - pushFollow(FOLLOW_86); - rule__XTypeLiteral__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__0" - - - // $ANTLR start "rule__XTypeLiteral__Group__0__Impl" - // InternalEntities.g:12844:1: rule__XTypeLiteral__Group__0__Impl : ( () ) ; - public final void rule__XTypeLiteral__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12848:1: ( ( () ) ) - // InternalEntities.g:12849:1: ( () ) - { - // InternalEntities.g:12849:1: ( () ) - // InternalEntities.g:12850:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); - } - // InternalEntities.g:12851:2: () - // InternalEntities.g:12851:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__0__Impl" - - - // $ANTLR start "rule__XTypeLiteral__Group__1" - // InternalEntities.g:12859:1: rule__XTypeLiteral__Group__1 : rule__XTypeLiteral__Group__1__Impl rule__XTypeLiteral__Group__2 ; - public final void rule__XTypeLiteral__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12863:1: ( rule__XTypeLiteral__Group__1__Impl rule__XTypeLiteral__Group__2 ) - // InternalEntities.g:12864:2: rule__XTypeLiteral__Group__1__Impl rule__XTypeLiteral__Group__2 - { - pushFollow(FOLLOW_15); - rule__XTypeLiteral__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__1" - - - // $ANTLR start "rule__XTypeLiteral__Group__1__Impl" - // InternalEntities.g:12871:1: rule__XTypeLiteral__Group__1__Impl : ( 'typeof' ) ; - public final void rule__XTypeLiteral__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12875:1: ( ( 'typeof' ) ) - // InternalEntities.g:12876:1: ( 'typeof' ) - { - // InternalEntities.g:12876:1: ( 'typeof' ) - // InternalEntities.g:12877:2: 'typeof' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); - } - match(input,76,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__1__Impl" - - - // $ANTLR start "rule__XTypeLiteral__Group__2" - // InternalEntities.g:12886:1: rule__XTypeLiteral__Group__2 : rule__XTypeLiteral__Group__2__Impl rule__XTypeLiteral__Group__3 ; - public final void rule__XTypeLiteral__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12890:1: ( rule__XTypeLiteral__Group__2__Impl rule__XTypeLiteral__Group__3 ) - // InternalEntities.g:12891:2: rule__XTypeLiteral__Group__2__Impl rule__XTypeLiteral__Group__3 - { - pushFollow(FOLLOW_7); - rule__XTypeLiteral__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__2" - - - // $ANTLR start "rule__XTypeLiteral__Group__2__Impl" - // InternalEntities.g:12898:1: rule__XTypeLiteral__Group__2__Impl : ( '(' ) ; - public final void rule__XTypeLiteral__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12902:1: ( ( '(' ) ) - // InternalEntities.g:12903:1: ( '(' ) - { - // InternalEntities.g:12903:1: ( '(' ) - // InternalEntities.g:12904:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__2__Impl" - - - // $ANTLR start "rule__XTypeLiteral__Group__3" - // InternalEntities.g:12913:1: rule__XTypeLiteral__Group__3 : rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4 ; - public final void rule__XTypeLiteral__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12917:1: ( rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4 ) - // InternalEntities.g:12918:2: rule__XTypeLiteral__Group__3__Impl rule__XTypeLiteral__Group__4 - { - pushFollow(FOLLOW_87); - rule__XTypeLiteral__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__3" - - - // $ANTLR start "rule__XTypeLiteral__Group__3__Impl" - // InternalEntities.g:12925:1: rule__XTypeLiteral__Group__3__Impl : ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) ; - public final void rule__XTypeLiteral__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12929:1: ( ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) ) - // InternalEntities.g:12930:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) - { - // InternalEntities.g:12930:1: ( ( rule__XTypeLiteral__TypeAssignment_3 ) ) - // InternalEntities.g:12931:2: ( rule__XTypeLiteral__TypeAssignment_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); - } - // InternalEntities.g:12932:2: ( rule__XTypeLiteral__TypeAssignment_3 ) - // InternalEntities.g:12932:3: rule__XTypeLiteral__TypeAssignment_3 - { - pushFollow(FOLLOW_2); - rule__XTypeLiteral__TypeAssignment_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getTypeAssignment_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__3__Impl" - - - // $ANTLR start "rule__XTypeLiteral__Group__4" - // InternalEntities.g:12940:1: rule__XTypeLiteral__Group__4 : rule__XTypeLiteral__Group__4__Impl rule__XTypeLiteral__Group__5 ; - public final void rule__XTypeLiteral__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12944:1: ( rule__XTypeLiteral__Group__4__Impl rule__XTypeLiteral__Group__5 ) - // InternalEntities.g:12945:2: rule__XTypeLiteral__Group__4__Impl rule__XTypeLiteral__Group__5 - { - pushFollow(FOLLOW_87); - rule__XTypeLiteral__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__5(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__4" - - - // $ANTLR start "rule__XTypeLiteral__Group__4__Impl" - // InternalEntities.g:12952:1: rule__XTypeLiteral__Group__4__Impl : ( ( rule__XTypeLiteral__ArrayDimensionsAssignment_4 )* ) ; - public final void rule__XTypeLiteral__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12956:1: ( ( ( rule__XTypeLiteral__ArrayDimensionsAssignment_4 )* ) ) - // InternalEntities.g:12957:1: ( ( rule__XTypeLiteral__ArrayDimensionsAssignment_4 )* ) - { - // InternalEntities.g:12957:1: ( ( rule__XTypeLiteral__ArrayDimensionsAssignment_4 )* ) - // InternalEntities.g:12958:2: ( rule__XTypeLiteral__ArrayDimensionsAssignment_4 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsAssignment_4()); - } - // InternalEntities.g:12959:2: ( rule__XTypeLiteral__ArrayDimensionsAssignment_4 )* - loop108: - do { - int alt108=2; - int LA108_0 = input.LA(1); - - if ( (LA108_0==63) ) { - alt108=1; - } - - - switch (alt108) { - case 1 : - // InternalEntities.g:12959:3: rule__XTypeLiteral__ArrayDimensionsAssignment_4 - { - pushFollow(FOLLOW_88); - rule__XTypeLiteral__ArrayDimensionsAssignment_4(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop108; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsAssignment_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__4__Impl" - - - // $ANTLR start "rule__XTypeLiteral__Group__5" - // InternalEntities.g:12967:1: rule__XTypeLiteral__Group__5 : rule__XTypeLiteral__Group__5__Impl ; - public final void rule__XTypeLiteral__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12971:1: ( rule__XTypeLiteral__Group__5__Impl ) - // InternalEntities.g:12972:2: rule__XTypeLiteral__Group__5__Impl - { - pushFollow(FOLLOW_2); - rule__XTypeLiteral__Group__5__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__5" - - - // $ANTLR start "rule__XTypeLiteral__Group__5__Impl" - // InternalEntities.g:12978:1: rule__XTypeLiteral__Group__5__Impl : ( ')' ) ; - public final void rule__XTypeLiteral__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12982:1: ( ( ')' ) ) - // InternalEntities.g:12983:1: ( ')' ) - { - // InternalEntities.g:12983:1: ( ')' ) - // InternalEntities.g:12984:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__Group__5__Impl" - - - // $ANTLR start "rule__XThrowExpression__Group__0" - // InternalEntities.g:12994:1: rule__XThrowExpression__Group__0 : rule__XThrowExpression__Group__0__Impl rule__XThrowExpression__Group__1 ; - public final void rule__XThrowExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:12998:1: ( rule__XThrowExpression__Group__0__Impl rule__XThrowExpression__Group__1 ) - // InternalEntities.g:12999:2: rule__XThrowExpression__Group__0__Impl rule__XThrowExpression__Group__1 - { - pushFollow(FOLLOW_89); - rule__XThrowExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XThrowExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__Group__0" - - - // $ANTLR start "rule__XThrowExpression__Group__0__Impl" - // InternalEntities.g:13006:1: rule__XThrowExpression__Group__0__Impl : ( () ) ; - public final void rule__XThrowExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13010:1: ( ( () ) ) - // InternalEntities.g:13011:1: ( () ) - { - // InternalEntities.g:13011:1: ( () ) - // InternalEntities.g:13012:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); - } - // InternalEntities.g:13013:2: () - // InternalEntities.g:13013:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__Group__0__Impl" - - - // $ANTLR start "rule__XThrowExpression__Group__1" - // InternalEntities.g:13021:1: rule__XThrowExpression__Group__1 : rule__XThrowExpression__Group__1__Impl rule__XThrowExpression__Group__2 ; - public final void rule__XThrowExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13025:1: ( rule__XThrowExpression__Group__1__Impl rule__XThrowExpression__Group__2 ) - // InternalEntities.g:13026:2: rule__XThrowExpression__Group__1__Impl rule__XThrowExpression__Group__2 - { - pushFollow(FOLLOW_56); - rule__XThrowExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XThrowExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__Group__1" - - - // $ANTLR start "rule__XThrowExpression__Group__1__Impl" - // InternalEntities.g:13033:1: rule__XThrowExpression__Group__1__Impl : ( 'throw' ) ; - public final void rule__XThrowExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13037:1: ( ( 'throw' ) ) - // InternalEntities.g:13038:1: ( 'throw' ) - { - // InternalEntities.g:13038:1: ( 'throw' ) - // InternalEntities.g:13039:2: 'throw' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); - } - match(input,77,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__Group__1__Impl" - - - // $ANTLR start "rule__XThrowExpression__Group__2" - // InternalEntities.g:13048:1: rule__XThrowExpression__Group__2 : rule__XThrowExpression__Group__2__Impl ; - public final void rule__XThrowExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13052:1: ( rule__XThrowExpression__Group__2__Impl ) - // InternalEntities.g:13053:2: rule__XThrowExpression__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__XThrowExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__Group__2" - - - // $ANTLR start "rule__XThrowExpression__Group__2__Impl" - // InternalEntities.g:13059:1: rule__XThrowExpression__Group__2__Impl : ( ( rule__XThrowExpression__ExpressionAssignment_2 ) ) ; - public final void rule__XThrowExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13063:1: ( ( ( rule__XThrowExpression__ExpressionAssignment_2 ) ) ) - // InternalEntities.g:13064:1: ( ( rule__XThrowExpression__ExpressionAssignment_2 ) ) - { - // InternalEntities.g:13064:1: ( ( rule__XThrowExpression__ExpressionAssignment_2 ) ) - // InternalEntities.g:13065:2: ( rule__XThrowExpression__ExpressionAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); - } - // InternalEntities.g:13066:2: ( rule__XThrowExpression__ExpressionAssignment_2 ) - // InternalEntities.g:13066:3: rule__XThrowExpression__ExpressionAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XThrowExpression__ExpressionAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXThrowExpressionAccess().getExpressionAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__Group__2__Impl" - - - // $ANTLR start "rule__XReturnExpression__Group__0" - // InternalEntities.g:13075:1: rule__XReturnExpression__Group__0 : rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1 ; - public final void rule__XReturnExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13079:1: ( rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1 ) - // InternalEntities.g:13080:2: rule__XReturnExpression__Group__0__Impl rule__XReturnExpression__Group__1 - { - pushFollow(FOLLOW_90); - rule__XReturnExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XReturnExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__Group__0" - - - // $ANTLR start "rule__XReturnExpression__Group__0__Impl" - // InternalEntities.g:13087:1: rule__XReturnExpression__Group__0__Impl : ( () ) ; - public final void rule__XReturnExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13091:1: ( ( () ) ) - // InternalEntities.g:13092:1: ( () ) - { - // InternalEntities.g:13092:1: ( () ) - // InternalEntities.g:13093:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); - } - // InternalEntities.g:13094:2: () - // InternalEntities.g:13094:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__Group__0__Impl" - - - // $ANTLR start "rule__XReturnExpression__Group__1" - // InternalEntities.g:13102:1: rule__XReturnExpression__Group__1 : rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2 ; - public final void rule__XReturnExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13106:1: ( rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2 ) - // InternalEntities.g:13107:2: rule__XReturnExpression__Group__1__Impl rule__XReturnExpression__Group__2 - { - pushFollow(FOLLOW_56); - rule__XReturnExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XReturnExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__Group__1" - - - // $ANTLR start "rule__XReturnExpression__Group__1__Impl" - // InternalEntities.g:13114:1: rule__XReturnExpression__Group__1__Impl : ( 'return' ) ; - public final void rule__XReturnExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13118:1: ( ( 'return' ) ) - // InternalEntities.g:13119:1: ( 'return' ) - { - // InternalEntities.g:13119:1: ( 'return' ) - // InternalEntities.g:13120:2: 'return' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); - } - match(input,78,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__Group__1__Impl" - - - // $ANTLR start "rule__XReturnExpression__Group__2" - // InternalEntities.g:13129:1: rule__XReturnExpression__Group__2 : rule__XReturnExpression__Group__2__Impl ; - public final void rule__XReturnExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13133:1: ( rule__XReturnExpression__Group__2__Impl ) - // InternalEntities.g:13134:2: rule__XReturnExpression__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__XReturnExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__Group__2" - - - // $ANTLR start "rule__XReturnExpression__Group__2__Impl" - // InternalEntities.g:13140:1: rule__XReturnExpression__Group__2__Impl : ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) ; - public final void rule__XReturnExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13144:1: ( ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) ) - // InternalEntities.g:13145:1: ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) - { - // InternalEntities.g:13145:1: ( ( rule__XReturnExpression__ExpressionAssignment_2 )? ) - // InternalEntities.g:13146:2: ( rule__XReturnExpression__ExpressionAssignment_2 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); - } - // InternalEntities.g:13147:2: ( rule__XReturnExpression__ExpressionAssignment_2 )? - int alt109=2; - alt109 = dfa109.predict(input); - switch (alt109) { - case 1 : - // InternalEntities.g:13147:3: rule__XReturnExpression__ExpressionAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XReturnExpression__ExpressionAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXReturnExpressionAccess().getExpressionAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__Group__2__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__0" - // InternalEntities.g:13156:1: rule__XTryCatchFinallyExpression__Group__0 : rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 ; - public final void rule__XTryCatchFinallyExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13160:1: ( rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 ) - // InternalEntities.g:13161:2: rule__XTryCatchFinallyExpression__Group__0__Impl rule__XTryCatchFinallyExpression__Group__1 - { - pushFollow(FOLLOW_91); - rule__XTryCatchFinallyExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__0" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__0__Impl" - // InternalEntities.g:13168:1: rule__XTryCatchFinallyExpression__Group__0__Impl : ( () ) ; - public final void rule__XTryCatchFinallyExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13172:1: ( ( () ) ) - // InternalEntities.g:13173:1: ( () ) - { - // InternalEntities.g:13173:1: ( () ) - // InternalEntities.g:13174:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); - } - // InternalEntities.g:13175:2: () - // InternalEntities.g:13175:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__0__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__1" - // InternalEntities.g:13183:1: rule__XTryCatchFinallyExpression__Group__1 : rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 ; - public final void rule__XTryCatchFinallyExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13187:1: ( rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 ) - // InternalEntities.g:13188:2: rule__XTryCatchFinallyExpression__Group__1__Impl rule__XTryCatchFinallyExpression__Group__2 - { - pushFollow(FOLLOW_56); - rule__XTryCatchFinallyExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__1" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__1__Impl" - // InternalEntities.g:13195:1: rule__XTryCatchFinallyExpression__Group__1__Impl : ( 'try' ) ; - public final void rule__XTryCatchFinallyExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13199:1: ( ( 'try' ) ) - // InternalEntities.g:13200:1: ( 'try' ) - { - // InternalEntities.g:13200:1: ( 'try' ) - // InternalEntities.g:13201:2: 'try' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); - } - match(input,79,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__1__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__2" - // InternalEntities.g:13210:1: rule__XTryCatchFinallyExpression__Group__2 : rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 ; - public final void rule__XTryCatchFinallyExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13214:1: ( rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 ) - // InternalEntities.g:13215:2: rule__XTryCatchFinallyExpression__Group__2__Impl rule__XTryCatchFinallyExpression__Group__3 - { - pushFollow(FOLLOW_92); - rule__XTryCatchFinallyExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__2" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__2__Impl" - // InternalEntities.g:13222:1: rule__XTryCatchFinallyExpression__Group__2__Impl : ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) ; - public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13226:1: ( ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) ) - // InternalEntities.g:13227:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) - { - // InternalEntities.g:13227:1: ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) ) - // InternalEntities.g:13228:2: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); - } - // InternalEntities.g:13229:2: ( rule__XTryCatchFinallyExpression__ExpressionAssignment_2 ) - // InternalEntities.g:13229:3: rule__XTryCatchFinallyExpression__ExpressionAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__ExpressionAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__2__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__3" - // InternalEntities.g:13237:1: rule__XTryCatchFinallyExpression__Group__3 : rule__XTryCatchFinallyExpression__Group__3__Impl ; - public final void rule__XTryCatchFinallyExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13241:1: ( rule__XTryCatchFinallyExpression__Group__3__Impl ) - // InternalEntities.g:13242:2: rule__XTryCatchFinallyExpression__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__3" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group__3__Impl" - // InternalEntities.g:13248:1: rule__XTryCatchFinallyExpression__Group__3__Impl : ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) ; - public final void rule__XTryCatchFinallyExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13252:1: ( ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) ) - // InternalEntities.g:13253:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) - { - // InternalEntities.g:13253:1: ( ( rule__XTryCatchFinallyExpression__Alternatives_3 ) ) - // InternalEntities.g:13254:2: ( rule__XTryCatchFinallyExpression__Alternatives_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); - } - // InternalEntities.g:13255:2: ( rule__XTryCatchFinallyExpression__Alternatives_3 ) - // InternalEntities.g:13255:3: rule__XTryCatchFinallyExpression__Alternatives_3 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Alternatives_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getAlternatives_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group__3__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0__0" - // InternalEntities.g:13264:1: rule__XTryCatchFinallyExpression__Group_3_0__0 : rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 ; - public final void rule__XTryCatchFinallyExpression__Group_3_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13268:1: ( rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 ) - // InternalEntities.g:13269:2: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl rule__XTryCatchFinallyExpression__Group_3_0__1 - { - pushFollow(FOLLOW_93); - rule__XTryCatchFinallyExpression__Group_3_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0__0" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0__0__Impl" - // InternalEntities.g:13276:1: rule__XTryCatchFinallyExpression__Group_3_0__0__Impl : ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) ; - public final void rule__XTryCatchFinallyExpression__Group_3_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13280:1: ( ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) ) - // InternalEntities.g:13281:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) - { - // InternalEntities.g:13281:1: ( ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) ) - // InternalEntities.g:13282:2: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) - { - // InternalEntities.g:13282:2: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) ) - // InternalEntities.g:13283:3: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); - } - // InternalEntities.g:13284:3: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) - // InternalEntities.g:13284:4: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 - { - pushFollow(FOLLOW_94); - rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); - } - - } - - // InternalEntities.g:13287:2: ( ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* ) - // InternalEntities.g:13288:3: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); - } - // InternalEntities.g:13289:3: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 )* - loop110: - do { - int alt110=2; - int LA110_0 = input.LA(1); - - if ( (LA110_0==82) ) { - int LA110_2 = input.LA(2); - - if ( (synpred153_InternalEntities()) ) { - alt110=1; - } - - - } - - - switch (alt110) { - case 1 : - // InternalEntities.g:13289:4: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 - { - pushFollow(FOLLOW_94); - rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop110; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesAssignment_3_0_0()); - } - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0__0__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0__1" - // InternalEntities.g:13298:1: rule__XTryCatchFinallyExpression__Group_3_0__1 : rule__XTryCatchFinallyExpression__Group_3_0__1__Impl ; - public final void rule__XTryCatchFinallyExpression__Group_3_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13302:1: ( rule__XTryCatchFinallyExpression__Group_3_0__1__Impl ) - // InternalEntities.g:13303:2: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0__1" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0__1__Impl" - // InternalEntities.g:13309:1: rule__XTryCatchFinallyExpression__Group_3_0__1__Impl : ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) ; - public final void rule__XTryCatchFinallyExpression__Group_3_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13313:1: ( ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) ) - // InternalEntities.g:13314:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) - { - // InternalEntities.g:13314:1: ( ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? ) - // InternalEntities.g:13315:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); - } - // InternalEntities.g:13316:2: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 )? - int alt111=2; - int LA111_0 = input.LA(1); - - if ( (LA111_0==80) ) { - int LA111_1 = input.LA(2); - - if ( (synpred154_InternalEntities()) ) { - alt111=1; - } - } - switch (alt111) { - case 1 : - // InternalEntities.g:13316:3: rule__XTryCatchFinallyExpression__Group_3_0_1__0 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getGroup_3_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0__1__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0_1__0" - // InternalEntities.g:13325:1: rule__XTryCatchFinallyExpression__Group_3_0_1__0 : rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 ; - public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13329:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 ) - // InternalEntities.g:13330:2: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_0_1__1 - { - pushFollow(FOLLOW_56); - rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0_1__0" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl" - // InternalEntities.g:13337:1: rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl : ( ( 'finally' ) ) ; - public final void rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13341:1: ( ( ( 'finally' ) ) ) - // InternalEntities.g:13342:1: ( ( 'finally' ) ) - { - // InternalEntities.g:13342:1: ( ( 'finally' ) ) - // InternalEntities.g:13343:2: ( 'finally' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); - } - // InternalEntities.g:13344:2: ( 'finally' ) - // InternalEntities.g:13344:3: 'finally' - { - match(input,80,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0_1__0__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0_1__1" - // InternalEntities.g:13352:1: rule__XTryCatchFinallyExpression__Group_3_0_1__1 : rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl ; - public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13356:1: ( rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl ) - // InternalEntities.g:13357:2: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0_1__1" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl" - // InternalEntities.g:13363:1: rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl : ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) ; - public final void rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13367:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) ) - // InternalEntities.g:13368:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) - { - // InternalEntities.g:13368:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) ) - // InternalEntities.g:13369:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); - } - // InternalEntities.g:13370:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 ) - // InternalEntities.g:13370:3: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_0_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_0_1__1__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_1__0" - // InternalEntities.g:13379:1: rule__XTryCatchFinallyExpression__Group_3_1__0 : rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 ; - public final void rule__XTryCatchFinallyExpression__Group_3_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13383:1: ( rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 ) - // InternalEntities.g:13384:2: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl rule__XTryCatchFinallyExpression__Group_3_1__1 - { - pushFollow(FOLLOW_56); - rule__XTryCatchFinallyExpression__Group_3_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_1__0" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_1__0__Impl" - // InternalEntities.g:13391:1: rule__XTryCatchFinallyExpression__Group_3_1__0__Impl : ( 'finally' ) ; - public final void rule__XTryCatchFinallyExpression__Group_3_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13395:1: ( ( 'finally' ) ) - // InternalEntities.g:13396:1: ( 'finally' ) - { - // InternalEntities.g:13396:1: ( 'finally' ) - // InternalEntities.g:13397:2: 'finally' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); - } - match(input,80,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_1__0__Impl" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_1__1" - // InternalEntities.g:13406:1: rule__XTryCatchFinallyExpression__Group_3_1__1 : rule__XTryCatchFinallyExpression__Group_3_1__1__Impl ; - public final void rule__XTryCatchFinallyExpression__Group_3_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13410:1: ( rule__XTryCatchFinallyExpression__Group_3_1__1__Impl ) - // InternalEntities.g:13411:2: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_1__1" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__Group_3_1__1__Impl" - // InternalEntities.g:13417:1: rule__XTryCatchFinallyExpression__Group_3_1__1__Impl : ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) ; - public final void rule__XTryCatchFinallyExpression__Group_3_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13421:1: ( ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) ) - // InternalEntities.g:13422:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) - { - // InternalEntities.g:13422:1: ( ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) ) - // InternalEntities.g:13423:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); - } - // InternalEntities.g:13424:2: ( rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 ) - // InternalEntities.g:13424:3: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionAssignment_3_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__Group_3_1__1__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__0" - // InternalEntities.g:13433:1: rule__XSynchronizedExpression__Group__0 : rule__XSynchronizedExpression__Group__0__Impl rule__XSynchronizedExpression__Group__1 ; - public final void rule__XSynchronizedExpression__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13437:1: ( rule__XSynchronizedExpression__Group__0__Impl rule__XSynchronizedExpression__Group__1 ) - // InternalEntities.g:13438:2: rule__XSynchronizedExpression__Group__0__Impl rule__XSynchronizedExpression__Group__1 - { - pushFollow(FOLLOW_56); - rule__XSynchronizedExpression__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__0" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__0__Impl" - // InternalEntities.g:13445:1: rule__XSynchronizedExpression__Group__0__Impl : ( ( rule__XSynchronizedExpression__Group_0__0 ) ) ; - public final void rule__XSynchronizedExpression__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13449:1: ( ( ( rule__XSynchronizedExpression__Group_0__0 ) ) ) - // InternalEntities.g:13450:1: ( ( rule__XSynchronizedExpression__Group_0__0 ) ) - { - // InternalEntities.g:13450:1: ( ( rule__XSynchronizedExpression__Group_0__0 ) ) - // InternalEntities.g:13451:2: ( rule__XSynchronizedExpression__Group_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0()); - } - // InternalEntities.g:13452:2: ( rule__XSynchronizedExpression__Group_0__0 ) - // InternalEntities.g:13452:3: rule__XSynchronizedExpression__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__0__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__1" - // InternalEntities.g:13460:1: rule__XSynchronizedExpression__Group__1 : rule__XSynchronizedExpression__Group__1__Impl rule__XSynchronizedExpression__Group__2 ; - public final void rule__XSynchronizedExpression__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13464:1: ( rule__XSynchronizedExpression__Group__1__Impl rule__XSynchronizedExpression__Group__2 ) - // InternalEntities.g:13465:2: rule__XSynchronizedExpression__Group__1__Impl rule__XSynchronizedExpression__Group__2 - { - pushFollow(FOLLOW_66); - rule__XSynchronizedExpression__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__1" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__1__Impl" - // InternalEntities.g:13472:1: rule__XSynchronizedExpression__Group__1__Impl : ( ( rule__XSynchronizedExpression__ParamAssignment_1 ) ) ; - public final void rule__XSynchronizedExpression__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13476:1: ( ( ( rule__XSynchronizedExpression__ParamAssignment_1 ) ) ) - // InternalEntities.g:13477:1: ( ( rule__XSynchronizedExpression__ParamAssignment_1 ) ) - { - // InternalEntities.g:13477:1: ( ( rule__XSynchronizedExpression__ParamAssignment_1 ) ) - // InternalEntities.g:13478:2: ( rule__XSynchronizedExpression__ParamAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getParamAssignment_1()); - } - // InternalEntities.g:13479:2: ( rule__XSynchronizedExpression__ParamAssignment_1 ) - // InternalEntities.g:13479:3: rule__XSynchronizedExpression__ParamAssignment_1 - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__ParamAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getParamAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__1__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__2" - // InternalEntities.g:13487:1: rule__XSynchronizedExpression__Group__2 : rule__XSynchronizedExpression__Group__2__Impl rule__XSynchronizedExpression__Group__3 ; - public final void rule__XSynchronizedExpression__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13491:1: ( rule__XSynchronizedExpression__Group__2__Impl rule__XSynchronizedExpression__Group__3 ) - // InternalEntities.g:13492:2: rule__XSynchronizedExpression__Group__2__Impl rule__XSynchronizedExpression__Group__3 - { - pushFollow(FOLLOW_56); - rule__XSynchronizedExpression__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__2" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__2__Impl" - // InternalEntities.g:13499:1: rule__XSynchronizedExpression__Group__2__Impl : ( ')' ) ; - public final void rule__XSynchronizedExpression__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13503:1: ( ( ')' ) ) - // InternalEntities.g:13504:1: ( ')' ) - { - // InternalEntities.g:13504:1: ( ')' ) - // InternalEntities.g:13505:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__2__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__3" - // InternalEntities.g:13514:1: rule__XSynchronizedExpression__Group__3 : rule__XSynchronizedExpression__Group__3__Impl ; - public final void rule__XSynchronizedExpression__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13518:1: ( rule__XSynchronizedExpression__Group__3__Impl ) - // InternalEntities.g:13519:2: rule__XSynchronizedExpression__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__3" - - - // $ANTLR start "rule__XSynchronizedExpression__Group__3__Impl" - // InternalEntities.g:13525:1: rule__XSynchronizedExpression__Group__3__Impl : ( ( rule__XSynchronizedExpression__ExpressionAssignment_3 ) ) ; - public final void rule__XSynchronizedExpression__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13529:1: ( ( ( rule__XSynchronizedExpression__ExpressionAssignment_3 ) ) ) - // InternalEntities.g:13530:1: ( ( rule__XSynchronizedExpression__ExpressionAssignment_3 ) ) - { - // InternalEntities.g:13530:1: ( ( rule__XSynchronizedExpression__ExpressionAssignment_3 ) ) - // InternalEntities.g:13531:2: ( rule__XSynchronizedExpression__ExpressionAssignment_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getExpressionAssignment_3()); - } - // InternalEntities.g:13532:2: ( rule__XSynchronizedExpression__ExpressionAssignment_3 ) - // InternalEntities.g:13532:3: rule__XSynchronizedExpression__ExpressionAssignment_3 - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__ExpressionAssignment_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getExpressionAssignment_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group__3__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0__0" - // InternalEntities.g:13541:1: rule__XSynchronizedExpression__Group_0__0 : rule__XSynchronizedExpression__Group_0__0__Impl ; - public final void rule__XSynchronizedExpression__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13545:1: ( rule__XSynchronizedExpression__Group_0__0__Impl ) - // InternalEntities.g:13546:2: rule__XSynchronizedExpression__Group_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0__0" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0__0__Impl" - // InternalEntities.g:13552:1: rule__XSynchronizedExpression__Group_0__0__Impl : ( ( rule__XSynchronizedExpression__Group_0_0__0 ) ) ; - public final void rule__XSynchronizedExpression__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13556:1: ( ( ( rule__XSynchronizedExpression__Group_0_0__0 ) ) ) - // InternalEntities.g:13557:1: ( ( rule__XSynchronizedExpression__Group_0_0__0 ) ) - { - // InternalEntities.g:13557:1: ( ( rule__XSynchronizedExpression__Group_0_0__0 ) ) - // InternalEntities.g:13558:2: ( rule__XSynchronizedExpression__Group_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0_0()); - } - // InternalEntities.g:13559:2: ( rule__XSynchronizedExpression__Group_0_0__0 ) - // InternalEntities.g:13559:3: rule__XSynchronizedExpression__Group_0_0__0 - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getGroup_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0__0__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0_0__0" - // InternalEntities.g:13568:1: rule__XSynchronizedExpression__Group_0_0__0 : rule__XSynchronizedExpression__Group_0_0__0__Impl rule__XSynchronizedExpression__Group_0_0__1 ; - public final void rule__XSynchronizedExpression__Group_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13572:1: ( rule__XSynchronizedExpression__Group_0_0__0__Impl rule__XSynchronizedExpression__Group_0_0__1 ) - // InternalEntities.g:13573:2: rule__XSynchronizedExpression__Group_0_0__0__Impl rule__XSynchronizedExpression__Group_0_0__1 - { - pushFollow(FOLLOW_95); - rule__XSynchronizedExpression__Group_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0_0__0" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0_0__0__Impl" - // InternalEntities.g:13580:1: rule__XSynchronizedExpression__Group_0_0__0__Impl : ( () ) ; - public final void rule__XSynchronizedExpression__Group_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13584:1: ( ( () ) ) - // InternalEntities.g:13585:1: ( () ) - { - // InternalEntities.g:13585:1: ( () ) - // InternalEntities.g:13586:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0()); - } - // InternalEntities.g:13587:2: () - // InternalEntities.g:13587:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0_0__0__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0_0__1" - // InternalEntities.g:13595:1: rule__XSynchronizedExpression__Group_0_0__1 : rule__XSynchronizedExpression__Group_0_0__1__Impl rule__XSynchronizedExpression__Group_0_0__2 ; - public final void rule__XSynchronizedExpression__Group_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13599:1: ( rule__XSynchronizedExpression__Group_0_0__1__Impl rule__XSynchronizedExpression__Group_0_0__2 ) - // InternalEntities.g:13600:2: rule__XSynchronizedExpression__Group_0_0__1__Impl rule__XSynchronizedExpression__Group_0_0__2 - { - pushFollow(FOLLOW_15); - rule__XSynchronizedExpression__Group_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group_0_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0_0__1" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0_0__1__Impl" - // InternalEntities.g:13607:1: rule__XSynchronizedExpression__Group_0_0__1__Impl : ( 'synchronized' ) ; - public final void rule__XSynchronizedExpression__Group_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13611:1: ( ( 'synchronized' ) ) - // InternalEntities.g:13612:1: ( 'synchronized' ) - { - // InternalEntities.g:13612:1: ( 'synchronized' ) - // InternalEntities.g:13613:2: 'synchronized' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); - } - match(input,81,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0_0__1__Impl" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0_0__2" - // InternalEntities.g:13622:1: rule__XSynchronizedExpression__Group_0_0__2 : rule__XSynchronizedExpression__Group_0_0__2__Impl ; - public final void rule__XSynchronizedExpression__Group_0_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13626:1: ( rule__XSynchronizedExpression__Group_0_0__2__Impl ) - // InternalEntities.g:13627:2: rule__XSynchronizedExpression__Group_0_0__2__Impl - { - pushFollow(FOLLOW_2); - rule__XSynchronizedExpression__Group_0_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0_0__2" - - - // $ANTLR start "rule__XSynchronizedExpression__Group_0_0__2__Impl" - // InternalEntities.g:13633:1: rule__XSynchronizedExpression__Group_0_0__2__Impl : ( '(' ) ; - public final void rule__XSynchronizedExpression__Group_0_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13637:1: ( ( '(' ) ) - // InternalEntities.g:13638:1: ( '(' ) - { - // InternalEntities.g:13638:1: ( '(' ) - // InternalEntities.g:13639:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__Group_0_0__2__Impl" - - - // $ANTLR start "rule__XCatchClause__Group__0" - // InternalEntities.g:13649:1: rule__XCatchClause__Group__0 : rule__XCatchClause__Group__0__Impl rule__XCatchClause__Group__1 ; - public final void rule__XCatchClause__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13653:1: ( rule__XCatchClause__Group__0__Impl rule__XCatchClause__Group__1 ) - // InternalEntities.g:13654:2: rule__XCatchClause__Group__0__Impl rule__XCatchClause__Group__1 - { - pushFollow(FOLLOW_15); - rule__XCatchClause__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCatchClause__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__0" - - - // $ANTLR start "rule__XCatchClause__Group__0__Impl" - // InternalEntities.g:13661:1: rule__XCatchClause__Group__0__Impl : ( ( 'catch' ) ) ; - public final void rule__XCatchClause__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13665:1: ( ( ( 'catch' ) ) ) - // InternalEntities.g:13666:1: ( ( 'catch' ) ) - { - // InternalEntities.g:13666:1: ( ( 'catch' ) ) - // InternalEntities.g:13667:2: ( 'catch' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); - } - // InternalEntities.g:13668:2: ( 'catch' ) - // InternalEntities.g:13668:3: 'catch' - { - match(input,82,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__0__Impl" - - - // $ANTLR start "rule__XCatchClause__Group__1" - // InternalEntities.g:13676:1: rule__XCatchClause__Group__1 : rule__XCatchClause__Group__1__Impl rule__XCatchClause__Group__2 ; - public final void rule__XCatchClause__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13680:1: ( rule__XCatchClause__Group__1__Impl rule__XCatchClause__Group__2 ) - // InternalEntities.g:13681:2: rule__XCatchClause__Group__1__Impl rule__XCatchClause__Group__2 - { - pushFollow(FOLLOW_14); - rule__XCatchClause__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCatchClause__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__1" - - - // $ANTLR start "rule__XCatchClause__Group__1__Impl" - // InternalEntities.g:13688:1: rule__XCatchClause__Group__1__Impl : ( '(' ) ; - public final void rule__XCatchClause__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13692:1: ( ( '(' ) ) - // InternalEntities.g:13693:1: ( '(' ) - { - // InternalEntities.g:13693:1: ( '(' ) - // InternalEntities.g:13694:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__1__Impl" - - - // $ANTLR start "rule__XCatchClause__Group__2" - // InternalEntities.g:13703:1: rule__XCatchClause__Group__2 : rule__XCatchClause__Group__2__Impl rule__XCatchClause__Group__3 ; - public final void rule__XCatchClause__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13707:1: ( rule__XCatchClause__Group__2__Impl rule__XCatchClause__Group__3 ) - // InternalEntities.g:13708:2: rule__XCatchClause__Group__2__Impl rule__XCatchClause__Group__3 - { - pushFollow(FOLLOW_66); - rule__XCatchClause__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCatchClause__Group__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__2" - - - // $ANTLR start "rule__XCatchClause__Group__2__Impl" - // InternalEntities.g:13715:1: rule__XCatchClause__Group__2__Impl : ( ( rule__XCatchClause__DeclaredParamAssignment_2 ) ) ; - public final void rule__XCatchClause__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13719:1: ( ( ( rule__XCatchClause__DeclaredParamAssignment_2 ) ) ) - // InternalEntities.g:13720:1: ( ( rule__XCatchClause__DeclaredParamAssignment_2 ) ) - { - // InternalEntities.g:13720:1: ( ( rule__XCatchClause__DeclaredParamAssignment_2 ) ) - // InternalEntities.g:13721:2: ( rule__XCatchClause__DeclaredParamAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getDeclaredParamAssignment_2()); - } - // InternalEntities.g:13722:2: ( rule__XCatchClause__DeclaredParamAssignment_2 ) - // InternalEntities.g:13722:3: rule__XCatchClause__DeclaredParamAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XCatchClause__DeclaredParamAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getDeclaredParamAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__2__Impl" - - - // $ANTLR start "rule__XCatchClause__Group__3" - // InternalEntities.g:13730:1: rule__XCatchClause__Group__3 : rule__XCatchClause__Group__3__Impl rule__XCatchClause__Group__4 ; - public final void rule__XCatchClause__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13734:1: ( rule__XCatchClause__Group__3__Impl rule__XCatchClause__Group__4 ) - // InternalEntities.g:13735:2: rule__XCatchClause__Group__3__Impl rule__XCatchClause__Group__4 - { - pushFollow(FOLLOW_56); - rule__XCatchClause__Group__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XCatchClause__Group__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__3" - - - // $ANTLR start "rule__XCatchClause__Group__3__Impl" - // InternalEntities.g:13742:1: rule__XCatchClause__Group__3__Impl : ( ')' ) ; - public final void rule__XCatchClause__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13746:1: ( ( ')' ) ) - // InternalEntities.g:13747:1: ( ')' ) - { - // InternalEntities.g:13747:1: ( ')' ) - // InternalEntities.g:13748:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__3__Impl" - - - // $ANTLR start "rule__XCatchClause__Group__4" - // InternalEntities.g:13757:1: rule__XCatchClause__Group__4 : rule__XCatchClause__Group__4__Impl ; - public final void rule__XCatchClause__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13761:1: ( rule__XCatchClause__Group__4__Impl ) - // InternalEntities.g:13762:2: rule__XCatchClause__Group__4__Impl - { - pushFollow(FOLLOW_2); - rule__XCatchClause__Group__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__4" - - - // $ANTLR start "rule__XCatchClause__Group__4__Impl" - // InternalEntities.g:13768:1: rule__XCatchClause__Group__4__Impl : ( ( rule__XCatchClause__ExpressionAssignment_4 ) ) ; - public final void rule__XCatchClause__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13772:1: ( ( ( rule__XCatchClause__ExpressionAssignment_4 ) ) ) - // InternalEntities.g:13773:1: ( ( rule__XCatchClause__ExpressionAssignment_4 ) ) - { - // InternalEntities.g:13773:1: ( ( rule__XCatchClause__ExpressionAssignment_4 ) ) - // InternalEntities.g:13774:2: ( rule__XCatchClause__ExpressionAssignment_4 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getExpressionAssignment_4()); - } - // InternalEntities.g:13775:2: ( rule__XCatchClause__ExpressionAssignment_4 ) - // InternalEntities.g:13775:3: rule__XCatchClause__ExpressionAssignment_4 - { - pushFollow(FOLLOW_2); - rule__XCatchClause__ExpressionAssignment_4(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getExpressionAssignment_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__Group__4__Impl" - - - // $ANTLR start "rule__QualifiedName__Group__0" - // InternalEntities.g:13784:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ; - public final void rule__QualifiedName__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13788:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ) - // InternalEntities.g:13789:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 - { - pushFollow(FOLLOW_96); - rule__QualifiedName__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__QualifiedName__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__0" - - - // $ANTLR start "rule__QualifiedName__Group__0__Impl" - // InternalEntities.g:13796:1: rule__QualifiedName__Group__0__Impl : ( ruleValidID ) ; - public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13800:1: ( ( ruleValidID ) ) - // InternalEntities.g:13801:1: ( ruleValidID ) - { - // InternalEntities.g:13801:1: ( ruleValidID ) - // InternalEntities.g:13802:2: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__0__Impl" - - - // $ANTLR start "rule__QualifiedName__Group__1" - // InternalEntities.g:13811:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl ; - public final void rule__QualifiedName__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13815:1: ( rule__QualifiedName__Group__1__Impl ) - // InternalEntities.g:13816:2: rule__QualifiedName__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__1" - - - // $ANTLR start "rule__QualifiedName__Group__1__Impl" - // InternalEntities.g:13822:1: rule__QualifiedName__Group__1__Impl : ( ( rule__QualifiedName__Group_1__0 )* ) ; - public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13826:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) ) - // InternalEntities.g:13827:1: ( ( rule__QualifiedName__Group_1__0 )* ) - { - // InternalEntities.g:13827:1: ( ( rule__QualifiedName__Group_1__0 )* ) - // InternalEntities.g:13828:2: ( rule__QualifiedName__Group_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameAccess().getGroup_1()); - } - // InternalEntities.g:13829:2: ( rule__QualifiedName__Group_1__0 )* - loop112: - do { - int alt112=2; - int LA112_0 = input.LA(1); - - if ( (LA112_0==43) ) { - int LA112_2 = input.LA(2); - - if ( (LA112_2==RULE_ID) ) { - int LA112_3 = input.LA(3); - - if ( (synpred155_InternalEntities()) ) { - alt112=1; - } - - - } - - - } - - - switch (alt112) { - case 1 : - // InternalEntities.g:13829:3: rule__QualifiedName__Group_1__0 - { - pushFollow(FOLLOW_97); - rule__QualifiedName__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop112; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__1__Impl" - - - // $ANTLR start "rule__QualifiedName__Group_1__0" - // InternalEntities.g:13838:1: rule__QualifiedName__Group_1__0 : rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 ; - public final void rule__QualifiedName__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13842:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 ) - // InternalEntities.g:13843:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 - { - pushFollow(FOLLOW_7); - rule__QualifiedName__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__QualifiedName__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__0" - - - // $ANTLR start "rule__QualifiedName__Group_1__0__Impl" - // InternalEntities.g:13850:1: rule__QualifiedName__Group_1__0__Impl : ( ( '.' ) ) ; - public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13854:1: ( ( ( '.' ) ) ) - // InternalEntities.g:13855:1: ( ( '.' ) ) - { - // InternalEntities.g:13855:1: ( ( '.' ) ) - // InternalEntities.g:13856:2: ( '.' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - } - // InternalEntities.g:13857:2: ( '.' ) - // InternalEntities.g:13857:3: '.' - { - match(input,43,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__0__Impl" - - - // $ANTLR start "rule__QualifiedName__Group_1__1" - // InternalEntities.g:13865:1: rule__QualifiedName__Group_1__1 : rule__QualifiedName__Group_1__1__Impl ; - public final void rule__QualifiedName__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13869:1: ( rule__QualifiedName__Group_1__1__Impl ) - // InternalEntities.g:13870:2: rule__QualifiedName__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__1" - - - // $ANTLR start "rule__QualifiedName__Group_1__1__Impl" - // InternalEntities.g:13876:1: rule__QualifiedName__Group_1__1__Impl : ( ruleValidID ) ; - public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13880:1: ( ( ruleValidID ) ) - // InternalEntities.g:13881:1: ( ruleValidID ) - { - // InternalEntities.g:13881:1: ( ruleValidID ) - // InternalEntities.g:13882:2: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__1__Impl" - - - // $ANTLR start "rule__Number__Group_1__0" - // InternalEntities.g:13892:1: rule__Number__Group_1__0 : rule__Number__Group_1__0__Impl rule__Number__Group_1__1 ; - public final void rule__Number__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13896:1: ( rule__Number__Group_1__0__Impl rule__Number__Group_1__1 ) - // InternalEntities.g:13897:2: rule__Number__Group_1__0__Impl rule__Number__Group_1__1 - { - pushFollow(FOLLOW_96); - rule__Number__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Number__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1__0" - - - // $ANTLR start "rule__Number__Group_1__0__Impl" - // InternalEntities.g:13904:1: rule__Number__Group_1__0__Impl : ( ( rule__Number__Alternatives_1_0 ) ) ; - public final void rule__Number__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13908:1: ( ( ( rule__Number__Alternatives_1_0 ) ) ) - // InternalEntities.g:13909:1: ( ( rule__Number__Alternatives_1_0 ) ) - { - // InternalEntities.g:13909:1: ( ( rule__Number__Alternatives_1_0 ) ) - // InternalEntities.g:13910:2: ( rule__Number__Alternatives_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getAlternatives_1_0()); - } - // InternalEntities.g:13911:2: ( rule__Number__Alternatives_1_0 ) - // InternalEntities.g:13911:3: rule__Number__Alternatives_1_0 - { - pushFollow(FOLLOW_2); - rule__Number__Alternatives_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getAlternatives_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1__0__Impl" - - - // $ANTLR start "rule__Number__Group_1__1" - // InternalEntities.g:13919:1: rule__Number__Group_1__1 : rule__Number__Group_1__1__Impl ; - public final void rule__Number__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13923:1: ( rule__Number__Group_1__1__Impl ) - // InternalEntities.g:13924:2: rule__Number__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__Number__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1__1" - - - // $ANTLR start "rule__Number__Group_1__1__Impl" - // InternalEntities.g:13930:1: rule__Number__Group_1__1__Impl : ( ( rule__Number__Group_1_1__0 )? ) ; - public final void rule__Number__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13934:1: ( ( ( rule__Number__Group_1_1__0 )? ) ) - // InternalEntities.g:13935:1: ( ( rule__Number__Group_1_1__0 )? ) - { - // InternalEntities.g:13935:1: ( ( rule__Number__Group_1_1__0 )? ) - // InternalEntities.g:13936:2: ( rule__Number__Group_1_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getGroup_1_1()); - } - // InternalEntities.g:13937:2: ( rule__Number__Group_1_1__0 )? - int alt113=2; - int LA113_0 = input.LA(1); - - if ( (LA113_0==43) ) { - int LA113_1 = input.LA(2); - - if ( ((LA113_1>=RULE_INT && LA113_1<=RULE_DECIMAL)) ) { - alt113=1; - } - } - switch (alt113) { - case 1 : - // InternalEntities.g:13937:3: rule__Number__Group_1_1__0 - { - pushFollow(FOLLOW_2); - rule__Number__Group_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getGroup_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1__1__Impl" - - - // $ANTLR start "rule__Number__Group_1_1__0" - // InternalEntities.g:13946:1: rule__Number__Group_1_1__0 : rule__Number__Group_1_1__0__Impl rule__Number__Group_1_1__1 ; - public final void rule__Number__Group_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13950:1: ( rule__Number__Group_1_1__0__Impl rule__Number__Group_1_1__1 ) - // InternalEntities.g:13951:2: rule__Number__Group_1_1__0__Impl rule__Number__Group_1_1__1 - { - pushFollow(FOLLOW_98); - rule__Number__Group_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__Number__Group_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1_1__0" - - - // $ANTLR start "rule__Number__Group_1_1__0__Impl" - // InternalEntities.g:13958:1: rule__Number__Group_1_1__0__Impl : ( '.' ) ; - public final void rule__Number__Group_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13962:1: ( ( '.' ) ) - // InternalEntities.g:13963:1: ( '.' ) - { - // InternalEntities.g:13963:1: ( '.' ) - // InternalEntities.g:13964:2: '.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); - } - match(input,43,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1_1__0__Impl" - - - // $ANTLR start "rule__Number__Group_1_1__1" - // InternalEntities.g:13973:1: rule__Number__Group_1_1__1 : rule__Number__Group_1_1__1__Impl ; - public final void rule__Number__Group_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13977:1: ( rule__Number__Group_1_1__1__Impl ) - // InternalEntities.g:13978:2: rule__Number__Group_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__Number__Group_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1_1__1" - - - // $ANTLR start "rule__Number__Group_1_1__1__Impl" - // InternalEntities.g:13984:1: rule__Number__Group_1_1__1__Impl : ( ( rule__Number__Alternatives_1_1_1 ) ) ; - public final void rule__Number__Group_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:13988:1: ( ( ( rule__Number__Alternatives_1_1_1 ) ) ) - // InternalEntities.g:13989:1: ( ( rule__Number__Alternatives_1_1_1 ) ) - { - // InternalEntities.g:13989:1: ( ( rule__Number__Alternatives_1_1_1 ) ) - // InternalEntities.g:13990:2: ( rule__Number__Alternatives_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getNumberAccess().getAlternatives_1_1_1()); - } - // InternalEntities.g:13991:2: ( rule__Number__Alternatives_1_1_1 ) - // InternalEntities.g:13991:3: rule__Number__Alternatives_1_1_1 - { - pushFollow(FOLLOW_2); - rule__Number__Alternatives_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getNumberAccess().getAlternatives_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Number__Group_1_1__1__Impl" - - - // $ANTLR start "rule__JvmTypeReference__Group_0__0" - // InternalEntities.g:14000:1: rule__JvmTypeReference__Group_0__0 : rule__JvmTypeReference__Group_0__0__Impl rule__JvmTypeReference__Group_0__1 ; - public final void rule__JvmTypeReference__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14004:1: ( rule__JvmTypeReference__Group_0__0__Impl rule__JvmTypeReference__Group_0__1 ) - // InternalEntities.g:14005:2: rule__JvmTypeReference__Group_0__0__Impl rule__JvmTypeReference__Group_0__1 - { - pushFollow(FOLLOW_59); - rule__JvmTypeReference__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0__0" - - - // $ANTLR start "rule__JvmTypeReference__Group_0__0__Impl" - // InternalEntities.g:14012:1: rule__JvmTypeReference__Group_0__0__Impl : ( ruleJvmParameterizedTypeReference ) ; - public final void rule__JvmTypeReference__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14016:1: ( ( ruleJvmParameterizedTypeReference ) ) - // InternalEntities.g:14017:1: ( ruleJvmParameterizedTypeReference ) - { - // InternalEntities.g:14017:1: ( ruleJvmParameterizedTypeReference ) - // InternalEntities.g:14018:2: ruleJvmParameterizedTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmParameterizedTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0__0__Impl" - - - // $ANTLR start "rule__JvmTypeReference__Group_0__1" - // InternalEntities.g:14027:1: rule__JvmTypeReference__Group_0__1 : rule__JvmTypeReference__Group_0__1__Impl ; - public final void rule__JvmTypeReference__Group_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14031:1: ( rule__JvmTypeReference__Group_0__1__Impl ) - // InternalEntities.g:14032:2: rule__JvmTypeReference__Group_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0__1" - - - // $ANTLR start "rule__JvmTypeReference__Group_0__1__Impl" - // InternalEntities.g:14038:1: rule__JvmTypeReference__Group_0__1__Impl : ( ( rule__JvmTypeReference__Group_0_1__0 )* ) ; - public final void rule__JvmTypeReference__Group_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14042:1: ( ( ( rule__JvmTypeReference__Group_0_1__0 )* ) ) - // InternalEntities.g:14043:1: ( ( rule__JvmTypeReference__Group_0_1__0 )* ) - { - // InternalEntities.g:14043:1: ( ( rule__JvmTypeReference__Group_0_1__0 )* ) - // InternalEntities.g:14044:2: ( rule__JvmTypeReference__Group_0_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1()); - } - // InternalEntities.g:14045:2: ( rule__JvmTypeReference__Group_0_1__0 )* - loop114: - do { - int alt114=2; - int LA114_0 = input.LA(1); - - if ( (LA114_0==63) ) { - int LA114_2 = input.LA(2); - - if ( (LA114_2==64) ) { - int LA114_3 = input.LA(3); - - if ( (synpred157_InternalEntities()) ) { - alt114=1; - } - - - } - - - } - - - switch (alt114) { - case 1 : - // InternalEntities.g:14045:3: rule__JvmTypeReference__Group_0_1__0 - { - pushFollow(FOLLOW_88); - rule__JvmTypeReference__Group_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop114; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0__1__Impl" - - - // $ANTLR start "rule__JvmTypeReference__Group_0_1__0" - // InternalEntities.g:14054:1: rule__JvmTypeReference__Group_0_1__0 : rule__JvmTypeReference__Group_0_1__0__Impl ; - public final void rule__JvmTypeReference__Group_0_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14058:1: ( rule__JvmTypeReference__Group_0_1__0__Impl ) - // InternalEntities.g:14059:2: rule__JvmTypeReference__Group_0_1__0__Impl - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0_1__0" - - - // $ANTLR start "rule__JvmTypeReference__Group_0_1__0__Impl" - // InternalEntities.g:14065:1: rule__JvmTypeReference__Group_0_1__0__Impl : ( ( rule__JvmTypeReference__Group_0_1_0__0 ) ) ; - public final void rule__JvmTypeReference__Group_0_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14069:1: ( ( ( rule__JvmTypeReference__Group_0_1_0__0 ) ) ) - // InternalEntities.g:14070:1: ( ( rule__JvmTypeReference__Group_0_1_0__0 ) ) - { - // InternalEntities.g:14070:1: ( ( rule__JvmTypeReference__Group_0_1_0__0 ) ) - // InternalEntities.g:14071:2: ( rule__JvmTypeReference__Group_0_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1_0()); - } - // InternalEntities.g:14072:2: ( rule__JvmTypeReference__Group_0_1_0__0 ) - // InternalEntities.g:14072:3: rule__JvmTypeReference__Group_0_1_0__0 - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getGroup_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0_1__0__Impl" - - - // $ANTLR start "rule__JvmTypeReference__Group_0_1_0__0" - // InternalEntities.g:14081:1: rule__JvmTypeReference__Group_0_1_0__0 : rule__JvmTypeReference__Group_0_1_0__0__Impl rule__JvmTypeReference__Group_0_1_0__1 ; - public final void rule__JvmTypeReference__Group_0_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14085:1: ( rule__JvmTypeReference__Group_0_1_0__0__Impl rule__JvmTypeReference__Group_0_1_0__1 ) - // InternalEntities.g:14086:2: rule__JvmTypeReference__Group_0_1_0__0__Impl rule__JvmTypeReference__Group_0_1_0__1 - { - pushFollow(FOLLOW_59); - rule__JvmTypeReference__Group_0_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0_1_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0_1_0__0" - - - // $ANTLR start "rule__JvmTypeReference__Group_0_1_0__0__Impl" - // InternalEntities.g:14093:1: rule__JvmTypeReference__Group_0_1_0__0__Impl : ( () ) ; - public final void rule__JvmTypeReference__Group_0_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14097:1: ( ( () ) ) - // InternalEntities.g:14098:1: ( () ) - { - // InternalEntities.g:14098:1: ( () ) - // InternalEntities.g:14099:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0()); - } - // InternalEntities.g:14100:2: () - // InternalEntities.g:14100:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0_1_0__0__Impl" - - - // $ANTLR start "rule__JvmTypeReference__Group_0_1_0__1" - // InternalEntities.g:14108:1: rule__JvmTypeReference__Group_0_1_0__1 : rule__JvmTypeReference__Group_0_1_0__1__Impl ; - public final void rule__JvmTypeReference__Group_0_1_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14112:1: ( rule__JvmTypeReference__Group_0_1_0__1__Impl ) - // InternalEntities.g:14113:2: rule__JvmTypeReference__Group_0_1_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0_1_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0_1_0__1" - - - // $ANTLR start "rule__JvmTypeReference__Group_0_1_0__1__Impl" - // InternalEntities.g:14119:1: rule__JvmTypeReference__Group_0_1_0__1__Impl : ( ruleArrayBrackets ) ; - public final void rule__JvmTypeReference__Group_0_1_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14123:1: ( ( ruleArrayBrackets ) ) - // InternalEntities.g:14124:1: ( ruleArrayBrackets ) - { - // InternalEntities.g:14124:1: ( ruleArrayBrackets ) - // InternalEntities.g:14125:2: ruleArrayBrackets - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmTypeReference__Group_0_1_0__1__Impl" - - - // $ANTLR start "rule__ArrayBrackets__Group__0" - // InternalEntities.g:14135:1: rule__ArrayBrackets__Group__0 : rule__ArrayBrackets__Group__0__Impl rule__ArrayBrackets__Group__1 ; - public final void rule__ArrayBrackets__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14139:1: ( rule__ArrayBrackets__Group__0__Impl rule__ArrayBrackets__Group__1 ) - // InternalEntities.g:14140:2: rule__ArrayBrackets__Group__0__Impl rule__ArrayBrackets__Group__1 - { - pushFollow(FOLLOW_62); - rule__ArrayBrackets__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__ArrayBrackets__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ArrayBrackets__Group__0" - - - // $ANTLR start "rule__ArrayBrackets__Group__0__Impl" - // InternalEntities.g:14147:1: rule__ArrayBrackets__Group__0__Impl : ( '[' ) ; - public final void rule__ArrayBrackets__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14151:1: ( ( '[' ) ) - // InternalEntities.g:14152:1: ( '[' ) - { - // InternalEntities.g:14152:1: ( '[' ) - // InternalEntities.g:14153:2: '[' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); - } - match(input,63,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ArrayBrackets__Group__0__Impl" - - - // $ANTLR start "rule__ArrayBrackets__Group__1" - // InternalEntities.g:14162:1: rule__ArrayBrackets__Group__1 : rule__ArrayBrackets__Group__1__Impl ; - public final void rule__ArrayBrackets__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14166:1: ( rule__ArrayBrackets__Group__1__Impl ) - // InternalEntities.g:14167:2: rule__ArrayBrackets__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__ArrayBrackets__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ArrayBrackets__Group__1" - - - // $ANTLR start "rule__ArrayBrackets__Group__1__Impl" - // InternalEntities.g:14173:1: rule__ArrayBrackets__Group__1__Impl : ( ']' ) ; - public final void rule__ArrayBrackets__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14177:1: ( ( ']' ) ) - // InternalEntities.g:14178:1: ( ']' ) - { - // InternalEntities.g:14178:1: ( ']' ) - // InternalEntities.g:14179:2: ']' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); - } - match(input,64,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ArrayBrackets__Group__1__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group__0" - // InternalEntities.g:14189:1: rule__XFunctionTypeRef__Group__0 : rule__XFunctionTypeRef__Group__0__Impl rule__XFunctionTypeRef__Group__1 ; - public final void rule__XFunctionTypeRef__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14193:1: ( rule__XFunctionTypeRef__Group__0__Impl rule__XFunctionTypeRef__Group__1 ) - // InternalEntities.g:14194:2: rule__XFunctionTypeRef__Group__0__Impl rule__XFunctionTypeRef__Group__1 - { - pushFollow(FOLLOW_14); - rule__XFunctionTypeRef__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group__0" - - - // $ANTLR start "rule__XFunctionTypeRef__Group__0__Impl" - // InternalEntities.g:14201:1: rule__XFunctionTypeRef__Group__0__Impl : ( ( rule__XFunctionTypeRef__Group_0__0 )? ) ; - public final void rule__XFunctionTypeRef__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14205:1: ( ( ( rule__XFunctionTypeRef__Group_0__0 )? ) ) - // InternalEntities.g:14206:1: ( ( rule__XFunctionTypeRef__Group_0__0 )? ) - { - // InternalEntities.g:14206:1: ( ( rule__XFunctionTypeRef__Group_0__0 )? ) - // InternalEntities.g:14207:2: ( rule__XFunctionTypeRef__Group_0__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getGroup_0()); - } - // InternalEntities.g:14208:2: ( rule__XFunctionTypeRef__Group_0__0 )? - int alt115=2; - int LA115_0 = input.LA(1); - - if ( (LA115_0==57) ) { - alt115=1; - } - switch (alt115) { - case 1 : - // InternalEntities.g:14208:3: rule__XFunctionTypeRef__Group_0__0 - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getGroup_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group__0__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group__1" - // InternalEntities.g:14216:1: rule__XFunctionTypeRef__Group__1 : rule__XFunctionTypeRef__Group__1__Impl rule__XFunctionTypeRef__Group__2 ; - public final void rule__XFunctionTypeRef__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14220:1: ( rule__XFunctionTypeRef__Group__1__Impl rule__XFunctionTypeRef__Group__2 ) - // InternalEntities.g:14221:2: rule__XFunctionTypeRef__Group__1__Impl rule__XFunctionTypeRef__Group__2 - { - pushFollow(FOLLOW_14); - rule__XFunctionTypeRef__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group__1" - - - // $ANTLR start "rule__XFunctionTypeRef__Group__1__Impl" - // InternalEntities.g:14228:1: rule__XFunctionTypeRef__Group__1__Impl : ( '=>' ) ; - public final void rule__XFunctionTypeRef__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14232:1: ( ( '=>' ) ) - // InternalEntities.g:14233:1: ( '=>' ) - { - // InternalEntities.g:14233:1: ( '=>' ) - // InternalEntities.g:14234:2: '=>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); - } - match(input,31,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group__1__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group__2" - // InternalEntities.g:14243:1: rule__XFunctionTypeRef__Group__2 : rule__XFunctionTypeRef__Group__2__Impl ; - public final void rule__XFunctionTypeRef__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14247:1: ( rule__XFunctionTypeRef__Group__2__Impl ) - // InternalEntities.g:14248:2: rule__XFunctionTypeRef__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group__2" - - - // $ANTLR start "rule__XFunctionTypeRef__Group__2__Impl" - // InternalEntities.g:14254:1: rule__XFunctionTypeRef__Group__2__Impl : ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) ) ; - public final void rule__XFunctionTypeRef__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14258:1: ( ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) ) ) - // InternalEntities.g:14259:1: ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) ) - { - // InternalEntities.g:14259:1: ( ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) ) - // InternalEntities.g:14260:2: ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2()); - } - // InternalEntities.g:14261:2: ( rule__XFunctionTypeRef__ReturnTypeAssignment_2 ) - // InternalEntities.g:14261:3: rule__XFunctionTypeRef__ReturnTypeAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__ReturnTypeAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeAssignment_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group__2__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0__0" - // InternalEntities.g:14270:1: rule__XFunctionTypeRef__Group_0__0 : rule__XFunctionTypeRef__Group_0__0__Impl rule__XFunctionTypeRef__Group_0__1 ; - public final void rule__XFunctionTypeRef__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14274:1: ( rule__XFunctionTypeRef__Group_0__0__Impl rule__XFunctionTypeRef__Group_0__1 ) - // InternalEntities.g:14275:2: rule__XFunctionTypeRef__Group_0__0__Impl rule__XFunctionTypeRef__Group_0__1 - { - pushFollow(FOLLOW_16); - rule__XFunctionTypeRef__Group_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0__0" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0__0__Impl" - // InternalEntities.g:14282:1: rule__XFunctionTypeRef__Group_0__0__Impl : ( '(' ) ; - public final void rule__XFunctionTypeRef__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14286:1: ( ( '(' ) ) - // InternalEntities.g:14287:1: ( '(' ) - { - // InternalEntities.g:14287:1: ( '(' ) - // InternalEntities.g:14288:2: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0__0__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0__1" - // InternalEntities.g:14297:1: rule__XFunctionTypeRef__Group_0__1 : rule__XFunctionTypeRef__Group_0__1__Impl rule__XFunctionTypeRef__Group_0__2 ; - public final void rule__XFunctionTypeRef__Group_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14301:1: ( rule__XFunctionTypeRef__Group_0__1__Impl rule__XFunctionTypeRef__Group_0__2 ) - // InternalEntities.g:14302:2: rule__XFunctionTypeRef__Group_0__1__Impl rule__XFunctionTypeRef__Group_0__2 - { - pushFollow(FOLLOW_16); - rule__XFunctionTypeRef__Group_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0__1" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0__1__Impl" - // InternalEntities.g:14309:1: rule__XFunctionTypeRef__Group_0__1__Impl : ( ( rule__XFunctionTypeRef__Group_0_1__0 )? ) ; - public final void rule__XFunctionTypeRef__Group_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14313:1: ( ( ( rule__XFunctionTypeRef__Group_0_1__0 )? ) ) - // InternalEntities.g:14314:1: ( ( rule__XFunctionTypeRef__Group_0_1__0 )? ) - { - // InternalEntities.g:14314:1: ( ( rule__XFunctionTypeRef__Group_0_1__0 )? ) - // InternalEntities.g:14315:2: ( rule__XFunctionTypeRef__Group_0_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1()); - } - // InternalEntities.g:14316:2: ( rule__XFunctionTypeRef__Group_0_1__0 )? - int alt116=2; - int LA116_0 = input.LA(1); - - if ( (LA116_0==RULE_ID||LA116_0==31||LA116_0==57) ) { - alt116=1; - } - switch (alt116) { - case 1 : - // InternalEntities.g:14316:3: rule__XFunctionTypeRef__Group_0_1__0 - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0__1__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0__2" - // InternalEntities.g:14324:1: rule__XFunctionTypeRef__Group_0__2 : rule__XFunctionTypeRef__Group_0__2__Impl ; - public final void rule__XFunctionTypeRef__Group_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14328:1: ( rule__XFunctionTypeRef__Group_0__2__Impl ) - // InternalEntities.g:14329:2: rule__XFunctionTypeRef__Group_0__2__Impl - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0__2" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0__2__Impl" - // InternalEntities.g:14335:1: rule__XFunctionTypeRef__Group_0__2__Impl : ( ')' ) ; - public final void rule__XFunctionTypeRef__Group_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14339:1: ( ( ')' ) ) - // InternalEntities.g:14340:1: ( ')' ) - { - // InternalEntities.g:14340:1: ( ')' ) - // InternalEntities.g:14341:2: ')' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); - } - match(input,58,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0__2__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1__0" - // InternalEntities.g:14351:1: rule__XFunctionTypeRef__Group_0_1__0 : rule__XFunctionTypeRef__Group_0_1__0__Impl rule__XFunctionTypeRef__Group_0_1__1 ; - public final void rule__XFunctionTypeRef__Group_0_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14355:1: ( rule__XFunctionTypeRef__Group_0_1__0__Impl rule__XFunctionTypeRef__Group_0_1__1 ) - // InternalEntities.g:14356:2: rule__XFunctionTypeRef__Group_0_1__0__Impl rule__XFunctionTypeRef__Group_0_1__1 - { - pushFollow(FOLLOW_18); - rule__XFunctionTypeRef__Group_0_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1__0" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1__0__Impl" - // InternalEntities.g:14363:1: rule__XFunctionTypeRef__Group_0_1__0__Impl : ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 ) ) ; - public final void rule__XFunctionTypeRef__Group_0_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14367:1: ( ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 ) ) ) - // InternalEntities.g:14368:1: ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 ) ) - { - // InternalEntities.g:14368:1: ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 ) ) - // InternalEntities.g:14369:2: ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_0()); - } - // InternalEntities.g:14370:2: ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 ) - // InternalEntities.g:14370:3: rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1__0__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1__1" - // InternalEntities.g:14378:1: rule__XFunctionTypeRef__Group_0_1__1 : rule__XFunctionTypeRef__Group_0_1__1__Impl ; - public final void rule__XFunctionTypeRef__Group_0_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14382:1: ( rule__XFunctionTypeRef__Group_0_1__1__Impl ) - // InternalEntities.g:14383:2: rule__XFunctionTypeRef__Group_0_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1__1" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1__1__Impl" - // InternalEntities.g:14389:1: rule__XFunctionTypeRef__Group_0_1__1__Impl : ( ( rule__XFunctionTypeRef__Group_0_1_1__0 )* ) ; - public final void rule__XFunctionTypeRef__Group_0_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14393:1: ( ( ( rule__XFunctionTypeRef__Group_0_1_1__0 )* ) ) - // InternalEntities.g:14394:1: ( ( rule__XFunctionTypeRef__Group_0_1_1__0 )* ) - { - // InternalEntities.g:14394:1: ( ( rule__XFunctionTypeRef__Group_0_1_1__0 )* ) - // InternalEntities.g:14395:2: ( rule__XFunctionTypeRef__Group_0_1_1__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1_1()); - } - // InternalEntities.g:14396:2: ( rule__XFunctionTypeRef__Group_0_1_1__0 )* - loop117: - do { - int alt117=2; - int LA117_0 = input.LA(1); - - if ( (LA117_0==59) ) { - alt117=1; - } - - - switch (alt117) { - case 1 : - // InternalEntities.g:14396:3: rule__XFunctionTypeRef__Group_0_1_1__0 - { - pushFollow(FOLLOW_19); - rule__XFunctionTypeRef__Group_0_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop117; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getGroup_0_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1__1__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1_1__0" - // InternalEntities.g:14405:1: rule__XFunctionTypeRef__Group_0_1_1__0 : rule__XFunctionTypeRef__Group_0_1_1__0__Impl rule__XFunctionTypeRef__Group_0_1_1__1 ; - public final void rule__XFunctionTypeRef__Group_0_1_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14409:1: ( rule__XFunctionTypeRef__Group_0_1_1__0__Impl rule__XFunctionTypeRef__Group_0_1_1__1 ) - // InternalEntities.g:14410:2: rule__XFunctionTypeRef__Group_0_1_1__0__Impl rule__XFunctionTypeRef__Group_0_1_1__1 - { - pushFollow(FOLLOW_14); - rule__XFunctionTypeRef__Group_0_1_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0_1_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1_1__0" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1_1__0__Impl" - // InternalEntities.g:14417:1: rule__XFunctionTypeRef__Group_0_1_1__0__Impl : ( ',' ) ; - public final void rule__XFunctionTypeRef__Group_0_1_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14421:1: ( ( ',' ) ) - // InternalEntities.g:14422:1: ( ',' ) - { - // InternalEntities.g:14422:1: ( ',' ) - // InternalEntities.g:14423:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1_1__0__Impl" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1_1__1" - // InternalEntities.g:14432:1: rule__XFunctionTypeRef__Group_0_1_1__1 : rule__XFunctionTypeRef__Group_0_1_1__1__Impl ; - public final void rule__XFunctionTypeRef__Group_0_1_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14436:1: ( rule__XFunctionTypeRef__Group_0_1_1__1__Impl ) - // InternalEntities.g:14437:2: rule__XFunctionTypeRef__Group_0_1_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__Group_0_1_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1_1__1" - - - // $ANTLR start "rule__XFunctionTypeRef__Group_0_1_1__1__Impl" - // InternalEntities.g:14443:1: rule__XFunctionTypeRef__Group_0_1_1__1__Impl : ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 ) ) ; - public final void rule__XFunctionTypeRef__Group_0_1_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14447:1: ( ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 ) ) ) - // InternalEntities.g:14448:1: ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 ) ) - { - // InternalEntities.g:14448:1: ( ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 ) ) - // InternalEntities.g:14449:2: ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_1_1()); - } - // InternalEntities.g:14450:2: ( rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 ) - // InternalEntities.g:14450:3: rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 - { - pushFollow(FOLLOW_2); - rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesAssignment_0_1_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__Group_0_1_1__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group__0" - // InternalEntities.g:14459:1: rule__JvmParameterizedTypeReference__Group__0 : rule__JvmParameterizedTypeReference__Group__0__Impl rule__JvmParameterizedTypeReference__Group__1 ; - public final void rule__JvmParameterizedTypeReference__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14463:1: ( rule__JvmParameterizedTypeReference__Group__0__Impl rule__JvmParameterizedTypeReference__Group__1 ) - // InternalEntities.g:14464:2: rule__JvmParameterizedTypeReference__Group__0__Impl rule__JvmParameterizedTypeReference__Group__1 - { - pushFollow(FOLLOW_24); - rule__JvmParameterizedTypeReference__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group__0__Impl" - // InternalEntities.g:14471:1: rule__JvmParameterizedTypeReference__Group__0__Impl : ( ( rule__JvmParameterizedTypeReference__TypeAssignment_0 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14475:1: ( ( ( rule__JvmParameterizedTypeReference__TypeAssignment_0 ) ) ) - // InternalEntities.g:14476:1: ( ( rule__JvmParameterizedTypeReference__TypeAssignment_0 ) ) - { - // InternalEntities.g:14476:1: ( ( rule__JvmParameterizedTypeReference__TypeAssignment_0 ) ) - // InternalEntities.g:14477:2: ( rule__JvmParameterizedTypeReference__TypeAssignment_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_0()); - } - // InternalEntities.g:14478:2: ( rule__JvmParameterizedTypeReference__TypeAssignment_0 ) - // InternalEntities.g:14478:3: rule__JvmParameterizedTypeReference__TypeAssignment_0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__TypeAssignment_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group__1" - // InternalEntities.g:14486:1: rule__JvmParameterizedTypeReference__Group__1 : rule__JvmParameterizedTypeReference__Group__1__Impl ; - public final void rule__JvmParameterizedTypeReference__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14490:1: ( rule__JvmParameterizedTypeReference__Group__1__Impl ) - // InternalEntities.g:14491:2: rule__JvmParameterizedTypeReference__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group__1__Impl" - // InternalEntities.g:14497:1: rule__JvmParameterizedTypeReference__Group__1__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1__0 )? ) ; - public final void rule__JvmParameterizedTypeReference__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14501:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1__0 )? ) ) - // InternalEntities.g:14502:1: ( ( rule__JvmParameterizedTypeReference__Group_1__0 )? ) - { - // InternalEntities.g:14502:1: ( ( rule__JvmParameterizedTypeReference__Group_1__0 )? ) - // InternalEntities.g:14503:2: ( rule__JvmParameterizedTypeReference__Group_1__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1()); - } - // InternalEntities.g:14504:2: ( rule__JvmParameterizedTypeReference__Group_1__0 )? - int alt118=2; - alt118 = dfa118.predict(input); - switch (alt118) { - case 1 : - // InternalEntities.g:14504:3: rule__JvmParameterizedTypeReference__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__0" - // InternalEntities.g:14513:1: rule__JvmParameterizedTypeReference__Group_1__0 : rule__JvmParameterizedTypeReference__Group_1__0__Impl rule__JvmParameterizedTypeReference__Group_1__1 ; - public final void rule__JvmParameterizedTypeReference__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14517:1: ( rule__JvmParameterizedTypeReference__Group_1__0__Impl rule__JvmParameterizedTypeReference__Group_1__1 ) - // InternalEntities.g:14518:2: rule__JvmParameterizedTypeReference__Group_1__0__Impl rule__JvmParameterizedTypeReference__Group_1__1 - { - pushFollow(FOLLOW_53); - rule__JvmParameterizedTypeReference__Group_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__0__Impl" - // InternalEntities.g:14525:1: rule__JvmParameterizedTypeReference__Group_1__0__Impl : ( ( '<' ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14529:1: ( ( ( '<' ) ) ) - // InternalEntities.g:14530:1: ( ( '<' ) ) - { - // InternalEntities.g:14530:1: ( ( '<' ) ) - // InternalEntities.g:14531:2: ( '<' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); - } - // InternalEntities.g:14532:2: ( '<' ) - // InternalEntities.g:14532:3: '<' - { - match(input,27,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__1" - // InternalEntities.g:14540:1: rule__JvmParameterizedTypeReference__Group_1__1 : rule__JvmParameterizedTypeReference__Group_1__1__Impl rule__JvmParameterizedTypeReference__Group_1__2 ; - public final void rule__JvmParameterizedTypeReference__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14544:1: ( rule__JvmParameterizedTypeReference__Group_1__1__Impl rule__JvmParameterizedTypeReference__Group_1__2 ) - // InternalEntities.g:14545:2: rule__JvmParameterizedTypeReference__Group_1__1__Impl rule__JvmParameterizedTypeReference__Group_1__2 - { - pushFollow(FOLLOW_54); - rule__JvmParameterizedTypeReference__Group_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__1__Impl" - // InternalEntities.g:14552:1: rule__JvmParameterizedTypeReference__Group_1__1__Impl : ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14556:1: ( ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 ) ) ) - // InternalEntities.g:14557:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 ) ) - { - // InternalEntities.g:14557:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 ) ) - // InternalEntities.g:14558:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_1()); - } - // InternalEntities.g:14559:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 ) - // InternalEntities.g:14559:3: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__2" - // InternalEntities.g:14567:1: rule__JvmParameterizedTypeReference__Group_1__2 : rule__JvmParameterizedTypeReference__Group_1__2__Impl rule__JvmParameterizedTypeReference__Group_1__3 ; - public final void rule__JvmParameterizedTypeReference__Group_1__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14571:1: ( rule__JvmParameterizedTypeReference__Group_1__2__Impl rule__JvmParameterizedTypeReference__Group_1__3 ) - // InternalEntities.g:14572:2: rule__JvmParameterizedTypeReference__Group_1__2__Impl rule__JvmParameterizedTypeReference__Group_1__3 - { - pushFollow(FOLLOW_54); - rule__JvmParameterizedTypeReference__Group_1__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__2" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__2__Impl" - // InternalEntities.g:14579:1: rule__JvmParameterizedTypeReference__Group_1__2__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1_2__0 )* ) ; - public final void rule__JvmParameterizedTypeReference__Group_1__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14583:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1_2__0 )* ) ) - // InternalEntities.g:14584:1: ( ( rule__JvmParameterizedTypeReference__Group_1_2__0 )* ) - { - // InternalEntities.g:14584:1: ( ( rule__JvmParameterizedTypeReference__Group_1_2__0 )* ) - // InternalEntities.g:14585:2: ( rule__JvmParameterizedTypeReference__Group_1_2__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_2()); - } - // InternalEntities.g:14586:2: ( rule__JvmParameterizedTypeReference__Group_1_2__0 )* - loop119: - do { - int alt119=2; - int LA119_0 = input.LA(1); - - if ( (LA119_0==59) ) { - alt119=1; - } - - - switch (alt119) { - case 1 : - // InternalEntities.g:14586:3: rule__JvmParameterizedTypeReference__Group_1_2__0 - { - pushFollow(FOLLOW_19); - rule__JvmParameterizedTypeReference__Group_1_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop119; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__2__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__3" - // InternalEntities.g:14594:1: rule__JvmParameterizedTypeReference__Group_1__3 : rule__JvmParameterizedTypeReference__Group_1__3__Impl rule__JvmParameterizedTypeReference__Group_1__4 ; - public final void rule__JvmParameterizedTypeReference__Group_1__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14598:1: ( rule__JvmParameterizedTypeReference__Group_1__3__Impl rule__JvmParameterizedTypeReference__Group_1__4 ) - // InternalEntities.g:14599:2: rule__JvmParameterizedTypeReference__Group_1__3__Impl rule__JvmParameterizedTypeReference__Group_1__4 - { - pushFollow(FOLLOW_96); - rule__JvmParameterizedTypeReference__Group_1__3__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__4(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__3" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__3__Impl" - // InternalEntities.g:14606:1: rule__JvmParameterizedTypeReference__Group_1__3__Impl : ( '>' ) ; - public final void rule__JvmParameterizedTypeReference__Group_1__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14610:1: ( ( '>' ) ) - // InternalEntities.g:14611:1: ( '>' ) - { - // InternalEntities.g:14611:1: ( '>' ) - // InternalEntities.g:14612:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__3__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__4" - // InternalEntities.g:14621:1: rule__JvmParameterizedTypeReference__Group_1__4 : rule__JvmParameterizedTypeReference__Group_1__4__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14625:1: ( rule__JvmParameterizedTypeReference__Group_1__4__Impl ) - // InternalEntities.g:14626:2: rule__JvmParameterizedTypeReference__Group_1__4__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__4__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__4" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1__4__Impl" - // InternalEntities.g:14632:1: rule__JvmParameterizedTypeReference__Group_1__4__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1_4__0 )* ) ; - public final void rule__JvmParameterizedTypeReference__Group_1__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14636:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1_4__0 )* ) ) - // InternalEntities.g:14637:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4__0 )* ) - { - // InternalEntities.g:14637:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4__0 )* ) - // InternalEntities.g:14638:2: ( rule__JvmParameterizedTypeReference__Group_1_4__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4()); - } - // InternalEntities.g:14639:2: ( rule__JvmParameterizedTypeReference__Group_1_4__0 )* - loop120: - do { - int alt120=2; - int LA120_0 = input.LA(1); - - if ( (LA120_0==43) ) { - int LA120_2 = input.LA(2); - - if ( (LA120_2==RULE_ID) ) { - int LA120_3 = input.LA(3); - - if ( (synpred163_InternalEntities()) ) { - alt120=1; - } - - - } - - - } - - - switch (alt120) { - case 1 : - // InternalEntities.g:14639:3: rule__JvmParameterizedTypeReference__Group_1_4__0 - { - pushFollow(FOLLOW_97); - rule__JvmParameterizedTypeReference__Group_1_4__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop120; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1__4__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_2__0" - // InternalEntities.g:14648:1: rule__JvmParameterizedTypeReference__Group_1_2__0 : rule__JvmParameterizedTypeReference__Group_1_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_2__1 ; - public final void rule__JvmParameterizedTypeReference__Group_1_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14652:1: ( rule__JvmParameterizedTypeReference__Group_1_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_2__1 ) - // InternalEntities.g:14653:2: rule__JvmParameterizedTypeReference__Group_1_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_2__1 - { - pushFollow(FOLLOW_53); - rule__JvmParameterizedTypeReference__Group_1_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_2__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_2__0__Impl" - // InternalEntities.g:14660:1: rule__JvmParameterizedTypeReference__Group_1_2__0__Impl : ( ',' ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14664:1: ( ( ',' ) ) - // InternalEntities.g:14665:1: ( ',' ) - { - // InternalEntities.g:14665:1: ( ',' ) - // InternalEntities.g:14666:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_2__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_2__1" - // InternalEntities.g:14675:1: rule__JvmParameterizedTypeReference__Group_1_2__1 : rule__JvmParameterizedTypeReference__Group_1_2__1__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14679:1: ( rule__JvmParameterizedTypeReference__Group_1_2__1__Impl ) - // InternalEntities.g:14680:2: rule__JvmParameterizedTypeReference__Group_1_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_2__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_2__1__Impl" - // InternalEntities.g:14686:1: rule__JvmParameterizedTypeReference__Group_1_2__1__Impl : ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14690:1: ( ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 ) ) ) - // InternalEntities.g:14691:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 ) ) - { - // InternalEntities.g:14691:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 ) ) - // InternalEntities.g:14692:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_2_1()); - } - // InternalEntities.g:14693:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 ) - // InternalEntities.g:14693:3: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_2__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__0" - // InternalEntities.g:14702:1: rule__JvmParameterizedTypeReference__Group_1_4__0 : rule__JvmParameterizedTypeReference__Group_1_4__0__Impl rule__JvmParameterizedTypeReference__Group_1_4__1 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14706:1: ( rule__JvmParameterizedTypeReference__Group_1_4__0__Impl rule__JvmParameterizedTypeReference__Group_1_4__1 ) - // InternalEntities.g:14707:2: rule__JvmParameterizedTypeReference__Group_1_4__0__Impl rule__JvmParameterizedTypeReference__Group_1_4__1 - { - pushFollow(FOLLOW_7); - rule__JvmParameterizedTypeReference__Group_1_4__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__0__Impl" - // InternalEntities.g:14714:1: rule__JvmParameterizedTypeReference__Group_1_4__0__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1_4_0__0 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14718:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1_4_0__0 ) ) ) - // InternalEntities.g:14719:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_0__0 ) ) - { - // InternalEntities.g:14719:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_0__0 ) ) - // InternalEntities.g:14720:2: ( rule__JvmParameterizedTypeReference__Group_1_4_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0()); - } - // InternalEntities.g:14721:2: ( rule__JvmParameterizedTypeReference__Group_1_4_0__0 ) - // InternalEntities.g:14721:3: rule__JvmParameterizedTypeReference__Group_1_4_0__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__1" - // InternalEntities.g:14729:1: rule__JvmParameterizedTypeReference__Group_1_4__1 : rule__JvmParameterizedTypeReference__Group_1_4__1__Impl rule__JvmParameterizedTypeReference__Group_1_4__2 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14733:1: ( rule__JvmParameterizedTypeReference__Group_1_4__1__Impl rule__JvmParameterizedTypeReference__Group_1_4__2 ) - // InternalEntities.g:14734:2: rule__JvmParameterizedTypeReference__Group_1_4__1__Impl rule__JvmParameterizedTypeReference__Group_1_4__2 - { - pushFollow(FOLLOW_24); - rule__JvmParameterizedTypeReference__Group_1_4__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__1__Impl" - // InternalEntities.g:14741:1: rule__JvmParameterizedTypeReference__Group_1_4__1__Impl : ( ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14745:1: ( ( ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) ) ) - // InternalEntities.g:14746:1: ( ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) ) - { - // InternalEntities.g:14746:1: ( ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) ) - // InternalEntities.g:14747:2: ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_1_4_1()); - } - // InternalEntities.g:14748:2: ( rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 ) - // InternalEntities.g:14748:3: rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeAssignment_1_4_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__2" - // InternalEntities.g:14756:1: rule__JvmParameterizedTypeReference__Group_1_4__2 : rule__JvmParameterizedTypeReference__Group_1_4__2__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1_4__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14760:1: ( rule__JvmParameterizedTypeReference__Group_1_4__2__Impl ) - // InternalEntities.g:14761:2: rule__JvmParameterizedTypeReference__Group_1_4__2__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__2" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4__2__Impl" - // InternalEntities.g:14767:1: rule__JvmParameterizedTypeReference__Group_1_4__2__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )? ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14771:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )? ) ) - // InternalEntities.g:14772:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )? ) - { - // InternalEntities.g:14772:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )? ) - // InternalEntities.g:14773:2: ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2()); - } - // InternalEntities.g:14774:2: ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )? - int alt121=2; - alt121 = dfa121.predict(input); - switch (alt121) { - case 1 : - // InternalEntities.g:14774:3: rule__JvmParameterizedTypeReference__Group_1_4_2__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4__2__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_0__0" - // InternalEntities.g:14783:1: rule__JvmParameterizedTypeReference__Group_1_4_0__0 : rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14787:1: ( rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl ) - // InternalEntities.g:14788:2: rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_0__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl" - // InternalEntities.g:14794:1: rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14798:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 ) ) ) - // InternalEntities.g:14799:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 ) ) - { - // InternalEntities.g:14799:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 ) ) - // InternalEntities.g:14800:2: ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0_0()); - } - // InternalEntities.g:14801:2: ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 ) - // InternalEntities.g:14801:3: rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_0_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_0__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_0_0__0" - // InternalEntities.g:14810:1: rule__JvmParameterizedTypeReference__Group_1_4_0_0__0 : rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_0_0__1 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_0_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14814:1: ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_0_0__1 ) - // InternalEntities.g:14815:2: rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_0_0__1 - { - pushFollow(FOLLOW_96); - rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_0_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_0_0__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl" - // InternalEntities.g:14822:1: rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl : ( () ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14826:1: ( ( () ) ) - // InternalEntities.g:14827:1: ( () ) - { - // InternalEntities.g:14827:1: ( () ) - // InternalEntities.g:14828:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0()); - } - // InternalEntities.g:14829:2: () - // InternalEntities.g:14829:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_0_0__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_0_0__1" - // InternalEntities.g:14837:1: rule__JvmParameterizedTypeReference__Group_1_4_0_0__1 : rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_0_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14841:1: ( rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl ) - // InternalEntities.g:14842:2: rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_0_0__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl" - // InternalEntities.g:14848:1: rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl : ( '.' ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14852:1: ( ( '.' ) ) - // InternalEntities.g:14853:1: ( '.' ) - { - // InternalEntities.g:14853:1: ( '.' ) - // InternalEntities.g:14854:2: '.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); - } - match(input,43,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_0_0__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__0" - // InternalEntities.g:14864:1: rule__JvmParameterizedTypeReference__Group_1_4_2__0 : rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__1 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14868:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__1 ) - // InternalEntities.g:14869:2: rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__1 - { - pushFollow(FOLLOW_53); - rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl" - // InternalEntities.g:14876:1: rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl : ( ( '<' ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14880:1: ( ( ( '<' ) ) ) - // InternalEntities.g:14881:1: ( ( '<' ) ) - { - // InternalEntities.g:14881:1: ( ( '<' ) ) - // InternalEntities.g:14882:2: ( '<' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); - } - // InternalEntities.g:14883:2: ( '<' ) - // InternalEntities.g:14883:3: '<' - { - match(input,27,FOLLOW_2); if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__1" - // InternalEntities.g:14891:1: rule__JvmParameterizedTypeReference__Group_1_4_2__1 : rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__2 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14895:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__2 ) - // InternalEntities.g:14896:2: rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__2 - { - pushFollow(FOLLOW_54); - rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl" - // InternalEntities.g:14903:1: rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl : ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14907:1: ( ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 ) ) ) - // InternalEntities.g:14908:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 ) ) - { - // InternalEntities.g:14908:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 ) ) - // InternalEntities.g:14909:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_1()); - } - // InternalEntities.g:14910:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 ) - // InternalEntities.g:14910:3: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__1__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__2" - // InternalEntities.g:14918:1: rule__JvmParameterizedTypeReference__Group_1_4_2__2 : rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__3 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14922:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__3 ) - // InternalEntities.g:14923:2: rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl rule__JvmParameterizedTypeReference__Group_1_4_2__3 - { - pushFollow(FOLLOW_54); - rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__2" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl" - // InternalEntities.g:14930:1: rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl : ( ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 )* ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14934:1: ( ( ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 )* ) ) - // InternalEntities.g:14935:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 )* ) - { - // InternalEntities.g:14935:1: ( ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 )* ) - // InternalEntities.g:14936:2: ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2_2()); - } - // InternalEntities.g:14937:2: ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 )* - loop122: - do { - int alt122=2; - int LA122_0 = input.LA(1); - - if ( (LA122_0==59) ) { - alt122=1; - } - - - switch (alt122) { - case 1 : - // InternalEntities.g:14937:3: rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 - { - pushFollow(FOLLOW_19); - rule__JvmParameterizedTypeReference__Group_1_4_2_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop122; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGroup_1_4_2_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__2__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__3" - // InternalEntities.g:14945:1: rule__JvmParameterizedTypeReference__Group_1_4_2__3 : rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14949:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl ) - // InternalEntities.g:14950:2: rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__3" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl" - // InternalEntities.g:14956:1: rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl : ( '>' ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14960:1: ( ( '>' ) ) - // InternalEntities.g:14961:1: ( '>' ) - { - // InternalEntities.g:14961:1: ( '>' ) - // InternalEntities.g:14962:2: '>' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); - } - match(input,26,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2__3__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2_2__0" - // InternalEntities.g:14972:1: rule__JvmParameterizedTypeReference__Group_1_4_2_2__0 : rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_2_2__1 ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14976:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_2_2__1 ) - // InternalEntities.g:14977:2: rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl rule__JvmParameterizedTypeReference__Group_1_4_2_2__1 - { - pushFollow(FOLLOW_53); - rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2_2__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2_2__0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl" - // InternalEntities.g:14984:1: rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl : ( ',' ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:14988:1: ( ( ',' ) ) - // InternalEntities.g:14989:1: ( ',' ) - { - // InternalEntities.g:14989:1: ( ',' ) - // InternalEntities.g:14990:2: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2_2__0__Impl" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2_2__1" - // InternalEntities.g:14999:1: rule__JvmParameterizedTypeReference__Group_1_4_2_2__1 : rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15003:1: ( rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl ) - // InternalEntities.g:15004:2: rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2_2__1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl" - // InternalEntities.g:15010:1: rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl : ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 ) ) ; - public final void rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15014:1: ( ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 ) ) ) - // InternalEntities.g:15015:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 ) ) - { - // InternalEntities.g:15015:1: ( ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 ) ) - // InternalEntities.g:15016:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_2_1()); - } - // InternalEntities.g:15017:2: ( rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 ) - // InternalEntities.g:15017:3: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsAssignment_1_4_2_2_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__Group_1_4_2_2__1__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group__0" - // InternalEntities.g:15026:1: rule__JvmWildcardTypeReference__Group__0 : rule__JvmWildcardTypeReference__Group__0__Impl rule__JvmWildcardTypeReference__Group__1 ; - public final void rule__JvmWildcardTypeReference__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15030:1: ( rule__JvmWildcardTypeReference__Group__0__Impl rule__JvmWildcardTypeReference__Group__1 ) - // InternalEntities.g:15031:2: rule__JvmWildcardTypeReference__Group__0__Impl rule__JvmWildcardTypeReference__Group__1 - { - pushFollow(FOLLOW_53); - rule__JvmWildcardTypeReference__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group__0" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group__0__Impl" - // InternalEntities.g:15038:1: rule__JvmWildcardTypeReference__Group__0__Impl : ( () ) ; - public final void rule__JvmWildcardTypeReference__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15042:1: ( ( () ) ) - // InternalEntities.g:15043:1: ( () ) - { - // InternalEntities.g:15043:1: ( () ) - // InternalEntities.g:15044:2: () - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0()); - } - // InternalEntities.g:15045:2: () - // InternalEntities.g:15045:3: - { - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0()); - } - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group__0__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group__1" - // InternalEntities.g:15053:1: rule__JvmWildcardTypeReference__Group__1 : rule__JvmWildcardTypeReference__Group__1__Impl rule__JvmWildcardTypeReference__Group__2 ; - public final void rule__JvmWildcardTypeReference__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15057:1: ( rule__JvmWildcardTypeReference__Group__1__Impl rule__JvmWildcardTypeReference__Group__2 ) - // InternalEntities.g:15058:2: rule__JvmWildcardTypeReference__Group__1__Impl rule__JvmWildcardTypeReference__Group__2 - { - pushFollow(FOLLOW_99); - rule__JvmWildcardTypeReference__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group__1" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group__1__Impl" - // InternalEntities.g:15065:1: rule__JvmWildcardTypeReference__Group__1__Impl : ( '?' ) ; - public final void rule__JvmWildcardTypeReference__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15069:1: ( ( '?' ) ) - // InternalEntities.g:15070:1: ( '?' ) - { - // InternalEntities.g:15070:1: ( '?' ) - // InternalEntities.g:15071:2: '?' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); - } - match(input,83,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group__1__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group__2" - // InternalEntities.g:15080:1: rule__JvmWildcardTypeReference__Group__2 : rule__JvmWildcardTypeReference__Group__2__Impl ; - public final void rule__JvmWildcardTypeReference__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15084:1: ( rule__JvmWildcardTypeReference__Group__2__Impl ) - // InternalEntities.g:15085:2: rule__JvmWildcardTypeReference__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group__2" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group__2__Impl" - // InternalEntities.g:15091:1: rule__JvmWildcardTypeReference__Group__2__Impl : ( ( rule__JvmWildcardTypeReference__Alternatives_2 )? ) ; - public final void rule__JvmWildcardTypeReference__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15095:1: ( ( ( rule__JvmWildcardTypeReference__Alternatives_2 )? ) ) - // InternalEntities.g:15096:1: ( ( rule__JvmWildcardTypeReference__Alternatives_2 )? ) - { - // InternalEntities.g:15096:1: ( ( rule__JvmWildcardTypeReference__Alternatives_2 )? ) - // InternalEntities.g:15097:2: ( rule__JvmWildcardTypeReference__Alternatives_2 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getAlternatives_2()); - } - // InternalEntities.g:15098:2: ( rule__JvmWildcardTypeReference__Alternatives_2 )? - int alt123=2; - int LA123_0 = input.LA(1); - - if ( (LA123_0==45||LA123_0==49) ) { - alt123=1; - } - switch (alt123) { - case 1 : - // InternalEntities.g:15098:3: rule__JvmWildcardTypeReference__Alternatives_2 - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Alternatives_2(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getAlternatives_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group__2__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__0" - // InternalEntities.g:15107:1: rule__JvmWildcardTypeReference__Group_2_0__0 : rule__JvmWildcardTypeReference__Group_2_0__0__Impl rule__JvmWildcardTypeReference__Group_2_0__1 ; - public final void rule__JvmWildcardTypeReference__Group_2_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15111:1: ( rule__JvmWildcardTypeReference__Group_2_0__0__Impl rule__JvmWildcardTypeReference__Group_2_0__1 ) - // InternalEntities.g:15112:2: rule__JvmWildcardTypeReference__Group_2_0__0__Impl rule__JvmWildcardTypeReference__Group_2_0__1 - { - pushFollow(FOLLOW_100); - rule__JvmWildcardTypeReference__Group_2_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group_2_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__0" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__0__Impl" - // InternalEntities.g:15119:1: rule__JvmWildcardTypeReference__Group_2_0__0__Impl : ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) ) ; - public final void rule__JvmWildcardTypeReference__Group_2_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15123:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) ) ) - // InternalEntities.g:15124:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) ) - { - // InternalEntities.g:15124:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) ) - // InternalEntities.g:15125:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_0()); - } - // InternalEntities.g:15126:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 ) - // InternalEntities.g:15126:3: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__0__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__1" - // InternalEntities.g:15134:1: rule__JvmWildcardTypeReference__Group_2_0__1 : rule__JvmWildcardTypeReference__Group_2_0__1__Impl ; - public final void rule__JvmWildcardTypeReference__Group_2_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15138:1: ( rule__JvmWildcardTypeReference__Group_2_0__1__Impl ) - // InternalEntities.g:15139:2: rule__JvmWildcardTypeReference__Group_2_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group_2_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__1" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_0__1__Impl" - // InternalEntities.g:15145:1: rule__JvmWildcardTypeReference__Group_2_0__1__Impl : ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* ) ; - public final void rule__JvmWildcardTypeReference__Group_2_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15149:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* ) ) - // InternalEntities.g:15150:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* ) - { - // InternalEntities.g:15150:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* ) - // InternalEntities.g:15151:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_1()); - } - // InternalEntities.g:15152:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 )* - loop124: - do { - int alt124=2; - int LA124_0 = input.LA(1); - - if ( (LA124_0==84) ) { - alt124=1; - } - - - switch (alt124) { - case 1 : - // InternalEntities.g:15152:3: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 - { - pushFollow(FOLLOW_101); - rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop124; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_0__1__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_1__0" - // InternalEntities.g:15161:1: rule__JvmWildcardTypeReference__Group_2_1__0 : rule__JvmWildcardTypeReference__Group_2_1__0__Impl rule__JvmWildcardTypeReference__Group_2_1__1 ; - public final void rule__JvmWildcardTypeReference__Group_2_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15165:1: ( rule__JvmWildcardTypeReference__Group_2_1__0__Impl rule__JvmWildcardTypeReference__Group_2_1__1 ) - // InternalEntities.g:15166:2: rule__JvmWildcardTypeReference__Group_2_1__0__Impl rule__JvmWildcardTypeReference__Group_2_1__1 - { - pushFollow(FOLLOW_100); - rule__JvmWildcardTypeReference__Group_2_1__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group_2_1__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_1__0" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_1__0__Impl" - // InternalEntities.g:15173:1: rule__JvmWildcardTypeReference__Group_2_1__0__Impl : ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) ) ; - public final void rule__JvmWildcardTypeReference__Group_2_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15177:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) ) ) - // InternalEntities.g:15178:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) ) - { - // InternalEntities.g:15178:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) ) - // InternalEntities.g:15179:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_0()); - } - // InternalEntities.g:15180:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 ) - // InternalEntities.g:15180:3: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_1__0__Impl" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_1__1" - // InternalEntities.g:15188:1: rule__JvmWildcardTypeReference__Group_2_1__1 : rule__JvmWildcardTypeReference__Group_2_1__1__Impl ; - public final void rule__JvmWildcardTypeReference__Group_2_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15192:1: ( rule__JvmWildcardTypeReference__Group_2_1__1__Impl ) - // InternalEntities.g:15193:2: rule__JvmWildcardTypeReference__Group_2_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmWildcardTypeReference__Group_2_1__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_1__1" - - - // $ANTLR start "rule__JvmWildcardTypeReference__Group_2_1__1__Impl" - // InternalEntities.g:15199:1: rule__JvmWildcardTypeReference__Group_2_1__1__Impl : ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 )* ) ; - public final void rule__JvmWildcardTypeReference__Group_2_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15203:1: ( ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 )* ) ) - // InternalEntities.g:15204:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 )* ) - { - // InternalEntities.g:15204:1: ( ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 )* ) - // InternalEntities.g:15205:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 )* - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_1()); - } - // InternalEntities.g:15206:2: ( rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 )* - loop125: - do { - int alt125=2; - int LA125_0 = input.LA(1); - - if ( (LA125_0==84) ) { - alt125=1; - } - - - switch (alt125) { - case 1 : - // InternalEntities.g:15206:3: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 - { - pushFollow(FOLLOW_101); - rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - default : - break loop125; - } - } while (true); - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsAssignment_2_1_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__Group_2_1__1__Impl" - - - // $ANTLR start "rule__JvmUpperBound__Group__0" - // InternalEntities.g:15215:1: rule__JvmUpperBound__Group__0 : rule__JvmUpperBound__Group__0__Impl rule__JvmUpperBound__Group__1 ; - public final void rule__JvmUpperBound__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15219:1: ( rule__JvmUpperBound__Group__0__Impl rule__JvmUpperBound__Group__1 ) - // InternalEntities.g:15220:2: rule__JvmUpperBound__Group__0__Impl rule__JvmUpperBound__Group__1 - { - pushFollow(FOLLOW_14); - rule__JvmUpperBound__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmUpperBound__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBound__Group__0" - - - // $ANTLR start "rule__JvmUpperBound__Group__0__Impl" - // InternalEntities.g:15227:1: rule__JvmUpperBound__Group__0__Impl : ( 'extends' ) ; - public final void rule__JvmUpperBound__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15231:1: ( ( 'extends' ) ) - // InternalEntities.g:15232:1: ( 'extends' ) - { - // InternalEntities.g:15232:1: ( 'extends' ) - // InternalEntities.g:15233:2: 'extends' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); - } - match(input,45,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBound__Group__0__Impl" - - - // $ANTLR start "rule__JvmUpperBound__Group__1" - // InternalEntities.g:15242:1: rule__JvmUpperBound__Group__1 : rule__JvmUpperBound__Group__1__Impl ; - public final void rule__JvmUpperBound__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15246:1: ( rule__JvmUpperBound__Group__1__Impl ) - // InternalEntities.g:15247:2: rule__JvmUpperBound__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmUpperBound__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBound__Group__1" - - - // $ANTLR start "rule__JvmUpperBound__Group__1__Impl" - // InternalEntities.g:15253:1: rule__JvmUpperBound__Group__1__Impl : ( ( rule__JvmUpperBound__TypeReferenceAssignment_1 ) ) ; - public final void rule__JvmUpperBound__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15257:1: ( ( ( rule__JvmUpperBound__TypeReferenceAssignment_1 ) ) ) - // InternalEntities.g:15258:1: ( ( rule__JvmUpperBound__TypeReferenceAssignment_1 ) ) - { - // InternalEntities.g:15258:1: ( ( rule__JvmUpperBound__TypeReferenceAssignment_1 ) ) - // InternalEntities.g:15259:2: ( rule__JvmUpperBound__TypeReferenceAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceAssignment_1()); - } - // InternalEntities.g:15260:2: ( rule__JvmUpperBound__TypeReferenceAssignment_1 ) - // InternalEntities.g:15260:3: rule__JvmUpperBound__TypeReferenceAssignment_1 - { - pushFollow(FOLLOW_2); - rule__JvmUpperBound__TypeReferenceAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBound__Group__1__Impl" - - - // $ANTLR start "rule__JvmUpperBoundAnded__Group__0" - // InternalEntities.g:15269:1: rule__JvmUpperBoundAnded__Group__0 : rule__JvmUpperBoundAnded__Group__0__Impl rule__JvmUpperBoundAnded__Group__1 ; - public final void rule__JvmUpperBoundAnded__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15273:1: ( rule__JvmUpperBoundAnded__Group__0__Impl rule__JvmUpperBoundAnded__Group__1 ) - // InternalEntities.g:15274:2: rule__JvmUpperBoundAnded__Group__0__Impl rule__JvmUpperBoundAnded__Group__1 - { - pushFollow(FOLLOW_14); - rule__JvmUpperBoundAnded__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmUpperBoundAnded__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBoundAnded__Group__0" - - - // $ANTLR start "rule__JvmUpperBoundAnded__Group__0__Impl" - // InternalEntities.g:15281:1: rule__JvmUpperBoundAnded__Group__0__Impl : ( '&' ) ; - public final void rule__JvmUpperBoundAnded__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15285:1: ( ( '&' ) ) - // InternalEntities.g:15286:1: ( '&' ) - { - // InternalEntities.g:15286:1: ( '&' ) - // InternalEntities.g:15287:2: '&' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); - } - match(input,84,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBoundAnded__Group__0__Impl" - - - // $ANTLR start "rule__JvmUpperBoundAnded__Group__1" - // InternalEntities.g:15296:1: rule__JvmUpperBoundAnded__Group__1 : rule__JvmUpperBoundAnded__Group__1__Impl ; - public final void rule__JvmUpperBoundAnded__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15300:1: ( rule__JvmUpperBoundAnded__Group__1__Impl ) - // InternalEntities.g:15301:2: rule__JvmUpperBoundAnded__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmUpperBoundAnded__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBoundAnded__Group__1" - - - // $ANTLR start "rule__JvmUpperBoundAnded__Group__1__Impl" - // InternalEntities.g:15307:1: rule__JvmUpperBoundAnded__Group__1__Impl : ( ( rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 ) ) ; - public final void rule__JvmUpperBoundAnded__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15311:1: ( ( ( rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 ) ) ) - // InternalEntities.g:15312:1: ( ( rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 ) ) - { - // InternalEntities.g:15312:1: ( ( rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 ) ) - // InternalEntities.g:15313:2: ( rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceAssignment_1()); - } - // InternalEntities.g:15314:2: ( rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 ) - // InternalEntities.g:15314:3: rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 - { - pushFollow(FOLLOW_2); - rule__JvmUpperBoundAnded__TypeReferenceAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBoundAnded__Group__1__Impl" - - - // $ANTLR start "rule__JvmLowerBound__Group__0" - // InternalEntities.g:15323:1: rule__JvmLowerBound__Group__0 : rule__JvmLowerBound__Group__0__Impl rule__JvmLowerBound__Group__1 ; - public final void rule__JvmLowerBound__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15327:1: ( rule__JvmLowerBound__Group__0__Impl rule__JvmLowerBound__Group__1 ) - // InternalEntities.g:15328:2: rule__JvmLowerBound__Group__0__Impl rule__JvmLowerBound__Group__1 - { - pushFollow(FOLLOW_14); - rule__JvmLowerBound__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmLowerBound__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBound__Group__0" - - - // $ANTLR start "rule__JvmLowerBound__Group__0__Impl" - // InternalEntities.g:15335:1: rule__JvmLowerBound__Group__0__Impl : ( 'super' ) ; - public final void rule__JvmLowerBound__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15339:1: ( ( 'super' ) ) - // InternalEntities.g:15340:1: ( 'super' ) - { - // InternalEntities.g:15340:1: ( 'super' ) - // InternalEntities.g:15341:2: 'super' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); - } - match(input,49,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBound__Group__0__Impl" - - - // $ANTLR start "rule__JvmLowerBound__Group__1" - // InternalEntities.g:15350:1: rule__JvmLowerBound__Group__1 : rule__JvmLowerBound__Group__1__Impl ; - public final void rule__JvmLowerBound__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15354:1: ( rule__JvmLowerBound__Group__1__Impl ) - // InternalEntities.g:15355:2: rule__JvmLowerBound__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmLowerBound__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBound__Group__1" - - - // $ANTLR start "rule__JvmLowerBound__Group__1__Impl" - // InternalEntities.g:15361:1: rule__JvmLowerBound__Group__1__Impl : ( ( rule__JvmLowerBound__TypeReferenceAssignment_1 ) ) ; - public final void rule__JvmLowerBound__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15365:1: ( ( ( rule__JvmLowerBound__TypeReferenceAssignment_1 ) ) ) - // InternalEntities.g:15366:1: ( ( rule__JvmLowerBound__TypeReferenceAssignment_1 ) ) - { - // InternalEntities.g:15366:1: ( ( rule__JvmLowerBound__TypeReferenceAssignment_1 ) ) - // InternalEntities.g:15367:2: ( rule__JvmLowerBound__TypeReferenceAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceAssignment_1()); - } - // InternalEntities.g:15368:2: ( rule__JvmLowerBound__TypeReferenceAssignment_1 ) - // InternalEntities.g:15368:3: rule__JvmLowerBound__TypeReferenceAssignment_1 - { - pushFollow(FOLLOW_2); - rule__JvmLowerBound__TypeReferenceAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBound__Group__1__Impl" - - - // $ANTLR start "rule__JvmLowerBoundAnded__Group__0" - // InternalEntities.g:15377:1: rule__JvmLowerBoundAnded__Group__0 : rule__JvmLowerBoundAnded__Group__0__Impl rule__JvmLowerBoundAnded__Group__1 ; - public final void rule__JvmLowerBoundAnded__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15381:1: ( rule__JvmLowerBoundAnded__Group__0__Impl rule__JvmLowerBoundAnded__Group__1 ) - // InternalEntities.g:15382:2: rule__JvmLowerBoundAnded__Group__0__Impl rule__JvmLowerBoundAnded__Group__1 - { - pushFollow(FOLLOW_14); - rule__JvmLowerBoundAnded__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__JvmLowerBoundAnded__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBoundAnded__Group__0" - - - // $ANTLR start "rule__JvmLowerBoundAnded__Group__0__Impl" - // InternalEntities.g:15389:1: rule__JvmLowerBoundAnded__Group__0__Impl : ( '&' ) ; - public final void rule__JvmLowerBoundAnded__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15393:1: ( ( '&' ) ) - // InternalEntities.g:15394:1: ( '&' ) - { - // InternalEntities.g:15394:1: ( '&' ) - // InternalEntities.g:15395:2: '&' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); - } - match(input,84,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBoundAnded__Group__0__Impl" - - - // $ANTLR start "rule__JvmLowerBoundAnded__Group__1" - // InternalEntities.g:15404:1: rule__JvmLowerBoundAnded__Group__1 : rule__JvmLowerBoundAnded__Group__1__Impl ; - public final void rule__JvmLowerBoundAnded__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15408:1: ( rule__JvmLowerBoundAnded__Group__1__Impl ) - // InternalEntities.g:15409:2: rule__JvmLowerBoundAnded__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__JvmLowerBoundAnded__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBoundAnded__Group__1" - - - // $ANTLR start "rule__JvmLowerBoundAnded__Group__1__Impl" - // InternalEntities.g:15415:1: rule__JvmLowerBoundAnded__Group__1__Impl : ( ( rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 ) ) ; - public final void rule__JvmLowerBoundAnded__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15419:1: ( ( ( rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 ) ) ) - // InternalEntities.g:15420:1: ( ( rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 ) ) - { - // InternalEntities.g:15420:1: ( ( rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 ) ) - // InternalEntities.g:15421:2: ( rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceAssignment_1()); - } - // InternalEntities.g:15422:2: ( rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 ) - // InternalEntities.g:15422:3: rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 - { - pushFollow(FOLLOW_2); - rule__JvmLowerBoundAnded__TypeReferenceAssignment_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceAssignment_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBoundAnded__Group__1__Impl" - - - // $ANTLR start "rule__QualifiedNameWithWildcard__Group__0" - // InternalEntities.g:15431:1: rule__QualifiedNameWithWildcard__Group__0 : rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 ; - public final void rule__QualifiedNameWithWildcard__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15435:1: ( rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 ) - // InternalEntities.g:15436:2: rule__QualifiedNameWithWildcard__Group__0__Impl rule__QualifiedNameWithWildcard__Group__1 - { - pushFollow(FOLLOW_96); - rule__QualifiedNameWithWildcard__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__QualifiedNameWithWildcard__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameWithWildcard__Group__0" - - - // $ANTLR start "rule__QualifiedNameWithWildcard__Group__0__Impl" - // InternalEntities.g:15443:1: rule__QualifiedNameWithWildcard__Group__0__Impl : ( ruleQualifiedName ) ; - public final void rule__QualifiedNameWithWildcard__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15447:1: ( ( ruleQualifiedName ) ) - // InternalEntities.g:15448:1: ( ruleQualifiedName ) - { - // InternalEntities.g:15448:1: ( ruleQualifiedName ) - // InternalEntities.g:15449:2: ruleQualifiedName - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameWithWildcard__Group__0__Impl" - - - // $ANTLR start "rule__QualifiedNameWithWildcard__Group__1" - // InternalEntities.g:15458:1: rule__QualifiedNameWithWildcard__Group__1 : rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 ; - public final void rule__QualifiedNameWithWildcard__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15462:1: ( rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 ) - // InternalEntities.g:15463:2: rule__QualifiedNameWithWildcard__Group__1__Impl rule__QualifiedNameWithWildcard__Group__2 - { - pushFollow(FOLLOW_102); - rule__QualifiedNameWithWildcard__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__QualifiedNameWithWildcard__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameWithWildcard__Group__1" - - - // $ANTLR start "rule__QualifiedNameWithWildcard__Group__1__Impl" - // InternalEntities.g:15470:1: rule__QualifiedNameWithWildcard__Group__1__Impl : ( '.' ) ; - public final void rule__QualifiedNameWithWildcard__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15474:1: ( ( '.' ) ) - // InternalEntities.g:15475:1: ( '.' ) - { - // InternalEntities.g:15475:1: ( '.' ) - // InternalEntities.g:15476:2: '.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); - } - match(input,43,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameWithWildcard__Group__1__Impl" - - - // $ANTLR start "rule__QualifiedNameWithWildcard__Group__2" - // InternalEntities.g:15485:1: rule__QualifiedNameWithWildcard__Group__2 : rule__QualifiedNameWithWildcard__Group__2__Impl ; - public final void rule__QualifiedNameWithWildcard__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15489:1: ( rule__QualifiedNameWithWildcard__Group__2__Impl ) - // InternalEntities.g:15490:2: rule__QualifiedNameWithWildcard__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedNameWithWildcard__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameWithWildcard__Group__2" - - - // $ANTLR start "rule__QualifiedNameWithWildcard__Group__2__Impl" - // InternalEntities.g:15496:1: rule__QualifiedNameWithWildcard__Group__2__Impl : ( '*' ) ; - public final void rule__QualifiedNameWithWildcard__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15500:1: ( ( '*' ) ) - // InternalEntities.g:15501:1: ( '*' ) - { - // InternalEntities.g:15501:1: ( '*' ) - // InternalEntities.g:15502:2: '*' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); - } - match(input,36,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameWithWildcard__Group__2__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group__0" - // InternalEntities.g:15512:1: rule__XImportDeclaration__Group__0 : rule__XImportDeclaration__Group__0__Impl rule__XImportDeclaration__Group__1 ; - public final void rule__XImportDeclaration__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15516:1: ( rule__XImportDeclaration__Group__0__Impl rule__XImportDeclaration__Group__1 ) - // InternalEntities.g:15517:2: rule__XImportDeclaration__Group__0__Impl rule__XImportDeclaration__Group__1 - { - pushFollow(FOLLOW_103); - rule__XImportDeclaration__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group__0" - - - // $ANTLR start "rule__XImportDeclaration__Group__0__Impl" - // InternalEntities.g:15524:1: rule__XImportDeclaration__Group__0__Impl : ( 'import' ) ; - public final void rule__XImportDeclaration__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15528:1: ( ( 'import' ) ) - // InternalEntities.g:15529:1: ( 'import' ) - { - // InternalEntities.g:15529:1: ( 'import' ) - // InternalEntities.g:15530:2: 'import' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); - } - match(input,47,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group__0__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group__1" - // InternalEntities.g:15539:1: rule__XImportDeclaration__Group__1 : rule__XImportDeclaration__Group__1__Impl rule__XImportDeclaration__Group__2 ; - public final void rule__XImportDeclaration__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15543:1: ( rule__XImportDeclaration__Group__1__Impl rule__XImportDeclaration__Group__2 ) - // InternalEntities.g:15544:2: rule__XImportDeclaration__Group__1__Impl rule__XImportDeclaration__Group__2 - { - pushFollow(FOLLOW_65); - rule__XImportDeclaration__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group__1" - - - // $ANTLR start "rule__XImportDeclaration__Group__1__Impl" - // InternalEntities.g:15551:1: rule__XImportDeclaration__Group__1__Impl : ( ( rule__XImportDeclaration__Alternatives_1 ) ) ; - public final void rule__XImportDeclaration__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15555:1: ( ( ( rule__XImportDeclaration__Alternatives_1 ) ) ) - // InternalEntities.g:15556:1: ( ( rule__XImportDeclaration__Alternatives_1 ) ) - { - // InternalEntities.g:15556:1: ( ( rule__XImportDeclaration__Alternatives_1 ) ) - // InternalEntities.g:15557:2: ( rule__XImportDeclaration__Alternatives_1 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getAlternatives_1()); - } - // InternalEntities.g:15558:2: ( rule__XImportDeclaration__Alternatives_1 ) - // InternalEntities.g:15558:3: rule__XImportDeclaration__Alternatives_1 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getAlternatives_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group__1__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group__2" - // InternalEntities.g:15566:1: rule__XImportDeclaration__Group__2 : rule__XImportDeclaration__Group__2__Impl ; - public final void rule__XImportDeclaration__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15570:1: ( rule__XImportDeclaration__Group__2__Impl ) - // InternalEntities.g:15571:2: rule__XImportDeclaration__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group__2__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group__2" - - - // $ANTLR start "rule__XImportDeclaration__Group__2__Impl" - // InternalEntities.g:15577:1: rule__XImportDeclaration__Group__2__Impl : ( ( ';' )? ) ; - public final void rule__XImportDeclaration__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15581:1: ( ( ( ';' )? ) ) - // InternalEntities.g:15582:1: ( ( ';' )? ) - { - // InternalEntities.g:15582:1: ( ( ';' )? ) - // InternalEntities.g:15583:2: ( ';' )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); - } - // InternalEntities.g:15584:2: ( ';' )? - int alt126=2; - int LA126_0 = input.LA(1); - - if ( (LA126_0==65) ) { - alt126=1; - } - switch (alt126) { - case 1 : - // InternalEntities.g:15584:3: ';' - { - match(input,65,FOLLOW_2); if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group__2__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__0" - // InternalEntities.g:15593:1: rule__XImportDeclaration__Group_1_0__0 : rule__XImportDeclaration__Group_1_0__0__Impl rule__XImportDeclaration__Group_1_0__1 ; - public final void rule__XImportDeclaration__Group_1_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15597:1: ( rule__XImportDeclaration__Group_1_0__0__Impl rule__XImportDeclaration__Group_1_0__1 ) - // InternalEntities.g:15598:2: rule__XImportDeclaration__Group_1_0__0__Impl rule__XImportDeclaration__Group_1_0__1 - { - pushFollow(FOLLOW_104); - rule__XImportDeclaration__Group_1_0__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group_1_0__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__0" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__0__Impl" - // InternalEntities.g:15605:1: rule__XImportDeclaration__Group_1_0__0__Impl : ( ( rule__XImportDeclaration__StaticAssignment_1_0_0 ) ) ; - public final void rule__XImportDeclaration__Group_1_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15609:1: ( ( ( rule__XImportDeclaration__StaticAssignment_1_0_0 ) ) ) - // InternalEntities.g:15610:1: ( ( rule__XImportDeclaration__StaticAssignment_1_0_0 ) ) - { - // InternalEntities.g:15610:1: ( ( rule__XImportDeclaration__StaticAssignment_1_0_0 ) ) - // InternalEntities.g:15611:2: ( rule__XImportDeclaration__StaticAssignment_1_0_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getStaticAssignment_1_0_0()); - } - // InternalEntities.g:15612:2: ( rule__XImportDeclaration__StaticAssignment_1_0_0 ) - // InternalEntities.g:15612:3: rule__XImportDeclaration__StaticAssignment_1_0_0 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__StaticAssignment_1_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getStaticAssignment_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__0__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__1" - // InternalEntities.g:15620:1: rule__XImportDeclaration__Group_1_0__1 : rule__XImportDeclaration__Group_1_0__1__Impl rule__XImportDeclaration__Group_1_0__2 ; - public final void rule__XImportDeclaration__Group_1_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15624:1: ( rule__XImportDeclaration__Group_1_0__1__Impl rule__XImportDeclaration__Group_1_0__2 ) - // InternalEntities.g:15625:2: rule__XImportDeclaration__Group_1_0__1__Impl rule__XImportDeclaration__Group_1_0__2 - { - pushFollow(FOLLOW_104); - rule__XImportDeclaration__Group_1_0__1__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group_1_0__2(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__1" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__1__Impl" - // InternalEntities.g:15632:1: rule__XImportDeclaration__Group_1_0__1__Impl : ( ( rule__XImportDeclaration__ExtensionAssignment_1_0_1 )? ) ; - public final void rule__XImportDeclaration__Group_1_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15636:1: ( ( ( rule__XImportDeclaration__ExtensionAssignment_1_0_1 )? ) ) - // InternalEntities.g:15637:1: ( ( rule__XImportDeclaration__ExtensionAssignment_1_0_1 )? ) - { - // InternalEntities.g:15637:1: ( ( rule__XImportDeclaration__ExtensionAssignment_1_0_1 )? ) - // InternalEntities.g:15638:2: ( rule__XImportDeclaration__ExtensionAssignment_1_0_1 )? - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getExtensionAssignment_1_0_1()); - } - // InternalEntities.g:15639:2: ( rule__XImportDeclaration__ExtensionAssignment_1_0_1 )? - int alt127=2; - int LA127_0 = input.LA(1); - - if ( (LA127_0==48) ) { - alt127=1; - } - switch (alt127) { - case 1 : - // InternalEntities.g:15639:3: rule__XImportDeclaration__ExtensionAssignment_1_0_1 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__ExtensionAssignment_1_0_1(); - - state._fsp--; - if (state.failed) return ; - - } - break; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getExtensionAssignment_1_0_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__1__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__2" - // InternalEntities.g:15647:1: rule__XImportDeclaration__Group_1_0__2 : rule__XImportDeclaration__Group_1_0__2__Impl rule__XImportDeclaration__Group_1_0__3 ; - public final void rule__XImportDeclaration__Group_1_0__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15651:1: ( rule__XImportDeclaration__Group_1_0__2__Impl rule__XImportDeclaration__Group_1_0__3 ) - // InternalEntities.g:15652:2: rule__XImportDeclaration__Group_1_0__2__Impl rule__XImportDeclaration__Group_1_0__3 - { - pushFollow(FOLLOW_105); - rule__XImportDeclaration__Group_1_0__2__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group_1_0__3(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__2" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__2__Impl" - // InternalEntities.g:15659:1: rule__XImportDeclaration__Group_1_0__2__Impl : ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) ; - public final void rule__XImportDeclaration__Group_1_0__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15663:1: ( ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) ) - // InternalEntities.g:15664:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) - { - // InternalEntities.g:15664:1: ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) ) - // InternalEntities.g:15665:2: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); - } - // InternalEntities.g:15666:2: ( rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 ) - // InternalEntities.g:15666:3: rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__ImportedTypeAssignment_1_0_2(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedTypeAssignment_1_0_2()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__2__Impl" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__3" - // InternalEntities.g:15674:1: rule__XImportDeclaration__Group_1_0__3 : rule__XImportDeclaration__Group_1_0__3__Impl ; - public final void rule__XImportDeclaration__Group_1_0__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15678:1: ( rule__XImportDeclaration__Group_1_0__3__Impl ) - // InternalEntities.g:15679:2: rule__XImportDeclaration__Group_1_0__3__Impl - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Group_1_0__3__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__3" - - - // $ANTLR start "rule__XImportDeclaration__Group_1_0__3__Impl" - // InternalEntities.g:15685:1: rule__XImportDeclaration__Group_1_0__3__Impl : ( ( rule__XImportDeclaration__Alternatives_1_0_3 ) ) ; - public final void rule__XImportDeclaration__Group_1_0__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15689:1: ( ( ( rule__XImportDeclaration__Alternatives_1_0_3 ) ) ) - // InternalEntities.g:15690:1: ( ( rule__XImportDeclaration__Alternatives_1_0_3 ) ) - { - // InternalEntities.g:15690:1: ( ( rule__XImportDeclaration__Alternatives_1_0_3 ) ) - // InternalEntities.g:15691:2: ( rule__XImportDeclaration__Alternatives_1_0_3 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getAlternatives_1_0_3()); - } - // InternalEntities.g:15692:2: ( rule__XImportDeclaration__Alternatives_1_0_3 ) - // InternalEntities.g:15692:3: rule__XImportDeclaration__Alternatives_1_0_3 - { - pushFollow(FOLLOW_2); - rule__XImportDeclaration__Alternatives_1_0_3(); - - state._fsp--; - if (state.failed) return ; - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getAlternatives_1_0_3()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__Group_1_0__3__Impl" - - - // $ANTLR start "rule__QualifiedNameInStaticImport__Group__0" - // InternalEntities.g:15701:1: rule__QualifiedNameInStaticImport__Group__0 : rule__QualifiedNameInStaticImport__Group__0__Impl rule__QualifiedNameInStaticImport__Group__1 ; - public final void rule__QualifiedNameInStaticImport__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15705:1: ( rule__QualifiedNameInStaticImport__Group__0__Impl rule__QualifiedNameInStaticImport__Group__1 ) - // InternalEntities.g:15706:2: rule__QualifiedNameInStaticImport__Group__0__Impl rule__QualifiedNameInStaticImport__Group__1 - { - pushFollow(FOLLOW_96); - rule__QualifiedNameInStaticImport__Group__0__Impl(); - - state._fsp--; - if (state.failed) return ; - pushFollow(FOLLOW_2); - rule__QualifiedNameInStaticImport__Group__1(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameInStaticImport__Group__0" - - - // $ANTLR start "rule__QualifiedNameInStaticImport__Group__0__Impl" - // InternalEntities.g:15713:1: rule__QualifiedNameInStaticImport__Group__0__Impl : ( ruleValidID ) ; - public final void rule__QualifiedNameInStaticImport__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15717:1: ( ( ruleValidID ) ) - // InternalEntities.g:15718:1: ( ruleValidID ) - { - // InternalEntities.g:15718:1: ( ruleValidID ) - // InternalEntities.g:15719:2: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameInStaticImport__Group__0__Impl" - - - // $ANTLR start "rule__QualifiedNameInStaticImport__Group__1" - // InternalEntities.g:15728:1: rule__QualifiedNameInStaticImport__Group__1 : rule__QualifiedNameInStaticImport__Group__1__Impl ; - public final void rule__QualifiedNameInStaticImport__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15732:1: ( rule__QualifiedNameInStaticImport__Group__1__Impl ) - // InternalEntities.g:15733:2: rule__QualifiedNameInStaticImport__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedNameInStaticImport__Group__1__Impl(); - - state._fsp--; - if (state.failed) return ; - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameInStaticImport__Group__1" - - - // $ANTLR start "rule__QualifiedNameInStaticImport__Group__1__Impl" - // InternalEntities.g:15739:1: rule__QualifiedNameInStaticImport__Group__1__Impl : ( '.' ) ; - public final void rule__QualifiedNameInStaticImport__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15743:1: ( ( '.' ) ) - // InternalEntities.g:15744:1: ( '.' ) - { - // InternalEntities.g:15744:1: ( '.' ) - // InternalEntities.g:15745:2: '.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); - } - match(input,43,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedNameInStaticImport__Group__1__Impl" - - - // $ANTLR start "rule__Entities__ImportSectionAssignment_0" - // InternalEntities.g:15755:1: rule__Entities__ImportSectionAssignment_0 : ( ruleXImportSection ) ; - public final void rule__Entities__ImportSectionAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15759:1: ( ( ruleXImportSection ) ) - // InternalEntities.g:15760:2: ( ruleXImportSection ) - { - // InternalEntities.g:15760:2: ( ruleXImportSection ) - // InternalEntities.g:15761:3: ruleXImportSection - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0()); - } - pushFollow(FOLLOW_2); - ruleXImportSection(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entities__ImportSectionAssignment_0" - - - // $ANTLR start "rule__Entities__ElementsAssignment_1" - // InternalEntities.g:15770:1: rule__Entities__ElementsAssignment_1 : ( ruleAbstractElement ) ; - public final void rule__Entities__ElementsAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15774:1: ( ( ruleAbstractElement ) ) - // InternalEntities.g:15775:2: ( ruleAbstractElement ) - { - // InternalEntities.g:15775:2: ( ruleAbstractElement ) - // InternalEntities.g:15776:3: ruleAbstractElement - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleAbstractElement(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entities__ElementsAssignment_1" - - - // $ANTLR start "rule__PackageDeclaration__NameAssignment_1" - // InternalEntities.g:15785:1: rule__PackageDeclaration__NameAssignment_1 : ( ruleQualifiedName ) ; - public final void rule__PackageDeclaration__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15789:1: ( ( ruleQualifiedName ) ) - // InternalEntities.g:15790:2: ( ruleQualifiedName ) - { - // InternalEntities.g:15790:2: ( ruleQualifiedName ) - // InternalEntities.g:15791:3: ruleQualifiedName - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__NameAssignment_1" - - - // $ANTLR start "rule__PackageDeclaration__ElementsAssignment_3" - // InternalEntities.g:15800:1: rule__PackageDeclaration__ElementsAssignment_3 : ( ruleAbstractElement ) ; - public final void rule__PackageDeclaration__ElementsAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15804:1: ( ( ruleAbstractElement ) ) - // InternalEntities.g:15805:2: ( ruleAbstractElement ) - { - // InternalEntities.g:15805:2: ( ruleAbstractElement ) - // InternalEntities.g:15806:3: ruleAbstractElement - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0()); - } - pushFollow(FOLLOW_2); - ruleAbstractElement(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PackageDeclaration__ElementsAssignment_3" - - - // $ANTLR start "rule__Entity__NameAssignment_1" - // InternalEntities.g:15815:1: rule__Entity__NameAssignment_1 : ( ruleValidID ) ; - public final void rule__Entity__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15819:1: ( ( ruleValidID ) ) - // InternalEntities.g:15820:2: ( ruleValidID ) - { - // InternalEntities.g:15820:2: ( ruleValidID ) - // InternalEntities.g:15821:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__NameAssignment_1" - - - // $ANTLR start "rule__Entity__SuperTypeAssignment_2_1" - // InternalEntities.g:15830:1: rule__Entity__SuperTypeAssignment_2_1 : ( ruleJvmParameterizedTypeReference ) ; - public final void rule__Entity__SuperTypeAssignment_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15834:1: ( ( ruleJvmParameterizedTypeReference ) ) - // InternalEntities.g:15835:2: ( ruleJvmParameterizedTypeReference ) - { - // InternalEntities.g:15835:2: ( ruleJvmParameterizedTypeReference ) - // InternalEntities.g:15836:3: ruleJvmParameterizedTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmParameterizedTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__SuperTypeAssignment_2_1" - - - // $ANTLR start "rule__Entity__FeaturesAssignment_4" - // InternalEntities.g:15845:1: rule__Entity__FeaturesAssignment_4 : ( ruleFeature ) ; - public final void rule__Entity__FeaturesAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15849:1: ( ( ruleFeature ) ) - // InternalEntities.g:15850:2: ( ruleFeature ) - { - // InternalEntities.g:15850:2: ( ruleFeature ) - // InternalEntities.g:15851:3: ruleFeature - { - if ( state.backtracking==0 ) { - before(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0()); - } - pushFollow(FOLLOW_2); - ruleFeature(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Entity__FeaturesAssignment_4" - - - // $ANTLR start "rule__Property__NameAssignment_0" - // InternalEntities.g:15860:1: rule__Property__NameAssignment_0 : ( ruleValidID ) ; - public final void rule__Property__NameAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15864:1: ( ( ruleValidID ) ) - // InternalEntities.g:15865:2: ( ruleValidID ) - { - // InternalEntities.g:15865:2: ( ruleValidID ) - // InternalEntities.g:15866:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__NameAssignment_0" - - - // $ANTLR start "rule__Property__TypeAssignment_2" - // InternalEntities.g:15875:1: rule__Property__TypeAssignment_2 : ( ruleJvmTypeReference ) ; - public final void rule__Property__TypeAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15879:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:15880:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:15880:2: ( ruleJvmTypeReference ) - // InternalEntities.g:15881:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Property__TypeAssignment_2" - - - // $ANTLR start "rule__Operation__NameAssignment_1" - // InternalEntities.g:15890:1: rule__Operation__NameAssignment_1 : ( ruleValidID ) ; - public final void rule__Operation__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15894:1: ( ( ruleValidID ) ) - // InternalEntities.g:15895:2: ( ruleValidID ) - { - // InternalEntities.g:15895:2: ( ruleValidID ) - // InternalEntities.g:15896:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__NameAssignment_1" - - - // $ANTLR start "rule__Operation__ParamsAssignment_3_0" - // InternalEntities.g:15905:1: rule__Operation__ParamsAssignment_3_0 : ( ruleFullJvmFormalParameter ) ; - public final void rule__Operation__ParamsAssignment_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15909:1: ( ( ruleFullJvmFormalParameter ) ) - // InternalEntities.g:15910:2: ( ruleFullJvmFormalParameter ) - { - // InternalEntities.g:15910:2: ( ruleFullJvmFormalParameter ) - // InternalEntities.g:15911:3: ruleFullJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0()); - } - pushFollow(FOLLOW_2); - ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__ParamsAssignment_3_0" - - - // $ANTLR start "rule__Operation__ParamsAssignment_3_1_1" - // InternalEntities.g:15920:1: rule__Operation__ParamsAssignment_3_1_1 : ( ruleFullJvmFormalParameter ) ; - public final void rule__Operation__ParamsAssignment_3_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15924:1: ( ( ruleFullJvmFormalParameter ) ) - // InternalEntities.g:15925:2: ( ruleFullJvmFormalParameter ) - { - // InternalEntities.g:15925:2: ( ruleFullJvmFormalParameter ) - // InternalEntities.g:15926:3: ruleFullJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__ParamsAssignment_3_1_1" - - - // $ANTLR start "rule__Operation__TypeAssignment_5_1" - // InternalEntities.g:15935:1: rule__Operation__TypeAssignment_5_1 : ( ruleJvmTypeReference ) ; - public final void rule__Operation__TypeAssignment_5_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15939:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:15940:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:15940:2: ( ruleJvmTypeReference ) - // InternalEntities.g:15941:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__TypeAssignment_5_1" - - - // $ANTLR start "rule__Operation__BodyAssignment_6" - // InternalEntities.g:15950:1: rule__Operation__BodyAssignment_6 : ( ruleXBlockExpression ) ; - public final void rule__Operation__BodyAssignment_6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15954:1: ( ( ruleXBlockExpression ) ) - // InternalEntities.g:15955:2: ( ruleXBlockExpression ) - { - // InternalEntities.g:15955:2: ( ruleXBlockExpression ) - // InternalEntities.g:15956:3: ruleXBlockExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0()); - } - pushFollow(FOLLOW_2); - ruleXBlockExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Operation__BodyAssignment_6" - - - // $ANTLR start "rule__XAssignment__FeatureAssignment_0_1" - // InternalEntities.g:15965:1: rule__XAssignment__FeatureAssignment_0_1 : ( ( ruleFeatureCallID ) ) ; - public final void rule__XAssignment__FeatureAssignment_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15969:1: ( ( ( ruleFeatureCallID ) ) ) - // InternalEntities.g:15970:2: ( ( ruleFeatureCallID ) ) - { - // InternalEntities.g:15970:2: ( ( ruleFeatureCallID ) ) - // InternalEntities.g:15971:3: ( ruleFeatureCallID ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - } - // InternalEntities.g:15972:3: ( ruleFeatureCallID ) - // InternalEntities.g:15973:4: ruleFeatureCallID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__FeatureAssignment_0_1" - - - // $ANTLR start "rule__XAssignment__ValueAssignment_0_3" - // InternalEntities.g:15984:1: rule__XAssignment__ValueAssignment_0_3 : ( ruleXAssignment ) ; - public final void rule__XAssignment__ValueAssignment_0_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:15988:1: ( ( ruleXAssignment ) ) - // InternalEntities.g:15989:2: ( ruleXAssignment ) - { - // InternalEntities.g:15989:2: ( ruleXAssignment ) - // InternalEntities.g:15990:3: ruleXAssignment - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); - } - pushFollow(FOLLOW_2); - ruleXAssignment(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__ValueAssignment_0_3" - - - // $ANTLR start "rule__XAssignment__FeatureAssignment_1_1_0_0_1" - // InternalEntities.g:15999:1: rule__XAssignment__FeatureAssignment_1_1_0_0_1 : ( ( ruleOpMultiAssign ) ) ; - public final void rule__XAssignment__FeatureAssignment_1_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16003:1: ( ( ( ruleOpMultiAssign ) ) ) - // InternalEntities.g:16004:2: ( ( ruleOpMultiAssign ) ) - { - // InternalEntities.g:16004:2: ( ( ruleOpMultiAssign ) ) - // InternalEntities.g:16005:3: ( ruleOpMultiAssign ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - } - // InternalEntities.g:16006:3: ( ruleOpMultiAssign ) - // InternalEntities.g:16007:4: ruleOpMultiAssign - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpMultiAssign(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementOpMultiAssignParserRuleCall_1_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__FeatureAssignment_1_1_0_0_1" - - - // $ANTLR start "rule__XAssignment__RightOperandAssignment_1_1_1" - // InternalEntities.g:16018:1: rule__XAssignment__RightOperandAssignment_1_1_1 : ( ruleXAssignment ) ; - public final void rule__XAssignment__RightOperandAssignment_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16022:1: ( ( ruleXAssignment ) ) - // InternalEntities.g:16023:2: ( ruleXAssignment ) - { - // InternalEntities.g:16023:2: ( ruleXAssignment ) - // InternalEntities.g:16024:3: ruleXAssignment - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXAssignment(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAssignment__RightOperandAssignment_1_1_1" - - - // $ANTLR start "rule__XOrExpression__FeatureAssignment_1_0_0_1" - // InternalEntities.g:16033:1: rule__XOrExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpOr ) ) ; - public final void rule__XOrExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16037:1: ( ( ( ruleOpOr ) ) ) - // InternalEntities.g:16038:2: ( ( ruleOpOr ) ) - { - // InternalEntities.g:16038:2: ( ( ruleOpOr ) ) - // InternalEntities.g:16039:3: ( ruleOpOr ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - // InternalEntities.g:16040:3: ( ruleOpOr ) - // InternalEntities.g:16041:4: ruleOpOr - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementOpOrParserRuleCall_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpOr(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementOpOrParserRuleCall_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__FeatureAssignment_1_0_0_1" - - - // $ANTLR start "rule__XOrExpression__RightOperandAssignment_1_1" - // InternalEntities.g:16052:1: rule__XOrExpression__RightOperandAssignment_1_1 : ( ruleXAndExpression ) ; - public final void rule__XOrExpression__RightOperandAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16056:1: ( ( ruleXAndExpression ) ) - // InternalEntities.g:16057:2: ( ruleXAndExpression ) - { - // InternalEntities.g:16057:2: ( ruleXAndExpression ) - // InternalEntities.g:16058:3: ruleXAndExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXAndExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOrExpression__RightOperandAssignment_1_1" - - - // $ANTLR start "rule__XAndExpression__FeatureAssignment_1_0_0_1" - // InternalEntities.g:16067:1: rule__XAndExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpAnd ) ) ; - public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16071:1: ( ( ( ruleOpAnd ) ) ) - // InternalEntities.g:16072:2: ( ( ruleOpAnd ) ) - { - // InternalEntities.g:16072:2: ( ( ruleOpAnd ) ) - // InternalEntities.g:16073:3: ( ruleOpAnd ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - // InternalEntities.g:16074:3: ( ruleOpAnd ) - // InternalEntities.g:16075:4: ruleOpAnd - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpAnd(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementOpAndParserRuleCall_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__FeatureAssignment_1_0_0_1" - - - // $ANTLR start "rule__XAndExpression__RightOperandAssignment_1_1" - // InternalEntities.g:16086:1: rule__XAndExpression__RightOperandAssignment_1_1 : ( ruleXEqualityExpression ) ; - public final void rule__XAndExpression__RightOperandAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16090:1: ( ( ruleXEqualityExpression ) ) - // InternalEntities.g:16091:2: ( ruleXEqualityExpression ) - { - // InternalEntities.g:16091:2: ( ruleXEqualityExpression ) - // InternalEntities.g:16092:3: ruleXEqualityExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXEqualityExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAndExpression__RightOperandAssignment_1_1" - - - // $ANTLR start "rule__XEqualityExpression__FeatureAssignment_1_0_0_1" - // InternalEntities.g:16101:1: rule__XEqualityExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpEquality ) ) ; - public final void rule__XEqualityExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16105:1: ( ( ( ruleOpEquality ) ) ) - // InternalEntities.g:16106:2: ( ( ruleOpEquality ) ) - { - // InternalEntities.g:16106:2: ( ( ruleOpEquality ) ) - // InternalEntities.g:16107:3: ( ruleOpEquality ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - // InternalEntities.g:16108:3: ( ruleOpEquality ) - // InternalEntities.g:16109:4: ruleOpEquality - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpEquality(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementOpEqualityParserRuleCall_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__FeatureAssignment_1_0_0_1" - - - // $ANTLR start "rule__XEqualityExpression__RightOperandAssignment_1_1" - // InternalEntities.g:16120:1: rule__XEqualityExpression__RightOperandAssignment_1_1 : ( ruleXRelationalExpression ) ; - public final void rule__XEqualityExpression__RightOperandAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16124:1: ( ( ruleXRelationalExpression ) ) - // InternalEntities.g:16125:2: ( ruleXRelationalExpression ) - { - // InternalEntities.g:16125:2: ( ruleXRelationalExpression ) - // InternalEntities.g:16126:3: ruleXRelationalExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXRelationalExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XEqualityExpression__RightOperandAssignment_1_1" - - - // $ANTLR start "rule__XRelationalExpression__TypeAssignment_1_0_1" - // InternalEntities.g:16135:1: rule__XRelationalExpression__TypeAssignment_1_0_1 : ( ruleJvmTypeReference ) ; - public final void rule__XRelationalExpression__TypeAssignment_1_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16139:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:16140:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:16140:2: ( ruleJvmTypeReference ) - // InternalEntities.g:16141:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__TypeAssignment_1_0_1" - - - // $ANTLR start "rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1" - // InternalEntities.g:16150:1: rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1 : ( ( ruleOpCompare ) ) ; - public final void rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16154:1: ( ( ( ruleOpCompare ) ) ) - // InternalEntities.g:16155:2: ( ( ruleOpCompare ) ) - { - // InternalEntities.g:16155:2: ( ( ruleOpCompare ) ) - // InternalEntities.g:16156:3: ( ruleOpCompare ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - } - // InternalEntities.g:16157:3: ( ruleOpCompare ) - // InternalEntities.g:16158:4: ruleOpCompare - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementOpCompareParserRuleCall_1_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpCompare(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementOpCompareParserRuleCall_1_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__FeatureAssignment_1_1_0_0_1" - - - // $ANTLR start "rule__XRelationalExpression__RightOperandAssignment_1_1_1" - // InternalEntities.g:16169:1: rule__XRelationalExpression__RightOperandAssignment_1_1_1 : ( ruleXOtherOperatorExpression ) ; - public final void rule__XRelationalExpression__RightOperandAssignment_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16173:1: ( ( ruleXOtherOperatorExpression ) ) - // InternalEntities.g:16174:2: ( ruleXOtherOperatorExpression ) - { - // InternalEntities.g:16174:2: ( ruleXOtherOperatorExpression ) - // InternalEntities.g:16175:3: ruleXOtherOperatorExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXOtherOperatorExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XRelationalExpression__RightOperandAssignment_1_1_1" - - - // $ANTLR start "rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1" - // InternalEntities.g:16184:1: rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpOther ) ) ; - public final void rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16188:1: ( ( ( ruleOpOther ) ) ) - // InternalEntities.g:16189:2: ( ( ruleOpOther ) ) - { - // InternalEntities.g:16189:2: ( ( ruleOpOther ) ) - // InternalEntities.g:16190:3: ( ruleOpOther ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - // InternalEntities.g:16191:3: ( ruleOpOther ) - // InternalEntities.g:16192:4: ruleOpOther - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementOpOtherParserRuleCall_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpOther(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementOpOtherParserRuleCall_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__FeatureAssignment_1_0_0_1" - - - // $ANTLR start "rule__XOtherOperatorExpression__RightOperandAssignment_1_1" - // InternalEntities.g:16203:1: rule__XOtherOperatorExpression__RightOperandAssignment_1_1 : ( ruleXAdditiveExpression ) ; - public final void rule__XOtherOperatorExpression__RightOperandAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16207:1: ( ( ruleXAdditiveExpression ) ) - // InternalEntities.g:16208:2: ( ruleXAdditiveExpression ) - { - // InternalEntities.g:16208:2: ( ruleXAdditiveExpression ) - // InternalEntities.g:16209:3: ruleXAdditiveExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXAdditiveExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XOtherOperatorExpression__RightOperandAssignment_1_1" - - - // $ANTLR start "rule__XAdditiveExpression__FeatureAssignment_1_0_0_1" - // InternalEntities.g:16218:1: rule__XAdditiveExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpAdd ) ) ; - public final void rule__XAdditiveExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16222:1: ( ( ( ruleOpAdd ) ) ) - // InternalEntities.g:16223:2: ( ( ruleOpAdd ) ) - { - // InternalEntities.g:16223:2: ( ( ruleOpAdd ) ) - // InternalEntities.g:16224:3: ( ruleOpAdd ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - // InternalEntities.g:16225:3: ( ruleOpAdd ) - // InternalEntities.g:16226:4: ruleOpAdd - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpAdd(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementOpAddParserRuleCall_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__FeatureAssignment_1_0_0_1" - - - // $ANTLR start "rule__XAdditiveExpression__RightOperandAssignment_1_1" - // InternalEntities.g:16237:1: rule__XAdditiveExpression__RightOperandAssignment_1_1 : ( ruleXMultiplicativeExpression ) ; - public final void rule__XAdditiveExpression__RightOperandAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16241:1: ( ( ruleXMultiplicativeExpression ) ) - // InternalEntities.g:16242:2: ( ruleXMultiplicativeExpression ) - { - // InternalEntities.g:16242:2: ( ruleXMultiplicativeExpression ) - // InternalEntities.g:16243:3: ruleXMultiplicativeExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXMultiplicativeExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XAdditiveExpression__RightOperandAssignment_1_1" - - - // $ANTLR start "rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1" - // InternalEntities.g:16252:1: rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpMulti ) ) ; - public final void rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16256:1: ( ( ( ruleOpMulti ) ) ) - // InternalEntities.g:16257:2: ( ( ruleOpMulti ) ) - { - // InternalEntities.g:16257:2: ( ( ruleOpMulti ) ) - // InternalEntities.g:16258:3: ( ruleOpMulti ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - // InternalEntities.g:16259:3: ( ruleOpMulti ) - // InternalEntities.g:16260:4: ruleOpMulti - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpMulti(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementOpMultiParserRuleCall_1_0_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__FeatureAssignment_1_0_0_1" - - - // $ANTLR start "rule__XMultiplicativeExpression__RightOperandAssignment_1_1" - // InternalEntities.g:16271:1: rule__XMultiplicativeExpression__RightOperandAssignment_1_1 : ( ruleXUnaryOperation ) ; - public final void rule__XMultiplicativeExpression__RightOperandAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16275:1: ( ( ruleXUnaryOperation ) ) - // InternalEntities.g:16276:2: ( ruleXUnaryOperation ) - { - // InternalEntities.g:16276:2: ( ruleXUnaryOperation ) - // InternalEntities.g:16277:3: ruleXUnaryOperation - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMultiplicativeExpression__RightOperandAssignment_1_1" - - - // $ANTLR start "rule__XUnaryOperation__FeatureAssignment_0_1" - // InternalEntities.g:16286:1: rule__XUnaryOperation__FeatureAssignment_0_1 : ( ( ruleOpUnary ) ) ; - public final void rule__XUnaryOperation__FeatureAssignment_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16290:1: ( ( ( ruleOpUnary ) ) ) - // InternalEntities.g:16291:2: ( ( ruleOpUnary ) ) - { - // InternalEntities.g:16291:2: ( ( ruleOpUnary ) ) - // InternalEntities.g:16292:3: ( ruleOpUnary ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - } - // InternalEntities.g:16293:3: ( ruleOpUnary ) - // InternalEntities.g:16294:4: ruleOpUnary - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpUnary(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementOpUnaryParserRuleCall_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__FeatureAssignment_0_1" - - - // $ANTLR start "rule__XUnaryOperation__OperandAssignment_0_2" - // InternalEntities.g:16305:1: rule__XUnaryOperation__OperandAssignment_0_2 : ( ruleXUnaryOperation ) ; - public final void rule__XUnaryOperation__OperandAssignment_0_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16309:1: ( ( ruleXUnaryOperation ) ) - // InternalEntities.g:16310:2: ( ruleXUnaryOperation ) - { - // InternalEntities.g:16310:2: ( ruleXUnaryOperation ) - // InternalEntities.g:16311:3: ruleXUnaryOperation - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); - } - pushFollow(FOLLOW_2); - ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XUnaryOperation__OperandAssignment_0_2" - - - // $ANTLR start "rule__XCastedExpression__TypeAssignment_1_1" - // InternalEntities.g:16320:1: rule__XCastedExpression__TypeAssignment_1_1 : ( ruleJvmTypeReference ) ; - public final void rule__XCastedExpression__TypeAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16324:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:16325:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:16325:2: ( ruleJvmTypeReference ) - // InternalEntities.g:16326:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCastedExpression__TypeAssignment_1_1" - - - // $ANTLR start "rule__XPostfixOperation__FeatureAssignment_1_0_1" - // InternalEntities.g:16335:1: rule__XPostfixOperation__FeatureAssignment_1_0_1 : ( ( ruleOpPostfix ) ) ; - public final void rule__XPostfixOperation__FeatureAssignment_1_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16339:1: ( ( ( ruleOpPostfix ) ) ) - // InternalEntities.g:16340:2: ( ( ruleOpPostfix ) ) - { - // InternalEntities.g:16340:2: ( ( ruleOpPostfix ) ) - // InternalEntities.g:16341:3: ( ruleOpPostfix ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); - } - // InternalEntities.g:16342:3: ( ruleOpPostfix ) - // InternalEntities.g:16343:4: ruleOpPostfix - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleOpPostfix(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementOpPostfixParserRuleCall_1_0_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XPostfixOperation__FeatureAssignment_1_0_1" - - - // $ANTLR start "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1" - // InternalEntities.g:16354:1: rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 : ( ( '::' ) ) ; - public final void rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16358:1: ( ( ( '::' ) ) ) - // InternalEntities.g:16359:2: ( ( '::' ) ) - { - // InternalEntities.g:16359:2: ( ( '::' ) ) - // InternalEntities.g:16360:3: ( '::' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); - } - // InternalEntities.g:16361:3: ( '::' ) - // InternalEntities.g:16362:4: '::' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); - } - match(input,85,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1" - - - // $ANTLR start "rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2" - // InternalEntities.g:16373:1: rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2 : ( ( ruleFeatureCallID ) ) ; - public final void rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16377:1: ( ( ( ruleFeatureCallID ) ) ) - // InternalEntities.g:16378:2: ( ( ruleFeatureCallID ) ) - { - // InternalEntities.g:16378:2: ( ( ruleFeatureCallID ) ) - // InternalEntities.g:16379:3: ( ruleFeatureCallID ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); - } - // InternalEntities.g:16380:3: ( ruleFeatureCallID ) - // InternalEntities.g:16381:4: ruleFeatureCallID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_1_0_0_0_2_0_1()); - } - pushFollow(FOLLOW_2); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementFeatureCallIDParserRuleCall_1_0_0_0_2_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__FeatureAssignment_1_0_0_0_2" - - - // $ANTLR start "rule__XMemberFeatureCall__ValueAssignment_1_0_1" - // InternalEntities.g:16392:1: rule__XMemberFeatureCall__ValueAssignment_1_0_1 : ( ruleXAssignment ) ; - public final void rule__XMemberFeatureCall__ValueAssignment_1_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16396:1: ( ( ruleXAssignment ) ) - // InternalEntities.g:16397:2: ( ruleXAssignment ) - { - // InternalEntities.g:16397:2: ( ruleXAssignment ) - // InternalEntities.g:16398:3: ruleXAssignment - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleXAssignment(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__ValueAssignment_1_0_1" - - - // $ANTLR start "rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1" - // InternalEntities.g:16407:1: rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1 : ( ( '?.' ) ) ; - public final void rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16411:1: ( ( ( '?.' ) ) ) - // InternalEntities.g:16412:2: ( ( '?.' ) ) - { - // InternalEntities.g:16412:2: ( ( '?.' ) ) - // InternalEntities.g:16413:3: ( '?.' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); - } - // InternalEntities.g:16414:3: ( '?.' ) - // InternalEntities.g:16415:4: '?.' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); - } - match(input,86,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__NullSafeAssignment_1_1_0_0_1_1" - - - // $ANTLR start "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2" - // InternalEntities.g:16426:1: rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2 : ( ( '::' ) ) ; - public final void rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16430:1: ( ( ( '::' ) ) ) - // InternalEntities.g:16431:2: ( ( '::' ) ) - { - // InternalEntities.g:16431:2: ( ( '::' ) ) - // InternalEntities.g:16432:3: ( '::' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); - } - // InternalEntities.g:16433:3: ( '::' ) - // InternalEntities.g:16434:4: '::' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); - } - match(input,85,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_1_0_0_1_2" - - - // $ANTLR start "rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1" - // InternalEntities.g:16445:1: rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16449:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:16450:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:16450:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:16451:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_1" - - - // $ANTLR start "rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1" - // InternalEntities.g:16460:1: rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16464:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:16465:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:16465:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:16466:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__TypeArgumentsAssignment_1_1_1_2_1" - - - // $ANTLR start "rule__XMemberFeatureCall__FeatureAssignment_1_1_2" - // InternalEntities.g:16475:1: rule__XMemberFeatureCall__FeatureAssignment_1_1_2 : ( ( ruleIdOrSuper ) ) ; - public final void rule__XMemberFeatureCall__FeatureAssignment_1_1_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16479:1: ( ( ( ruleIdOrSuper ) ) ) - // InternalEntities.g:16480:2: ( ( ruleIdOrSuper ) ) - { - // InternalEntities.g:16480:2: ( ( ruleIdOrSuper ) ) - // InternalEntities.g:16481:3: ( ruleIdOrSuper ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); - } - // InternalEntities.g:16482:3: ( ruleIdOrSuper ) - // InternalEntities.g:16483:4: ruleIdOrSuper - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_1_1_2_0_1()); - } - pushFollow(FOLLOW_2); - ruleIdOrSuper(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_1_1_2_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__FeatureAssignment_1_1_2" - - - // $ANTLR start "rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0" - // InternalEntities.g:16494:1: rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0 : ( ( '(' ) ) ; - public final void rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16498:1: ( ( ( '(' ) ) ) - // InternalEntities.g:16499:2: ( ( '(' ) ) - { - // InternalEntities.g:16499:2: ( ( '(' ) ) - // InternalEntities.g:16500:3: ( '(' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); - } - // InternalEntities.g:16501:3: ( '(' ) - // InternalEntities.g:16502:4: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__ExplicitOperationCallAssignment_1_1_3_0" - - - // $ANTLR start "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0" - // InternalEntities.g:16513:1: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 : ( ruleXShortClosure ) ; - public final void rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16517:1: ( ( ruleXShortClosure ) ) - // InternalEntities.g:16518:2: ( ruleXShortClosure ) - { - // InternalEntities.g:16518:2: ( ruleXShortClosure ) - // InternalEntities.g:16519:3: ruleXShortClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXShortClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0" - - - // $ANTLR start "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0" - // InternalEntities.g:16528:1: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0 : ( ruleXExpression ) ; - public final void rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16532:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16533:2: ( ruleXExpression ) - { - // InternalEntities.g:16533:2: ( ruleXExpression ) - // InternalEntities.g:16534:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_0" - - - // $ANTLR start "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1" - // InternalEntities.g:16543:1: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1 : ( ruleXExpression ) ; - public final void rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16547:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16548:2: ( ruleXExpression ) - { - // InternalEntities.g:16548:2: ( ruleXExpression ) - // InternalEntities.g:16549:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_1_1_1" - - - // $ANTLR start "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4" - // InternalEntities.g:16558:1: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 : ( ruleXClosure ) ; - public final void rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16562:1: ( ( ruleXClosure ) ) - // InternalEntities.g:16563:2: ( ruleXClosure ) - { - // InternalEntities.g:16563:2: ( ruleXClosure ) - // InternalEntities.g:16564:3: ruleXClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); - } - pushFollow(FOLLOW_2); - ruleXClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4" - - - // $ANTLR start "rule__XSetLiteral__ElementsAssignment_3_0" - // InternalEntities.g:16573:1: rule__XSetLiteral__ElementsAssignment_3_0 : ( ruleXExpression ) ; - public final void rule__XSetLiteral__ElementsAssignment_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16577:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16578:2: ( ruleXExpression ) - { - // InternalEntities.g:16578:2: ( ruleXExpression ) - // InternalEntities.g:16579:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__ElementsAssignment_3_0" - - - // $ANTLR start "rule__XSetLiteral__ElementsAssignment_3_1_1" - // InternalEntities.g:16588:1: rule__XSetLiteral__ElementsAssignment_3_1_1 : ( ruleXExpression ) ; - public final void rule__XSetLiteral__ElementsAssignment_3_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16592:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16593:2: ( ruleXExpression ) - { - // InternalEntities.g:16593:2: ( ruleXExpression ) - // InternalEntities.g:16594:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSetLiteral__ElementsAssignment_3_1_1" - - - // $ANTLR start "rule__XListLiteral__ElementsAssignment_3_0" - // InternalEntities.g:16603:1: rule__XListLiteral__ElementsAssignment_3_0 : ( ruleXExpression ) ; - public final void rule__XListLiteral__ElementsAssignment_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16607:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16608:2: ( ruleXExpression ) - { - // InternalEntities.g:16608:2: ( ruleXExpression ) - // InternalEntities.g:16609:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__ElementsAssignment_3_0" - - - // $ANTLR start "rule__XListLiteral__ElementsAssignment_3_1_1" - // InternalEntities.g:16618:1: rule__XListLiteral__ElementsAssignment_3_1_1 : ( ruleXExpression ) ; - public final void rule__XListLiteral__ElementsAssignment_3_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16622:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16623:2: ( ruleXExpression ) - { - // InternalEntities.g:16623:2: ( ruleXExpression ) - // InternalEntities.g:16624:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XListLiteral__ElementsAssignment_3_1_1" - - - // $ANTLR start "rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0" - // InternalEntities.g:16633:1: rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0 : ( ruleJvmFormalParameter ) ; - public final void rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16637:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16638:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16638:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16639:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_0" - - - // $ANTLR start "rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1" - // InternalEntities.g:16648:1: rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1 : ( ruleJvmFormalParameter ) ; - public final void rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16652:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16653:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16653:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16654:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__DeclaredFormalParametersAssignment_1_0_0_1_1" - - - // $ANTLR start "rule__XClosure__ExplicitSyntaxAssignment_1_0_1" - // InternalEntities.g:16663:1: rule__XClosure__ExplicitSyntaxAssignment_1_0_1 : ( ( '|' ) ) ; - public final void rule__XClosure__ExplicitSyntaxAssignment_1_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16667:1: ( ( ( '|' ) ) ) - // InternalEntities.g:16668:2: ( ( '|' ) ) - { - // InternalEntities.g:16668:2: ( ( '|' ) ) - // InternalEntities.g:16669:3: ( '|' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); - } - // InternalEntities.g:16670:3: ( '|' ) - // InternalEntities.g:16671:4: '|' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); - } - match(input,87,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__ExplicitSyntaxAssignment_1_0_1" - - - // $ANTLR start "rule__XClosure__ExpressionAssignment_2" - // InternalEntities.g:16682:1: rule__XClosure__ExpressionAssignment_2 : ( ruleXExpressionInClosure ) ; - public final void rule__XClosure__ExpressionAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16686:1: ( ( ruleXExpressionInClosure ) ) - // InternalEntities.g:16687:2: ( ruleXExpressionInClosure ) - { - // InternalEntities.g:16687:2: ( ruleXExpressionInClosure ) - // InternalEntities.g:16688:3: ruleXExpressionInClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleXExpressionInClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XClosure__ExpressionAssignment_2" - - - // $ANTLR start "rule__XExpressionInClosure__ExpressionsAssignment_1_0" - // InternalEntities.g:16697:1: rule__XExpressionInClosure__ExpressionsAssignment_1_0 : ( ruleXExpressionOrVarDeclaration ) ; - public final void rule__XExpressionInClosure__ExpressionsAssignment_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16701:1: ( ( ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:16702:2: ( ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:16702:2: ( ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:16703:3: ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XExpressionInClosure__ExpressionsAssignment_1_0" - - - // $ANTLR start "rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0" - // InternalEntities.g:16712:1: rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0 : ( ruleJvmFormalParameter ) ; - public final void rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16716:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16717:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16717:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16718:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_0" - - - // $ANTLR start "rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1" - // InternalEntities.g:16727:1: rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1 : ( ruleJvmFormalParameter ) ; - public final void rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16731:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16732:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16732:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16733:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__DeclaredFormalParametersAssignment_0_0_1_1_1" - - - // $ANTLR start "rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2" - // InternalEntities.g:16742:1: rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2 : ( ( '|' ) ) ; - public final void rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16746:1: ( ( ( '|' ) ) ) - // InternalEntities.g:16747:2: ( ( '|' ) ) - { - // InternalEntities.g:16747:2: ( ( '|' ) ) - // InternalEntities.g:16748:3: ( '|' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); - } - // InternalEntities.g:16749:3: ( '|' ) - // InternalEntities.g:16750:4: '|' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); - } - match(input,87,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__ExplicitSyntaxAssignment_0_0_2" - - - // $ANTLR start "rule__XShortClosure__ExpressionAssignment_1" - // InternalEntities.g:16761:1: rule__XShortClosure__ExpressionAssignment_1 : ( ruleXExpression ) ; - public final void rule__XShortClosure__ExpressionAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16765:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16766:2: ( ruleXExpression ) - { - // InternalEntities.g:16766:2: ( ruleXExpression ) - // InternalEntities.g:16767:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XShortClosure__ExpressionAssignment_1" - - - // $ANTLR start "rule__XIfExpression__IfAssignment_3" - // InternalEntities.g:16776:1: rule__XIfExpression__IfAssignment_3 : ( ruleXExpression ) ; - public final void rule__XIfExpression__IfAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16780:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16781:2: ( ruleXExpression ) - { - // InternalEntities.g:16781:2: ( ruleXExpression ) - // InternalEntities.g:16782:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__IfAssignment_3" - - - // $ANTLR start "rule__XIfExpression__ThenAssignment_5" - // InternalEntities.g:16791:1: rule__XIfExpression__ThenAssignment_5 : ( ruleXExpression ) ; - public final void rule__XIfExpression__ThenAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16795:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16796:2: ( ruleXExpression ) - { - // InternalEntities.g:16796:2: ( ruleXExpression ) - // InternalEntities.g:16797:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__ThenAssignment_5" - - - // $ANTLR start "rule__XIfExpression__ElseAssignment_6_1" - // InternalEntities.g:16806:1: rule__XIfExpression__ElseAssignment_6_1 : ( ruleXExpression ) ; - public final void rule__XIfExpression__ElseAssignment_6_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16810:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16811:2: ( ruleXExpression ) - { - // InternalEntities.g:16811:2: ( ruleXExpression ) - // InternalEntities.g:16812:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XIfExpression__ElseAssignment_6_1" - - - // $ANTLR start "rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1" - // InternalEntities.g:16821:1: rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1 : ( ruleJvmFormalParameter ) ; - public final void rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16825:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16826:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16826:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16827:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__DeclaredParamAssignment_2_0_0_0_1" - - - // $ANTLR start "rule__XSwitchExpression__SwitchAssignment_2_0_1" - // InternalEntities.g:16836:1: rule__XSwitchExpression__SwitchAssignment_2_0_1 : ( ruleXExpression ) ; - public final void rule__XSwitchExpression__SwitchAssignment_2_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16840:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16841:2: ( ruleXExpression ) - { - // InternalEntities.g:16841:2: ( ruleXExpression ) - // InternalEntities.g:16842:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__SwitchAssignment_2_0_1" - - - // $ANTLR start "rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0" - // InternalEntities.g:16851:1: rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0 : ( ruleJvmFormalParameter ) ; - public final void rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16855:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16856:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16856:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16857:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__DeclaredParamAssignment_2_1_0_0_0" - - - // $ANTLR start "rule__XSwitchExpression__SwitchAssignment_2_1_1" - // InternalEntities.g:16866:1: rule__XSwitchExpression__SwitchAssignment_2_1_1 : ( ruleXExpression ) ; - public final void rule__XSwitchExpression__SwitchAssignment_2_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16870:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16871:2: ( ruleXExpression ) - { - // InternalEntities.g:16871:2: ( ruleXExpression ) - // InternalEntities.g:16872:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__SwitchAssignment_2_1_1" - - - // $ANTLR start "rule__XSwitchExpression__CasesAssignment_4" - // InternalEntities.g:16881:1: rule__XSwitchExpression__CasesAssignment_4 : ( ruleXCasePart ) ; - public final void rule__XSwitchExpression__CasesAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16885:1: ( ( ruleXCasePart ) ) - // InternalEntities.g:16886:2: ( ruleXCasePart ) - { - // InternalEntities.g:16886:2: ( ruleXCasePart ) - // InternalEntities.g:16887:3: ruleXCasePart - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); - } - pushFollow(FOLLOW_2); - ruleXCasePart(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__CasesAssignment_4" - - - // $ANTLR start "rule__XSwitchExpression__DefaultAssignment_5_2" - // InternalEntities.g:16896:1: rule__XSwitchExpression__DefaultAssignment_5_2 : ( ruleXExpression ) ; - public final void rule__XSwitchExpression__DefaultAssignment_5_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16900:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16901:2: ( ruleXExpression ) - { - // InternalEntities.g:16901:2: ( ruleXExpression ) - // InternalEntities.g:16902:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSwitchExpression__DefaultAssignment_5_2" - - - // $ANTLR start "rule__XCasePart__TypeGuardAssignment_1" - // InternalEntities.g:16911:1: rule__XCasePart__TypeGuardAssignment_1 : ( ruleJvmTypeReference ) ; - public final void rule__XCasePart__TypeGuardAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16915:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:16916:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:16916:2: ( ruleJvmTypeReference ) - // InternalEntities.g:16917:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__TypeGuardAssignment_1" - - - // $ANTLR start "rule__XCasePart__CaseAssignment_2_1" - // InternalEntities.g:16926:1: rule__XCasePart__CaseAssignment_2_1 : ( ruleXExpression ) ; - public final void rule__XCasePart__CaseAssignment_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16930:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16931:2: ( ruleXExpression ) - { - // InternalEntities.g:16931:2: ( ruleXExpression ) - // InternalEntities.g:16932:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__CaseAssignment_2_1" - - - // $ANTLR start "rule__XCasePart__ThenAssignment_3_0_1" - // InternalEntities.g:16941:1: rule__XCasePart__ThenAssignment_3_0_1 : ( ruleXExpression ) ; - public final void rule__XCasePart__ThenAssignment_3_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16945:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16946:2: ( ruleXExpression ) - { - // InternalEntities.g:16946:2: ( ruleXExpression ) - // InternalEntities.g:16947:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__ThenAssignment_3_0_1" - - - // $ANTLR start "rule__XCasePart__FallThroughAssignment_3_1" - // InternalEntities.g:16956:1: rule__XCasePart__FallThroughAssignment_3_1 : ( ( ',' ) ) ; - public final void rule__XCasePart__FallThroughAssignment_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16960:1: ( ( ( ',' ) ) ) - // InternalEntities.g:16961:2: ( ( ',' ) ) - { - // InternalEntities.g:16961:2: ( ( ',' ) ) - // InternalEntities.g:16962:3: ( ',' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); - } - // InternalEntities.g:16963:3: ( ',' ) - // InternalEntities.g:16964:4: ',' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); - } - match(input,59,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCasePart__FallThroughAssignment_3_1" - - - // $ANTLR start "rule__XForLoopExpression__DeclaredParamAssignment_0_0_3" - // InternalEntities.g:16975:1: rule__XForLoopExpression__DeclaredParamAssignment_0_0_3 : ( ruleJvmFormalParameter ) ; - public final void rule__XForLoopExpression__DeclaredParamAssignment_0_0_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16979:1: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:16980:2: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:16980:2: ( ruleJvmFormalParameter ) - // InternalEntities.g:16981:3: ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); - } - pushFollow(FOLLOW_2); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__DeclaredParamAssignment_0_0_3" - - - // $ANTLR start "rule__XForLoopExpression__ForExpressionAssignment_1" - // InternalEntities.g:16990:1: rule__XForLoopExpression__ForExpressionAssignment_1 : ( ruleXExpression ) ; - public final void rule__XForLoopExpression__ForExpressionAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:16994:1: ( ( ruleXExpression ) ) - // InternalEntities.g:16995:2: ( ruleXExpression ) - { - // InternalEntities.g:16995:2: ( ruleXExpression ) - // InternalEntities.g:16996:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__ForExpressionAssignment_1" - - - // $ANTLR start "rule__XForLoopExpression__EachExpressionAssignment_3" - // InternalEntities.g:17005:1: rule__XForLoopExpression__EachExpressionAssignment_3 : ( ruleXExpression ) ; - public final void rule__XForLoopExpression__EachExpressionAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17009:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17010:2: ( ruleXExpression ) - { - // InternalEntities.g:17010:2: ( ruleXExpression ) - // InternalEntities.g:17011:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XForLoopExpression__EachExpressionAssignment_3" - - - // $ANTLR start "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0" - // InternalEntities.g:17020:1: rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0 : ( ruleXExpressionOrVarDeclaration ) ; - public final void rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17024:1: ( ( ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:17025:2: ( ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:17025:2: ( ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:17026:3: ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_0" - - - // $ANTLR start "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1" - // InternalEntities.g:17035:1: rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1 : ( ruleXExpressionOrVarDeclaration ) ; - public final void rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17039:1: ( ( ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:17040:2: ( ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:17040:2: ( ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:17041:3: ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__InitExpressionsAssignment_3_1_1" - - - // $ANTLR start "rule__XBasicForLoopExpression__ExpressionAssignment_5" - // InternalEntities.g:17050:1: rule__XBasicForLoopExpression__ExpressionAssignment_5 : ( ruleXExpression ) ; - public final void rule__XBasicForLoopExpression__ExpressionAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17054:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17055:2: ( ruleXExpression ) - { - // InternalEntities.g:17055:2: ( ruleXExpression ) - // InternalEntities.g:17056:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__ExpressionAssignment_5" - - - // $ANTLR start "rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0" - // InternalEntities.g:17065:1: rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0 : ( ruleXExpression ) ; - public final void rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17069:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17070:2: ( ruleXExpression ) - { - // InternalEntities.g:17070:2: ( ruleXExpression ) - // InternalEntities.g:17071:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_0" - - - // $ANTLR start "rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1" - // InternalEntities.g:17080:1: rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1 : ( ruleXExpression ) ; - public final void rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17084:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17085:2: ( ruleXExpression ) - { - // InternalEntities.g:17085:2: ( ruleXExpression ) - // InternalEntities.g:17086:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__UpdateExpressionsAssignment_7_1_1" - - - // $ANTLR start "rule__XBasicForLoopExpression__EachExpressionAssignment_9" - // InternalEntities.g:17095:1: rule__XBasicForLoopExpression__EachExpressionAssignment_9 : ( ruleXExpression ) ; - public final void rule__XBasicForLoopExpression__EachExpressionAssignment_9() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17099:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17100:2: ( ruleXExpression ) - { - // InternalEntities.g:17100:2: ( ruleXExpression ) - // InternalEntities.g:17101:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBasicForLoopExpression__EachExpressionAssignment_9" - - - // $ANTLR start "rule__XWhileExpression__PredicateAssignment_3" - // InternalEntities.g:17110:1: rule__XWhileExpression__PredicateAssignment_3 : ( ruleXExpression ) ; - public final void rule__XWhileExpression__PredicateAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17114:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17115:2: ( ruleXExpression ) - { - // InternalEntities.g:17115:2: ( ruleXExpression ) - // InternalEntities.g:17116:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__PredicateAssignment_3" - - - // $ANTLR start "rule__XWhileExpression__BodyAssignment_5" - // InternalEntities.g:17125:1: rule__XWhileExpression__BodyAssignment_5 : ( ruleXExpression ) ; - public final void rule__XWhileExpression__BodyAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17129:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17130:2: ( ruleXExpression ) - { - // InternalEntities.g:17130:2: ( ruleXExpression ) - // InternalEntities.g:17131:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XWhileExpression__BodyAssignment_5" - - - // $ANTLR start "rule__XDoWhileExpression__BodyAssignment_2" - // InternalEntities.g:17140:1: rule__XDoWhileExpression__BodyAssignment_2 : ( ruleXExpression ) ; - public final void rule__XDoWhileExpression__BodyAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17144:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17145:2: ( ruleXExpression ) - { - // InternalEntities.g:17145:2: ( ruleXExpression ) - // InternalEntities.g:17146:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__BodyAssignment_2" - - - // $ANTLR start "rule__XDoWhileExpression__PredicateAssignment_5" - // InternalEntities.g:17155:1: rule__XDoWhileExpression__PredicateAssignment_5 : ( ruleXExpression ) ; - public final void rule__XDoWhileExpression__PredicateAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17159:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17160:2: ( ruleXExpression ) - { - // InternalEntities.g:17160:2: ( ruleXExpression ) - // InternalEntities.g:17161:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XDoWhileExpression__PredicateAssignment_5" - - - // $ANTLR start "rule__XBlockExpression__ExpressionsAssignment_2_0" - // InternalEntities.g:17170:1: rule__XBlockExpression__ExpressionsAssignment_2_0 : ( ruleXExpressionOrVarDeclaration ) ; - public final void rule__XBlockExpression__ExpressionsAssignment_2_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17174:1: ( ( ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:17175:2: ( ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:17175:2: ( ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:17176:3: ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBlockExpression__ExpressionsAssignment_2_0" - - - // $ANTLR start "rule__XVariableDeclaration__WriteableAssignment_1_0" - // InternalEntities.g:17185:1: rule__XVariableDeclaration__WriteableAssignment_1_0 : ( ( 'var' ) ) ; - public final void rule__XVariableDeclaration__WriteableAssignment_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17189:1: ( ( ( 'var' ) ) ) - // InternalEntities.g:17190:2: ( ( 'var' ) ) - { - // InternalEntities.g:17190:2: ( ( 'var' ) ) - // InternalEntities.g:17191:3: ( 'var' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); - } - // InternalEntities.g:17192:3: ( 'var' ) - // InternalEntities.g:17193:4: 'var' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); - } - match(input,88,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__WriteableAssignment_1_0" - - - // $ANTLR start "rule__XVariableDeclaration__TypeAssignment_2_0_0_0" - // InternalEntities.g:17204:1: rule__XVariableDeclaration__TypeAssignment_2_0_0_0 : ( ruleJvmTypeReference ) ; - public final void rule__XVariableDeclaration__TypeAssignment_2_0_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17208:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:17209:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:17209:2: ( ruleJvmTypeReference ) - // InternalEntities.g:17210:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__TypeAssignment_2_0_0_0" - - - // $ANTLR start "rule__XVariableDeclaration__NameAssignment_2_0_0_1" - // InternalEntities.g:17219:1: rule__XVariableDeclaration__NameAssignment_2_0_0_1 : ( ruleValidID ) ; - public final void rule__XVariableDeclaration__NameAssignment_2_0_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17223:1: ( ( ruleValidID ) ) - // InternalEntities.g:17224:2: ( ruleValidID ) - { - // InternalEntities.g:17224:2: ( ruleValidID ) - // InternalEntities.g:17225:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__NameAssignment_2_0_0_1" - - - // $ANTLR start "rule__XVariableDeclaration__NameAssignment_2_1" - // InternalEntities.g:17234:1: rule__XVariableDeclaration__NameAssignment_2_1 : ( ruleValidID ) ; - public final void rule__XVariableDeclaration__NameAssignment_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17238:1: ( ( ruleValidID ) ) - // InternalEntities.g:17239:2: ( ruleValidID ) - { - // InternalEntities.g:17239:2: ( ruleValidID ) - // InternalEntities.g:17240:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__NameAssignment_2_1" - - - // $ANTLR start "rule__XVariableDeclaration__RightAssignment_3_1" - // InternalEntities.g:17249:1: rule__XVariableDeclaration__RightAssignment_3_1 : ( ruleXExpression ) ; - public final void rule__XVariableDeclaration__RightAssignment_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17253:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17254:2: ( ruleXExpression ) - { - // InternalEntities.g:17254:2: ( ruleXExpression ) - // InternalEntities.g:17255:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XVariableDeclaration__RightAssignment_3_1" - - - // $ANTLR start "rule__JvmFormalParameter__ParameterTypeAssignment_0" - // InternalEntities.g:17264:1: rule__JvmFormalParameter__ParameterTypeAssignment_0 : ( ruleJvmTypeReference ) ; - public final void rule__JvmFormalParameter__ParameterTypeAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17268:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:17269:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:17269:2: ( ruleJvmTypeReference ) - // InternalEntities.g:17270:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmFormalParameter__ParameterTypeAssignment_0" - - - // $ANTLR start "rule__JvmFormalParameter__NameAssignment_1" - // InternalEntities.g:17279:1: rule__JvmFormalParameter__NameAssignment_1 : ( ruleValidID ) ; - public final void rule__JvmFormalParameter__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17283:1: ( ( ruleValidID ) ) - // InternalEntities.g:17284:2: ( ruleValidID ) - { - // InternalEntities.g:17284:2: ( ruleValidID ) - // InternalEntities.g:17285:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmFormalParameter__NameAssignment_1" - - - // $ANTLR start "rule__FullJvmFormalParameter__ParameterTypeAssignment_0" - // InternalEntities.g:17294:1: rule__FullJvmFormalParameter__ParameterTypeAssignment_0 : ( ruleJvmTypeReference ) ; - public final void rule__FullJvmFormalParameter__ParameterTypeAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17298:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:17299:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:17299:2: ( ruleJvmTypeReference ) - // InternalEntities.g:17300:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FullJvmFormalParameter__ParameterTypeAssignment_0" - - - // $ANTLR start "rule__FullJvmFormalParameter__NameAssignment_1" - // InternalEntities.g:17309:1: rule__FullJvmFormalParameter__NameAssignment_1 : ( ruleValidID ) ; - public final void rule__FullJvmFormalParameter__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17313:1: ( ( ruleValidID ) ) - // InternalEntities.g:17314:2: ( ruleValidID ) - { - // InternalEntities.g:17314:2: ( ruleValidID ) - // InternalEntities.g:17315:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__FullJvmFormalParameter__NameAssignment_1" - - - // $ANTLR start "rule__XFeatureCall__TypeArgumentsAssignment_1_1" - // InternalEntities.g:17324:1: rule__XFeatureCall__TypeArgumentsAssignment_1_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__XFeatureCall__TypeArgumentsAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17328:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17329:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17329:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17330:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__TypeArgumentsAssignment_1_1" - - - // $ANTLR start "rule__XFeatureCall__TypeArgumentsAssignment_1_2_1" - // InternalEntities.g:17339:1: rule__XFeatureCall__TypeArgumentsAssignment_1_2_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__XFeatureCall__TypeArgumentsAssignment_1_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17343:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17344:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17344:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17345:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__TypeArgumentsAssignment_1_2_1" - - - // $ANTLR start "rule__XFeatureCall__FeatureAssignment_2" - // InternalEntities.g:17354:1: rule__XFeatureCall__FeatureAssignment_2 : ( ( ruleIdOrSuper ) ) ; - public final void rule__XFeatureCall__FeatureAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17358:1: ( ( ( ruleIdOrSuper ) ) ) - // InternalEntities.g:17359:2: ( ( ruleIdOrSuper ) ) - { - // InternalEntities.g:17359:2: ( ( ruleIdOrSuper ) ) - // InternalEntities.g:17360:3: ( ruleIdOrSuper ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); - } - // InternalEntities.g:17361:3: ( ruleIdOrSuper ) - // InternalEntities.g:17362:4: ruleIdOrSuper - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_2_0_1()); - } - pushFollow(FOLLOW_2); - ruleIdOrSuper(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementIdOrSuperParserRuleCall_2_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__FeatureAssignment_2" - - - // $ANTLR start "rule__XFeatureCall__ExplicitOperationCallAssignment_3_0" - // InternalEntities.g:17373:1: rule__XFeatureCall__ExplicitOperationCallAssignment_3_0 : ( ( '(' ) ) ; - public final void rule__XFeatureCall__ExplicitOperationCallAssignment_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17377:1: ( ( ( '(' ) ) ) - // InternalEntities.g:17378:2: ( ( '(' ) ) - { - // InternalEntities.g:17378:2: ( ( '(' ) ) - // InternalEntities.g:17379:3: ( '(' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); - } - // InternalEntities.g:17380:3: ( '(' ) - // InternalEntities.g:17381:4: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__ExplicitOperationCallAssignment_3_0" - - - // $ANTLR start "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0" - // InternalEntities.g:17392:1: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 : ( ruleXShortClosure ) ; - public final void rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17396:1: ( ( ruleXShortClosure ) ) - // InternalEntities.g:17397:2: ( ruleXShortClosure ) - { - // InternalEntities.g:17397:2: ( ruleXShortClosure ) - // InternalEntities.g:17398:3: ruleXShortClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXShortClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0" - - - // $ANTLR start "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0" - // InternalEntities.g:17407:1: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0 : ( ruleXExpression ) ; - public final void rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17411:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17412:2: ( ruleXExpression ) - { - // InternalEntities.g:17412:2: ( ruleXExpression ) - // InternalEntities.g:17413:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_0" - - - // $ANTLR start "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1" - // InternalEntities.g:17422:1: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1 : ( ruleXExpression ) ; - public final void rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17426:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17427:2: ( ruleXExpression ) - { - // InternalEntities.g:17427:2: ( ruleXExpression ) - // InternalEntities.g:17428:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_1_1_1" - - - // $ANTLR start "rule__XFeatureCall__FeatureCallArgumentsAssignment_4" - // InternalEntities.g:17437:1: rule__XFeatureCall__FeatureCallArgumentsAssignment_4 : ( ruleXClosure ) ; - public final void rule__XFeatureCall__FeatureCallArgumentsAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17441:1: ( ( ruleXClosure ) ) - // InternalEntities.g:17442:2: ( ruleXClosure ) - { - // InternalEntities.g:17442:2: ( ruleXClosure ) - // InternalEntities.g:17443:3: ruleXClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); - } - pushFollow(FOLLOW_2); - ruleXClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFeatureCall__FeatureCallArgumentsAssignment_4" - - - // $ANTLR start "rule__XConstructorCall__ConstructorAssignment_2" - // InternalEntities.g:17452:1: rule__XConstructorCall__ConstructorAssignment_2 : ( ( ruleQualifiedName ) ) ; - public final void rule__XConstructorCall__ConstructorAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17456:1: ( ( ( ruleQualifiedName ) ) ) - // InternalEntities.g:17457:2: ( ( ruleQualifiedName ) ) - { - // InternalEntities.g:17457:2: ( ( ruleQualifiedName ) ) - // InternalEntities.g:17458:3: ( ruleQualifiedName ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); - } - // InternalEntities.g:17459:3: ( ruleQualifiedName ) - // InternalEntities.g:17460:4: ruleQualifiedName - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorQualifiedNameParserRuleCall_2_0_1()); - } - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorQualifiedNameParserRuleCall_2_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__ConstructorAssignment_2" - - - // $ANTLR start "rule__XConstructorCall__TypeArgumentsAssignment_3_1" - // InternalEntities.g:17471:1: rule__XConstructorCall__TypeArgumentsAssignment_3_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__XConstructorCall__TypeArgumentsAssignment_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17475:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17476:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17476:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17477:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__TypeArgumentsAssignment_3_1" - - - // $ANTLR start "rule__XConstructorCall__TypeArgumentsAssignment_3_2_1" - // InternalEntities.g:17486:1: rule__XConstructorCall__TypeArgumentsAssignment_3_2_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__XConstructorCall__TypeArgumentsAssignment_3_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17490:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17491:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17491:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17492:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__TypeArgumentsAssignment_3_2_1" - - - // $ANTLR start "rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0" - // InternalEntities.g:17501:1: rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0 : ( ( '(' ) ) ; - public final void rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17505:1: ( ( ( '(' ) ) ) - // InternalEntities.g:17506:2: ( ( '(' ) ) - { - // InternalEntities.g:17506:2: ( ( '(' ) ) - // InternalEntities.g:17507:3: ( '(' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); - } - // InternalEntities.g:17508:3: ( '(' ) - // InternalEntities.g:17509:4: '(' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); - } - match(input,57,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__ExplicitConstructorCallAssignment_4_0" - - - // $ANTLR start "rule__XConstructorCall__ArgumentsAssignment_4_1_0" - // InternalEntities.g:17520:1: rule__XConstructorCall__ArgumentsAssignment_4_1_0 : ( ruleXShortClosure ) ; - public final void rule__XConstructorCall__ArgumentsAssignment_4_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17524:1: ( ( ruleXShortClosure ) ) - // InternalEntities.g:17525:2: ( ruleXShortClosure ) - { - // InternalEntities.g:17525:2: ( ruleXShortClosure ) - // InternalEntities.g:17526:3: ruleXShortClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXShortClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__ArgumentsAssignment_4_1_0" - - - // $ANTLR start "rule__XConstructorCall__ArgumentsAssignment_4_1_1_0" - // InternalEntities.g:17535:1: rule__XConstructorCall__ArgumentsAssignment_4_1_1_0 : ( ruleXExpression ) ; - public final void rule__XConstructorCall__ArgumentsAssignment_4_1_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17539:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17540:2: ( ruleXExpression ) - { - // InternalEntities.g:17540:2: ( ruleXExpression ) - // InternalEntities.g:17541:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__ArgumentsAssignment_4_1_1_0" - - - // $ANTLR start "rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1" - // InternalEntities.g:17550:1: rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1 : ( ruleXExpression ) ; - public final void rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17554:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17555:2: ( ruleXExpression ) - { - // InternalEntities.g:17555:2: ( ruleXExpression ) - // InternalEntities.g:17556:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__ArgumentsAssignment_4_1_1_1_1" - - - // $ANTLR start "rule__XConstructorCall__ArgumentsAssignment_5" - // InternalEntities.g:17565:1: rule__XConstructorCall__ArgumentsAssignment_5 : ( ruleXClosure ) ; - public final void rule__XConstructorCall__ArgumentsAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17569:1: ( ( ruleXClosure ) ) - // InternalEntities.g:17570:2: ( ruleXClosure ) - { - // InternalEntities.g:17570:2: ( ruleXClosure ) - // InternalEntities.g:17571:3: ruleXClosure - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); - } - pushFollow(FOLLOW_2); - ruleXClosure(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XConstructorCall__ArgumentsAssignment_5" - - - // $ANTLR start "rule__XBooleanLiteral__IsTrueAssignment_1_1" - // InternalEntities.g:17580:1: rule__XBooleanLiteral__IsTrueAssignment_1_1 : ( ( 'true' ) ) ; - public final void rule__XBooleanLiteral__IsTrueAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17584:1: ( ( ( 'true' ) ) ) - // InternalEntities.g:17585:2: ( ( 'true' ) ) - { - // InternalEntities.g:17585:2: ( ( 'true' ) ) - // InternalEntities.g:17586:3: ( 'true' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - } - // InternalEntities.g:17587:3: ( 'true' ) - // InternalEntities.g:17588:4: 'true' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - } - match(input,89,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XBooleanLiteral__IsTrueAssignment_1_1" - - - // $ANTLR start "rule__XNumberLiteral__ValueAssignment_1" - // InternalEntities.g:17599:1: rule__XNumberLiteral__ValueAssignment_1 : ( ruleNumber ) ; - public final void rule__XNumberLiteral__ValueAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17603:1: ( ( ruleNumber ) ) - // InternalEntities.g:17604:2: ( ruleNumber ) - { - // InternalEntities.g:17604:2: ( ruleNumber ) - // InternalEntities.g:17605:3: ruleNumber - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleNumber(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XNumberLiteral__ValueAssignment_1" - - - // $ANTLR start "rule__XStringLiteral__ValueAssignment_1" - // InternalEntities.g:17614:1: rule__XStringLiteral__ValueAssignment_1 : ( RULE_STRING ) ; - public final void rule__XStringLiteral__ValueAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17618:1: ( ( RULE_STRING ) ) - // InternalEntities.g:17619:2: ( RULE_STRING ) - { - // InternalEntities.g:17619:2: ( RULE_STRING ) - // InternalEntities.g:17620:3: RULE_STRING - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); - } - match(input,RULE_STRING,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XStringLiteral__ValueAssignment_1" - - - // $ANTLR start "rule__XTypeLiteral__TypeAssignment_3" - // InternalEntities.g:17629:1: rule__XTypeLiteral__TypeAssignment_3 : ( ( ruleQualifiedName ) ) ; - public final void rule__XTypeLiteral__TypeAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17633:1: ( ( ( ruleQualifiedName ) ) ) - // InternalEntities.g:17634:2: ( ( ruleQualifiedName ) ) - { - // InternalEntities.g:17634:2: ( ( ruleQualifiedName ) ) - // InternalEntities.g:17635:3: ( ruleQualifiedName ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); - } - // InternalEntities.g:17636:3: ( ruleQualifiedName ) - // InternalEntities.g:17637:4: ruleQualifiedName - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); - } - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__TypeAssignment_3" - - - // $ANTLR start "rule__XTypeLiteral__ArrayDimensionsAssignment_4" - // InternalEntities.g:17648:1: rule__XTypeLiteral__ArrayDimensionsAssignment_4 : ( ruleArrayBrackets ) ; - public final void rule__XTypeLiteral__ArrayDimensionsAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17652:1: ( ( ruleArrayBrackets ) ) - // InternalEntities.g:17653:2: ( ruleArrayBrackets ) - { - // InternalEntities.g:17653:2: ( ruleArrayBrackets ) - // InternalEntities.g:17654:3: ruleArrayBrackets - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); - } - pushFollow(FOLLOW_2); - ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTypeLiteral__ArrayDimensionsAssignment_4" - - - // $ANTLR start "rule__XThrowExpression__ExpressionAssignment_2" - // InternalEntities.g:17663:1: rule__XThrowExpression__ExpressionAssignment_2 : ( ruleXExpression ) ; - public final void rule__XThrowExpression__ExpressionAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17667:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17668:2: ( ruleXExpression ) - { - // InternalEntities.g:17668:2: ( ruleXExpression ) - // InternalEntities.g:17669:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XThrowExpression__ExpressionAssignment_2" - - - // $ANTLR start "rule__XReturnExpression__ExpressionAssignment_2" - // InternalEntities.g:17678:1: rule__XReturnExpression__ExpressionAssignment_2 : ( ruleXExpression ) ; - public final void rule__XReturnExpression__ExpressionAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17682:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17683:2: ( ruleXExpression ) - { - // InternalEntities.g:17683:2: ( ruleXExpression ) - // InternalEntities.g:17684:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XReturnExpression__ExpressionAssignment_2" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__ExpressionAssignment_2" - // InternalEntities.g:17693:1: rule__XTryCatchFinallyExpression__ExpressionAssignment_2 : ( ruleXExpression ) ; - public final void rule__XTryCatchFinallyExpression__ExpressionAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17697:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17698:2: ( ruleXExpression ) - { - // InternalEntities.g:17698:2: ( ruleXExpression ) - // InternalEntities.g:17699:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__ExpressionAssignment_2" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0" - // InternalEntities.g:17708:1: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 : ( ruleXCatchClause ) ; - public final void rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17712:1: ( ( ruleXCatchClause ) ) - // InternalEntities.g:17713:2: ( ruleXCatchClause ) - { - // InternalEntities.g:17713:2: ( ruleXCatchClause ) - // InternalEntities.g:17714:3: ruleXCatchClause - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); - } - pushFollow(FOLLOW_2); - ruleXCatchClause(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1" - // InternalEntities.g:17723:1: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1 : ( ruleXExpression ) ; - public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17727:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17728:2: ( ruleXExpression ) - { - // InternalEntities.g:17728:2: ( ruleXExpression ) - // InternalEntities.g:17729:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_0_1_1" - - - // $ANTLR start "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1" - // InternalEntities.g:17738:1: rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1 : ( ruleXExpression ) ; - public final void rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17742:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17743:2: ( ruleXExpression ) - { - // InternalEntities.g:17743:2: ( ruleXExpression ) - // InternalEntities.g:17744:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XTryCatchFinallyExpression__FinallyExpressionAssignment_3_1_1" - - - // $ANTLR start "rule__XSynchronizedExpression__ParamAssignment_1" - // InternalEntities.g:17753:1: rule__XSynchronizedExpression__ParamAssignment_1 : ( ruleXExpression ) ; - public final void rule__XSynchronizedExpression__ParamAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17757:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17758:2: ( ruleXExpression ) - { - // InternalEntities.g:17758:2: ( ruleXExpression ) - // InternalEntities.g:17759:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__ParamAssignment_1" - - - // $ANTLR start "rule__XSynchronizedExpression__ExpressionAssignment_3" - // InternalEntities.g:17768:1: rule__XSynchronizedExpression__ExpressionAssignment_3 : ( ruleXExpression ) ; - public final void rule__XSynchronizedExpression__ExpressionAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17772:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17773:2: ( ruleXExpression ) - { - // InternalEntities.g:17773:2: ( ruleXExpression ) - // InternalEntities.g:17774:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XSynchronizedExpression__ExpressionAssignment_3" - - - // $ANTLR start "rule__XCatchClause__DeclaredParamAssignment_2" - // InternalEntities.g:17783:1: rule__XCatchClause__DeclaredParamAssignment_2 : ( ruleFullJvmFormalParameter ) ; - public final void rule__XCatchClause__DeclaredParamAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17787:1: ( ( ruleFullJvmFormalParameter ) ) - // InternalEntities.g:17788:2: ( ruleFullJvmFormalParameter ) - { - // InternalEntities.g:17788:2: ( ruleFullJvmFormalParameter ) - // InternalEntities.g:17789:3: ruleFullJvmFormalParameter - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__DeclaredParamAssignment_2" - - - // $ANTLR start "rule__XCatchClause__ExpressionAssignment_4" - // InternalEntities.g:17798:1: rule__XCatchClause__ExpressionAssignment_4 : ( ruleXExpression ) ; - public final void rule__XCatchClause__ExpressionAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17802:1: ( ( ruleXExpression ) ) - // InternalEntities.g:17803:2: ( ruleXExpression ) - { - // InternalEntities.g:17803:2: ( ruleXExpression ) - // InternalEntities.g:17804:3: ruleXExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); - } - pushFollow(FOLLOW_2); - ruleXExpression(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XCatchClause__ExpressionAssignment_4" - - - // $ANTLR start "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0" - // InternalEntities.g:17813:1: rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0 : ( ruleJvmTypeReference ) ; - public final void rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17817:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:17818:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:17818:2: ( ruleJvmTypeReference ) - // InternalEntities.g:17819:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_0" - - - // $ANTLR start "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1" - // InternalEntities.g:17828:1: rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1 : ( ruleJvmTypeReference ) ; - public final void rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17832:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:17833:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:17833:2: ( ruleJvmTypeReference ) - // InternalEntities.g:17834:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__ParamTypesAssignment_0_1_1_1" - - - // $ANTLR start "rule__XFunctionTypeRef__ReturnTypeAssignment_2" - // InternalEntities.g:17843:1: rule__XFunctionTypeRef__ReturnTypeAssignment_2 : ( ruleJvmTypeReference ) ; - public final void rule__XFunctionTypeRef__ReturnTypeAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17847:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:17848:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:17848:2: ( ruleJvmTypeReference ) - // InternalEntities.g:17849:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XFunctionTypeRef__ReturnTypeAssignment_2" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__TypeAssignment_0" - // InternalEntities.g:17858:1: rule__JvmParameterizedTypeReference__TypeAssignment_0 : ( ( ruleQualifiedName ) ) ; - public final void rule__JvmParameterizedTypeReference__TypeAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17862:1: ( ( ( ruleQualifiedName ) ) ) - // InternalEntities.g:17863:2: ( ( ruleQualifiedName ) ) - { - // InternalEntities.g:17863:2: ( ( ruleQualifiedName ) ) - // InternalEntities.g:17864:3: ( ruleQualifiedName ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); - } - // InternalEntities.g:17865:3: ( ruleQualifiedName ) - // InternalEntities.g:17866:4: ruleQualifiedName - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeQualifiedNameParserRuleCall_0_0_1()); - } - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeQualifiedNameParserRuleCall_0_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__TypeAssignment_0" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1" - // InternalEntities.g:17877:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17881:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17882:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17882:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17883:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1" - // InternalEntities.g:17892:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17896:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17897:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17897:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17898:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_2_1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1" - // InternalEntities.g:17907:1: rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1 : ( ( ruleValidID ) ) ; - public final void rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17911:1: ( ( ( ruleValidID ) ) ) - // InternalEntities.g:17912:2: ( ( ruleValidID ) ) - { - // InternalEntities.g:17912:2: ( ( ruleValidID ) ) - // InternalEntities.g:17913:3: ( ruleValidID ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); - } - // InternalEntities.g:17914:3: ( ruleValidID ) - // InternalEntities.g:17915:4: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeValidIDParserRuleCall_1_4_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeValidIDParserRuleCall_1_4_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__TypeAssignment_1_4_1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1" - // InternalEntities.g:17926:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17930:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17931:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17931:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17932:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_1" - - - // $ANTLR start "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1" - // InternalEntities.g:17941:1: rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1 : ( ruleJvmArgumentTypeReference ) ; - public final void rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17945:1: ( ( ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:17946:2: ( ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:17946:2: ( ruleJvmArgumentTypeReference ) - // InternalEntities.g:17947:3: ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmParameterizedTypeReference__ArgumentsAssignment_1_4_2_2_1" - - - // $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0" - // InternalEntities.g:17956:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0 : ( ruleJvmUpperBound ) ; - public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17960:1: ( ( ruleJvmUpperBound ) ) - // InternalEntities.g:17961:2: ( ruleJvmUpperBound ) - { - // InternalEntities.g:17961:2: ( ruleJvmUpperBound ) - // InternalEntities.g:17962:3: ruleJvmUpperBound - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmUpperBound(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_0" - - - // $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1" - // InternalEntities.g:17971:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1 : ( ruleJvmUpperBoundAnded ) ; - public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17975:1: ( ( ruleJvmUpperBoundAnded ) ) - // InternalEntities.g:17976:2: ( ruleJvmUpperBoundAnded ) - { - // InternalEntities.g:17976:2: ( ruleJvmUpperBoundAnded ) - // InternalEntities.g:17977:3: ruleJvmUpperBoundAnded - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmUpperBoundAnded(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_0_1" - - - // $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0" - // InternalEntities.g:17986:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0 : ( ruleJvmLowerBound ) ; - public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:17990:1: ( ( ruleJvmLowerBound ) ) - // InternalEntities.g:17991:2: ( ruleJvmLowerBound ) - { - // InternalEntities.g:17991:2: ( ruleJvmLowerBound ) - // InternalEntities.g:17992:3: ruleJvmLowerBound - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); - } - pushFollow(FOLLOW_2); - ruleJvmLowerBound(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_0" - - - // $ANTLR start "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1" - // InternalEntities.g:18001:1: rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1 : ( ruleJvmLowerBoundAnded ) ; - public final void rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18005:1: ( ( ruleJvmLowerBoundAnded ) ) - // InternalEntities.g:18006:2: ( ruleJvmLowerBoundAnded ) - { - // InternalEntities.g:18006:2: ( ruleJvmLowerBoundAnded ) - // InternalEntities.g:18007:3: ruleJvmLowerBoundAnded - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmLowerBoundAnded(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmWildcardTypeReference__ConstraintsAssignment_2_1_1" - - - // $ANTLR start "rule__JvmUpperBound__TypeReferenceAssignment_1" - // InternalEntities.g:18016:1: rule__JvmUpperBound__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ; - public final void rule__JvmUpperBound__TypeReferenceAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18020:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:18021:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:18021:2: ( ruleJvmTypeReference ) - // InternalEntities.g:18022:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBound__TypeReferenceAssignment_1" - - - // $ANTLR start "rule__JvmUpperBoundAnded__TypeReferenceAssignment_1" - // InternalEntities.g:18031:1: rule__JvmUpperBoundAnded__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ; - public final void rule__JvmUpperBoundAnded__TypeReferenceAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18035:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:18036:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:18036:2: ( ruleJvmTypeReference ) - // InternalEntities.g:18037:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmUpperBoundAnded__TypeReferenceAssignment_1" - - - // $ANTLR start "rule__JvmLowerBound__TypeReferenceAssignment_1" - // InternalEntities.g:18046:1: rule__JvmLowerBound__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ; - public final void rule__JvmLowerBound__TypeReferenceAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18050:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:18051:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:18051:2: ( ruleJvmTypeReference ) - // InternalEntities.g:18052:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBound__TypeReferenceAssignment_1" - - - // $ANTLR start "rule__JvmLowerBoundAnded__TypeReferenceAssignment_1" - // InternalEntities.g:18061:1: rule__JvmLowerBoundAnded__TypeReferenceAssignment_1 : ( ruleJvmTypeReference ) ; - public final void rule__JvmLowerBoundAnded__TypeReferenceAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18065:1: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:18066:2: ( ruleJvmTypeReference ) - { - // InternalEntities.g:18066:2: ( ruleJvmTypeReference ) - // InternalEntities.g:18067:3: ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - before(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - pushFollow(FOLLOW_2); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__JvmLowerBoundAnded__TypeReferenceAssignment_1" - - - // $ANTLR start "rule__XImportSection__ImportDeclarationsAssignment" - // InternalEntities.g:18076:1: rule__XImportSection__ImportDeclarationsAssignment : ( ruleXImportDeclaration ) ; - public final void rule__XImportSection__ImportDeclarationsAssignment() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18080:1: ( ( ruleXImportDeclaration ) ) - // InternalEntities.g:18081:2: ( ruleXImportDeclaration ) - { - // InternalEntities.g:18081:2: ( ruleXImportDeclaration ) - // InternalEntities.g:18082:3: ruleXImportDeclaration - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); - } - pushFollow(FOLLOW_2); - ruleXImportDeclaration(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportSection__ImportDeclarationsAssignment" - - - // $ANTLR start "rule__XImportDeclaration__StaticAssignment_1_0_0" - // InternalEntities.g:18091:1: rule__XImportDeclaration__StaticAssignment_1_0_0 : ( ( 'static' ) ) ; - public final void rule__XImportDeclaration__StaticAssignment_1_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18095:1: ( ( ( 'static' ) ) ) - // InternalEntities.g:18096:2: ( ( 'static' ) ) - { - // InternalEntities.g:18096:2: ( ( 'static' ) ) - // InternalEntities.g:18097:3: ( 'static' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); - } - // InternalEntities.g:18098:3: ( 'static' ) - // InternalEntities.g:18099:4: 'static' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); - } - match(input,46,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__StaticAssignment_1_0_0" - - - // $ANTLR start "rule__XImportDeclaration__ExtensionAssignment_1_0_1" - // InternalEntities.g:18110:1: rule__XImportDeclaration__ExtensionAssignment_1_0_1 : ( ( 'extension' ) ) ; - public final void rule__XImportDeclaration__ExtensionAssignment_1_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18114:1: ( ( ( 'extension' ) ) ) - // InternalEntities.g:18115:2: ( ( 'extension' ) ) - { - // InternalEntities.g:18115:2: ( ( 'extension' ) ) - // InternalEntities.g:18116:3: ( 'extension' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); - } - // InternalEntities.g:18117:3: ( 'extension' ) - // InternalEntities.g:18118:4: 'extension' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); - } - match(input,48,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__ExtensionAssignment_1_0_1" - - - // $ANTLR start "rule__XImportDeclaration__ImportedTypeAssignment_1_0_2" - // InternalEntities.g:18129:1: rule__XImportDeclaration__ImportedTypeAssignment_1_0_2 : ( ( ruleQualifiedNameInStaticImport ) ) ; - public final void rule__XImportDeclaration__ImportedTypeAssignment_1_0_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18133:1: ( ( ( ruleQualifiedNameInStaticImport ) ) ) - // InternalEntities.g:18134:2: ( ( ruleQualifiedNameInStaticImport ) ) - { - // InternalEntities.g:18134:2: ( ( ruleQualifiedNameInStaticImport ) ) - // InternalEntities.g:18135:3: ( ruleQualifiedNameInStaticImport ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); - } - // InternalEntities.g:18136:3: ( ruleQualifiedNameInStaticImport ) - // InternalEntities.g:18137:4: ruleQualifiedNameInStaticImport - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameInStaticImportParserRuleCall_1_0_2_0_1()); - } - pushFollow(FOLLOW_2); - ruleQualifiedNameInStaticImport(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameInStaticImportParserRuleCall_1_0_2_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__ImportedTypeAssignment_1_0_2" - - - // $ANTLR start "rule__XImportDeclaration__WildcardAssignment_1_0_3_0" - // InternalEntities.g:18148:1: rule__XImportDeclaration__WildcardAssignment_1_0_3_0 : ( ( '*' ) ) ; - public final void rule__XImportDeclaration__WildcardAssignment_1_0_3_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18152:1: ( ( ( '*' ) ) ) - // InternalEntities.g:18153:2: ( ( '*' ) ) - { - // InternalEntities.g:18153:2: ( ( '*' ) ) - // InternalEntities.g:18154:3: ( '*' ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); - } - // InternalEntities.g:18155:3: ( '*' ) - // InternalEntities.g:18156:4: '*' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); - } - match(input,36,FOLLOW_2); if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__WildcardAssignment_1_0_3_0" - - - // $ANTLR start "rule__XImportDeclaration__MemberNameAssignment_1_0_3_1" - // InternalEntities.g:18167:1: rule__XImportDeclaration__MemberNameAssignment_1_0_3_1 : ( ruleValidID ) ; - public final void rule__XImportDeclaration__MemberNameAssignment_1_0_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18171:1: ( ( ruleValidID ) ) - // InternalEntities.g:18172:2: ( ruleValidID ) - { - // InternalEntities.g:18172:2: ( ruleValidID ) - // InternalEntities.g:18173:3: ruleValidID - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); - } - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__MemberNameAssignment_1_0_3_1" - - - // $ANTLR start "rule__XImportDeclaration__ImportedTypeAssignment_1_1" - // InternalEntities.g:18182:1: rule__XImportDeclaration__ImportedTypeAssignment_1_1 : ( ( ruleQualifiedName ) ) ; - public final void rule__XImportDeclaration__ImportedTypeAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18186:1: ( ( ( ruleQualifiedName ) ) ) - // InternalEntities.g:18187:2: ( ( ruleQualifiedName ) ) - { - // InternalEntities.g:18187:2: ( ( ruleQualifiedName ) ) - // InternalEntities.g:18188:3: ( ruleQualifiedName ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); - } - // InternalEntities.g:18189:3: ( ruleQualifiedName ) - // InternalEntities.g:18190:4: ruleQualifiedName - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameParserRuleCall_1_1_0_1()); - } - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeQualifiedNameParserRuleCall_1_1_0_1()); - } - - } - - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__ImportedTypeAssignment_1_1" - - - // $ANTLR start "rule__XImportDeclaration__ImportedNamespaceAssignment_1_2" - // InternalEntities.g:18201:1: rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 : ( ruleQualifiedNameWithWildcard ) ; - public final void rule__XImportDeclaration__ImportedNamespaceAssignment_1_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalEntities.g:18205:1: ( ( ruleQualifiedNameWithWildcard ) ) - // InternalEntities.g:18206:2: ( ruleQualifiedNameWithWildcard ) - { - // InternalEntities.g:18206:2: ( ruleQualifiedNameWithWildcard ) - // InternalEntities.g:18207:3: ruleQualifiedNameWithWildcard - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); - } - pushFollow(FOLLOW_2); - ruleQualifiedNameWithWildcard(); - - state._fsp--; - if (state.failed) return ; - if ( state.backtracking==0 ) { - after(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); - } - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__XImportDeclaration__ImportedNamespaceAssignment_1_2" - - // $ANTLR start synpred28_InternalEntities - public final void synpred28_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2445:2: ( ( ( rule__OpOther__Group_6_1_0__0 ) ) ) - // InternalEntities.g:2445:2: ( ( rule__OpOther__Group_6_1_0__0 ) ) - { - // InternalEntities.g:2445:2: ( ( rule__OpOther__Group_6_1_0__0 ) ) - // InternalEntities.g:2446:3: ( rule__OpOther__Group_6_1_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getGroup_6_1_0()); - } - // InternalEntities.g:2447:3: ( rule__OpOther__Group_6_1_0__0 ) - // InternalEntities.g:2447:4: rule__OpOther__Group_6_1_0__0 - { - pushFollow(FOLLOW_2); - rule__OpOther__Group_6_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred28_InternalEntities - - // $ANTLR start synpred29_InternalEntities - public final void synpred29_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2451:2: ( ( '<' ) ) - // InternalEntities.g:2451:2: ( '<' ) - { - // InternalEntities.g:2451:2: ( '<' ) - // InternalEntities.g:2452:3: '<' - { - if ( state.backtracking==0 ) { - before(grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); - } - match(input,27,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred29_InternalEntities - - // $ANTLR start synpred42_InternalEntities - public final void synpred42_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2664:2: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) ) - // InternalEntities.g:2664:2: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) - { - // InternalEntities.g:2664:2: ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) - // InternalEntities.g:2665:3: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsAssignment_1_1_3_1_0()); - } - // InternalEntities.g:2666:3: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) - // InternalEntities.g:2666:4: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred42_InternalEntities - - // $ANTLR start synpred50_InternalEntities - public final void synpred50_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2727:2: ( ( ( ruleXForLoopExpression ) ) ) - // InternalEntities.g:2727:2: ( ( ruleXForLoopExpression ) ) - { - // InternalEntities.g:2727:2: ( ( ruleXForLoopExpression ) ) - // InternalEntities.g:2728:3: ( ruleXForLoopExpression ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); - } - // InternalEntities.g:2729:3: ( ruleXForLoopExpression ) - // InternalEntities.g:2729:4: ruleXForLoopExpression - { - pushFollow(FOLLOW_2); - ruleXForLoopExpression(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred50_InternalEntities - - // $ANTLR start synpred51_InternalEntities - public final void synpred51_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2733:2: ( ( ruleXBasicForLoopExpression ) ) - // InternalEntities.g:2733:2: ( ruleXBasicForLoopExpression ) - { - // InternalEntities.g:2733:2: ( ruleXBasicForLoopExpression ) - // InternalEntities.g:2734:3: ruleXBasicForLoopExpression - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); - } - pushFollow(FOLLOW_2); - ruleXBasicForLoopExpression(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred51_InternalEntities - - // $ANTLR start synpred64_InternalEntities - public final void synpred64_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2856:2: ( ( ( rule__XSwitchExpression__Group_2_0__0 ) ) ) - // InternalEntities.g:2856:2: ( ( rule__XSwitchExpression__Group_2_0__0 ) ) - { - // InternalEntities.g:2856:2: ( ( rule__XSwitchExpression__Group_2_0__0 ) ) - // InternalEntities.g:2857:3: ( rule__XSwitchExpression__Group_2_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXSwitchExpressionAccess().getGroup_2_0()); - } - // InternalEntities.g:2858:3: ( rule__XSwitchExpression__Group_2_0__0 ) - // InternalEntities.g:2858:4: rule__XSwitchExpression__Group_2_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred64_InternalEntities - - // $ANTLR start synpred68_InternalEntities - public final void synpred68_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2940:2: ( ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) ) - // InternalEntities.g:2940:2: ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) - { - // InternalEntities.g:2940:2: ( ( rule__XVariableDeclaration__Group_2_0__0 ) ) - // InternalEntities.g:2941:3: ( rule__XVariableDeclaration__Group_2_0__0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXVariableDeclarationAccess().getGroup_2_0()); - } - // InternalEntities.g:2942:3: ( rule__XVariableDeclaration__Group_2_0__0 ) - // InternalEntities.g:2942:4: rule__XVariableDeclaration__Group_2_0__0 - { - pushFollow(FOLLOW_2); - rule__XVariableDeclaration__Group_2_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred68_InternalEntities - - // $ANTLR start synpred69_InternalEntities - public final void synpred69_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2961:2: ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) ) - // InternalEntities.g:2961:2: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) - { - // InternalEntities.g:2961:2: ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) - // InternalEntities.g:2962:3: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsAssignment_3_1_0()); - } - // InternalEntities.g:2963:3: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) - // InternalEntities.g:2963:4: rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred69_InternalEntities - - // $ANTLR start synpred75_InternalEntities - public final void synpred75_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:3042:2: ( ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) ) - // InternalEntities.g:3042:2: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) - { - // InternalEntities.g:3042:2: ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) - // InternalEntities.g:3043:3: ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) - { - if ( state.backtracking==0 ) { - before(grammarAccess.getXConstructorCallAccess().getArgumentsAssignment_4_1_0()); - } - // InternalEntities.g:3044:3: ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) - // InternalEntities.g:3044:4: rule__XConstructorCall__ArgumentsAssignment_4_1_0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ArgumentsAssignment_4_1_0(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - } - // $ANTLR end synpred75_InternalEntities - - // $ANTLR start synpred95_InternalEntities - public final void synpred95_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4264:3: ( rule__XAssignment__Group_1_1__0 ) - // InternalEntities.g:4264:3: rule__XAssignment__Group_1_1__0 - { - pushFollow(FOLLOW_2); - rule__XAssignment__Group_1_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred95_InternalEntities - - // $ANTLR start synpred97_InternalEntities - public final void synpred97_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4615:3: ( rule__XOrExpression__Group_1__0 ) - // InternalEntities.g:4615:3: rule__XOrExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XOrExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred97_InternalEntities - - // $ANTLR start synpred98_InternalEntities - public final void synpred98_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4804:3: ( rule__XAndExpression__Group_1__0 ) - // InternalEntities.g:4804:3: rule__XAndExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XAndExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred98_InternalEntities - - // $ANTLR start synpred99_InternalEntities - public final void synpred99_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4993:3: ( rule__XEqualityExpression__Group_1__0 ) - // InternalEntities.g:4993:3: rule__XEqualityExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XEqualityExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred99_InternalEntities - - // $ANTLR start synpred100_InternalEntities - public final void synpred100_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5182:3: ( rule__XRelationalExpression__Alternatives_1 ) - // InternalEntities.g:5182:3: rule__XRelationalExpression__Alternatives_1 - { - pushFollow(FOLLOW_2); - rule__XRelationalExpression__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred100_InternalEntities - - // $ANTLR start synpred101_InternalEntities - public final void synpred101_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5560:3: ( rule__XOtherOperatorExpression__Group_1__0 ) - // InternalEntities.g:5560:3: rule__XOtherOperatorExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XOtherOperatorExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred101_InternalEntities - - // $ANTLR start synpred102_InternalEntities - public final void synpred102_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6073:3: ( rule__XAdditiveExpression__Group_1__0 ) - // InternalEntities.g:6073:3: rule__XAdditiveExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XAdditiveExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred102_InternalEntities - - // $ANTLR start synpred103_InternalEntities - public final void synpred103_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6262:3: ( rule__XMultiplicativeExpression__Group_1__0 ) - // InternalEntities.g:6262:3: rule__XMultiplicativeExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XMultiplicativeExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred103_InternalEntities - - // $ANTLR start synpred104_InternalEntities - public final void synpred104_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6532:3: ( rule__XCastedExpression__Group_1__0 ) - // InternalEntities.g:6532:3: rule__XCastedExpression__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XCastedExpression__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred104_InternalEntities - - // $ANTLR start synpred105_InternalEntities - public final void synpred105_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6721:3: ( rule__XPostfixOperation__Group_1__0 ) - // InternalEntities.g:6721:3: rule__XPostfixOperation__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XPostfixOperation__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred105_InternalEntities - - // $ANTLR start synpred106_InternalEntities - public final void synpred106_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6856:3: ( rule__XMemberFeatureCall__Alternatives_1 ) - // InternalEntities.g:6856:3: rule__XMemberFeatureCall__Alternatives_1 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Alternatives_1(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred106_InternalEntities - - // $ANTLR start synpred108_InternalEntities - public final void synpred108_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:7154:3: ( rule__XMemberFeatureCall__Group_1_1_3__0 ) - // InternalEntities.g:7154:3: rule__XMemberFeatureCall__Group_1_1_3__0 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__Group_1_1_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred108_InternalEntities - - // $ANTLR start synpred109_InternalEntities - public final void synpred109_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:7180:3: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 ) - // InternalEntities.g:7180:3: rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 - { - pushFollow(FOLLOW_2); - rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred109_InternalEntities - - // $ANTLR start synpred117_InternalEntities - public final void synpred117_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:8153:3: ( rule__XClosure__Group_1__0 ) - // InternalEntities.g:8153:3: rule__XClosure__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__XClosure__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred117_InternalEntities - - // $ANTLR start synpred124_InternalEntities - public final void synpred124_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:9124:3: ( rule__XIfExpression__Group_6__0 ) - // InternalEntities.g:9124:3: rule__XIfExpression__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__XIfExpression__Group_6__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred124_InternalEntities - - // $ANTLR start synpred127_InternalEntities - public final void synpred127_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:9584:3: ( rule__XSwitchExpression__Group_2_1_0__0 ) - // InternalEntities.g:9584:3: rule__XSwitchExpression__Group_2_1_0__0 - { - pushFollow(FOLLOW_2); - rule__XSwitchExpression__Group_2_1_0__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred127_InternalEntities - - // $ANTLR start synpred140_InternalEntities - public final void synpred140_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:11717:3: ( rule__XFeatureCall__Group_3__0 ) - // InternalEntities.g:11717:3: rule__XFeatureCall__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred140_InternalEntities - - // $ANTLR start synpred141_InternalEntities - public final void synpred141_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:11743:3: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 ) - // InternalEntities.g:11743:3: rule__XFeatureCall__FeatureCallArgumentsAssignment_4 - { - pushFollow(FOLLOW_2); - rule__XFeatureCall__FeatureCallArgumentsAssignment_4(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred141_InternalEntities - - // $ANTLR start synpred145_InternalEntities - public final void synpred145_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:12203:3: ( rule__XConstructorCall__Group_3__0 ) - // InternalEntities.g:12203:3: rule__XConstructorCall__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_3__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred145_InternalEntities - - // $ANTLR start synpred146_InternalEntities - public final void synpred146_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:12230:3: ( rule__XConstructorCall__Group_4__0 ) - // InternalEntities.g:12230:3: rule__XConstructorCall__Group_4__0 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__Group_4__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred146_InternalEntities - - // $ANTLR start synpred147_InternalEntities - public final void synpred147_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:12256:3: ( rule__XConstructorCall__ArgumentsAssignment_5 ) - // InternalEntities.g:12256:3: rule__XConstructorCall__ArgumentsAssignment_5 - { - pushFollow(FOLLOW_2); - rule__XConstructorCall__ArgumentsAssignment_5(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred147_InternalEntities - - // $ANTLR start synpred152_InternalEntities - public final void synpred152_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:13147:3: ( rule__XReturnExpression__ExpressionAssignment_2 ) - // InternalEntities.g:13147:3: rule__XReturnExpression__ExpressionAssignment_2 - { - pushFollow(FOLLOW_2); - rule__XReturnExpression__ExpressionAssignment_2(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred152_InternalEntities - - // $ANTLR start synpred153_InternalEntities - public final void synpred153_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:13289:4: ( rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 ) - // InternalEntities.g:13289:4: rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__CatchClausesAssignment_3_0_0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred153_InternalEntities - - // $ANTLR start synpred154_InternalEntities - public final void synpred154_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:13316:3: ( rule__XTryCatchFinallyExpression__Group_3_0_1__0 ) - // InternalEntities.g:13316:3: rule__XTryCatchFinallyExpression__Group_3_0_1__0 - { - pushFollow(FOLLOW_2); - rule__XTryCatchFinallyExpression__Group_3_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred154_InternalEntities - - // $ANTLR start synpred155_InternalEntities - public final void synpred155_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:13829:3: ( rule__QualifiedName__Group_1__0 ) - // InternalEntities.g:13829:3: rule__QualifiedName__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred155_InternalEntities - - // $ANTLR start synpred157_InternalEntities - public final void synpred157_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:14045:3: ( rule__JvmTypeReference__Group_0_1__0 ) - // InternalEntities.g:14045:3: rule__JvmTypeReference__Group_0_1__0 - { - pushFollow(FOLLOW_2); - rule__JvmTypeReference__Group_0_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred157_InternalEntities - - // $ANTLR start synpred161_InternalEntities - public final void synpred161_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:14504:3: ( rule__JvmParameterizedTypeReference__Group_1__0 ) - // InternalEntities.g:14504:3: rule__JvmParameterizedTypeReference__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred161_InternalEntities - - // $ANTLR start synpred163_InternalEntities - public final void synpred163_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:14639:3: ( rule__JvmParameterizedTypeReference__Group_1_4__0 ) - // InternalEntities.g:14639:3: rule__JvmParameterizedTypeReference__Group_1_4__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred163_InternalEntities - - // $ANTLR start synpred164_InternalEntities - public final void synpred164_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:14774:3: ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 ) - // InternalEntities.g:14774:3: rule__JvmParameterizedTypeReference__Group_1_4_2__0 - { - pushFollow(FOLLOW_2); - rule__JvmParameterizedTypeReference__Group_1_4_2__0(); - - state._fsp--; - if (state.failed) return ; - - } - } - // $ANTLR end synpred164_InternalEntities - - // Delegated rules - - public final boolean synpred29_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred29_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred97_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred97_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred109_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred109_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred104_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred104_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred164_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred164_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred147_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred147_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred75_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred75_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred155_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred155_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred42_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred42_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred108_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred108_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred28_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred28_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred98_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred98_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred50_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred50_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred68_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred68_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred105_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred105_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred100_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred100_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred117_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred117_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred152_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred152_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred153_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred153_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred102_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred102_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred145_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred145_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred161_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred161_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred51_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred51_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred95_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred95_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred64_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred64_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred69_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred69_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred101_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred101_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred99_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred99_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred157_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred157_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred140_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred140_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred127_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred127_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred103_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred103_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred141_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred141_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred146_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred146_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred106_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred106_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred124_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred124_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred163_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred163_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred154_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred154_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - - - protected DFA10 dfa10 = new DFA10(this); - protected DFA18 dfa18 = new DFA18(this); - protected DFA21 dfa21 = new DFA21(this); - protected DFA22 dfa22 = new DFA22(this); - protected DFA25 dfa25 = new DFA25(this); - protected DFA30 dfa30 = new DFA30(this); - protected DFA33 dfa33 = new DFA33(this); - protected DFA42 dfa42 = new DFA42(this); - protected DFA52 dfa52 = new DFA52(this); - protected DFA58 dfa58 = new DFA58(this); - protected DFA65 dfa65 = new DFA65(this); - protected DFA66 dfa66 = new DFA66(this); - protected DFA74 dfa74 = new DFA74(this); - protected DFA84 dfa84 = new DFA84(this); - protected DFA97 dfa97 = new DFA97(this); - protected DFA98 dfa98 = new DFA98(this); - protected DFA102 dfa102 = new DFA102(this); - protected DFA103 dfa103 = new DFA103(this); - protected DFA104 dfa104 = new DFA104(this); - protected DFA109 dfa109 = new DFA109(this); - protected DFA118 dfa118 = new DFA118(this); - protected DFA121 dfa121 = new DFA121(this); - static final String dfa_1s = "\13\uffff"; - static final String dfa_2s = "\1\32\2\uffff\1\32\7\uffff"; - static final String dfa_3s = "\1\41\2\uffff\1\36\7\uffff"; - static final String dfa_4s = "\1\uffff\1\1\1\2\1\uffff\1\4\1\5\1\7\1\10\1\11\1\6\1\3"; - static final String dfa_5s = "\13\uffff}>"; - static final String[] dfa_6s = { - "\1\3\1\6\1\1\1\2\1\4\1\5\1\7\1\10", - "", - "", - "\1\11\3\uffff\1\12", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); - static final char[] dfa_2 = DFA.unpackEncodedStringToUnsignedChars(dfa_2s); - static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); - static final short[] dfa_4 = DFA.unpackEncodedString(dfa_4s); - static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); - static final short[][] dfa_6 = unpackEncodedStringArray(dfa_6s); - - class DFA10 extends DFA { - - public DFA10(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 10; - this.eot = dfa_1; - this.eof = dfa_1; - this.min = dfa_2; - this.max = dfa_3; - this.accept = dfa_4; - this.special = dfa_5; - this.transition = dfa_6; - } - public String getDescription() { - return "2356:1: rule__OpOther__Alternatives : ( ( '->' ) | ( '..<' ) | ( ( rule__OpOther__Group_2__0 ) ) | ( '..' ) | ( '=>' ) | ( ( rule__OpOther__Group_5__0 ) ) | ( ( rule__OpOther__Group_6__0 ) ) | ( '<>' ) | ( '?:' ) );"; - } - } - static final String dfa_7s = "\12\uffff"; - static final String dfa_8s = "\4\uffff\5\3\1\uffff"; - static final String dfa_9s = "\1\53\2\4\1\uffff\5\4\1\uffff"; - static final String dfa_10s = "\1\126\2\61\1\uffff\5\131\1\uffff"; - static final String dfa_11s = "\3\uffff\1\2\5\uffff\1\1"; - static final String dfa_12s = "\12\uffff}>"; - static final String[] dfa_13s = { - "\1\1\51\uffff\1\2\1\3", - "\1\4\26\uffff\1\3\21\uffff\1\5\1\6\1\7\1\10\1\3", - "\1\4\26\uffff\1\3\21\uffff\1\5\1\6\1\7\1\10\1\3", - "", - "\5\3\4\uffff\1\11\45\3\1\uffff\2\3\1\uffff\1\3\1\uffff\32\3\2\uffff\2\3\1\uffff\2\3", - "\5\3\4\uffff\1\11\45\3\1\uffff\2\3\1\uffff\1\3\1\uffff\32\3\2\uffff\2\3\1\uffff\2\3", - "\5\3\4\uffff\1\11\45\3\1\uffff\2\3\1\uffff\1\3\1\uffff\32\3\2\uffff\2\3\1\uffff\2\3", - "\5\3\4\uffff\1\11\45\3\1\uffff\2\3\1\uffff\1\3\1\uffff\32\3\2\uffff\2\3\1\uffff\2\3", - "\5\3\4\uffff\1\11\45\3\1\uffff\2\3\1\uffff\1\3\1\uffff\32\3\2\uffff\2\3\1\uffff\2\3", - "" - }; - - static final short[] dfa_7 = DFA.unpackEncodedString(dfa_7s); - static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s); - static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); - static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s); - static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); - static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s); - static final short[][] dfa_13 = unpackEncodedStringArray(dfa_13s); - - class DFA18 extends DFA { - - public DFA18(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 18; - this.eot = dfa_7; - this.eof = dfa_8; - this.min = dfa_9; - this.max = dfa_10; - this.accept = dfa_11; - this.special = dfa_12; - this.transition = dfa_13; - } - public String getDescription() { - return "2590:1: rule__XMemberFeatureCall__Alternatives_1 : ( ( ( rule__XMemberFeatureCall__Group_1_0__0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1__0 ) ) );"; - } - } - static final String dfa_14s = "\43\uffff"; - static final String dfa_15s = "\1\4\2\0\40\uffff"; - static final String dfa_16s = "\1\131\2\0\40\uffff"; - static final String dfa_17s = "\3\uffff\1\1\1\uffff\1\2\35\uffff"; - static final String dfa_18s = "\1\uffff\1\0\1\1\40\uffff}>"; - static final String[] dfa_19s = { - "\1\1\4\5\22\uffff\1\5\3\uffff\1\3\2\uffff\2\5\4\uffff\1\5\4\uffff\6\5\1\uffff\1\5\4\uffff\1\2\4\uffff\2\5\2\uffff\1\5\1\uffff\1\5\2\uffff\11\5\1\uffff\1\5\5\uffff\1\3\1\uffff\1\5", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_14 = DFA.unpackEncodedString(dfa_14s); - static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); - static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s); - static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); - static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s); - static final short[][] dfa_19 = unpackEncodedStringArray(dfa_19s); - - class DFA21 extends DFA { - - public DFA21(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 21; - this.eot = dfa_14; - this.eof = dfa_14; - this.min = dfa_15; - this.max = dfa_16; - this.accept = dfa_17; - this.special = dfa_18; - this.transition = dfa_19; - } - public String getDescription() { - return "2659:1: rule__XMemberFeatureCall__Alternatives_1_1_3_1 : ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_3_1_0 ) ) | ( ( rule__XMemberFeatureCall__Group_1_1_3_1_1__0 ) ) );"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA21_1 = input.LA(1); - - - int index21_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred42_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index21_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA21_2 = input.LA(1); - - - int index21_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred42_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index21_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 21, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_20s = "\40\uffff"; - static final String dfa_21s = "\1\4\26\uffff\1\0\10\uffff"; - static final String dfa_22s = "\1\131\26\uffff\1\0\10\uffff"; - static final String dfa_23s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; - static final String dfa_24s = "\27\uffff\1\0\10\uffff}>"; - static final String[] dfa_25s = { - "\1\5\4\14\22\uffff\1\5\21\uffff\5\5\1\14\1\uffff\1\2\4\uffff\1\35\4\uffff\2\14\2\uffff\1\26\1\uffff\1\3\2\uffff\1\27\1\30\1\31\1\1\2\14\1\32\1\33\1\34\1\uffff\1\4\7\uffff\1\14", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_20 = DFA.unpackEncodedString(dfa_20s); - static final char[] dfa_21 = DFA.unpackEncodedStringToUnsignedChars(dfa_21s); - static final char[] dfa_22 = DFA.unpackEncodedStringToUnsignedChars(dfa_22s); - static final short[] dfa_23 = DFA.unpackEncodedString(dfa_23s); - static final short[] dfa_24 = DFA.unpackEncodedString(dfa_24s); - static final short[][] dfa_25 = unpackEncodedStringArray(dfa_25s); - - class DFA22 extends DFA { - - public DFA22(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 22; - this.eot = dfa_20; - this.eof = dfa_20; - this.min = dfa_21; - this.max = dfa_22; - this.accept = dfa_23; - this.special = dfa_24; - this.transition = dfa_25; - } - public String getDescription() { - return "2680:1: rule__XPrimaryExpression__Alternatives : ( ( ruleXConstructorCall ) | ( ruleXBlockExpression ) | ( ruleXSwitchExpression ) | ( ( ruleXSynchronizedExpression ) ) | ( ruleXFeatureCall ) | ( ruleXLiteral ) | ( ruleXIfExpression ) | ( ( ruleXForLoopExpression ) ) | ( ruleXBasicForLoopExpression ) | ( ruleXWhileExpression ) | ( ruleXDoWhileExpression ) | ( ruleXThrowExpression ) | ( ruleXReturnExpression ) | ( ruleXTryCatchFinallyExpression ) | ( ruleXParenthesizedExpression ) );"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA22_23 = input.LA(1); - - - int index22_23 = input.index(); - input.rewind(); - s = -1; - if ( (synpred50_InternalEntities()) ) {s = 30;} - - else if ( (synpred51_InternalEntities()) ) {s = 31;} - - - input.seek(index22_23); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 22, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_26s = "\1\4\1\0\41\uffff"; - static final String dfa_27s = "\1\131\1\0\41\uffff"; - static final String dfa_28s = "\2\uffff\1\2\37\uffff\1\1"; - static final String dfa_29s = "\1\uffff\1\0\41\uffff}>"; - static final String[] dfa_30s = { - "\5\2\22\uffff\1\2\3\uffff\1\2\2\uffff\2\2\4\uffff\1\2\4\uffff\6\2\1\uffff\1\2\4\uffff\1\1\4\uffff\2\2\2\uffff\1\2\1\uffff\1\2\2\uffff\11\2\1\uffff\1\2\7\uffff\1\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final char[] dfa_26 = DFA.unpackEncodedStringToUnsignedChars(dfa_26s); - static final char[] dfa_27 = DFA.unpackEncodedStringToUnsignedChars(dfa_27s); - static final short[] dfa_28 = DFA.unpackEncodedString(dfa_28s); - static final short[] dfa_29 = DFA.unpackEncodedString(dfa_29s); - static final short[][] dfa_30 = unpackEncodedStringArray(dfa_30s); - - class DFA25 extends DFA { - - public DFA25(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 25; - this.eot = dfa_14; - this.eof = dfa_14; - this.min = dfa_26; - this.max = dfa_27; - this.accept = dfa_28; - this.special = dfa_29; - this.transition = dfa_30; - } - public String getDescription() { - return "2851:1: rule__XSwitchExpression__Alternatives_2 : ( ( ( rule__XSwitchExpression__Group_2_0__0 ) ) | ( ( rule__XSwitchExpression__Group_2_1__0 ) ) );"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA25_1 = input.LA(1); - - - int index25_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred64_InternalEntities()) ) {s = 34;} - - else if ( (true) ) {s = 2;} - - - input.seek(index25_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 25, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA30 extends DFA { - - public DFA30(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 30; - this.eot = dfa_14; - this.eof = dfa_14; - this.min = dfa_15; - this.max = dfa_16; - this.accept = dfa_17; - this.special = dfa_18; - this.transition = dfa_19; - } - public String getDescription() { - return "2956:1: rule__XFeatureCall__Alternatives_3_1 : ( ( ( rule__XFeatureCall__FeatureCallArgumentsAssignment_3_1_0 ) ) | ( ( rule__XFeatureCall__Group_3_1_1__0 ) ) );"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA30_1 = input.LA(1); - - - int index30_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred69_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index30_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA30_2 = input.LA(1); - - - int index30_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred69_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index30_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 30, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA33 extends DFA { - - public DFA33(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 33; - this.eot = dfa_14; - this.eof = dfa_14; - this.min = dfa_15; - this.max = dfa_16; - this.accept = dfa_17; - this.special = dfa_18; - this.transition = dfa_19; - } - public String getDescription() { - return "3037:1: rule__XConstructorCall__Alternatives_4_1 : ( ( ( rule__XConstructorCall__ArgumentsAssignment_4_1_0 ) ) | ( ( rule__XConstructorCall__Group_4_1_1__0 ) ) );"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA33_1 = input.LA(1); - - - int index33_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred75_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index33_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA33_2 = input.LA(1); - - - int index33_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred75_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index33_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 33, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_31s = "\7\uffff"; - static final String dfa_32s = "\2\uffff\1\4\2\uffff\1\4\1\uffff"; - static final String dfa_33s = "\1\4\1\uffff\1\53\1\4\1\uffff\1\53\1\uffff"; - static final String dfa_34s = "\1\56\1\uffff\1\101\1\44\1\uffff\1\101\1\uffff"; - static final String dfa_35s = "\1\uffff\1\1\2\uffff\1\2\1\uffff\1\3"; - static final String dfa_36s = "\7\uffff}>"; - static final String[] dfa_37s = { - "\1\2\51\uffff\1\1", - "", - "\1\3\3\uffff\1\4\3\uffff\1\4\2\uffff\1\4\12\uffff\1\4", - "\1\5\37\uffff\1\6", - "", - "\1\3\3\uffff\1\4\3\uffff\1\4\2\uffff\1\4\12\uffff\1\4", - "" - }; - - static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s); - static final short[] dfa_32 = DFA.unpackEncodedString(dfa_32s); - static final char[] dfa_33 = DFA.unpackEncodedStringToUnsignedChars(dfa_33s); - static final char[] dfa_34 = DFA.unpackEncodedStringToUnsignedChars(dfa_34s); - static final short[] dfa_35 = DFA.unpackEncodedString(dfa_35s); - static final short[] dfa_36 = DFA.unpackEncodedString(dfa_36s); - static final short[][] dfa_37 = unpackEncodedStringArray(dfa_37s); - - class DFA42 extends DFA { - - public DFA42(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 42; - this.eot = dfa_31; - this.eof = dfa_32; - this.min = dfa_33; - this.max = dfa_34; - this.accept = dfa_35; - this.special = dfa_36; - this.transition = dfa_37; - } - public String getDescription() { - return "3226:1: rule__XImportDeclaration__Alternatives_1 : ( ( ( rule__XImportDeclaration__Group_1_0__0 ) ) | ( ( rule__XImportDeclaration__ImportedTypeAssignment_1_1 ) ) | ( ( rule__XImportDeclaration__ImportedNamespaceAssignment_1_2 ) ) );"; - } - } - static final String dfa_38s = "\1\10\11\uffff"; - static final String dfa_39s = "\1\4\7\0\2\uffff"; - static final String dfa_40s = "\1\131\7\0\2\uffff"; - static final String dfa_41s = "\10\uffff\1\2\1\1"; - static final String dfa_42s = "\1\uffff\1\3\1\5\1\0\1\1\1\4\1\6\1\2\2\uffff}>"; - static final String[] dfa_43s = { - "\5\10\5\uffff\2\10\1\1\1\2\1\3\1\4\1\5\5\10\1\7\1\6\27\10\1\uffff\2\10\1\uffff\1\10\1\uffff\32\10\2\uffff\2\10\1\uffff\2\10", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "", - "" - }; - static final short[] dfa_38 = DFA.unpackEncodedString(dfa_38s); - static final char[] dfa_39 = DFA.unpackEncodedStringToUnsignedChars(dfa_39s); - static final char[] dfa_40 = DFA.unpackEncodedStringToUnsignedChars(dfa_40s); - static final short[] dfa_41 = DFA.unpackEncodedString(dfa_41s); - static final short[] dfa_42 = DFA.unpackEncodedString(dfa_42s); - static final short[][] dfa_43 = unpackEncodedStringArray(dfa_43s); - - class DFA52 extends DFA { - - public DFA52(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 52; - this.eot = dfa_7; - this.eof = dfa_38; - this.min = dfa_39; - this.max = dfa_40; - this.accept = dfa_41; - this.special = dfa_42; - this.transition = dfa_43; - } - public String getDescription() { - return "4264:2: ( rule__XAssignment__Group_1_1__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA52_3 = input.LA(1); - - - int index52_3 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_3); - if ( s>=0 ) return s; - break; - case 1 : - int LA52_4 = input.LA(1); - - - int index52_4 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_4); - if ( s>=0 ) return s; - break; - case 2 : - int LA52_7 = input.LA(1); - - - int index52_7 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_7); - if ( s>=0 ) return s; - break; - case 3 : - int LA52_1 = input.LA(1); - - - int index52_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_1); - if ( s>=0 ) return s; - break; - case 4 : - int LA52_5 = input.LA(1); - - - int index52_5 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_5); - if ( s>=0 ) return s; - break; - case 5 : - int LA52_2 = input.LA(1); - - - int index52_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_2); - if ( s>=0 ) return s; - break; - case 6 : - int LA52_6 = input.LA(1); - - - int index52_6 = input.index(); - input.rewind(); - s = -1; - if ( (synpred95_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index52_6); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 52, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_44s = "\1\1\12\uffff"; - static final String dfa_45s = "\1\4\1\uffff\10\0\1\uffff"; - static final String dfa_46s = "\1\131\1\uffff\10\0\1\uffff"; - static final String dfa_47s = "\1\uffff\1\2\10\uffff\1\1"; - static final String dfa_48s = "\2\uffff\1\5\1\1\1\0\1\6\1\3\1\4\1\2\1\7\1\uffff}>"; - static final String[] dfa_49s = { - "\5\1\5\uffff\14\1\1\3\1\2\1\4\1\5\1\6\1\7\1\10\1\11\21\1\1\uffff\2\1\1\uffff\1\1\1\uffff\32\1\2\uffff\2\1\1\uffff\2\1", - "", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "" - }; - static final short[] dfa_44 = DFA.unpackEncodedString(dfa_44s); - static final char[] dfa_45 = DFA.unpackEncodedStringToUnsignedChars(dfa_45s); - static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s); - static final short[] dfa_47 = DFA.unpackEncodedString(dfa_47s); - static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s); - static final short[][] dfa_49 = unpackEncodedStringArray(dfa_49s); - - class DFA58 extends DFA { - - public DFA58(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 58; - this.eot = dfa_1; - this.eof = dfa_44; - this.min = dfa_45; - this.max = dfa_46; - this.accept = dfa_47; - this.special = dfa_48; - this.transition = dfa_49; - } - public String getDescription() { - return "()* loopback of 5560:2: ( rule__XOtherOperatorExpression__Group_1__0 )*"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA58_4 = input.LA(1); - - - int index58_4 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_4); - if ( s>=0 ) return s; - break; - case 1 : - int LA58_3 = input.LA(1); - - - int index58_3 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_3); - if ( s>=0 ) return s; - break; - case 2 : - int LA58_8 = input.LA(1); - - - int index58_8 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_8); - if ( s>=0 ) return s; - break; - case 3 : - int LA58_6 = input.LA(1); - - - int index58_6 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_6); - if ( s>=0 ) return s; - break; - case 4 : - int LA58_7 = input.LA(1); - - - int index58_7 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_7); - if ( s>=0 ) return s; - break; - case 5 : - int LA58_2 = input.LA(1); - - - int index58_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_2); - if ( s>=0 ) return s; - break; - case 6 : - int LA58_5 = input.LA(1); - - - int index58_5 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_5); - if ( s>=0 ) return s; - break; - case 7 : - int LA58_9 = input.LA(1); - - - int index58_9 = input.index(); - input.rewind(); - s = -1; - if ( (synpred101_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index58_9); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 58, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_50s = "\116\uffff"; - static final String dfa_51s = "\1\2\115\uffff"; - static final String dfa_52s = "\1\4\1\0\114\uffff"; - static final String dfa_53s = "\1\131\1\0\114\uffff"; - static final String dfa_54s = "\2\uffff\1\2\112\uffff\1\1"; - static final String dfa_55s = "\1\uffff\1\0\114\uffff}>"; - static final String[] dfa_56s = { - "\5\2\5\uffff\45\2\1\uffff\2\2\1\uffff\1\2\1\uffff\1\1\31\2\2\uffff\2\2\1\uffff\2\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_50 = DFA.unpackEncodedString(dfa_50s); - static final short[] dfa_51 = DFA.unpackEncodedString(dfa_51s); - static final char[] dfa_52 = DFA.unpackEncodedStringToUnsignedChars(dfa_52s); - static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); - static final short[] dfa_54 = DFA.unpackEncodedString(dfa_54s); - static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); - static final short[][] dfa_56 = unpackEncodedStringArray(dfa_56s); - - class DFA65 extends DFA { - - public DFA65(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 65; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_56; - } - public String getDescription() { - return "7154:2: ( rule__XMemberFeatureCall__Group_1_1_3__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA65_1 = input.LA(1); - - - int index65_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred108_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index65_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 65, _s, input); - error(nvae); - throw nvae; - } - } - static final String[] dfa_57s = { - "\5\2\5\uffff\45\2\1\uffff\2\2\1\uffff\1\2\1\uffff\6\2\1\1\23\2\2\uffff\2\2\1\uffff\2\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); - - class DFA66 extends DFA { - - public DFA66(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 66; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_57; - } - public String getDescription() { - return "7180:2: ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA66_1 = input.LA(1); - - - int index66_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred109_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index66_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 66, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_58s = "\46\uffff"; - static final String dfa_59s = "\1\4\2\0\43\uffff"; - static final String dfa_60s = "\1\131\2\0\43\uffff"; - static final String dfa_61s = "\3\uffff\1\1\1\uffff\1\2\40\uffff"; - static final String dfa_62s = "\1\uffff\1\0\1\1\43\uffff}>"; - static final String[] dfa_63s = { - "\1\1\4\5\22\uffff\1\5\3\uffff\1\3\2\uffff\2\5\4\uffff\1\5\3\uffff\7\5\1\uffff\1\5\4\uffff\1\2\4\uffff\3\5\1\uffff\1\5\1\uffff\1\5\2\uffff\11\5\1\uffff\1\5\5\uffff\1\3\2\5", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_58 = DFA.unpackEncodedString(dfa_58s); - static final char[] dfa_59 = DFA.unpackEncodedStringToUnsignedChars(dfa_59s); - static final char[] dfa_60 = DFA.unpackEncodedStringToUnsignedChars(dfa_60s); - static final short[] dfa_61 = DFA.unpackEncodedString(dfa_61s); - static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); - static final short[][] dfa_63 = unpackEncodedStringArray(dfa_63s); - - class DFA74 extends DFA { - - public DFA74(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 74; - this.eot = dfa_58; - this.eof = dfa_58; - this.min = dfa_59; - this.max = dfa_60; - this.accept = dfa_61; - this.special = dfa_62; - this.transition = dfa_63; - } - public String getDescription() { - return "8153:2: ( rule__XClosure__Group_1__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA74_1 = input.LA(1); - - - int index74_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred117_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index74_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA74_2 = input.LA(1); - - - int index74_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred117_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 5;} - - - input.seek(index74_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 74, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_64s = "\42\uffff"; - static final String dfa_65s = "\1\4\2\0\37\uffff"; - static final String dfa_66s = "\1\131\2\0\37\uffff"; - static final String dfa_67s = "\3\uffff\1\1\1\2\35\uffff"; - static final String dfa_68s = "\1\uffff\1\0\1\1\37\uffff}>"; - static final String[] dfa_69s = { - "\1\1\4\4\22\uffff\1\4\3\uffff\1\3\2\uffff\2\4\4\uffff\1\4\4\uffff\6\4\1\uffff\1\4\4\uffff\1\2\4\uffff\2\4\2\uffff\1\4\1\uffff\1\4\2\uffff\11\4\1\uffff\1\4\7\uffff\1\4", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_64 = DFA.unpackEncodedString(dfa_64s); - static final char[] dfa_65 = DFA.unpackEncodedStringToUnsignedChars(dfa_65s); - static final char[] dfa_66 = DFA.unpackEncodedStringToUnsignedChars(dfa_66s); - static final short[] dfa_67 = DFA.unpackEncodedString(dfa_67s); - static final short[] dfa_68 = DFA.unpackEncodedString(dfa_68s); - static final short[][] dfa_69 = unpackEncodedStringArray(dfa_69s); - - class DFA84 extends DFA { - - public DFA84(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 84; - this.eot = dfa_64; - this.eof = dfa_64; - this.min = dfa_65; - this.max = dfa_66; - this.accept = dfa_67; - this.special = dfa_68; - this.transition = dfa_69; - } - public String getDescription() { - return "9584:2: ( rule__XSwitchExpression__Group_2_1_0__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA84_1 = input.LA(1); - - - int index84_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred127_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 4;} - - - input.seek(index84_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA84_2 = input.LA(1); - - - int index84_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred127_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 4;} - - - input.seek(index84_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 84, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA97 extends DFA { - - public DFA97(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 97; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_56; - } - public String getDescription() { - return "11717:2: ( rule__XFeatureCall__Group_3__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA97_1 = input.LA(1); - - - int index97_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred140_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index97_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 97, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA98 extends DFA { - - public DFA98(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 98; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_57; - } - public String getDescription() { - return "11743:2: ( rule__XFeatureCall__FeatureCallArgumentsAssignment_4 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA98_1 = input.LA(1); - - - int index98_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred141_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index98_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 98, _s, input); - error(nvae); - throw nvae; - } - } - static final String[] dfa_70s = { - "\5\2\5\uffff\15\2\1\1\27\2\1\uffff\2\2\1\uffff\1\2\1\uffff\32\2\2\uffff\2\2\1\uffff\2\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final short[][] dfa_70 = unpackEncodedStringArray(dfa_70s); - - class DFA102 extends DFA { - - public DFA102(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 102; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_70; - } - public String getDescription() { - return "12203:2: ( rule__XConstructorCall__Group_3__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA102_1 = input.LA(1); - - - int index102_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred145_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index102_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 102, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA103 extends DFA { - - public DFA103(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 103; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_56; - } - public String getDescription() { - return "12230:2: ( rule__XConstructorCall__Group_4__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA103_1 = input.LA(1); - - - int index103_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred146_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index103_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 103, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA104 extends DFA { - - public DFA104(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 104; - this.eot = dfa_50; - this.eof = dfa_51; - this.min = dfa_52; - this.max = dfa_53; - this.accept = dfa_54; - this.special = dfa_55; - this.transition = dfa_57; - } - public String getDescription() { - return "12256:2: ( rule__XConstructorCall__ArgumentsAssignment_5 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA104_1 = input.LA(1); - - - int index104_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred147_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index104_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 104, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_71s = "\1\41\115\uffff"; - static final String dfa_72s = "\1\4\40\0\55\uffff"; - static final String dfa_73s = "\1\131\40\0\55\uffff"; - static final String dfa_74s = "\41\uffff\1\2\53\uffff\1\1"; - static final String dfa_75s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; - static final String[] dfa_76s = { - "\1\1\1\23\1\24\1\25\1\27\5\uffff\15\41\1\15\6\41\1\10\1\7\4\41\1\6\4\41\1\2\1\3\1\4\1\5\1\16\1\21\1\uffff\1\12\1\41\1\uffff\1\41\1\uffff\1\40\4\41\1\17\1\20\2\41\1\31\1\41\1\13\2\41\1\32\1\33\1\34\1\11\1\26\1\30\1\35\1\36\1\37\1\41\1\14\1\41\2\uffff\2\41\1\uffff\1\41\1\22", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final short[] dfa_71 = DFA.unpackEncodedString(dfa_71s); - static final char[] dfa_72 = DFA.unpackEncodedStringToUnsignedChars(dfa_72s); - static final char[] dfa_73 = DFA.unpackEncodedStringToUnsignedChars(dfa_73s); - static final short[] dfa_74 = DFA.unpackEncodedString(dfa_74s); - static final short[] dfa_75 = DFA.unpackEncodedString(dfa_75s); - static final short[][] dfa_76 = unpackEncodedStringArray(dfa_76s); - - class DFA109 extends DFA { - - public DFA109(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 109; - this.eot = dfa_50; - this.eof = dfa_71; - this.min = dfa_72; - this.max = dfa_73; - this.accept = dfa_74; - this.special = dfa_75; - this.transition = dfa_76; - } - public String getDescription() { - return "13147:2: ( rule__XReturnExpression__ExpressionAssignment_2 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA109_1 = input.LA(1); - - - int index109_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA109_2 = input.LA(1); - - - int index109_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_2); - if ( s>=0 ) return s; - break; - case 2 : - int LA109_3 = input.LA(1); - - - int index109_3 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_3); - if ( s>=0 ) return s; - break; - case 3 : - int LA109_4 = input.LA(1); - - - int index109_4 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_4); - if ( s>=0 ) return s; - break; - case 4 : - int LA109_5 = input.LA(1); - - - int index109_5 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_5); - if ( s>=0 ) return s; - break; - case 5 : - int LA109_6 = input.LA(1); - - - int index109_6 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_6); - if ( s>=0 ) return s; - break; - case 6 : - int LA109_7 = input.LA(1); - - - int index109_7 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_7); - if ( s>=0 ) return s; - break; - case 7 : - int LA109_8 = input.LA(1); - - - int index109_8 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_8); - if ( s>=0 ) return s; - break; - case 8 : - int LA109_9 = input.LA(1); - - - int index109_9 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_9); - if ( s>=0 ) return s; - break; - case 9 : - int LA109_10 = input.LA(1); - - - int index109_10 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_10); - if ( s>=0 ) return s; - break; - case 10 : - int LA109_11 = input.LA(1); - - - int index109_11 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_11); - if ( s>=0 ) return s; - break; - case 11 : - int LA109_12 = input.LA(1); - - - int index109_12 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_12); - if ( s>=0 ) return s; - break; - case 12 : - int LA109_13 = input.LA(1); - - - int index109_13 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_13); - if ( s>=0 ) return s; - break; - case 13 : - int LA109_14 = input.LA(1); - - - int index109_14 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_14); - if ( s>=0 ) return s; - break; - case 14 : - int LA109_15 = input.LA(1); - - - int index109_15 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_15); - if ( s>=0 ) return s; - break; - case 15 : - int LA109_16 = input.LA(1); - - - int index109_16 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_16); - if ( s>=0 ) return s; - break; - case 16 : - int LA109_17 = input.LA(1); - - - int index109_17 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_17); - if ( s>=0 ) return s; - break; - case 17 : - int LA109_18 = input.LA(1); - - - int index109_18 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_18); - if ( s>=0 ) return s; - break; - case 18 : - int LA109_19 = input.LA(1); - - - int index109_19 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_19); - if ( s>=0 ) return s; - break; - case 19 : - int LA109_20 = input.LA(1); - - - int index109_20 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_20); - if ( s>=0 ) return s; - break; - case 20 : - int LA109_21 = input.LA(1); - - - int index109_21 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_21); - if ( s>=0 ) return s; - break; - case 21 : - int LA109_22 = input.LA(1); - - - int index109_22 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_22); - if ( s>=0 ) return s; - break; - case 22 : - int LA109_23 = input.LA(1); - - - int index109_23 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_23); - if ( s>=0 ) return s; - break; - case 23 : - int LA109_24 = input.LA(1); - - - int index109_24 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_24); - if ( s>=0 ) return s; - break; - case 24 : - int LA109_25 = input.LA(1); - - - int index109_25 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_25); - if ( s>=0 ) return s; - break; - case 25 : - int LA109_26 = input.LA(1); - - - int index109_26 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_26); - if ( s>=0 ) return s; - break; - case 26 : - int LA109_27 = input.LA(1); - - - int index109_27 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_27); - if ( s>=0 ) return s; - break; - case 27 : - int LA109_28 = input.LA(1); - - - int index109_28 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_28); - if ( s>=0 ) return s; - break; - case 28 : - int LA109_29 = input.LA(1); - - - int index109_29 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_29); - if ( s>=0 ) return s; - break; - case 29 : - int LA109_30 = input.LA(1); - - - int index109_30 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_30); - if ( s>=0 ) return s; - break; - case 30 : - int LA109_31 = input.LA(1); - - - int index109_31 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_31); - if ( s>=0 ) return s; - break; - case 31 : - int LA109_32 = input.LA(1); - - - int index109_32 = input.index(); - input.rewind(); - s = -1; - if ( (synpred152_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index109_32); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 109, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_77s = "\120\uffff"; - static final String dfa_78s = "\1\2\117\uffff"; - static final String dfa_79s = "\1\4\1\0\116\uffff"; - static final String dfa_80s = "\1\131\1\0\116\uffff"; - static final String dfa_81s = "\2\uffff\1\2\114\uffff\1\1"; - static final String dfa_82s = "\1\uffff\1\0\116\uffff}>"; - static final String[] dfa_83s = { - "\5\2\5\uffff\15\2\1\1\27\2\1\uffff\2\2\1\uffff\34\2\1\uffff\3\2\1\uffff\2\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_77 = DFA.unpackEncodedString(dfa_77s); - static final short[] dfa_78 = DFA.unpackEncodedString(dfa_78s); - static final char[] dfa_79 = DFA.unpackEncodedStringToUnsignedChars(dfa_79s); - static final char[] dfa_80 = DFA.unpackEncodedStringToUnsignedChars(dfa_80s); - static final short[] dfa_81 = DFA.unpackEncodedString(dfa_81s); - static final short[] dfa_82 = DFA.unpackEncodedString(dfa_82s); - static final short[][] dfa_83 = unpackEncodedStringArray(dfa_83s); - - class DFA118 extends DFA { - - public DFA118(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 118; - this.eot = dfa_77; - this.eof = dfa_78; - this.min = dfa_79; - this.max = dfa_80; - this.accept = dfa_81; - this.special = dfa_82; - this.transition = dfa_83; - } - public String getDescription() { - return "14504:2: ( rule__JvmParameterizedTypeReference__Group_1__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA118_1 = input.LA(1); - - - int index118_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred161_InternalEntities()) ) {s = 79;} - - else if ( (true) ) {s = 2;} - - - input.seek(index118_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 118, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA121 extends DFA { - - public DFA121(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 121; - this.eot = dfa_77; - this.eof = dfa_78; - this.min = dfa_79; - this.max = dfa_80; - this.accept = dfa_81; - this.special = dfa_82; - this.transition = dfa_83; - } - public String getDescription() { - return "14774:2: ( rule__JvmParameterizedTypeReference__Group_1_4_2__0 )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA121_1 = input.LA(1); - - - int index121_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred164_InternalEntities()) ) {s = 79;} - - else if ( (true) ) {s = 2;} - - - input.seek(index121_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 121, _s, input); - error(nvae); - throw nvae; - } - } - - - public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000800000000002L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000012L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0048000000000000L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0048000000000002L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0010000000000000L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0068000000000000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0010200000000000L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0120000000000010L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0100000000000012L}); - public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0080000000000000L}); - public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0200000080000010L}); - public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0200000000000000L}); - public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0600000080000010L}); - public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0090000000000000L}); - public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0800000000000000L}); - public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0800000000000002L}); - public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0001E00000000010L}); - public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000000002000L}); - public static final BitSet FOLLOW_22 = new BitSet(new long[]{0xC297E10C080001F0L,0x000000000202FF94L}); - public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x000000000C1F0000L}); - public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000008000000L}); - public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000006000000L}); - public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000000004000L}); - public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000000004002L}); - public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000000008000L}); - public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000000008002L}); - public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000001E00000L}); - public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000001E00002L}); - public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x100000000E000000L}); - public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x100000000E000002L}); - public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x1000000000000000L}); - public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x00000003FC000000L}); - public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x00000003FC000002L}); - public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000000040000000L}); - public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000004000000L}); - public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000088000000L}); - public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000C00000000L}); - public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000C00000002L}); - public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x000000F000000000L}); - public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x000000F000000002L}); - public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000010C00000000L}); - public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x2000000000000000L}); - public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x2000000000000002L}); - public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000060000000000L}); - public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0000080000000000L,0x0000000000600000L}); - public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0000080000000002L,0x0000000000600000L}); - public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x0000080000000000L,0x0000000000200000L}); - public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x0003E00008000010L}); - public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x8200000000000000L}); - public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0200000080000010L,0x0000000000080000L}); - public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0800000004000000L}); - public static final BitSet FOLLOW_55 = new BitSet(new long[]{0xC697E10C880001F0L,0x000000000282FF94L}); - public static final BitSet FOLLOW_56 = new BitSet(new long[]{0xC297E10C880001F0L,0x000000000282FF94L}); - public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x4000000000000000L}); - public static final BitSet FOLLOW_58 = new BitSet(new long[]{0xC2B7E10C880001F0L,0x000000000282FF94L}); - public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x8000000000000000L}); - public static final BitSet FOLLOW_60 = new BitSet(new long[]{0xC297E10C880001F0L,0x000000000282FF95L}); - public static final BitSet FOLLOW_61 = new BitSet(new long[]{0xC297F10C880001F0L,0x000000000382FF94L}); - public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000001L}); - public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0200000080000010L,0x0000000000800000L}); - public static final BitSet FOLLOW_64 = new BitSet(new long[]{0xC297F10C880001F2L,0x000000000382FF94L}); - public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000002L}); - public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x0400000000000000L}); - public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000004L}); - public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000008L}); - public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L}); - public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0AA0000080000010L,0x0000000000000060L}); - public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0A80000080000012L,0x0000000000000040L}); - public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0A80000080000010L,0x0000000000000040L}); - public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000080L}); - public static final BitSet FOLLOW_74 = new BitSet(new long[]{0xC297F10C880001F0L,0x000000000382FF96L}); - public static final BitSet FOLLOW_75 = new BitSet(new long[]{0xC297E10C880001F0L,0x000000000282FF96L}); - public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000100L}); - public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000200L}); - public static final BitSet FOLLOW_78 = new BitSet(new long[]{0xC2B7F10C880001F0L,0x000000000382FF94L}); - public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000100000000000L,0x0000000001000000L}); - public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000400L}); - public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x8200000008000000L}); - public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0004000000000000L,0x0000000002000000L}); - public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000800L}); - public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x00000000000000E0L}); - public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000100L}); - public static final BitSet FOLLOW_86 = new BitSet(new long[]{0xC0040000000001E0L,0x0000000002001800L}); - public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x8400000000000000L}); - public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x8000000000000002L}); - public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000000L,0x0000000000002000L}); - public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000000L,0x0000000000004000L}); - public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000000L,0x0000000000008000L}); - public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000000L,0x0000000000050000L}); - public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0000000000000000L,0x0000000000010000L}); - public static final BitSet FOLLOW_94 = new BitSet(new long[]{0x0000000000000002L,0x0000000000040000L}); - public static final BitSet FOLLOW_95 = new BitSet(new long[]{0x0000000000000000L,0x0000000000020000L}); - public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0000080000000000L}); - public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0000080000000002L}); - public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x00000000000000C0L}); - public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0002200000000000L}); - public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x0000000000100000L}); - public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0000000000100000L}); - public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000001000000000L}); - public static final BitSet FOLLOW_103 = new BitSet(new long[]{0x0000400000000010L}); - public static final BitSet FOLLOW_104 = new BitSet(new long[]{0x0001000000000010L}); - public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000001000000010L}); - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.entities.ide/src/org/eclipse/xtext/web/example/entities/ide/EntitiesIdeModule.java b/org.eclipse.xtext.web.example.entities.ide/src/org/eclipse/xtext/web/example/entities/ide/EntitiesIdeModule.java deleted file mode 100644 index 25219f7064a..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src/org/eclipse/xtext/web/example/entities/ide/EntitiesIdeModule.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.ide; - - -/** - * Use this class to register ide components. - */ -public class EntitiesIdeModule extends AbstractEntitiesIdeModule { -} diff --git a/org.eclipse.xtext.web.example.entities.ide/src/org/eclipse/xtext/web/example/entities/ide/EntitiesIdeSetup.java b/org.eclipse.xtext.web.example.entities.ide/src/org/eclipse/xtext/web/example/entities/ide/EntitiesIdeSetup.java deleted file mode 100644 index 238a49f9ac5..00000000000 --- a/org.eclipse.xtext.web.example.entities.ide/src/org/eclipse/xtext/web/example/entities/ide/EntitiesIdeSetup.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.ide; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.xtext.util.Modules2; -import org.eclipse.xtext.web.example.entities.EntitiesRuntimeModule; -import org.eclipse.xtext.web.example.entities.EntitiesStandaloneSetup; - -/** - * Initialization support for running Xtext languages as language servers. - */ -public class EntitiesIdeSetup extends EntitiesStandaloneSetup { - - @Override - public Injector createInjector() { - return Guice.createInjector(Modules2.mixin(new EntitiesRuntimeModule(), new EntitiesIdeModule())); - } - -} diff --git a/org.eclipse.xtext.web.example.entities/.classpath b/org.eclipse.xtext.web.example.entities/.classpath deleted file mode 100644 index 826cca67ae3..00000000000 --- a/org.eclipse.xtext.web.example.entities/.classpath +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities/.gitignore b/org.eclipse.xtext.web.example.entities/.gitignore deleted file mode 100644 index f3f1c4be15a..00000000000 --- a/org.eclipse.xtext.web.example.entities/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.antlr-generator-*.jar diff --git a/org.eclipse.xtext.web.example.entities/.launch/Generate Language Infrastructure (org.eclipse.xtext.idea.example.entities).launch b/org.eclipse.xtext.web.example.entities/.launch/Generate Language Infrastructure (org.eclipse.xtext.idea.example.entities).launch deleted file mode 100644 index f8ca92dde36..00000000000 --- a/org.eclipse.xtext.web.example.entities/.launch/Generate Language Infrastructure (org.eclipse.xtext.idea.example.entities).launch +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities/.project b/org.eclipse.xtext.web.example.entities/.project deleted file mode 100644 index ade48746569..00000000000 --- a/org.eclipse.xtext.web.example.entities/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web.example.entities - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index c10c903975a..00000000000 --- a/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding/=ISO-8859-1 -encoding/generator=ISO-8859-1 -encoding/src=ISO-8859-1 -encoding/src-gen=ISO-8859-1 diff --git a/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e77491258d4..00000000000 --- a/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web.example.entities/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web.example.entities/generator/org/eclipse/xtext/web/example/entities/EntitiesGeneratorModule.java b/org.eclipse.xtext.web.example.entities/generator/org/eclipse/xtext/web/example/entities/EntitiesGeneratorModule.java deleted file mode 100644 index 39464c47f14..00000000000 --- a/org.eclipse.xtext.web.example.entities/generator/org/eclipse/xtext/web/example/entities/EntitiesGeneratorModule.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities; - -import org.eclipse.xtext.Grammar; -import org.eclipse.xtext.xtext.generator.DefaultGeneratorModule; -import org.eclipse.xtext.xtext.generator.XtextGeneratorNaming; - -public class EntitiesGeneratorModule extends DefaultGeneratorModule { - - public Class bindNaming() { - return StateMachineGeneratorNaming.class; - } - - public static class StateMachineGeneratorNaming extends XtextGeneratorNaming { - @Override - public String getWebBasePackage(Grammar grammar) { - if (grammar.getName().equals("org.eclipse.xtext.web.example.entities.Entities")) { - return "org.eclipse.xtext.web.example.jetty"; - } else { - return super.getWebBasePackage(grammar); - } - } - } -} diff --git a/org.eclipse.xtext.web.example.entities/model/generated/Entities.ecore b/org.eclipse.xtext.web.example.entities/model/generated/Entities.ecore deleted file mode 100644 index 2b25db0cdac..00000000000 --- a/org.eclipse.xtext.web.example.entities/model/generated/Entities.ecore +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities/model/generated/Entities.genmodel b/org.eclipse.xtext.web.example.entities/model/generated/Entities.genmodel deleted file mode 100644 index 7134d6db80d..00000000000 --- a/org.eclipse.xtext.web.example.entities/model/generated/Entities.genmodel +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities/pom.xml b/org.eclipse.xtext.web.example.entities/pom.xml deleted file mode 100644 index 29e851bc4ee..00000000000 --- a/org.eclipse.xtext.web.example.entities/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - org.eclipse.xtext.nodeploy.parent - 2.44.0-SNAPSHOT - ../org.eclipse.xtext.nodeploy.parent - - org.eclipse.xtext.web.example.entities - jar - - - - org.eclipse.xtext - org.eclipse.xtext.xbase - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xtext.generator - ${project.version} - true - - - org.eclipse.xtext - org.eclipse.xtext.common.types - ${project.version} - true - - - org.eclipse.emf - org.eclipse.emf.mwe2.launch - true - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - add-sources - initialize - - add-source - - - - src - src-gen - generator - - - - - - add-resources - initialize - - add-resource - - - - - src-gen - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/AbstractEntitiesRuntimeModule.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/AbstractEntitiesRuntimeModule.java deleted file mode 100644 index 23dde81936f..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/AbstractEntitiesRuntimeModule.java +++ /dev/null @@ -1,216 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities; - -import com.google.inject.Binder; -import com.google.inject.Provider; -import com.google.inject.name.Names; -import java.util.Properties; -import org.eclipse.xtext.Constants; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.common.types.xtext.TypesAwareDefaultGlobalScopeProvider; -import org.eclipse.xtext.formatting2.FormatterPreferenceValuesProvider; -import org.eclipse.xtext.formatting2.FormatterPreferences; -import org.eclipse.xtext.formatting2.IFormatter2; -import org.eclipse.xtext.naming.IQualifiedNameProvider; -import org.eclipse.xtext.parser.IParser; -import org.eclipse.xtext.parser.ITokenToStringConverter; -import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; -import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; -import org.eclipse.xtext.parser.antlr.ITokenDefProvider; -import org.eclipse.xtext.parser.antlr.Lexer; -import org.eclipse.xtext.parser.antlr.LexerBindings; -import org.eclipse.xtext.parser.antlr.LexerProvider; -import org.eclipse.xtext.preferences.IPreferenceValuesProvider; -import org.eclipse.xtext.resource.ILocationInFileProvider; -import org.eclipse.xtext.scoping.IGlobalScopeProvider; -import org.eclipse.xtext.scoping.IScopeProvider; -import org.eclipse.xtext.scoping.IgnoreCaseLinking; -import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; -import org.eclipse.xtext.serializer.ISerializer; -import org.eclipse.xtext.serializer.impl.Serializer; -import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; -import org.eclipse.xtext.service.SingletonBinding; -import org.eclipse.xtext.validation.IResourceValidator; -import org.eclipse.xtext.web.example.entities.formatting2.EntitiesFormatter; -import org.eclipse.xtext.web.example.entities.parser.antlr.EntitiesAntlrTokenFileProvider; -import org.eclipse.xtext.web.example.entities.parser.antlr.EntitiesParser; -import org.eclipse.xtext.web.example.entities.parser.antlr.internal.InternalEntitiesLexer; -import org.eclipse.xtext.web.example.entities.scoping.EntitiesScopeProvider; -import org.eclipse.xtext.web.example.entities.serializer.EntitiesSemanticSequencer; -import org.eclipse.xtext.web.example.entities.serializer.EntitiesSyntacticSequencer; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; -import org.eclipse.xtext.web.example.entities.validation.EntitiesValidator; -import org.eclipse.xtext.xbase.DefaultXbaseRuntimeModule; -import org.eclipse.xtext.xbase.annotations.validation.DerivedStateAwareResourceValidator; -import org.eclipse.xtext.xbase.jvmmodel.JvmLocationInFileProvider; -import org.eclipse.xtext.xbase.scoping.XImportSectionNamespaceScopeProvider; -import org.eclipse.xtext.xbase.scoping.XbaseQualifiedNameProvider; -import org.eclipse.xtext.xbase.scoping.batch.IBatchScopeProvider; -import org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver; -import org.eclipse.xtext.xbase.typesystem.internal.DefaultReentrantTypeResolver; -import org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver; -import org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareReentrantTypeResolver; -import org.eclipse.xtext.xbase.validation.FeatureNameValidator; -import org.eclipse.xtext.xbase.validation.LogicalContainerAwareFeatureNameValidator; - -/** - * Manual modifications go to {@link EntitiesRuntimeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractEntitiesRuntimeModule extends DefaultXbaseRuntimeModule { - - protected Properties properties = null; - - @Override - public void configure(Binder binder) { - properties = tryBindProperties(binder, "org/eclipse/xtext/web/example/entities/Entities.properties"); - super.configure(binder); - } - - public void configureLanguageName(Binder binder) { - binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.xtext.web.example.entities.Entities"); - } - - public void configureFileExtensions(Binder binder) { - if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) - binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("entities"); - } - - // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 - public ClassLoader bindClassLoaderToInstance() { - return getClass().getClassLoader(); - } - - // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 - public Class bindIGrammarAccess() { - return EntitiesGrammarAccess.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISemanticSequencer() { - return EntitiesSemanticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISyntacticSequencer() { - return EntitiesSyntacticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISerializer() { - return Serializer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIParser() { - return EntitiesParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindITokenToStringConverter() { - return AntlrTokenToStringConverter.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIAntlrTokenFileProvider() { - return EntitiesAntlrTokenFileProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindLexer() { - return InternalEntitiesLexer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindITokenDefProvider() { - return AntlrTokenDefProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Provider provideInternalEntitiesLexer() { - return LexerProvider.create(InternalEntitiesLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureRuntimeLexer(Binder binder) { - binder.bind(Lexer.class) - .annotatedWith(Names.named(LexerBindings.RUNTIME)) - .to(InternalEntitiesLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 - @SingletonBinding(eager=true) - public Class bindEntitiesValidator() { - return EntitiesValidator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public Class bindIBatchScopeProvider() { - return EntitiesScopeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public void configureIScopeProviderDelegate(Binder binder) { - binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(XImportSectionNamespaceScopeProvider.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public void configureIgnoreCaseLinking(Binder binder) { - binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); - } - - // contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2 - public Class bindIFormatter2() { - return EntitiesFormatter.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2 - public void configureFormatterPreferences(Binder binder) { - binder.bind(IPreferenceValuesProvider.class).annotatedWith(FormatterPreferences.class).to(FormatterPreferenceValuesProvider.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindIQualifiedNameProvider() { - return XbaseQualifiedNameProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindILocationInFileProvider() { - return JvmLocationInFileProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindIGlobalScopeProvider() { - return TypesAwareDefaultGlobalScopeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindFeatureNameValidator() { - return LogicalContainerAwareFeatureNameValidator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindDefaultBatchTypeResolver() { - return LogicalContainerAwareBatchTypeResolver.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindDefaultReentrantTypeResolver() { - return LogicalContainerAwareReentrantTypeResolver.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2 - public Class bindIResourceValidator() { - return DerivedStateAwareResourceValidator.class; - } - -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/Entities.xtextbin b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/Entities.xtextbin deleted file mode 100644 index 301e84adf99..00000000000 Binary files a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/Entities.xtextbin and /dev/null differ diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/EntitiesStandaloneSetupGenerated.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/EntitiesStandaloneSetupGenerated.java deleted file mode 100644 index facc0ac86c0..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/EntitiesStandaloneSetupGenerated.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.ISetup; -import org.eclipse.xtext.resource.IResourceFactory; -import org.eclipse.xtext.resource.IResourceServiceProvider; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.xbase.XbaseStandaloneSetup; - -@SuppressWarnings("all") -public class EntitiesStandaloneSetupGenerated implements ISetup { - - @Override - public Injector createInjectorAndDoEMFRegistration() { - XbaseStandaloneSetup.doSetup(); - - Injector injector = createInjector(); - register(injector); - return injector; - } - - public Injector createInjector() { - return Guice.createInjector(new EntitiesRuntimeModule()); - } - - public void register(Injector injector) { - if (!EPackage.Registry.INSTANCE.containsKey("http://www.xtext.org/example/Entities")) { - EPackage.Registry.INSTANCE.put("http://www.xtext.org/example/Entities", DomainmodelPackage.eINSTANCE); - } - IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); - IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); - - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("entities", resourceFactory); - IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("entities", serviceProvider); - } -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/AbstractElement.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/AbstractElement.java deleted file mode 100644 index 79e26f6b4d5..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/AbstractElement.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Abstract Element'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement#getName Name}
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getAbstractElement() - * @model - * @generated - */ -public interface AbstractElement extends EObject -{ - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getAbstractElement_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // AbstractElement diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/DomainmodelFactory.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/DomainmodelFactory.java deleted file mode 100644 index 3842a910ddc..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/DomainmodelFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage - * @generated - */ -public interface DomainmodelFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * - * - * @generated - */ - DomainmodelFactory eINSTANCE = org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelFactoryImpl.init(); - - /** - * Returns a new object of class 'Entities'. - * - * - * @return a new object of class 'Entities'. - * @generated - */ - Entities createEntities(); - - /** - * Returns a new object of class 'Abstract Element'. - * - * - * @return a new object of class 'Abstract Element'. - * @generated - */ - AbstractElement createAbstractElement(); - - /** - * Returns a new object of class 'Package Declaration'. - * - * - * @return a new object of class 'Package Declaration'. - * @generated - */ - PackageDeclaration createPackageDeclaration(); - - /** - * Returns a new object of class 'Entity'. - * - * - * @return a new object of class 'Entity'. - * @generated - */ - Entity createEntity(); - - /** - * Returns a new object of class 'Feature'. - * - * - * @return a new object of class 'Feature'. - * @generated - */ - Feature createFeature(); - - /** - * Returns a new object of class 'Property'. - * - * - * @return a new object of class 'Property'. - * @generated - */ - Property createProperty(); - - /** - * Returns a new object of class 'Operation'. - * - * - * @return a new object of class 'Operation'. - * @generated - */ - Operation createOperation(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - DomainmodelPackage getDomainmodelPackage(); - -} //DomainmodelFactory diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/DomainmodelPackage.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/DomainmodelPackage.java deleted file mode 100644 index 16f4a5edc42..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/DomainmodelPackage.java +++ /dev/null @@ -1,698 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelFactory - * @model kind="package" - * @generated - */ -public interface DomainmodelPackage extends EPackage -{ - /** - * The package name. - * - * - * @generated - */ - String eNAME = "domainmodel"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.xtext.org/example/Entities"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "domainmodel"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - DomainmodelPackage eINSTANCE = org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntitiesImpl Entities}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.EntitiesImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getEntities() - * @generated - */ - int ENTITIES = 0; - - /** - * The feature id for the 'Import Section' containment reference. - * - * - * @generated - * @ordered - */ - int ENTITIES__IMPORT_SECTION = 0; - - /** - * The feature id for the 'Elements' containment reference list. - * - * - * @generated - * @ordered - */ - int ENTITIES__ELEMENTS = 1; - - /** - * The number of structural features of the 'Entities' class. - * - * - * @generated - * @ordered - */ - int ENTITIES_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.AbstractElementImpl Abstract Element}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.AbstractElementImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getAbstractElement() - * @generated - */ - int ABSTRACT_ELEMENT = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ELEMENT__NAME = 0; - - /** - * The number of structural features of the 'Abstract Element' class. - * - * - * @generated - * @ordered - */ - int ABSTRACT_ELEMENT_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.PackageDeclarationImpl Package Declaration}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.PackageDeclarationImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getPackageDeclaration() - * @generated - */ - int PACKAGE_DECLARATION = 2; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int PACKAGE_DECLARATION__NAME = ABSTRACT_ELEMENT__NAME; - - /** - * The feature id for the 'Elements' containment reference list. - * - * - * @generated - * @ordered - */ - int PACKAGE_DECLARATION__ELEMENTS = ABSTRACT_ELEMENT_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Package Declaration' class. - * - * - * @generated - * @ordered - */ - int PACKAGE_DECLARATION_FEATURE_COUNT = ABSTRACT_ELEMENT_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntityImpl Entity}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.EntityImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getEntity() - * @generated - */ - int ENTITY = 3; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int ENTITY__NAME = ABSTRACT_ELEMENT__NAME; - - /** - * The feature id for the 'Super Type' containment reference. - * - * - * @generated - * @ordered - */ - int ENTITY__SUPER_TYPE = ABSTRACT_ELEMENT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Features' containment reference list. - * - * - * @generated - * @ordered - */ - int ENTITY__FEATURES = ABSTRACT_ELEMENT_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Entity' class. - * - * - * @generated - * @ordered - */ - int ENTITY_FEATURE_COUNT = ABSTRACT_ELEMENT_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.FeatureImpl Feature}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.FeatureImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getFeature() - * @generated - */ - int FEATURE = 4; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int FEATURE__NAME = 0; - - /** - * The feature id for the 'Type' containment reference. - * - * - * @generated - * @ordered - */ - int FEATURE__TYPE = 1; - - /** - * The number of structural features of the 'Feature' class. - * - * - * @generated - * @ordered - */ - int FEATURE_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.PropertyImpl Property}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.PropertyImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getProperty() - * @generated - */ - int PROPERTY = 5; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int PROPERTY__NAME = FEATURE__NAME; - - /** - * The feature id for the 'Type' containment reference. - * - * - * @generated - * @ordered - */ - int PROPERTY__TYPE = FEATURE__TYPE; - - /** - * The number of structural features of the 'Property' class. - * - * - * @generated - * @ordered - */ - int PROPERTY_FEATURE_COUNT = FEATURE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.OperationImpl Operation}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.OperationImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getOperation() - * @generated - */ - int OPERATION = 6; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int OPERATION__NAME = FEATURE__NAME; - - /** - * The feature id for the 'Type' containment reference. - * - * - * @generated - * @ordered - */ - int OPERATION__TYPE = FEATURE__TYPE; - - /** - * The feature id for the 'Params' containment reference list. - * - * - * @generated - * @ordered - */ - int OPERATION__PARAMS = FEATURE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Body' containment reference. - * - * - * @generated - * @ordered - */ - int OPERATION__BODY = FEATURE_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Operation' class. - * - * - * @generated - * @ordered - */ - int OPERATION_FEATURE_COUNT = FEATURE_FEATURE_COUNT + 2; - - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entities Entities}'. - * - * - * @return the meta object for class 'Entities'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entities - * @generated - */ - EClass getEntities(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entities#getImportSection Import Section}'. - * - * - * @return the meta object for the containment reference 'Import Section'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entities#getImportSection() - * @see #getEntities() - * @generated - */ - EReference getEntities_ImportSection(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entities#getElements Elements}'. - * - * - * @return the meta object for the containment reference list 'Elements'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entities#getElements() - * @see #getEntities() - * @generated - */ - EReference getEntities_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement Abstract Element}'. - * - * - * @return the meta object for class 'Abstract Element'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement - * @generated - */ - EClass getAbstractElement(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement#getName() - * @see #getAbstractElement() - * @generated - */ - EAttribute getAbstractElement_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration Package Declaration}'. - * - * - * @return the meta object for class 'Package Declaration'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration - * @generated - */ - EClass getPackageDeclaration(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration#getElements Elements}'. - * - * - * @return the meta object for the containment reference list 'Elements'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration#getElements() - * @see #getPackageDeclaration() - * @generated - */ - EReference getPackageDeclaration_Elements(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entity Entity}'. - * - * - * @return the meta object for class 'Entity'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entity - * @generated - */ - EClass getEntity(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entity#getSuperType Super Type}'. - * - * - * @return the meta object for the containment reference 'Super Type'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entity#getSuperType() - * @see #getEntity() - * @generated - */ - EReference getEntity_SuperType(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entity#getFeatures Features}'. - * - * - * @return the meta object for the containment reference list 'Features'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entity#getFeatures() - * @see #getEntity() - * @generated - */ - EReference getEntity_Features(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature Feature}'. - * - * - * @return the meta object for class 'Feature'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Feature - * @generated - */ - EClass getFeature(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Feature#getName() - * @see #getFeature() - * @generated - */ - EAttribute getFeature_Name(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature#getType Type}'. - * - * - * @return the meta object for the containment reference 'Type'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Feature#getType() - * @see #getFeature() - * @generated - */ - EReference getFeature_Type(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Property Property}'. - * - * - * @return the meta object for class 'Property'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Property - * @generated - */ - EClass getProperty(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Operation Operation}'. - * - * - * @return the meta object for class 'Operation'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Operation - * @generated - */ - EClass getOperation(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.entities.domainmodel.Operation#getParams Params}'. - * - * - * @return the meta object for the containment reference list 'Params'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Operation#getParams() - * @see #getOperation() - * @generated - */ - EReference getOperation_Params(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.xtext.web.example.entities.domainmodel.Operation#getBody Body}'. - * - * - * @return the meta object for the containment reference 'Body'. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Operation#getBody() - * @see #getOperation() - * @generated - */ - EReference getOperation_Body(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - DomainmodelFactory getDomainmodelFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntitiesImpl Entities}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.EntitiesImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getEntities() - * @generated - */ - EClass ENTITIES = eINSTANCE.getEntities(); - - /** - * The meta object literal for the 'Import Section' containment reference feature. - * - * - * @generated - */ - EReference ENTITIES__IMPORT_SECTION = eINSTANCE.getEntities_ImportSection(); - - /** - * The meta object literal for the 'Elements' containment reference list feature. - * - * - * @generated - */ - EReference ENTITIES__ELEMENTS = eINSTANCE.getEntities_Elements(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.AbstractElementImpl Abstract Element}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.AbstractElementImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getAbstractElement() - * @generated - */ - EClass ABSTRACT_ELEMENT = eINSTANCE.getAbstractElement(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute ABSTRACT_ELEMENT__NAME = eINSTANCE.getAbstractElement_Name(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.PackageDeclarationImpl Package Declaration}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.PackageDeclarationImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getPackageDeclaration() - * @generated - */ - EClass PACKAGE_DECLARATION = eINSTANCE.getPackageDeclaration(); - - /** - * The meta object literal for the 'Elements' containment reference list feature. - * - * - * @generated - */ - EReference PACKAGE_DECLARATION__ELEMENTS = eINSTANCE.getPackageDeclaration_Elements(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntityImpl Entity}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.EntityImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getEntity() - * @generated - */ - EClass ENTITY = eINSTANCE.getEntity(); - - /** - * The meta object literal for the 'Super Type' containment reference feature. - * - * - * @generated - */ - EReference ENTITY__SUPER_TYPE = eINSTANCE.getEntity_SuperType(); - - /** - * The meta object literal for the 'Features' containment reference list feature. - * - * - * @generated - */ - EReference ENTITY__FEATURES = eINSTANCE.getEntity_Features(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.FeatureImpl Feature}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.FeatureImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getFeature() - * @generated - */ - EClass FEATURE = eINSTANCE.getFeature(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute FEATURE__NAME = eINSTANCE.getFeature_Name(); - - /** - * The meta object literal for the 'Type' containment reference feature. - * - * - * @generated - */ - EReference FEATURE__TYPE = eINSTANCE.getFeature_Type(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.PropertyImpl Property}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.PropertyImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getProperty() - * @generated - */ - EClass PROPERTY = eINSTANCE.getProperty(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.entities.domainmodel.impl.OperationImpl Operation}' class. - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.OperationImpl - * @see org.eclipse.xtext.web.example.entities.domainmodel.impl.DomainmodelPackageImpl#getOperation() - * @generated - */ - EClass OPERATION = eINSTANCE.getOperation(); - - /** - * The meta object literal for the 'Params' containment reference list feature. - * - * - * @generated - */ - EReference OPERATION__PARAMS = eINSTANCE.getOperation_Params(); - - /** - * The meta object literal for the 'Body' containment reference feature. - * - * - * @generated - */ - EReference OPERATION__BODY = eINSTANCE.getOperation_Body(); - - } - -} //DomainmodelPackage diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Entities.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Entities.java deleted file mode 100644 index d86fdd6d412..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Entities.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.xtext.xtype.XImportSection; - -/** - * - * A representation of the model object 'Entities'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Entities#getImportSection Import Section}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Entities#getElements Elements}
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getEntities() - * @model - * @generated - */ -public interface Entities extends EObject -{ - /** - * Returns the value of the 'Import Section' containment reference. - * - * - * @return the value of the 'Import Section' containment reference. - * @see #setImportSection(XImportSection) - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getEntities_ImportSection() - * @model containment="true" - * @generated - */ - XImportSection getImportSection(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entities#getImportSection Import Section}' containment reference. - * - * - * @param value the new value of the 'Import Section' containment reference. - * @see #getImportSection() - * @generated - */ - void setImportSection(XImportSection value); - - /** - * Returns the value of the 'Elements' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement}. - * - * - * @return the value of the 'Elements' containment reference list. - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getEntities_Elements() - * @model containment="true" - * @generated - */ - EList getElements(); - -} // Entities diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Entity.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Entity.java deleted file mode 100644 index 28c9ad3654a..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Entity.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.xtext.common.types.JvmParameterizedTypeReference; - -/** - * - * A representation of the model object 'Entity'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Entity#getSuperType Super Type}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Entity#getFeatures Features}
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getEntity() - * @model - * @generated - */ -public interface Entity extends AbstractElement -{ - /** - * Returns the value of the 'Super Type' containment reference. - * - * - * @return the value of the 'Super Type' containment reference. - * @see #setSuperType(JvmParameterizedTypeReference) - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getEntity_SuperType() - * @model containment="true" - * @generated - */ - JvmParameterizedTypeReference getSuperType(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entity#getSuperType Super Type}' containment reference. - * - * - * @param value the new value of the 'Super Type' containment reference. - * @see #getSuperType() - * @generated - */ - void setSuperType(JvmParameterizedTypeReference value); - - /** - * Returns the value of the 'Features' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.entities.domainmodel.Feature}. - * - * - * @return the value of the 'Features' containment reference list. - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getEntity_Features() - * @model containment="true" - * @generated - */ - EList getFeatures(); - -} // Entity diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Feature.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Feature.java deleted file mode 100644 index 99e51fdc38b..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Feature.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.xtext.common.types.JvmTypeReference; - -/** - * - * A representation of the model object 'Feature'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Feature#getName Name}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Feature#getType Type}
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getFeature() - * @model - * @generated - */ -public interface Feature extends EObject -{ - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getFeature_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Type' containment reference. - * - * - * @return the value of the 'Type' containment reference. - * @see #setType(JvmTypeReference) - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getFeature_Type() - * @model containment="true" - * @generated - */ - JvmTypeReference getType(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature#getType Type}' containment reference. - * - * - * @param value the new value of the 'Type' containment reference. - * @see #getType() - * @generated - */ - void setType(JvmTypeReference value); - -} // Feature diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Operation.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Operation.java deleted file mode 100644 index f8f8995cea5..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Operation.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.xtext.common.types.JvmFormalParameter; - -import org.eclipse.xtext.xbase.XExpression; - -/** - * - * A representation of the model object 'Operation'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Operation#getParams Params}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.Operation#getBody Body}
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getOperation() - * @model - * @generated - */ -public interface Operation extends Feature -{ - /** - * Returns the value of the 'Params' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.common.types.JvmFormalParameter}. - * - * - * @return the value of the 'Params' containment reference list. - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getOperation_Params() - * @model containment="true" - * @generated - */ - EList getParams(); - - /** - * Returns the value of the 'Body' containment reference. - * - * - * @return the value of the 'Body' containment reference. - * @see #setBody(XExpression) - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getOperation_Body() - * @model containment="true" - * @generated - */ - XExpression getBody(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.entities.domainmodel.Operation#getBody Body}' containment reference. - * - * - * @param value the new value of the 'Body' containment reference. - * @see #getBody() - * @generated - */ - void setBody(XExpression value); - -} // Operation diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/PackageDeclaration.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/PackageDeclaration.java deleted file mode 100644 index 2b405e571e6..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/PackageDeclaration.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Package Declaration'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration#getElements Elements}
  • - *
- * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getPackageDeclaration() - * @model - * @generated - */ -public interface PackageDeclaration extends AbstractElement -{ - /** - * Returns the value of the 'Elements' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement}. - * - * - * @return the value of the 'Elements' containment reference list. - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getPackageDeclaration_Elements() - * @model containment="true" - * @generated - */ - EList getElements(); - -} // PackageDeclaration diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Property.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Property.java deleted file mode 100644 index 69c65483f0e..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/Property.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel; - - -/** - * - * A representation of the model object 'Property'. - * - * - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#getProperty() - * @model - * @generated - */ -public interface Property extends Feature -{ -} // Property diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/AbstractElementImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/AbstractElementImpl.java deleted file mode 100644 index 9c041b667cf..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/AbstractElementImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; - -/** - * - * An implementation of the model object 'Abstract Element'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.AbstractElementImpl#getName Name}
  • - *
- * - * @generated - */ -public class AbstractElementImpl extends MinimalEObjectImpl.Container implements AbstractElement -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected AbstractElementImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.ABSTRACT_ELEMENT; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, DomainmodelPackage.ABSTRACT_ELEMENT__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case DomainmodelPackage.ABSTRACT_ELEMENT__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case DomainmodelPackage.ABSTRACT_ELEMENT__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.ABSTRACT_ELEMENT__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.ABSTRACT_ELEMENT__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //AbstractElementImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/DomainmodelFactoryImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/DomainmodelFactoryImpl.java deleted file mode 100644 index 465d7d597e9..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/DomainmodelFactoryImpl.java +++ /dev/null @@ -1,192 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import org.eclipse.xtext.web.example.entities.domainmodel.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class DomainmodelFactoryImpl extends EFactoryImpl implements DomainmodelFactory -{ - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static DomainmodelFactory init() - { - try - { - DomainmodelFactory theDomainmodelFactory = (DomainmodelFactory)EPackage.Registry.INSTANCE.getEFactory(DomainmodelPackage.eNS_URI); - if (theDomainmodelFactory != null) - { - return theDomainmodelFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new DomainmodelFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public DomainmodelFactoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case DomainmodelPackage.ENTITIES: return createEntities(); - case DomainmodelPackage.ABSTRACT_ELEMENT: return createAbstractElement(); - case DomainmodelPackage.PACKAGE_DECLARATION: return createPackageDeclaration(); - case DomainmodelPackage.ENTITY: return createEntity(); - case DomainmodelPackage.FEATURE: return createFeature(); - case DomainmodelPackage.PROPERTY: return createProperty(); - case DomainmodelPackage.OPERATION: return createOperation(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Entities createEntities() - { - EntitiesImpl entities = new EntitiesImpl(); - return entities; - } - - /** - * - * - * @generated - */ - @Override - public AbstractElement createAbstractElement() - { - AbstractElementImpl abstractElement = new AbstractElementImpl(); - return abstractElement; - } - - /** - * - * - * @generated - */ - @Override - public PackageDeclaration createPackageDeclaration() - { - PackageDeclarationImpl packageDeclaration = new PackageDeclarationImpl(); - return packageDeclaration; - } - - /** - * - * - * @generated - */ - @Override - public Entity createEntity() - { - EntityImpl entity = new EntityImpl(); - return entity; - } - - /** - * - * - * @generated - */ - @Override - public Feature createFeature() - { - FeatureImpl feature = new FeatureImpl(); - return feature; - } - - /** - * - * - * @generated - */ - @Override - public Property createProperty() - { - PropertyImpl property = new PropertyImpl(); - return property; - } - - /** - * - * - * @generated - */ - @Override - public Operation createOperation() - { - OperationImpl operation = new OperationImpl(); - return operation; - } - - /** - * - * - * @generated - */ - @Override - public DomainmodelPackage getDomainmodelPackage() - { - return (DomainmodelPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static DomainmodelPackage getPackage() - { - return DomainmodelPackage.eINSTANCE; - } - -} //DomainmodelFactoryImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/DomainmodelPackageImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/DomainmodelPackageImpl.java deleted file mode 100644 index 676fe024a29..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/DomainmodelPackageImpl.java +++ /dev/null @@ -1,469 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.xtext.common.types.TypesPackage; - -import org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelFactory; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entities; -import org.eclipse.xtext.web.example.entities.domainmodel.Entity; -import org.eclipse.xtext.web.example.entities.domainmodel.Feature; -import org.eclipse.xtext.web.example.entities.domainmodel.Operation; -import org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration; -import org.eclipse.xtext.web.example.entities.domainmodel.Property; - -import org.eclipse.xtext.xbase.XbasePackage; - -import org.eclipse.xtext.xtype.XtypePackage; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class DomainmodelPackageImpl extends EPackageImpl implements DomainmodelPackage -{ - /** - * - * - * @generated - */ - private EClass entitiesEClass = null; - - /** - * - * - * @generated - */ - private EClass abstractElementEClass = null; - - /** - * - * - * @generated - */ - private EClass packageDeclarationEClass = null; - - /** - * - * - * @generated - */ - private EClass entityEClass = null; - - /** - * - * - * @generated - */ - private EClass featureEClass = null; - - /** - * - * - * @generated - */ - private EClass propertyEClass = null; - - /** - * - * - * @generated - */ - private EClass operationEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage#eNS_URI - * @see #init() - * @generated - */ - private DomainmodelPackageImpl() - { - super(eNS_URI, DomainmodelFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link DomainmodelPackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static DomainmodelPackage init() - { - if (isInited) return (DomainmodelPackage)EPackage.Registry.INSTANCE.getEPackage(DomainmodelPackage.eNS_URI); - - // Obtain or create and register package - Object registeredDomainmodelPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - DomainmodelPackageImpl theDomainmodelPackage = registeredDomainmodelPackage instanceof DomainmodelPackageImpl ? (DomainmodelPackageImpl)registeredDomainmodelPackage : new DomainmodelPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - TypesPackage.eINSTANCE.eClass(); - XbasePackage.eINSTANCE.eClass(); - XtypePackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theDomainmodelPackage.createPackageContents(); - - // Initialize created meta-data - theDomainmodelPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theDomainmodelPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(DomainmodelPackage.eNS_URI, theDomainmodelPackage); - return theDomainmodelPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getEntities() - { - return entitiesEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntities_ImportSection() - { - return (EReference)entitiesEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntities_Elements() - { - return (EReference)entitiesEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getAbstractElement() - { - return abstractElementEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getAbstractElement_Name() - { - return (EAttribute)abstractElementEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPackageDeclaration() - { - return packageDeclarationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getPackageDeclaration_Elements() - { - return (EReference)packageDeclarationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getEntity() - { - return entityEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntity_SuperType() - { - return (EReference)entityEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getEntity_Features() - { - return (EReference)entityEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getFeature() - { - return featureEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getFeature_Name() - { - return (EAttribute)featureEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getFeature_Type() - { - return (EReference)featureEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getProperty() - { - return propertyEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getOperation() - { - return operationEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getOperation_Params() - { - return (EReference)operationEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getOperation_Body() - { - return (EReference)operationEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public DomainmodelFactory getDomainmodelFactory() - { - return (DomainmodelFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - entitiesEClass = createEClass(ENTITIES); - createEReference(entitiesEClass, ENTITIES__IMPORT_SECTION); - createEReference(entitiesEClass, ENTITIES__ELEMENTS); - - abstractElementEClass = createEClass(ABSTRACT_ELEMENT); - createEAttribute(abstractElementEClass, ABSTRACT_ELEMENT__NAME); - - packageDeclarationEClass = createEClass(PACKAGE_DECLARATION); - createEReference(packageDeclarationEClass, PACKAGE_DECLARATION__ELEMENTS); - - entityEClass = createEClass(ENTITY); - createEReference(entityEClass, ENTITY__SUPER_TYPE); - createEReference(entityEClass, ENTITY__FEATURES); - - featureEClass = createEClass(FEATURE); - createEAttribute(featureEClass, FEATURE__NAME); - createEReference(featureEClass, FEATURE__TYPE); - - propertyEClass = createEClass(PROPERTY); - - operationEClass = createEClass(OPERATION); - createEReference(operationEClass, OPERATION__PARAMS); - createEReference(operationEClass, OPERATION__BODY); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Obtain other dependent packages - XtypePackage theXtypePackage = (XtypePackage)EPackage.Registry.INSTANCE.getEPackage(XtypePackage.eNS_URI); - TypesPackage theTypesPackage = (TypesPackage)EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI); - XbasePackage theXbasePackage = (XbasePackage)EPackage.Registry.INSTANCE.getEPackage(XbasePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - packageDeclarationEClass.getESuperTypes().add(this.getAbstractElement()); - entityEClass.getESuperTypes().add(this.getAbstractElement()); - propertyEClass.getESuperTypes().add(this.getFeature()); - operationEClass.getESuperTypes().add(this.getFeature()); - - // Initialize classes and features; add operations and parameters - initEClass(entitiesEClass, Entities.class, "Entities", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEntities_ImportSection(), theXtypePackage.getXImportSection(), null, "importSection", null, 0, 1, Entities.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEntities_Elements(), this.getAbstractElement(), null, "elements", null, 0, -1, Entities.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(abstractElementEClass, AbstractElement.class, "AbstractElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getAbstractElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, AbstractElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(packageDeclarationEClass, PackageDeclaration.class, "PackageDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getPackageDeclaration_Elements(), this.getAbstractElement(), null, "elements", null, 0, -1, PackageDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEntity_SuperType(), theTypesPackage.getJvmParameterizedTypeReference(), null, "superType", null, 0, 1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getEntity_Features(), this.getFeature(), null, "features", null, 0, -1, Entity.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(featureEClass, Feature.class, "Feature", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getFeature_Name(), ecorePackage.getEString(), "name", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getFeature_Type(), theTypesPackage.getJvmTypeReference(), null, "type", null, 0, 1, Feature.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertyEClass, Property.class, "Property", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(operationEClass, Operation.class, "Operation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getOperation_Params(), theTypesPackage.getJvmFormalParameter(), null, "params", null, 0, -1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getOperation_Body(), theXbasePackage.getXExpression(), null, "body", null, 0, 1, Operation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //DomainmodelPackageImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntitiesImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntitiesImpl.java deleted file mode 100644 index b5a0ef27456..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntitiesImpl.java +++ /dev/null @@ -1,251 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entities; - -import org.eclipse.xtext.xtype.XImportSection; - -/** - * - * An implementation of the model object 'Entities'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntitiesImpl#getImportSection Import Section}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntitiesImpl#getElements Elements}
  • - *
- * - * @generated - */ -public class EntitiesImpl extends MinimalEObjectImpl.Container implements Entities -{ - /** - * The cached value of the '{@link #getImportSection() Import Section}' containment reference. - * - * - * @see #getImportSection() - * @generated - * @ordered - */ - protected XImportSection importSection; - - /** - * The cached value of the '{@link #getElements() Elements}' containment reference list. - * - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * - * @generated - */ - protected EntitiesImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.ENTITIES; - } - - /** - * - * - * @generated - */ - @Override - public XImportSection getImportSection() - { - return importSection; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetImportSection(XImportSection newImportSection, NotificationChain msgs) - { - XImportSection oldImportSection = importSection; - importSection = newImportSection; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DomainmodelPackage.ENTITIES__IMPORT_SECTION, oldImportSection, newImportSection); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setImportSection(XImportSection newImportSection) - { - if (newImportSection != importSection) - { - NotificationChain msgs = null; - if (importSection != null) - msgs = ((InternalEObject)importSection).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.ENTITIES__IMPORT_SECTION, null, msgs); - if (newImportSection != null) - msgs = ((InternalEObject)newImportSection).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.ENTITIES__IMPORT_SECTION, null, msgs); - msgs = basicSetImportSection(newImportSection, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, DomainmodelPackage.ENTITIES__IMPORT_SECTION, newImportSection, newImportSection)); - } - - /** - * - * - * @generated - */ - @Override - public EList getElements() - { - if (elements == null) - { - elements = new EObjectContainmentEList(AbstractElement.class, this, DomainmodelPackage.ENTITIES__ELEMENTS); - } - return elements; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case DomainmodelPackage.ENTITIES__IMPORT_SECTION: - return basicSetImportSection(null, msgs); - case DomainmodelPackage.ENTITIES__ELEMENTS: - return ((InternalEList)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case DomainmodelPackage.ENTITIES__IMPORT_SECTION: - return getImportSection(); - case DomainmodelPackage.ENTITIES__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case DomainmodelPackage.ENTITIES__IMPORT_SECTION: - setImportSection((XImportSection)newValue); - return; - case DomainmodelPackage.ENTITIES__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.ENTITIES__IMPORT_SECTION: - setImportSection((XImportSection)null); - return; - case DomainmodelPackage.ENTITIES__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.ENTITIES__IMPORT_SECTION: - return importSection != null; - case DomainmodelPackage.ENTITIES__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //EntitiesImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntityImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntityImpl.java deleted file mode 100644 index 5765181a2c9..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/EntityImpl.java +++ /dev/null @@ -1,250 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.common.types.JvmParameterizedTypeReference; - -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entity; -import org.eclipse.xtext.web.example.entities.domainmodel.Feature; - -/** - * - * An implementation of the model object 'Entity'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntityImpl#getSuperType Super Type}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.EntityImpl#getFeatures Features}
  • - *
- * - * @generated - */ -public class EntityImpl extends AbstractElementImpl implements Entity -{ - /** - * The cached value of the '{@link #getSuperType() Super Type}' containment reference. - * - * - * @see #getSuperType() - * @generated - * @ordered - */ - protected JvmParameterizedTypeReference superType; - - /** - * The cached value of the '{@link #getFeatures() Features}' containment reference list. - * - * - * @see #getFeatures() - * @generated - * @ordered - */ - protected EList features; - - /** - * - * - * @generated - */ - protected EntityImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.ENTITY; - } - - /** - * - * - * @generated - */ - @Override - public JvmParameterizedTypeReference getSuperType() - { - return superType; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetSuperType(JvmParameterizedTypeReference newSuperType, NotificationChain msgs) - { - JvmParameterizedTypeReference oldSuperType = superType; - superType = newSuperType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DomainmodelPackage.ENTITY__SUPER_TYPE, oldSuperType, newSuperType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setSuperType(JvmParameterizedTypeReference newSuperType) - { - if (newSuperType != superType) - { - NotificationChain msgs = null; - if (superType != null) - msgs = ((InternalEObject)superType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.ENTITY__SUPER_TYPE, null, msgs); - if (newSuperType != null) - msgs = ((InternalEObject)newSuperType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.ENTITY__SUPER_TYPE, null, msgs); - msgs = basicSetSuperType(newSuperType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, DomainmodelPackage.ENTITY__SUPER_TYPE, newSuperType, newSuperType)); - } - - /** - * - * - * @generated - */ - @Override - public EList getFeatures() - { - if (features == null) - { - features = new EObjectContainmentEList(Feature.class, this, DomainmodelPackage.ENTITY__FEATURES); - } - return features; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case DomainmodelPackage.ENTITY__SUPER_TYPE: - return basicSetSuperType(null, msgs); - case DomainmodelPackage.ENTITY__FEATURES: - return ((InternalEList)getFeatures()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case DomainmodelPackage.ENTITY__SUPER_TYPE: - return getSuperType(); - case DomainmodelPackage.ENTITY__FEATURES: - return getFeatures(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case DomainmodelPackage.ENTITY__SUPER_TYPE: - setSuperType((JvmParameterizedTypeReference)newValue); - return; - case DomainmodelPackage.ENTITY__FEATURES: - getFeatures().clear(); - getFeatures().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.ENTITY__SUPER_TYPE: - setSuperType((JvmParameterizedTypeReference)null); - return; - case DomainmodelPackage.ENTITY__FEATURES: - getFeatures().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.ENTITY__SUPER_TYPE: - return superType != null; - case DomainmodelPackage.ENTITY__FEATURES: - return features != null && !features.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //EntityImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/FeatureImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/FeatureImpl.java deleted file mode 100644 index 9b2179036bd..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/FeatureImpl.java +++ /dev/null @@ -1,276 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.common.types.JvmTypeReference; - -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Feature; - -/** - * - * An implementation of the model object 'Feature'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.FeatureImpl#getName Name}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.FeatureImpl#getType Type}
  • - *
- * - * @generated - */ -public class FeatureImpl extends MinimalEObjectImpl.Container implements Feature -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getType() Type}' containment reference. - * - * - * @see #getType() - * @generated - * @ordered - */ - protected JvmTypeReference type; - - /** - * - * - * @generated - */ - protected FeatureImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.FEATURE; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, DomainmodelPackage.FEATURE__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public JvmTypeReference getType() - { - return type; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetType(JvmTypeReference newType, NotificationChain msgs) - { - JvmTypeReference oldType = type; - type = newType; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DomainmodelPackage.FEATURE__TYPE, oldType, newType); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setType(JvmTypeReference newType) - { - if (newType != type) - { - NotificationChain msgs = null; - if (type != null) - msgs = ((InternalEObject)type).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.FEATURE__TYPE, null, msgs); - if (newType != null) - msgs = ((InternalEObject)newType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.FEATURE__TYPE, null, msgs); - msgs = basicSetType(newType, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, DomainmodelPackage.FEATURE__TYPE, newType, newType)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case DomainmodelPackage.FEATURE__TYPE: - return basicSetType(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case DomainmodelPackage.FEATURE__NAME: - return getName(); - case DomainmodelPackage.FEATURE__TYPE: - return getType(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case DomainmodelPackage.FEATURE__NAME: - setName((String)newValue); - return; - case DomainmodelPackage.FEATURE__TYPE: - setType((JvmTypeReference)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.FEATURE__NAME: - setName(NAME_EDEFAULT); - return; - case DomainmodelPackage.FEATURE__TYPE: - setType((JvmTypeReference)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.FEATURE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case DomainmodelPackage.FEATURE__TYPE: - return type != null; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //FeatureImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/OperationImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/OperationImpl.java deleted file mode 100644 index 091304b49e0..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/OperationImpl.java +++ /dev/null @@ -1,251 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.common.types.JvmFormalParameter; - -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Operation; - -import org.eclipse.xtext.xbase.XExpression; - -/** - * - * An implementation of the model object 'Operation'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.OperationImpl#getParams Params}
  • - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.OperationImpl#getBody Body}
  • - *
- * - * @generated - */ -public class OperationImpl extends FeatureImpl implements Operation -{ - /** - * The cached value of the '{@link #getParams() Params}' containment reference list. - * - * - * @see #getParams() - * @generated - * @ordered - */ - protected EList params; - - /** - * The cached value of the '{@link #getBody() Body}' containment reference. - * - * - * @see #getBody() - * @generated - * @ordered - */ - protected XExpression body; - - /** - * - * - * @generated - */ - protected OperationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.OPERATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getParams() - { - if (params == null) - { - params = new EObjectContainmentEList(JvmFormalParameter.class, this, DomainmodelPackage.OPERATION__PARAMS); - } - return params; - } - - /** - * - * - * @generated - */ - @Override - public XExpression getBody() - { - return body; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetBody(XExpression newBody, NotificationChain msgs) - { - XExpression oldBody = body; - body = newBody; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DomainmodelPackage.OPERATION__BODY, oldBody, newBody); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setBody(XExpression newBody) - { - if (newBody != body) - { - NotificationChain msgs = null; - if (body != null) - msgs = ((InternalEObject)body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.OPERATION__BODY, null, msgs); - if (newBody != null) - msgs = ((InternalEObject)newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - DomainmodelPackage.OPERATION__BODY, null, msgs); - msgs = basicSetBody(newBody, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, DomainmodelPackage.OPERATION__BODY, newBody, newBody)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case DomainmodelPackage.OPERATION__PARAMS: - return ((InternalEList)getParams()).basicRemove(otherEnd, msgs); - case DomainmodelPackage.OPERATION__BODY: - return basicSetBody(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case DomainmodelPackage.OPERATION__PARAMS: - return getParams(); - case DomainmodelPackage.OPERATION__BODY: - return getBody(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case DomainmodelPackage.OPERATION__PARAMS: - getParams().clear(); - getParams().addAll((Collection)newValue); - return; - case DomainmodelPackage.OPERATION__BODY: - setBody((XExpression)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.OPERATION__PARAMS: - getParams().clear(); - return; - case DomainmodelPackage.OPERATION__BODY: - setBody((XExpression)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.OPERATION__PARAMS: - return params != null && !params.isEmpty(); - case DomainmodelPackage.OPERATION__BODY: - return body != null; - } - return super.eIsSet(featureID); - } - -} //OperationImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/PackageDeclarationImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/PackageDeclarationImpl.java deleted file mode 100644 index b5993c0e6e4..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/PackageDeclarationImpl.java +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration; - -/** - * - * An implementation of the model object 'Package Declaration'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.entities.domainmodel.impl.PackageDeclarationImpl#getElements Elements}
  • - *
- * - * @generated - */ -public class PackageDeclarationImpl extends AbstractElementImpl implements PackageDeclaration -{ - /** - * The cached value of the '{@link #getElements() Elements}' containment reference list. - * - * - * @see #getElements() - * @generated - * @ordered - */ - protected EList elements; - - /** - * - * - * @generated - */ - protected PackageDeclarationImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.PACKAGE_DECLARATION; - } - - /** - * - * - * @generated - */ - @Override - public EList getElements() - { - if (elements == null) - { - elements = new EObjectContainmentEList(AbstractElement.class, this, DomainmodelPackage.PACKAGE_DECLARATION__ELEMENTS); - } - return elements; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case DomainmodelPackage.PACKAGE_DECLARATION__ELEMENTS: - return ((InternalEList)getElements()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case DomainmodelPackage.PACKAGE_DECLARATION__ELEMENTS: - return getElements(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case DomainmodelPackage.PACKAGE_DECLARATION__ELEMENTS: - getElements().clear(); - getElements().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.PACKAGE_DECLARATION__ELEMENTS: - getElements().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case DomainmodelPackage.PACKAGE_DECLARATION__ELEMENTS: - return elements != null && !elements.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //PackageDeclarationImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/PropertyImpl.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/PropertyImpl.java deleted file mode 100644 index ead933328b7..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/impl/PropertyImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Property; - -/** - * - * An implementation of the model object 'Property'. - * - * - * @generated - */ -public class PropertyImpl extends FeatureImpl implements Property -{ - /** - * - * - * @generated - */ - protected PropertyImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return DomainmodelPackage.Literals.PROPERTY; - } - -} //PropertyImpl diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelAdapterFactory.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelAdapterFactory.java deleted file mode 100644 index 07648bf42c8..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelAdapterFactory.java +++ /dev/null @@ -1,258 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; - -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.xtext.web.example.entities.domainmodel.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage - * @generated - */ -public class DomainmodelAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * - * - * @generated - */ - protected static DomainmodelPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public DomainmodelAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = DomainmodelPackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) - { - if (object == modelPackage) - { - return true; - } - if (object instanceof EObject) - { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected DomainmodelSwitch modelSwitch = - new DomainmodelSwitch() - { - @Override - public Adapter caseEntities(Entities object) - { - return createEntitiesAdapter(); - } - @Override - public Adapter caseAbstractElement(AbstractElement object) - { - return createAbstractElementAdapter(); - } - @Override - public Adapter casePackageDeclaration(PackageDeclaration object) - { - return createPackageDeclarationAdapter(); - } - @Override - public Adapter caseEntity(Entity object) - { - return createEntityAdapter(); - } - @Override - public Adapter caseFeature(Feature object) - { - return createFeatureAdapter(); - } - @Override - public Adapter caseProperty(Property object) - { - return createPropertyAdapter(); - } - @Override - public Adapter caseOperation(Operation object) - { - return createOperationAdapter(); - } - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) - { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entities Entities}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entities - * @generated - */ - public Adapter createEntitiesAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement Abstract Element}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement - * @generated - */ - public Adapter createAbstractElementAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration Package Declaration}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration - * @generated - */ - public Adapter createPackageDeclarationAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Entity Entity}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Entity - * @generated - */ - public Adapter createEntityAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Feature Feature}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Feature - * @generated - */ - public Adapter createFeatureAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Property Property}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Property - * @generated - */ - public Adapter createPropertyAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.entities.domainmodel.Operation Operation}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.entities.domainmodel.Operation - * @generated - */ - public Adapter createOperationAdapter() - { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() - { - return null; - } - -} //DomainmodelAdapterFactory diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelSwitch.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelSwitch.java deleted file mode 100644 index bf9d1d28e31..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/domainmodel/util/DomainmodelSwitch.java +++ /dev/null @@ -1,267 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.domainmodel.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.util.Switch; - -import org.eclipse.xtext.web.example.entities.domainmodel.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage - * @generated - */ -public class DomainmodelSwitch extends Switch -{ - /** - * The cached model package - * - * - * @generated - */ - protected static DomainmodelPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public DomainmodelSwitch() - { - if (modelPackage == null) - { - modelPackage = DomainmodelPackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) - { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case DomainmodelPackage.ENTITIES: - { - Entities entities = (Entities)theEObject; - T result = caseEntities(entities); - if (result == null) result = defaultCase(theEObject); - return result; - } - case DomainmodelPackage.ABSTRACT_ELEMENT: - { - AbstractElement abstractElement = (AbstractElement)theEObject; - T result = caseAbstractElement(abstractElement); - if (result == null) result = defaultCase(theEObject); - return result; - } - case DomainmodelPackage.PACKAGE_DECLARATION: - { - PackageDeclaration packageDeclaration = (PackageDeclaration)theEObject; - T result = casePackageDeclaration(packageDeclaration); - if (result == null) result = caseAbstractElement(packageDeclaration); - if (result == null) result = defaultCase(theEObject); - return result; - } - case DomainmodelPackage.ENTITY: - { - Entity entity = (Entity)theEObject; - T result = caseEntity(entity); - if (result == null) result = caseAbstractElement(entity); - if (result == null) result = defaultCase(theEObject); - return result; - } - case DomainmodelPackage.FEATURE: - { - Feature feature = (Feature)theEObject; - T result = caseFeature(feature); - if (result == null) result = defaultCase(theEObject); - return result; - } - case DomainmodelPackage.PROPERTY: - { - Property property = (Property)theEObject; - T result = caseProperty(property); - if (result == null) result = caseFeature(property); - if (result == null) result = defaultCase(theEObject); - return result; - } - case DomainmodelPackage.OPERATION: - { - Operation operation = (Operation)theEObject; - T result = caseOperation(operation); - if (result == null) result = caseFeature(operation); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Entities'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Entities'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEntities(Entities object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Abstract Element'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Abstract Element'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseAbstractElement(AbstractElement object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Package Declaration'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Package Declaration'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePackageDeclaration(PackageDeclaration object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Entity'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Entity'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEntity(Entity object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Feature'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Feature'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseFeature(Feature object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Property'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Property'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseProperty(Property object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Operation'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Operation'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOperation(Operation object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) - { - return null; - } - -} //DomainmodelSwitch diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesAntlrTokenFileProvider.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesAntlrTokenFileProvider.java deleted file mode 100644 index ada3d9a0e19..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesAntlrTokenFileProvider.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.parser.antlr; - -import java.io.InputStream; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; - -public class EntitiesAntlrTokenFileProvider implements IAntlrTokenFileProvider { - - @Override - public InputStream getAntlrTokenFile() { - ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens"); - } -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesParser.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesParser.java deleted file mode 100644 index 14645b3c0ff..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/EntitiesParser.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.parser.antlr; - -import com.google.inject.Inject; -import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.web.example.entities.parser.antlr.internal.InternalEntitiesParser; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - -public class EntitiesParser extends AbstractAntlrParser { - - @Inject - private EntitiesGrammarAccess grammarAccess; - - @Override - protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { - tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); - } - - - @Override - protected InternalEntitiesParser createParser(XtextTokenStream stream) { - return new InternalEntitiesParser(stream, getGrammarAccess()); - } - - @Override - protected String getDefaultRuleName() { - return "Entities"; - } - - public EntitiesGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(EntitiesGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.g b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.g deleted file mode 100644 index 2804be75cc8..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.g +++ /dev/null @@ -1,6895 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -grammar InternalEntities; - -options { - superClass=AbstractInternalAntlrParser; -} - -@lexer::header { -package org.eclipse.xtext.web.example.entities.parser.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.parser.antlr.Lexer; -} - -@parser::header { -package org.eclipse.xtext.web.example.entities.parser.antlr.internal; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - -} - -@parser::members { - - private EntitiesGrammarAccess grammarAccess; - - public InternalEntitiesParser(TokenStream input, EntitiesGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "Entities"; - } - - @Override - protected EntitiesGrammarAccess getGrammarAccess() { - return grammarAccess; - } - -} - -@rulecatch { - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } -} - -// Entry rule entryRuleEntities -entryRuleEntities returns [EObject current=null]: - { newCompositeNode(grammarAccess.getEntitiesRule()); } - iv_ruleEntities=ruleEntities - { $current=$iv_ruleEntities.current; } - EOF; - -// Rule Entities -ruleEntities returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0()); - } - lv_importSection_0_0=ruleXImportSection - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEntitiesRule()); - } - set( - $current, - "importSection", - lv_importSection_0_0, - "org.eclipse.xtext.xbase.Xtype.XImportSection"); - afterParserOrEnumRuleCall(); - } - ) - )? - ( - ( - { - newCompositeNode(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0()); - } - lv_elements_1_0=ruleAbstractElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEntitiesRule()); - } - add( - $current, - "elements", - lv_elements_1_0, - "org.eclipse.xtext.web.example.entities.Entities.AbstractElement"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) -; - -// Entry rule entryRuleAbstractElement -entryRuleAbstractElement returns [EObject current=null]: - { newCompositeNode(grammarAccess.getAbstractElementRule()); } - iv_ruleAbstractElement=ruleAbstractElement - { $current=$iv_ruleAbstractElement.current; } - EOF; - -// Rule AbstractElement -ruleAbstractElement returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0()); - } - this_PackageDeclaration_0=rulePackageDeclaration - { - $current = $this_PackageDeclaration_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1()); - } - this_Entity_1=ruleEntity - { - $current = $this_Entity_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRulePackageDeclaration -entryRulePackageDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPackageDeclarationRule()); } - iv_rulePackageDeclaration=rulePackageDeclaration - { $current=$iv_rulePackageDeclaration.current; } - EOF; - -// Rule PackageDeclaration -rulePackageDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='package' - { - newLeafNode(otherlv_0, grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0()); - } - lv_name_1_0=ruleQualifiedName - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPackageDeclarationRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xbase.QualifiedName"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_2='{' - { - newLeafNode(otherlv_2, grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0()); - } - lv_elements_3_0=ruleAbstractElement - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPackageDeclarationRule()); - } - add( - $current, - "elements", - lv_elements_3_0, - "org.eclipse.xtext.web.example.entities.Entities.AbstractElement"); - afterParserOrEnumRuleCall(); - } - ) - )* - otherlv_4='}' - { - newLeafNode(otherlv_4, grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); - } - ) -; - -// Entry rule entryRuleEntity -entryRuleEntity returns [EObject current=null]: - { newCompositeNode(grammarAccess.getEntityRule()); } - iv_ruleEntity=ruleEntity - { $current=$iv_ruleEntity.current; } - EOF; - -// Rule Entity -ruleEntity returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='entity' - { - newLeafNode(otherlv_0, grammarAccess.getEntityAccess().getEntityKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0()); - } - lv_name_1_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEntityRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2='extends' - { - newLeafNode(otherlv_2, grammarAccess.getEntityAccess().getExtendsKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0()); - } - lv_superType_3_0=ruleJvmParameterizedTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEntityRule()); - } - set( - $current, - "superType", - lv_superType_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmParameterizedTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - otherlv_4='{' - { - newLeafNode(otherlv_4, grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3()); - } - ( - ( - { - newCompositeNode(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0()); - } - lv_features_5_0=ruleFeature - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getEntityRule()); - } - add( - $current, - "features", - lv_features_5_0, - "org.eclipse.xtext.web.example.entities.Entities.Feature"); - afterParserOrEnumRuleCall(); - } - ) - )* - otherlv_6='}' - { - newLeafNode(otherlv_6, grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5()); - } - ) -; - -// Entry rule entryRuleFeature -entryRuleFeature returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFeatureRule()); } - iv_ruleFeature=ruleFeature - { $current=$iv_ruleFeature.current; } - EOF; - -// Rule Feature -ruleFeature returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0()); - } - this_Property_0=ruleProperty - { - $current = $this_Property_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1()); - } - this_Operation_1=ruleOperation - { - $current = $this_Operation_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleProperty -entryRuleProperty returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPropertyRule()); } - iv_ruleProperty=ruleProperty - { $current=$iv_ruleProperty.current; } - EOF; - -// Rule Property -ruleProperty returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0()); - } - lv_name_0_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPropertyRule()); - } - set( - $current, - "name", - lv_name_0_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_1=':' - { - newLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getColonKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0()); - } - lv_type_2_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getPropertyRule()); - } - set( - $current, - "type", - lv_type_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleOperation -entryRuleOperation returns [EObject current=null]: - { newCompositeNode(grammarAccess.getOperationRule()); } - iv_ruleOperation=ruleOperation - { $current=$iv_ruleOperation.current; } - EOF; - -// Rule Operation -ruleOperation returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='op' - { - newLeafNode(otherlv_0, grammarAccess.getOperationAccess().getOpKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0()); - } - lv_name_1_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getOperationRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0()); - } - lv_params_3_0=ruleFullJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getOperationRule()); - } - add( - $current, - "params", - lv_params_3_0, - "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_4=',' - { - newLeafNode(otherlv_4, grammarAccess.getOperationAccess().getCommaKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0()); - } - lv_params_5_0=ruleFullJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getOperationRule()); - } - add( - $current, - "params", - lv_params_5_0, - "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_6=')' - { - newLeafNode(otherlv_6, grammarAccess.getOperationAccess().getRightParenthesisKeyword_4()); - } - ( - otherlv_7=':' - { - newLeafNode(otherlv_7, grammarAccess.getOperationAccess().getColonKeyword_5_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0()); - } - lv_type_8_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getOperationRule()); - } - set( - $current, - "type", - lv_type_8_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ( - ( - { - newCompositeNode(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0()); - } - lv_body_9_0=ruleXBlockExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getOperationRule()); - } - set( - $current, - "body", - lv_body_9_0, - "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXExpression -entryRuleXExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXExpressionRule()); } - iv_ruleXExpression=ruleXExpression - { $current=$iv_ruleXExpression.current; } - EOF; - -// Rule XExpression -ruleXExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - { - newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); - } - this_XAssignment_0=ruleXAssignment - { - $current = $this_XAssignment_0.current; - afterParserOrEnumRuleCall(); - } -; - -// Entry rule entryRuleXAssignment -entryRuleXAssignment returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXAssignmentRule()); } - iv_ruleXAssignment=ruleXAssignment - { $current=$iv_ruleXAssignment.current; } - EOF; - -// Rule XAssignment -ruleXAssignment returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXAssignmentRule()); - } - } - { - newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - } - ruleFeatureCallID - { - afterParserOrEnumRuleCall(); - } - ) - ) - { - newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); - } - ruleOpSingleAssign - { - afterParserOrEnumRuleCall(); - } - ( - ( - { - newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); - } - lv_value_3_0=ruleXAssignment - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXAssignmentRule()); - } - set( - $current, - "value", - lv_value_3_0, - "org.eclipse.xtext.xbase.Xbase.XAssignment"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - | - ( - { - newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); - } - this_XOrExpression_4=ruleXOrExpression - { - $current = $this_XOrExpression_4.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpMultiAssign - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXAssignmentRule()); - } - } - { - newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - } - ruleOpMultiAssign - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); - } - lv_rightOperand_7_0=ruleXAssignment - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXAssignmentRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_7_0, - "org.eclipse.xtext.xbase.Xbase.XAssignment"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ) - ) -; - -// Entry rule entryRuleOpSingleAssign -entryRuleOpSingleAssign returns [String current=null]: - { newCompositeNode(grammarAccess.getOpSingleAssignRule()); } - iv_ruleOpSingleAssign=ruleOpSingleAssign - { $current=$iv_ruleOpSingleAssign.current.getText(); } - EOF; - -// Rule OpSingleAssign -ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - kw='=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); - } -; - -// Entry rule entryRuleOpMultiAssign -entryRuleOpMultiAssign returns [String current=null]: - { newCompositeNode(grammarAccess.getOpMultiAssignRule()); } - iv_ruleOpMultiAssign=ruleOpMultiAssign - { $current=$iv_ruleOpMultiAssign.current.getText(); } - EOF; - -// Rule OpMultiAssign -ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='+=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); - } - | - kw='-=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); - } - | - kw='*=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); - } - | - kw='/=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); - } - | - kw='%=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); - } - | - ( - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); - } - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); - } - kw='=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); - } - ) - | - ( - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); - } - ( - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); - } - )? - kw='>=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); - } - ) - ) -; - -// Entry rule entryRuleXOrExpression -entryRuleXOrExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXOrExpressionRule()); } - iv_ruleXOrExpression=ruleXOrExpression - { $current=$iv_ruleXOrExpression.current; } - EOF; - -// Rule XOrExpression -ruleXOrExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); - } - this_XAndExpression_0=ruleXAndExpression - { - $current = $this_XAndExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpOr - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXOrExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - ruleOpOr - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); - } - lv_rightOperand_3_0=ruleXAndExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXOrExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XAndExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleOpOr -entryRuleOpOr returns [String current=null]: - { newCompositeNode(grammarAccess.getOpOrRule()); } - iv_ruleOpOr=ruleOpOr - { $current=$iv_ruleOpOr.current.getText(); } - EOF; - -// Rule OpOr -ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - kw='||' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); - } -; - -// Entry rule entryRuleXAndExpression -entryRuleXAndExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXAndExpressionRule()); } - iv_ruleXAndExpression=ruleXAndExpression - { $current=$iv_ruleXAndExpression.current; } - EOF; - -// Rule XAndExpression -ruleXAndExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); - } - this_XEqualityExpression_0=ruleXEqualityExpression - { - $current = $this_XEqualityExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpAnd - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXAndExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - ruleOpAnd - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); - } - lv_rightOperand_3_0=ruleXEqualityExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXAndExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XEqualityExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleOpAnd -entryRuleOpAnd returns [String current=null]: - { newCompositeNode(grammarAccess.getOpAndRule()); } - iv_ruleOpAnd=ruleOpAnd - { $current=$iv_ruleOpAnd.current.getText(); } - EOF; - -// Rule OpAnd -ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - kw='&&' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); - } -; - -// Entry rule entryRuleXEqualityExpression -entryRuleXEqualityExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXEqualityExpressionRule()); } - iv_ruleXEqualityExpression=ruleXEqualityExpression - { $current=$iv_ruleXEqualityExpression.current; } - EOF; - -// Rule XEqualityExpression -ruleXEqualityExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); - } - this_XRelationalExpression_0=ruleXRelationalExpression - { - $current = $this_XRelationalExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpEquality - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXEqualityExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - ruleOpEquality - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); - } - lv_rightOperand_3_0=ruleXRelationalExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XRelationalExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleOpEquality -entryRuleOpEquality returns [String current=null]: - { newCompositeNode(grammarAccess.getOpEqualityRule()); } - iv_ruleOpEquality=ruleOpEquality - { $current=$iv_ruleOpEquality.current.getText(); } - EOF; - -// Rule OpEquality -ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='==' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); - } - | - kw='!=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); - } - | - kw='===' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); - } - | - kw='!==' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); - } - ) -; - -// Entry rule entryRuleXRelationalExpression -entryRuleXRelationalExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXRelationalExpressionRule()); } - iv_ruleXRelationalExpression=ruleXRelationalExpression - { $current=$iv_ruleXRelationalExpression.current; } - EOF; - -// Rule XRelationalExpression -ruleXRelationalExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); - } - this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression - { - $current = $this_XOtherOperatorExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - ( - (( - ( - ) - 'instanceof' - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), - $current); - } - ) - otherlv_2='instanceof' - { - newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); - } - lv_type_3_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); - } - set( - $current, - "type", - lv_type_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - | - ( - ( - (( - ( - ) - ( - ( - ruleOpCompare - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXRelationalExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - } - ruleOpCompare - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); - } - lv_rightOperand_6_0=ruleXOtherOperatorExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_6_0, - "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - )* - ) -; - -// Entry rule entryRuleOpCompare -entryRuleOpCompare returns [String current=null]: - { newCompositeNode(grammarAccess.getOpCompareRule()); } - iv_ruleOpCompare=ruleOpCompare - { $current=$iv_ruleOpCompare.current.getText(); } - EOF; - -// Rule OpCompare -ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='>=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); - } - | - ( - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); - } - kw='=' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); - } - ) - | - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); - } - | - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); - } - ) -; - -// Entry rule entryRuleXOtherOperatorExpression -entryRuleXOtherOperatorExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); } - iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression - { $current=$iv_ruleXOtherOperatorExpression.current; } - EOF; - -// Rule XOtherOperatorExpression -ruleXOtherOperatorExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); - } - this_XAdditiveExpression_0=ruleXAdditiveExpression - { - $current = $this_XAdditiveExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpOther - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - ruleOpOther - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); - } - lv_rightOperand_3_0=ruleXAdditiveExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleOpOther -entryRuleOpOther returns [String current=null]: - { newCompositeNode(grammarAccess.getOpOtherRule()); } - iv_ruleOpOther=ruleOpOther - { $current=$iv_ruleOpOther.current.getText(); } - EOF; - -// Rule OpOther -ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='->' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); - } - | - kw='..<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); - } - | - ( - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); - } - kw='..' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); - } - ) - | - kw='..' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); - } - | - kw='=>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); - } - | - ( - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); - } - ( - ( - (( - '>' - '>' - ) - )=> - ( - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); - } - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); - } - ) - ) - | - kw='>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); - } - ) - ) - | - ( - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); - } - ( - ( - (( - '<' - '<' - ) - )=> - ( - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); - } - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); - } - ) - ) - | - kw='<' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); - } - | - kw='=>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); - } - ) - ) - | - kw='<>' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); - } - | - kw='?:' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); - } - ) -; - -// Entry rule entryRuleXAdditiveExpression -entryRuleXAdditiveExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); } - iv_ruleXAdditiveExpression=ruleXAdditiveExpression - { $current=$iv_ruleXAdditiveExpression.current; } - EOF; - -// Rule XAdditiveExpression -ruleXAdditiveExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); - } - this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression - { - $current = $this_XMultiplicativeExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpAdd - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXAdditiveExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - ruleOpAdd - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); - } - lv_rightOperand_3_0=ruleXMultiplicativeExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleOpAdd -entryRuleOpAdd returns [String current=null]: - { newCompositeNode(grammarAccess.getOpAddRule()); } - iv_ruleOpAdd=ruleOpAdd - { $current=$iv_ruleOpAdd.current.getText(); } - EOF; - -// Rule OpAdd -ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='+' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); - } - | - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); - } - ) -; - -// Entry rule entryRuleXMultiplicativeExpression -entryRuleXMultiplicativeExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); } - iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression - { $current=$iv_ruleXMultiplicativeExpression.current; } - EOF; - -// Rule XMultiplicativeExpression -ruleXMultiplicativeExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); - } - this_XUnaryOperation_0=ruleXUnaryOperation - { - $current = $this_XUnaryOperation_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - ( - ( - ruleOpMulti - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule()); - } - } - { - newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - } - ruleOpMulti - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); - } - lv_rightOperand_3_0=ruleXUnaryOperation - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule()); - } - set( - $current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleOpMulti -entryRuleOpMulti returns [String current=null]: - { newCompositeNode(grammarAccess.getOpMultiRule()); } - iv_ruleOpMulti=ruleOpMulti - { $current=$iv_ruleOpMulti.current.getText(); } - EOF; - -// Rule OpMulti -ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='*' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); - } - | - kw='**' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); - } - | - kw='/' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); - } - | - kw='%' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); - } - ) -; - -// Entry rule entryRuleXUnaryOperation -entryRuleXUnaryOperation returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXUnaryOperationRule()); } - iv_ruleXUnaryOperation=ruleXUnaryOperation - { $current=$iv_ruleXUnaryOperation.current; } - EOF; - -// Rule XUnaryOperation -ruleXUnaryOperation returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXUnaryOperationRule()); - } - } - { - newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - } - ruleOpUnary - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); - } - lv_operand_2_0=ruleXUnaryOperation - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXUnaryOperationRule()); - } - set( - $current, - "operand", - lv_operand_2_0, - "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - | - { - newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); - } - this_XCastedExpression_3=ruleXCastedExpression - { - $current = $this_XCastedExpression_3.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleOpUnary -entryRuleOpUnary returns [String current=null]: - { newCompositeNode(grammarAccess.getOpUnaryRule()); } - iv_ruleOpUnary=ruleOpUnary - { $current=$iv_ruleOpUnary.current.getText(); } - EOF; - -// Rule OpUnary -ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='!' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); - } - | - kw='-' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); - } - | - kw='+' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); - } - ) -; - -// Entry rule entryRuleXCastedExpression -entryRuleXCastedExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXCastedExpressionRule()); } - iv_ruleXCastedExpression=ruleXCastedExpression - { $current=$iv_ruleXCastedExpression.current; } - EOF; - -// Rule XCastedExpression -ruleXCastedExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); - } - this_XPostfixOperation_0=ruleXPostfixOperation - { - $current = $this_XPostfixOperation_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - (( - ( - ) - 'as' - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), - $current); - } - ) - otherlv_2='as' - { - newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); - } - lv_type_3_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXCastedExpressionRule()); - } - set( - $current, - "type", - lv_type_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleXPostfixOperation -entryRuleXPostfixOperation returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXPostfixOperationRule()); } - iv_ruleXPostfixOperation=ruleXPostfixOperation - { $current=$iv_ruleXPostfixOperation.current; } - EOF; - -// Rule XPostfixOperation -ruleXPostfixOperation returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); - } - this_XMemberFeatureCall_0=ruleXMemberFeatureCall - { - $current = $this_XMemberFeatureCall_0.current; - afterParserOrEnumRuleCall(); - } - ( - (( - ( - ) - ( - ( - ruleOpPostfix - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), - $current); - } - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXPostfixOperationRule()); - } - } - { - newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); - } - ruleOpPostfix - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) - )? - ) -; - -// Entry rule entryRuleOpPostfix -entryRuleOpPostfix returns [String current=null]: - { newCompositeNode(grammarAccess.getOpPostfixRule()); } - iv_ruleOpPostfix=ruleOpPostfix - { $current=$iv_ruleOpPostfix.current.getText(); } - EOF; - -// Rule OpPostfix -ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='++' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); - } - | - kw='--' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); - } - ) -; - -// Entry rule entryRuleXMemberFeatureCall -entryRuleXMemberFeatureCall returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); } - iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall - { $current=$iv_ruleXMemberFeatureCall.current; } - EOF; - -// Rule XMemberFeatureCall -ruleXMemberFeatureCall returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); - } - this_XPrimaryExpression_0=ruleXPrimaryExpression - { - $current = $this_XPrimaryExpression_0.current; - afterParserOrEnumRuleCall(); - } - ( - ( - ( - (( - ( - ) - ( - '.' - | - ( - ( - '::' - ) - ) - ) - ( - ( - ruleFeatureCallID - ) - ) - ruleOpSingleAssign - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), - $current); - } - ) - ( - otherlv_2='.' - { - newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); - } - | - ( - ( - lv_explicitStatic_3_0='::' - { - newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed($current, "explicitStatic", lv_explicitStatic_3_0 != null, "::"); - } - ) - ) - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - } - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); - } - ruleFeatureCallID - { - afterParserOrEnumRuleCall(); - } - ) - ) - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); - } - ruleOpSingleAssign - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); - } - lv_value_6_0=ruleXAssignment - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - set( - $current, - "value", - lv_value_6_0, - "org.eclipse.xtext.xbase.Xbase.XAssignment"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - | - ( - ( - (( - ( - ) - ( - '.' - | - ( - ( - '?.' - ) - ) - | - ( - ( - '::' - ) - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), - $current); - } - ) - ( - otherlv_8='.' - { - newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); - } - | - ( - ( - lv_nullSafe_9_0='?.' - { - newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed($current, "nullSafe", lv_nullSafe_9_0 != null, "?."); - } - ) - ) - | - ( - ( - lv_explicitStatic_10_0='::' - { - newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed($current, "explicitStatic", lv_explicitStatic_10_0 != null, "::"); - } - ) - ) - ) - ) - ) - ( - otherlv_11='<' - { - newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); - } - lv_typeArguments_12_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - $current, - "typeArguments", - lv_typeArguments_12_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_13=',' - { - newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); - } - lv_typeArguments_14_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - $current, - "typeArguments", - lv_typeArguments_14_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_15='>' - { - newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); - } - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - } - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); - } - ruleIdOrSuper - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - (( - '(' - ) - )=> - ( - lv_explicitOperationCall_17_0='(' - { - newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed($current, "explicitOperationCall", lv_explicitOperationCall_17_0 != null, "("); - } - ) - ) - ( - ( - (( - ( - ) - ( - ( - ( - ruleJvmFormalParameter - ) - ) - ( - ',' - ( - ( - ruleJvmFormalParameter - ) - ) - )* - )? - ( - ( - '|' - ) - ) - ) - )=> - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); - } - lv_memberCallArguments_18_0=ruleXShortClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - $current, - "memberCallArguments", - lv_memberCallArguments_18_0, - "org.eclipse.xtext.xbase.Xbase.XShortClosure"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); - } - lv_memberCallArguments_19_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - $current, - "memberCallArguments", - lv_memberCallArguments_19_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_20=',' - { - newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); - } - lv_memberCallArguments_21_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - $current, - "memberCallArguments", - lv_memberCallArguments_21_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) - )? - otherlv_22=')' - { - newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); - } - )? - ( - (( - ( - ) - '[' - ) - )=> - ( - { - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); - } - lv_memberCallArguments_23_0=ruleXClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - $current, - "memberCallArguments", - lv_memberCallArguments_23_0, - "org.eclipse.xtext.xbase.Xbase.XClosure"); - afterParserOrEnumRuleCall(); - } - ) - )? - ) - )* - ) -; - -// Entry rule entryRuleXPrimaryExpression -entryRuleXPrimaryExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); } - iv_ruleXPrimaryExpression=ruleXPrimaryExpression - { $current=$iv_ruleXPrimaryExpression.current; } - EOF; - -// Rule XPrimaryExpression -ruleXPrimaryExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); - } - this_XConstructorCall_0=ruleXConstructorCall - { - $current = $this_XConstructorCall_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); - } - this_XBlockExpression_1=ruleXBlockExpression - { - $current = $this_XBlockExpression_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); - } - this_XSwitchExpression_2=ruleXSwitchExpression - { - $current = $this_XSwitchExpression_2.current; - afterParserOrEnumRuleCall(); - } - | - ( - (( - ( - ) - 'synchronized' - '(' - ) - )=> - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); - } - this_XSynchronizedExpression_3=ruleXSynchronizedExpression - { - $current = $this_XSynchronizedExpression_3.current; - afterParserOrEnumRuleCall(); - } - ) - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); - } - this_XFeatureCall_4=ruleXFeatureCall - { - $current = $this_XFeatureCall_4.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); - } - this_XLiteral_5=ruleXLiteral - { - $current = $this_XLiteral_5.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); - } - this_XIfExpression_6=ruleXIfExpression - { - $current = $this_XIfExpression_6.current; - afterParserOrEnumRuleCall(); - } - | - ( - (( - ( - ) - 'for' - '(' - ( - ( - ruleJvmFormalParameter - ) - ) - ':' - ) - )=> - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); - } - this_XForLoopExpression_7=ruleXForLoopExpression - { - $current = $this_XForLoopExpression_7.current; - afterParserOrEnumRuleCall(); - } - ) - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); - } - this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression - { - $current = $this_XBasicForLoopExpression_8.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); - } - this_XWhileExpression_9=ruleXWhileExpression - { - $current = $this_XWhileExpression_9.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); - } - this_XDoWhileExpression_10=ruleXDoWhileExpression - { - $current = $this_XDoWhileExpression_10.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); - } - this_XThrowExpression_11=ruleXThrowExpression - { - $current = $this_XThrowExpression_11.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); - } - this_XReturnExpression_12=ruleXReturnExpression - { - $current = $this_XReturnExpression_12.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); - } - this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression - { - $current = $this_XTryCatchFinallyExpression_13.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); - } - this_XParenthesizedExpression_14=ruleXParenthesizedExpression - { - $current = $this_XParenthesizedExpression_14.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleXLiteral -entryRuleXLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXLiteralRule()); } - iv_ruleXLiteral=ruleXLiteral - { $current=$iv_ruleXLiteral.current; } - EOF; - -// Rule XLiteral -ruleXLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); - } - this_XCollectionLiteral_0=ruleXCollectionLiteral - { - $current = $this_XCollectionLiteral_0.current; - afterParserOrEnumRuleCall(); - } - | - ( - (( - ( - ) - '[' - ) - )=> - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); - } - this_XClosure_1=ruleXClosure - { - $current = $this_XClosure_1.current; - afterParserOrEnumRuleCall(); - } - ) - | - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); - } - this_XBooleanLiteral_2=ruleXBooleanLiteral - { - $current = $this_XBooleanLiteral_2.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); - } - this_XNumberLiteral_3=ruleXNumberLiteral - { - $current = $this_XNumberLiteral_3.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); - } - this_XNullLiteral_4=ruleXNullLiteral - { - $current = $this_XNullLiteral_4.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); - } - this_XStringLiteral_5=ruleXStringLiteral - { - $current = $this_XStringLiteral_5.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); - } - this_XTypeLiteral_6=ruleXTypeLiteral - { - $current = $this_XTypeLiteral_6.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleXCollectionLiteral -entryRuleXCollectionLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXCollectionLiteralRule()); } - iv_ruleXCollectionLiteral=ruleXCollectionLiteral - { $current=$iv_ruleXCollectionLiteral.current; } - EOF; - -// Rule XCollectionLiteral -ruleXCollectionLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); - } - this_XSetLiteral_0=ruleXSetLiteral - { - $current = $this_XSetLiteral_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); - } - this_XListLiteral_1=ruleXListLiteral - { - $current = $this_XListLiteral_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleXSetLiteral -entryRuleXSetLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXSetLiteralRule()); } - iv_ruleXSetLiteral=ruleXSetLiteral - { $current=$iv_ruleXSetLiteral.current; } - EOF; - -// Rule XSetLiteral -ruleXSetLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), - $current); - } - ) - otherlv_1='#' - { - newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); - } - otherlv_2='{' - { - newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - } - lv_elements_3_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); - } - add( - $current, - "elements", - lv_elements_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_4=',' - { - newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - } - lv_elements_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); - } - add( - $current, - "elements", - lv_elements_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_6='}' - { - newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); - } - ) -; - -// Entry rule entryRuleXListLiteral -entryRuleXListLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXListLiteralRule()); } - iv_ruleXListLiteral=ruleXListLiteral - { $current=$iv_ruleXListLiteral.current; } - EOF; - -// Rule XListLiteral -ruleXListLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), - $current); - } - ) - otherlv_1='#' - { - newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); - } - otherlv_2='[' - { - newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - } - lv_elements_3_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXListLiteralRule()); - } - add( - $current, - "elements", - lv_elements_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_4=',' - { - newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - } - lv_elements_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXListLiteralRule()); - } - add( - $current, - "elements", - lv_elements_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_6=']' - { - newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); - } - ) -; - -// Entry rule entryRuleXClosure -entryRuleXClosure returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXClosureRule()); } - iv_ruleXClosure=ruleXClosure - { $current=$iv_ruleXClosure.current; } - EOF; - -// Rule XClosure -ruleXClosure returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - (( - ( - ) - '[' - ) - )=> - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), - $current); - } - ) - otherlv_1='[' - { - newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); - } - ) - ) - ( - (( - ( - ( - ( - ruleJvmFormalParameter - ) - ) - ( - ',' - ( - ( - ruleJvmFormalParameter - ) - ) - )* - )? - ( - ( - '|' - ) - ) - ) - )=> - ( - ( - ( - ( - { - newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); - } - lv_declaredFormalParameters_2_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXClosureRule()); - } - add( - $current, - "declaredFormalParameters", - lv_declaredFormalParameters_2_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); - } - lv_declaredFormalParameters_4_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXClosureRule()); - } - add( - $current, - "declaredFormalParameters", - lv_declaredFormalParameters_4_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - ( - ( - lv_explicitSyntax_5_0='|' - { - newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXClosureRule()); - } - setWithLastConsumed($current, "explicitSyntax", lv_explicitSyntax_5_0 != null, "|"); - } - ) - ) - ) - )? - ( - ( - { - newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); - } - lv_expression_6_0=ruleXExpressionInClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXClosureRule()); - } - set( - $current, - "expression", - lv_expression_6_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_7=']' - { - newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleXExpressionInClosure -entryRuleXExpressionInClosure returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXExpressionInClosureRule()); } - iv_ruleXExpressionInClosure=ruleXExpressionInClosure - { $current=$iv_ruleXExpressionInClosure.current; } - EOF; - -// Rule XExpressionInClosure -ruleXExpressionInClosure returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), - $current); - } - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); - } - lv_expressions_1_0=ruleXExpressionOrVarDeclaration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule()); - } - add( - $current, - "expressions", - lv_expressions_1_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=';' - { - newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); - } - )? - )* - ) -; - -// Entry rule entryRuleXShortClosure -entryRuleXShortClosure returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXShortClosureRule()); } - iv_ruleXShortClosure=ruleXShortClosure - { $current=$iv_ruleXShortClosure.current; } - EOF; - -// Rule XShortClosure -ruleXShortClosure returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - (( - ( - ) - ( - ( - ( - ruleJvmFormalParameter - ) - ) - ( - ',' - ( - ( - ruleJvmFormalParameter - ) - ) - )* - )? - ( - ( - '|' - ) - ) - ) - )=> - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), - $current); - } - ) - ( - ( - ( - { - newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); - } - lv_declaredFormalParameters_1_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXShortClosureRule()); - } - add( - $current, - "declaredFormalParameters", - lv_declaredFormalParameters_1_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=',' - { - newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); - } - lv_declaredFormalParameters_3_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXShortClosureRule()); - } - add( - $current, - "declaredFormalParameters", - lv_declaredFormalParameters_3_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - ( - ( - lv_explicitSyntax_4_0='|' - { - newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXShortClosureRule()); - } - setWithLastConsumed($current, "explicitSyntax", lv_explicitSyntax_4_0 != null, "|"); - } - ) - ) - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); - } - lv_expression_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXShortClosureRule()); - } - set( - $current, - "expression", - lv_expression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXParenthesizedExpression -entryRuleXParenthesizedExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); } - iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression - { $current=$iv_ruleXParenthesizedExpression.current; } - EOF; - -// Rule XParenthesizedExpression -ruleXParenthesizedExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='(' - { - newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - } - { - newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); - } - this_XExpression_1=ruleXExpression - { - $current = $this_XExpression_1.current; - afterParserOrEnumRuleCall(); - } - otherlv_2=')' - { - newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); - } - ) -; - -// Entry rule entryRuleXIfExpression -entryRuleXIfExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXIfExpressionRule()); } - iv_ruleXIfExpression=ruleXIfExpression - { $current=$iv_ruleXIfExpression.current; } - EOF; - -// Rule XIfExpression -ruleXIfExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), - $current); - } - ) - otherlv_1='if' - { - newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); - } - lv_if_3_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); - } - set( - $current, - "if", - lv_if_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_4=')' - { - newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); - } - lv_then_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); - } - set( - $current, - "then", - lv_then_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ('else')=> - otherlv_6='else' - { - newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); - } - lv_else_7_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); - } - set( - $current, - "else", - lv_else_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ) -; - -// Entry rule entryRuleXSwitchExpression -entryRuleXSwitchExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXSwitchExpressionRule()); } - iv_ruleXSwitchExpression=ruleXSwitchExpression - { $current=$iv_ruleXSwitchExpression.current; } - EOF; - -// Rule XSwitchExpression -ruleXSwitchExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), - $current); - } - ) - otherlv_1='switch' - { - newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); - } - ( - ( - ( - (( - '(' - ( - ( - ruleJvmFormalParameter - ) - ) - ':' - ) - )=> - ( - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); - } - lv_declaredParam_3_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - $current, - "declaredParam", - lv_declaredParam_3_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_4=':' - { - newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); - } - lv_switch_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - $current, - "switch", - lv_switch_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_6=')' - { - newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); - } - ) - | - ( - ( - (( - ( - ( - ruleJvmFormalParameter - ) - ) - ':' - ) - )=> - ( - ( - ( - { - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); - } - lv_declaredParam_7_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - $current, - "declaredParam", - lv_declaredParam_7_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_8=':' - { - newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); - } - ) - )? - ( - ( - { - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); - } - lv_switch_9_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - $current, - "switch", - lv_switch_9_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - otherlv_10='{' - { - newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); - } - lv_cases_11_0=ruleXCasePart - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - add( - $current, - "cases", - lv_cases_11_0, - "org.eclipse.xtext.xbase.Xbase.XCasePart"); - afterParserOrEnumRuleCall(); - } - ) - )* - ( - otherlv_12='default' - { - newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); - } - otherlv_13=':' - { - newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); - } - lv_default_14_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - $current, - "default", - lv_default_14_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - otherlv_15='}' - { - newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); - } - ) -; - -// Entry rule entryRuleXCasePart -entryRuleXCasePart returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXCasePartRule()); } - iv_ruleXCasePart=ruleXCasePart - { $current=$iv_ruleXCasePart.current; } - EOF; - -// Rule XCasePart -ruleXCasePart returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXCasePartAccess().getXCasePartAction_0(), - $current); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); - } - lv_typeGuard_1_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXCasePartRule()); - } - set( - $current, - "typeGuard", - lv_typeGuard_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - )? - ( - otherlv_2='case' - { - newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); - } - lv_case_3_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXCasePartRule()); - } - set( - $current, - "case", - lv_case_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ( - ( - otherlv_4=':' - { - newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); - } - lv_then_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXCasePartRule()); - } - set( - $current, - "then", - lv_then_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - | - ( - ( - lv_fallThrough_6_0=',' - { - newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXCasePartRule()); - } - setWithLastConsumed($current, "fallThrough", lv_fallThrough_6_0 != null, ","); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleXForLoopExpression -entryRuleXForLoopExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXForLoopExpressionRule()); } - iv_ruleXForLoopExpression=ruleXForLoopExpression - { $current=$iv_ruleXForLoopExpression.current; } - EOF; - -// Rule XForLoopExpression -ruleXForLoopExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - (( - ( - ) - 'for' - '(' - ( - ( - ruleJvmFormalParameter - ) - ) - ':' - ) - )=> - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), - $current); - } - ) - otherlv_1='for' - { - newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); - } - lv_declaredParam_3_0=ruleJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); - } - set( - $current, - "declaredParam", - lv_declaredParam_3_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_4=':' - { - newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); - } - lv_forExpression_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); - } - set( - $current, - "forExpression", - lv_forExpression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_6=')' - { - newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); - } - lv_eachExpression_7_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); - } - set( - $current, - "eachExpression", - lv_eachExpression_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXBasicForLoopExpression -entryRuleXBasicForLoopExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); } - iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression - { $current=$iv_ruleXBasicForLoopExpression.current; } - EOF; - -// Rule XBasicForLoopExpression -ruleXBasicForLoopExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), - $current); - } - ) - otherlv_1='for' - { - newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); - } - lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - $current, - "initExpressions", - lv_initExpressions_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_4=',' - { - newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); - } - lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - $current, - "initExpressions", - lv_initExpressions_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_6=';' - { - newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); - } - lv_expression_7_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - set( - $current, - "expression", - lv_expression_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - )? - otherlv_8=';' - { - newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); - } - lv_updateExpressions_9_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - $current, - "updateExpressions", - lv_updateExpressions_9_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_10=',' - { - newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); - } - lv_updateExpressions_11_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - $current, - "updateExpressions", - lv_updateExpressions_11_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_12=')' - { - newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); - } - lv_eachExpression_13_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - set( - $current, - "eachExpression", - lv_eachExpression_13_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXWhileExpression -entryRuleXWhileExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXWhileExpressionRule()); } - iv_ruleXWhileExpression=ruleXWhileExpression - { $current=$iv_ruleXWhileExpression.current; } - EOF; - -// Rule XWhileExpression -ruleXWhileExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), - $current); - } - ) - otherlv_1='while' - { - newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); - } - lv_predicate_3_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); - } - set( - $current, - "predicate", - lv_predicate_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_4=')' - { - newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); - } - lv_body_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); - } - set( - $current, - "body", - lv_body_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXDoWhileExpression -entryRuleXDoWhileExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); } - iv_ruleXDoWhileExpression=ruleXDoWhileExpression - { $current=$iv_ruleXDoWhileExpression.current; } - EOF; - -// Rule XDoWhileExpression -ruleXDoWhileExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), - $current); - } - ) - otherlv_1='do' - { - newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); - } - lv_body_2_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); - } - set( - $current, - "body", - lv_body_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_3='while' - { - newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); - } - otherlv_4='(' - { - newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); - } - lv_predicate_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); - } - set( - $current, - "predicate", - lv_predicate_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_6=')' - { - newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); - } - ) -; - -// Entry rule entryRuleXBlockExpression -entryRuleXBlockExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXBlockExpressionRule()); } - iv_ruleXBlockExpression=ruleXBlockExpression - { $current=$iv_ruleXBlockExpression.current; } - EOF; - -// Rule XBlockExpression -ruleXBlockExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), - $current); - } - ) - otherlv_1='{' - { - newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); - } - lv_expressions_2_0=ruleXExpressionOrVarDeclaration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXBlockExpressionRule()); - } - add( - $current, - "expressions", - lv_expressions_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=';' - { - newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); - } - )? - )* - otherlv_4='}' - { - newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); - } - ) -; - -// Entry rule entryRuleXExpressionOrVarDeclaration -entryRuleXExpressionOrVarDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); } - iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration - { $current=$iv_ruleXExpressionOrVarDeclaration.current; } - EOF; - -// Rule XExpressionOrVarDeclaration -ruleXExpressionOrVarDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); - } - this_XVariableDeclaration_0=ruleXVariableDeclaration - { - $current = $this_XVariableDeclaration_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); - } - this_XExpression_1=ruleXExpression - { - $current = $this_XExpression_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleXVariableDeclaration -entryRuleXVariableDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXVariableDeclarationRule()); } - iv_ruleXVariableDeclaration=ruleXVariableDeclaration - { $current=$iv_ruleXVariableDeclaration.current; } - EOF; - -// Rule XVariableDeclaration -ruleXVariableDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), - $current); - } - ) - ( - ( - ( - lv_writeable_1_0='var' - { - newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXVariableDeclarationRule()); - } - setWithLastConsumed($current, "writeable", lv_writeable_1_0 != null, "var"); - } - ) - ) - | - otherlv_2='val' - { - newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); - } - ) - ( - ( - (( - ( - ( - ruleJvmTypeReference - ) - ) - ( - ( - ruleValidID - ) - ) - ) - )=> - ( - ( - ( - { - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); - } - lv_type_3_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - $current, - "type", - lv_type_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); - } - lv_name_4_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - $current, - "name", - lv_name_4_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); - } - lv_name_5_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - $current, - "name", - lv_name_5_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ( - otherlv_6='=' - { - newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); - } - lv_right_7_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - $current, - "right", - lv_right_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ) -; - -// Entry rule entryRuleJvmFormalParameter -entryRuleJvmFormalParameter returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmFormalParameterRule()); } - iv_ruleJvmFormalParameter=ruleJvmFormalParameter - { $current=$iv_ruleJvmFormalParameter.current; } - EOF; - -// Rule JvmFormalParameter -ruleJvmFormalParameter returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - } - lv_parameterType_0_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); - } - set( - $current, - "parameterType", - lv_parameterType_0_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - )? - ( - ( - { - newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - } - lv_name_1_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleFullJvmFormalParameter -entryRuleFullJvmFormalParameter returns [EObject current=null]: - { newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); } - iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter - { $current=$iv_ruleFullJvmFormalParameter.current; } - EOF; - -// Rule FullJvmFormalParameter -ruleFullJvmFormalParameter returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - } - lv_parameterType_0_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); - } - set( - $current, - "parameterType", - lv_parameterType_0_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - } - lv_name_1_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); - } - set( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXFeatureCall -entryRuleXFeatureCall returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXFeatureCallRule()); } - iv_ruleXFeatureCall=ruleXFeatureCall - { $current=$iv_ruleXFeatureCall.current; } - EOF; - -// Rule XFeatureCall -ruleXFeatureCall returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), - $current); - } - ) - ( - otherlv_1='<' - { - newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - } - lv_typeArguments_2_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - $current, - "typeArguments", - lv_typeArguments_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - } - lv_typeArguments_4_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - $current, - "typeArguments", - lv_typeArguments_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_5='>' - { - newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); - } - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXFeatureCallRule()); - } - } - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); - } - ruleIdOrSuper - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - (( - '(' - ) - )=> - ( - lv_explicitOperationCall_7_0='(' - { - newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXFeatureCallRule()); - } - setWithLastConsumed($current, "explicitOperationCall", lv_explicitOperationCall_7_0 != null, "("); - } - ) - ) - ( - ( - (( - ( - ) - ( - ( - ( - ruleJvmFormalParameter - ) - ) - ( - ',' - ( - ( - ruleJvmFormalParameter - ) - ) - )* - )? - ( - ( - '|' - ) - ) - ) - )=> - ( - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); - } - lv_featureCallArguments_8_0=ruleXShortClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - $current, - "featureCallArguments", - lv_featureCallArguments_8_0, - "org.eclipse.xtext.xbase.Xbase.XShortClosure"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - ( - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); - } - lv_featureCallArguments_9_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - $current, - "featureCallArguments", - lv_featureCallArguments_9_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_10=',' - { - newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); - } - lv_featureCallArguments_11_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - $current, - "featureCallArguments", - lv_featureCallArguments_11_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) - )? - otherlv_12=')' - { - newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); - } - )? - ( - (( - ( - ) - '[' - ) - )=> - ( - { - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); - } - lv_featureCallArguments_13_0=ruleXClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - $current, - "featureCallArguments", - lv_featureCallArguments_13_0, - "org.eclipse.xtext.xbase.Xbase.XClosure"); - afterParserOrEnumRuleCall(); - } - ) - )? - ) -; - -// Entry rule entryRuleFeatureCallID -entryRuleFeatureCallID returns [String current=null]: - { newCompositeNode(grammarAccess.getFeatureCallIDRule()); } - iv_ruleFeatureCallID=ruleFeatureCallID - { $current=$iv_ruleFeatureCallID.current.getText(); } - EOF; - -// Rule FeatureCallID -ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); - } - this_ValidID_0=ruleValidID - { - $current.merge(this_ValidID_0); - } - { - afterParserOrEnumRuleCall(); - } - | - kw='extends' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); - } - | - kw='static' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); - } - | - kw='import' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); - } - | - kw='extension' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); - } - ) -; - -// Entry rule entryRuleIdOrSuper -entryRuleIdOrSuper returns [String current=null]: - { newCompositeNode(grammarAccess.getIdOrSuperRule()); } - iv_ruleIdOrSuper=ruleIdOrSuper - { $current=$iv_ruleIdOrSuper.current.getText(); } - EOF; - -// Rule IdOrSuper -ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); - } - this_FeatureCallID_0=ruleFeatureCallID - { - $current.merge(this_FeatureCallID_0); - } - { - afterParserOrEnumRuleCall(); - } - | - kw='super' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); - } - ) -; - -// Entry rule entryRuleXConstructorCall -entryRuleXConstructorCall returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXConstructorCallRule()); } - iv_ruleXConstructorCall=ruleXConstructorCall - { $current=$iv_ruleXConstructorCall.current; } - EOF; - -// Rule XConstructorCall -ruleXConstructorCall returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), - $current); - } - ) - otherlv_1='new' - { - newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXConstructorCallRule()); - } - } - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ('<')=> - otherlv_3='<' - { - newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); - } - lv_typeArguments_4_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - $current, - "typeArguments", - lv_typeArguments_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_5=',' - { - newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); - } - lv_typeArguments_6_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - $current, - "typeArguments", - lv_typeArguments_6_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_7='>' - { - newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); - } - )? - ( - ( - (( - '(' - ) - )=> - ( - lv_explicitConstructorCall_8_0='(' - { - newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXConstructorCallRule()); - } - setWithLastConsumed($current, "explicitConstructorCall", lv_explicitConstructorCall_8_0 != null, "("); - } - ) - ) - ( - ( - (( - ( - ) - ( - ( - ( - ruleJvmFormalParameter - ) - ) - ( - ',' - ( - ( - ruleJvmFormalParameter - ) - ) - )* - )? - ( - ( - '|' - ) - ) - ) - )=> - ( - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); - } - lv_arguments_9_0=ruleXShortClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - $current, - "arguments", - lv_arguments_9_0, - "org.eclipse.xtext.xbase.Xbase.XShortClosure"); - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - ( - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); - } - lv_arguments_10_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - $current, - "arguments", - lv_arguments_10_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_11=',' - { - newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); - } - lv_arguments_12_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - $current, - "arguments", - lv_arguments_12_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) - )? - otherlv_13=')' - { - newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); - } - )? - ( - (( - ( - ) - '[' - ) - )=> - ( - { - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); - } - lv_arguments_14_0=ruleXClosure - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - $current, - "arguments", - lv_arguments_14_0, - "org.eclipse.xtext.xbase.Xbase.XClosure"); - afterParserOrEnumRuleCall(); - } - ) - )? - ) -; - -// Entry rule entryRuleXBooleanLiteral -entryRuleXBooleanLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXBooleanLiteralRule()); } - iv_ruleXBooleanLiteral=ruleXBooleanLiteral - { $current=$iv_ruleXBooleanLiteral.current; } - EOF; - -// Rule XBooleanLiteral -ruleXBooleanLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), - $current); - } - ) - ( - otherlv_1='false' - { - newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); - } - | - ( - ( - lv_isTrue_2_0='true' - { - newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXBooleanLiteralRule()); - } - setWithLastConsumed($current, "isTrue", lv_isTrue_2_0 != null, "true"); - } - ) - ) - ) - ) -; - -// Entry rule entryRuleXNullLiteral -entryRuleXNullLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXNullLiteralRule()); } - iv_ruleXNullLiteral=ruleXNullLiteral - { $current=$iv_ruleXNullLiteral.current; } - EOF; - -// Rule XNullLiteral -ruleXNullLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), - $current); - } - ) - otherlv_1='null' - { - newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); - } - ) -; - -// Entry rule entryRuleXNumberLiteral -entryRuleXNumberLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXNumberLiteralRule()); } - iv_ruleXNumberLiteral=ruleXNumberLiteral - { $current=$iv_ruleXNumberLiteral.current; } - EOF; - -// Rule XNumberLiteral -ruleXNumberLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), - $current); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); - } - lv_value_1_0=ruleNumber - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXNumberLiteralRule()); - } - set( - $current, - "value", - lv_value_1_0, - "org.eclipse.xtext.xbase.Xbase.Number"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXStringLiteral -entryRuleXStringLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXStringLiteralRule()); } - iv_ruleXStringLiteral=ruleXStringLiteral - { $current=$iv_ruleXStringLiteral.current; } - EOF; - -// Rule XStringLiteral -ruleXStringLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), - $current); - } - ) - ( - ( - lv_value_1_0=RULE_STRING - { - newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXStringLiteralRule()); - } - setWithLastConsumed( - $current, - "value", - lv_value_1_0, - "org.eclipse.xtext.xbase.Xtype.STRING"); - } - ) - ) - ) -; - -// Entry rule entryRuleXTypeLiteral -entryRuleXTypeLiteral returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXTypeLiteralRule()); } - iv_ruleXTypeLiteral=ruleXTypeLiteral - { $current=$iv_ruleXTypeLiteral.current; } - EOF; - -// Rule XTypeLiteral -ruleXTypeLiteral returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), - $current); - } - ) - otherlv_1='typeof' - { - newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXTypeLiteralRule()); - } - } - { - newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); - } - lv_arrayDimensions_4_0=ruleArrayBrackets - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXTypeLiteralRule()); - } - add( - $current, - "arrayDimensions", - lv_arrayDimensions_4_0, - "org.eclipse.xtext.xbase.Xtype.ArrayBrackets"); - afterParserOrEnumRuleCall(); - } - ) - )* - otherlv_5=')' - { - newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); - } - ) -; - -// Entry rule entryRuleXThrowExpression -entryRuleXThrowExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXThrowExpressionRule()); } - iv_ruleXThrowExpression=ruleXThrowExpression - { $current=$iv_ruleXThrowExpression.current; } - EOF; - -// Rule XThrowExpression -ruleXThrowExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), - $current); - } - ) - otherlv_1='throw' - { - newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - lv_expression_2_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXThrowExpressionRule()); - } - set( - $current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXReturnExpression -entryRuleXReturnExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXReturnExpressionRule()); } - iv_ruleXReturnExpression=ruleXReturnExpression - { $current=$iv_ruleXReturnExpression.current; } - EOF; - -// Rule XReturnExpression -ruleXReturnExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), - $current); - } - ) - otherlv_1='return' - { - newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); - } - ( - ('extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING)=> - ( - { - newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - lv_expression_2_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXReturnExpressionRule()); - } - set( - $current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - )? - ) -; - -// Entry rule entryRuleXTryCatchFinallyExpression -entryRuleXTryCatchFinallyExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); } - iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression - { $current=$iv_ruleXTryCatchFinallyExpression.current; } - EOF; - -// Rule XTryCatchFinallyExpression -ruleXTryCatchFinallyExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), - $current); - } - ) - otherlv_1='try' - { - newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - } - lv_expression_2_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - set( - $current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - ('catch')=> - ( - { - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); - } - lv_catchClauses_3_0=ruleXCatchClause - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - add( - $current, - "catchClauses", - lv_catchClauses_3_0, - "org.eclipse.xtext.xbase.Xbase.XCatchClause"); - afterParserOrEnumRuleCall(); - } - ) - )+ - ( - ( - ('finally')=> - otherlv_4='finally' - { - newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); - } - lv_finallyExpression_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - set( - $current, - "finallyExpression", - lv_finallyExpression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - )? - ) - | - ( - otherlv_6='finally' - { - newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); - } - lv_finallyExpression_7_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - set( - $current, - "finallyExpression", - lv_finallyExpression_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - ) -; - -// Entry rule entryRuleXSynchronizedExpression -entryRuleXSynchronizedExpression returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); } - iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression - { $current=$iv_ruleXSynchronizedExpression.current; } - EOF; - -// Rule XSynchronizedExpression -ruleXSynchronizedExpression returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - (( - ( - ) - 'synchronized' - '(' - ) - )=> - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), - $current); - } - ) - otherlv_1='synchronized' - { - newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); - } - otherlv_2='(' - { - newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); - } - lv_param_3_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); - } - set( - $current, - "param", - lv_param_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_4=')' - { - newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); - } - lv_expression_5_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); - } - set( - $current, - "expression", - lv_expression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleXCatchClause -entryRuleXCatchClause returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXCatchClauseRule()); } - iv_ruleXCatchClause=ruleXCatchClause - { $current=$iv_ruleXCatchClause.current; } - EOF; - -// Rule XCatchClause -ruleXCatchClause returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ('catch')=> - otherlv_0='catch' - { - newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); - } - ) - otherlv_1='(' - { - newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); - } - lv_declaredParam_2_0=ruleFullJvmFormalParameter - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); - } - set( - $current, - "declaredParam", - lv_declaredParam_2_0, - "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_3=')' - { - newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); - } - lv_expression_4_0=ruleXExpression - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); - } - set( - $current, - "expression", - lv_expression_4_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleQualifiedName -entryRuleQualifiedName returns [String current=null]: - { newCompositeNode(grammarAccess.getQualifiedNameRule()); } - iv_ruleQualifiedName=ruleQualifiedName - { $current=$iv_ruleQualifiedName.current.getText(); } - EOF; - -// Rule QualifiedName -ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); - } - this_ValidID_0=ruleValidID - { - $current.merge(this_ValidID_0); - } - { - afterParserOrEnumRuleCall(); - } - ( - ( - ('.')=> - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - } - ) - { - newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); - } - this_ValidID_2=ruleValidID - { - $current.merge(this_ValidID_2); - } - { - afterParserOrEnumRuleCall(); - } - )* - ) -; - -// Entry rule entryRuleNumber -entryRuleNumber returns [String current=null]@init { - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -}: - { newCompositeNode(grammarAccess.getNumberRule()); } - iv_ruleNumber=ruleNumber - { $current=$iv_ruleNumber.current.getText(); } - EOF; -finally { - myHiddenTokenState.restore(); -} - -// Rule Number -ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); -} -@after { - leaveRule(); -}: - ( - this_HEX_0=RULE_HEX - { - $current.merge(this_HEX_0); - } - { - newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); - } - | - ( - ( - this_INT_1=RULE_INT - { - $current.merge(this_INT_1); - } - { - newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); - } - | - this_DECIMAL_2=RULE_DECIMAL - { - $current.merge(this_DECIMAL_2); - } - { - newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); - } - ) - ( - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); - } - ( - this_INT_4=RULE_INT - { - $current.merge(this_INT_4); - } - { - newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); - } - | - this_DECIMAL_5=RULE_DECIMAL - { - $current.merge(this_DECIMAL_5); - } - { - newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); - } - ) - )? - ) - ) -; -finally { - myHiddenTokenState.restore(); -} - -// Entry rule entryRuleJvmTypeReference -entryRuleJvmTypeReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); } - iv_ruleJvmTypeReference=ruleJvmTypeReference - { $current=$iv_ruleJvmTypeReference.current; } - EOF; - -// Rule JvmTypeReference -ruleJvmTypeReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); - } - this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference - { - $current = $this_JvmParameterizedTypeReference_0.current; - afterParserOrEnumRuleCall(); - } - ( - (( - ( - ) - ruleArrayBrackets - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), - $current); - } - ) - { - newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); - } - ruleArrayBrackets - { - afterParserOrEnumRuleCall(); - } - ) - )* - ) - | - { - newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); - } - this_XFunctionTypeRef_3=ruleXFunctionTypeRef - { - $current = $this_XFunctionTypeRef_3.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleArrayBrackets -entryRuleArrayBrackets returns [String current=null]: - { newCompositeNode(grammarAccess.getArrayBracketsRule()); } - iv_ruleArrayBrackets=ruleArrayBrackets - { $current=$iv_ruleArrayBrackets.current.getText(); } - EOF; - -// Rule ArrayBrackets -ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - kw='[' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); - } - kw=']' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); - } - ) -; - -// Entry rule entryRuleXFunctionTypeRef -entryRuleXFunctionTypeRef returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); } - iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef - { $current=$iv_ruleXFunctionTypeRef.current; } - EOF; - -// Rule XFunctionTypeRef -ruleXFunctionTypeRef returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - otherlv_0='(' - { - newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); - } - ( - ( - ( - { - newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); - } - lv_paramTypes_1_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); - } - add( - $current, - "paramTypes", - lv_paramTypes_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_2=',' - { - newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); - } - lv_paramTypes_3_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); - } - add( - $current, - "paramTypes", - lv_paramTypes_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - )? - otherlv_4=')' - { - newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); - } - )? - otherlv_5='=>' - { - newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); - } - lv_returnType_6_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); - } - set( - $current, - "returnType", - lv_returnType_6_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleJvmParameterizedTypeReference -entryRuleJvmParameterizedTypeReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); } - iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference - { $current=$iv_ruleJvmParameterizedTypeReference.current; } - EOF; - -// Rule JvmParameterizedTypeReference -ruleJvmParameterizedTypeReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - } - { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ('<')=> - otherlv_1='<' - { - newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - } - lv_arguments_2_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - $current, - "arguments", - lv_arguments_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_3=',' - { - newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - } - lv_arguments_4_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - $current, - "arguments", - lv_arguments_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_5='>' - { - newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); - } - ( - ( - (( - ( - ) - '.' - ) - )=> - ( - ( - { - $current = forceCreateModelElementAndSet( - grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), - $current); - } - ) - otherlv_7='.' - { - newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); - } - ) - ) - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - } - { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); - } - ruleValidID - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ('<')=> - otherlv_9='<' - { - newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); - } - lv_arguments_10_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - $current, - "arguments", - lv_arguments_10_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_11=',' - { - newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); - } - lv_arguments_12_0=ruleJvmArgumentTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - $current, - "arguments", - lv_arguments_12_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - otherlv_13='>' - { - newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); - } - )? - )* - )? - ) -; - -// Entry rule entryRuleJvmArgumentTypeReference -entryRuleJvmArgumentTypeReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); } - iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference - { $current=$iv_ruleJvmArgumentTypeReference.current; } - EOF; - -// Rule JvmArgumentTypeReference -ruleJvmArgumentTypeReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); - } - this_JvmTypeReference_0=ruleJvmTypeReference - { - $current = $this_JvmTypeReference_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); - } - this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference - { - $current = $this_JvmWildcardTypeReference_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleJvmWildcardTypeReference -entryRuleJvmWildcardTypeReference returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); } - iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference - { $current=$iv_ruleJvmWildcardTypeReference.current; } - EOF; - -// Rule JvmWildcardTypeReference -ruleJvmWildcardTypeReference returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), - $current); - } - ) - otherlv_1='?' - { - newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); - } - ( - ( - ( - ( - { - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); - } - lv_constraints_2_0=ruleJvmUpperBound - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - $current, - "constraints", - lv_constraints_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmUpperBound"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); - } - lv_constraints_3_0=ruleJvmUpperBoundAnded - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - $current, - "constraints", - lv_constraints_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) - | - ( - ( - ( - { - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); - } - lv_constraints_4_0=ruleJvmLowerBound - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - $current, - "constraints", - lv_constraints_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmLowerBound"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); - } - lv_constraints_5_0=ruleJvmLowerBoundAnded - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - $current, - "constraints", - lv_constraints_5_0, - "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) - )? - ) -; - -// Entry rule entryRuleJvmUpperBound -entryRuleJvmUpperBound returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmUpperBoundRule()); } - iv_ruleJvmUpperBound=ruleJvmUpperBound - { $current=$iv_ruleJvmUpperBound.current; } - EOF; - -// Rule JvmUpperBound -ruleJvmUpperBound returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='extends' - { - newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - lv_typeReference_1_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule()); - } - set( - $current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleJvmUpperBoundAnded -entryRuleJvmUpperBoundAnded returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); } - iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded - { $current=$iv_ruleJvmUpperBoundAnded.current; } - EOF; - -// Rule JvmUpperBoundAnded -ruleJvmUpperBoundAnded returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='&' - { - newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - lv_typeReference_1_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule()); - } - set( - $current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleJvmLowerBound -entryRuleJvmLowerBound returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmLowerBoundRule()); } - iv_ruleJvmLowerBound=ruleJvmLowerBound - { $current=$iv_ruleJvmLowerBound.current; } - EOF; - -// Rule JvmLowerBound -ruleJvmLowerBound returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='super' - { - newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - lv_typeReference_1_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule()); - } - set( - $current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleJvmLowerBoundAnded -entryRuleJvmLowerBoundAnded returns [EObject current=null]: - { newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); } - iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded - { $current=$iv_ruleJvmLowerBoundAnded.current; } - EOF; - -// Rule JvmLowerBoundAnded -ruleJvmLowerBoundAnded returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='&' - { - newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - } - lv_typeReference_1_0=ruleJvmTypeReference - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule()); - } - set( - $current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleQualifiedNameWithWildcard -entryRuleQualifiedNameWithWildcard returns [String current=null]: - { newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); } - iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard - { $current=$iv_ruleQualifiedNameWithWildcard.current.getText(); } - EOF; - -// Rule QualifiedNameWithWildcard -ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); - } - this_QualifiedName_0=ruleQualifiedName - { - $current.merge(this_QualifiedName_0); - } - { - afterParserOrEnumRuleCall(); - } - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); - } - kw='*' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); - } - ) -; - -// Entry rule entryRuleValidID -entryRuleValidID returns [String current=null]: - { newCompositeNode(grammarAccess.getValidIDRule()); } - iv_ruleValidID=ruleValidID - { $current=$iv_ruleValidID.current.getText(); } - EOF; - -// Rule ValidID -ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - this_ID_0=RULE_ID - { - $current.merge(this_ID_0); - } - { - newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); - } -; - -// Entry rule entryRuleXImportSection -entryRuleXImportSection returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXImportSectionRule()); } - iv_ruleXImportSection=ruleXImportSection - { $current=$iv_ruleXImportSection.current; } - EOF; - -// Rule XImportSection -ruleXImportSection returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); - } - lv_importDeclarations_0_0=ruleXImportDeclaration - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXImportSectionRule()); - } - add( - $current, - "importDeclarations", - lv_importDeclarations_0_0, - "org.eclipse.xtext.xbase.Xtype.XImportDeclaration"); - afterParserOrEnumRuleCall(); - } - ) - )+ -; - -// Entry rule entryRuleXImportDeclaration -entryRuleXImportDeclaration returns [EObject current=null]: - { newCompositeNode(grammarAccess.getXImportDeclarationRule()); } - iv_ruleXImportDeclaration=ruleXImportDeclaration - { $current=$iv_ruleXImportDeclaration.current; } - EOF; - -// Rule XImportDeclaration -ruleXImportDeclaration returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='import' - { - newLeafNode(otherlv_0, grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); - } - ( - ( - ( - ( - lv_static_1_0='static' - { - newLeafNode(lv_static_1_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - setWithLastConsumed($current, "static", lv_static_1_0 != null, "static"); - } - ) - ) - ( - ( - lv_extension_2_0='extension' - { - newLeafNode(lv_extension_2_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - setWithLastConsumed($current, "extension", lv_extension_2_0 != null, "extension"); - } - ) - )? - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - } - { - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); - } - ruleQualifiedNameInStaticImport - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - ( - lv_wildcard_4_0='*' - { - newLeafNode(lv_wildcard_4_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - setWithLastConsumed($current, "wildcard", lv_wildcard_4_0 != null, "*"); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); - } - lv_memberName_5_0=ruleValidID - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); - } - set( - $current, - "memberName", - lv_memberName_5_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ) - | - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - } - { - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - | - ( - ( - { - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); - } - lv_importedNamespace_7_0=ruleQualifiedNameWithWildcard - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); - } - set( - $current, - "importedNamespace", - lv_importedNamespace_7_0, - "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); - afterParserOrEnumRuleCall(); - } - ) - ) - ) - ( - otherlv_8=';' - { - newLeafNode(otherlv_8, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); - } - )? - ) -; - -// Entry rule entryRuleQualifiedNameInStaticImport -entryRuleQualifiedNameInStaticImport returns [String current=null]: - { newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); } - iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport - { $current=$iv_ruleQualifiedNameInStaticImport.current.getText(); } - EOF; - -// Rule QualifiedNameInStaticImport -ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); - } - this_ValidID_0=ruleValidID - { - $current.merge(this_ValidID_0); - } - { - afterParserOrEnumRuleCall(); - } - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); - } - )+ -; - -RULE_HEX : ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F'|'_')+ ('#' (('b'|'B') ('i'|'I')|('l'|'L')))?; - -RULE_INT : '0'..'9' ('0'..'9'|'_')*; - -RULE_DECIMAL : RULE_INT (('e'|'E') ('+'|'-')? RULE_INT)? (('b'|'B') ('i'|'I'|'d'|'D')|('l'|'L'|'d'|'D'|'f'|'F'))?; - -RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*; - -RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'?|'\'' ('\\' .|~(('\\'|'\'')))* '\''?); - -RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; - -RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; - -RULE_WS : (' '|'\t'|'\r'|'\n')+; - -RULE_ANY_OTHER : .; diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens deleted file mode 100644 index a5426d07a1f..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntities.tokens +++ /dev/null @@ -1,163 +0,0 @@ -'!'=51 -'!='=35 -'!=='=37 -'#'=58 -'%'=50 -'%='=28 -'&&'=33 -'&'=89 -'('=20 -')'=22 -'*'=47 -'**'=48 -'*='=26 -'+'=45 -'++'=53 -'+='=24 -','=21 -'-'=46 -'--'=54 -'-='=25 -'->'=39 -'.'=55 -'..'=41 -'..<'=40 -'/'=49 -'/='=27 -':'=18 -'::'=56 -';'=62 -'<'=29 -'<>'=43 -'='=23 -'=='=34 -'==='=36 -'=>'=42 -'>'=30 -'>='=31 -'?'=88 -'?.'=57 -'?:'=44 -'['=59 -']'=60 -'as'=52 -'case'=67 -'catch'=87 -'default'=66 -'do'=70 -'else'=64 -'entity'=16 -'extends'=17 -'extension'=75 -'false'=78 -'finally'=85 -'for'=68 -'if'=63 -'import'=74 -'instanceof'=38 -'new'=77 -'null'=80 -'op'=19 -'package'=13 -'return'=83 -'static'=73 -'super'=76 -'switch'=65 -'synchronized'=86 -'throw'=82 -'true'=79 -'try'=84 -'typeof'=81 -'val'=72 -'var'=71 -'while'=69 -'{'=14 -'|'=61 -'||'=32 -'}'=15 -RULE_ANY_OTHER=12 -RULE_DECIMAL=7 -RULE_HEX=5 -RULE_ID=8 -RULE_INT=6 -RULE_ML_COMMENT=9 -RULE_SL_COMMENT=10 -RULE_STRING=4 -RULE_WS=11 -T__13=13 -T__14=14 -T__15=15 -T__16=16 -T__17=17 -T__18=18 -T__19=19 -T__20=20 -T__21=21 -T__22=22 -T__23=23 -T__24=24 -T__25=25 -T__26=26 -T__27=27 -T__28=28 -T__29=29 -T__30=30 -T__31=31 -T__32=32 -T__33=33 -T__34=34 -T__35=35 -T__36=36 -T__37=37 -T__38=38 -T__39=39 -T__40=40 -T__41=41 -T__42=42 -T__43=43 -T__44=44 -T__45=45 -T__46=46 -T__47=47 -T__48=48 -T__49=49 -T__50=50 -T__51=51 -T__52=52 -T__53=53 -T__54=54 -T__55=55 -T__56=56 -T__57=57 -T__58=58 -T__59=59 -T__60=60 -T__61=61 -T__62=62 -T__63=63 -T__64=64 -T__65=65 -T__66=66 -T__67=67 -T__68=68 -T__69=69 -T__70=70 -T__71=71 -T__72=72 -T__73=73 -T__74=74 -T__75=75 -T__76=76 -T__77=77 -T__78=78 -T__79=79 -T__80=80 -T__81=81 -T__82=82 -T__83=83 -T__84=84 -T__85=85 -T__86=86 -T__87=87 -T__88=88 -T__89=89 diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesLexer.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesLexer.java deleted file mode 100644 index aeb884bbd72..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesLexer.java +++ /dev/null @@ -1,3578 +0,0 @@ -package org.eclipse.xtext.web.example.entities.parser.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.parser.antlr.Lexer; - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalEntitiesLexer extends Lexer { - public static final int RULE_HEX=5; - public static final int T__50=50; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__59=59; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__55=55; - public static final int T__56=56; - public static final int T__13=13; - public static final int T__57=57; - public static final int T__14=14; - public static final int T__58=58; - public static final int T__51=51; - public static final int T__52=52; - public static final int T__53=53; - public static final int T__54=54; - public static final int T__60=60; - public static final int T__61=61; - public static final int RULE_ID=8; - public static final int RULE_DECIMAL=7; - public static final int T__26=26; - public static final int T__27=27; - public static final int T__28=28; - public static final int RULE_INT=6; - public static final int T__29=29; - public static final int T__22=22; - public static final int T__66=66; - public static final int RULE_ML_COMMENT=9; - public static final int T__23=23; - public static final int T__67=67; - public static final int T__24=24; - public static final int T__68=68; - public static final int T__25=25; - public static final int T__69=69; - public static final int T__62=62; - public static final int T__63=63; - public static final int T__20=20; - public static final int T__64=64; - public static final int T__21=21; - public static final int T__65=65; - public static final int T__70=70; - public static final int T__71=71; - public static final int T__72=72; - public static final int RULE_STRING=4; - public static final int RULE_SL_COMMENT=10; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__39=39; - public static final int T__33=33; - public static final int T__77=77; - public static final int T__34=34; - public static final int T__78=78; - public static final int T__35=35; - public static final int T__79=79; - public static final int T__36=36; - public static final int T__73=73; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__74=74; - public static final int T__31=31; - public static final int T__75=75; - public static final int T__32=32; - public static final int T__76=76; - public static final int T__80=80; - public static final int T__81=81; - public static final int T__82=82; - public static final int T__83=83; - public static final int RULE_WS=11; - public static final int RULE_ANY_OTHER=12; - public static final int T__48=48; - public static final int T__49=49; - public static final int T__44=44; - public static final int T__88=88; - public static final int T__45=45; - public static final int T__89=89; - public static final int T__46=46; - public static final int T__47=47; - public static final int T__40=40; - public static final int T__84=84; - public static final int T__41=41; - public static final int T__85=85; - public static final int T__42=42; - public static final int T__86=86; - public static final int T__43=43; - public static final int T__87=87; - - // delegates - // delegators - - public InternalEntitiesLexer() {;} - public InternalEntitiesLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalEntitiesLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalEntities.g"; } - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:11:7: ( 'package' ) - // InternalEntities.g:11:9: 'package' - { - match("package"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__13" - - // $ANTLR start "T__14" - public final void mT__14() throws RecognitionException { - try { - int _type = T__14; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:12:7: ( '{' ) - // InternalEntities.g:12:9: '{' - { - match('{'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__14" - - // $ANTLR start "T__15" - public final void mT__15() throws RecognitionException { - try { - int _type = T__15; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:13:7: ( '}' ) - // InternalEntities.g:13:9: '}' - { - match('}'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__15" - - // $ANTLR start "T__16" - public final void mT__16() throws RecognitionException { - try { - int _type = T__16; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:14:7: ( 'entity' ) - // InternalEntities.g:14:9: 'entity' - { - match("entity"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__16" - - // $ANTLR start "T__17" - public final void mT__17() throws RecognitionException { - try { - int _type = T__17; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:15:7: ( 'extends' ) - // InternalEntities.g:15:9: 'extends' - { - match("extends"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__17" - - // $ANTLR start "T__18" - public final void mT__18() throws RecognitionException { - try { - int _type = T__18; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:16:7: ( ':' ) - // InternalEntities.g:16:9: ':' - { - match(':'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__18" - - // $ANTLR start "T__19" - public final void mT__19() throws RecognitionException { - try { - int _type = T__19; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:17:7: ( 'op' ) - // InternalEntities.g:17:9: 'op' - { - match("op"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__19" - - // $ANTLR start "T__20" - public final void mT__20() throws RecognitionException { - try { - int _type = T__20; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:18:7: ( '(' ) - // InternalEntities.g:18:9: '(' - { - match('('); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__20" - - // $ANTLR start "T__21" - public final void mT__21() throws RecognitionException { - try { - int _type = T__21; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:19:7: ( ',' ) - // InternalEntities.g:19:9: ',' - { - match(','); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__21" - - // $ANTLR start "T__22" - public final void mT__22() throws RecognitionException { - try { - int _type = T__22; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:20:7: ( ')' ) - // InternalEntities.g:20:9: ')' - { - match(')'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__22" - - // $ANTLR start "T__23" - public final void mT__23() throws RecognitionException { - try { - int _type = T__23; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:21:7: ( '=' ) - // InternalEntities.g:21:9: '=' - { - match('='); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__23" - - // $ANTLR start "T__24" - public final void mT__24() throws RecognitionException { - try { - int _type = T__24; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:22:7: ( '+=' ) - // InternalEntities.g:22:9: '+=' - { - match("+="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__24" - - // $ANTLR start "T__25" - public final void mT__25() throws RecognitionException { - try { - int _type = T__25; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:23:7: ( '-=' ) - // InternalEntities.g:23:9: '-=' - { - match("-="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__25" - - // $ANTLR start "T__26" - public final void mT__26() throws RecognitionException { - try { - int _type = T__26; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:24:7: ( '*=' ) - // InternalEntities.g:24:9: '*=' - { - match("*="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__26" - - // $ANTLR start "T__27" - public final void mT__27() throws RecognitionException { - try { - int _type = T__27; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:25:7: ( '/=' ) - // InternalEntities.g:25:9: '/=' - { - match("/="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__27" - - // $ANTLR start "T__28" - public final void mT__28() throws RecognitionException { - try { - int _type = T__28; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:26:7: ( '%=' ) - // InternalEntities.g:26:9: '%=' - { - match("%="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__28" - - // $ANTLR start "T__29" - public final void mT__29() throws RecognitionException { - try { - int _type = T__29; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:27:7: ( '<' ) - // InternalEntities.g:27:9: '<' - { - match('<'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__29" - - // $ANTLR start "T__30" - public final void mT__30() throws RecognitionException { - try { - int _type = T__30; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:28:7: ( '>' ) - // InternalEntities.g:28:9: '>' - { - match('>'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__30" - - // $ANTLR start "T__31" - public final void mT__31() throws RecognitionException { - try { - int _type = T__31; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:29:7: ( '>=' ) - // InternalEntities.g:29:9: '>=' - { - match(">="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__31" - - // $ANTLR start "T__32" - public final void mT__32() throws RecognitionException { - try { - int _type = T__32; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:30:7: ( '||' ) - // InternalEntities.g:30:9: '||' - { - match("||"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__32" - - // $ANTLR start "T__33" - public final void mT__33() throws RecognitionException { - try { - int _type = T__33; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:31:7: ( '&&' ) - // InternalEntities.g:31:9: '&&' - { - match("&&"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__33" - - // $ANTLR start "T__34" - public final void mT__34() throws RecognitionException { - try { - int _type = T__34; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:32:7: ( '==' ) - // InternalEntities.g:32:9: '==' - { - match("=="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__34" - - // $ANTLR start "T__35" - public final void mT__35() throws RecognitionException { - try { - int _type = T__35; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:33:7: ( '!=' ) - // InternalEntities.g:33:9: '!=' - { - match("!="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__35" - - // $ANTLR start "T__36" - public final void mT__36() throws RecognitionException { - try { - int _type = T__36; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:34:7: ( '===' ) - // InternalEntities.g:34:9: '===' - { - match("==="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__36" - - // $ANTLR start "T__37" - public final void mT__37() throws RecognitionException { - try { - int _type = T__37; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:35:7: ( '!==' ) - // InternalEntities.g:35:9: '!==' - { - match("!=="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__37" - - // $ANTLR start "T__38" - public final void mT__38() throws RecognitionException { - try { - int _type = T__38; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:36:7: ( 'instanceof' ) - // InternalEntities.g:36:9: 'instanceof' - { - match("instanceof"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__38" - - // $ANTLR start "T__39" - public final void mT__39() throws RecognitionException { - try { - int _type = T__39; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:37:7: ( '->' ) - // InternalEntities.g:37:9: '->' - { - match("->"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__39" - - // $ANTLR start "T__40" - public final void mT__40() throws RecognitionException { - try { - int _type = T__40; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:38:7: ( '..<' ) - // InternalEntities.g:38:9: '..<' - { - match("..<"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__40" - - // $ANTLR start "T__41" - public final void mT__41() throws RecognitionException { - try { - int _type = T__41; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:39:7: ( '..' ) - // InternalEntities.g:39:9: '..' - { - match(".."); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__41" - - // $ANTLR start "T__42" - public final void mT__42() throws RecognitionException { - try { - int _type = T__42; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:40:7: ( '=>' ) - // InternalEntities.g:40:9: '=>' - { - match("=>"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__42" - - // $ANTLR start "T__43" - public final void mT__43() throws RecognitionException { - try { - int _type = T__43; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:41:7: ( '<>' ) - // InternalEntities.g:41:9: '<>' - { - match("<>"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__43" - - // $ANTLR start "T__44" - public final void mT__44() throws RecognitionException { - try { - int _type = T__44; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:42:7: ( '?:' ) - // InternalEntities.g:42:9: '?:' - { - match("?:"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__44" - - // $ANTLR start "T__45" - public final void mT__45() throws RecognitionException { - try { - int _type = T__45; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:43:7: ( '+' ) - // InternalEntities.g:43:9: '+' - { - match('+'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__45" - - // $ANTLR start "T__46" - public final void mT__46() throws RecognitionException { - try { - int _type = T__46; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:44:7: ( '-' ) - // InternalEntities.g:44:9: '-' - { - match('-'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__46" - - // $ANTLR start "T__47" - public final void mT__47() throws RecognitionException { - try { - int _type = T__47; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:45:7: ( '*' ) - // InternalEntities.g:45:9: '*' - { - match('*'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__47" - - // $ANTLR start "T__48" - public final void mT__48() throws RecognitionException { - try { - int _type = T__48; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:46:7: ( '**' ) - // InternalEntities.g:46:9: '**' - { - match("**"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__48" - - // $ANTLR start "T__49" - public final void mT__49() throws RecognitionException { - try { - int _type = T__49; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:47:7: ( '/' ) - // InternalEntities.g:47:9: '/' - { - match('/'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__49" - - // $ANTLR start "T__50" - public final void mT__50() throws RecognitionException { - try { - int _type = T__50; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:48:7: ( '%' ) - // InternalEntities.g:48:9: '%' - { - match('%'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__50" - - // $ANTLR start "T__51" - public final void mT__51() throws RecognitionException { - try { - int _type = T__51; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:49:7: ( '!' ) - // InternalEntities.g:49:9: '!' - { - match('!'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__51" - - // $ANTLR start "T__52" - public final void mT__52() throws RecognitionException { - try { - int _type = T__52; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:50:7: ( 'as' ) - // InternalEntities.g:50:9: 'as' - { - match("as"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__52" - - // $ANTLR start "T__53" - public final void mT__53() throws RecognitionException { - try { - int _type = T__53; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:51:7: ( '++' ) - // InternalEntities.g:51:9: '++' - { - match("++"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__53" - - // $ANTLR start "T__54" - public final void mT__54() throws RecognitionException { - try { - int _type = T__54; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:52:7: ( '--' ) - // InternalEntities.g:52:9: '--' - { - match("--"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__54" - - // $ANTLR start "T__55" - public final void mT__55() throws RecognitionException { - try { - int _type = T__55; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:53:7: ( '.' ) - // InternalEntities.g:53:9: '.' - { - match('.'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__55" - - // $ANTLR start "T__56" - public final void mT__56() throws RecognitionException { - try { - int _type = T__56; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:54:7: ( '::' ) - // InternalEntities.g:54:9: '::' - { - match("::"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__56" - - // $ANTLR start "T__57" - public final void mT__57() throws RecognitionException { - try { - int _type = T__57; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:55:7: ( '?.' ) - // InternalEntities.g:55:9: '?.' - { - match("?."); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__57" - - // $ANTLR start "T__58" - public final void mT__58() throws RecognitionException { - try { - int _type = T__58; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:56:7: ( '#' ) - // InternalEntities.g:56:9: '#' - { - match('#'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__58" - - // $ANTLR start "T__59" - public final void mT__59() throws RecognitionException { - try { - int _type = T__59; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:57:7: ( '[' ) - // InternalEntities.g:57:9: '[' - { - match('['); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__59" - - // $ANTLR start "T__60" - public final void mT__60() throws RecognitionException { - try { - int _type = T__60; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:58:7: ( ']' ) - // InternalEntities.g:58:9: ']' - { - match(']'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__60" - - // $ANTLR start "T__61" - public final void mT__61() throws RecognitionException { - try { - int _type = T__61; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:59:7: ( '|' ) - // InternalEntities.g:59:9: '|' - { - match('|'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__61" - - // $ANTLR start "T__62" - public final void mT__62() throws RecognitionException { - try { - int _type = T__62; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:60:7: ( ';' ) - // InternalEntities.g:60:9: ';' - { - match(';'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__62" - - // $ANTLR start "T__63" - public final void mT__63() throws RecognitionException { - try { - int _type = T__63; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:61:7: ( 'if' ) - // InternalEntities.g:61:9: 'if' - { - match("if"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__63" - - // $ANTLR start "T__64" - public final void mT__64() throws RecognitionException { - try { - int _type = T__64; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:62:7: ( 'else' ) - // InternalEntities.g:62:9: 'else' - { - match("else"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__64" - - // $ANTLR start "T__65" - public final void mT__65() throws RecognitionException { - try { - int _type = T__65; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:63:7: ( 'switch' ) - // InternalEntities.g:63:9: 'switch' - { - match("switch"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__65" - - // $ANTLR start "T__66" - public final void mT__66() throws RecognitionException { - try { - int _type = T__66; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:64:7: ( 'default' ) - // InternalEntities.g:64:9: 'default' - { - match("default"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__66" - - // $ANTLR start "T__67" - public final void mT__67() throws RecognitionException { - try { - int _type = T__67; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:65:7: ( 'case' ) - // InternalEntities.g:65:9: 'case' - { - match("case"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__67" - - // $ANTLR start "T__68" - public final void mT__68() throws RecognitionException { - try { - int _type = T__68; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:66:7: ( 'for' ) - // InternalEntities.g:66:9: 'for' - { - match("for"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__68" - - // $ANTLR start "T__69" - public final void mT__69() throws RecognitionException { - try { - int _type = T__69; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:67:7: ( 'while' ) - // InternalEntities.g:67:9: 'while' - { - match("while"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__69" - - // $ANTLR start "T__70" - public final void mT__70() throws RecognitionException { - try { - int _type = T__70; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:68:7: ( 'do' ) - // InternalEntities.g:68:9: 'do' - { - match("do"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__70" - - // $ANTLR start "T__71" - public final void mT__71() throws RecognitionException { - try { - int _type = T__71; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:69:7: ( 'var' ) - // InternalEntities.g:69:9: 'var' - { - match("var"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__71" - - // $ANTLR start "T__72" - public final void mT__72() throws RecognitionException { - try { - int _type = T__72; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:70:7: ( 'val' ) - // InternalEntities.g:70:9: 'val' - { - match("val"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__72" - - // $ANTLR start "T__73" - public final void mT__73() throws RecognitionException { - try { - int _type = T__73; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:71:7: ( 'static' ) - // InternalEntities.g:71:9: 'static' - { - match("static"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__73" - - // $ANTLR start "T__74" - public final void mT__74() throws RecognitionException { - try { - int _type = T__74; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:72:7: ( 'import' ) - // InternalEntities.g:72:9: 'import' - { - match("import"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__74" - - // $ANTLR start "T__75" - public final void mT__75() throws RecognitionException { - try { - int _type = T__75; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:73:7: ( 'extension' ) - // InternalEntities.g:73:9: 'extension' - { - match("extension"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__75" - - // $ANTLR start "T__76" - public final void mT__76() throws RecognitionException { - try { - int _type = T__76; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:74:7: ( 'super' ) - // InternalEntities.g:74:9: 'super' - { - match("super"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__76" - - // $ANTLR start "T__77" - public final void mT__77() throws RecognitionException { - try { - int _type = T__77; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:75:7: ( 'new' ) - // InternalEntities.g:75:9: 'new' - { - match("new"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__77" - - // $ANTLR start "T__78" - public final void mT__78() throws RecognitionException { - try { - int _type = T__78; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:76:7: ( 'false' ) - // InternalEntities.g:76:9: 'false' - { - match("false"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__78" - - // $ANTLR start "T__79" - public final void mT__79() throws RecognitionException { - try { - int _type = T__79; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:77:7: ( 'true' ) - // InternalEntities.g:77:9: 'true' - { - match("true"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__79" - - // $ANTLR start "T__80" - public final void mT__80() throws RecognitionException { - try { - int _type = T__80; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:78:7: ( 'null' ) - // InternalEntities.g:78:9: 'null' - { - match("null"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__80" - - // $ANTLR start "T__81" - public final void mT__81() throws RecognitionException { - try { - int _type = T__81; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:79:7: ( 'typeof' ) - // InternalEntities.g:79:9: 'typeof' - { - match("typeof"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__81" - - // $ANTLR start "T__82" - public final void mT__82() throws RecognitionException { - try { - int _type = T__82; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:80:7: ( 'throw' ) - // InternalEntities.g:80:9: 'throw' - { - match("throw"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__82" - - // $ANTLR start "T__83" - public final void mT__83() throws RecognitionException { - try { - int _type = T__83; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:81:7: ( 'return' ) - // InternalEntities.g:81:9: 'return' - { - match("return"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__83" - - // $ANTLR start "T__84" - public final void mT__84() throws RecognitionException { - try { - int _type = T__84; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:82:7: ( 'try' ) - // InternalEntities.g:82:9: 'try' - { - match("try"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__84" - - // $ANTLR start "T__85" - public final void mT__85() throws RecognitionException { - try { - int _type = T__85; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:83:7: ( 'finally' ) - // InternalEntities.g:83:9: 'finally' - { - match("finally"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__85" - - // $ANTLR start "T__86" - public final void mT__86() throws RecognitionException { - try { - int _type = T__86; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:84:7: ( 'synchronized' ) - // InternalEntities.g:84:9: 'synchronized' - { - match("synchronized"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__86" - - // $ANTLR start "T__87" - public final void mT__87() throws RecognitionException { - try { - int _type = T__87; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:85:7: ( 'catch' ) - // InternalEntities.g:85:9: 'catch' - { - match("catch"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__87" - - // $ANTLR start "T__88" - public final void mT__88() throws RecognitionException { - try { - int _type = T__88; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:86:7: ( '?' ) - // InternalEntities.g:86:9: '?' - { - match('?'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__88" - - // $ANTLR start "T__89" - public final void mT__89() throws RecognitionException { - try { - int _type = T__89; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:87:7: ( '&' ) - // InternalEntities.g:87:9: '&' - { - match('&'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__89" - - // $ANTLR start "RULE_HEX" - public final void mRULE_HEX() throws RecognitionException { - try { - int _type = RULE_HEX; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6879:10: ( ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? ) - // InternalEntities.g:6879:12: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? - { - // InternalEntities.g:6879:12: ( '0x' | '0X' ) - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0=='0') ) { - int LA1_1 = input.LA(2); - - if ( (LA1_1=='x') ) { - alt1=1; - } - else if ( (LA1_1=='X') ) { - alt1=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 1, input); - - throw nvae; - } - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 0, input); - - throw nvae; - } - switch (alt1) { - case 1 : - // InternalEntities.g:6879:13: '0x' - { - match("0x"); - - - } - break; - case 2 : - // InternalEntities.g:6879:18: '0X' - { - match("0X"); - - - } - break; - - } - - // InternalEntities.g:6879:24: ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' | '_' )+ - int cnt2=0; - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='F')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='f')) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalEntities.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='f') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt2 >= 1 ) break loop2; - EarlyExitException eee = - new EarlyExitException(2, input); - throw eee; - } - cnt2++; - } while (true); - - // InternalEntities.g:6879:58: ( '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) )? - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0=='#') ) { - alt4=1; - } - switch (alt4) { - case 1 : - // InternalEntities.g:6879:59: '#' ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) - { - match('#'); - // InternalEntities.g:6879:63: ( ( 'b' | 'B' ) ( 'i' | 'I' ) | ( 'l' | 'L' ) ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0=='B'||LA3_0=='b') ) { - alt3=1; - } - else if ( (LA3_0=='L'||LA3_0=='l') ) { - alt3=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // InternalEntities.g:6879:64: ( 'b' | 'B' ) ( 'i' | 'I' ) - { - if ( input.LA(1)=='B'||input.LA(1)=='b' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - if ( input.LA(1)=='I'||input.LA(1)=='i' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - case 2 : - // InternalEntities.g:6879:84: ( 'l' | 'L' ) - { - if ( input.LA(1)=='L'||input.LA(1)=='l' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_HEX" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6881:10: ( '0' .. '9' ( '0' .. '9' | '_' )* ) - // InternalEntities.g:6881:12: '0' .. '9' ( '0' .. '9' | '_' )* - { - matchRange('0','9'); - // InternalEntities.g:6881:21: ( '0' .. '9' | '_' )* - loop5: - do { - int alt5=2; - int LA5_0 = input.LA(1); - - if ( ((LA5_0>='0' && LA5_0<='9')||LA5_0=='_') ) { - alt5=1; - } - - - switch (alt5) { - case 1 : - // InternalEntities.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||input.LA(1)=='_' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop5; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_DECIMAL" - public final void mRULE_DECIMAL() throws RecognitionException { - try { - int _type = RULE_DECIMAL; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6883:14: ( RULE_INT ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? ) - // InternalEntities.g:6883:16: RULE_INT ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? - { - mRULE_INT(); - // InternalEntities.g:6883:25: ( ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT )? - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='E'||LA7_0=='e') ) { - alt7=1; - } - switch (alt7) { - case 1 : - // InternalEntities.g:6883:26: ( 'e' | 'E' ) ( '+' | '-' )? RULE_INT - { - if ( input.LA(1)=='E'||input.LA(1)=='e' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalEntities.g:6883:36: ( '+' | '-' )? - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0=='+'||LA6_0=='-') ) { - alt6=1; - } - switch (alt6) { - case 1 : - // InternalEntities.g: - { - if ( input.LA(1)=='+'||input.LA(1)=='-' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - mRULE_INT(); - - } - break; - - } - - // InternalEntities.g:6883:58: ( ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) | ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) )? - int alt8=3; - int LA8_0 = input.LA(1); - - if ( (LA8_0=='B'||LA8_0=='b') ) { - alt8=1; - } - else if ( (LA8_0=='D'||LA8_0=='F'||LA8_0=='L'||LA8_0=='d'||LA8_0=='f'||LA8_0=='l') ) { - alt8=2; - } - switch (alt8) { - case 1 : - // InternalEntities.g:6883:59: ( 'b' | 'B' ) ( 'i' | 'I' | 'd' | 'D' ) - { - if ( input.LA(1)=='B'||input.LA(1)=='b' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - if ( input.LA(1)=='D'||input.LA(1)=='I'||input.LA(1)=='d'||input.LA(1)=='i' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - case 2 : - // InternalEntities.g:6883:87: ( 'l' | 'L' | 'd' | 'D' | 'f' | 'F' ) - { - if ( input.LA(1)=='D'||input.LA(1)=='F'||input.LA(1)=='L'||input.LA(1)=='d'||input.LA(1)=='f'||input.LA(1)=='l' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_DECIMAL" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6885:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* ) - // InternalEntities.g:6885:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* - { - // InternalEntities.g:6885:11: ( '^' )? - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0=='^') ) { - alt9=1; - } - switch (alt9) { - case 1 : - // InternalEntities.g:6885:11: '^' - { - match('^'); - - } - break; - - } - - if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalEntities.g:6885:44: ( 'a' .. 'z' | 'A' .. 'Z' | '$' | '_' | '0' .. '9' )* - loop10: - do { - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='$'||(LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='Z')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='z')) ) { - alt10=1; - } - - - switch (alt10) { - case 1 : - // InternalEntities.g: - { - if ( input.LA(1)=='$'||(input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop10; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6887:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) ) - // InternalEntities.g:6887:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) - { - // InternalEntities.g:6887:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? ) - int alt15=2; - int LA15_0 = input.LA(1); - - if ( (LA15_0=='\"') ) { - alt15=1; - } - else if ( (LA15_0=='\'') ) { - alt15=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 15, 0, input); - - throw nvae; - } - switch (alt15) { - case 1 : - // InternalEntities.g:6887:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* ( '\"' )? - { - match('\"'); - // InternalEntities.g:6887:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop11: - do { - int alt11=3; - int LA11_0 = input.LA(1); - - if ( (LA11_0=='\\') ) { - alt11=1; - } - else if ( ((LA11_0>='\u0000' && LA11_0<='!')||(LA11_0>='#' && LA11_0<='[')||(LA11_0>=']' && LA11_0<='\uFFFF')) ) { - alt11=2; - } - - - switch (alt11) { - case 1 : - // InternalEntities.g:6887:21: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalEntities.g:6887:28: ~ ( ( '\\\\' | '\"' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop11; - } - } while (true); - - // InternalEntities.g:6887:44: ( '\"' )? - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0=='\"') ) { - alt12=1; - } - switch (alt12) { - case 1 : - // InternalEntities.g:6887:44: '\"' - { - match('\"'); - - } - break; - - } - - - } - break; - case 2 : - // InternalEntities.g:6887:49: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* ( '\\'' )? - { - match('\''); - // InternalEntities.g:6887:54: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - loop13: - do { - int alt13=3; - int LA13_0 = input.LA(1); - - if ( (LA13_0=='\\') ) { - alt13=1; - } - else if ( ((LA13_0>='\u0000' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='[')||(LA13_0>=']' && LA13_0<='\uFFFF')) ) { - alt13=2; - } - - - switch (alt13) { - case 1 : - // InternalEntities.g:6887:55: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalEntities.g:6887:62: ~ ( ( '\\\\' | '\\'' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop13; - } - } while (true); - - // InternalEntities.g:6887:79: ( '\\'' )? - int alt14=2; - int LA14_0 = input.LA(1); - - if ( (LA14_0=='\'') ) { - alt14=1; - } - switch (alt14) { - case 1 : - // InternalEntities.g:6887:79: '\\'' - { - match('\''); - - } - break; - - } - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6889:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalEntities.g:6889:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalEntities.g:6889:24: ( options {greedy=false; } : . )* - loop16: - do { - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0=='*') ) { - int LA16_1 = input.LA(2); - - if ( (LA16_1=='/') ) { - alt16=2; - } - else if ( ((LA16_1>='\u0000' && LA16_1<='.')||(LA16_1>='0' && LA16_1<='\uFFFF')) ) { - alt16=1; - } - - - } - else if ( ((LA16_0>='\u0000' && LA16_0<=')')||(LA16_0>='+' && LA16_0<='\uFFFF')) ) { - alt16=1; - } - - - switch (alt16) { - case 1 : - // InternalEntities.g:6889:52: . - { - matchAny(); - - } - break; - - default : - break loop16; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6891:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalEntities.g:6891:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // InternalEntities.g:6891:24: (~ ( ( '\\n' | '\\r' ) ) )* - loop17: - do { - int alt17=2; - int LA17_0 = input.LA(1); - - if ( ((LA17_0>='\u0000' && LA17_0<='\t')||(LA17_0>='\u000B' && LA17_0<='\f')||(LA17_0>='\u000E' && LA17_0<='\uFFFF')) ) { - alt17=1; - } - - - switch (alt17) { - case 1 : - // InternalEntities.g:6891:24: ~ ( ( '\\n' | '\\r' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop17; - } - } while (true); - - // InternalEntities.g:6891:40: ( ( '\\r' )? '\\n' )? - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0=='\n'||LA19_0=='\r') ) { - alt19=1; - } - switch (alt19) { - case 1 : - // InternalEntities.g:6891:41: ( '\\r' )? '\\n' - { - // InternalEntities.g:6891:41: ( '\\r' )? - int alt18=2; - int LA18_0 = input.LA(1); - - if ( (LA18_0=='\r') ) { - alt18=1; - } - switch (alt18) { - case 1 : - // InternalEntities.g:6891:41: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6893:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalEntities.g:6893:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalEntities.g:6893:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt20=0; - loop20: - do { - int alt20=2; - int LA20_0 = input.LA(1); - - if ( ((LA20_0>='\t' && LA20_0<='\n')||LA20_0=='\r'||LA20_0==' ') ) { - alt20=1; - } - - - switch (alt20) { - case 1 : - // InternalEntities.g: - { - if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt20 >= 1 ) break loop20; - EarlyExitException eee = - new EarlyExitException(20, input); - throw eee; - } - cnt20++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalEntities.g:6895:16: ( . ) - // InternalEntities.g:6895:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalEntities.g:1:8: ( T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_ID | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt21=86; - alt21 = dfa21.predict(input); - switch (alt21) { - case 1 : - // InternalEntities.g:1:10: T__13 - { - mT__13(); - - } - break; - case 2 : - // InternalEntities.g:1:16: T__14 - { - mT__14(); - - } - break; - case 3 : - // InternalEntities.g:1:22: T__15 - { - mT__15(); - - } - break; - case 4 : - // InternalEntities.g:1:28: T__16 - { - mT__16(); - - } - break; - case 5 : - // InternalEntities.g:1:34: T__17 - { - mT__17(); - - } - break; - case 6 : - // InternalEntities.g:1:40: T__18 - { - mT__18(); - - } - break; - case 7 : - // InternalEntities.g:1:46: T__19 - { - mT__19(); - - } - break; - case 8 : - // InternalEntities.g:1:52: T__20 - { - mT__20(); - - } - break; - case 9 : - // InternalEntities.g:1:58: T__21 - { - mT__21(); - - } - break; - case 10 : - // InternalEntities.g:1:64: T__22 - { - mT__22(); - - } - break; - case 11 : - // InternalEntities.g:1:70: T__23 - { - mT__23(); - - } - break; - case 12 : - // InternalEntities.g:1:76: T__24 - { - mT__24(); - - } - break; - case 13 : - // InternalEntities.g:1:82: T__25 - { - mT__25(); - - } - break; - case 14 : - // InternalEntities.g:1:88: T__26 - { - mT__26(); - - } - break; - case 15 : - // InternalEntities.g:1:94: T__27 - { - mT__27(); - - } - break; - case 16 : - // InternalEntities.g:1:100: T__28 - { - mT__28(); - - } - break; - case 17 : - // InternalEntities.g:1:106: T__29 - { - mT__29(); - - } - break; - case 18 : - // InternalEntities.g:1:112: T__30 - { - mT__30(); - - } - break; - case 19 : - // InternalEntities.g:1:118: T__31 - { - mT__31(); - - } - break; - case 20 : - // InternalEntities.g:1:124: T__32 - { - mT__32(); - - } - break; - case 21 : - // InternalEntities.g:1:130: T__33 - { - mT__33(); - - } - break; - case 22 : - // InternalEntities.g:1:136: T__34 - { - mT__34(); - - } - break; - case 23 : - // InternalEntities.g:1:142: T__35 - { - mT__35(); - - } - break; - case 24 : - // InternalEntities.g:1:148: T__36 - { - mT__36(); - - } - break; - case 25 : - // InternalEntities.g:1:154: T__37 - { - mT__37(); - - } - break; - case 26 : - // InternalEntities.g:1:160: T__38 - { - mT__38(); - - } - break; - case 27 : - // InternalEntities.g:1:166: T__39 - { - mT__39(); - - } - break; - case 28 : - // InternalEntities.g:1:172: T__40 - { - mT__40(); - - } - break; - case 29 : - // InternalEntities.g:1:178: T__41 - { - mT__41(); - - } - break; - case 30 : - // InternalEntities.g:1:184: T__42 - { - mT__42(); - - } - break; - case 31 : - // InternalEntities.g:1:190: T__43 - { - mT__43(); - - } - break; - case 32 : - // InternalEntities.g:1:196: T__44 - { - mT__44(); - - } - break; - case 33 : - // InternalEntities.g:1:202: T__45 - { - mT__45(); - - } - break; - case 34 : - // InternalEntities.g:1:208: T__46 - { - mT__46(); - - } - break; - case 35 : - // InternalEntities.g:1:214: T__47 - { - mT__47(); - - } - break; - case 36 : - // InternalEntities.g:1:220: T__48 - { - mT__48(); - - } - break; - case 37 : - // InternalEntities.g:1:226: T__49 - { - mT__49(); - - } - break; - case 38 : - // InternalEntities.g:1:232: T__50 - { - mT__50(); - - } - break; - case 39 : - // InternalEntities.g:1:238: T__51 - { - mT__51(); - - } - break; - case 40 : - // InternalEntities.g:1:244: T__52 - { - mT__52(); - - } - break; - case 41 : - // InternalEntities.g:1:250: T__53 - { - mT__53(); - - } - break; - case 42 : - // InternalEntities.g:1:256: T__54 - { - mT__54(); - - } - break; - case 43 : - // InternalEntities.g:1:262: T__55 - { - mT__55(); - - } - break; - case 44 : - // InternalEntities.g:1:268: T__56 - { - mT__56(); - - } - break; - case 45 : - // InternalEntities.g:1:274: T__57 - { - mT__57(); - - } - break; - case 46 : - // InternalEntities.g:1:280: T__58 - { - mT__58(); - - } - break; - case 47 : - // InternalEntities.g:1:286: T__59 - { - mT__59(); - - } - break; - case 48 : - // InternalEntities.g:1:292: T__60 - { - mT__60(); - - } - break; - case 49 : - // InternalEntities.g:1:298: T__61 - { - mT__61(); - - } - break; - case 50 : - // InternalEntities.g:1:304: T__62 - { - mT__62(); - - } - break; - case 51 : - // InternalEntities.g:1:310: T__63 - { - mT__63(); - - } - break; - case 52 : - // InternalEntities.g:1:316: T__64 - { - mT__64(); - - } - break; - case 53 : - // InternalEntities.g:1:322: T__65 - { - mT__65(); - - } - break; - case 54 : - // InternalEntities.g:1:328: T__66 - { - mT__66(); - - } - break; - case 55 : - // InternalEntities.g:1:334: T__67 - { - mT__67(); - - } - break; - case 56 : - // InternalEntities.g:1:340: T__68 - { - mT__68(); - - } - break; - case 57 : - // InternalEntities.g:1:346: T__69 - { - mT__69(); - - } - break; - case 58 : - // InternalEntities.g:1:352: T__70 - { - mT__70(); - - } - break; - case 59 : - // InternalEntities.g:1:358: T__71 - { - mT__71(); - - } - break; - case 60 : - // InternalEntities.g:1:364: T__72 - { - mT__72(); - - } - break; - case 61 : - // InternalEntities.g:1:370: T__73 - { - mT__73(); - - } - break; - case 62 : - // InternalEntities.g:1:376: T__74 - { - mT__74(); - - } - break; - case 63 : - // InternalEntities.g:1:382: T__75 - { - mT__75(); - - } - break; - case 64 : - // InternalEntities.g:1:388: T__76 - { - mT__76(); - - } - break; - case 65 : - // InternalEntities.g:1:394: T__77 - { - mT__77(); - - } - break; - case 66 : - // InternalEntities.g:1:400: T__78 - { - mT__78(); - - } - break; - case 67 : - // InternalEntities.g:1:406: T__79 - { - mT__79(); - - } - break; - case 68 : - // InternalEntities.g:1:412: T__80 - { - mT__80(); - - } - break; - case 69 : - // InternalEntities.g:1:418: T__81 - { - mT__81(); - - } - break; - case 70 : - // InternalEntities.g:1:424: T__82 - { - mT__82(); - - } - break; - case 71 : - // InternalEntities.g:1:430: T__83 - { - mT__83(); - - } - break; - case 72 : - // InternalEntities.g:1:436: T__84 - { - mT__84(); - - } - break; - case 73 : - // InternalEntities.g:1:442: T__85 - { - mT__85(); - - } - break; - case 74 : - // InternalEntities.g:1:448: T__86 - { - mT__86(); - - } - break; - case 75 : - // InternalEntities.g:1:454: T__87 - { - mT__87(); - - } - break; - case 76 : - // InternalEntities.g:1:460: T__88 - { - mT__88(); - - } - break; - case 77 : - // InternalEntities.g:1:466: T__89 - { - mT__89(); - - } - break; - case 78 : - // InternalEntities.g:1:472: RULE_HEX - { - mRULE_HEX(); - - } - break; - case 79 : - // InternalEntities.g:1:481: RULE_INT - { - mRULE_INT(); - - } - break; - case 80 : - // InternalEntities.g:1:490: RULE_DECIMAL - { - mRULE_DECIMAL(); - - } - break; - case 81 : - // InternalEntities.g:1:503: RULE_ID - { - mRULE_ID(); - - } - break; - case 82 : - // InternalEntities.g:1:511: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 83 : - // InternalEntities.g:1:523: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 84 : - // InternalEntities.g:1:539: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 85 : - // InternalEntities.g:1:555: RULE_WS - { - mRULE_WS(); - - } - break; - case 86 : - // InternalEntities.g:1:563: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA21 dfa21 = new DFA21(this); - static final String DFA21_eotS = - "\1\uffff\1\57\2\uffff\1\57\1\66\1\57\3\uffff\1\75\1\100\1\104\1\107\1\113\1\115\1\117\1\121\1\123\1\125\1\127\1\57\1\134\1\137\1\57\4\uffff\11\57\2\171\1\55\5\uffff\1\57\3\uffff\3\57\2\uffff\1\u0081\3\uffff\1\u0083\32\uffff\1\u0085\1\uffff\1\57\1\u0087\1\57\1\u008a\4\uffff\1\u008b\4\uffff\5\57\1\u0091\14\57\1\uffff\1\171\4\uffff\4\57\5\uffff\1\57\1\uffff\1\57\3\uffff\5\57\1\uffff\2\57\1\u00ae\3\57\1\u00b2\1\u00b3\1\u00b4\2\57\1\u00b7\6\57\1\u00be\7\57\1\u00c6\1\57\1\uffff\3\57\3\uffff\1\u00cb\1\u00cc\1\uffff\6\57\1\uffff\4\57\1\u00d8\2\57\1\uffff\1\u00db\1\u00dc\1\57\1\u00de\2\uffff\1\57\1\u00e0\2\57\1\u00e3\3\57\1\u00e7\1\u00e8\1\u00e9\1\uffff\2\57\2\uffff\1\57\1\uffff\1\u00ed\1\uffff\1\u00ee\1\u00ef\1\uffff\1\u00f0\2\57\3\uffff\1\57\1\u00f4\1\u00f5\4\uffff\3\57\2\uffff\1\u00f9\2\57\1\uffff\1\u00fc\1\57\1\uffff\1\57\1\u00ff\1\uffff"; - static final String DFA21_eofS = - "\u0100\uffff"; - static final String DFA21_minS = - "\1\0\1\141\2\uffff\1\154\1\72\1\160\3\uffff\1\75\1\53\1\55\2\52\1\75\1\76\1\75\1\174\1\46\1\75\1\146\2\56\1\163\4\uffff\1\164\1\145\2\141\1\150\1\141\1\145\1\150\1\145\2\60\1\44\5\uffff\1\143\3\uffff\2\164\1\163\2\uffff\1\44\3\uffff\1\75\32\uffff\1\75\1\uffff\1\163\1\44\1\160\1\74\4\uffff\1\44\4\uffff\1\151\1\141\1\160\1\156\1\146\1\44\1\163\1\162\1\154\1\156\1\151\1\154\1\167\1\154\1\165\1\160\1\162\1\164\1\uffff\1\60\4\uffff\1\153\1\151\2\145\5\uffff\1\164\1\uffff\1\157\3\uffff\2\164\1\145\1\143\1\141\1\uffff\1\145\1\143\1\44\1\163\1\141\1\154\3\44\1\154\1\145\1\44\1\145\1\157\1\165\1\141\1\164\1\156\1\44\1\141\1\162\1\143\1\151\1\162\1\150\1\165\1\44\1\150\1\uffff\1\145\1\154\1\145\3\uffff\2\44\1\uffff\1\157\1\167\1\162\1\147\1\171\1\144\1\uffff\1\156\1\164\1\150\1\143\1\44\1\162\1\154\1\uffff\2\44\1\154\1\44\2\uffff\1\146\1\44\1\156\1\145\1\44\1\163\1\151\1\143\3\44\1\uffff\1\157\1\164\2\uffff\1\171\1\uffff\1\44\1\uffff\2\44\1\uffff\1\44\1\157\1\145\3\uffff\1\156\2\44\4\uffff\1\156\1\157\1\151\2\uffff\1\44\1\146\1\172\1\uffff\1\44\1\145\1\uffff\1\144\1\44\1\uffff"; - static final String DFA21_maxS = - "\1\uffff\1\141\2\uffff\1\170\1\72\1\160\3\uffff\1\76\1\75\1\76\3\75\1\76\1\75\1\174\1\46\1\75\1\156\1\56\1\72\1\163\4\uffff\1\171\1\157\1\141\1\157\1\150\1\141\1\165\1\171\1\145\1\170\1\154\1\172\5\uffff\1\143\3\uffff\2\164\1\163\2\uffff\1\172\3\uffff\1\75\32\uffff\1\75\1\uffff\1\163\1\172\1\160\1\74\4\uffff\1\172\4\uffff\1\151\1\141\1\160\1\156\1\146\1\172\1\164\1\162\1\154\1\156\1\151\1\162\1\167\1\154\1\171\1\160\1\162\1\164\1\uffff\1\154\4\uffff\1\153\1\151\2\145\5\uffff\1\164\1\uffff\1\157\3\uffff\2\164\1\145\1\143\1\141\1\uffff\1\145\1\143\1\172\1\163\1\141\1\154\3\172\1\154\1\145\1\172\1\145\1\157\1\165\1\141\1\164\1\156\1\172\1\141\1\162\1\143\1\151\1\162\1\150\1\165\1\172\1\150\1\uffff\1\145\1\154\1\145\3\uffff\2\172\1\uffff\1\157\1\167\1\162\1\147\1\171\1\163\1\uffff\1\156\1\164\1\150\1\143\1\172\1\162\1\154\1\uffff\2\172\1\154\1\172\2\uffff\1\146\1\172\1\156\1\145\1\172\1\163\1\151\1\143\3\172\1\uffff\1\157\1\164\2\uffff\1\171\1\uffff\1\172\1\uffff\2\172\1\uffff\1\172\1\157\1\145\3\uffff\1\156\2\172\4\uffff\1\156\1\157\1\151\2\uffff\1\172\1\146\1\172\1\uffff\1\172\1\145\1\uffff\1\144\1\172\1\uffff"; - static final String DFA21_acceptS = - "\2\uffff\1\2\1\3\3\uffff\1\10\1\11\1\12\17\uffff\1\56\1\57\1\60\1\62\14\uffff\1\121\2\122\1\125\1\126\1\uffff\1\121\1\2\1\3\3\uffff\1\54\1\6\1\uffff\1\10\1\11\1\12\1\uffff\1\36\1\13\1\14\1\51\1\41\1\15\1\33\1\52\1\42\1\16\1\44\1\43\1\17\1\123\1\124\1\45\1\20\1\46\1\37\1\21\1\23\1\22\1\24\1\61\1\25\1\115\1\uffff\1\47\4\uffff\1\53\1\40\1\55\1\114\1\uffff\1\56\1\57\1\60\1\62\22\uffff\1\116\1\uffff\1\117\1\120\1\122\1\125\4\uffff\1\7\1\30\1\26\1\31\1\27\1\uffff\1\63\1\uffff\1\34\1\35\1\50\5\uffff\1\72\34\uffff\1\70\3\uffff\1\73\1\74\1\101\2\uffff\1\110\6\uffff\1\64\7\uffff\1\67\4\uffff\1\104\1\103\13\uffff\1\100\2\uffff\1\113\1\102\1\uffff\1\71\1\uffff\1\106\2\uffff\1\4\3\uffff\1\76\1\65\1\75\3\uffff\1\105\1\107\1\1\1\5\3\uffff\1\66\1\111\3\uffff\1\77\2\uffff\1\32\2\uffff\1\112"; - static final String DFA21_specialS = - "\1\0\u00ff\uffff}>"; - static final String[] DFA21_transitionS = { - "\11\55\2\54\2\55\1\54\22\55\1\54\1\24\1\52\1\31\1\51\1\17\1\23\1\53\1\7\1\11\1\15\1\13\1\10\1\14\1\26\1\16\1\46\11\47\1\5\1\34\1\20\1\12\1\21\1\27\1\55\32\51\1\32\1\55\1\33\1\50\1\51\1\55\1\30\1\51\1\37\1\36\1\4\1\40\2\51\1\25\4\51\1\43\1\6\1\1\1\51\1\45\1\35\1\44\1\51\1\42\1\41\3\51\1\2\1\22\1\3\uff82\55", - "\1\56", - "", - "", - "\1\64\1\uffff\1\62\11\uffff\1\63", - "\1\65", - "\1\67", - "", - "", - "", - "\1\73\1\74", - "\1\77\21\uffff\1\76", - "\1\103\17\uffff\1\101\1\102", - "\1\106\22\uffff\1\105", - "\1\111\4\uffff\1\112\15\uffff\1\110", - "\1\114", - "\1\116", - "\1\120", - "\1\122", - "\1\124", - "\1\126", - "\1\131\6\uffff\1\132\1\130", - "\1\133", - "\1\136\13\uffff\1\135", - "\1\140", - "", - "", - "", - "", - "\1\146\1\147\1\uffff\1\145\1\uffff\1\150", - "\1\151\11\uffff\1\152", - "\1\153", - "\1\155\7\uffff\1\156\5\uffff\1\154", - "\1\157", - "\1\160", - "\1\161\17\uffff\1\162", - "\1\165\11\uffff\1\163\6\uffff\1\164", - "\1\166", - "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\13\uffff\1\167\6\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172\13\uffff\1\167", - "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\22\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172", - "\1\57\34\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "", - "", - "", - "", - "\1\175", - "", - "", - "", - "\1\176", - "\1\177", - "\1\u0080", - "", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "", - "", - "\1\u0082", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\u0084", - "", - "\1\u0086", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u0088", - "\1\u0089", - "", - "", - "", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "", - "", - "", - "\1\u008c", - "\1\u008d", - "\1\u008e", - "\1\u008f", - "\1\u0090", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u0092\1\u0093", - "\1\u0094", - "\1\u0095", - "\1\u0096", - "\1\u0097", - "\1\u0099\5\uffff\1\u0098", - "\1\u009a", - "\1\u009b", - "\1\u009c\3\uffff\1\u009d", - "\1\u009e", - "\1\u009f", - "\1\u00a0", - "", - "\12\170\10\uffff\1\172\1\uffff\3\172\5\uffff\1\172\22\uffff\1\170\2\uffff\1\172\1\uffff\3\172\5\uffff\1\172", - "", - "", - "", - "", - "\1\u00a1", - "\1\u00a2", - "\1\u00a3", - "\1\u00a4", - "", - "", - "", - "", - "", - "\1\u00a5", - "", - "\1\u00a6", - "", - "", - "", - "\1\u00a7", - "\1\u00a8", - "\1\u00a9", - "\1\u00aa", - "\1\u00ab", - "", - "\1\u00ac", - "\1\u00ad", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00af", - "\1\u00b0", - "\1\u00b1", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00b5", - "\1\u00b6", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00b8", - "\1\u00b9", - "\1\u00ba", - "\1\u00bb", - "\1\u00bc", - "\1\u00bd", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00bf", - "\1\u00c0", - "\1\u00c1", - "\1\u00c2", - "\1\u00c3", - "\1\u00c4", - "\1\u00c5", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00c7", - "", - "\1\u00c8", - "\1\u00c9", - "\1\u00ca", - "", - "", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "\1\u00cd", - "\1\u00ce", - "\1\u00cf", - "\1\u00d0", - "\1\u00d1", - "\1\u00d2\16\uffff\1\u00d3", - "", - "\1\u00d4", - "\1\u00d5", - "\1\u00d6", - "\1\u00d7", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00d9", - "\1\u00da", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00dd", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "", - "\1\u00df", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00e1", - "\1\u00e2", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00e4", - "\1\u00e5", - "\1\u00e6", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "\1\u00ea", - "\1\u00eb", - "", - "", - "\1\u00ec", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00f1", - "\1\u00f2", - "", - "", - "", - "\1\u00f3", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "", - "", - "", - "", - "\1\u00f6", - "\1\u00f7", - "\1\u00f8", - "", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00fa", - "\1\u00fb", - "", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "\1\u00fd", - "", - "\1\u00fe", - "\1\57\13\uffff\12\57\7\uffff\32\57\4\uffff\1\57\1\uffff\32\57", - "" - }; - - static final short[] DFA21_eot = DFA.unpackEncodedString(DFA21_eotS); - static final short[] DFA21_eof = DFA.unpackEncodedString(DFA21_eofS); - static final char[] DFA21_min = DFA.unpackEncodedStringToUnsignedChars(DFA21_minS); - static final char[] DFA21_max = DFA.unpackEncodedStringToUnsignedChars(DFA21_maxS); - static final short[] DFA21_accept = DFA.unpackEncodedString(DFA21_acceptS); - static final short[] DFA21_special = DFA.unpackEncodedString(DFA21_specialS); - static final short[][] DFA21_transition; - - static { - int numStates = DFA21_transitionS.length; - DFA21_transition = new short[numStates][]; - for (int i=0; i') ) {s = 17;} - - else if ( (LA21_0=='|') ) {s = 18;} - - else if ( (LA21_0=='&') ) {s = 19;} - - else if ( (LA21_0=='!') ) {s = 20;} - - else if ( (LA21_0=='i') ) {s = 21;} - - else if ( (LA21_0=='.') ) {s = 22;} - - else if ( (LA21_0=='?') ) {s = 23;} - - else if ( (LA21_0=='a') ) {s = 24;} - - else if ( (LA21_0=='#') ) {s = 25;} - - else if ( (LA21_0=='[') ) {s = 26;} - - else if ( (LA21_0==']') ) {s = 27;} - - else if ( (LA21_0==';') ) {s = 28;} - - else if ( (LA21_0=='s') ) {s = 29;} - - else if ( (LA21_0=='d') ) {s = 30;} - - else if ( (LA21_0=='c') ) {s = 31;} - - else if ( (LA21_0=='f') ) {s = 32;} - - else if ( (LA21_0=='w') ) {s = 33;} - - else if ( (LA21_0=='v') ) {s = 34;} - - else if ( (LA21_0=='n') ) {s = 35;} - - else if ( (LA21_0=='t') ) {s = 36;} - - else if ( (LA21_0=='r') ) {s = 37;} - - else if ( (LA21_0=='0') ) {s = 38;} - - else if ( ((LA21_0>='1' && LA21_0<='9')) ) {s = 39;} - - else if ( (LA21_0=='^') ) {s = 40;} - - else if ( (LA21_0=='$'||(LA21_0>='A' && LA21_0<='Z')||LA21_0=='_'||LA21_0=='b'||(LA21_0>='g' && LA21_0<='h')||(LA21_0>='j' && LA21_0<='m')||LA21_0=='q'||LA21_0=='u'||(LA21_0>='x' && LA21_0<='z')) ) {s = 41;} - - else if ( (LA21_0=='\"') ) {s = 42;} - - else if ( (LA21_0=='\'') ) {s = 43;} - - else if ( ((LA21_0>='\t' && LA21_0<='\n')||LA21_0=='\r'||LA21_0==' ') ) {s = 44;} - - else if ( ((LA21_0>='\u0000' && LA21_0<='\b')||(LA21_0>='\u000B' && LA21_0<='\f')||(LA21_0>='\u000E' && LA21_0<='\u001F')||LA21_0=='@'||LA21_0=='\\'||LA21_0=='`'||(LA21_0>='~' && LA21_0<='\uFFFF')) ) {s = 45;} - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 21, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesParser.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesParser.java deleted file mode 100644 index 53875f6490f..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/parser/antlr/internal/InternalEntitiesParser.java +++ /dev/null @@ -1,23931 +0,0 @@ -package org.eclipse.xtext.web.example.entities.parser.antlr.internal; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; -import java.util.Map; -import java.util.HashMap; -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -@SuppressWarnings("all") -public class InternalEntitiesParser extends AbstractInternalAntlrParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_STRING", "RULE_HEX", "RULE_INT", "RULE_DECIMAL", "RULE_ID", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'package'", "'{'", "'}'", "'entity'", "'extends'", "':'", "'op'", "'('", "','", "')'", "'='", "'+='", "'-='", "'*='", "'/='", "'%='", "'<'", "'>'", "'>='", "'||'", "'&&'", "'=='", "'!='", "'==='", "'!=='", "'instanceof'", "'->'", "'..<'", "'..'", "'=>'", "'<>'", "'?:'", "'+'", "'-'", "'*'", "'**'", "'/'", "'%'", "'!'", "'as'", "'++'", "'--'", "'.'", "'::'", "'?.'", "'#'", "'['", "']'", "'|'", "';'", "'if'", "'else'", "'switch'", "'default'", "'case'", "'for'", "'while'", "'do'", "'var'", "'val'", "'static'", "'import'", "'extension'", "'super'", "'new'", "'false'", "'true'", "'null'", "'typeof'", "'throw'", "'return'", "'try'", "'finally'", "'synchronized'", "'catch'", "'?'", "'&'" - }; - public static final int RULE_HEX=5; - public static final int T__50=50; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__59=59; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__55=55; - public static final int T__56=56; - public static final int T__13=13; - public static final int T__57=57; - public static final int T__14=14; - public static final int T__58=58; - public static final int T__51=51; - public static final int T__52=52; - public static final int T__53=53; - public static final int T__54=54; - public static final int T__60=60; - public static final int T__61=61; - public static final int RULE_ID=8; - public static final int RULE_DECIMAL=7; - public static final int T__26=26; - public static final int T__27=27; - public static final int T__28=28; - public static final int RULE_INT=6; - public static final int T__29=29; - public static final int T__22=22; - public static final int T__66=66; - public static final int RULE_ML_COMMENT=9; - public static final int T__23=23; - public static final int T__67=67; - public static final int T__24=24; - public static final int T__68=68; - public static final int T__25=25; - public static final int T__69=69; - public static final int T__62=62; - public static final int T__63=63; - public static final int T__20=20; - public static final int T__64=64; - public static final int T__21=21; - public static final int T__65=65; - public static final int T__70=70; - public static final int T__71=71; - public static final int T__72=72; - public static final int RULE_STRING=4; - public static final int RULE_SL_COMMENT=10; - public static final int T__37=37; - public static final int T__38=38; - public static final int T__39=39; - public static final int T__33=33; - public static final int T__77=77; - public static final int T__34=34; - public static final int T__78=78; - public static final int T__35=35; - public static final int T__79=79; - public static final int T__36=36; - public static final int T__73=73; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__74=74; - public static final int T__31=31; - public static final int T__75=75; - public static final int T__32=32; - public static final int T__76=76; - public static final int T__80=80; - public static final int T__81=81; - public static final int T__82=82; - public static final int T__83=83; - public static final int RULE_WS=11; - public static final int RULE_ANY_OTHER=12; - public static final int T__48=48; - public static final int T__49=49; - public static final int T__44=44; - public static final int T__88=88; - public static final int T__45=45; - public static final int T__89=89; - public static final int T__46=46; - public static final int T__47=47; - public static final int T__40=40; - public static final int T__84=84; - public static final int T__41=41; - public static final int T__85=85; - public static final int T__42=42; - public static final int T__86=86; - public static final int T__43=43; - public static final int T__87=87; - - // delegates - // delegators - - - public InternalEntitiesParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalEntitiesParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalEntitiesParser.tokenNames; } - public String getGrammarFileName() { return "InternalEntities.g"; } - - - - private EntitiesGrammarAccess grammarAccess; - - public InternalEntitiesParser(TokenStream input, EntitiesGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "Entities"; - } - - @Override - protected EntitiesGrammarAccess getGrammarAccess() { - return grammarAccess; - } - - - - - // $ANTLR start "entryRuleEntities" - // InternalEntities.g:69:1: entryRuleEntities returns [EObject current=null] : iv_ruleEntities= ruleEntities EOF ; - public final EObject entryRuleEntities() throws RecognitionException { - EObject current = null; - - EObject iv_ruleEntities = null; - - - try { - // InternalEntities.g:69:49: (iv_ruleEntities= ruleEntities EOF ) - // InternalEntities.g:70:2: iv_ruleEntities= ruleEntities EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getEntitiesRule()); - } - pushFollow(FOLLOW_1); - iv_ruleEntities=ruleEntities(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleEntities; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleEntities" - - - // $ANTLR start "ruleEntities" - // InternalEntities.g:76:1: ruleEntities returns [EObject current=null] : ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_elements_1_0= ruleAbstractElement ) )* ) ; - public final EObject ruleEntities() throws RecognitionException { - EObject current = null; - - EObject lv_importSection_0_0 = null; - - EObject lv_elements_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:82:2: ( ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_elements_1_0= ruleAbstractElement ) )* ) ) - // InternalEntities.g:83:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_elements_1_0= ruleAbstractElement ) )* ) - { - // InternalEntities.g:83:2: ( ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_elements_1_0= ruleAbstractElement ) )* ) - // InternalEntities.g:84:3: ( (lv_importSection_0_0= ruleXImportSection ) )? ( (lv_elements_1_0= ruleAbstractElement ) )* - { - // InternalEntities.g:84:3: ( (lv_importSection_0_0= ruleXImportSection ) )? - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0==74) ) { - alt1=1; - } - switch (alt1) { - case 1 : - // InternalEntities.g:85:4: (lv_importSection_0_0= ruleXImportSection ) - { - // InternalEntities.g:85:4: (lv_importSection_0_0= ruleXImportSection ) - // InternalEntities.g:86:5: lv_importSection_0_0= ruleXImportSection - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getEntitiesAccess().getImportSectionXImportSectionParserRuleCall_0_0()); - - } - pushFollow(FOLLOW_3); - lv_importSection_0_0=ruleXImportSection(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEntitiesRule()); - } - set( - current, - "importSection", - lv_importSection_0_0, - "org.eclipse.xtext.xbase.Xtype.XImportSection"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - // InternalEntities.g:103:3: ( (lv_elements_1_0= ruleAbstractElement ) )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0==13||LA2_0==16) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalEntities.g:104:4: (lv_elements_1_0= ruleAbstractElement ) - { - // InternalEntities.g:104:4: (lv_elements_1_0= ruleAbstractElement ) - // InternalEntities.g:105:5: lv_elements_1_0= ruleAbstractElement - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getEntitiesAccess().getElementsAbstractElementParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_3); - lv_elements_1_0=ruleAbstractElement(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEntitiesRule()); - } - add( - current, - "elements", - lv_elements_1_0, - "org.eclipse.xtext.web.example.entities.Entities.AbstractElement"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop2; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleEntities" - - - // $ANTLR start "entryRuleAbstractElement" - // InternalEntities.g:126:1: entryRuleAbstractElement returns [EObject current=null] : iv_ruleAbstractElement= ruleAbstractElement EOF ; - public final EObject entryRuleAbstractElement() throws RecognitionException { - EObject current = null; - - EObject iv_ruleAbstractElement = null; - - - try { - // InternalEntities.g:126:56: (iv_ruleAbstractElement= ruleAbstractElement EOF ) - // InternalEntities.g:127:2: iv_ruleAbstractElement= ruleAbstractElement EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getAbstractElementRule()); - } - pushFollow(FOLLOW_1); - iv_ruleAbstractElement=ruleAbstractElement(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleAbstractElement; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleAbstractElement" - - - // $ANTLR start "ruleAbstractElement" - // InternalEntities.g:133:1: ruleAbstractElement returns [EObject current=null] : (this_PackageDeclaration_0= rulePackageDeclaration | this_Entity_1= ruleEntity ) ; - public final EObject ruleAbstractElement() throws RecognitionException { - EObject current = null; - - EObject this_PackageDeclaration_0 = null; - - EObject this_Entity_1 = null; - - - - enterRule(); - - try { - // InternalEntities.g:139:2: ( (this_PackageDeclaration_0= rulePackageDeclaration | this_Entity_1= ruleEntity ) ) - // InternalEntities.g:140:2: (this_PackageDeclaration_0= rulePackageDeclaration | this_Entity_1= ruleEntity ) - { - // InternalEntities.g:140:2: (this_PackageDeclaration_0= rulePackageDeclaration | this_Entity_1= ruleEntity ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0==13) ) { - alt3=1; - } - else if ( (LA3_0==16) ) { - alt3=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // InternalEntities.g:141:3: this_PackageDeclaration_0= rulePackageDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getAbstractElementAccess().getPackageDeclarationParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_PackageDeclaration_0=rulePackageDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_PackageDeclaration_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:150:3: this_Entity_1= ruleEntity - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_Entity_1=ruleEntity(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_Entity_1; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleAbstractElement" - - - // $ANTLR start "entryRulePackageDeclaration" - // InternalEntities.g:162:1: entryRulePackageDeclaration returns [EObject current=null] : iv_rulePackageDeclaration= rulePackageDeclaration EOF ; - public final EObject entryRulePackageDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_rulePackageDeclaration = null; - - - try { - // InternalEntities.g:162:59: (iv_rulePackageDeclaration= rulePackageDeclaration EOF ) - // InternalEntities.g:163:2: iv_rulePackageDeclaration= rulePackageDeclaration EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getPackageDeclarationRule()); - } - pushFollow(FOLLOW_1); - iv_rulePackageDeclaration=rulePackageDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_rulePackageDeclaration; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRulePackageDeclaration" - - - // $ANTLR start "rulePackageDeclaration" - // InternalEntities.g:169:1: rulePackageDeclaration returns [EObject current=null] : (otherlv_0= 'package' ( (lv_name_1_0= ruleQualifiedName ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleAbstractElement ) )* otherlv_4= '}' ) ; - public final EObject rulePackageDeclaration() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - AntlrDatatypeRuleToken lv_name_1_0 = null; - - EObject lv_elements_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:175:2: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleQualifiedName ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleAbstractElement ) )* otherlv_4= '}' ) ) - // InternalEntities.g:176:2: (otherlv_0= 'package' ( (lv_name_1_0= ruleQualifiedName ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleAbstractElement ) )* otherlv_4= '}' ) - { - // InternalEntities.g:176:2: (otherlv_0= 'package' ( (lv_name_1_0= ruleQualifiedName ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleAbstractElement ) )* otherlv_4= '}' ) - // InternalEntities.g:177:3: otherlv_0= 'package' ( (lv_name_1_0= ruleQualifiedName ) ) otherlv_2= '{' ( (lv_elements_3_0= ruleAbstractElement ) )* otherlv_4= '}' - { - otherlv_0=(Token)match(input,13,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getPackageDeclarationAccess().getPackageKeyword_0()); - - } - // InternalEntities.g:181:3: ( (lv_name_1_0= ruleQualifiedName ) ) - // InternalEntities.g:182:4: (lv_name_1_0= ruleQualifiedName ) - { - // InternalEntities.g:182:4: (lv_name_1_0= ruleQualifiedName ) - // InternalEntities.g:183:5: lv_name_1_0= ruleQualifiedName - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getPackageDeclarationAccess().getNameQualifiedNameParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_5); - lv_name_1_0=ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPackageDeclarationRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xbase.QualifiedName"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_2=(Token)match(input,14,FOLLOW_6); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getPackageDeclarationAccess().getLeftCurlyBracketKeyword_2()); - - } - // InternalEntities.g:204:3: ( (lv_elements_3_0= ruleAbstractElement ) )* - loop4: - do { - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==13||LA4_0==16) ) { - alt4=1; - } - - - switch (alt4) { - case 1 : - // InternalEntities.g:205:4: (lv_elements_3_0= ruleAbstractElement ) - { - // InternalEntities.g:205:4: (lv_elements_3_0= ruleAbstractElement ) - // InternalEntities.g:206:5: lv_elements_3_0= ruleAbstractElement - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getPackageDeclarationAccess().getElementsAbstractElementParserRuleCall_3_0()); - - } - pushFollow(FOLLOW_6); - lv_elements_3_0=ruleAbstractElement(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPackageDeclarationRule()); - } - add( - current, - "elements", - lv_elements_3_0, - "org.eclipse.xtext.web.example.entities.Entities.AbstractElement"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop4; - } - } while (true); - - otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getPackageDeclarationAccess().getRightCurlyBracketKeyword_4()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "rulePackageDeclaration" - - - // $ANTLR start "entryRuleEntity" - // InternalEntities.g:231:1: entryRuleEntity returns [EObject current=null] : iv_ruleEntity= ruleEntity EOF ; - public final EObject entryRuleEntity() throws RecognitionException { - EObject current = null; - - EObject iv_ruleEntity = null; - - - try { - // InternalEntities.g:231:47: (iv_ruleEntity= ruleEntity EOF ) - // InternalEntities.g:232:2: iv_ruleEntity= ruleEntity EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getEntityRule()); - } - pushFollow(FOLLOW_1); - iv_ruleEntity=ruleEntity(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleEntity; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleEntity" - - - // $ANTLR start "ruleEntity" - // InternalEntities.g:238:1: ruleEntity returns [EObject current=null] : (otherlv_0= 'entity' ( (lv_name_1_0= ruleValidID ) ) (otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) )? otherlv_4= '{' ( (lv_features_5_0= ruleFeature ) )* otherlv_6= '}' ) ; - public final EObject ruleEntity() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - AntlrDatatypeRuleToken lv_name_1_0 = null; - - EObject lv_superType_3_0 = null; - - EObject lv_features_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:244:2: ( (otherlv_0= 'entity' ( (lv_name_1_0= ruleValidID ) ) (otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) )? otherlv_4= '{' ( (lv_features_5_0= ruleFeature ) )* otherlv_6= '}' ) ) - // InternalEntities.g:245:2: (otherlv_0= 'entity' ( (lv_name_1_0= ruleValidID ) ) (otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) )? otherlv_4= '{' ( (lv_features_5_0= ruleFeature ) )* otherlv_6= '}' ) - { - // InternalEntities.g:245:2: (otherlv_0= 'entity' ( (lv_name_1_0= ruleValidID ) ) (otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) )? otherlv_4= '{' ( (lv_features_5_0= ruleFeature ) )* otherlv_6= '}' ) - // InternalEntities.g:246:3: otherlv_0= 'entity' ( (lv_name_1_0= ruleValidID ) ) (otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) )? otherlv_4= '{' ( (lv_features_5_0= ruleFeature ) )* otherlv_6= '}' - { - otherlv_0=(Token)match(input,16,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getEntityAccess().getEntityKeyword_0()); - - } - // InternalEntities.g:250:3: ( (lv_name_1_0= ruleValidID ) ) - // InternalEntities.g:251:4: (lv_name_1_0= ruleValidID ) - { - // InternalEntities.g:251:4: (lv_name_1_0= ruleValidID ) - // InternalEntities.g:252:5: lv_name_1_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getEntityAccess().getNameValidIDParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_7); - lv_name_1_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEntityRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:269:3: (otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) )? - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0==17) ) { - alt5=1; - } - switch (alt5) { - case 1 : - // InternalEntities.g:270:4: otherlv_2= 'extends' ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) - { - otherlv_2=(Token)match(input,17,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getEntityAccess().getExtendsKeyword_2_0()); - - } - // InternalEntities.g:274:4: ( (lv_superType_3_0= ruleJvmParameterizedTypeReference ) ) - // InternalEntities.g:275:5: (lv_superType_3_0= ruleJvmParameterizedTypeReference ) - { - // InternalEntities.g:275:5: (lv_superType_3_0= ruleJvmParameterizedTypeReference ) - // InternalEntities.g:276:6: lv_superType_3_0= ruleJvmParameterizedTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getEntityAccess().getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0()); - - } - pushFollow(FOLLOW_5); - lv_superType_3_0=ruleJvmParameterizedTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEntityRule()); - } - set( - current, - "superType", - lv_superType_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmParameterizedTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - otherlv_4=(Token)match(input,14,FOLLOW_8); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getEntityAccess().getLeftCurlyBracketKeyword_3()); - - } - // InternalEntities.g:298:3: ( (lv_features_5_0= ruleFeature ) )* - loop6: - do { - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0==RULE_ID||LA6_0==19) ) { - alt6=1; - } - - - switch (alt6) { - case 1 : - // InternalEntities.g:299:4: (lv_features_5_0= ruleFeature ) - { - // InternalEntities.g:299:4: (lv_features_5_0= ruleFeature ) - // InternalEntities.g:300:5: lv_features_5_0= ruleFeature - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getEntityAccess().getFeaturesFeatureParserRuleCall_4_0()); - - } - pushFollow(FOLLOW_8); - lv_features_5_0=ruleFeature(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getEntityRule()); - } - add( - current, - "features", - lv_features_5_0, - "org.eclipse.xtext.web.example.entities.Entities.Feature"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop6; - } - } while (true); - - otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getEntityAccess().getRightCurlyBracketKeyword_5()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleEntity" - - - // $ANTLR start "entryRuleFeature" - // InternalEntities.g:325:1: entryRuleFeature returns [EObject current=null] : iv_ruleFeature= ruleFeature EOF ; - public final EObject entryRuleFeature() throws RecognitionException { - EObject current = null; - - EObject iv_ruleFeature = null; - - - try { - // InternalEntities.g:325:48: (iv_ruleFeature= ruleFeature EOF ) - // InternalEntities.g:326:2: iv_ruleFeature= ruleFeature EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getFeatureRule()); - } - pushFollow(FOLLOW_1); - iv_ruleFeature=ruleFeature(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleFeature; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleFeature" - - - // $ANTLR start "ruleFeature" - // InternalEntities.g:332:1: ruleFeature returns [EObject current=null] : (this_Property_0= ruleProperty | this_Operation_1= ruleOperation ) ; - public final EObject ruleFeature() throws RecognitionException { - EObject current = null; - - EObject this_Property_0 = null; - - EObject this_Operation_1 = null; - - - - enterRule(); - - try { - // InternalEntities.g:338:2: ( (this_Property_0= ruleProperty | this_Operation_1= ruleOperation ) ) - // InternalEntities.g:339:2: (this_Property_0= ruleProperty | this_Operation_1= ruleOperation ) - { - // InternalEntities.g:339:2: (this_Property_0= ruleProperty | this_Operation_1= ruleOperation ) - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0==RULE_ID) ) { - alt7=1; - } - else if ( (LA7_0==19) ) { - alt7=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 7, 0, input); - - throw nvae; - } - switch (alt7) { - case 1 : - // InternalEntities.g:340:3: this_Property_0= ruleProperty - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getFeatureAccess().getPropertyParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_Property_0=ruleProperty(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_Property_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:349:3: this_Operation_1= ruleOperation - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getFeatureAccess().getOperationParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_Operation_1=ruleOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_Operation_1; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleFeature" - - - // $ANTLR start "entryRuleProperty" - // InternalEntities.g:361:1: entryRuleProperty returns [EObject current=null] : iv_ruleProperty= ruleProperty EOF ; - public final EObject entryRuleProperty() throws RecognitionException { - EObject current = null; - - EObject iv_ruleProperty = null; - - - try { - // InternalEntities.g:361:49: (iv_ruleProperty= ruleProperty EOF ) - // InternalEntities.g:362:2: iv_ruleProperty= ruleProperty EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getPropertyRule()); - } - pushFollow(FOLLOW_1); - iv_ruleProperty=ruleProperty(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleProperty; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleProperty" - - - // $ANTLR start "ruleProperty" - // InternalEntities.g:368:1: ruleProperty returns [EObject current=null] : ( ( (lv_name_0_0= ruleValidID ) ) otherlv_1= ':' ( (lv_type_2_0= ruleJvmTypeReference ) ) ) ; - public final EObject ruleProperty() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - AntlrDatatypeRuleToken lv_name_0_0 = null; - - EObject lv_type_2_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:374:2: ( ( ( (lv_name_0_0= ruleValidID ) ) otherlv_1= ':' ( (lv_type_2_0= ruleJvmTypeReference ) ) ) ) - // InternalEntities.g:375:2: ( ( (lv_name_0_0= ruleValidID ) ) otherlv_1= ':' ( (lv_type_2_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:375:2: ( ( (lv_name_0_0= ruleValidID ) ) otherlv_1= ':' ( (lv_type_2_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:376:3: ( (lv_name_0_0= ruleValidID ) ) otherlv_1= ':' ( (lv_type_2_0= ruleJvmTypeReference ) ) - { - // InternalEntities.g:376:3: ( (lv_name_0_0= ruleValidID ) ) - // InternalEntities.g:377:4: (lv_name_0_0= ruleValidID ) - { - // InternalEntities.g:377:4: (lv_name_0_0= ruleValidID ) - // InternalEntities.g:378:5: lv_name_0_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0()); - - } - pushFollow(FOLLOW_9); - lv_name_0_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRule()); - } - set( - current, - "name", - lv_name_0_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_1=(Token)match(input,18,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getPropertyAccess().getColonKeyword_1()); - - } - // InternalEntities.g:399:3: ( (lv_type_2_0= ruleJvmTypeReference ) ) - // InternalEntities.g:400:4: (lv_type_2_0= ruleJvmTypeReference ) - { - // InternalEntities.g:400:4: (lv_type_2_0= ruleJvmTypeReference ) - // InternalEntities.g:401:5: lv_type_2_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_2); - lv_type_2_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getPropertyRule()); - } - set( - current, - "type", - lv_type_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleProperty" - - - // $ANTLR start "entryRuleOperation" - // InternalEntities.g:422:1: entryRuleOperation returns [EObject current=null] : iv_ruleOperation= ruleOperation EOF ; - public final EObject entryRuleOperation() throws RecognitionException { - EObject current = null; - - EObject iv_ruleOperation = null; - - - try { - // InternalEntities.g:422:50: (iv_ruleOperation= ruleOperation EOF ) - // InternalEntities.g:423:2: iv_ruleOperation= ruleOperation EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOperationRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOperation=ruleOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOperation; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOperation" - - - // $ANTLR start "ruleOperation" - // InternalEntities.g:429:1: ruleOperation returns [EObject current=null] : (otherlv_0= 'op' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* )? otherlv_6= ')' (otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) )? ( (lv_body_9_0= ruleXBlockExpression ) ) ) ; - public final EObject ruleOperation() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - Token otherlv_7=null; - AntlrDatatypeRuleToken lv_name_1_0 = null; - - EObject lv_params_3_0 = null; - - EObject lv_params_5_0 = null; - - EObject lv_type_8_0 = null; - - EObject lv_body_9_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:435:2: ( (otherlv_0= 'op' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* )? otherlv_6= ')' (otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) )? ( (lv_body_9_0= ruleXBlockExpression ) ) ) ) - // InternalEntities.g:436:2: (otherlv_0= 'op' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* )? otherlv_6= ')' (otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) )? ( (lv_body_9_0= ruleXBlockExpression ) ) ) - { - // InternalEntities.g:436:2: (otherlv_0= 'op' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* )? otherlv_6= ')' (otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) )? ( (lv_body_9_0= ruleXBlockExpression ) ) ) - // InternalEntities.g:437:3: otherlv_0= 'op' ( (lv_name_1_0= ruleValidID ) ) otherlv_2= '(' ( ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* )? otherlv_6= ')' (otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) )? ( (lv_body_9_0= ruleXBlockExpression ) ) - { - otherlv_0=(Token)match(input,19,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getOperationAccess().getOpKeyword_0()); - - } - // InternalEntities.g:441:3: ( (lv_name_1_0= ruleValidID ) ) - // InternalEntities.g:442:4: (lv_name_1_0= ruleValidID ) - { - // InternalEntities.g:442:4: (lv_name_1_0= ruleValidID ) - // InternalEntities.g:443:5: lv_name_1_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getOperationAccess().getNameValidIDParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_11); - lv_name_1_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getOperationRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_2=(Token)match(input,20,FOLLOW_12); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getOperationAccess().getLeftParenthesisKeyword_2()); - - } - // InternalEntities.g:464:3: ( ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* )? - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0==RULE_ID||LA9_0==20||LA9_0==42) ) { - alt9=1; - } - switch (alt9) { - case 1 : - // InternalEntities.g:465:4: ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* - { - // InternalEntities.g:465:4: ( (lv_params_3_0= ruleFullJvmFormalParameter ) ) - // InternalEntities.g:466:5: (lv_params_3_0= ruleFullJvmFormalParameter ) - { - // InternalEntities.g:466:5: (lv_params_3_0= ruleFullJvmFormalParameter ) - // InternalEntities.g:467:6: lv_params_3_0= ruleFullJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_0_0()); - - } - pushFollow(FOLLOW_13); - lv_params_3_0=ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getOperationRule()); - } - add( - current, - "params", - lv_params_3_0, - "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:484:4: (otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==21) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalEntities.g:485:5: otherlv_4= ',' ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) - { - otherlv_4=(Token)match(input,21,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getOperationAccess().getCommaKeyword_3_1_0()); - - } - // InternalEntities.g:489:5: ( (lv_params_5_0= ruleFullJvmFormalParameter ) ) - // InternalEntities.g:490:6: (lv_params_5_0= ruleFullJvmFormalParameter ) - { - // InternalEntities.g:490:6: (lv_params_5_0= ruleFullJvmFormalParameter ) - // InternalEntities.g:491:7: lv_params_5_0= ruleFullJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getOperationAccess().getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0()); - - } - pushFollow(FOLLOW_13); - lv_params_5_0=ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getOperationRule()); - } - add( - current, - "params", - lv_params_5_0, - "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop8; - } - } while (true); - - - } - break; - - } - - otherlv_6=(Token)match(input,22,FOLLOW_14); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getOperationAccess().getRightParenthesisKeyword_4()); - - } - // InternalEntities.g:514:3: (otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0==18) ) { - alt10=1; - } - switch (alt10) { - case 1 : - // InternalEntities.g:515:4: otherlv_7= ':' ( (lv_type_8_0= ruleJvmTypeReference ) ) - { - otherlv_7=(Token)match(input,18,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_7, grammarAccess.getOperationAccess().getColonKeyword_5_0()); - - } - // InternalEntities.g:519:4: ( (lv_type_8_0= ruleJvmTypeReference ) ) - // InternalEntities.g:520:5: (lv_type_8_0= ruleJvmTypeReference ) - { - // InternalEntities.g:520:5: (lv_type_8_0= ruleJvmTypeReference ) - // InternalEntities.g:521:6: lv_type_8_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getOperationAccess().getTypeJvmTypeReferenceParserRuleCall_5_1_0()); - - } - pushFollow(FOLLOW_14); - lv_type_8_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getOperationRule()); - } - set( - current, - "type", - lv_type_8_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - // InternalEntities.g:539:3: ( (lv_body_9_0= ruleXBlockExpression ) ) - // InternalEntities.g:540:4: (lv_body_9_0= ruleXBlockExpression ) - { - // InternalEntities.g:540:4: (lv_body_9_0= ruleXBlockExpression ) - // InternalEntities.g:541:5: lv_body_9_0= ruleXBlockExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getOperationAccess().getBodyXBlockExpressionParserRuleCall_6_0()); - - } - pushFollow(FOLLOW_2); - lv_body_9_0=ruleXBlockExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getOperationRule()); - } - set( - current, - "body", - lv_body_9_0, - "org.eclipse.xtext.xbase.Xbase.XBlockExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOperation" - - - // $ANTLR start "entryRuleXExpression" - // InternalEntities.g:562:1: entryRuleXExpression returns [EObject current=null] : iv_ruleXExpression= ruleXExpression EOF ; - public final EObject entryRuleXExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXExpression = null; - - - try { - // InternalEntities.g:562:52: (iv_ruleXExpression= ruleXExpression EOF ) - // InternalEntities.g:563:2: iv_ruleXExpression= ruleXExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXExpression=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXExpression" - - - // $ANTLR start "ruleXExpression" - // InternalEntities.g:569:1: ruleXExpression returns [EObject current=null] : this_XAssignment_0= ruleXAssignment ; - public final EObject ruleXExpression() throws RecognitionException { - EObject current = null; - - EObject this_XAssignment_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:575:2: (this_XAssignment_0= ruleXAssignment ) - // InternalEntities.g:576:2: this_XAssignment_0= ruleXAssignment - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXExpressionAccess().getXAssignmentParserRuleCall()); - - } - pushFollow(FOLLOW_2); - this_XAssignment_0=ruleXAssignment(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XAssignment_0; - afterParserOrEnumRuleCall(); - - } - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXExpression" - - - // $ANTLR start "entryRuleXAssignment" - // InternalEntities.g:587:1: entryRuleXAssignment returns [EObject current=null] : iv_ruleXAssignment= ruleXAssignment EOF ; - public final EObject entryRuleXAssignment() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXAssignment = null; - - - try { - // InternalEntities.g:587:52: (iv_ruleXAssignment= ruleXAssignment EOF ) - // InternalEntities.g:588:2: iv_ruleXAssignment= ruleXAssignment EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXAssignmentRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXAssignment=ruleXAssignment(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXAssignment; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXAssignment" - - - // $ANTLR start "ruleXAssignment" - // InternalEntities.g:594:1: ruleXAssignment returns [EObject current=null] : ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ; - public final EObject ruleXAssignment() throws RecognitionException { - EObject current = null; - - EObject lv_value_3_0 = null; - - EObject this_XOrExpression_4 = null; - - EObject lv_rightOperand_7_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:600:2: ( ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) ) - // InternalEntities.g:601:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) - { - // InternalEntities.g:601:2: ( ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) | (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) ) - int alt12=2; - switch ( input.LA(1) ) { - case RULE_ID: - { - int LA12_1 = input.LA(2); - - if ( (LA12_1==23) ) { - alt12=1; - } - else if ( (LA12_1==EOF||(LA12_1>=RULE_STRING && LA12_1<=RULE_ID)||(LA12_1>=14 && LA12_1<=15)||(LA12_1>=17 && LA12_1<=18)||(LA12_1>=20 && LA12_1<=22)||(LA12_1>=24 && LA12_1<=60)||(LA12_1>=62 && LA12_1<=87)) ) { - alt12=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 12, 1, input); - - throw nvae; - } - } - break; - case 17: - { - int LA12_2 = input.LA(2); - - if ( (LA12_2==EOF||(LA12_2>=RULE_STRING && LA12_2<=RULE_ID)||(LA12_2>=14 && LA12_2<=15)||(LA12_2>=17 && LA12_2<=18)||(LA12_2>=20 && LA12_2<=22)||(LA12_2>=24 && LA12_2<=60)||(LA12_2>=62 && LA12_2<=87)) ) { - alt12=2; - } - else if ( (LA12_2==23) ) { - alt12=1; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 12, 2, input); - - throw nvae; - } - } - break; - case 73: - { - int LA12_3 = input.LA(2); - - if ( (LA12_3==EOF||(LA12_3>=RULE_STRING && LA12_3<=RULE_ID)||(LA12_3>=14 && LA12_3<=15)||(LA12_3>=17 && LA12_3<=18)||(LA12_3>=20 && LA12_3<=22)||(LA12_3>=24 && LA12_3<=60)||(LA12_3>=62 && LA12_3<=87)) ) { - alt12=2; - } - else if ( (LA12_3==23) ) { - alt12=1; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 12, 3, input); - - throw nvae; - } - } - break; - case 74: - { - int LA12_4 = input.LA(2); - - if ( (LA12_4==23) ) { - alt12=1; - } - else if ( (LA12_4==EOF||(LA12_4>=RULE_STRING && LA12_4<=RULE_ID)||(LA12_4>=14 && LA12_4<=15)||(LA12_4>=17 && LA12_4<=18)||(LA12_4>=20 && LA12_4<=22)||(LA12_4>=24 && LA12_4<=60)||(LA12_4>=62 && LA12_4<=87)) ) { - alt12=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 12, 4, input); - - throw nvae; - } - } - break; - case 75: - { - int LA12_5 = input.LA(2); - - if ( (LA12_5==EOF||(LA12_5>=RULE_STRING && LA12_5<=RULE_ID)||(LA12_5>=14 && LA12_5<=15)||(LA12_5>=17 && LA12_5<=18)||(LA12_5>=20 && LA12_5<=22)||(LA12_5>=24 && LA12_5<=60)||(LA12_5>=62 && LA12_5<=87)) ) { - alt12=2; - } - else if ( (LA12_5==23) ) { - alt12=1; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 12, 5, input); - - throw nvae; - } - } - break; - case RULE_STRING: - case RULE_HEX: - case RULE_INT: - case RULE_DECIMAL: - case 14: - case 20: - case 29: - case 45: - case 46: - case 51: - case 58: - case 59: - case 63: - case 65: - case 68: - case 69: - case 70: - case 76: - case 77: - case 78: - case 79: - case 80: - case 81: - case 82: - case 83: - case 84: - case 86: - { - alt12=2; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 12, 0, input); - - throw nvae; - } - - switch (alt12) { - case 1 : - // InternalEntities.g:602:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) - { - // InternalEntities.g:602:3: ( () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) ) - // InternalEntities.g:603:4: () ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ( (lv_value_3_0= ruleXAssignment ) ) - { - // InternalEntities.g:603:4: () - // InternalEntities.g:604:5: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXAssignmentAccess().getXAssignmentAction_0_0(), - current); - - } - - } - - // InternalEntities.g:610:4: ( ( ruleFeatureCallID ) ) - // InternalEntities.g:611:5: ( ruleFeatureCallID ) - { - // InternalEntities.g:611:5: ( ruleFeatureCallID ) - // InternalEntities.g:612:6: ruleFeatureCallID - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXAssignmentRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - - } - pushFollow(FOLLOW_15); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAssignmentAccess().getOpSingleAssignParserRuleCall_0_2()); - - } - pushFollow(FOLLOW_16); - ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:633:4: ( (lv_value_3_0= ruleXAssignment ) ) - // InternalEntities.g:634:5: (lv_value_3_0= ruleXAssignment ) - { - // InternalEntities.g:634:5: (lv_value_3_0= ruleXAssignment ) - // InternalEntities.g:635:6: lv_value_3_0= ruleXAssignment - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); - - } - pushFollow(FOLLOW_2); - lv_value_3_0=ruleXAssignment(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXAssignmentRule()); - } - set( - current, - "value", - lv_value_3_0, - "org.eclipse.xtext.xbase.Xbase.XAssignment"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:654:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) - { - // InternalEntities.g:654:3: (this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? ) - // InternalEntities.g:655:4: this_XOrExpression_4= ruleXOrExpression ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAssignmentAccess().getXOrExpressionParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_17); - this_XOrExpression_4=ruleXOrExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XOrExpression_4; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:663:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )? - int alt11=2; - alt11 = dfa11.predict(input); - switch (alt11) { - case 1 : - // InternalEntities.g:664:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) - { - // InternalEntities.g:664:5: ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) - // InternalEntities.g:665:6: ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) - { - // InternalEntities.g:675:6: ( () ( ( ruleOpMultiAssign ) ) ) - // InternalEntities.g:676:7: () ( ( ruleOpMultiAssign ) ) - { - // InternalEntities.g:676:7: () - // InternalEntities.g:677:8: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:683:7: ( ( ruleOpMultiAssign ) ) - // InternalEntities.g:684:8: ( ruleOpMultiAssign ) - { - // InternalEntities.g:684:8: ( ruleOpMultiAssign ) - // InternalEntities.g:685:9: ruleOpMultiAssign - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXAssignmentRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAssignmentAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpMultiAssign(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:701:5: ( (lv_rightOperand_7_0= ruleXAssignment ) ) - // InternalEntities.g:702:6: (lv_rightOperand_7_0= ruleXAssignment ) - { - // InternalEntities.g:702:6: (lv_rightOperand_7_0= ruleXAssignment ) - // InternalEntities.g:703:7: lv_rightOperand_7_0= ruleXAssignment - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAssignmentAccess().getRightOperandXAssignmentParserRuleCall_1_1_1_0()); - - } - pushFollow(FOLLOW_2); - lv_rightOperand_7_0=ruleXAssignment(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXAssignmentRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_7_0, - "org.eclipse.xtext.xbase.Xbase.XAssignment"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXAssignment" - - - // $ANTLR start "entryRuleOpSingleAssign" - // InternalEntities.g:726:1: entryRuleOpSingleAssign returns [String current=null] : iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ; - public final String entryRuleOpSingleAssign() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpSingleAssign = null; - - - try { - // InternalEntities.g:726:54: (iv_ruleOpSingleAssign= ruleOpSingleAssign EOF ) - // InternalEntities.g:727:2: iv_ruleOpSingleAssign= ruleOpSingleAssign EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpSingleAssignRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpSingleAssign=ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpSingleAssign.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpSingleAssign" - - - // $ANTLR start "ruleOpSingleAssign" - // InternalEntities.g:733:1: ruleOpSingleAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '=' ; - public final AntlrDatatypeRuleToken ruleOpSingleAssign() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:739:2: (kw= '=' ) - // InternalEntities.g:740:2: kw= '=' - { - kw=(Token)match(input,23,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); - - } - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpSingleAssign" - - - // $ANTLR start "entryRuleOpMultiAssign" - // InternalEntities.g:748:1: entryRuleOpMultiAssign returns [String current=null] : iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ; - public final String entryRuleOpMultiAssign() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpMultiAssign = null; - - - try { - // InternalEntities.g:748:53: (iv_ruleOpMultiAssign= ruleOpMultiAssign EOF ) - // InternalEntities.g:749:2: iv_ruleOpMultiAssign= ruleOpMultiAssign EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpMultiAssignRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpMultiAssign=ruleOpMultiAssign(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpMultiAssign.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpMultiAssign" - - - // $ANTLR start "ruleOpMultiAssign" - // InternalEntities.g:755:1: ruleOpMultiAssign returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ; - public final AntlrDatatypeRuleToken ruleOpMultiAssign() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:761:2: ( (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) ) - // InternalEntities.g:762:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) - { - // InternalEntities.g:762:2: (kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | (kw= '<' kw= '<' kw= '=' ) | (kw= '>' (kw= '>' )? kw= '>=' ) ) - int alt14=7; - switch ( input.LA(1) ) { - case 24: - { - alt14=1; - } - break; - case 25: - { - alt14=2; - } - break; - case 26: - { - alt14=3; - } - break; - case 27: - { - alt14=4; - } - break; - case 28: - { - alt14=5; - } - break; - case 29: - { - alt14=6; - } - break; - case 30: - { - alt14=7; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 14, 0, input); - - throw nvae; - } - - switch (alt14) { - case 1 : - // InternalEntities.g:763:3: kw= '+=' - { - kw=(Token)match(input,24,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:769:3: kw= '-=' - { - kw=(Token)match(input,25,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:775:3: kw= '*=' - { - kw=(Token)match(input,26,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); - - } - - } - break; - case 4 : - // InternalEntities.g:781:3: kw= '/=' - { - kw=(Token)match(input,27,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); - - } - - } - break; - case 5 : - // InternalEntities.g:787:3: kw= '%=' - { - kw=(Token)match(input,28,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); - - } - - } - break; - case 6 : - // InternalEntities.g:793:3: (kw= '<' kw= '<' kw= '=' ) - { - // InternalEntities.g:793:3: (kw= '<' kw= '<' kw= '=' ) - // InternalEntities.g:794:4: kw= '<' kw= '<' kw= '=' - { - kw=(Token)match(input,29,FOLLOW_18); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_0()); - - } - kw=(Token)match(input,29,FOLLOW_15); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getLessThanSignKeyword_5_1()); - - } - kw=(Token)match(input,23,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getEqualsSignKeyword_5_2()); - - } - - } - - - } - break; - case 7 : - // InternalEntities.g:811:3: (kw= '>' (kw= '>' )? kw= '>=' ) - { - // InternalEntities.g:811:3: (kw= '>' (kw= '>' )? kw= '>=' ) - // InternalEntities.g:812:4: kw= '>' (kw= '>' )? kw= '>=' - { - kw=(Token)match(input,30,FOLLOW_19); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_0()); - - } - // InternalEntities.g:817:4: (kw= '>' )? - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0==30) ) { - alt13=1; - } - switch (alt13) { - case 1 : - // InternalEntities.g:818:5: kw= '>' - { - kw=(Token)match(input,30,FOLLOW_20); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignKeyword_6_1()); - - } - - } - break; - - } - - kw=(Token)match(input,31,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAssignAccess().getGreaterThanSignEqualsSignKeyword_6_2()); - - } - - } - - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpMultiAssign" - - - // $ANTLR start "entryRuleXOrExpression" - // InternalEntities.g:834:1: entryRuleXOrExpression returns [EObject current=null] : iv_ruleXOrExpression= ruleXOrExpression EOF ; - public final EObject entryRuleXOrExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXOrExpression = null; - - - try { - // InternalEntities.g:834:54: (iv_ruleXOrExpression= ruleXOrExpression EOF ) - // InternalEntities.g:835:2: iv_ruleXOrExpression= ruleXOrExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXOrExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXOrExpression=ruleXOrExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXOrExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXOrExpression" - - - // $ANTLR start "ruleXOrExpression" - // InternalEntities.g:841:1: ruleXOrExpression returns [EObject current=null] : (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ; - public final EObject ruleXOrExpression() throws RecognitionException { - EObject current = null; - - EObject this_XAndExpression_0 = null; - - EObject lv_rightOperand_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:847:2: ( (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) ) - // InternalEntities.g:848:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) - { - // InternalEntities.g:848:2: (this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* ) - // InternalEntities.g:849:3: this_XAndExpression_0= ruleXAndExpression ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXOrExpressionAccess().getXAndExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_21); - this_XAndExpression_0=ruleXAndExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XAndExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:857:3: ( ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) )* - loop15: - do { - int alt15=2; - int LA15_0 = input.LA(1); - - if ( (LA15_0==32) ) { - int LA15_2 = input.LA(2); - - if ( (synpred2_InternalEntities()) ) { - alt15=1; - } - - - } - - - switch (alt15) { - case 1 : - // InternalEntities.g:858:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) ( (lv_rightOperand_3_0= ruleXAndExpression ) ) - { - // InternalEntities.g:858:4: ( ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) ) - // InternalEntities.g:859:5: ( ( () ( ( ruleOpOr ) ) ) )=> ( () ( ( ruleOpOr ) ) ) - { - // InternalEntities.g:869:5: ( () ( ( ruleOpOr ) ) ) - // InternalEntities.g:870:6: () ( ( ruleOpOr ) ) - { - // InternalEntities.g:870:6: () - // InternalEntities.g:871:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:877:6: ( ( ruleOpOr ) ) - // InternalEntities.g:878:7: ( ruleOpOr ) - { - // InternalEntities.g:878:7: ( ruleOpOr ) - // InternalEntities.g:879:8: ruleOpOr - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXOrExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXOrExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpOr(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:895:4: ( (lv_rightOperand_3_0= ruleXAndExpression ) ) - // InternalEntities.g:896:5: (lv_rightOperand_3_0= ruleXAndExpression ) - { - // InternalEntities.g:896:5: (lv_rightOperand_3_0= ruleXAndExpression ) - // InternalEntities.g:897:6: lv_rightOperand_3_0= ruleXAndExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXOrExpressionAccess().getRightOperandXAndExpressionParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_21); - lv_rightOperand_3_0=ruleXAndExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXOrExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XAndExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop15; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXOrExpression" - - - // $ANTLR start "entryRuleOpOr" - // InternalEntities.g:919:1: entryRuleOpOr returns [String current=null] : iv_ruleOpOr= ruleOpOr EOF ; - public final String entryRuleOpOr() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpOr = null; - - - try { - // InternalEntities.g:919:44: (iv_ruleOpOr= ruleOpOr EOF ) - // InternalEntities.g:920:2: iv_ruleOpOr= ruleOpOr EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpOrRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpOr=ruleOpOr(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpOr.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpOr" - - - // $ANTLR start "ruleOpOr" - // InternalEntities.g:926:1: ruleOpOr returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '||' ; - public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:932:2: (kw= '||' ) - // InternalEntities.g:933:2: kw= '||' - { - kw=(Token)match(input,32,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); - - } - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpOr" - - - // $ANTLR start "entryRuleXAndExpression" - // InternalEntities.g:941:1: entryRuleXAndExpression returns [EObject current=null] : iv_ruleXAndExpression= ruleXAndExpression EOF ; - public final EObject entryRuleXAndExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXAndExpression = null; - - - try { - // InternalEntities.g:941:55: (iv_ruleXAndExpression= ruleXAndExpression EOF ) - // InternalEntities.g:942:2: iv_ruleXAndExpression= ruleXAndExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXAndExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXAndExpression=ruleXAndExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXAndExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXAndExpression" - - - // $ANTLR start "ruleXAndExpression" - // InternalEntities.g:948:1: ruleXAndExpression returns [EObject current=null] : (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ; - public final EObject ruleXAndExpression() throws RecognitionException { - EObject current = null; - - EObject this_XEqualityExpression_0 = null; - - EObject lv_rightOperand_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:954:2: ( (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) ) - // InternalEntities.g:955:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) - { - // InternalEntities.g:955:2: (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* ) - // InternalEntities.g:956:3: this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAndExpressionAccess().getXEqualityExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_22); - this_XEqualityExpression_0=ruleXEqualityExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XEqualityExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:964:3: ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) )* - loop16: - do { - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0==33) ) { - int LA16_2 = input.LA(2); - - if ( (synpred3_InternalEntities()) ) { - alt16=1; - } - - - } - - - switch (alt16) { - case 1 : - // InternalEntities.g:965:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) - { - // InternalEntities.g:965:4: ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) ) - // InternalEntities.g:966:5: ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( ruleOpAnd ) ) ) - { - // InternalEntities.g:976:5: ( () ( ( ruleOpAnd ) ) ) - // InternalEntities.g:977:6: () ( ( ruleOpAnd ) ) - { - // InternalEntities.g:977:6: () - // InternalEntities.g:978:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:984:6: ( ( ruleOpAnd ) ) - // InternalEntities.g:985:7: ( ruleOpAnd ) - { - // InternalEntities.g:985:7: ( ruleOpAnd ) - // InternalEntities.g:986:8: ruleOpAnd - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXAndExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAndExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpAnd(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:1002:4: ( (lv_rightOperand_3_0= ruleXEqualityExpression ) ) - // InternalEntities.g:1003:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) - { - // InternalEntities.g:1003:5: (lv_rightOperand_3_0= ruleXEqualityExpression ) - // InternalEntities.g:1004:6: lv_rightOperand_3_0= ruleXEqualityExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAndExpressionAccess().getRightOperandXEqualityExpressionParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_22); - lv_rightOperand_3_0=ruleXEqualityExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXAndExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XEqualityExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop16; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXAndExpression" - - - // $ANTLR start "entryRuleOpAnd" - // InternalEntities.g:1026:1: entryRuleOpAnd returns [String current=null] : iv_ruleOpAnd= ruleOpAnd EOF ; - public final String entryRuleOpAnd() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpAnd = null; - - - try { - // InternalEntities.g:1026:45: (iv_ruleOpAnd= ruleOpAnd EOF ) - // InternalEntities.g:1027:2: iv_ruleOpAnd= ruleOpAnd EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpAndRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpAnd=ruleOpAnd(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpAnd.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpAnd" - - - // $ANTLR start "ruleOpAnd" - // InternalEntities.g:1033:1: ruleOpAnd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : kw= '&&' ; - public final AntlrDatatypeRuleToken ruleOpAnd() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1039:2: (kw= '&&' ) - // InternalEntities.g:1040:2: kw= '&&' - { - kw=(Token)match(input,33,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpAndAccess().getAmpersandAmpersandKeyword()); - - } - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpAnd" - - - // $ANTLR start "entryRuleXEqualityExpression" - // InternalEntities.g:1048:1: entryRuleXEqualityExpression returns [EObject current=null] : iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ; - public final EObject entryRuleXEqualityExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXEqualityExpression = null; - - - try { - // InternalEntities.g:1048:60: (iv_ruleXEqualityExpression= ruleXEqualityExpression EOF ) - // InternalEntities.g:1049:2: iv_ruleXEqualityExpression= ruleXEqualityExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXEqualityExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXEqualityExpression=ruleXEqualityExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXEqualityExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXEqualityExpression" - - - // $ANTLR start "ruleXEqualityExpression" - // InternalEntities.g:1055:1: ruleXEqualityExpression returns [EObject current=null] : (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ; - public final EObject ruleXEqualityExpression() throws RecognitionException { - EObject current = null; - - EObject this_XRelationalExpression_0 = null; - - EObject lv_rightOperand_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1061:2: ( (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) ) - // InternalEntities.g:1062:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) - { - // InternalEntities.g:1062:2: (this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* ) - // InternalEntities.g:1063:3: this_XRelationalExpression_0= ruleXRelationalExpression ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getXRelationalExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_23); - this_XRelationalExpression_0=ruleXRelationalExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XRelationalExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:1071:3: ( ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) )* - loop17: - do { - int alt17=2; - switch ( input.LA(1) ) { - case 34: - { - int LA17_2 = input.LA(2); - - if ( (synpred4_InternalEntities()) ) { - alt17=1; - } - - - } - break; - case 35: - { - int LA17_3 = input.LA(2); - - if ( (synpred4_InternalEntities()) ) { - alt17=1; - } - - - } - break; - case 36: - { - int LA17_4 = input.LA(2); - - if ( (synpred4_InternalEntities()) ) { - alt17=1; - } - - - } - break; - case 37: - { - int LA17_5 = input.LA(2); - - if ( (synpred4_InternalEntities()) ) { - alt17=1; - } - - - } - break; - - } - - switch (alt17) { - case 1 : - // InternalEntities.g:1072:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) - { - // InternalEntities.g:1072:4: ( ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) ) - // InternalEntities.g:1073:5: ( ( () ( ( ruleOpEquality ) ) ) )=> ( () ( ( ruleOpEquality ) ) ) - { - // InternalEntities.g:1083:5: ( () ( ( ruleOpEquality ) ) ) - // InternalEntities.g:1084:6: () ( ( ruleOpEquality ) ) - { - // InternalEntities.g:1084:6: () - // InternalEntities.g:1085:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:1091:6: ( ( ruleOpEquality ) ) - // InternalEntities.g:1092:7: ( ruleOpEquality ) - { - // InternalEntities.g:1092:7: ( ruleOpEquality ) - // InternalEntities.g:1093:8: ruleOpEquality - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXEqualityExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpEquality(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:1109:4: ( (lv_rightOperand_3_0= ruleXRelationalExpression ) ) - // InternalEntities.g:1110:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) - { - // InternalEntities.g:1110:5: (lv_rightOperand_3_0= ruleXRelationalExpression ) - // InternalEntities.g:1111:6: lv_rightOperand_3_0= ruleXRelationalExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXEqualityExpressionAccess().getRightOperandXRelationalExpressionParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_23); - lv_rightOperand_3_0=ruleXRelationalExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXEqualityExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XRelationalExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop17; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXEqualityExpression" - - - // $ANTLR start "entryRuleOpEquality" - // InternalEntities.g:1133:1: entryRuleOpEquality returns [String current=null] : iv_ruleOpEquality= ruleOpEquality EOF ; - public final String entryRuleOpEquality() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpEquality = null; - - - try { - // InternalEntities.g:1133:50: (iv_ruleOpEquality= ruleOpEquality EOF ) - // InternalEntities.g:1134:2: iv_ruleOpEquality= ruleOpEquality EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpEqualityRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpEquality=ruleOpEquality(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpEquality.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpEquality" - - - // $ANTLR start "ruleOpEquality" - // InternalEntities.g:1140:1: ruleOpEquality returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ; - public final AntlrDatatypeRuleToken ruleOpEquality() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1146:2: ( (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) ) - // InternalEntities.g:1147:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) - { - // InternalEntities.g:1147:2: (kw= '==' | kw= '!=' | kw= '===' | kw= '!==' ) - int alt18=4; - switch ( input.LA(1) ) { - case 34: - { - alt18=1; - } - break; - case 35: - { - alt18=2; - } - break; - case 36: - { - alt18=3; - } - break; - case 37: - { - alt18=4; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 18, 0, input); - - throw nvae; - } - - switch (alt18) { - case 1 : - // InternalEntities.g:1148:3: kw= '==' - { - kw=(Token)match(input,34,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:1154:3: kw= '!=' - { - kw=(Token)match(input,35,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:1160:3: kw= '===' - { - kw=(Token)match(input,36,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignEqualsSignKeyword_2()); - - } - - } - break; - case 4 : - // InternalEntities.g:1166:3: kw= '!==' - { - kw=(Token)match(input,37,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignEqualsSignKeyword_3()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpEquality" - - - // $ANTLR start "entryRuleXRelationalExpression" - // InternalEntities.g:1175:1: entryRuleXRelationalExpression returns [EObject current=null] : iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ; - public final EObject entryRuleXRelationalExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXRelationalExpression = null; - - - try { - // InternalEntities.g:1175:62: (iv_ruleXRelationalExpression= ruleXRelationalExpression EOF ) - // InternalEntities.g:1176:2: iv_ruleXRelationalExpression= ruleXRelationalExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXRelationalExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXRelationalExpression=ruleXRelationalExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXRelationalExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXRelationalExpression" - - - // $ANTLR start "ruleXRelationalExpression" - // InternalEntities.g:1182:1: ruleXRelationalExpression returns [EObject current=null] : (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ; - public final EObject ruleXRelationalExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - EObject this_XOtherOperatorExpression_0 = null; - - EObject lv_type_3_0 = null; - - EObject lv_rightOperand_6_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1188:2: ( (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) ) - // InternalEntities.g:1189:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) - { - // InternalEntities.g:1189:2: (this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* ) - // InternalEntities.g:1190:3: this_XOtherOperatorExpression_0= ruleXOtherOperatorExpression ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getXOtherOperatorExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_24); - this_XOtherOperatorExpression_0=ruleXOtherOperatorExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XOtherOperatorExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:1198:3: ( ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) | ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) )* - loop19: - do { - int alt19=3; - switch ( input.LA(1) ) { - case 29: - { - int LA19_2 = input.LA(2); - - if ( (synpred6_InternalEntities()) ) { - alt19=2; - } - - - } - break; - case 30: - { - int LA19_3 = input.LA(2); - - if ( (synpred6_InternalEntities()) ) { - alt19=2; - } - - - } - break; - case 38: - { - int LA19_4 = input.LA(2); - - if ( (synpred5_InternalEntities()) ) { - alt19=1; - } - - - } - break; - case 31: - { - int LA19_5 = input.LA(2); - - if ( (synpred6_InternalEntities()) ) { - alt19=2; - } - - - } - break; - - } - - switch (alt19) { - case 1 : - // InternalEntities.g:1199:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:1199:4: ( ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:1200:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) - { - // InternalEntities.g:1200:5: ( ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) ) - // InternalEntities.g:1201:6: ( ( () 'instanceof' ) )=> ( () otherlv_2= 'instanceof' ) - { - // InternalEntities.g:1207:6: ( () otherlv_2= 'instanceof' ) - // InternalEntities.g:1208:7: () otherlv_2= 'instanceof' - { - // InternalEntities.g:1208:7: () - // InternalEntities.g:1209:8: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0(), - current); - - } - - } - - otherlv_2=(Token)match(input,38,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXRelationalExpressionAccess().getInstanceofKeyword_1_0_0_0_1()); - - } - - } - - - } - - // InternalEntities.g:1221:5: ( (lv_type_3_0= ruleJvmTypeReference ) ) - // InternalEntities.g:1222:6: (lv_type_3_0= ruleJvmTypeReference ) - { - // InternalEntities.g:1222:6: (lv_type_3_0= ruleJvmTypeReference ) - // InternalEntities.g:1223:7: lv_type_3_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_0_1_0()); - - } - pushFollow(FOLLOW_24); - lv_type_3_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); - } - set( - current, - "type", - lv_type_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:1242:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) - { - // InternalEntities.g:1242:4: ( ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) ) - // InternalEntities.g:1243:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) - { - // InternalEntities.g:1243:5: ( ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) ) - // InternalEntities.g:1244:6: ( ( () ( ( ruleOpCompare ) ) ) )=> ( () ( ( ruleOpCompare ) ) ) - { - // InternalEntities.g:1254:6: ( () ( ( ruleOpCompare ) ) ) - // InternalEntities.g:1255:7: () ( ( ruleOpCompare ) ) - { - // InternalEntities.g:1255:7: () - // InternalEntities.g:1256:8: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:1262:7: ( ( ruleOpCompare ) ) - // InternalEntities.g:1263:8: ( ruleOpCompare ) - { - // InternalEntities.g:1263:8: ( ruleOpCompare ) - // InternalEntities.g:1264:9: ruleOpCompare - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXRelationalExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpCompare(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:1280:5: ( (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) ) - // InternalEntities.g:1281:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) - { - // InternalEntities.g:1281:6: (lv_rightOperand_6_0= ruleXOtherOperatorExpression ) - // InternalEntities.g:1282:7: lv_rightOperand_6_0= ruleXOtherOperatorExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXRelationalExpressionAccess().getRightOperandXOtherOperatorExpressionParserRuleCall_1_1_1_0()); - - } - pushFollow(FOLLOW_24); - lv_rightOperand_6_0=ruleXOtherOperatorExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXRelationalExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_6_0, - "org.eclipse.xtext.xbase.Xbase.XOtherOperatorExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - - default : - break loop19; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXRelationalExpression" - - - // $ANTLR start "entryRuleOpCompare" - // InternalEntities.g:1305:1: entryRuleOpCompare returns [String current=null] : iv_ruleOpCompare= ruleOpCompare EOF ; - public final String entryRuleOpCompare() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpCompare = null; - - - try { - // InternalEntities.g:1305:49: (iv_ruleOpCompare= ruleOpCompare EOF ) - // InternalEntities.g:1306:2: iv_ruleOpCompare= ruleOpCompare EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpCompareRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpCompare=ruleOpCompare(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpCompare.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpCompare" - - - // $ANTLR start "ruleOpCompare" - // InternalEntities.g:1312:1: ruleOpCompare returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ; - public final AntlrDatatypeRuleToken ruleOpCompare() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1318:2: ( (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) ) - // InternalEntities.g:1319:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) - { - // InternalEntities.g:1319:2: (kw= '>=' | (kw= '<' kw= '=' ) | kw= '>' | kw= '<' ) - int alt20=4; - switch ( input.LA(1) ) { - case 31: - { - alt20=1; - } - break; - case 29: - { - int LA20_2 = input.LA(2); - - if ( (LA20_2==EOF||(LA20_2>=RULE_STRING && LA20_2<=RULE_ID)||LA20_2==14||LA20_2==17||LA20_2==20||LA20_2==29||(LA20_2>=45 && LA20_2<=46)||LA20_2==51||(LA20_2>=58 && LA20_2<=59)||LA20_2==63||LA20_2==65||(LA20_2>=68 && LA20_2<=70)||(LA20_2>=73 && LA20_2<=84)||LA20_2==86) ) { - alt20=4; - } - else if ( (LA20_2==23) ) { - alt20=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 20, 2, input); - - throw nvae; - } - } - break; - case 30: - { - alt20=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 20, 0, input); - - throw nvae; - } - - switch (alt20) { - case 1 : - // InternalEntities.g:1320:3: kw= '>=' - { - kw=(Token)match(input,31,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:1326:3: (kw= '<' kw= '=' ) - { - // InternalEntities.g:1326:3: (kw= '<' kw= '=' ) - // InternalEntities.g:1327:4: kw= '<' kw= '=' - { - kw=(Token)match(input,29,FOLLOW_15); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_1_0()); - - } - kw=(Token)match(input,23,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getEqualsSignKeyword_1_1()); - - } - - } - - - } - break; - case 3 : - // InternalEntities.g:1339:3: kw= '>' - { - kw=(Token)match(input,30,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); - - } - - } - break; - case 4 : - // InternalEntities.g:1345:3: kw= '<' - { - kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpCompare" - - - // $ANTLR start "entryRuleXOtherOperatorExpression" - // InternalEntities.g:1354:1: entryRuleXOtherOperatorExpression returns [EObject current=null] : iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ; - public final EObject entryRuleXOtherOperatorExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXOtherOperatorExpression = null; - - - try { - // InternalEntities.g:1354:65: (iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF ) - // InternalEntities.g:1355:2: iv_ruleXOtherOperatorExpression= ruleXOtherOperatorExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXOtherOperatorExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXOtherOperatorExpression=ruleXOtherOperatorExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXOtherOperatorExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXOtherOperatorExpression" - - - // $ANTLR start "ruleXOtherOperatorExpression" - // InternalEntities.g:1361:1: ruleXOtherOperatorExpression returns [EObject current=null] : (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ; - public final EObject ruleXOtherOperatorExpression() throws RecognitionException { - EObject current = null; - - EObject this_XAdditiveExpression_0 = null; - - EObject lv_rightOperand_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1367:2: ( (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) ) - // InternalEntities.g:1368:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) - { - // InternalEntities.g:1368:2: (this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* ) - // InternalEntities.g:1369:3: this_XAdditiveExpression_0= ruleXAdditiveExpression ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getXAdditiveExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_25); - this_XAdditiveExpression_0=ruleXAdditiveExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XAdditiveExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:1377:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )* - loop21: - do { - int alt21=2; - alt21 = dfa21.predict(input); - switch (alt21) { - case 1 : - // InternalEntities.g:1378:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) - { - // InternalEntities.g:1378:4: ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) - // InternalEntities.g:1379:5: ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) - { - // InternalEntities.g:1389:5: ( () ( ( ruleOpOther ) ) ) - // InternalEntities.g:1390:6: () ( ( ruleOpOther ) ) - { - // InternalEntities.g:1390:6: () - // InternalEntities.g:1391:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:1397:6: ( ( ruleOpOther ) ) - // InternalEntities.g:1398:7: ( ruleOpOther ) - { - // InternalEntities.g:1398:7: ( ruleOpOther ) - // InternalEntities.g:1399:8: ruleOpOther - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXOtherOperatorExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpOther(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:1415:4: ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) - // InternalEntities.g:1416:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) - { - // InternalEntities.g:1416:5: (lv_rightOperand_3_0= ruleXAdditiveExpression ) - // InternalEntities.g:1417:6: lv_rightOperand_3_0= ruleXAdditiveExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXOtherOperatorExpressionAccess().getRightOperandXAdditiveExpressionParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_25); - lv_rightOperand_3_0=ruleXAdditiveExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXOtherOperatorExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XAdditiveExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop21; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXOtherOperatorExpression" - - - // $ANTLR start "entryRuleOpOther" - // InternalEntities.g:1439:1: entryRuleOpOther returns [String current=null] : iv_ruleOpOther= ruleOpOther EOF ; - public final String entryRuleOpOther() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpOther = null; - - - try { - // InternalEntities.g:1439:47: (iv_ruleOpOther= ruleOpOther EOF ) - // InternalEntities.g:1440:2: iv_ruleOpOther= ruleOpOther EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpOtherRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpOther=ruleOpOther(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpOther.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpOther" - - - // $ANTLR start "ruleOpOther" - // InternalEntities.g:1446:1: ruleOpOther returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ; - public final AntlrDatatypeRuleToken ruleOpOther() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1452:2: ( (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) ) - // InternalEntities.g:1453:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) - { - // InternalEntities.g:1453:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' ) - int alt24=9; - alt24 = dfa24.predict(input); - switch (alt24) { - case 1 : - // InternalEntities.g:1454:3: kw= '->' - { - kw=(Token)match(input,39,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getHyphenMinusGreaterThanSignKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:1460:3: kw= '..<' - { - kw=(Token)match(input,40,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopLessThanSignKeyword_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:1466:3: (kw= '>' kw= '..' ) - { - // InternalEntities.g:1466:3: (kw= '>' kw= '..' ) - // InternalEntities.g:1467:4: kw= '>' kw= '..' - { - kw=(Token)match(input,30,FOLLOW_26); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_2_0()); - - } - kw=(Token)match(input,41,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_2_1()); - - } - - } - - - } - break; - case 4 : - // InternalEntities.g:1479:3: kw= '..' - { - kw=(Token)match(input,41,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getFullStopFullStopKeyword_3()); - - } - - } - break; - case 5 : - // InternalEntities.g:1485:3: kw= '=>' - { - kw=(Token)match(input,42,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_4()); - - } - - } - break; - case 6 : - // InternalEntities.g:1491:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) - { - // InternalEntities.g:1491:3: (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) - // InternalEntities.g:1492:4: kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) - { - kw=(Token)match(input,30,FOLLOW_27); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_0()); - - } - // InternalEntities.g:1497:4: ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) - int alt22=2; - int LA22_0 = input.LA(1); - - if ( (LA22_0==30) ) { - int LA22_1 = input.LA(2); - - if ( (LA22_1==30) && (synpred8_InternalEntities())) { - alt22=1; - } - else if ( (LA22_1==EOF||(LA22_1>=RULE_STRING && LA22_1<=RULE_ID)||LA22_1==14||LA22_1==17||LA22_1==20||LA22_1==29||(LA22_1>=45 && LA22_1<=46)||LA22_1==51||(LA22_1>=58 && LA22_1<=59)||LA22_1==63||LA22_1==65||(LA22_1>=68 && LA22_1<=70)||(LA22_1>=73 && LA22_1<=84)||LA22_1==86) ) { - alt22=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 22, 1, input); - - throw nvae; - } - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 22, 0, input); - - throw nvae; - } - switch (alt22) { - case 1 : - // InternalEntities.g:1498:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) - { - // InternalEntities.g:1498:5: ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) - // InternalEntities.g:1499:6: ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) - { - // InternalEntities.g:1504:6: (kw= '>' kw= '>' ) - // InternalEntities.g:1505:7: kw= '>' kw= '>' - { - kw=(Token)match(input,30,FOLLOW_27); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_0()); - - } - kw=(Token)match(input,30,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_0_0_1()); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:1518:5: kw= '>' - { - kw=(Token)match(input,30,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getGreaterThanSignKeyword_5_1_1()); - - } - - } - break; - - } - - - } - - - } - break; - case 7 : - // InternalEntities.g:1526:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) - { - // InternalEntities.g:1526:3: (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) - // InternalEntities.g:1527:4: kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) - { - kw=(Token)match(input,29,FOLLOW_28); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_0()); - - } - // InternalEntities.g:1532:4: ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) - int alt23=3; - int LA23_0 = input.LA(1); - - if ( (LA23_0==29) ) { - int LA23_1 = input.LA(2); - - if ( (synpred9_InternalEntities()) ) { - alt23=1; - } - else if ( (true) ) { - alt23=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 23, 1, input); - - throw nvae; - } - } - else if ( (LA23_0==42) ) { - alt23=3; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 23, 0, input); - - throw nvae; - } - switch (alt23) { - case 1 : - // InternalEntities.g:1533:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) - { - // InternalEntities.g:1533:5: ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) - // InternalEntities.g:1534:6: ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) - { - // InternalEntities.g:1539:6: (kw= '<' kw= '<' ) - // InternalEntities.g:1540:7: kw= '<' kw= '<' - { - kw=(Token)match(input,29,FOLLOW_18); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_0()); - - } - kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_0_0_1()); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:1553:5: kw= '<' - { - kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignKeyword_6_1_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:1559:5: kw= '=>' - { - kw=(Token)match(input,42,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getEqualsSignGreaterThanSignKeyword_6_1_2()); - - } - - } - break; - - } - - - } - - - } - break; - case 8 : - // InternalEntities.g:1567:3: kw= '<>' - { - kw=(Token)match(input,43,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getLessThanSignGreaterThanSignKeyword_7()); - - } - - } - break; - case 9 : - // InternalEntities.g:1573:3: kw= '?:' - { - kw=(Token)match(input,44,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpOtherAccess().getQuestionMarkColonKeyword_8()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpOther" - - - // $ANTLR start "entryRuleXAdditiveExpression" - // InternalEntities.g:1582:1: entryRuleXAdditiveExpression returns [EObject current=null] : iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ; - public final EObject entryRuleXAdditiveExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXAdditiveExpression = null; - - - try { - // InternalEntities.g:1582:60: (iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF ) - // InternalEntities.g:1583:2: iv_ruleXAdditiveExpression= ruleXAdditiveExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXAdditiveExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXAdditiveExpression=ruleXAdditiveExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXAdditiveExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXAdditiveExpression" - - - // $ANTLR start "ruleXAdditiveExpression" - // InternalEntities.g:1589:1: ruleXAdditiveExpression returns [EObject current=null] : (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ; - public final EObject ruleXAdditiveExpression() throws RecognitionException { - EObject current = null; - - EObject this_XMultiplicativeExpression_0 = null; - - EObject lv_rightOperand_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1595:2: ( (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) ) - // InternalEntities.g:1596:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) - { - // InternalEntities.g:1596:2: (this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* ) - // InternalEntities.g:1597:3: this_XMultiplicativeExpression_0= ruleXMultiplicativeExpression ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getXMultiplicativeExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_29); - this_XMultiplicativeExpression_0=ruleXMultiplicativeExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XMultiplicativeExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:1605:3: ( ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) )* - loop25: - do { - int alt25=2; - int LA25_0 = input.LA(1); - - if ( (LA25_0==45) ) { - int LA25_2 = input.LA(2); - - if ( (synpred10_InternalEntities()) ) { - alt25=1; - } - - - } - else if ( (LA25_0==46) ) { - int LA25_3 = input.LA(2); - - if ( (synpred10_InternalEntities()) ) { - alt25=1; - } - - - } - - - switch (alt25) { - case 1 : - // InternalEntities.g:1606:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) - { - // InternalEntities.g:1606:4: ( ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) ) - // InternalEntities.g:1607:5: ( ( () ( ( ruleOpAdd ) ) ) )=> ( () ( ( ruleOpAdd ) ) ) - { - // InternalEntities.g:1617:5: ( () ( ( ruleOpAdd ) ) ) - // InternalEntities.g:1618:6: () ( ( ruleOpAdd ) ) - { - // InternalEntities.g:1618:6: () - // InternalEntities.g:1619:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:1625:6: ( ( ruleOpAdd ) ) - // InternalEntities.g:1626:7: ( ruleOpAdd ) - { - // InternalEntities.g:1626:7: ( ruleOpAdd ) - // InternalEntities.g:1627:8: ruleOpAdd - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXAdditiveExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpAdd(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:1643:4: ( (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) ) - // InternalEntities.g:1644:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) - { - // InternalEntities.g:1644:5: (lv_rightOperand_3_0= ruleXMultiplicativeExpression ) - // InternalEntities.g:1645:6: lv_rightOperand_3_0= ruleXMultiplicativeExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXAdditiveExpressionAccess().getRightOperandXMultiplicativeExpressionParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_29); - lv_rightOperand_3_0=ruleXMultiplicativeExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXAdditiveExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XMultiplicativeExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop25; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXAdditiveExpression" - - - // $ANTLR start "entryRuleOpAdd" - // InternalEntities.g:1667:1: entryRuleOpAdd returns [String current=null] : iv_ruleOpAdd= ruleOpAdd EOF ; - public final String entryRuleOpAdd() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpAdd = null; - - - try { - // InternalEntities.g:1667:45: (iv_ruleOpAdd= ruleOpAdd EOF ) - // InternalEntities.g:1668:2: iv_ruleOpAdd= ruleOpAdd EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpAddRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpAdd=ruleOpAdd(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpAdd.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpAdd" - - - // $ANTLR start "ruleOpAdd" - // InternalEntities.g:1674:1: ruleOpAdd returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ; - public final AntlrDatatypeRuleToken ruleOpAdd() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1680:2: ( (kw= '+' | kw= '-' ) ) - // InternalEntities.g:1681:2: (kw= '+' | kw= '-' ) - { - // InternalEntities.g:1681:2: (kw= '+' | kw= '-' ) - int alt26=2; - int LA26_0 = input.LA(1); - - if ( (LA26_0==45) ) { - alt26=1; - } - else if ( (LA26_0==46) ) { - alt26=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 26, 0, input); - - throw nvae; - } - switch (alt26) { - case 1 : - // InternalEntities.g:1682:3: kw= '+' - { - kw=(Token)match(input,45,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpAddAccess().getPlusSignKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:1688:3: kw= '-' - { - kw=(Token)match(input,46,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpAddAccess().getHyphenMinusKeyword_1()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpAdd" - - - // $ANTLR start "entryRuleXMultiplicativeExpression" - // InternalEntities.g:1697:1: entryRuleXMultiplicativeExpression returns [EObject current=null] : iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ; - public final EObject entryRuleXMultiplicativeExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXMultiplicativeExpression = null; - - - try { - // InternalEntities.g:1697:66: (iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF ) - // InternalEntities.g:1698:2: iv_ruleXMultiplicativeExpression= ruleXMultiplicativeExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXMultiplicativeExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXMultiplicativeExpression=ruleXMultiplicativeExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXMultiplicativeExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXMultiplicativeExpression" - - - // $ANTLR start "ruleXMultiplicativeExpression" - // InternalEntities.g:1704:1: ruleXMultiplicativeExpression returns [EObject current=null] : (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ; - public final EObject ruleXMultiplicativeExpression() throws RecognitionException { - EObject current = null; - - EObject this_XUnaryOperation_0 = null; - - EObject lv_rightOperand_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1710:2: ( (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) ) - // InternalEntities.g:1711:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) - { - // InternalEntities.g:1711:2: (this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* ) - // InternalEntities.g:1712:3: this_XUnaryOperation_0= ruleXUnaryOperation ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getXUnaryOperationParserRuleCall_0()); - - } - pushFollow(FOLLOW_30); - this_XUnaryOperation_0=ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XUnaryOperation_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:1720:3: ( ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) )* - loop27: - do { - int alt27=2; - switch ( input.LA(1) ) { - case 47: - { - int LA27_2 = input.LA(2); - - if ( (synpred11_InternalEntities()) ) { - alt27=1; - } - - - } - break; - case 48: - { - int LA27_3 = input.LA(2); - - if ( (synpred11_InternalEntities()) ) { - alt27=1; - } - - - } - break; - case 49: - { - int LA27_4 = input.LA(2); - - if ( (synpred11_InternalEntities()) ) { - alt27=1; - } - - - } - break; - case 50: - { - int LA27_5 = input.LA(2); - - if ( (synpred11_InternalEntities()) ) { - alt27=1; - } - - - } - break; - - } - - switch (alt27) { - case 1 : - // InternalEntities.g:1721:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) - { - // InternalEntities.g:1721:4: ( ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) ) - // InternalEntities.g:1722:5: ( ( () ( ( ruleOpMulti ) ) ) )=> ( () ( ( ruleOpMulti ) ) ) - { - // InternalEntities.g:1732:5: ( () ( ( ruleOpMulti ) ) ) - // InternalEntities.g:1733:6: () ( ( ruleOpMulti ) ) - { - // InternalEntities.g:1733:6: () - // InternalEntities.g:1734:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:1740:6: ( ( ruleOpMulti ) ) - // InternalEntities.g:1741:7: ( ruleOpMulti ) - { - // InternalEntities.g:1741:7: ( ruleOpMulti ) - // InternalEntities.g:1742:8: ruleOpMulti - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMultiplicativeExpressionRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpMulti(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:1758:4: ( (lv_rightOperand_3_0= ruleXUnaryOperation ) ) - // InternalEntities.g:1759:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) - { - // InternalEntities.g:1759:5: (lv_rightOperand_3_0= ruleXUnaryOperation ) - // InternalEntities.g:1760:6: lv_rightOperand_3_0= ruleXUnaryOperation - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMultiplicativeExpressionAccess().getRightOperandXUnaryOperationParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_30); - lv_rightOperand_3_0=ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMultiplicativeExpressionRule()); - } - set( - current, - "rightOperand", - lv_rightOperand_3_0, - "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop27; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXMultiplicativeExpression" - - - // $ANTLR start "entryRuleOpMulti" - // InternalEntities.g:1782:1: entryRuleOpMulti returns [String current=null] : iv_ruleOpMulti= ruleOpMulti EOF ; - public final String entryRuleOpMulti() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpMulti = null; - - - try { - // InternalEntities.g:1782:47: (iv_ruleOpMulti= ruleOpMulti EOF ) - // InternalEntities.g:1783:2: iv_ruleOpMulti= ruleOpMulti EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpMultiRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpMulti=ruleOpMulti(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpMulti.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpMulti" - - - // $ANTLR start "ruleOpMulti" - // InternalEntities.g:1789:1: ruleOpMulti returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ; - public final AntlrDatatypeRuleToken ruleOpMulti() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1795:2: ( (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) ) - // InternalEntities.g:1796:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) - { - // InternalEntities.g:1796:2: (kw= '*' | kw= '**' | kw= '/' | kw= '%' ) - int alt28=4; - switch ( input.LA(1) ) { - case 47: - { - alt28=1; - } - break; - case 48: - { - alt28=2; - } - break; - case 49: - { - alt28=3; - } - break; - case 50: - { - alt28=4; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 28, 0, input); - - throw nvae; - } - - switch (alt28) { - case 1 : - // InternalEntities.g:1797:3: kw= '*' - { - kw=(Token)match(input,47,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:1803:3: kw= '**' - { - kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getAsteriskAsteriskKeyword_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:1809:3: kw= '/' - { - kw=(Token)match(input,49,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getSolidusKeyword_2()); - - } - - } - break; - case 4 : - // InternalEntities.g:1815:3: kw= '%' - { - kw=(Token)match(input,50,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpMultiAccess().getPercentSignKeyword_3()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpMulti" - - - // $ANTLR start "entryRuleXUnaryOperation" - // InternalEntities.g:1824:1: entryRuleXUnaryOperation returns [EObject current=null] : iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ; - public final EObject entryRuleXUnaryOperation() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXUnaryOperation = null; - - - try { - // InternalEntities.g:1824:56: (iv_ruleXUnaryOperation= ruleXUnaryOperation EOF ) - // InternalEntities.g:1825:2: iv_ruleXUnaryOperation= ruleXUnaryOperation EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXUnaryOperationRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXUnaryOperation=ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXUnaryOperation; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXUnaryOperation" - - - // $ANTLR start "ruleXUnaryOperation" - // InternalEntities.g:1831:1: ruleXUnaryOperation returns [EObject current=null] : ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ; - public final EObject ruleXUnaryOperation() throws RecognitionException { - EObject current = null; - - EObject lv_operand_2_0 = null; - - EObject this_XCastedExpression_3 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1837:2: ( ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) ) - // InternalEntities.g:1838:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) - { - // InternalEntities.g:1838:2: ( ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) | this_XCastedExpression_3= ruleXCastedExpression ) - int alt29=2; - int LA29_0 = input.LA(1); - - if ( ((LA29_0>=45 && LA29_0<=46)||LA29_0==51) ) { - alt29=1; - } - else if ( ((LA29_0>=RULE_STRING && LA29_0<=RULE_ID)||LA29_0==14||LA29_0==17||LA29_0==20||LA29_0==29||(LA29_0>=58 && LA29_0<=59)||LA29_0==63||LA29_0==65||(LA29_0>=68 && LA29_0<=70)||(LA29_0>=73 && LA29_0<=84)||LA29_0==86) ) { - alt29=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 29, 0, input); - - throw nvae; - } - switch (alt29) { - case 1 : - // InternalEntities.g:1839:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) - { - // InternalEntities.g:1839:3: ( () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) ) - // InternalEntities.g:1840:4: () ( ( ruleOpUnary ) ) ( (lv_operand_2_0= ruleXUnaryOperation ) ) - { - // InternalEntities.g:1840:4: () - // InternalEntities.g:1841:5: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXUnaryOperationAccess().getXUnaryOperationAction_0_0(), - current); - - } - - } - - // InternalEntities.g:1847:4: ( ( ruleOpUnary ) ) - // InternalEntities.g:1848:5: ( ruleOpUnary ) - { - // InternalEntities.g:1848:5: ( ruleOpUnary ) - // InternalEntities.g:1849:6: ruleOpUnary - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXUnaryOperationRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXUnaryOperationAccess().getFeatureJvmIdentifiableElementCrossReference_0_1_0()); - - } - pushFollow(FOLLOW_16); - ruleOpUnary(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:1863:4: ( (lv_operand_2_0= ruleXUnaryOperation ) ) - // InternalEntities.g:1864:5: (lv_operand_2_0= ruleXUnaryOperation ) - { - // InternalEntities.g:1864:5: (lv_operand_2_0= ruleXUnaryOperation ) - // InternalEntities.g:1865:6: lv_operand_2_0= ruleXUnaryOperation - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXUnaryOperationAccess().getOperandXUnaryOperationParserRuleCall_0_2_0()); - - } - pushFollow(FOLLOW_2); - lv_operand_2_0=ruleXUnaryOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXUnaryOperationRule()); - } - set( - current, - "operand", - lv_operand_2_0, - "org.eclipse.xtext.xbase.Xbase.XUnaryOperation"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:1884:3: this_XCastedExpression_3= ruleXCastedExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXUnaryOperationAccess().getXCastedExpressionParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_XCastedExpression_3=ruleXCastedExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XCastedExpression_3; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXUnaryOperation" - - - // $ANTLR start "entryRuleOpUnary" - // InternalEntities.g:1896:1: entryRuleOpUnary returns [String current=null] : iv_ruleOpUnary= ruleOpUnary EOF ; - public final String entryRuleOpUnary() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpUnary = null; - - - try { - // InternalEntities.g:1896:47: (iv_ruleOpUnary= ruleOpUnary EOF ) - // InternalEntities.g:1897:2: iv_ruleOpUnary= ruleOpUnary EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpUnaryRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpUnary=ruleOpUnary(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpUnary.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpUnary" - - - // $ANTLR start "ruleOpUnary" - // InternalEntities.g:1903:1: ruleOpUnary returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '!' | kw= '-' | kw= '+' ) ; - public final AntlrDatatypeRuleToken ruleOpUnary() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:1909:2: ( (kw= '!' | kw= '-' | kw= '+' ) ) - // InternalEntities.g:1910:2: (kw= '!' | kw= '-' | kw= '+' ) - { - // InternalEntities.g:1910:2: (kw= '!' | kw= '-' | kw= '+' ) - int alt30=3; - switch ( input.LA(1) ) { - case 51: - { - alt30=1; - } - break; - case 46: - { - alt30=2; - } - break; - case 45: - { - alt30=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 30, 0, input); - - throw nvae; - } - - switch (alt30) { - case 1 : - // InternalEntities.g:1911:3: kw= '!' - { - kw=(Token)match(input,51,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpUnaryAccess().getExclamationMarkKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:1917:3: kw= '-' - { - kw=(Token)match(input,46,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpUnaryAccess().getHyphenMinusKeyword_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:1923:3: kw= '+' - { - kw=(Token)match(input,45,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpUnaryAccess().getPlusSignKeyword_2()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpUnary" - - - // $ANTLR start "entryRuleXCastedExpression" - // InternalEntities.g:1932:1: entryRuleXCastedExpression returns [EObject current=null] : iv_ruleXCastedExpression= ruleXCastedExpression EOF ; - public final EObject entryRuleXCastedExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXCastedExpression = null; - - - try { - // InternalEntities.g:1932:58: (iv_ruleXCastedExpression= ruleXCastedExpression EOF ) - // InternalEntities.g:1933:2: iv_ruleXCastedExpression= ruleXCastedExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXCastedExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXCastedExpression=ruleXCastedExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXCastedExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXCastedExpression" - - - // $ANTLR start "ruleXCastedExpression" - // InternalEntities.g:1939:1: ruleXCastedExpression returns [EObject current=null] : (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ; - public final EObject ruleXCastedExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - EObject this_XPostfixOperation_0 = null; - - EObject lv_type_3_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:1945:2: ( (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) ) - // InternalEntities.g:1946:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) - { - // InternalEntities.g:1946:2: (this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* ) - // InternalEntities.g:1947:3: this_XPostfixOperation_0= ruleXPostfixOperation ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCastedExpressionAccess().getXPostfixOperationParserRuleCall_0()); - - } - pushFollow(FOLLOW_31); - this_XPostfixOperation_0=ruleXPostfixOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XPostfixOperation_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:1955:3: ( ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) )* - loop31: - do { - int alt31=2; - int LA31_0 = input.LA(1); - - if ( (LA31_0==52) ) { - int LA31_2 = input.LA(2); - - if ( (synpred12_InternalEntities()) ) { - alt31=1; - } - - - } - - - switch (alt31) { - case 1 : - // InternalEntities.g:1956:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) ( (lv_type_3_0= ruleJvmTypeReference ) ) - { - // InternalEntities.g:1956:4: ( ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) ) - // InternalEntities.g:1957:5: ( ( () 'as' ) )=> ( () otherlv_2= 'as' ) - { - // InternalEntities.g:1963:5: ( () otherlv_2= 'as' ) - // InternalEntities.g:1964:6: () otherlv_2= 'as' - { - // InternalEntities.g:1964:6: () - // InternalEntities.g:1965:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0(), - current); - - } - - } - - otherlv_2=(Token)match(input,52,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); - - } - - } - - - } - - // InternalEntities.g:1977:4: ( (lv_type_3_0= ruleJvmTypeReference ) ) - // InternalEntities.g:1978:5: (lv_type_3_0= ruleJvmTypeReference ) - { - // InternalEntities.g:1978:5: (lv_type_3_0= ruleJvmTypeReference ) - // InternalEntities.g:1979:6: lv_type_3_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCastedExpressionAccess().getTypeJvmTypeReferenceParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_31); - lv_type_3_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXCastedExpressionRule()); - } - set( - current, - "type", - lv_type_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop31; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXCastedExpression" - - - // $ANTLR start "entryRuleXPostfixOperation" - // InternalEntities.g:2001:1: entryRuleXPostfixOperation returns [EObject current=null] : iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ; - public final EObject entryRuleXPostfixOperation() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXPostfixOperation = null; - - - try { - // InternalEntities.g:2001:58: (iv_ruleXPostfixOperation= ruleXPostfixOperation EOF ) - // InternalEntities.g:2002:2: iv_ruleXPostfixOperation= ruleXPostfixOperation EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXPostfixOperationRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXPostfixOperation=ruleXPostfixOperation(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXPostfixOperation; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXPostfixOperation" - - - // $ANTLR start "ruleXPostfixOperation" - // InternalEntities.g:2008:1: ruleXPostfixOperation returns [EObject current=null] : (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ; - public final EObject ruleXPostfixOperation() throws RecognitionException { - EObject current = null; - - EObject this_XMemberFeatureCall_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2014:2: ( (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) ) - // InternalEntities.g:2015:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) - { - // InternalEntities.g:2015:2: (this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? ) - // InternalEntities.g:2016:3: this_XMemberFeatureCall_0= ruleXMemberFeatureCall ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPostfixOperationAccess().getXMemberFeatureCallParserRuleCall_0()); - - } - pushFollow(FOLLOW_32); - this_XMemberFeatureCall_0=ruleXMemberFeatureCall(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XMemberFeatureCall_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:2024:3: ( ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) )? - int alt32=2; - int LA32_0 = input.LA(1); - - if ( (LA32_0==53) ) { - int LA32_1 = input.LA(2); - - if ( (synpred13_InternalEntities()) ) { - alt32=1; - } - } - else if ( (LA32_0==54) ) { - int LA32_2 = input.LA(2); - - if ( (synpred13_InternalEntities()) ) { - alt32=1; - } - } - switch (alt32) { - case 1 : - // InternalEntities.g:2025:4: ( ( () ( ( ruleOpPostfix ) ) ) )=> ( () ( ( ruleOpPostfix ) ) ) - { - // InternalEntities.g:2035:4: ( () ( ( ruleOpPostfix ) ) ) - // InternalEntities.g:2036:5: () ( ( ruleOpPostfix ) ) - { - // InternalEntities.g:2036:5: () - // InternalEntities.g:2037:6: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0(), - current); - - } - - } - - // InternalEntities.g:2043:5: ( ( ruleOpPostfix ) ) - // InternalEntities.g:2044:6: ( ruleOpPostfix ) - { - // InternalEntities.g:2044:6: ( ruleOpPostfix ) - // InternalEntities.g:2045:7: ruleOpPostfix - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXPostfixOperationRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPostfixOperationAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_1_0()); - - } - pushFollow(FOLLOW_2); - ruleOpPostfix(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXPostfixOperation" - - - // $ANTLR start "entryRuleOpPostfix" - // InternalEntities.g:2065:1: entryRuleOpPostfix returns [String current=null] : iv_ruleOpPostfix= ruleOpPostfix EOF ; - public final String entryRuleOpPostfix() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleOpPostfix = null; - - - try { - // InternalEntities.g:2065:49: (iv_ruleOpPostfix= ruleOpPostfix EOF ) - // InternalEntities.g:2066:2: iv_ruleOpPostfix= ruleOpPostfix EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getOpPostfixRule()); - } - pushFollow(FOLLOW_1); - iv_ruleOpPostfix=ruleOpPostfix(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleOpPostfix.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOpPostfix" - - - // $ANTLR start "ruleOpPostfix" - // InternalEntities.g:2072:1: ruleOpPostfix returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ; - public final AntlrDatatypeRuleToken ruleOpPostfix() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:2078:2: ( (kw= '++' | kw= '--' ) ) - // InternalEntities.g:2079:2: (kw= '++' | kw= '--' ) - { - // InternalEntities.g:2079:2: (kw= '++' | kw= '--' ) - int alt33=2; - int LA33_0 = input.LA(1); - - if ( (LA33_0==53) ) { - alt33=1; - } - else if ( (LA33_0==54) ) { - alt33=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 33, 0, input); - - throw nvae; - } - switch (alt33) { - case 1 : - // InternalEntities.g:2080:3: kw= '++' - { - kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpPostfixAccess().getPlusSignPlusSignKeyword_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:2086:3: kw= '--' - { - kw=(Token)match(input,54,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getOpPostfixAccess().getHyphenMinusHyphenMinusKeyword_1()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOpPostfix" - - - // $ANTLR start "entryRuleXMemberFeatureCall" - // InternalEntities.g:2095:1: entryRuleXMemberFeatureCall returns [EObject current=null] : iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ; - public final EObject entryRuleXMemberFeatureCall() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXMemberFeatureCall = null; - - - try { - // InternalEntities.g:2095:59: (iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF ) - // InternalEntities.g:2096:2: iv_ruleXMemberFeatureCall= ruleXMemberFeatureCall EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXMemberFeatureCallRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXMemberFeatureCall=ruleXMemberFeatureCall(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXMemberFeatureCall; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXMemberFeatureCall" - - - // $ANTLR start "ruleXMemberFeatureCall" - // InternalEntities.g:2102:1: ruleXMemberFeatureCall returns [EObject current=null] : (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ; - public final EObject ruleXMemberFeatureCall() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - Token lv_explicitStatic_3_0=null; - Token otherlv_8=null; - Token lv_nullSafe_9_0=null; - Token lv_explicitStatic_10_0=null; - Token otherlv_11=null; - Token otherlv_13=null; - Token otherlv_15=null; - Token lv_explicitOperationCall_17_0=null; - Token otherlv_20=null; - Token otherlv_22=null; - EObject this_XPrimaryExpression_0 = null; - - EObject lv_value_6_0 = null; - - EObject lv_typeArguments_12_0 = null; - - EObject lv_typeArguments_14_0 = null; - - EObject lv_memberCallArguments_18_0 = null; - - EObject lv_memberCallArguments_19_0 = null; - - EObject lv_memberCallArguments_21_0 = null; - - EObject lv_memberCallArguments_23_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2108:2: ( (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) ) - // InternalEntities.g:2109:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) - { - // InternalEntities.g:2109:2: (this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* ) - // InternalEntities.g:2110:3: this_XPrimaryExpression_0= ruleXPrimaryExpression ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getXPrimaryExpressionParserRuleCall_0()); - - } - pushFollow(FOLLOW_33); - this_XPrimaryExpression_0=ruleXPrimaryExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XPrimaryExpression_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:2118:3: ( ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) | ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) )* - loop42: - do { - int alt42=3; - switch ( input.LA(1) ) { - case 55: - { - int LA42_2 = input.LA(2); - - if ( (synpred14_InternalEntities()) ) { - alt42=1; - } - else if ( (synpred15_InternalEntities()) ) { - alt42=2; - } - - - } - break; - case 56: - { - int LA42_3 = input.LA(2); - - if ( (synpred14_InternalEntities()) ) { - alt42=1; - } - else if ( (synpred15_InternalEntities()) ) { - alt42=2; - } - - - } - break; - case 57: - { - int LA42_4 = input.LA(2); - - if ( (synpred15_InternalEntities()) ) { - alt42=2; - } - - - } - break; - - } - - switch (alt42) { - case 1 : - // InternalEntities.g:2119:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) - { - // InternalEntities.g:2119:4: ( ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) ) - // InternalEntities.g:2120:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) ( (lv_value_6_0= ruleXAssignment ) ) - { - // InternalEntities.g:2120:5: ( ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) - // InternalEntities.g:2121:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) )=> ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) - { - // InternalEntities.g:2141:6: ( () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) - // InternalEntities.g:2142:7: () (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign - { - // InternalEntities.g:2142:7: () - // InternalEntities.g:2143:8: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0(), - current); - - } - - } - - // InternalEntities.g:2149:7: (otherlv_2= '.' | ( (lv_explicitStatic_3_0= '::' ) ) ) - int alt34=2; - int LA34_0 = input.LA(1); - - if ( (LA34_0==55) ) { - alt34=1; - } - else if ( (LA34_0==56) ) { - alt34=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 34, 0, input); - - throw nvae; - } - switch (alt34) { - case 1 : - // InternalEntities.g:2150:8: otherlv_2= '.' - { - otherlv_2=(Token)match(input,55,FOLLOW_34); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_0_0_0_1_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:2155:8: ( (lv_explicitStatic_3_0= '::' ) ) - { - // InternalEntities.g:2155:8: ( (lv_explicitStatic_3_0= '::' ) ) - // InternalEntities.g:2156:9: (lv_explicitStatic_3_0= '::' ) - { - // InternalEntities.g:2156:9: (lv_explicitStatic_3_0= '::' ) - // InternalEntities.g:2157:10: lv_explicitStatic_3_0= '::' - { - lv_explicitStatic_3_0=(Token)match(input,56,FOLLOW_34); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitStatic_3_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_0_0_0_1_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed(current, "explicitStatic", lv_explicitStatic_3_0 != null, "::"); - - } - - } - - - } - - - } - break; - - } - - // InternalEntities.g:2170:7: ( ( ruleFeatureCallID ) ) - // InternalEntities.g:2171:8: ( ruleFeatureCallID ) - { - // InternalEntities.g:2171:8: ( ruleFeatureCallID ) - // InternalEntities.g:2172:9: ruleFeatureCallID - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_0_0_0_2_0()); - - } - pushFollow(FOLLOW_15); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getOpSingleAssignParserRuleCall_1_0_0_0_3()); - - } - pushFollow(FOLLOW_16); - ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:2195:5: ( (lv_value_6_0= ruleXAssignment ) ) - // InternalEntities.g:2196:6: (lv_value_6_0= ruleXAssignment ) - { - // InternalEntities.g:2196:6: (lv_value_6_0= ruleXAssignment ) - // InternalEntities.g:2197:7: lv_value_6_0= ruleXAssignment - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getValueXAssignmentParserRuleCall_1_0_1_0()); - - } - pushFollow(FOLLOW_33); - lv_value_6_0=ruleXAssignment(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - set( - current, - "value", - lv_value_6_0, - "org.eclipse.xtext.xbase.Xbase.XAssignment"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:2216:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) - { - // InternalEntities.g:2216:4: ( ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? ) - // InternalEntities.g:2217:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? - { - // InternalEntities.g:2217:5: ( ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) ) - // InternalEntities.g:2218:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) )=> ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) - { - // InternalEntities.g:2238:6: ( () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) ) - // InternalEntities.g:2239:7: () (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) - { - // InternalEntities.g:2239:7: () - // InternalEntities.g:2240:8: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0(), - current); - - } - - } - - // InternalEntities.g:2246:7: (otherlv_8= '.' | ( (lv_nullSafe_9_0= '?.' ) ) | ( (lv_explicitStatic_10_0= '::' ) ) ) - int alt35=3; - switch ( input.LA(1) ) { - case 55: - { - alt35=1; - } - break; - case 57: - { - alt35=2; - } - break; - case 56: - { - alt35=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 35, 0, input); - - throw nvae; - } - - switch (alt35) { - case 1 : - // InternalEntities.g:2247:8: otherlv_8= '.' - { - otherlv_8=(Token)match(input,55,FOLLOW_35); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_8, grammarAccess.getXMemberFeatureCallAccess().getFullStopKeyword_1_1_0_0_1_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:2252:8: ( (lv_nullSafe_9_0= '?.' ) ) - { - // InternalEntities.g:2252:8: ( (lv_nullSafe_9_0= '?.' ) ) - // InternalEntities.g:2253:9: (lv_nullSafe_9_0= '?.' ) - { - // InternalEntities.g:2253:9: (lv_nullSafe_9_0= '?.' ) - // InternalEntities.g:2254:10: lv_nullSafe_9_0= '?.' - { - lv_nullSafe_9_0=(Token)match(input,57,FOLLOW_35); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_nullSafe_9_0, grammarAccess.getXMemberFeatureCallAccess().getNullSafeQuestionMarkFullStopKeyword_1_1_0_0_1_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed(current, "nullSafe", lv_nullSafe_9_0 != null, "?."); - - } - - } - - - } - - - } - break; - case 3 : - // InternalEntities.g:2267:8: ( (lv_explicitStatic_10_0= '::' ) ) - { - // InternalEntities.g:2267:8: ( (lv_explicitStatic_10_0= '::' ) ) - // InternalEntities.g:2268:9: (lv_explicitStatic_10_0= '::' ) - { - // InternalEntities.g:2268:9: (lv_explicitStatic_10_0= '::' ) - // InternalEntities.g:2269:10: lv_explicitStatic_10_0= '::' - { - lv_explicitStatic_10_0=(Token)match(input,56,FOLLOW_35); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitStatic_10_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitStaticColonColonKeyword_1_1_0_0_1_2_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed(current, "explicitStatic", lv_explicitStatic_10_0 != null, "::"); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - - // InternalEntities.g:2284:5: (otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' )? - int alt37=2; - int LA37_0 = input.LA(1); - - if ( (LA37_0==29) ) { - alt37=1; - } - switch (alt37) { - case 1 : - // InternalEntities.g:2285:6: otherlv_11= '<' ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* otherlv_15= '>' - { - otherlv_11=(Token)match(input,29,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_11, grammarAccess.getXMemberFeatureCallAccess().getLessThanSignKeyword_1_1_1_0()); - - } - // InternalEntities.g:2289:6: ( (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:2290:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:2290:7: (lv_typeArguments_12_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:2291:8: lv_typeArguments_12_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0()); - - } - pushFollow(FOLLOW_37); - lv_typeArguments_12_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - current, - "typeArguments", - lv_typeArguments_12_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:2308:6: (otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) )* - loop36: - do { - int alt36=2; - int LA36_0 = input.LA(1); - - if ( (LA36_0==21) ) { - alt36=1; - } - - - switch (alt36) { - case 1 : - // InternalEntities.g:2309:7: otherlv_13= ',' ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) - { - otherlv_13=(Token)match(input,21,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_13, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_1_2_0()); - - } - // InternalEntities.g:2313:7: ( (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:2314:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:2314:8: (lv_typeArguments_14_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:2315:9: lv_typeArguments_14_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0()); - - } - pushFollow(FOLLOW_37); - lv_typeArguments_14_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - current, - "typeArguments", - lv_typeArguments_14_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop36; - } - } while (true); - - otherlv_15=(Token)match(input,30,FOLLOW_35); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_15, grammarAccess.getXMemberFeatureCallAccess().getGreaterThanSignKeyword_1_1_1_3()); - - } - - } - break; - - } - - // InternalEntities.g:2338:5: ( ( ruleIdOrSuper ) ) - // InternalEntities.g:2339:6: ( ruleIdOrSuper ) - { - // InternalEntities.g:2339:6: ( ruleIdOrSuper ) - // InternalEntities.g:2340:7: ruleIdOrSuper - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_1_1_2_0()); - - } - pushFollow(FOLLOW_38); - ruleIdOrSuper(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:2354:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )? - int alt40=2; - alt40 = dfa40.predict(input); - switch (alt40) { - case 1 : - // InternalEntities.g:2355:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' - { - // InternalEntities.g:2355:6: ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) - // InternalEntities.g:2356:7: ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) - { - // InternalEntities.g:2360:7: (lv_explicitOperationCall_17_0= '(' ) - // InternalEntities.g:2361:8: lv_explicitOperationCall_17_0= '(' - { - lv_explicitOperationCall_17_0=(Token)match(input,20,FOLLOW_39); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitOperationCall_17_0, grammarAccess.getXMemberFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_1_1_3_0_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXMemberFeatureCallRule()); - } - setWithLastConsumed(current, "explicitOperationCall", lv_explicitOperationCall_17_0 != null, "("); - - } - - } - - - } - - // InternalEntities.g:2373:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? - int alt39=3; - alt39 = dfa39.predict(input); - switch (alt39) { - case 1 : - // InternalEntities.g:2374:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) - { - // InternalEntities.g:2374:7: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) - // InternalEntities.g:2375:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) - { - // InternalEntities.g:2400:8: (lv_memberCallArguments_18_0= ruleXShortClosure ) - // InternalEntities.g:2401:9: lv_memberCallArguments_18_0= ruleXShortClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXShortClosureParserRuleCall_1_1_3_1_0_0()); - - } - pushFollow(FOLLOW_40); - lv_memberCallArguments_18_0=ruleXShortClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - current, - "memberCallArguments", - lv_memberCallArguments_18_0, - "org.eclipse.xtext.xbase.Xbase.XShortClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:2419:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) - { - // InternalEntities.g:2419:7: ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) - // InternalEntities.g:2420:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* - { - // InternalEntities.g:2420:8: ( (lv_memberCallArguments_19_0= ruleXExpression ) ) - // InternalEntities.g:2421:9: (lv_memberCallArguments_19_0= ruleXExpression ) - { - // InternalEntities.g:2421:9: (lv_memberCallArguments_19_0= ruleXExpression ) - // InternalEntities.g:2422:10: lv_memberCallArguments_19_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_0_0()); - - } - pushFollow(FOLLOW_13); - lv_memberCallArguments_19_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - current, - "memberCallArguments", - lv_memberCallArguments_19_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:2439:8: (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* - loop38: - do { - int alt38=2; - int LA38_0 = input.LA(1); - - if ( (LA38_0==21) ) { - alt38=1; - } - - - switch (alt38) { - case 1 : - // InternalEntities.g:2440:9: otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) - { - otherlv_20=(Token)match(input,21,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_20, grammarAccess.getXMemberFeatureCallAccess().getCommaKeyword_1_1_3_1_1_1_0()); - - } - // InternalEntities.g:2444:9: ( (lv_memberCallArguments_21_0= ruleXExpression ) ) - // InternalEntities.g:2445:10: (lv_memberCallArguments_21_0= ruleXExpression ) - { - // InternalEntities.g:2445:10: (lv_memberCallArguments_21_0= ruleXExpression ) - // InternalEntities.g:2446:11: lv_memberCallArguments_21_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXExpressionParserRuleCall_1_1_3_1_1_1_1_0()); - - } - pushFollow(FOLLOW_13); - lv_memberCallArguments_21_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - current, - "memberCallArguments", - lv_memberCallArguments_21_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop38; - } - } while (true); - - - } - - - } - break; - - } - - otherlv_22=(Token)match(input,22,FOLLOW_41); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_22, grammarAccess.getXMemberFeatureCallAccess().getRightParenthesisKeyword_1_1_3_2()); - - } - - } - break; - - } - - // InternalEntities.g:2471:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )? - int alt41=2; - alt41 = dfa41.predict(input); - switch (alt41) { - case 1 : - // InternalEntities.g:2472:6: ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) - { - // InternalEntities.g:2478:6: (lv_memberCallArguments_23_0= ruleXClosure ) - // InternalEntities.g:2479:7: lv_memberCallArguments_23_0= ruleXClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXMemberFeatureCallAccess().getMemberCallArgumentsXClosureParserRuleCall_1_1_4_0()); - - } - pushFollow(FOLLOW_33); - lv_memberCallArguments_23_0=ruleXClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXMemberFeatureCallRule()); - } - add( - current, - "memberCallArguments", - lv_memberCallArguments_23_0, - "org.eclipse.xtext.xbase.Xbase.XClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - - } - - - } - break; - - default : - break loop42; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXMemberFeatureCall" - - - // $ANTLR start "entryRuleXPrimaryExpression" - // InternalEntities.g:2502:1: entryRuleXPrimaryExpression returns [EObject current=null] : iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ; - public final EObject entryRuleXPrimaryExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXPrimaryExpression = null; - - - try { - // InternalEntities.g:2502:59: (iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF ) - // InternalEntities.g:2503:2: iv_ruleXPrimaryExpression= ruleXPrimaryExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXPrimaryExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXPrimaryExpression=ruleXPrimaryExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXPrimaryExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXPrimaryExpression" - - - // $ANTLR start "ruleXPrimaryExpression" - // InternalEntities.g:2509:1: ruleXPrimaryExpression returns [EObject current=null] : (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ; - public final EObject ruleXPrimaryExpression() throws RecognitionException { - EObject current = null; - - EObject this_XConstructorCall_0 = null; - - EObject this_XBlockExpression_1 = null; - - EObject this_XSwitchExpression_2 = null; - - EObject this_XSynchronizedExpression_3 = null; - - EObject this_XFeatureCall_4 = null; - - EObject this_XLiteral_5 = null; - - EObject this_XIfExpression_6 = null; - - EObject this_XForLoopExpression_7 = null; - - EObject this_XBasicForLoopExpression_8 = null; - - EObject this_XWhileExpression_9 = null; - - EObject this_XDoWhileExpression_10 = null; - - EObject this_XThrowExpression_11 = null; - - EObject this_XReturnExpression_12 = null; - - EObject this_XTryCatchFinallyExpression_13 = null; - - EObject this_XParenthesizedExpression_14 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2515:2: ( (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) ) - // InternalEntities.g:2516:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) - { - // InternalEntities.g:2516:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression ) - int alt43=15; - alt43 = dfa43.predict(input); - switch (alt43) { - case 1 : - // InternalEntities.g:2517:3: this_XConstructorCall_0= ruleXConstructorCall - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXConstructorCallParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_XConstructorCall_0=ruleXConstructorCall(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XConstructorCall_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:2526:3: this_XBlockExpression_1= ruleXBlockExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBlockExpressionParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_XBlockExpression_1=ruleXBlockExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XBlockExpression_1; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 3 : - // InternalEntities.g:2535:3: this_XSwitchExpression_2= ruleXSwitchExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSwitchExpressionParserRuleCall_2()); - - } - pushFollow(FOLLOW_2); - this_XSwitchExpression_2=ruleXSwitchExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XSwitchExpression_2; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 4 : - // InternalEntities.g:2544:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) - { - // InternalEntities.g:2544:3: ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) - // InternalEntities.g:2545:4: ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXSynchronizedExpressionParserRuleCall_3()); - - } - pushFollow(FOLLOW_2); - this_XSynchronizedExpression_3=ruleXSynchronizedExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XSynchronizedExpression_3; - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - case 5 : - // InternalEntities.g:2562:3: this_XFeatureCall_4= ruleXFeatureCall - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXFeatureCallParserRuleCall_4()); - - } - pushFollow(FOLLOW_2); - this_XFeatureCall_4=ruleXFeatureCall(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XFeatureCall_4; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 6 : - // InternalEntities.g:2571:3: this_XLiteral_5= ruleXLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXLiteralParserRuleCall_5()); - - } - pushFollow(FOLLOW_2); - this_XLiteral_5=ruleXLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XLiteral_5; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 7 : - // InternalEntities.g:2580:3: this_XIfExpression_6= ruleXIfExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXIfExpressionParserRuleCall_6()); - - } - pushFollow(FOLLOW_2); - this_XIfExpression_6=ruleXIfExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XIfExpression_6; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 8 : - // InternalEntities.g:2589:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) - { - // InternalEntities.g:2589:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) - // InternalEntities.g:2590:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXForLoopExpressionParserRuleCall_7()); - - } - pushFollow(FOLLOW_2); - this_XForLoopExpression_7=ruleXForLoopExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XForLoopExpression_7; - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - case 9 : - // InternalEntities.g:2613:3: this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXBasicForLoopExpressionParserRuleCall_8()); - - } - pushFollow(FOLLOW_2); - this_XBasicForLoopExpression_8=ruleXBasicForLoopExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XBasicForLoopExpression_8; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 10 : - // InternalEntities.g:2622:3: this_XWhileExpression_9= ruleXWhileExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXWhileExpressionParserRuleCall_9()); - - } - pushFollow(FOLLOW_2); - this_XWhileExpression_9=ruleXWhileExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XWhileExpression_9; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 11 : - // InternalEntities.g:2631:3: this_XDoWhileExpression_10= ruleXDoWhileExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXDoWhileExpressionParserRuleCall_10()); - - } - pushFollow(FOLLOW_2); - this_XDoWhileExpression_10=ruleXDoWhileExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XDoWhileExpression_10; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 12 : - // InternalEntities.g:2640:3: this_XThrowExpression_11= ruleXThrowExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXThrowExpressionParserRuleCall_11()); - - } - pushFollow(FOLLOW_2); - this_XThrowExpression_11=ruleXThrowExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XThrowExpression_11; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 13 : - // InternalEntities.g:2649:3: this_XReturnExpression_12= ruleXReturnExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXReturnExpressionParserRuleCall_12()); - - } - pushFollow(FOLLOW_2); - this_XReturnExpression_12=ruleXReturnExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XReturnExpression_12; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 14 : - // InternalEntities.g:2658:3: this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXTryCatchFinallyExpressionParserRuleCall_13()); - - } - pushFollow(FOLLOW_2); - this_XTryCatchFinallyExpression_13=ruleXTryCatchFinallyExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XTryCatchFinallyExpression_13; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 15 : - // InternalEntities.g:2667:3: this_XParenthesizedExpression_14= ruleXParenthesizedExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXPrimaryExpressionAccess().getXParenthesizedExpressionParserRuleCall_14()); - - } - pushFollow(FOLLOW_2); - this_XParenthesizedExpression_14=ruleXParenthesizedExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XParenthesizedExpression_14; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXPrimaryExpression" - - - // $ANTLR start "entryRuleXLiteral" - // InternalEntities.g:2679:1: entryRuleXLiteral returns [EObject current=null] : iv_ruleXLiteral= ruleXLiteral EOF ; - public final EObject entryRuleXLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXLiteral = null; - - - try { - // InternalEntities.g:2679:49: (iv_ruleXLiteral= ruleXLiteral EOF ) - // InternalEntities.g:2680:2: iv_ruleXLiteral= ruleXLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXLiteral=ruleXLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXLiteral" - - - // $ANTLR start "ruleXLiteral" - // InternalEntities.g:2686:1: ruleXLiteral returns [EObject current=null] : (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ; - public final EObject ruleXLiteral() throws RecognitionException { - EObject current = null; - - EObject this_XCollectionLiteral_0 = null; - - EObject this_XClosure_1 = null; - - EObject this_XBooleanLiteral_2 = null; - - EObject this_XNumberLiteral_3 = null; - - EObject this_XNullLiteral_4 = null; - - EObject this_XStringLiteral_5 = null; - - EObject this_XTypeLiteral_6 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2692:2: ( (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) ) - // InternalEntities.g:2693:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) - { - // InternalEntities.g:2693:2: (this_XCollectionLiteral_0= ruleXCollectionLiteral | ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) | this_XBooleanLiteral_2= ruleXBooleanLiteral | this_XNumberLiteral_3= ruleXNumberLiteral | this_XNullLiteral_4= ruleXNullLiteral | this_XStringLiteral_5= ruleXStringLiteral | this_XTypeLiteral_6= ruleXTypeLiteral ) - int alt44=7; - int LA44_0 = input.LA(1); - - if ( (LA44_0==58) ) { - alt44=1; - } - else if ( (LA44_0==59) && (synpred21_InternalEntities())) { - alt44=2; - } - else if ( ((LA44_0>=78 && LA44_0<=79)) ) { - alt44=3; - } - else if ( ((LA44_0>=RULE_HEX && LA44_0<=RULE_DECIMAL)) ) { - alt44=4; - } - else if ( (LA44_0==80) ) { - alt44=5; - } - else if ( (LA44_0==RULE_STRING) ) { - alt44=6; - } - else if ( (LA44_0==81) ) { - alt44=7; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 44, 0, input); - - throw nvae; - } - switch (alt44) { - case 1 : - // InternalEntities.g:2694:3: this_XCollectionLiteral_0= ruleXCollectionLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXCollectionLiteralParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_XCollectionLiteral_0=ruleXCollectionLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XCollectionLiteral_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:2703:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) - { - // InternalEntities.g:2703:3: ( ( ( () '[' ) )=>this_XClosure_1= ruleXClosure ) - // InternalEntities.g:2704:4: ( ( () '[' ) )=>this_XClosure_1= ruleXClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXClosureParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_XClosure_1=ruleXClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XClosure_1; - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - case 3 : - // InternalEntities.g:2720:3: this_XBooleanLiteral_2= ruleXBooleanLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXBooleanLiteralParserRuleCall_2()); - - } - pushFollow(FOLLOW_2); - this_XBooleanLiteral_2=ruleXBooleanLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XBooleanLiteral_2; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 4 : - // InternalEntities.g:2729:3: this_XNumberLiteral_3= ruleXNumberLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXNumberLiteralParserRuleCall_3()); - - } - pushFollow(FOLLOW_2); - this_XNumberLiteral_3=ruleXNumberLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XNumberLiteral_3; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 5 : - // InternalEntities.g:2738:3: this_XNullLiteral_4= ruleXNullLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXNullLiteralParserRuleCall_4()); - - } - pushFollow(FOLLOW_2); - this_XNullLiteral_4=ruleXNullLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XNullLiteral_4; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 6 : - // InternalEntities.g:2747:3: this_XStringLiteral_5= ruleXStringLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXStringLiteralParserRuleCall_5()); - - } - pushFollow(FOLLOW_2); - this_XStringLiteral_5=ruleXStringLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XStringLiteral_5; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 7 : - // InternalEntities.g:2756:3: this_XTypeLiteral_6= ruleXTypeLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXLiteralAccess().getXTypeLiteralParserRuleCall_6()); - - } - pushFollow(FOLLOW_2); - this_XTypeLiteral_6=ruleXTypeLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XTypeLiteral_6; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXLiteral" - - - // $ANTLR start "entryRuleXCollectionLiteral" - // InternalEntities.g:2768:1: entryRuleXCollectionLiteral returns [EObject current=null] : iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ; - public final EObject entryRuleXCollectionLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXCollectionLiteral = null; - - - try { - // InternalEntities.g:2768:59: (iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF ) - // InternalEntities.g:2769:2: iv_ruleXCollectionLiteral= ruleXCollectionLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXCollectionLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXCollectionLiteral=ruleXCollectionLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXCollectionLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXCollectionLiteral" - - - // $ANTLR start "ruleXCollectionLiteral" - // InternalEntities.g:2775:1: ruleXCollectionLiteral returns [EObject current=null] : (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ; - public final EObject ruleXCollectionLiteral() throws RecognitionException { - EObject current = null; - - EObject this_XSetLiteral_0 = null; - - EObject this_XListLiteral_1 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2781:2: ( (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) ) - // InternalEntities.g:2782:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) - { - // InternalEntities.g:2782:2: (this_XSetLiteral_0= ruleXSetLiteral | this_XListLiteral_1= ruleXListLiteral ) - int alt45=2; - int LA45_0 = input.LA(1); - - if ( (LA45_0==58) ) { - int LA45_1 = input.LA(2); - - if ( (LA45_1==59) ) { - alt45=2; - } - else if ( (LA45_1==14) ) { - alt45=1; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 45, 1, input); - - throw nvae; - } - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 45, 0, input); - - throw nvae; - } - switch (alt45) { - case 1 : - // InternalEntities.g:2783:3: this_XSetLiteral_0= ruleXSetLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXSetLiteralParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_XSetLiteral_0=ruleXSetLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XSetLiteral_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:2792:3: this_XListLiteral_1= ruleXListLiteral - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCollectionLiteralAccess().getXListLiteralParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_XListLiteral_1=ruleXListLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XListLiteral_1; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXCollectionLiteral" - - - // $ANTLR start "entryRuleXSetLiteral" - // InternalEntities.g:2804:1: entryRuleXSetLiteral returns [EObject current=null] : iv_ruleXSetLiteral= ruleXSetLiteral EOF ; - public final EObject entryRuleXSetLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXSetLiteral = null; - - - try { - // InternalEntities.g:2804:52: (iv_ruleXSetLiteral= ruleXSetLiteral EOF ) - // InternalEntities.g:2805:2: iv_ruleXSetLiteral= ruleXSetLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXSetLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXSetLiteral=ruleXSetLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXSetLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXSetLiteral" - - - // $ANTLR start "ruleXSetLiteral" - // InternalEntities.g:2811:1: ruleXSetLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ; - public final EObject ruleXSetLiteral() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_elements_3_0 = null; - - EObject lv_elements_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2817:2: ( ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) ) - // InternalEntities.g:2818:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) - { - // InternalEntities.g:2818:2: ( () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' ) - // InternalEntities.g:2819:3: () otherlv_1= '#' otherlv_2= '{' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= '}' - { - // InternalEntities.g:2819:3: () - // InternalEntities.g:2820:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXSetLiteralAccess().getXSetLiteralAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,58,FOLLOW_5); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXSetLiteralAccess().getNumberSignKeyword_1()); - - } - otherlv_2=(Token)match(input,14,FOLLOW_42); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXSetLiteralAccess().getLeftCurlyBracketKeyword_2()); - - } - // InternalEntities.g:2834:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? - int alt47=2; - int LA47_0 = input.LA(1); - - if ( ((LA47_0>=RULE_STRING && LA47_0<=RULE_ID)||LA47_0==14||LA47_0==17||LA47_0==20||LA47_0==29||(LA47_0>=45 && LA47_0<=46)||LA47_0==51||(LA47_0>=58 && LA47_0<=59)||LA47_0==63||LA47_0==65||(LA47_0>=68 && LA47_0<=70)||(LA47_0>=73 && LA47_0<=84)||LA47_0==86) ) { - alt47=1; - } - switch (alt47) { - case 1 : - // InternalEntities.g:2835:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* - { - // InternalEntities.g:2835:4: ( (lv_elements_3_0= ruleXExpression ) ) - // InternalEntities.g:2836:5: (lv_elements_3_0= ruleXExpression ) - { - // InternalEntities.g:2836:5: (lv_elements_3_0= ruleXExpression ) - // InternalEntities.g:2837:6: lv_elements_3_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - - } - pushFollow(FOLLOW_43); - lv_elements_3_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); - } - add( - current, - "elements", - lv_elements_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:2854:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* - loop46: - do { - int alt46=2; - int LA46_0 = input.LA(1); - - if ( (LA46_0==21) ) { - alt46=1; - } - - - switch (alt46) { - case 1 : - // InternalEntities.g:2855:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) - { - otherlv_4=(Token)match(input,21,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXSetLiteralAccess().getCommaKeyword_3_1_0()); - - } - // InternalEntities.g:2859:5: ( (lv_elements_5_0= ruleXExpression ) ) - // InternalEntities.g:2860:6: (lv_elements_5_0= ruleXExpression ) - { - // InternalEntities.g:2860:6: (lv_elements_5_0= ruleXExpression ) - // InternalEntities.g:2861:7: lv_elements_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSetLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - - } - pushFollow(FOLLOW_43); - lv_elements_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSetLiteralRule()); - } - add( - current, - "elements", - lv_elements_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop46; - } - } while (true); - - - } - break; - - } - - otherlv_6=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXSetLiteralAccess().getRightCurlyBracketKeyword_4()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXSetLiteral" - - - // $ANTLR start "entryRuleXListLiteral" - // InternalEntities.g:2888:1: entryRuleXListLiteral returns [EObject current=null] : iv_ruleXListLiteral= ruleXListLiteral EOF ; - public final EObject entryRuleXListLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXListLiteral = null; - - - try { - // InternalEntities.g:2888:53: (iv_ruleXListLiteral= ruleXListLiteral EOF ) - // InternalEntities.g:2889:2: iv_ruleXListLiteral= ruleXListLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXListLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXListLiteral=ruleXListLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXListLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXListLiteral" - - - // $ANTLR start "ruleXListLiteral" - // InternalEntities.g:2895:1: ruleXListLiteral returns [EObject current=null] : ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ; - public final EObject ruleXListLiteral() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_elements_3_0 = null; - - EObject lv_elements_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2901:2: ( ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) ) - // InternalEntities.g:2902:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) - { - // InternalEntities.g:2902:2: ( () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' ) - // InternalEntities.g:2903:3: () otherlv_1= '#' otherlv_2= '[' ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? otherlv_6= ']' - { - // InternalEntities.g:2903:3: () - // InternalEntities.g:2904:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXListLiteralAccess().getXListLiteralAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,58,FOLLOW_44); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXListLiteralAccess().getNumberSignKeyword_1()); - - } - otherlv_2=(Token)match(input,59,FOLLOW_45); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXListLiteralAccess().getLeftSquareBracketKeyword_2()); - - } - // InternalEntities.g:2918:3: ( ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* )? - int alt49=2; - int LA49_0 = input.LA(1); - - if ( ((LA49_0>=RULE_STRING && LA49_0<=RULE_ID)||LA49_0==14||LA49_0==17||LA49_0==20||LA49_0==29||(LA49_0>=45 && LA49_0<=46)||LA49_0==51||(LA49_0>=58 && LA49_0<=59)||LA49_0==63||LA49_0==65||(LA49_0>=68 && LA49_0<=70)||(LA49_0>=73 && LA49_0<=84)||LA49_0==86) ) { - alt49=1; - } - switch (alt49) { - case 1 : - // InternalEntities.g:2919:4: ( (lv_elements_3_0= ruleXExpression ) ) (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* - { - // InternalEntities.g:2919:4: ( (lv_elements_3_0= ruleXExpression ) ) - // InternalEntities.g:2920:5: (lv_elements_3_0= ruleXExpression ) - { - // InternalEntities.g:2920:5: (lv_elements_3_0= ruleXExpression ) - // InternalEntities.g:2921:6: lv_elements_3_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_0_0()); - - } - pushFollow(FOLLOW_46); - lv_elements_3_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXListLiteralRule()); - } - add( - current, - "elements", - lv_elements_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:2938:4: (otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) )* - loop48: - do { - int alt48=2; - int LA48_0 = input.LA(1); - - if ( (LA48_0==21) ) { - alt48=1; - } - - - switch (alt48) { - case 1 : - // InternalEntities.g:2939:5: otherlv_4= ',' ( (lv_elements_5_0= ruleXExpression ) ) - { - otherlv_4=(Token)match(input,21,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXListLiteralAccess().getCommaKeyword_3_1_0()); - - } - // InternalEntities.g:2943:5: ( (lv_elements_5_0= ruleXExpression ) ) - // InternalEntities.g:2944:6: (lv_elements_5_0= ruleXExpression ) - { - // InternalEntities.g:2944:6: (lv_elements_5_0= ruleXExpression ) - // InternalEntities.g:2945:7: lv_elements_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXListLiteralAccess().getElementsXExpressionParserRuleCall_3_1_1_0()); - - } - pushFollow(FOLLOW_46); - lv_elements_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXListLiteralRule()); - } - add( - current, - "elements", - lv_elements_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop48; - } - } while (true); - - - } - break; - - } - - otherlv_6=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXListLiteralAccess().getRightSquareBracketKeyword_4()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXListLiteral" - - - // $ANTLR start "entryRuleXClosure" - // InternalEntities.g:2972:1: entryRuleXClosure returns [EObject current=null] : iv_ruleXClosure= ruleXClosure EOF ; - public final EObject entryRuleXClosure() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXClosure = null; - - - try { - // InternalEntities.g:2972:49: (iv_ruleXClosure= ruleXClosure EOF ) - // InternalEntities.g:2973:2: iv_ruleXClosure= ruleXClosure EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXClosureRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXClosure=ruleXClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXClosure; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXClosure" - - - // $ANTLR start "ruleXClosure" - // InternalEntities.g:2979:1: ruleXClosure returns [EObject current=null] : ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ; - public final EObject ruleXClosure() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token lv_explicitSyntax_5_0=null; - Token otherlv_7=null; - EObject lv_declaredFormalParameters_2_0 = null; - - EObject lv_declaredFormalParameters_4_0 = null; - - EObject lv_expression_6_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:2985:2: ( ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) ) - // InternalEntities.g:2986:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) - { - // InternalEntities.g:2986:2: ( ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' ) - // InternalEntities.g:2987:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? ( (lv_expression_6_0= ruleXExpressionInClosure ) ) otherlv_7= ']' - { - // InternalEntities.g:2987:3: ( ( ( () '[' ) )=> ( () otherlv_1= '[' ) ) - // InternalEntities.g:2988:4: ( ( () '[' ) )=> ( () otherlv_1= '[' ) - { - // InternalEntities.g:2994:4: ( () otherlv_1= '[' ) - // InternalEntities.g:2995:5: () otherlv_1= '[' - { - // InternalEntities.g:2995:5: () - // InternalEntities.g:2996:6: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXClosureAccess().getXClosureAction_0_0_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,59,FOLLOW_47); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXClosureAccess().getLeftSquareBracketKeyword_0_0_1()); - - } - - } - - - } - - // InternalEntities.g:3008:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )? - int alt52=2; - alt52 = dfa52.predict(input); - switch (alt52) { - case 1 : - // InternalEntities.g:3009:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) - { - // InternalEntities.g:3032:4: ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) - // InternalEntities.g:3033:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) - { - // InternalEntities.g:3033:5: ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? - int alt51=2; - int LA51_0 = input.LA(1); - - if ( (LA51_0==RULE_ID||LA51_0==20||LA51_0==42) ) { - alt51=1; - } - switch (alt51) { - case 1 : - // InternalEntities.g:3034:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* - { - // InternalEntities.g:3034:6: ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3035:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3035:7: (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) - // InternalEntities.g:3036:8: lv_declaredFormalParameters_2_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_0_0()); - - } - pushFollow(FOLLOW_48); - lv_declaredFormalParameters_2_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXClosureRule()); - } - add( - current, - "declaredFormalParameters", - lv_declaredFormalParameters_2_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:3053:6: (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* - loop50: - do { - int alt50=2; - int LA50_0 = input.LA(1); - - if ( (LA50_0==21) ) { - alt50=1; - } - - - switch (alt50) { - case 1 : - // InternalEntities.g:3054:7: otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) - { - otherlv_3=(Token)match(input,21,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getXClosureAccess().getCommaKeyword_1_0_0_1_0()); - - } - // InternalEntities.g:3058:7: ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3059:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3059:8: (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) - // InternalEntities.g:3060:9: lv_declaredFormalParameters_4_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_1_0_0_1_1_0()); - - } - pushFollow(FOLLOW_48); - lv_declaredFormalParameters_4_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXClosureRule()); - } - add( - current, - "declaredFormalParameters", - lv_declaredFormalParameters_4_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop50; - } - } while (true); - - - } - break; - - } - - // InternalEntities.g:3079:5: ( (lv_explicitSyntax_5_0= '|' ) ) - // InternalEntities.g:3080:6: (lv_explicitSyntax_5_0= '|' ) - { - // InternalEntities.g:3080:6: (lv_explicitSyntax_5_0= '|' ) - // InternalEntities.g:3081:7: lv_explicitSyntax_5_0= '|' - { - lv_explicitSyntax_5_0=(Token)match(input,61,FOLLOW_49); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitSyntax_5_0, grammarAccess.getXClosureAccess().getExplicitSyntaxVerticalLineKeyword_1_0_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXClosureRule()); - } - setWithLastConsumed(current, "explicitSyntax", lv_explicitSyntax_5_0 != null, "|"); - - } - - } - - - } - - - } - - - } - break; - - } - - // InternalEntities.g:3095:3: ( (lv_expression_6_0= ruleXExpressionInClosure ) ) - // InternalEntities.g:3096:4: (lv_expression_6_0= ruleXExpressionInClosure ) - { - // InternalEntities.g:3096:4: (lv_expression_6_0= ruleXExpressionInClosure ) - // InternalEntities.g:3097:5: lv_expression_6_0= ruleXExpressionInClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXClosureAccess().getExpressionXExpressionInClosureParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_50); - lv_expression_6_0=ruleXExpressionInClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXClosureRule()); - } - set( - current, - "expression", - lv_expression_6_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionInClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_7=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_7, grammarAccess.getXClosureAccess().getRightSquareBracketKeyword_3()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXClosure" - - - // $ANTLR start "entryRuleXExpressionInClosure" - // InternalEntities.g:3122:1: entryRuleXExpressionInClosure returns [EObject current=null] : iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ; - public final EObject entryRuleXExpressionInClosure() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXExpressionInClosure = null; - - - try { - // InternalEntities.g:3122:61: (iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF ) - // InternalEntities.g:3123:2: iv_ruleXExpressionInClosure= ruleXExpressionInClosure EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXExpressionInClosureRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXExpressionInClosure=ruleXExpressionInClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXExpressionInClosure; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXExpressionInClosure" - - - // $ANTLR start "ruleXExpressionInClosure" - // InternalEntities.g:3129:1: ruleXExpressionInClosure returns [EObject current=null] : ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ; - public final EObject ruleXExpressionInClosure() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - EObject lv_expressions_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3135:2: ( ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) ) - // InternalEntities.g:3136:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) - { - // InternalEntities.g:3136:2: ( () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* ) - // InternalEntities.g:3137:3: () ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* - { - // InternalEntities.g:3137:3: () - // InternalEntities.g:3138:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXExpressionInClosureAccess().getXBlockExpressionAction_0(), - current); - - } - - } - - // InternalEntities.g:3144:3: ( ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? )* - loop54: - do { - int alt54=2; - int LA54_0 = input.LA(1); - - if ( ((LA54_0>=RULE_STRING && LA54_0<=RULE_ID)||LA54_0==14||LA54_0==17||LA54_0==20||LA54_0==29||(LA54_0>=45 && LA54_0<=46)||LA54_0==51||(LA54_0>=58 && LA54_0<=59)||LA54_0==63||LA54_0==65||(LA54_0>=68 && LA54_0<=84)||LA54_0==86) ) { - alt54=1; - } - - - switch (alt54) { - case 1 : - // InternalEntities.g:3145:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_2= ';' )? - { - // InternalEntities.g:3145:4: ( (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:3146:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:3146:5: (lv_expressions_1_0= ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:3147:6: lv_expressions_1_0= ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXExpressionInClosureAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0()); - - } - pushFollow(FOLLOW_51); - lv_expressions_1_0=ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXExpressionInClosureRule()); - } - add( - current, - "expressions", - lv_expressions_1_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:3164:4: (otherlv_2= ';' )? - int alt53=2; - int LA53_0 = input.LA(1); - - if ( (LA53_0==62) ) { - alt53=1; - } - switch (alt53) { - case 1 : - // InternalEntities.g:3165:5: otherlv_2= ';' - { - otherlv_2=(Token)match(input,62,FOLLOW_52); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); - - } - - } - break; - - } - - - } - break; - - default : - break loop54; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXExpressionInClosure" - - - // $ANTLR start "entryRuleXShortClosure" - // InternalEntities.g:3175:1: entryRuleXShortClosure returns [EObject current=null] : iv_ruleXShortClosure= ruleXShortClosure EOF ; - public final EObject entryRuleXShortClosure() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXShortClosure = null; - - - try { - // InternalEntities.g:3175:54: (iv_ruleXShortClosure= ruleXShortClosure EOF ) - // InternalEntities.g:3176:2: iv_ruleXShortClosure= ruleXShortClosure EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXShortClosureRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXShortClosure=ruleXShortClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXShortClosure; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXShortClosure" - - - // $ANTLR start "ruleXShortClosure" - // InternalEntities.g:3182:1: ruleXShortClosure returns [EObject current=null] : ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ; - public final EObject ruleXShortClosure() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - Token lv_explicitSyntax_4_0=null; - EObject lv_declaredFormalParameters_1_0 = null; - - EObject lv_declaredFormalParameters_3_0 = null; - - EObject lv_expression_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3188:2: ( ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) ) - // InternalEntities.g:3189:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) - { - // InternalEntities.g:3189:2: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) ) - // InternalEntities.g:3190:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) ( (lv_expression_5_0= ruleXExpression ) ) - { - // InternalEntities.g:3190:3: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) ) - // InternalEntities.g:3191:4: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) - { - // InternalEntities.g:3216:4: ( () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) ) - // InternalEntities.g:3217:5: () ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_4_0= '|' ) ) - { - // InternalEntities.g:3217:5: () - // InternalEntities.g:3218:6: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXShortClosureAccess().getXClosureAction_0_0_0(), - current); - - } - - } - - // InternalEntities.g:3224:5: ( ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* )? - int alt56=2; - int LA56_0 = input.LA(1); - - if ( (LA56_0==RULE_ID||LA56_0==20||LA56_0==42) ) { - alt56=1; - } - switch (alt56) { - case 1 : - // InternalEntities.g:3225:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* - { - // InternalEntities.g:3225:6: ( (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3226:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3226:7: (lv_declaredFormalParameters_1_0= ruleJvmFormalParameter ) - // InternalEntities.g:3227:8: lv_declaredFormalParameters_1_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_0_0()); - - } - pushFollow(FOLLOW_48); - lv_declaredFormalParameters_1_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXShortClosureRule()); - } - add( - current, - "declaredFormalParameters", - lv_declaredFormalParameters_1_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:3244:6: (otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) )* - loop55: - do { - int alt55=2; - int LA55_0 = input.LA(1); - - if ( (LA55_0==21) ) { - alt55=1; - } - - - switch (alt55) { - case 1 : - // InternalEntities.g:3245:7: otherlv_2= ',' ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) - { - otherlv_2=(Token)match(input,21,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXShortClosureAccess().getCommaKeyword_0_0_1_1_0()); - - } - // InternalEntities.g:3249:7: ( (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3250:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3250:8: (lv_declaredFormalParameters_3_0= ruleJvmFormalParameter ) - // InternalEntities.g:3251:9: lv_declaredFormalParameters_3_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXShortClosureAccess().getDeclaredFormalParametersJvmFormalParameterParserRuleCall_0_0_1_1_1_0()); - - } - pushFollow(FOLLOW_48); - lv_declaredFormalParameters_3_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXShortClosureRule()); - } - add( - current, - "declaredFormalParameters", - lv_declaredFormalParameters_3_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop55; - } - } while (true); - - - } - break; - - } - - // InternalEntities.g:3270:5: ( (lv_explicitSyntax_4_0= '|' ) ) - // InternalEntities.g:3271:6: (lv_explicitSyntax_4_0= '|' ) - { - // InternalEntities.g:3271:6: (lv_explicitSyntax_4_0= '|' ) - // InternalEntities.g:3272:7: lv_explicitSyntax_4_0= '|' - { - lv_explicitSyntax_4_0=(Token)match(input,61,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitSyntax_4_0, grammarAccess.getXShortClosureAccess().getExplicitSyntaxVerticalLineKeyword_0_0_2_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXShortClosureRule()); - } - setWithLastConsumed(current, "explicitSyntax", lv_explicitSyntax_4_0 != null, "|"); - - } - - } - - - } - - - } - - - } - - // InternalEntities.g:3286:3: ( (lv_expression_5_0= ruleXExpression ) ) - // InternalEntities.g:3287:4: (lv_expression_5_0= ruleXExpression ) - { - // InternalEntities.g:3287:4: (lv_expression_5_0= ruleXExpression ) - // InternalEntities.g:3288:5: lv_expression_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXShortClosureAccess().getExpressionXExpressionParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_expression_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXShortClosureRule()); - } - set( - current, - "expression", - lv_expression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXShortClosure" - - - // $ANTLR start "entryRuleXParenthesizedExpression" - // InternalEntities.g:3309:1: entryRuleXParenthesizedExpression returns [EObject current=null] : iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ; - public final EObject entryRuleXParenthesizedExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXParenthesizedExpression = null; - - - try { - // InternalEntities.g:3309:65: (iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF ) - // InternalEntities.g:3310:2: iv_ruleXParenthesizedExpression= ruleXParenthesizedExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXParenthesizedExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXParenthesizedExpression=ruleXParenthesizedExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXParenthesizedExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXParenthesizedExpression" - - - // $ANTLR start "ruleXParenthesizedExpression" - // InternalEntities.g:3316:1: ruleXParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ; - public final EObject ruleXParenthesizedExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - EObject this_XExpression_1 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3322:2: ( (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) ) - // InternalEntities.g:3323:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) - { - // InternalEntities.g:3323:2: (otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' ) - // InternalEntities.g:3324:3: otherlv_0= '(' this_XExpression_1= ruleXExpression otherlv_2= ')' - { - otherlv_0=(Token)match(input,20,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXParenthesizedExpressionAccess().getXExpressionParserRuleCall_1()); - - } - pushFollow(FOLLOW_40); - this_XExpression_1=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XExpression_1; - afterParserOrEnumRuleCall(); - - } - otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXParenthesizedExpressionAccess().getRightParenthesisKeyword_2()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXParenthesizedExpression" - - - // $ANTLR start "entryRuleXIfExpression" - // InternalEntities.g:3344:1: entryRuleXIfExpression returns [EObject current=null] : iv_ruleXIfExpression= ruleXIfExpression EOF ; - public final EObject entryRuleXIfExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXIfExpression = null; - - - try { - // InternalEntities.g:3344:54: (iv_ruleXIfExpression= ruleXIfExpression EOF ) - // InternalEntities.g:3345:2: iv_ruleXIfExpression= ruleXIfExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXIfExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXIfExpression=ruleXIfExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXIfExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXIfExpression" - - - // $ANTLR start "ruleXIfExpression" - // InternalEntities.g:3351:1: ruleXIfExpression returns [EObject current=null] : ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ; - public final EObject ruleXIfExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_if_3_0 = null; - - EObject lv_then_5_0 = null; - - EObject lv_else_7_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3357:2: ( ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) ) - // InternalEntities.g:3358:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) - { - // InternalEntities.g:3358:2: ( () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? ) - // InternalEntities.g:3359:3: () otherlv_1= 'if' otherlv_2= '(' ( (lv_if_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_then_5_0= ruleXExpression ) ) ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? - { - // InternalEntities.g:3359:3: () - // InternalEntities.g:3360:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXIfExpressionAccess().getXIfExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,63,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXIfExpressionAccess().getIfKeyword_1()); - - } - otherlv_2=(Token)match(input,20,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXIfExpressionAccess().getLeftParenthesisKeyword_2()); - - } - // InternalEntities.g:3374:3: ( (lv_if_3_0= ruleXExpression ) ) - // InternalEntities.g:3375:4: (lv_if_3_0= ruleXExpression ) - { - // InternalEntities.g:3375:4: (lv_if_3_0= ruleXExpression ) - // InternalEntities.g:3376:5: lv_if_3_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXIfExpressionAccess().getIfXExpressionParserRuleCall_3_0()); - - } - pushFollow(FOLLOW_40); - lv_if_3_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); - } - set( - current, - "if", - lv_if_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_4=(Token)match(input,22,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXIfExpressionAccess().getRightParenthesisKeyword_4()); - - } - // InternalEntities.g:3397:3: ( (lv_then_5_0= ruleXExpression ) ) - // InternalEntities.g:3398:4: (lv_then_5_0= ruleXExpression ) - { - // InternalEntities.g:3398:4: (lv_then_5_0= ruleXExpression ) - // InternalEntities.g:3399:5: lv_then_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXIfExpressionAccess().getThenXExpressionParserRuleCall_5_0()); - - } - pushFollow(FOLLOW_53); - lv_then_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); - } - set( - current, - "then", - lv_then_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:3416:3: ( ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) )? - int alt57=2; - int LA57_0 = input.LA(1); - - if ( (LA57_0==64) ) { - int LA57_1 = input.LA(2); - - if ( (synpred25_InternalEntities()) ) { - alt57=1; - } - } - switch (alt57) { - case 1 : - // InternalEntities.g:3417:4: ( ( 'else' )=>otherlv_6= 'else' ) ( (lv_else_7_0= ruleXExpression ) ) - { - // InternalEntities.g:3417:4: ( ( 'else' )=>otherlv_6= 'else' ) - // InternalEntities.g:3418:5: ( 'else' )=>otherlv_6= 'else' - { - otherlv_6=(Token)match(input,64,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXIfExpressionAccess().getElseKeyword_6_0()); - - } - - } - - // InternalEntities.g:3424:4: ( (lv_else_7_0= ruleXExpression ) ) - // InternalEntities.g:3425:5: (lv_else_7_0= ruleXExpression ) - { - // InternalEntities.g:3425:5: (lv_else_7_0= ruleXExpression ) - // InternalEntities.g:3426:6: lv_else_7_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXIfExpressionAccess().getElseXExpressionParserRuleCall_6_1_0()); - - } - pushFollow(FOLLOW_2); - lv_else_7_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXIfExpressionRule()); - } - set( - current, - "else", - lv_else_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXIfExpression" - - - // $ANTLR start "entryRuleXSwitchExpression" - // InternalEntities.g:3448:1: entryRuleXSwitchExpression returns [EObject current=null] : iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ; - public final EObject entryRuleXSwitchExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXSwitchExpression = null; - - - try { - // InternalEntities.g:3448:58: (iv_ruleXSwitchExpression= ruleXSwitchExpression EOF ) - // InternalEntities.g:3449:2: iv_ruleXSwitchExpression= ruleXSwitchExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXSwitchExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXSwitchExpression=ruleXSwitchExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXSwitchExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXSwitchExpression" - - - // $ANTLR start "ruleXSwitchExpression" - // InternalEntities.g:3455:1: ruleXSwitchExpression returns [EObject current=null] : ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ; - public final EObject ruleXSwitchExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - Token otherlv_8=null; - Token otherlv_10=null; - Token otherlv_12=null; - Token otherlv_13=null; - Token otherlv_15=null; - EObject lv_declaredParam_3_0 = null; - - EObject lv_switch_5_0 = null; - - EObject lv_declaredParam_7_0 = null; - - EObject lv_switch_9_0 = null; - - EObject lv_cases_11_0 = null; - - EObject lv_default_14_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3461:2: ( ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) ) - // InternalEntities.g:3462:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) - { - // InternalEntities.g:3462:2: ( () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' ) - // InternalEntities.g:3463:3: () otherlv_1= 'switch' ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) otherlv_10= '{' ( (lv_cases_11_0= ruleXCasePart ) )* (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? otherlv_15= '}' - { - // InternalEntities.g:3463:3: () - // InternalEntities.g:3464:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXSwitchExpressionAccess().getXSwitchExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,65,FOLLOW_54); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXSwitchExpressionAccess().getSwitchKeyword_1()); - - } - // InternalEntities.g:3474:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) ) - int alt59=2; - alt59 = dfa59.predict(input); - switch (alt59) { - case 1 : - // InternalEntities.g:3475:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) - { - // InternalEntities.g:3475:4: ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) - // InternalEntities.g:3476:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' - { - // InternalEntities.g:3476:5: ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) - // InternalEntities.g:3477:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) - { - // InternalEntities.g:3487:6: (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) - // InternalEntities.g:3488:7: otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' - { - otherlv_2=(Token)match(input,20,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXSwitchExpressionAccess().getLeftParenthesisKeyword_2_0_0_0_0()); - - } - // InternalEntities.g:3492:7: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3493:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3493:8: (lv_declaredParam_3_0= ruleJvmFormalParameter ) - // InternalEntities.g:3494:9: lv_declaredParam_3_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_0_0_0_1_0()); - - } - pushFollow(FOLLOW_9); - lv_declaredParam_3_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - current, - "declaredParam", - lv_declaredParam_3_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_4=(Token)match(input,18,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_0_0_0_2()); - - } - - } - - - } - - // InternalEntities.g:3517:5: ( (lv_switch_5_0= ruleXExpression ) ) - // InternalEntities.g:3518:6: (lv_switch_5_0= ruleXExpression ) - { - // InternalEntities.g:3518:6: (lv_switch_5_0= ruleXExpression ) - // InternalEntities.g:3519:7: lv_switch_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_0_1_0()); - - } - pushFollow(FOLLOW_40); - lv_switch_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - current, - "switch", - lv_switch_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_6=(Token)match(input,22,FOLLOW_5); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXSwitchExpressionAccess().getRightParenthesisKeyword_2_0_2()); - - } - - } - - - } - break; - case 2 : - // InternalEntities.g:3542:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) - { - // InternalEntities.g:3542:4: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) - // InternalEntities.g:3543:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) - { - // InternalEntities.g:3543:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? - int alt58=2; - alt58 = dfa58.predict(input); - switch (alt58) { - case 1 : - // InternalEntities.g:3544:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) - { - // InternalEntities.g:3553:6: ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) - // InternalEntities.g:3554:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' - { - // InternalEntities.g:3554:7: ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3555:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3555:8: (lv_declaredParam_7_0= ruleJvmFormalParameter ) - // InternalEntities.g:3556:9: lv_declaredParam_7_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_2_1_0_0_0_0()); - - } - pushFollow(FOLLOW_9); - lv_declaredParam_7_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - current, - "declaredParam", - lv_declaredParam_7_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_8=(Token)match(input,18,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_8, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_2_1_0_0_1()); - - } - - } - - - } - break; - - } - - // InternalEntities.g:3579:5: ( (lv_switch_9_0= ruleXExpression ) ) - // InternalEntities.g:3580:6: (lv_switch_9_0= ruleXExpression ) - { - // InternalEntities.g:3580:6: (lv_switch_9_0= ruleXExpression ) - // InternalEntities.g:3581:7: lv_switch_9_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getSwitchXExpressionParserRuleCall_2_1_1_0()); - - } - pushFollow(FOLLOW_5); - lv_switch_9_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - current, - "switch", - lv_switch_9_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - - } - - otherlv_10=(Token)match(input,14,FOLLOW_55); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_10, grammarAccess.getXSwitchExpressionAccess().getLeftCurlyBracketKeyword_3()); - - } - // InternalEntities.g:3604:3: ( (lv_cases_11_0= ruleXCasePart ) )* - loop60: - do { - int alt60=2; - int LA60_0 = input.LA(1); - - if ( (LA60_0==RULE_ID||LA60_0==18||(LA60_0>=20 && LA60_0<=21)||LA60_0==42||LA60_0==67) ) { - alt60=1; - } - - - switch (alt60) { - case 1 : - // InternalEntities.g:3605:4: (lv_cases_11_0= ruleXCasePart ) - { - // InternalEntities.g:3605:4: (lv_cases_11_0= ruleXCasePart ) - // InternalEntities.g:3606:5: lv_cases_11_0= ruleXCasePart - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getCasesXCasePartParserRuleCall_4_0()); - - } - pushFollow(FOLLOW_55); - lv_cases_11_0=ruleXCasePart(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - add( - current, - "cases", - lv_cases_11_0, - "org.eclipse.xtext.xbase.Xbase.XCasePart"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop60; - } - } while (true); - - // InternalEntities.g:3623:3: (otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) )? - int alt61=2; - int LA61_0 = input.LA(1); - - if ( (LA61_0==66) ) { - alt61=1; - } - switch (alt61) { - case 1 : - // InternalEntities.g:3624:4: otherlv_12= 'default' otherlv_13= ':' ( (lv_default_14_0= ruleXExpression ) ) - { - otherlv_12=(Token)match(input,66,FOLLOW_9); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_12, grammarAccess.getXSwitchExpressionAccess().getDefaultKeyword_5_0()); - - } - otherlv_13=(Token)match(input,18,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_13, grammarAccess.getXSwitchExpressionAccess().getColonKeyword_5_1()); - - } - // InternalEntities.g:3632:4: ( (lv_default_14_0= ruleXExpression ) ) - // InternalEntities.g:3633:5: (lv_default_14_0= ruleXExpression ) - { - // InternalEntities.g:3633:5: (lv_default_14_0= ruleXExpression ) - // InternalEntities.g:3634:6: lv_default_14_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSwitchExpressionAccess().getDefaultXExpressionParserRuleCall_5_2_0()); - - } - pushFollow(FOLLOW_56); - lv_default_14_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSwitchExpressionRule()); - } - set( - current, - "default", - lv_default_14_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - otherlv_15=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_15, grammarAccess.getXSwitchExpressionAccess().getRightCurlyBracketKeyword_6()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXSwitchExpression" - - - // $ANTLR start "entryRuleXCasePart" - // InternalEntities.g:3660:1: entryRuleXCasePart returns [EObject current=null] : iv_ruleXCasePart= ruleXCasePart EOF ; - public final EObject entryRuleXCasePart() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXCasePart = null; - - - try { - // InternalEntities.g:3660:50: (iv_ruleXCasePart= ruleXCasePart EOF ) - // InternalEntities.g:3661:2: iv_ruleXCasePart= ruleXCasePart EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXCasePartRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXCasePart=ruleXCasePart(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXCasePart; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXCasePart" - - - // $ANTLR start "ruleXCasePart" - // InternalEntities.g:3667:1: ruleXCasePart returns [EObject current=null] : ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ; - public final EObject ruleXCasePart() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - Token otherlv_4=null; - Token lv_fallThrough_6_0=null; - EObject lv_typeGuard_1_0 = null; - - EObject lv_case_3_0 = null; - - EObject lv_then_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3673:2: ( ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) ) - // InternalEntities.g:3674:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) - { - // InternalEntities.g:3674:2: ( () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) ) - // InternalEntities.g:3675:3: () ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) - { - // InternalEntities.g:3675:3: () - // InternalEntities.g:3676:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXCasePartAccess().getXCasePartAction_0(), - current); - - } - - } - - // InternalEntities.g:3682:3: ( (lv_typeGuard_1_0= ruleJvmTypeReference ) )? - int alt62=2; - int LA62_0 = input.LA(1); - - if ( (LA62_0==RULE_ID||LA62_0==20||LA62_0==42) ) { - alt62=1; - } - switch (alt62) { - case 1 : - // InternalEntities.g:3683:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) - { - // InternalEntities.g:3683:4: (lv_typeGuard_1_0= ruleJvmTypeReference ) - // InternalEntities.g:3684:5: lv_typeGuard_1_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCasePartAccess().getTypeGuardJvmTypeReferenceParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_57); - lv_typeGuard_1_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXCasePartRule()); - } - set( - current, - "typeGuard", - lv_typeGuard_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - // InternalEntities.g:3701:3: (otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) )? - int alt63=2; - int LA63_0 = input.LA(1); - - if ( (LA63_0==67) ) { - alt63=1; - } - switch (alt63) { - case 1 : - // InternalEntities.g:3702:4: otherlv_2= 'case' ( (lv_case_3_0= ruleXExpression ) ) - { - otherlv_2=(Token)match(input,67,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXCasePartAccess().getCaseKeyword_2_0()); - - } - // InternalEntities.g:3706:4: ( (lv_case_3_0= ruleXExpression ) ) - // InternalEntities.g:3707:5: (lv_case_3_0= ruleXExpression ) - { - // InternalEntities.g:3707:5: (lv_case_3_0= ruleXExpression ) - // InternalEntities.g:3708:6: lv_case_3_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCasePartAccess().getCaseXExpressionParserRuleCall_2_1_0()); - - } - pushFollow(FOLLOW_58); - lv_case_3_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXCasePartRule()); - } - set( - current, - "case", - lv_case_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - // InternalEntities.g:3726:3: ( (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) | ( (lv_fallThrough_6_0= ',' ) ) ) - int alt64=2; - int LA64_0 = input.LA(1); - - if ( (LA64_0==18) ) { - alt64=1; - } - else if ( (LA64_0==21) ) { - alt64=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 64, 0, input); - - throw nvae; - } - switch (alt64) { - case 1 : - // InternalEntities.g:3727:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) - { - // InternalEntities.g:3727:4: (otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) ) - // InternalEntities.g:3728:5: otherlv_4= ':' ( (lv_then_5_0= ruleXExpression ) ) - { - otherlv_4=(Token)match(input,18,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXCasePartAccess().getColonKeyword_3_0_0()); - - } - // InternalEntities.g:3732:5: ( (lv_then_5_0= ruleXExpression ) ) - // InternalEntities.g:3733:6: (lv_then_5_0= ruleXExpression ) - { - // InternalEntities.g:3733:6: (lv_then_5_0= ruleXExpression ) - // InternalEntities.g:3734:7: lv_then_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCasePartAccess().getThenXExpressionParserRuleCall_3_0_1_0()); - - } - pushFollow(FOLLOW_2); - lv_then_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXCasePartRule()); - } - set( - current, - "then", - lv_then_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:3753:4: ( (lv_fallThrough_6_0= ',' ) ) - { - // InternalEntities.g:3753:4: ( (lv_fallThrough_6_0= ',' ) ) - // InternalEntities.g:3754:5: (lv_fallThrough_6_0= ',' ) - { - // InternalEntities.g:3754:5: (lv_fallThrough_6_0= ',' ) - // InternalEntities.g:3755:6: lv_fallThrough_6_0= ',' - { - lv_fallThrough_6_0=(Token)match(input,21,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_fallThrough_6_0, grammarAccess.getXCasePartAccess().getFallThroughCommaKeyword_3_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXCasePartRule()); - } - setWithLastConsumed(current, "fallThrough", lv_fallThrough_6_0 != null, ","); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXCasePart" - - - // $ANTLR start "entryRuleXForLoopExpression" - // InternalEntities.g:3772:1: entryRuleXForLoopExpression returns [EObject current=null] : iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ; - public final EObject entryRuleXForLoopExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXForLoopExpression = null; - - - try { - // InternalEntities.g:3772:59: (iv_ruleXForLoopExpression= ruleXForLoopExpression EOF ) - // InternalEntities.g:3773:2: iv_ruleXForLoopExpression= ruleXForLoopExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXForLoopExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXForLoopExpression=ruleXForLoopExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXForLoopExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXForLoopExpression" - - - // $ANTLR start "ruleXForLoopExpression" - // InternalEntities.g:3779:1: ruleXForLoopExpression returns [EObject current=null] : ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ; - public final EObject ruleXForLoopExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_declaredParam_3_0 = null; - - EObject lv_forExpression_5_0 = null; - - EObject lv_eachExpression_7_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3785:2: ( ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) ) - // InternalEntities.g:3786:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) - { - // InternalEntities.g:3786:2: ( ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) ) - // InternalEntities.g:3787:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_forExpression_5_0= ruleXExpression ) ) otherlv_6= ')' ( (lv_eachExpression_7_0= ruleXExpression ) ) - { - // InternalEntities.g:3787:3: ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) - // InternalEntities.g:3788:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) - { - // InternalEntities.g:3801:4: ( () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) - // InternalEntities.g:3802:5: () otherlv_1= 'for' otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' - { - // InternalEntities.g:3802:5: () - // InternalEntities.g:3803:6: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXForLoopExpressionAccess().getXForLoopExpressionAction_0_0_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,68,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXForLoopExpressionAccess().getForKeyword_0_0_1()); - - } - otherlv_2=(Token)match(input,20,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXForLoopExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - - } - // InternalEntities.g:3817:5: ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) - // InternalEntities.g:3818:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) - { - // InternalEntities.g:3818:6: (lv_declaredParam_3_0= ruleJvmFormalParameter ) - // InternalEntities.g:3819:7: lv_declaredParam_3_0= ruleJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getDeclaredParamJvmFormalParameterParserRuleCall_0_0_3_0()); - - } - pushFollow(FOLLOW_9); - lv_declaredParam_3_0=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); - } - set( - current, - "declaredParam", - lv_declaredParam_3_0, - "org.eclipse.xtext.xbase.Xbase.JvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_4=(Token)match(input,18,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXForLoopExpressionAccess().getColonKeyword_0_0_4()); - - } - - } - - - } - - // InternalEntities.g:3842:3: ( (lv_forExpression_5_0= ruleXExpression ) ) - // InternalEntities.g:3843:4: (lv_forExpression_5_0= ruleXExpression ) - { - // InternalEntities.g:3843:4: (lv_forExpression_5_0= ruleXExpression ) - // InternalEntities.g:3844:5: lv_forExpression_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getForExpressionXExpressionParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_40); - lv_forExpression_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); - } - set( - current, - "forExpression", - lv_forExpression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_6=(Token)match(input,22,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXForLoopExpressionAccess().getRightParenthesisKeyword_2()); - - } - // InternalEntities.g:3865:3: ( (lv_eachExpression_7_0= ruleXExpression ) ) - // InternalEntities.g:3866:4: (lv_eachExpression_7_0= ruleXExpression ) - { - // InternalEntities.g:3866:4: (lv_eachExpression_7_0= ruleXExpression ) - // InternalEntities.g:3867:5: lv_eachExpression_7_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_3_0()); - - } - pushFollow(FOLLOW_2); - lv_eachExpression_7_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXForLoopExpressionRule()); - } - set( - current, - "eachExpression", - lv_eachExpression_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXForLoopExpression" - - - // $ANTLR start "entryRuleXBasicForLoopExpression" - // InternalEntities.g:3888:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ; - public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXBasicForLoopExpression = null; - - - try { - // InternalEntities.g:3888:64: (iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ) - // InternalEntities.g:3889:2: iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXBasicForLoopExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXBasicForLoopExpression=ruleXBasicForLoopExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXBasicForLoopExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXBasicForLoopExpression" - - - // $ANTLR start "ruleXBasicForLoopExpression" - // InternalEntities.g:3895:1: ruleXBasicForLoopExpression returns [EObject current=null] : ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ; - public final EObject ruleXBasicForLoopExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_6=null; - Token otherlv_8=null; - Token otherlv_10=null; - Token otherlv_12=null; - EObject lv_initExpressions_3_0 = null; - - EObject lv_initExpressions_5_0 = null; - - EObject lv_expression_7_0 = null; - - EObject lv_updateExpressions_9_0 = null; - - EObject lv_updateExpressions_11_0 = null; - - EObject lv_eachExpression_13_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:3901:2: ( ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) ) - // InternalEntities.g:3902:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) - { - // InternalEntities.g:3902:2: ( () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) ) - // InternalEntities.g:3903:3: () otherlv_1= 'for' otherlv_2= '(' ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? otherlv_6= ';' ( (lv_expression_7_0= ruleXExpression ) )? otherlv_8= ';' ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? otherlv_12= ')' ( (lv_eachExpression_13_0= ruleXExpression ) ) - { - // InternalEntities.g:3903:3: () - // InternalEntities.g:3904:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXBasicForLoopExpressionAccess().getXBasicForLoopExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,68,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXBasicForLoopExpressionAccess().getForKeyword_1()); - - } - otherlv_2=(Token)match(input,20,FOLLOW_59); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXBasicForLoopExpressionAccess().getLeftParenthesisKeyword_2()); - - } - // InternalEntities.g:3918:3: ( ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* )? - int alt66=2; - int LA66_0 = input.LA(1); - - if ( ((LA66_0>=RULE_STRING && LA66_0<=RULE_ID)||LA66_0==14||LA66_0==17||LA66_0==20||LA66_0==29||(LA66_0>=45 && LA66_0<=46)||LA66_0==51||(LA66_0>=58 && LA66_0<=59)||LA66_0==63||LA66_0==65||(LA66_0>=68 && LA66_0<=84)||LA66_0==86) ) { - alt66=1; - } - switch (alt66) { - case 1 : - // InternalEntities.g:3919:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* - { - // InternalEntities.g:3919:4: ( (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:3920:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:3920:5: (lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:3921:6: lv_initExpressions_3_0= ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_0_0()); - - } - pushFollow(FOLLOW_60); - lv_initExpressions_3_0=ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - current, - "initExpressions", - lv_initExpressions_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:3938:4: (otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) )* - loop65: - do { - int alt65=2; - int LA65_0 = input.LA(1); - - if ( (LA65_0==21) ) { - alt65=1; - } - - - switch (alt65) { - case 1 : - // InternalEntities.g:3939:5: otherlv_4= ',' ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) - { - otherlv_4=(Token)match(input,21,FOLLOW_61); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_3_1_0()); - - } - // InternalEntities.g:3943:5: ( (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:3944:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:3944:6: (lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:3945:7: lv_initExpressions_5_0= ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getInitExpressionsXExpressionOrVarDeclarationParserRuleCall_3_1_1_0()); - - } - pushFollow(FOLLOW_60); - lv_initExpressions_5_0=ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - current, - "initExpressions", - lv_initExpressions_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop65; - } - } while (true); - - - } - break; - - } - - otherlv_6=(Token)match(input,62,FOLLOW_62); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_4()); - - } - // InternalEntities.g:3968:3: ( (lv_expression_7_0= ruleXExpression ) )? - int alt67=2; - int LA67_0 = input.LA(1); - - if ( ((LA67_0>=RULE_STRING && LA67_0<=RULE_ID)||LA67_0==14||LA67_0==17||LA67_0==20||LA67_0==29||(LA67_0>=45 && LA67_0<=46)||LA67_0==51||(LA67_0>=58 && LA67_0<=59)||LA67_0==63||LA67_0==65||(LA67_0>=68 && LA67_0<=70)||(LA67_0>=73 && LA67_0<=84)||LA67_0==86) ) { - alt67=1; - } - switch (alt67) { - case 1 : - // InternalEntities.g:3969:4: (lv_expression_7_0= ruleXExpression ) - { - // InternalEntities.g:3969:4: (lv_expression_7_0= ruleXExpression ) - // InternalEntities.g:3970:5: lv_expression_7_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getExpressionXExpressionParserRuleCall_5_0()); - - } - pushFollow(FOLLOW_63); - lv_expression_7_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - set( - current, - "expression", - lv_expression_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - otherlv_8=(Token)match(input,62,FOLLOW_64); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_8, grammarAccess.getXBasicForLoopExpressionAccess().getSemicolonKeyword_6()); - - } - // InternalEntities.g:3991:3: ( ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* )? - int alt69=2; - int LA69_0 = input.LA(1); - - if ( ((LA69_0>=RULE_STRING && LA69_0<=RULE_ID)||LA69_0==14||LA69_0==17||LA69_0==20||LA69_0==29||(LA69_0>=45 && LA69_0<=46)||LA69_0==51||(LA69_0>=58 && LA69_0<=59)||LA69_0==63||LA69_0==65||(LA69_0>=68 && LA69_0<=70)||(LA69_0>=73 && LA69_0<=84)||LA69_0==86) ) { - alt69=1; - } - switch (alt69) { - case 1 : - // InternalEntities.g:3992:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* - { - // InternalEntities.g:3992:4: ( (lv_updateExpressions_9_0= ruleXExpression ) ) - // InternalEntities.g:3993:5: (lv_updateExpressions_9_0= ruleXExpression ) - { - // InternalEntities.g:3993:5: (lv_updateExpressions_9_0= ruleXExpression ) - // InternalEntities.g:3994:6: lv_updateExpressions_9_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_0_0()); - - } - pushFollow(FOLLOW_13); - lv_updateExpressions_9_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - current, - "updateExpressions", - lv_updateExpressions_9_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4011:4: (otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) )* - loop68: - do { - int alt68=2; - int LA68_0 = input.LA(1); - - if ( (LA68_0==21) ) { - alt68=1; - } - - - switch (alt68) { - case 1 : - // InternalEntities.g:4012:5: otherlv_10= ',' ( (lv_updateExpressions_11_0= ruleXExpression ) ) - { - otherlv_10=(Token)match(input,21,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_10, grammarAccess.getXBasicForLoopExpressionAccess().getCommaKeyword_7_1_0()); - - } - // InternalEntities.g:4016:5: ( (lv_updateExpressions_11_0= ruleXExpression ) ) - // InternalEntities.g:4017:6: (lv_updateExpressions_11_0= ruleXExpression ) - { - // InternalEntities.g:4017:6: (lv_updateExpressions_11_0= ruleXExpression ) - // InternalEntities.g:4018:7: lv_updateExpressions_11_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getUpdateExpressionsXExpressionParserRuleCall_7_1_1_0()); - - } - pushFollow(FOLLOW_13); - lv_updateExpressions_11_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - add( - current, - "updateExpressions", - lv_updateExpressions_11_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop68; - } - } while (true); - - - } - break; - - } - - otherlv_12=(Token)match(input,22,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_12, grammarAccess.getXBasicForLoopExpressionAccess().getRightParenthesisKeyword_8()); - - } - // InternalEntities.g:4041:3: ( (lv_eachExpression_13_0= ruleXExpression ) ) - // InternalEntities.g:4042:4: (lv_eachExpression_13_0= ruleXExpression ) - { - // InternalEntities.g:4042:4: (lv_eachExpression_13_0= ruleXExpression ) - // InternalEntities.g:4043:5: lv_eachExpression_13_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBasicForLoopExpressionAccess().getEachExpressionXExpressionParserRuleCall_9_0()); - - } - pushFollow(FOLLOW_2); - lv_eachExpression_13_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBasicForLoopExpressionRule()); - } - set( - current, - "eachExpression", - lv_eachExpression_13_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXBasicForLoopExpression" - - - // $ANTLR start "entryRuleXWhileExpression" - // InternalEntities.g:4064:1: entryRuleXWhileExpression returns [EObject current=null] : iv_ruleXWhileExpression= ruleXWhileExpression EOF ; - public final EObject entryRuleXWhileExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXWhileExpression = null; - - - try { - // InternalEntities.g:4064:57: (iv_ruleXWhileExpression= ruleXWhileExpression EOF ) - // InternalEntities.g:4065:2: iv_ruleXWhileExpression= ruleXWhileExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXWhileExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXWhileExpression=ruleXWhileExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXWhileExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXWhileExpression" - - - // $ANTLR start "ruleXWhileExpression" - // InternalEntities.g:4071:1: ruleXWhileExpression returns [EObject current=null] : ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ; - public final EObject ruleXWhileExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - EObject lv_predicate_3_0 = null; - - EObject lv_body_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4077:2: ( ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) ) - // InternalEntities.g:4078:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) - { - // InternalEntities.g:4078:2: ( () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) ) - // InternalEntities.g:4079:3: () otherlv_1= 'while' otherlv_2= '(' ( (lv_predicate_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_body_5_0= ruleXExpression ) ) - { - // InternalEntities.g:4079:3: () - // InternalEntities.g:4080:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXWhileExpressionAccess().getXWhileExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,69,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXWhileExpressionAccess().getWhileKeyword_1()); - - } - otherlv_2=(Token)match(input,20,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXWhileExpressionAccess().getLeftParenthesisKeyword_2()); - - } - // InternalEntities.g:4094:3: ( (lv_predicate_3_0= ruleXExpression ) ) - // InternalEntities.g:4095:4: (lv_predicate_3_0= ruleXExpression ) - { - // InternalEntities.g:4095:4: (lv_predicate_3_0= ruleXExpression ) - // InternalEntities.g:4096:5: lv_predicate_3_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXWhileExpressionAccess().getPredicateXExpressionParserRuleCall_3_0()); - - } - pushFollow(FOLLOW_40); - lv_predicate_3_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); - } - set( - current, - "predicate", - lv_predicate_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_4=(Token)match(input,22,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXWhileExpressionAccess().getRightParenthesisKeyword_4()); - - } - // InternalEntities.g:4117:3: ( (lv_body_5_0= ruleXExpression ) ) - // InternalEntities.g:4118:4: (lv_body_5_0= ruleXExpression ) - { - // InternalEntities.g:4118:4: (lv_body_5_0= ruleXExpression ) - // InternalEntities.g:4119:5: lv_body_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXWhileExpressionAccess().getBodyXExpressionParserRuleCall_5_0()); - - } - pushFollow(FOLLOW_2); - lv_body_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXWhileExpressionRule()); - } - set( - current, - "body", - lv_body_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXWhileExpression" - - - // $ANTLR start "entryRuleXDoWhileExpression" - // InternalEntities.g:4140:1: entryRuleXDoWhileExpression returns [EObject current=null] : iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ; - public final EObject entryRuleXDoWhileExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXDoWhileExpression = null; - - - try { - // InternalEntities.g:4140:59: (iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF ) - // InternalEntities.g:4141:2: iv_ruleXDoWhileExpression= ruleXDoWhileExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXDoWhileExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXDoWhileExpression=ruleXDoWhileExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXDoWhileExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXDoWhileExpression" - - - // $ANTLR start "ruleXDoWhileExpression" - // InternalEntities.g:4147:1: ruleXDoWhileExpression returns [EObject current=null] : ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ; - public final EObject ruleXDoWhileExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_body_2_0 = null; - - EObject lv_predicate_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4153:2: ( ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) ) - // InternalEntities.g:4154:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) - { - // InternalEntities.g:4154:2: ( () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' ) - // InternalEntities.g:4155:3: () otherlv_1= 'do' ( (lv_body_2_0= ruleXExpression ) ) otherlv_3= 'while' otherlv_4= '(' ( (lv_predicate_5_0= ruleXExpression ) ) otherlv_6= ')' - { - // InternalEntities.g:4155:3: () - // InternalEntities.g:4156:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXDoWhileExpressionAccess().getXDoWhileExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,70,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXDoWhileExpressionAccess().getDoKeyword_1()); - - } - // InternalEntities.g:4166:3: ( (lv_body_2_0= ruleXExpression ) ) - // InternalEntities.g:4167:4: (lv_body_2_0= ruleXExpression ) - { - // InternalEntities.g:4167:4: (lv_body_2_0= ruleXExpression ) - // InternalEntities.g:4168:5: lv_body_2_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getBodyXExpressionParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_65); - lv_body_2_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); - } - set( - current, - "body", - lv_body_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_3=(Token)match(input,69,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getXDoWhileExpressionAccess().getWhileKeyword_3()); - - } - otherlv_4=(Token)match(input,20,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXDoWhileExpressionAccess().getLeftParenthesisKeyword_4()); - - } - // InternalEntities.g:4193:3: ( (lv_predicate_5_0= ruleXExpression ) ) - // InternalEntities.g:4194:4: (lv_predicate_5_0= ruleXExpression ) - { - // InternalEntities.g:4194:4: (lv_predicate_5_0= ruleXExpression ) - // InternalEntities.g:4195:5: lv_predicate_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXDoWhileExpressionAccess().getPredicateXExpressionParserRuleCall_5_0()); - - } - pushFollow(FOLLOW_40); - lv_predicate_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXDoWhileExpressionRule()); - } - set( - current, - "predicate", - lv_predicate_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_6=(Token)match(input,22,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXDoWhileExpressionAccess().getRightParenthesisKeyword_6()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXDoWhileExpression" - - - // $ANTLR start "entryRuleXBlockExpression" - // InternalEntities.g:4220:1: entryRuleXBlockExpression returns [EObject current=null] : iv_ruleXBlockExpression= ruleXBlockExpression EOF ; - public final EObject entryRuleXBlockExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXBlockExpression = null; - - - try { - // InternalEntities.g:4220:57: (iv_ruleXBlockExpression= ruleXBlockExpression EOF ) - // InternalEntities.g:4221:2: iv_ruleXBlockExpression= ruleXBlockExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXBlockExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXBlockExpression=ruleXBlockExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXBlockExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXBlockExpression" - - - // $ANTLR start "ruleXBlockExpression" - // InternalEntities.g:4227:1: ruleXBlockExpression returns [EObject current=null] : ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ; - public final EObject ruleXBlockExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_4=null; - EObject lv_expressions_2_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4233:2: ( ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) ) - // InternalEntities.g:4234:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) - { - // InternalEntities.g:4234:2: ( () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' ) - // InternalEntities.g:4235:3: () otherlv_1= '{' ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* otherlv_4= '}' - { - // InternalEntities.g:4235:3: () - // InternalEntities.g:4236:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXBlockExpressionAccess().getXBlockExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,14,FOLLOW_66); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXBlockExpressionAccess().getLeftCurlyBracketKeyword_1()); - - } - // InternalEntities.g:4246:3: ( ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? )* - loop71: - do { - int alt71=2; - int LA71_0 = input.LA(1); - - if ( ((LA71_0>=RULE_STRING && LA71_0<=RULE_ID)||LA71_0==14||LA71_0==17||LA71_0==20||LA71_0==29||(LA71_0>=45 && LA71_0<=46)||LA71_0==51||(LA71_0>=58 && LA71_0<=59)||LA71_0==63||LA71_0==65||(LA71_0>=68 && LA71_0<=84)||LA71_0==86) ) { - alt71=1; - } - - - switch (alt71) { - case 1 : - // InternalEntities.g:4247:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) (otherlv_3= ';' )? - { - // InternalEntities.g:4247:4: ( (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) ) - // InternalEntities.g:4248:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) - { - // InternalEntities.g:4248:5: (lv_expressions_2_0= ruleXExpressionOrVarDeclaration ) - // InternalEntities.g:4249:6: lv_expressions_2_0= ruleXExpressionOrVarDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXBlockExpressionAccess().getExpressionsXExpressionOrVarDeclarationParserRuleCall_2_0_0()); - - } - pushFollow(FOLLOW_67); - lv_expressions_2_0=ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXBlockExpressionRule()); - } - add( - current, - "expressions", - lv_expressions_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpressionOrVarDeclaration"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4266:4: (otherlv_3= ';' )? - int alt70=2; - int LA70_0 = input.LA(1); - - if ( (LA70_0==62) ) { - alt70=1; - } - switch (alt70) { - case 1 : - // InternalEntities.g:4267:5: otherlv_3= ';' - { - otherlv_3=(Token)match(input,62,FOLLOW_66); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); - - } - - } - break; - - } - - - } - break; - - default : - break loop71; - } - } while (true); - - otherlv_4=(Token)match(input,15,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXBlockExpressionAccess().getRightCurlyBracketKeyword_3()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXBlockExpression" - - - // $ANTLR start "entryRuleXExpressionOrVarDeclaration" - // InternalEntities.g:4281:1: entryRuleXExpressionOrVarDeclaration returns [EObject current=null] : iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ; - public final EObject entryRuleXExpressionOrVarDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXExpressionOrVarDeclaration = null; - - - try { - // InternalEntities.g:4281:68: (iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF ) - // InternalEntities.g:4282:2: iv_ruleXExpressionOrVarDeclaration= ruleXExpressionOrVarDeclaration EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXExpressionOrVarDeclaration=ruleXExpressionOrVarDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXExpressionOrVarDeclaration; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXExpressionOrVarDeclaration" - - - // $ANTLR start "ruleXExpressionOrVarDeclaration" - // InternalEntities.g:4288:1: ruleXExpressionOrVarDeclaration returns [EObject current=null] : (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ; - public final EObject ruleXExpressionOrVarDeclaration() throws RecognitionException { - EObject current = null; - - EObject this_XVariableDeclaration_0 = null; - - EObject this_XExpression_1 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4294:2: ( (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) ) - // InternalEntities.g:4295:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) - { - // InternalEntities.g:4295:2: (this_XVariableDeclaration_0= ruleXVariableDeclaration | this_XExpression_1= ruleXExpression ) - int alt72=2; - int LA72_0 = input.LA(1); - - if ( ((LA72_0>=71 && LA72_0<=72)) ) { - alt72=1; - } - else if ( ((LA72_0>=RULE_STRING && LA72_0<=RULE_ID)||LA72_0==14||LA72_0==17||LA72_0==20||LA72_0==29||(LA72_0>=45 && LA72_0<=46)||LA72_0==51||(LA72_0>=58 && LA72_0<=59)||LA72_0==63||LA72_0==65||(LA72_0>=68 && LA72_0<=70)||(LA72_0>=73 && LA72_0<=84)||LA72_0==86) ) { - alt72=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 72, 0, input); - - throw nvae; - } - switch (alt72) { - case 1 : - // InternalEntities.g:4296:3: this_XVariableDeclaration_0= ruleXVariableDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXVariableDeclarationParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_XVariableDeclaration_0=ruleXVariableDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XVariableDeclaration_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:4305:3: this_XExpression_1= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXExpressionOrVarDeclarationAccess().getXExpressionParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_XExpression_1=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XExpression_1; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXExpressionOrVarDeclaration" - - - // $ANTLR start "entryRuleXVariableDeclaration" - // InternalEntities.g:4317:1: entryRuleXVariableDeclaration returns [EObject current=null] : iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ; - public final EObject entryRuleXVariableDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXVariableDeclaration = null; - - - try { - // InternalEntities.g:4317:61: (iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF ) - // InternalEntities.g:4318:2: iv_ruleXVariableDeclaration= ruleXVariableDeclaration EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXVariableDeclarationRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXVariableDeclaration=ruleXVariableDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXVariableDeclaration; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXVariableDeclaration" - - - // $ANTLR start "ruleXVariableDeclaration" - // InternalEntities.g:4324:1: ruleXVariableDeclaration returns [EObject current=null] : ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ; - public final EObject ruleXVariableDeclaration() throws RecognitionException { - EObject current = null; - - Token lv_writeable_1_0=null; - Token otherlv_2=null; - Token otherlv_6=null; - EObject lv_type_3_0 = null; - - AntlrDatatypeRuleToken lv_name_4_0 = null; - - AntlrDatatypeRuleToken lv_name_5_0 = null; - - EObject lv_right_7_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4330:2: ( ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) ) - // InternalEntities.g:4331:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) - { - // InternalEntities.g:4331:2: ( () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? ) - // InternalEntities.g:4332:3: () ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? - { - // InternalEntities.g:4332:3: () - // InternalEntities.g:4333:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXVariableDeclarationAccess().getXVariableDeclarationAction_0(), - current); - - } - - } - - // InternalEntities.g:4339:3: ( ( (lv_writeable_1_0= 'var' ) ) | otherlv_2= 'val' ) - int alt73=2; - int LA73_0 = input.LA(1); - - if ( (LA73_0==71) ) { - alt73=1; - } - else if ( (LA73_0==72) ) { - alt73=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 73, 0, input); - - throw nvae; - } - switch (alt73) { - case 1 : - // InternalEntities.g:4340:4: ( (lv_writeable_1_0= 'var' ) ) - { - // InternalEntities.g:4340:4: ( (lv_writeable_1_0= 'var' ) ) - // InternalEntities.g:4341:5: (lv_writeable_1_0= 'var' ) - { - // InternalEntities.g:4341:5: (lv_writeable_1_0= 'var' ) - // InternalEntities.g:4342:6: lv_writeable_1_0= 'var' - { - lv_writeable_1_0=(Token)match(input,71,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_writeable_1_0, grammarAccess.getXVariableDeclarationAccess().getWriteableVarKeyword_1_0_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXVariableDeclarationRule()); - } - setWithLastConsumed(current, "writeable", lv_writeable_1_0 != null, "var"); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:4355:4: otherlv_2= 'val' - { - otherlv_2=(Token)match(input,72,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXVariableDeclarationAccess().getValKeyword_1_1()); - - } - - } - break; - - } - - // InternalEntities.g:4360:3: ( ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) | ( (lv_name_5_0= ruleValidID ) ) ) - int alt74=2; - int LA74_0 = input.LA(1); - - if ( (LA74_0==RULE_ID) ) { - int LA74_1 = input.LA(2); - - if ( (synpred29_InternalEntities()) ) { - alt74=1; - } - else if ( (true) ) { - alt74=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 74, 1, input); - - throw nvae; - } - } - else if ( (LA74_0==20) && (synpred29_InternalEntities())) { - alt74=1; - } - else if ( (LA74_0==42) && (synpred29_InternalEntities())) { - alt74=1; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 74, 0, input); - - throw nvae; - } - switch (alt74) { - case 1 : - // InternalEntities.g:4361:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) - { - // InternalEntities.g:4361:4: ( ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) ) - // InternalEntities.g:4362:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) )=> ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) - { - // InternalEntities.g:4375:5: ( ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) ) - // InternalEntities.g:4376:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) ( (lv_name_4_0= ruleValidID ) ) - { - // InternalEntities.g:4376:6: ( (lv_type_3_0= ruleJvmTypeReference ) ) - // InternalEntities.g:4377:7: (lv_type_3_0= ruleJvmTypeReference ) - { - // InternalEntities.g:4377:7: (lv_type_3_0= ruleJvmTypeReference ) - // InternalEntities.g:4378:8: lv_type_3_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getTypeJvmTypeReferenceParserRuleCall_2_0_0_0_0()); - - } - pushFollow(FOLLOW_4); - lv_type_3_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - current, - "type", - lv_type_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4395:6: ( (lv_name_4_0= ruleValidID ) ) - // InternalEntities.g:4396:7: (lv_name_4_0= ruleValidID ) - { - // InternalEntities.g:4396:7: (lv_name_4_0= ruleValidID ) - // InternalEntities.g:4397:8: lv_name_4_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_0_0_1_0()); - - } - pushFollow(FOLLOW_68); - lv_name_4_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - current, - "name", - lv_name_4_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:4417:4: ( (lv_name_5_0= ruleValidID ) ) - { - // InternalEntities.g:4417:4: ( (lv_name_5_0= ruleValidID ) ) - // InternalEntities.g:4418:5: (lv_name_5_0= ruleValidID ) - { - // InternalEntities.g:4418:5: (lv_name_5_0= ruleValidID ) - // InternalEntities.g:4419:6: lv_name_5_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getNameValidIDParserRuleCall_2_1_0()); - - } - pushFollow(FOLLOW_68); - lv_name_5_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - current, - "name", - lv_name_5_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - // InternalEntities.g:4437:3: (otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) )? - int alt75=2; - int LA75_0 = input.LA(1); - - if ( (LA75_0==23) ) { - alt75=1; - } - switch (alt75) { - case 1 : - // InternalEntities.g:4438:4: otherlv_6= '=' ( (lv_right_7_0= ruleXExpression ) ) - { - otherlv_6=(Token)match(input,23,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXVariableDeclarationAccess().getEqualsSignKeyword_3_0()); - - } - // InternalEntities.g:4442:4: ( (lv_right_7_0= ruleXExpression ) ) - // InternalEntities.g:4443:5: (lv_right_7_0= ruleXExpression ) - { - // InternalEntities.g:4443:5: (lv_right_7_0= ruleXExpression ) - // InternalEntities.g:4444:6: lv_right_7_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXVariableDeclarationAccess().getRightXExpressionParserRuleCall_3_1_0()); - - } - pushFollow(FOLLOW_2); - lv_right_7_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXVariableDeclarationRule()); - } - set( - current, - "right", - lv_right_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXVariableDeclaration" - - - // $ANTLR start "entryRuleJvmFormalParameter" - // InternalEntities.g:4466:1: entryRuleJvmFormalParameter returns [EObject current=null] : iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ; - public final EObject entryRuleJvmFormalParameter() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmFormalParameter = null; - - - try { - // InternalEntities.g:4466:59: (iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF ) - // InternalEntities.g:4467:2: iv_ruleJvmFormalParameter= ruleJvmFormalParameter EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmFormalParameterRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmFormalParameter=ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmFormalParameter; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmFormalParameter" - - - // $ANTLR start "ruleJvmFormalParameter" - // InternalEntities.g:4473:1: ruleJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ; - public final EObject ruleJvmFormalParameter() throws RecognitionException { - EObject current = null; - - EObject lv_parameterType_0_0 = null; - - AntlrDatatypeRuleToken lv_name_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4479:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) ) - // InternalEntities.g:4480:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) - { - // InternalEntities.g:4480:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) ) - // InternalEntities.g:4481:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? ( (lv_name_1_0= ruleValidID ) ) - { - // InternalEntities.g:4481:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) )? - int alt76=2; - int LA76_0 = input.LA(1); - - if ( (LA76_0==RULE_ID) ) { - int LA76_1 = input.LA(2); - - if ( (LA76_1==RULE_ID||LA76_1==29||LA76_1==55||LA76_1==59) ) { - alt76=1; - } - } - else if ( (LA76_0==20||LA76_0==42) ) { - alt76=1; - } - switch (alt76) { - case 1 : - // InternalEntities.g:4482:4: (lv_parameterType_0_0= ruleJvmTypeReference ) - { - // InternalEntities.g:4482:4: (lv_parameterType_0_0= ruleJvmTypeReference ) - // InternalEntities.g:4483:5: lv_parameterType_0_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - - } - pushFollow(FOLLOW_4); - lv_parameterType_0_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); - } - set( - current, - "parameterType", - lv_parameterType_0_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - // InternalEntities.g:4500:3: ( (lv_name_1_0= ruleValidID ) ) - // InternalEntities.g:4501:4: (lv_name_1_0= ruleValidID ) - { - // InternalEntities.g:4501:4: (lv_name_1_0= ruleValidID ) - // InternalEntities.g:4502:5: lv_name_1_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_name_1_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmFormalParameterRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmFormalParameter" - - - // $ANTLR start "entryRuleFullJvmFormalParameter" - // InternalEntities.g:4523:1: entryRuleFullJvmFormalParameter returns [EObject current=null] : iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ; - public final EObject entryRuleFullJvmFormalParameter() throws RecognitionException { - EObject current = null; - - EObject iv_ruleFullJvmFormalParameter = null; - - - try { - // InternalEntities.g:4523:63: (iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF ) - // InternalEntities.g:4524:2: iv_ruleFullJvmFormalParameter= ruleFullJvmFormalParameter EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getFullJvmFormalParameterRule()); - } - pushFollow(FOLLOW_1); - iv_ruleFullJvmFormalParameter=ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleFullJvmFormalParameter; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleFullJvmFormalParameter" - - - // $ANTLR start "ruleFullJvmFormalParameter" - // InternalEntities.g:4530:1: ruleFullJvmFormalParameter returns [EObject current=null] : ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ; - public final EObject ruleFullJvmFormalParameter() throws RecognitionException { - EObject current = null; - - EObject lv_parameterType_0_0 = null; - - AntlrDatatypeRuleToken lv_name_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4536:2: ( ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) ) - // InternalEntities.g:4537:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) - { - // InternalEntities.g:4537:2: ( ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) ) - // InternalEntities.g:4538:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) ( (lv_name_1_0= ruleValidID ) ) - { - // InternalEntities.g:4538:3: ( (lv_parameterType_0_0= ruleJvmTypeReference ) ) - // InternalEntities.g:4539:4: (lv_parameterType_0_0= ruleJvmTypeReference ) - { - // InternalEntities.g:4539:4: (lv_parameterType_0_0= ruleJvmTypeReference ) - // InternalEntities.g:4540:5: lv_parameterType_0_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getParameterTypeJvmTypeReferenceParserRuleCall_0_0()); - - } - pushFollow(FOLLOW_4); - lv_parameterType_0_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); - } - set( - current, - "parameterType", - lv_parameterType_0_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4557:3: ( (lv_name_1_0= ruleValidID ) ) - // InternalEntities.g:4558:4: (lv_name_1_0= ruleValidID ) - { - // InternalEntities.g:4558:4: (lv_name_1_0= ruleValidID ) - // InternalEntities.g:4559:5: lv_name_1_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getFullJvmFormalParameterAccess().getNameValidIDParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_name_1_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getFullJvmFormalParameterRule()); - } - set( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleFullJvmFormalParameter" - - - // $ANTLR start "entryRuleXFeatureCall" - // InternalEntities.g:4580:1: entryRuleXFeatureCall returns [EObject current=null] : iv_ruleXFeatureCall= ruleXFeatureCall EOF ; - public final EObject entryRuleXFeatureCall() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXFeatureCall = null; - - - try { - // InternalEntities.g:4580:53: (iv_ruleXFeatureCall= ruleXFeatureCall EOF ) - // InternalEntities.g:4581:2: iv_ruleXFeatureCall= ruleXFeatureCall EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXFeatureCallRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXFeatureCall=ruleXFeatureCall(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXFeatureCall; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXFeatureCall" - - - // $ANTLR start "ruleXFeatureCall" - // InternalEntities.g:4587:1: ruleXFeatureCall returns [EObject current=null] : ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ; - public final EObject ruleXFeatureCall() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token lv_explicitOperationCall_7_0=null; - Token otherlv_10=null; - Token otherlv_12=null; - EObject lv_typeArguments_2_0 = null; - - EObject lv_typeArguments_4_0 = null; - - EObject lv_featureCallArguments_8_0 = null; - - EObject lv_featureCallArguments_9_0 = null; - - EObject lv_featureCallArguments_11_0 = null; - - EObject lv_featureCallArguments_13_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4593:2: ( ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) ) - // InternalEntities.g:4594:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) - { - // InternalEntities.g:4594:2: ( () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? ) - // InternalEntities.g:4595:3: () (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? ( ( ruleIdOrSuper ) ) ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? - { - // InternalEntities.g:4595:3: () - // InternalEntities.g:4596:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXFeatureCallAccess().getXFeatureCallAction_0(), - current); - - } - - } - - // InternalEntities.g:4602:3: (otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' )? - int alt78=2; - int LA78_0 = input.LA(1); - - if ( (LA78_0==29) ) { - alt78=1; - } - switch (alt78) { - case 1 : - // InternalEntities.g:4603:4: otherlv_1= '<' ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' - { - otherlv_1=(Token)match(input,29,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXFeatureCallAccess().getLessThanSignKeyword_1_0()); - - } - // InternalEntities.g:4607:4: ( (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:4608:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:4608:5: (lv_typeArguments_2_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:4609:6: lv_typeArguments_2_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_37); - lv_typeArguments_2_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - current, - "typeArguments", - lv_typeArguments_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4626:4: (otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) )* - loop77: - do { - int alt77=2; - int LA77_0 = input.LA(1); - - if ( (LA77_0==21) ) { - alt77=1; - } - - - switch (alt77) { - case 1 : - // InternalEntities.g:4627:5: otherlv_3= ',' ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) - { - otherlv_3=(Token)match(input,21,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getXFeatureCallAccess().getCommaKeyword_1_2_0()); - - } - // InternalEntities.g:4631:5: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:4632:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:4632:6: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:4633:7: lv_typeArguments_4_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - - } - pushFollow(FOLLOW_37); - lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - current, - "typeArguments", - lv_typeArguments_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop77; - } - } while (true); - - otherlv_5=(Token)match(input,30,FOLLOW_35); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_5, grammarAccess.getXFeatureCallAccess().getGreaterThanSignKeyword_1_3()); - - } - - } - break; - - } - - // InternalEntities.g:4656:3: ( ( ruleIdOrSuper ) ) - // InternalEntities.g:4657:4: ( ruleIdOrSuper ) - { - // InternalEntities.g:4657:4: ( ruleIdOrSuper ) - // InternalEntities.g:4658:5: ruleIdOrSuper - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXFeatureCallRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureJvmIdentifiableElementCrossReference_2_0()); - - } - pushFollow(FOLLOW_69); - ruleIdOrSuper(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4672:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )? - int alt81=2; - alt81 = dfa81.predict(input); - switch (alt81) { - case 1 : - // InternalEntities.g:4673:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' - { - // InternalEntities.g:4673:4: ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) - // InternalEntities.g:4674:5: ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) - { - // InternalEntities.g:4678:5: (lv_explicitOperationCall_7_0= '(' ) - // InternalEntities.g:4679:6: lv_explicitOperationCall_7_0= '(' - { - lv_explicitOperationCall_7_0=(Token)match(input,20,FOLLOW_39); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitOperationCall_7_0, grammarAccess.getXFeatureCallAccess().getExplicitOperationCallLeftParenthesisKeyword_3_0_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXFeatureCallRule()); - } - setWithLastConsumed(current, "explicitOperationCall", lv_explicitOperationCall_7_0 != null, "("); - - } - - } - - - } - - // InternalEntities.g:4691:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? - int alt80=3; - alt80 = dfa80.predict(input); - switch (alt80) { - case 1 : - // InternalEntities.g:4692:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) - { - // InternalEntities.g:4692:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) - // InternalEntities.g:4693:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) - { - // InternalEntities.g:4718:6: (lv_featureCallArguments_8_0= ruleXShortClosure ) - // InternalEntities.g:4719:7: lv_featureCallArguments_8_0= ruleXShortClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXShortClosureParserRuleCall_3_1_0_0()); - - } - pushFollow(FOLLOW_40); - lv_featureCallArguments_8_0=ruleXShortClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - current, - "featureCallArguments", - lv_featureCallArguments_8_0, - "org.eclipse.xtext.xbase.Xbase.XShortClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:4737:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) - { - // InternalEntities.g:4737:5: ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) - // InternalEntities.g:4738:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* - { - // InternalEntities.g:4738:6: ( (lv_featureCallArguments_9_0= ruleXExpression ) ) - // InternalEntities.g:4739:7: (lv_featureCallArguments_9_0= ruleXExpression ) - { - // InternalEntities.g:4739:7: (lv_featureCallArguments_9_0= ruleXExpression ) - // InternalEntities.g:4740:8: lv_featureCallArguments_9_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_0_0()); - - } - pushFollow(FOLLOW_13); - lv_featureCallArguments_9_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - current, - "featureCallArguments", - lv_featureCallArguments_9_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4757:6: (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* - loop79: - do { - int alt79=2; - int LA79_0 = input.LA(1); - - if ( (LA79_0==21) ) { - alt79=1; - } - - - switch (alt79) { - case 1 : - // InternalEntities.g:4758:7: otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) - { - otherlv_10=(Token)match(input,21,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_10, grammarAccess.getXFeatureCallAccess().getCommaKeyword_3_1_1_1_0()); - - } - // InternalEntities.g:4762:7: ( (lv_featureCallArguments_11_0= ruleXExpression ) ) - // InternalEntities.g:4763:8: (lv_featureCallArguments_11_0= ruleXExpression ) - { - // InternalEntities.g:4763:8: (lv_featureCallArguments_11_0= ruleXExpression ) - // InternalEntities.g:4764:9: lv_featureCallArguments_11_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXExpressionParserRuleCall_3_1_1_1_1_0()); - - } - pushFollow(FOLLOW_13); - lv_featureCallArguments_11_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - current, - "featureCallArguments", - lv_featureCallArguments_11_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop79; - } - } while (true); - - - } - - - } - break; - - } - - otherlv_12=(Token)match(input,22,FOLLOW_70); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_12, grammarAccess.getXFeatureCallAccess().getRightParenthesisKeyword_3_2()); - - } - - } - break; - - } - - // InternalEntities.g:4789:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )? - int alt82=2; - alt82 = dfa82.predict(input); - switch (alt82) { - case 1 : - // InternalEntities.g:4790:4: ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) - { - // InternalEntities.g:4796:4: (lv_featureCallArguments_13_0= ruleXClosure ) - // InternalEntities.g:4797:5: lv_featureCallArguments_13_0= ruleXClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFeatureCallAccess().getFeatureCallArgumentsXClosureParserRuleCall_4_0()); - - } - pushFollow(FOLLOW_2); - lv_featureCallArguments_13_0=ruleXClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFeatureCallRule()); - } - add( - current, - "featureCallArguments", - lv_featureCallArguments_13_0, - "org.eclipse.xtext.xbase.Xbase.XClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXFeatureCall" - - - // $ANTLR start "entryRuleFeatureCallID" - // InternalEntities.g:4818:1: entryRuleFeatureCallID returns [String current=null] : iv_ruleFeatureCallID= ruleFeatureCallID EOF ; - public final String entryRuleFeatureCallID() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleFeatureCallID = null; - - - try { - // InternalEntities.g:4818:53: (iv_ruleFeatureCallID= ruleFeatureCallID EOF ) - // InternalEntities.g:4819:2: iv_ruleFeatureCallID= ruleFeatureCallID EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getFeatureCallIDRule()); - } - pushFollow(FOLLOW_1); - iv_ruleFeatureCallID=ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleFeatureCallID.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleFeatureCallID" - - - // $ANTLR start "ruleFeatureCallID" - // InternalEntities.g:4825:1: ruleFeatureCallID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ; - public final AntlrDatatypeRuleToken ruleFeatureCallID() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - AntlrDatatypeRuleToken this_ValidID_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4831:2: ( (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) ) - // InternalEntities.g:4832:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) - { - // InternalEntities.g:4832:2: (this_ValidID_0= ruleValidID | kw= 'extends' | kw= 'static' | kw= 'import' | kw= 'extension' ) - int alt83=5; - switch ( input.LA(1) ) { - case RULE_ID: - { - alt83=1; - } - break; - case 17: - { - alt83=2; - } - break; - case 73: - { - alt83=3; - } - break; - case 74: - { - alt83=4; - } - break; - case 75: - { - alt83=5; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 83, 0, input); - - throw nvae; - } - - switch (alt83) { - case 1 : - // InternalEntities.g:4833:3: this_ValidID_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getFeatureCallIDAccess().getValidIDParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_ValidID_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_ValidID_0); - - } - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:4844:3: kw= 'extends' - { - kw=(Token)match(input,17,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtendsKeyword_1()); - - } - - } - break; - case 3 : - // InternalEntities.g:4850:3: kw= 'static' - { - kw=(Token)match(input,73,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getStaticKeyword_2()); - - } - - } - break; - case 4 : - // InternalEntities.g:4856:3: kw= 'import' - { - kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getImportKeyword_3()); - - } - - } - break; - case 5 : - // InternalEntities.g:4862:3: kw= 'extension' - { - kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getFeatureCallIDAccess().getExtensionKeyword_4()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleFeatureCallID" - - - // $ANTLR start "entryRuleIdOrSuper" - // InternalEntities.g:4871:1: entryRuleIdOrSuper returns [String current=null] : iv_ruleIdOrSuper= ruleIdOrSuper EOF ; - public final String entryRuleIdOrSuper() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleIdOrSuper = null; - - - try { - // InternalEntities.g:4871:49: (iv_ruleIdOrSuper= ruleIdOrSuper EOF ) - // InternalEntities.g:4872:2: iv_ruleIdOrSuper= ruleIdOrSuper EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getIdOrSuperRule()); - } - pushFollow(FOLLOW_1); - iv_ruleIdOrSuper=ruleIdOrSuper(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleIdOrSuper.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleIdOrSuper" - - - // $ANTLR start "ruleIdOrSuper" - // InternalEntities.g:4878:1: ruleIdOrSuper returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ; - public final AntlrDatatypeRuleToken ruleIdOrSuper() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - AntlrDatatypeRuleToken this_FeatureCallID_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4884:2: ( (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) ) - // InternalEntities.g:4885:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) - { - // InternalEntities.g:4885:2: (this_FeatureCallID_0= ruleFeatureCallID | kw= 'super' ) - int alt84=2; - int LA84_0 = input.LA(1); - - if ( (LA84_0==RULE_ID||LA84_0==17||(LA84_0>=73 && LA84_0<=75)) ) { - alt84=1; - } - else if ( (LA84_0==76) ) { - alt84=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 84, 0, input); - - throw nvae; - } - switch (alt84) { - case 1 : - // InternalEntities.g:4886:3: this_FeatureCallID_0= ruleFeatureCallID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getIdOrSuperAccess().getFeatureCallIDParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_FeatureCallID_0=ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_FeatureCallID_0); - - } - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:4897:3: kw= 'super' - { - kw=(Token)match(input,76,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getIdOrSuperAccess().getSuperKeyword_1()); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleIdOrSuper" - - - // $ANTLR start "entryRuleXConstructorCall" - // InternalEntities.g:4906:1: entryRuleXConstructorCall returns [EObject current=null] : iv_ruleXConstructorCall= ruleXConstructorCall EOF ; - public final EObject entryRuleXConstructorCall() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXConstructorCall = null; - - - try { - // InternalEntities.g:4906:57: (iv_ruleXConstructorCall= ruleXConstructorCall EOF ) - // InternalEntities.g:4907:2: iv_ruleXConstructorCall= ruleXConstructorCall EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXConstructorCallRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXConstructorCall=ruleXConstructorCall(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXConstructorCall; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXConstructorCall" - - - // $ANTLR start "ruleXConstructorCall" - // InternalEntities.g:4913:1: ruleXConstructorCall returns [EObject current=null] : ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ; - public final EObject ruleXConstructorCall() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token otherlv_7=null; - Token lv_explicitConstructorCall_8_0=null; - Token otherlv_11=null; - Token otherlv_13=null; - EObject lv_typeArguments_4_0 = null; - - EObject lv_typeArguments_6_0 = null; - - EObject lv_arguments_9_0 = null; - - EObject lv_arguments_10_0 = null; - - EObject lv_arguments_12_0 = null; - - EObject lv_arguments_14_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:4919:2: ( ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) ) - // InternalEntities.g:4920:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) - { - // InternalEntities.g:4920:2: ( () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? ) - // InternalEntities.g:4921:3: () otherlv_1= 'new' ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? - { - // InternalEntities.g:4921:3: () - // InternalEntities.g:4922:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXConstructorCallAccess().getXConstructorCallAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,77,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); - - } - // InternalEntities.g:4932:3: ( ( ruleQualifiedName ) ) - // InternalEntities.g:4933:4: ( ruleQualifiedName ) - { - // InternalEntities.g:4933:4: ( ruleQualifiedName ) - // InternalEntities.g:4934:5: ruleQualifiedName - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXConstructorCallRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getConstructorJvmConstructorCrossReference_2_0()); - - } - pushFollow(FOLLOW_71); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4948:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )? - int alt86=2; - alt86 = dfa86.predict(input); - switch (alt86) { - case 1 : - // InternalEntities.g:4949:4: ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' - { - // InternalEntities.g:4949:4: ( ( '<' )=>otherlv_3= '<' ) - // InternalEntities.g:4950:5: ( '<' )=>otherlv_3= '<' - { - otherlv_3=(Token)match(input,29,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getXConstructorCallAccess().getLessThanSignKeyword_3_0()); - - } - - } - - // InternalEntities.g:4956:4: ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:4957:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:4957:5: (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:4958:6: lv_typeArguments_4_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_1_0()); - - } - pushFollow(FOLLOW_37); - lv_typeArguments_4_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - current, - "typeArguments", - lv_typeArguments_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:4975:4: (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* - loop85: - do { - int alt85=2; - int LA85_0 = input.LA(1); - - if ( (LA85_0==21) ) { - alt85=1; - } - - - switch (alt85) { - case 1 : - // InternalEntities.g:4976:5: otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) - { - otherlv_5=(Token)match(input,21,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_5, grammarAccess.getXConstructorCallAccess().getCommaKeyword_3_2_0()); - - } - // InternalEntities.g:4980:5: ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:4981:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:4981:6: (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:4982:7: lv_typeArguments_6_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_3_2_1_0()); - - } - pushFollow(FOLLOW_37); - lv_typeArguments_6_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - current, - "typeArguments", - lv_typeArguments_6_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop85; - } - } while (true); - - otherlv_7=(Token)match(input,30,FOLLOW_69); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_7, grammarAccess.getXConstructorCallAccess().getGreaterThanSignKeyword_3_3()); - - } - - } - break; - - } - - // InternalEntities.g:5005:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )? - int alt89=2; - alt89 = dfa89.predict(input); - switch (alt89) { - case 1 : - // InternalEntities.g:5006:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' - { - // InternalEntities.g:5006:4: ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) - // InternalEntities.g:5007:5: ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) - { - // InternalEntities.g:5011:5: (lv_explicitConstructorCall_8_0= '(' ) - // InternalEntities.g:5012:6: lv_explicitConstructorCall_8_0= '(' - { - lv_explicitConstructorCall_8_0=(Token)match(input,20,FOLLOW_39); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_explicitConstructorCall_8_0, grammarAccess.getXConstructorCallAccess().getExplicitConstructorCallLeftParenthesisKeyword_4_0_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXConstructorCallRule()); - } - setWithLastConsumed(current, "explicitConstructorCall", lv_explicitConstructorCall_8_0 != null, "("); - - } - - } - - - } - - // InternalEntities.g:5024:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? - int alt88=3; - alt88 = dfa88.predict(input); - switch (alt88) { - case 1 : - // InternalEntities.g:5025:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) - { - // InternalEntities.g:5025:5: ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) - // InternalEntities.g:5026:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) - { - // InternalEntities.g:5051:6: (lv_arguments_9_0= ruleXShortClosure ) - // InternalEntities.g:5052:7: lv_arguments_9_0= ruleXShortClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXShortClosureParserRuleCall_4_1_0_0()); - - } - pushFollow(FOLLOW_40); - lv_arguments_9_0=ruleXShortClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - current, - "arguments", - lv_arguments_9_0, - "org.eclipse.xtext.xbase.Xbase.XShortClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:5070:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) - { - // InternalEntities.g:5070:5: ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) - // InternalEntities.g:5071:6: ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* - { - // InternalEntities.g:5071:6: ( (lv_arguments_10_0= ruleXExpression ) ) - // InternalEntities.g:5072:7: (lv_arguments_10_0= ruleXExpression ) - { - // InternalEntities.g:5072:7: (lv_arguments_10_0= ruleXExpression ) - // InternalEntities.g:5073:8: lv_arguments_10_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_0_0()); - - } - pushFollow(FOLLOW_13); - lv_arguments_10_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - current, - "arguments", - lv_arguments_10_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:5090:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* - loop87: - do { - int alt87=2; - int LA87_0 = input.LA(1); - - if ( (LA87_0==21) ) { - alt87=1; - } - - - switch (alt87) { - case 1 : - // InternalEntities.g:5091:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) - { - otherlv_11=(Token)match(input,21,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_11, grammarAccess.getXConstructorCallAccess().getCommaKeyword_4_1_1_1_0()); - - } - // InternalEntities.g:5095:7: ( (lv_arguments_12_0= ruleXExpression ) ) - // InternalEntities.g:5096:8: (lv_arguments_12_0= ruleXExpression ) - { - // InternalEntities.g:5096:8: (lv_arguments_12_0= ruleXExpression ) - // InternalEntities.g:5097:9: lv_arguments_12_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXExpressionParserRuleCall_4_1_1_1_1_0()); - - } - pushFollow(FOLLOW_13); - lv_arguments_12_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - current, - "arguments", - lv_arguments_12_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop87; - } - } while (true); - - - } - - - } - break; - - } - - otherlv_13=(Token)match(input,22,FOLLOW_70); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_13, grammarAccess.getXConstructorCallAccess().getRightParenthesisKeyword_4_2()); - - } - - } - break; - - } - - // InternalEntities.g:5122:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )? - int alt90=2; - alt90 = dfa90.predict(input); - switch (alt90) { - case 1 : - // InternalEntities.g:5123:4: ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) - { - // InternalEntities.g:5129:4: (lv_arguments_14_0= ruleXClosure ) - // InternalEntities.g:5130:5: lv_arguments_14_0= ruleXClosure - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXConstructorCallAccess().getArgumentsXClosureParserRuleCall_5_0()); - - } - pushFollow(FOLLOW_2); - lv_arguments_14_0=ruleXClosure(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXConstructorCallRule()); - } - add( - current, - "arguments", - lv_arguments_14_0, - "org.eclipse.xtext.xbase.Xbase.XClosure"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXConstructorCall" - - - // $ANTLR start "entryRuleXBooleanLiteral" - // InternalEntities.g:5151:1: entryRuleXBooleanLiteral returns [EObject current=null] : iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ; - public final EObject entryRuleXBooleanLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXBooleanLiteral = null; - - - try { - // InternalEntities.g:5151:56: (iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF ) - // InternalEntities.g:5152:2: iv_ruleXBooleanLiteral= ruleXBooleanLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXBooleanLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXBooleanLiteral=ruleXBooleanLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXBooleanLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXBooleanLiteral" - - - // $ANTLR start "ruleXBooleanLiteral" - // InternalEntities.g:5158:1: ruleXBooleanLiteral returns [EObject current=null] : ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ; - public final EObject ruleXBooleanLiteral() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token lv_isTrue_2_0=null; - - - enterRule(); - - try { - // InternalEntities.g:5164:2: ( ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) ) - // InternalEntities.g:5165:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) - { - // InternalEntities.g:5165:2: ( () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) ) - // InternalEntities.g:5166:3: () (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) - { - // InternalEntities.g:5166:3: () - // InternalEntities.g:5167:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXBooleanLiteralAccess().getXBooleanLiteralAction_0(), - current); - - } - - } - - // InternalEntities.g:5173:3: (otherlv_1= 'false' | ( (lv_isTrue_2_0= 'true' ) ) ) - int alt91=2; - int LA91_0 = input.LA(1); - - if ( (LA91_0==78) ) { - alt91=1; - } - else if ( (LA91_0==79) ) { - alt91=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 91, 0, input); - - throw nvae; - } - switch (alt91) { - case 1 : - // InternalEntities.g:5174:4: otherlv_1= 'false' - { - otherlv_1=(Token)match(input,78,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXBooleanLiteralAccess().getFalseKeyword_1_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:5179:4: ( (lv_isTrue_2_0= 'true' ) ) - { - // InternalEntities.g:5179:4: ( (lv_isTrue_2_0= 'true' ) ) - // InternalEntities.g:5180:5: (lv_isTrue_2_0= 'true' ) - { - // InternalEntities.g:5180:5: (lv_isTrue_2_0= 'true' ) - // InternalEntities.g:5181:6: lv_isTrue_2_0= 'true' - { - lv_isTrue_2_0=(Token)match(input,79,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_isTrue_2_0, grammarAccess.getXBooleanLiteralAccess().getIsTrueTrueKeyword_1_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXBooleanLiteralRule()); - } - setWithLastConsumed(current, "isTrue", lv_isTrue_2_0 != null, "true"); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXBooleanLiteral" - - - // $ANTLR start "entryRuleXNullLiteral" - // InternalEntities.g:5198:1: entryRuleXNullLiteral returns [EObject current=null] : iv_ruleXNullLiteral= ruleXNullLiteral EOF ; - public final EObject entryRuleXNullLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXNullLiteral = null; - - - try { - // InternalEntities.g:5198:53: (iv_ruleXNullLiteral= ruleXNullLiteral EOF ) - // InternalEntities.g:5199:2: iv_ruleXNullLiteral= ruleXNullLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXNullLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXNullLiteral=ruleXNullLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXNullLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXNullLiteral" - - - // $ANTLR start "ruleXNullLiteral" - // InternalEntities.g:5205:1: ruleXNullLiteral returns [EObject current=null] : ( () otherlv_1= 'null' ) ; - public final EObject ruleXNullLiteral() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - - - enterRule(); - - try { - // InternalEntities.g:5211:2: ( ( () otherlv_1= 'null' ) ) - // InternalEntities.g:5212:2: ( () otherlv_1= 'null' ) - { - // InternalEntities.g:5212:2: ( () otherlv_1= 'null' ) - // InternalEntities.g:5213:3: () otherlv_1= 'null' - { - // InternalEntities.g:5213:3: () - // InternalEntities.g:5214:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXNullLiteralAccess().getXNullLiteralAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,80,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXNullLiteralAccess().getNullKeyword_1()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXNullLiteral" - - - // $ANTLR start "entryRuleXNumberLiteral" - // InternalEntities.g:5228:1: entryRuleXNumberLiteral returns [EObject current=null] : iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ; - public final EObject entryRuleXNumberLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXNumberLiteral = null; - - - try { - // InternalEntities.g:5228:55: (iv_ruleXNumberLiteral= ruleXNumberLiteral EOF ) - // InternalEntities.g:5229:2: iv_ruleXNumberLiteral= ruleXNumberLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXNumberLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXNumberLiteral=ruleXNumberLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXNumberLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXNumberLiteral" - - - // $ANTLR start "ruleXNumberLiteral" - // InternalEntities.g:5235:1: ruleXNumberLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= ruleNumber ) ) ) ; - public final EObject ruleXNumberLiteral() throws RecognitionException { - EObject current = null; - - AntlrDatatypeRuleToken lv_value_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5241:2: ( ( () ( (lv_value_1_0= ruleNumber ) ) ) ) - // InternalEntities.g:5242:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) - { - // InternalEntities.g:5242:2: ( () ( (lv_value_1_0= ruleNumber ) ) ) - // InternalEntities.g:5243:3: () ( (lv_value_1_0= ruleNumber ) ) - { - // InternalEntities.g:5243:3: () - // InternalEntities.g:5244:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXNumberLiteralAccess().getXNumberLiteralAction_0(), - current); - - } - - } - - // InternalEntities.g:5250:3: ( (lv_value_1_0= ruleNumber ) ) - // InternalEntities.g:5251:4: (lv_value_1_0= ruleNumber ) - { - // InternalEntities.g:5251:4: (lv_value_1_0= ruleNumber ) - // InternalEntities.g:5252:5: lv_value_1_0= ruleNumber - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXNumberLiteralAccess().getValueNumberParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_value_1_0=ruleNumber(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXNumberLiteralRule()); - } - set( - current, - "value", - lv_value_1_0, - "org.eclipse.xtext.xbase.Xbase.Number"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXNumberLiteral" - - - // $ANTLR start "entryRuleXStringLiteral" - // InternalEntities.g:5273:1: entryRuleXStringLiteral returns [EObject current=null] : iv_ruleXStringLiteral= ruleXStringLiteral EOF ; - public final EObject entryRuleXStringLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXStringLiteral = null; - - - try { - // InternalEntities.g:5273:55: (iv_ruleXStringLiteral= ruleXStringLiteral EOF ) - // InternalEntities.g:5274:2: iv_ruleXStringLiteral= ruleXStringLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXStringLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXStringLiteral=ruleXStringLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXStringLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXStringLiteral" - - - // $ANTLR start "ruleXStringLiteral" - // InternalEntities.g:5280:1: ruleXStringLiteral returns [EObject current=null] : ( () ( (lv_value_1_0= RULE_STRING ) ) ) ; - public final EObject ruleXStringLiteral() throws RecognitionException { - EObject current = null; - - Token lv_value_1_0=null; - - - enterRule(); - - try { - // InternalEntities.g:5286:2: ( ( () ( (lv_value_1_0= RULE_STRING ) ) ) ) - // InternalEntities.g:5287:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) - { - // InternalEntities.g:5287:2: ( () ( (lv_value_1_0= RULE_STRING ) ) ) - // InternalEntities.g:5288:3: () ( (lv_value_1_0= RULE_STRING ) ) - { - // InternalEntities.g:5288:3: () - // InternalEntities.g:5289:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXStringLiteralAccess().getXStringLiteralAction_0(), - current); - - } - - } - - // InternalEntities.g:5295:3: ( (lv_value_1_0= RULE_STRING ) ) - // InternalEntities.g:5296:4: (lv_value_1_0= RULE_STRING ) - { - // InternalEntities.g:5296:4: (lv_value_1_0= RULE_STRING ) - // InternalEntities.g:5297:5: lv_value_1_0= RULE_STRING - { - lv_value_1_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_value_1_0, grammarAccess.getXStringLiteralAccess().getValueSTRINGTerminalRuleCall_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXStringLiteralRule()); - } - setWithLastConsumed( - current, - "value", - lv_value_1_0, - "org.eclipse.xtext.xbase.Xtype.STRING"); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXStringLiteral" - - - // $ANTLR start "entryRuleXTypeLiteral" - // InternalEntities.g:5317:1: entryRuleXTypeLiteral returns [EObject current=null] : iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ; - public final EObject entryRuleXTypeLiteral() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXTypeLiteral = null; - - - try { - // InternalEntities.g:5317:53: (iv_ruleXTypeLiteral= ruleXTypeLiteral EOF ) - // InternalEntities.g:5318:2: iv_ruleXTypeLiteral= ruleXTypeLiteral EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXTypeLiteralRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXTypeLiteral=ruleXTypeLiteral(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXTypeLiteral; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXTypeLiteral" - - - // $ANTLR start "ruleXTypeLiteral" - // InternalEntities.g:5324:1: ruleXTypeLiteral returns [EObject current=null] : ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ; - public final EObject ruleXTypeLiteral() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_5=null; - AntlrDatatypeRuleToken lv_arrayDimensions_4_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5330:2: ( ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) ) - // InternalEntities.g:5331:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) - { - // InternalEntities.g:5331:2: ( () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' ) - // InternalEntities.g:5332:3: () otherlv_1= 'typeof' otherlv_2= '(' ( ( ruleQualifiedName ) ) ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* otherlv_5= ')' - { - // InternalEntities.g:5332:3: () - // InternalEntities.g:5333:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXTypeLiteralAccess().getXTypeLiteralAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,81,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); - - } - otherlv_2=(Token)match(input,20,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXTypeLiteralAccess().getLeftParenthesisKeyword_2()); - - } - // InternalEntities.g:5347:3: ( ( ruleQualifiedName ) ) - // InternalEntities.g:5348:4: ( ruleQualifiedName ) - { - // InternalEntities.g:5348:4: ( ruleQualifiedName ) - // InternalEntities.g:5349:5: ruleQualifiedName - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXTypeLiteralRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); - - } - pushFollow(FOLLOW_72); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:5363:3: ( (lv_arrayDimensions_4_0= ruleArrayBrackets ) )* - loop92: - do { - int alt92=2; - int LA92_0 = input.LA(1); - - if ( (LA92_0==59) ) { - alt92=1; - } - - - switch (alt92) { - case 1 : - // InternalEntities.g:5364:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) - { - // InternalEntities.g:5364:4: (lv_arrayDimensions_4_0= ruleArrayBrackets ) - // InternalEntities.g:5365:5: lv_arrayDimensions_4_0= ruleArrayBrackets - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXTypeLiteralAccess().getArrayDimensionsArrayBracketsParserRuleCall_4_0()); - - } - pushFollow(FOLLOW_72); - lv_arrayDimensions_4_0=ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXTypeLiteralRule()); - } - add( - current, - "arrayDimensions", - lv_arrayDimensions_4_0, - "org.eclipse.xtext.xbase.Xtype.ArrayBrackets"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop92; - } - } while (true); - - otherlv_5=(Token)match(input,22,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_5, grammarAccess.getXTypeLiteralAccess().getRightParenthesisKeyword_5()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXTypeLiteral" - - - // $ANTLR start "entryRuleXThrowExpression" - // InternalEntities.g:5390:1: entryRuleXThrowExpression returns [EObject current=null] : iv_ruleXThrowExpression= ruleXThrowExpression EOF ; - public final EObject entryRuleXThrowExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXThrowExpression = null; - - - try { - // InternalEntities.g:5390:57: (iv_ruleXThrowExpression= ruleXThrowExpression EOF ) - // InternalEntities.g:5391:2: iv_ruleXThrowExpression= ruleXThrowExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXThrowExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXThrowExpression=ruleXThrowExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXThrowExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXThrowExpression" - - - // $ANTLR start "ruleXThrowExpression" - // InternalEntities.g:5397:1: ruleXThrowExpression returns [EObject current=null] : ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ; - public final EObject ruleXThrowExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - EObject lv_expression_2_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5403:2: ( ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) ) - // InternalEntities.g:5404:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) - { - // InternalEntities.g:5404:2: ( () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) ) - // InternalEntities.g:5405:3: () otherlv_1= 'throw' ( (lv_expression_2_0= ruleXExpression ) ) - { - // InternalEntities.g:5405:3: () - // InternalEntities.g:5406:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXThrowExpressionAccess().getXThrowExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,82,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXThrowExpressionAccess().getThrowKeyword_1()); - - } - // InternalEntities.g:5416:3: ( (lv_expression_2_0= ruleXExpression ) ) - // InternalEntities.g:5417:4: (lv_expression_2_0= ruleXExpression ) - { - // InternalEntities.g:5417:4: (lv_expression_2_0= ruleXExpression ) - // InternalEntities.g:5418:5: lv_expression_2_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXThrowExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_2); - lv_expression_2_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXThrowExpressionRule()); - } - set( - current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXThrowExpression" - - - // $ANTLR start "entryRuleXReturnExpression" - // InternalEntities.g:5439:1: entryRuleXReturnExpression returns [EObject current=null] : iv_ruleXReturnExpression= ruleXReturnExpression EOF ; - public final EObject entryRuleXReturnExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXReturnExpression = null; - - - try { - // InternalEntities.g:5439:58: (iv_ruleXReturnExpression= ruleXReturnExpression EOF ) - // InternalEntities.g:5440:2: iv_ruleXReturnExpression= ruleXReturnExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXReturnExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXReturnExpression=ruleXReturnExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXReturnExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXReturnExpression" - - - // $ANTLR start "ruleXReturnExpression" - // InternalEntities.g:5446:1: ruleXReturnExpression returns [EObject current=null] : ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ; - public final EObject ruleXReturnExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - EObject lv_expression_2_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5452:2: ( ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) ) - // InternalEntities.g:5453:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) - { - // InternalEntities.g:5453:2: ( () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? ) - // InternalEntities.g:5454:3: () otherlv_1= 'return' ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? - { - // InternalEntities.g:5454:3: () - // InternalEntities.g:5455:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXReturnExpressionAccess().getXReturnExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,83,FOLLOW_73); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXReturnExpressionAccess().getReturnKeyword_1()); - - } - // InternalEntities.g:5465:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )? - int alt93=2; - alt93 = dfa93.predict(input); - switch (alt93) { - case 1 : - // InternalEntities.g:5466:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) - { - // InternalEntities.g:5467:4: (lv_expression_2_0= ruleXExpression ) - // InternalEntities.g:5468:5: lv_expression_2_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXReturnExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_2); - lv_expression_2_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXReturnExpressionRule()); - } - set( - current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXReturnExpression" - - - // $ANTLR start "entryRuleXTryCatchFinallyExpression" - // InternalEntities.g:5489:1: entryRuleXTryCatchFinallyExpression returns [EObject current=null] : iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ; - public final EObject entryRuleXTryCatchFinallyExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXTryCatchFinallyExpression = null; - - - try { - // InternalEntities.g:5489:67: (iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF ) - // InternalEntities.g:5490:2: iv_ruleXTryCatchFinallyExpression= ruleXTryCatchFinallyExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXTryCatchFinallyExpression=ruleXTryCatchFinallyExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXTryCatchFinallyExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXTryCatchFinallyExpression" - - - // $ANTLR start "ruleXTryCatchFinallyExpression" - // InternalEntities.g:5496:1: ruleXTryCatchFinallyExpression returns [EObject current=null] : ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ; - public final EObject ruleXTryCatchFinallyExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_4=null; - Token otherlv_6=null; - EObject lv_expression_2_0 = null; - - EObject lv_catchClauses_3_0 = null; - - EObject lv_finallyExpression_5_0 = null; - - EObject lv_finallyExpression_7_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5502:2: ( ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) ) - // InternalEntities.g:5503:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) - { - // InternalEntities.g:5503:2: ( () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) ) - // InternalEntities.g:5504:3: () otherlv_1= 'try' ( (lv_expression_2_0= ruleXExpression ) ) ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) - { - // InternalEntities.g:5504:3: () - // InternalEntities.g:5505:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXTryCatchFinallyExpressionAccess().getXTryCatchFinallyExpressionAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,84,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXTryCatchFinallyExpressionAccess().getTryKeyword_1()); - - } - // InternalEntities.g:5515:3: ( (lv_expression_2_0= ruleXExpression ) ) - // InternalEntities.g:5516:4: (lv_expression_2_0= ruleXExpression ) - { - // InternalEntities.g:5516:4: (lv_expression_2_0= ruleXExpression ) - // InternalEntities.g:5517:5: lv_expression_2_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getExpressionXExpressionParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_74); - lv_expression_2_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - set( - current, - "expression", - lv_expression_2_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:5534:3: ( ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) | (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) ) - int alt96=2; - int LA96_0 = input.LA(1); - - if ( (LA96_0==87) ) { - alt96=1; - } - else if ( (LA96_0==85) ) { - alt96=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 96, 0, input); - - throw nvae; - } - switch (alt96) { - case 1 : - // InternalEntities.g:5535:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) - { - // InternalEntities.g:5535:4: ( ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? ) - // InternalEntities.g:5536:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? - { - // InternalEntities.g:5536:5: ( ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) )+ - int cnt94=0; - loop94: - do { - int alt94=2; - int LA94_0 = input.LA(1); - - if ( (LA94_0==87) ) { - int LA94_2 = input.LA(2); - - if ( (synpred38_InternalEntities()) ) { - alt94=1; - } - - - } - - - switch (alt94) { - case 1 : - // InternalEntities.g:5537:6: ( 'catch' )=> (lv_catchClauses_3_0= ruleXCatchClause ) - { - // InternalEntities.g:5538:6: (lv_catchClauses_3_0= ruleXCatchClause ) - // InternalEntities.g:5539:7: lv_catchClauses_3_0= ruleXCatchClause - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getCatchClausesXCatchClauseParserRuleCall_3_0_0_0()); - - } - pushFollow(FOLLOW_75); - lv_catchClauses_3_0=ruleXCatchClause(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - add( - current, - "catchClauses", - lv_catchClauses_3_0, - "org.eclipse.xtext.xbase.Xbase.XCatchClause"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - if ( cnt94 >= 1 ) break loop94; - if (state.backtracking>0) {state.failed=true; return current;} - EarlyExitException eee = - new EarlyExitException(94, input); - throw eee; - } - cnt94++; - } while (true); - - // InternalEntities.g:5556:5: ( ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) )? - int alt95=2; - int LA95_0 = input.LA(1); - - if ( (LA95_0==85) ) { - int LA95_1 = input.LA(2); - - if ( (synpred39_InternalEntities()) ) { - alt95=1; - } - } - switch (alt95) { - case 1 : - // InternalEntities.g:5557:6: ( ( 'finally' )=>otherlv_4= 'finally' ) ( (lv_finallyExpression_5_0= ruleXExpression ) ) - { - // InternalEntities.g:5557:6: ( ( 'finally' )=>otherlv_4= 'finally' ) - // InternalEntities.g:5558:7: ( 'finally' )=>otherlv_4= 'finally' - { - otherlv_4=(Token)match(input,85,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_0_1_0()); - - } - - } - - // InternalEntities.g:5564:6: ( (lv_finallyExpression_5_0= ruleXExpression ) ) - // InternalEntities.g:5565:7: (lv_finallyExpression_5_0= ruleXExpression ) - { - // InternalEntities.g:5565:7: (lv_finallyExpression_5_0= ruleXExpression ) - // InternalEntities.g:5566:8: lv_finallyExpression_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_0_1_1_0()); - - } - pushFollow(FOLLOW_2); - lv_finallyExpression_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - set( - current, - "finallyExpression", - lv_finallyExpression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:5586:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) - { - // InternalEntities.g:5586:4: (otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) ) - // InternalEntities.g:5587:5: otherlv_6= 'finally' ( (lv_finallyExpression_7_0= ruleXExpression ) ) - { - otherlv_6=(Token)match(input,85,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_6, grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyKeyword_3_1_0()); - - } - // InternalEntities.g:5591:5: ( (lv_finallyExpression_7_0= ruleXExpression ) ) - // InternalEntities.g:5592:6: (lv_finallyExpression_7_0= ruleXExpression ) - { - // InternalEntities.g:5592:6: (lv_finallyExpression_7_0= ruleXExpression ) - // InternalEntities.g:5593:7: lv_finallyExpression_7_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXTryCatchFinallyExpressionAccess().getFinallyExpressionXExpressionParserRuleCall_3_1_1_0()); - - } - pushFollow(FOLLOW_2); - lv_finallyExpression_7_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXTryCatchFinallyExpressionRule()); - } - set( - current, - "finallyExpression", - lv_finallyExpression_7_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXTryCatchFinallyExpression" - - - // $ANTLR start "entryRuleXSynchronizedExpression" - // InternalEntities.g:5616:1: entryRuleXSynchronizedExpression returns [EObject current=null] : iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ; - public final EObject entryRuleXSynchronizedExpression() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXSynchronizedExpression = null; - - - try { - // InternalEntities.g:5616:64: (iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF ) - // InternalEntities.g:5617:2: iv_ruleXSynchronizedExpression= ruleXSynchronizedExpression EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXSynchronizedExpressionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXSynchronizedExpression=ruleXSynchronizedExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXSynchronizedExpression; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXSynchronizedExpression" - - - // $ANTLR start "ruleXSynchronizedExpression" - // InternalEntities.g:5623:1: ruleXSynchronizedExpression returns [EObject current=null] : ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ; - public final EObject ruleXSynchronizedExpression() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_4=null; - EObject lv_param_3_0 = null; - - EObject lv_expression_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5629:2: ( ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) ) - // InternalEntities.g:5630:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) - { - // InternalEntities.g:5630:2: ( ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) ) - // InternalEntities.g:5631:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) ( (lv_param_3_0= ruleXExpression ) ) otherlv_4= ')' ( (lv_expression_5_0= ruleXExpression ) ) - { - // InternalEntities.g:5631:3: ( ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) ) - // InternalEntities.g:5632:4: ( ( () 'synchronized' '(' ) )=> ( () otherlv_1= 'synchronized' otherlv_2= '(' ) - { - // InternalEntities.g:5639:4: ( () otherlv_1= 'synchronized' otherlv_2= '(' ) - // InternalEntities.g:5640:5: () otherlv_1= 'synchronized' otherlv_2= '(' - { - // InternalEntities.g:5640:5: () - // InternalEntities.g:5641:6: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getXSynchronizedExpressionAccess().getXSynchronizedExpressionAction_0_0_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,86,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXSynchronizedExpressionAccess().getSynchronizedKeyword_0_0_1()); - - } - otherlv_2=(Token)match(input,20,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXSynchronizedExpressionAccess().getLeftParenthesisKeyword_0_0_2()); - - } - - } - - - } - - // InternalEntities.g:5657:3: ( (lv_param_3_0= ruleXExpression ) ) - // InternalEntities.g:5658:4: (lv_param_3_0= ruleXExpression ) - { - // InternalEntities.g:5658:4: (lv_param_3_0= ruleXExpression ) - // InternalEntities.g:5659:5: lv_param_3_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getParamXExpressionParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_40); - lv_param_3_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); - } - set( - current, - "param", - lv_param_3_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_4=(Token)match(input,22,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXSynchronizedExpressionAccess().getRightParenthesisKeyword_2()); - - } - // InternalEntities.g:5680:3: ( (lv_expression_5_0= ruleXExpression ) ) - // InternalEntities.g:5681:4: (lv_expression_5_0= ruleXExpression ) - { - // InternalEntities.g:5681:4: (lv_expression_5_0= ruleXExpression ) - // InternalEntities.g:5682:5: lv_expression_5_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXSynchronizedExpressionAccess().getExpressionXExpressionParserRuleCall_3_0()); - - } - pushFollow(FOLLOW_2); - lv_expression_5_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXSynchronizedExpressionRule()); - } - set( - current, - "expression", - lv_expression_5_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXSynchronizedExpression" - - - // $ANTLR start "entryRuleXCatchClause" - // InternalEntities.g:5703:1: entryRuleXCatchClause returns [EObject current=null] : iv_ruleXCatchClause= ruleXCatchClause EOF ; - public final EObject entryRuleXCatchClause() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXCatchClause = null; - - - try { - // InternalEntities.g:5703:53: (iv_ruleXCatchClause= ruleXCatchClause EOF ) - // InternalEntities.g:5704:2: iv_ruleXCatchClause= ruleXCatchClause EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXCatchClauseRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXCatchClause=ruleXCatchClause(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXCatchClause; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXCatchClause" - - - // $ANTLR start "ruleXCatchClause" - // InternalEntities.g:5710:1: ruleXCatchClause returns [EObject current=null] : ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ; - public final EObject ruleXCatchClause() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_1=null; - Token otherlv_3=null; - EObject lv_declaredParam_2_0 = null; - - EObject lv_expression_4_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5716:2: ( ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) ) - // InternalEntities.g:5717:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) - { - // InternalEntities.g:5717:2: ( ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) ) - // InternalEntities.g:5718:3: ( ( 'catch' )=>otherlv_0= 'catch' ) otherlv_1= '(' ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) otherlv_3= ')' ( (lv_expression_4_0= ruleXExpression ) ) - { - // InternalEntities.g:5718:3: ( ( 'catch' )=>otherlv_0= 'catch' ) - // InternalEntities.g:5719:4: ( 'catch' )=>otherlv_0= 'catch' - { - otherlv_0=(Token)match(input,87,FOLLOW_11); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getXCatchClauseAccess().getCatchKeyword_0()); - - } - - } - - otherlv_1=(Token)match(input,20,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getXCatchClauseAccess().getLeftParenthesisKeyword_1()); - - } - // InternalEntities.g:5729:3: ( (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) ) - // InternalEntities.g:5730:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) - { - // InternalEntities.g:5730:4: (lv_declaredParam_2_0= ruleFullJvmFormalParameter ) - // InternalEntities.g:5731:5: lv_declaredParam_2_0= ruleFullJvmFormalParameter - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCatchClauseAccess().getDeclaredParamFullJvmFormalParameterParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_40); - lv_declaredParam_2_0=ruleFullJvmFormalParameter(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); - } - set( - current, - "declaredParam", - lv_declaredParam_2_0, - "org.eclipse.xtext.xbase.Xbase.FullJvmFormalParameter"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - otherlv_3=(Token)match(input,22,FOLLOW_16); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getXCatchClauseAccess().getRightParenthesisKeyword_3()); - - } - // InternalEntities.g:5752:3: ( (lv_expression_4_0= ruleXExpression ) ) - // InternalEntities.g:5753:4: (lv_expression_4_0= ruleXExpression ) - { - // InternalEntities.g:5753:4: (lv_expression_4_0= ruleXExpression ) - // InternalEntities.g:5754:5: lv_expression_4_0= ruleXExpression - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXCatchClauseAccess().getExpressionXExpressionParserRuleCall_4_0()); - - } - pushFollow(FOLLOW_2); - lv_expression_4_0=ruleXExpression(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXCatchClauseRule()); - } - set( - current, - "expression", - lv_expression_4_0, - "org.eclipse.xtext.xbase.Xbase.XExpression"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXCatchClause" - - - // $ANTLR start "entryRuleQualifiedName" - // InternalEntities.g:5775:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; - public final String entryRuleQualifiedName() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleQualifiedName = null; - - - try { - // InternalEntities.g:5775:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) - // InternalEntities.g:5776:2: iv_ruleQualifiedName= ruleQualifiedName EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getQualifiedNameRule()); - } - pushFollow(FOLLOW_1); - iv_ruleQualifiedName=ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleQualifiedName.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQualifiedName" - - - // $ANTLR start "ruleQualifiedName" - // InternalEntities.g:5782:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ; - public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - AntlrDatatypeRuleToken this_ValidID_0 = null; - - AntlrDatatypeRuleToken this_ValidID_2 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5788:2: ( (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) ) - // InternalEntities.g:5789:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) - { - // InternalEntities.g:5789:2: (this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* ) - // InternalEntities.g:5790:3: this_ValidID_0= ruleValidID ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_0()); - - } - pushFollow(FOLLOW_76); - this_ValidID_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_ValidID_0); - - } - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:5800:3: ( ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID )* - loop97: - do { - int alt97=2; - int LA97_0 = input.LA(1); - - if ( (LA97_0==55) ) { - int LA97_2 = input.LA(2); - - if ( (LA97_2==RULE_ID) ) { - int LA97_3 = input.LA(3); - - if ( (synpred42_InternalEntities()) ) { - alt97=1; - } - - - } - - - } - - - switch (alt97) { - case 1 : - // InternalEntities.g:5801:4: ( ( '.' )=>kw= '.' ) this_ValidID_2= ruleValidID - { - // InternalEntities.g:5801:4: ( ( '.' )=>kw= '.' ) - // InternalEntities.g:5802:5: ( '.' )=>kw= '.' - { - kw=(Token)match(input,55,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - - } - - } - - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getQualifiedNameAccess().getValidIDParserRuleCall_1_1()); - - } - pushFollow(FOLLOW_76); - this_ValidID_2=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_ValidID_2); - - } - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - break; - - default : - break loop97; - } - } while (true); - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQualifiedName" - - - // $ANTLR start "entryRuleNumber" - // InternalEntities.g:5824:1: entryRuleNumber returns [String current=null] : iv_ruleNumber= ruleNumber EOF ; - public final String entryRuleNumber() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleNumber = null; - - - - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalEntities.g:5826:2: (iv_ruleNumber= ruleNumber EOF ) - // InternalEntities.g:5827:2: iv_ruleNumber= ruleNumber EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getNumberRule()); - } - pushFollow(FOLLOW_1); - iv_ruleNumber=ruleNumber(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleNumber.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - - myHiddenTokenState.restore(); - - } - return current; - } - // $ANTLR end "entryRuleNumber" - - - // $ANTLR start "ruleNumber" - // InternalEntities.g:5836:1: ruleNumber returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ; - public final AntlrDatatypeRuleToken ruleNumber() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_HEX_0=null; - Token this_INT_1=null; - Token this_DECIMAL_2=null; - Token kw=null; - Token this_INT_4=null; - Token this_DECIMAL_5=null; - - - enterRule(); - HiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(); - - try { - // InternalEntities.g:5843:2: ( (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) ) - // InternalEntities.g:5844:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) - { - // InternalEntities.g:5844:2: (this_HEX_0= RULE_HEX | ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) ) - int alt101=2; - int LA101_0 = input.LA(1); - - if ( (LA101_0==RULE_HEX) ) { - alt101=1; - } - else if ( ((LA101_0>=RULE_INT && LA101_0<=RULE_DECIMAL)) ) { - alt101=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 101, 0, input); - - throw nvae; - } - switch (alt101) { - case 1 : - // InternalEntities.g:5845:3: this_HEX_0= RULE_HEX - { - this_HEX_0=(Token)match(input,RULE_HEX,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_HEX_0); - - } - if ( state.backtracking==0 ) { - - newLeafNode(this_HEX_0, grammarAccess.getNumberAccess().getHEXTerminalRuleCall_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:5853:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) - { - // InternalEntities.g:5853:3: ( (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? ) - // InternalEntities.g:5854:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? - { - // InternalEntities.g:5854:4: (this_INT_1= RULE_INT | this_DECIMAL_2= RULE_DECIMAL ) - int alt98=2; - int LA98_0 = input.LA(1); - - if ( (LA98_0==RULE_INT) ) { - alt98=1; - } - else if ( (LA98_0==RULE_DECIMAL) ) { - alt98=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 98, 0, input); - - throw nvae; - } - switch (alt98) { - case 1 : - // InternalEntities.g:5855:5: this_INT_1= RULE_INT - { - this_INT_1=(Token)match(input,RULE_INT,FOLLOW_76); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_INT_1); - - } - if ( state.backtracking==0 ) { - - newLeafNode(this_INT_1, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_0_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:5863:5: this_DECIMAL_2= RULE_DECIMAL - { - this_DECIMAL_2=(Token)match(input,RULE_DECIMAL,FOLLOW_76); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_DECIMAL_2); - - } - if ( state.backtracking==0 ) { - - newLeafNode(this_DECIMAL_2, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_0_1()); - - } - - } - break; - - } - - // InternalEntities.g:5871:4: (kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) )? - int alt100=2; - int LA100_0 = input.LA(1); - - if ( (LA100_0==55) ) { - int LA100_1 = input.LA(2); - - if ( ((LA100_1>=RULE_INT && LA100_1<=RULE_DECIMAL)) ) { - alt100=1; - } - } - switch (alt100) { - case 1 : - // InternalEntities.g:5872:5: kw= '.' (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) - { - kw=(Token)match(input,55,FOLLOW_77); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getNumberAccess().getFullStopKeyword_1_1_0()); - - } - // InternalEntities.g:5877:5: (this_INT_4= RULE_INT | this_DECIMAL_5= RULE_DECIMAL ) - int alt99=2; - int LA99_0 = input.LA(1); - - if ( (LA99_0==RULE_INT) ) { - alt99=1; - } - else if ( (LA99_0==RULE_DECIMAL) ) { - alt99=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 99, 0, input); - - throw nvae; - } - switch (alt99) { - case 1 : - // InternalEntities.g:5878:6: this_INT_4= RULE_INT - { - this_INT_4=(Token)match(input,RULE_INT,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_INT_4); - - } - if ( state.backtracking==0 ) { - - newLeafNode(this_INT_4, grammarAccess.getNumberAccess().getINTTerminalRuleCall_1_1_1_0()); - - } - - } - break; - case 2 : - // InternalEntities.g:5886:6: this_DECIMAL_5= RULE_DECIMAL - { - this_DECIMAL_5=(Token)match(input,RULE_DECIMAL,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_DECIMAL_5); - - } - if ( state.backtracking==0 ) { - - newLeafNode(this_DECIMAL_5, grammarAccess.getNumberAccess().getDECIMALTerminalRuleCall_1_1_1_1()); - - } - - } - break; - - } - - - } - break; - - } - - - } - - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - - myHiddenTokenState.restore(); - - } - return current; - } - // $ANTLR end "ruleNumber" - - - // $ANTLR start "entryRuleJvmTypeReference" - // InternalEntities.g:5903:1: entryRuleJvmTypeReference returns [EObject current=null] : iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ; - public final EObject entryRuleJvmTypeReference() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmTypeReference = null; - - - try { - // InternalEntities.g:5903:57: (iv_ruleJvmTypeReference= ruleJvmTypeReference EOF ) - // InternalEntities.g:5904:2: iv_ruleJvmTypeReference= ruleJvmTypeReference EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmTypeReference=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmTypeReference; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmTypeReference" - - - // $ANTLR start "ruleJvmTypeReference" - // InternalEntities.g:5910:1: ruleJvmTypeReference returns [EObject current=null] : ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ; - public final EObject ruleJvmTypeReference() throws RecognitionException { - EObject current = null; - - EObject this_JvmParameterizedTypeReference_0 = null; - - EObject this_XFunctionTypeRef_3 = null; - - - - enterRule(); - - try { - // InternalEntities.g:5916:2: ( ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) ) - // InternalEntities.g:5917:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) - { - // InternalEntities.g:5917:2: ( (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) | this_XFunctionTypeRef_3= ruleXFunctionTypeRef ) - int alt103=2; - int LA103_0 = input.LA(1); - - if ( (LA103_0==RULE_ID) ) { - alt103=1; - } - else if ( (LA103_0==20||LA103_0==42) ) { - alt103=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 103, 0, input); - - throw nvae; - } - switch (alt103) { - case 1 : - // InternalEntities.g:5918:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) - { - // InternalEntities.g:5918:3: (this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* ) - // InternalEntities.g:5919:4: this_JvmParameterizedTypeReference_0= ruleJvmParameterizedTypeReference ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getJvmParameterizedTypeReferenceParserRuleCall_0_0()); - - } - pushFollow(FOLLOW_70); - this_JvmParameterizedTypeReference_0=ruleJvmParameterizedTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_JvmParameterizedTypeReference_0; - afterParserOrEnumRuleCall(); - - } - // InternalEntities.g:5927:4: ( ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) )* - loop102: - do { - int alt102=2; - int LA102_0 = input.LA(1); - - if ( (LA102_0==59) ) { - int LA102_2 = input.LA(2); - - if ( (LA102_2==60) ) { - int LA102_3 = input.LA(3); - - if ( (synpred43_InternalEntities()) ) { - alt102=1; - } - - - } - - - } - - - switch (alt102) { - case 1 : - // InternalEntities.g:5928:5: ( ( () ruleArrayBrackets ) )=> ( () ruleArrayBrackets ) - { - // InternalEntities.g:5934:5: ( () ruleArrayBrackets ) - // InternalEntities.g:5935:6: () ruleArrayBrackets - { - // InternalEntities.g:5935:6: () - // InternalEntities.g:5936:7: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0(), - current); - - } - - } - - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getArrayBracketsParserRuleCall_0_1_0_1()); - - } - pushFollow(FOLLOW_70); - ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop102; - } - } while (true); - - - } - - - } - break; - case 2 : - // InternalEntities.g:5953:3: this_XFunctionTypeRef_3= ruleXFunctionTypeRef - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmTypeReferenceAccess().getXFunctionTypeRefParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_XFunctionTypeRef_3=ruleXFunctionTypeRef(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_XFunctionTypeRef_3; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmTypeReference" - - - // $ANTLR start "entryRuleArrayBrackets" - // InternalEntities.g:5965:1: entryRuleArrayBrackets returns [String current=null] : iv_ruleArrayBrackets= ruleArrayBrackets EOF ; - public final String entryRuleArrayBrackets() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleArrayBrackets = null; - - - try { - // InternalEntities.g:5965:53: (iv_ruleArrayBrackets= ruleArrayBrackets EOF ) - // InternalEntities.g:5966:2: iv_ruleArrayBrackets= ruleArrayBrackets EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getArrayBracketsRule()); - } - pushFollow(FOLLOW_1); - iv_ruleArrayBrackets=ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleArrayBrackets.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleArrayBrackets" - - - // $ANTLR start "ruleArrayBrackets" - // InternalEntities.g:5972:1: ruleArrayBrackets returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ; - public final AntlrDatatypeRuleToken ruleArrayBrackets() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - - - enterRule(); - - try { - // InternalEntities.g:5978:2: ( (kw= '[' kw= ']' ) ) - // InternalEntities.g:5979:2: (kw= '[' kw= ']' ) - { - // InternalEntities.g:5979:2: (kw= '[' kw= ']' ) - // InternalEntities.g:5980:3: kw= '[' kw= ']' - { - kw=(Token)match(input,59,FOLLOW_50); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getLeftSquareBracketKeyword_0()); - - } - kw=(Token)match(input,60,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getArrayBracketsAccess().getRightSquareBracketKeyword_1()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleArrayBrackets" - - - // $ANTLR start "entryRuleXFunctionTypeRef" - // InternalEntities.g:5994:1: entryRuleXFunctionTypeRef returns [EObject current=null] : iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ; - public final EObject entryRuleXFunctionTypeRef() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXFunctionTypeRef = null; - - - try { - // InternalEntities.g:5994:57: (iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF ) - // InternalEntities.g:5995:2: iv_ruleXFunctionTypeRef= ruleXFunctionTypeRef EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXFunctionTypeRefRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXFunctionTypeRef=ruleXFunctionTypeRef(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXFunctionTypeRef; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXFunctionTypeRef" - - - // $ANTLR start "ruleXFunctionTypeRef" - // InternalEntities.g:6001:1: ruleXFunctionTypeRef returns [EObject current=null] : ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ; - public final EObject ruleXFunctionTypeRef() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - Token otherlv_4=null; - Token otherlv_5=null; - EObject lv_paramTypes_1_0 = null; - - EObject lv_paramTypes_3_0 = null; - - EObject lv_returnType_6_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6007:2: ( ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) ) - // InternalEntities.g:6008:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:6008:2: ( (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:6009:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? otherlv_5= '=>' ( (lv_returnType_6_0= ruleJvmTypeReference ) ) - { - // InternalEntities.g:6009:3: (otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' )? - int alt106=2; - int LA106_0 = input.LA(1); - - if ( (LA106_0==20) ) { - alt106=1; - } - switch (alt106) { - case 1 : - // InternalEntities.g:6010:4: otherlv_0= '(' ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? otherlv_4= ')' - { - otherlv_0=(Token)match(input,20,FOLLOW_12); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()); - - } - // InternalEntities.g:6014:4: ( ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* )? - int alt105=2; - int LA105_0 = input.LA(1); - - if ( (LA105_0==RULE_ID||LA105_0==20||LA105_0==42) ) { - alt105=1; - } - switch (alt105) { - case 1 : - // InternalEntities.g:6015:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* - { - // InternalEntities.g:6015:5: ( (lv_paramTypes_1_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6016:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6016:6: (lv_paramTypes_1_0= ruleJvmTypeReference ) - // InternalEntities.g:6017:7: lv_paramTypes_1_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_0_0()); - - } - pushFollow(FOLLOW_13); - lv_paramTypes_1_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); - } - add( - current, - "paramTypes", - lv_paramTypes_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6034:5: (otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) )* - loop104: - do { - int alt104=2; - int LA104_0 = input.LA(1); - - if ( (LA104_0==21) ) { - alt104=1; - } - - - switch (alt104) { - case 1 : - // InternalEntities.g:6035:6: otherlv_2= ',' ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) - { - otherlv_2=(Token)match(input,21,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_2, grammarAccess.getXFunctionTypeRefAccess().getCommaKeyword_0_1_1_0()); - - } - // InternalEntities.g:6039:6: ( (lv_paramTypes_3_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6040:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6040:7: (lv_paramTypes_3_0= ruleJvmTypeReference ) - // InternalEntities.g:6041:8: lv_paramTypes_3_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getParamTypesJvmTypeReferenceParserRuleCall_0_1_1_1_0()); - - } - pushFollow(FOLLOW_13); - lv_paramTypes_3_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); - } - add( - current, - "paramTypes", - lv_paramTypes_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop104; - } - } while (true); - - - } - break; - - } - - otherlv_4=(Token)match(input,22,FOLLOW_78); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_4, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()); - - } - - } - break; - - } - - otherlv_5=(Token)match(input,42,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_5, grammarAccess.getXFunctionTypeRefAccess().getEqualsSignGreaterThanSignKeyword_1()); - - } - // InternalEntities.g:6069:3: ( (lv_returnType_6_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6070:4: (lv_returnType_6_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6070:4: (lv_returnType_6_0= ruleJvmTypeReference ) - // InternalEntities.g:6071:5: lv_returnType_6_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXFunctionTypeRefAccess().getReturnTypeJvmTypeReferenceParserRuleCall_2_0()); - - } - pushFollow(FOLLOW_2); - lv_returnType_6_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXFunctionTypeRefRule()); - } - set( - current, - "returnType", - lv_returnType_6_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXFunctionTypeRef" - - - // $ANTLR start "entryRuleJvmParameterizedTypeReference" - // InternalEntities.g:6092:1: entryRuleJvmParameterizedTypeReference returns [EObject current=null] : iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ; - public final EObject entryRuleJvmParameterizedTypeReference() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmParameterizedTypeReference = null; - - - try { - // InternalEntities.g:6092:70: (iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF ) - // InternalEntities.g:6093:2: iv_ruleJvmParameterizedTypeReference= ruleJvmParameterizedTypeReference EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmParameterizedTypeReference=ruleJvmParameterizedTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmParameterizedTypeReference; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmParameterizedTypeReference" - - - // $ANTLR start "ruleJvmParameterizedTypeReference" - // InternalEntities.g:6099:1: ruleJvmParameterizedTypeReference returns [EObject current=null] : ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ; - public final EObject ruleJvmParameterizedTypeReference() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token otherlv_7=null; - Token otherlv_9=null; - Token otherlv_11=null; - Token otherlv_13=null; - EObject lv_arguments_2_0 = null; - - EObject lv_arguments_4_0 = null; - - EObject lv_arguments_10_0 = null; - - EObject lv_arguments_12_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6105:2: ( ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) ) - // InternalEntities.g:6106:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) - { - // InternalEntities.g:6106:2: ( ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? ) - // InternalEntities.g:6107:3: ( ( ruleQualifiedName ) ) ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? - { - // InternalEntities.g:6107:3: ( ( ruleQualifiedName ) ) - // InternalEntities.g:6108:4: ( ruleQualifiedName ) - { - // InternalEntities.g:6108:4: ( ruleQualifiedName ) - // InternalEntities.g:6109:5: ruleQualifiedName - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_0_0()); - - } - pushFollow(FOLLOW_79); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6123:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )? - int alt111=2; - alt111 = dfa111.predict(input); - switch (alt111) { - case 1 : - // InternalEntities.g:6124:4: ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* - { - // InternalEntities.g:6124:4: ( ( '<' )=>otherlv_1= '<' ) - // InternalEntities.g:6125:5: ( '<' )=>otherlv_1= '<' - { - otherlv_1=(Token)match(input,29,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_0()); - - } - - } - - // InternalEntities.g:6131:4: ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:6132:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:6132:5: (lv_arguments_2_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:6133:6: lv_arguments_2_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_0()); - - } - pushFollow(FOLLOW_37); - lv_arguments_2_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - current, - "arguments", - lv_arguments_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6150:4: (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* - loop107: - do { - int alt107=2; - int LA107_0 = input.LA(1); - - if ( (LA107_0==21) ) { - alt107=1; - } - - - switch (alt107) { - case 1 : - // InternalEntities.g:6151:5: otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) - { - otherlv_3=(Token)match(input,21,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_3, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_2_0()); - - } - // InternalEntities.g:6155:5: ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:6156:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:6156:6: (lv_arguments_4_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:6157:7: lv_arguments_4_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_2_1_0()); - - } - pushFollow(FOLLOW_37); - lv_arguments_4_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - current, - "arguments", - lv_arguments_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop107; - } - } while (true); - - otherlv_5=(Token)match(input,30,FOLLOW_76); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_5, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_3()); - - } - // InternalEntities.g:6179:4: ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* - loop110: - do { - int alt110=2; - int LA110_0 = input.LA(1); - - if ( (LA110_0==55) ) { - int LA110_2 = input.LA(2); - - if ( (LA110_2==RULE_ID) ) { - int LA110_3 = input.LA(3); - - if ( (synpred45_InternalEntities()) ) { - alt110=1; - } - - - } - - - } - - - switch (alt110) { - case 1 : - // InternalEntities.g:6180:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? - { - // InternalEntities.g:6180:5: ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) - // InternalEntities.g:6181:6: ( ( () '.' ) )=> ( () otherlv_7= '.' ) - { - // InternalEntities.g:6187:6: ( () otherlv_7= '.' ) - // InternalEntities.g:6188:7: () otherlv_7= '.' - { - // InternalEntities.g:6188:7: () - // InternalEntities.g:6189:8: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElementAndSet( - grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0(), - current); - - } - - } - - otherlv_7=(Token)match(input,55,FOLLOW_4); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_7, grammarAccess.getJvmParameterizedTypeReferenceAccess().getFullStopKeyword_1_4_0_0_1()); - - } - - } - - - } - - // InternalEntities.g:6201:5: ( ( ruleValidID ) ) - // InternalEntities.g:6202:6: ( ruleValidID ) - { - // InternalEntities.g:6202:6: ( ruleValidID ) - // InternalEntities.g:6203:7: ruleValidID - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getTypeJvmTypeCrossReference_1_4_1_0()); - - } - pushFollow(FOLLOW_80); - ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6217:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? - int alt109=2; - alt109 = dfa109.predict(input); - switch (alt109) { - case 1 : - // InternalEntities.g:6218:6: ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' - { - // InternalEntities.g:6218:6: ( ( '<' )=>otherlv_9= '<' ) - // InternalEntities.g:6219:7: ( '<' )=>otherlv_9= '<' - { - otherlv_9=(Token)match(input,29,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_9, grammarAccess.getJvmParameterizedTypeReferenceAccess().getLessThanSignKeyword_1_4_2_0()); - - } - - } - - // InternalEntities.g:6225:6: ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:6226:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:6226:7: (lv_arguments_10_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:6227:8: lv_arguments_10_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_1_0()); - - } - pushFollow(FOLLOW_37); - lv_arguments_10_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - current, - "arguments", - lv_arguments_10_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6244:6: (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* - loop108: - do { - int alt108=2; - int LA108_0 = input.LA(1); - - if ( (LA108_0==21) ) { - alt108=1; - } - - - switch (alt108) { - case 1 : - // InternalEntities.g:6245:7: otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) - { - otherlv_11=(Token)match(input,21,FOLLOW_36); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_11, grammarAccess.getJvmParameterizedTypeReferenceAccess().getCommaKeyword_1_4_2_2_0()); - - } - // InternalEntities.g:6249:7: ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) - // InternalEntities.g:6250:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) - { - // InternalEntities.g:6250:8: (lv_arguments_12_0= ruleJvmArgumentTypeReference ) - // InternalEntities.g:6251:9: lv_arguments_12_0= ruleJvmArgumentTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmParameterizedTypeReferenceAccess().getArgumentsJvmArgumentTypeReferenceParserRuleCall_1_4_2_2_1_0()); - - } - pushFollow(FOLLOW_37); - lv_arguments_12_0=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmParameterizedTypeReferenceRule()); - } - add( - current, - "arguments", - lv_arguments_12_0, - "org.eclipse.xtext.xbase.Xtype.JvmArgumentTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - default : - break loop108; - } - } while (true); - - otherlv_13=(Token)match(input,30,FOLLOW_76); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_13, grammarAccess.getJvmParameterizedTypeReferenceAccess().getGreaterThanSignKeyword_1_4_2_3()); - - } - - } - break; - - } - - - } - break; - - default : - break loop110; - } - } while (true); - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmParameterizedTypeReference" - - - // $ANTLR start "entryRuleJvmArgumentTypeReference" - // InternalEntities.g:6280:1: entryRuleJvmArgumentTypeReference returns [EObject current=null] : iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ; - public final EObject entryRuleJvmArgumentTypeReference() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmArgumentTypeReference = null; - - - try { - // InternalEntities.g:6280:65: (iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF ) - // InternalEntities.g:6281:2: iv_ruleJvmArgumentTypeReference= ruleJvmArgumentTypeReference EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmArgumentTypeReference=ruleJvmArgumentTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmArgumentTypeReference; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmArgumentTypeReference" - - - // $ANTLR start "ruleJvmArgumentTypeReference" - // InternalEntities.g:6287:1: ruleJvmArgumentTypeReference returns [EObject current=null] : (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ; - public final EObject ruleJvmArgumentTypeReference() throws RecognitionException { - EObject current = null; - - EObject this_JvmTypeReference_0 = null; - - EObject this_JvmWildcardTypeReference_1 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6293:2: ( (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) ) - // InternalEntities.g:6294:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) - { - // InternalEntities.g:6294:2: (this_JvmTypeReference_0= ruleJvmTypeReference | this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference ) - int alt112=2; - int LA112_0 = input.LA(1); - - if ( (LA112_0==RULE_ID||LA112_0==20||LA112_0==42) ) { - alt112=1; - } - else if ( (LA112_0==88) ) { - alt112=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 112, 0, input); - - throw nvae; - } - switch (alt112) { - case 1 : - // InternalEntities.g:6295:3: this_JvmTypeReference_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmTypeReferenceParserRuleCall_0()); - - } - pushFollow(FOLLOW_2); - this_JvmTypeReference_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_JvmTypeReference_0; - afterParserOrEnumRuleCall(); - - } - - } - break; - case 2 : - // InternalEntities.g:6304:3: this_JvmWildcardTypeReference_1= ruleJvmWildcardTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmArgumentTypeReferenceAccess().getJvmWildcardTypeReferenceParserRuleCall_1()); - - } - pushFollow(FOLLOW_2); - this_JvmWildcardTypeReference_1=ruleJvmWildcardTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current = this_JvmWildcardTypeReference_1; - afterParserOrEnumRuleCall(); - - } - - } - break; - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmArgumentTypeReference" - - - // $ANTLR start "entryRuleJvmWildcardTypeReference" - // InternalEntities.g:6316:1: entryRuleJvmWildcardTypeReference returns [EObject current=null] : iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ; - public final EObject entryRuleJvmWildcardTypeReference() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmWildcardTypeReference = null; - - - try { - // InternalEntities.g:6316:65: (iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF ) - // InternalEntities.g:6317:2: iv_ruleJvmWildcardTypeReference= ruleJvmWildcardTypeReference EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmWildcardTypeReference=ruleJvmWildcardTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmWildcardTypeReference; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmWildcardTypeReference" - - - // $ANTLR start "ruleJvmWildcardTypeReference" - // InternalEntities.g:6323:1: ruleJvmWildcardTypeReference returns [EObject current=null] : ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ; - public final EObject ruleJvmWildcardTypeReference() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - EObject lv_constraints_2_0 = null; - - EObject lv_constraints_3_0 = null; - - EObject lv_constraints_4_0 = null; - - EObject lv_constraints_5_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6329:2: ( ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) ) - // InternalEntities.g:6330:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) - { - // InternalEntities.g:6330:2: ( () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? ) - // InternalEntities.g:6331:3: () otherlv_1= '?' ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? - { - // InternalEntities.g:6331:3: () - // InternalEntities.g:6332:4: - { - if ( state.backtracking==0 ) { - - current = forceCreateModelElement( - grammarAccess.getJvmWildcardTypeReferenceAccess().getJvmWildcardTypeReferenceAction_0(), - current); - - } - - } - - otherlv_1=(Token)match(input,88,FOLLOW_81); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_1, grammarAccess.getJvmWildcardTypeReferenceAccess().getQuestionMarkKeyword_1()); - - } - // InternalEntities.g:6342:3: ( ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) | ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) )? - int alt115=3; - int LA115_0 = input.LA(1); - - if ( (LA115_0==17) ) { - alt115=1; - } - else if ( (LA115_0==76) ) { - alt115=2; - } - switch (alt115) { - case 1 : - // InternalEntities.g:6343:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) - { - // InternalEntities.g:6343:4: ( ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* ) - // InternalEntities.g:6344:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* - { - // InternalEntities.g:6344:5: ( (lv_constraints_2_0= ruleJvmUpperBound ) ) - // InternalEntities.g:6345:6: (lv_constraints_2_0= ruleJvmUpperBound ) - { - // InternalEntities.g:6345:6: (lv_constraints_2_0= ruleJvmUpperBound ) - // InternalEntities.g:6346:7: lv_constraints_2_0= ruleJvmUpperBound - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundParserRuleCall_2_0_0_0()); - - } - pushFollow(FOLLOW_82); - lv_constraints_2_0=ruleJvmUpperBound(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - current, - "constraints", - lv_constraints_2_0, - "org.eclipse.xtext.xbase.Xtype.JvmUpperBound"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6363:5: ( (lv_constraints_3_0= ruleJvmUpperBoundAnded ) )* - loop113: - do { - int alt113=2; - int LA113_0 = input.LA(1); - - if ( (LA113_0==89) ) { - alt113=1; - } - - - switch (alt113) { - case 1 : - // InternalEntities.g:6364:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) - { - // InternalEntities.g:6364:6: (lv_constraints_3_0= ruleJvmUpperBoundAnded ) - // InternalEntities.g:6365:7: lv_constraints_3_0= ruleJvmUpperBoundAnded - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmUpperBoundAndedParserRuleCall_2_0_1_0()); - - } - pushFollow(FOLLOW_82); - lv_constraints_3_0=ruleJvmUpperBoundAnded(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - current, - "constraints", - lv_constraints_3_0, - "org.eclipse.xtext.xbase.Xtype.JvmUpperBoundAnded"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop113; - } - } while (true); - - - } - - - } - break; - case 2 : - // InternalEntities.g:6384:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) - { - // InternalEntities.g:6384:4: ( ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* ) - // InternalEntities.g:6385:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* - { - // InternalEntities.g:6385:5: ( (lv_constraints_4_0= ruleJvmLowerBound ) ) - // InternalEntities.g:6386:6: (lv_constraints_4_0= ruleJvmLowerBound ) - { - // InternalEntities.g:6386:6: (lv_constraints_4_0= ruleJvmLowerBound ) - // InternalEntities.g:6387:7: lv_constraints_4_0= ruleJvmLowerBound - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundParserRuleCall_2_1_0_0()); - - } - pushFollow(FOLLOW_82); - lv_constraints_4_0=ruleJvmLowerBound(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - current, - "constraints", - lv_constraints_4_0, - "org.eclipse.xtext.xbase.Xtype.JvmLowerBound"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6404:5: ( (lv_constraints_5_0= ruleJvmLowerBoundAnded ) )* - loop114: - do { - int alt114=2; - int LA114_0 = input.LA(1); - - if ( (LA114_0==89) ) { - alt114=1; - } - - - switch (alt114) { - case 1 : - // InternalEntities.g:6405:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) - { - // InternalEntities.g:6405:6: (lv_constraints_5_0= ruleJvmLowerBoundAnded ) - // InternalEntities.g:6406:7: lv_constraints_5_0= ruleJvmLowerBoundAnded - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmWildcardTypeReferenceAccess().getConstraintsJvmLowerBoundAndedParserRuleCall_2_1_1_0()); - - } - pushFollow(FOLLOW_82); - lv_constraints_5_0=ruleJvmLowerBoundAnded(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmWildcardTypeReferenceRule()); - } - add( - current, - "constraints", - lv_constraints_5_0, - "org.eclipse.xtext.xbase.Xtype.JvmLowerBoundAnded"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - break loop114; - } - } while (true); - - - } - - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmWildcardTypeReference" - - - // $ANTLR start "entryRuleJvmUpperBound" - // InternalEntities.g:6429:1: entryRuleJvmUpperBound returns [EObject current=null] : iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ; - public final EObject entryRuleJvmUpperBound() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmUpperBound = null; - - - try { - // InternalEntities.g:6429:54: (iv_ruleJvmUpperBound= ruleJvmUpperBound EOF ) - // InternalEntities.g:6430:2: iv_ruleJvmUpperBound= ruleJvmUpperBound EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmUpperBoundRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmUpperBound=ruleJvmUpperBound(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmUpperBound; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmUpperBound" - - - // $ANTLR start "ruleJvmUpperBound" - // InternalEntities.g:6436:1: ruleJvmUpperBound returns [EObject current=null] : (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; - public final EObject ruleJvmUpperBound() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - EObject lv_typeReference_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6442:2: ( (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) - // InternalEntities.g:6443:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:6443:2: (otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:6444:3: otherlv_0= 'extends' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - { - otherlv_0=(Token)match(input,17,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAccess().getExtendsKeyword_0()); - - } - // InternalEntities.g:6448:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6449:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6449:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - // InternalEntities.g:6450:5: lv_typeReference_1_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmUpperBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_typeReference_1_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmUpperBoundRule()); - } - set( - current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmUpperBound" - - - // $ANTLR start "entryRuleJvmUpperBoundAnded" - // InternalEntities.g:6471:1: entryRuleJvmUpperBoundAnded returns [EObject current=null] : iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ; - public final EObject entryRuleJvmUpperBoundAnded() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmUpperBoundAnded = null; - - - try { - // InternalEntities.g:6471:59: (iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF ) - // InternalEntities.g:6472:2: iv_ruleJvmUpperBoundAnded= ruleJvmUpperBoundAnded EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmUpperBoundAndedRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmUpperBoundAnded=ruleJvmUpperBoundAnded(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmUpperBoundAnded; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmUpperBoundAnded" - - - // $ANTLR start "ruleJvmUpperBoundAnded" - // InternalEntities.g:6478:1: ruleJvmUpperBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; - public final EObject ruleJvmUpperBoundAnded() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - EObject lv_typeReference_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6484:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) - // InternalEntities.g:6485:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:6485:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:6486:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - { - otherlv_0=(Token)match(input,89,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getJvmUpperBoundAndedAccess().getAmpersandKeyword_0()); - - } - // InternalEntities.g:6490:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6491:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6491:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - // InternalEntities.g:6492:5: lv_typeReference_1_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmUpperBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_typeReference_1_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmUpperBoundAndedRule()); - } - set( - current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmUpperBoundAnded" - - - // $ANTLR start "entryRuleJvmLowerBound" - // InternalEntities.g:6513:1: entryRuleJvmLowerBound returns [EObject current=null] : iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ; - public final EObject entryRuleJvmLowerBound() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmLowerBound = null; - - - try { - // InternalEntities.g:6513:54: (iv_ruleJvmLowerBound= ruleJvmLowerBound EOF ) - // InternalEntities.g:6514:2: iv_ruleJvmLowerBound= ruleJvmLowerBound EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmLowerBoundRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmLowerBound=ruleJvmLowerBound(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmLowerBound; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmLowerBound" - - - // $ANTLR start "ruleJvmLowerBound" - // InternalEntities.g:6520:1: ruleJvmLowerBound returns [EObject current=null] : (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; - public final EObject ruleJvmLowerBound() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - EObject lv_typeReference_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6526:2: ( (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) - // InternalEntities.g:6527:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:6527:2: (otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:6528:3: otherlv_0= 'super' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - { - otherlv_0=(Token)match(input,76,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAccess().getSuperKeyword_0()); - - } - // InternalEntities.g:6532:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6533:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6533:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - // InternalEntities.g:6534:5: lv_typeReference_1_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmLowerBoundAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_typeReference_1_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmLowerBoundRule()); - } - set( - current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmLowerBound" - - - // $ANTLR start "entryRuleJvmLowerBoundAnded" - // InternalEntities.g:6555:1: entryRuleJvmLowerBoundAnded returns [EObject current=null] : iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ; - public final EObject entryRuleJvmLowerBoundAnded() throws RecognitionException { - EObject current = null; - - EObject iv_ruleJvmLowerBoundAnded = null; - - - try { - // InternalEntities.g:6555:59: (iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF ) - // InternalEntities.g:6556:2: iv_ruleJvmLowerBoundAnded= ruleJvmLowerBoundAnded EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getJvmLowerBoundAndedRule()); - } - pushFollow(FOLLOW_1); - iv_ruleJvmLowerBoundAnded=ruleJvmLowerBoundAnded(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleJvmLowerBoundAnded; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleJvmLowerBoundAnded" - - - // $ANTLR start "ruleJvmLowerBoundAnded" - // InternalEntities.g:6562:1: ruleJvmLowerBoundAnded returns [EObject current=null] : (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ; - public final EObject ruleJvmLowerBoundAnded() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - EObject lv_typeReference_1_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6568:2: ( (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) ) - // InternalEntities.g:6569:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - { - // InternalEntities.g:6569:2: (otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) ) - // InternalEntities.g:6570:3: otherlv_0= '&' ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - { - otherlv_0=(Token)match(input,89,FOLLOW_10); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getJvmLowerBoundAndedAccess().getAmpersandKeyword_0()); - - } - // InternalEntities.g:6574:3: ( (lv_typeReference_1_0= ruleJvmTypeReference ) ) - // InternalEntities.g:6575:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - { - // InternalEntities.g:6575:4: (lv_typeReference_1_0= ruleJvmTypeReference ) - // InternalEntities.g:6576:5: lv_typeReference_1_0= ruleJvmTypeReference - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getJvmLowerBoundAndedAccess().getTypeReferenceJvmTypeReferenceParserRuleCall_1_0()); - - } - pushFollow(FOLLOW_2); - lv_typeReference_1_0=ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getJvmLowerBoundAndedRule()); - } - set( - current, - "typeReference", - lv_typeReference_1_0, - "org.eclipse.xtext.xbase.Xtype.JvmTypeReference"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleJvmLowerBoundAnded" - - - // $ANTLR start "entryRuleQualifiedNameWithWildcard" - // InternalEntities.g:6597:1: entryRuleQualifiedNameWithWildcard returns [String current=null] : iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ; - public final String entryRuleQualifiedNameWithWildcard() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleQualifiedNameWithWildcard = null; - - - try { - // InternalEntities.g:6597:65: (iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF ) - // InternalEntities.g:6598:2: iv_ruleQualifiedNameWithWildcard= ruleQualifiedNameWithWildcard EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getQualifiedNameWithWildcardRule()); - } - pushFollow(FOLLOW_1); - iv_ruleQualifiedNameWithWildcard=ruleQualifiedNameWithWildcard(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleQualifiedNameWithWildcard.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQualifiedNameWithWildcard" - - - // $ANTLR start "ruleQualifiedNameWithWildcard" - // InternalEntities.g:6604:1: ruleQualifiedNameWithWildcard returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ; - public final AntlrDatatypeRuleToken ruleQualifiedNameWithWildcard() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - AntlrDatatypeRuleToken this_QualifiedName_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6610:2: ( (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) ) - // InternalEntities.g:6611:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) - { - // InternalEntities.g:6611:2: (this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' ) - // InternalEntities.g:6612:3: this_QualifiedName_0= ruleQualifiedName kw= '.' kw= '*' - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getQualifiedNameWithWildcardAccess().getQualifiedNameParserRuleCall_0()); - - } - pushFollow(FOLLOW_83); - this_QualifiedName_0=ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_QualifiedName_0); - - } - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - kw=(Token)match(input,55,FOLLOW_84); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getFullStopKeyword_1()); - - } - kw=(Token)match(input,47,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameWithWildcardAccess().getAsteriskKeyword_2()); - - } - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQualifiedNameWithWildcard" - - - // $ANTLR start "entryRuleValidID" - // InternalEntities.g:6636:1: entryRuleValidID returns [String current=null] : iv_ruleValidID= ruleValidID EOF ; - public final String entryRuleValidID() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleValidID = null; - - - try { - // InternalEntities.g:6636:47: (iv_ruleValidID= ruleValidID EOF ) - // InternalEntities.g:6637:2: iv_ruleValidID= ruleValidID EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getValidIDRule()); - } - pushFollow(FOLLOW_1); - iv_ruleValidID=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleValidID.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleValidID" - - - // $ANTLR start "ruleValidID" - // InternalEntities.g:6643:1: ruleValidID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : this_ID_0= RULE_ID ; - public final AntlrDatatypeRuleToken ruleValidID() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_ID_0=null; - - - enterRule(); - - try { - // InternalEntities.g:6649:2: (this_ID_0= RULE_ID ) - // InternalEntities.g:6650:2: this_ID_0= RULE_ID - { - this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_ID_0); - - } - if ( state.backtracking==0 ) { - - newLeafNode(this_ID_0, grammarAccess.getValidIDAccess().getIDTerminalRuleCall()); - - } - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleValidID" - - - // $ANTLR start "entryRuleXImportSection" - // InternalEntities.g:6660:1: entryRuleXImportSection returns [EObject current=null] : iv_ruleXImportSection= ruleXImportSection EOF ; - public final EObject entryRuleXImportSection() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXImportSection = null; - - - try { - // InternalEntities.g:6660:55: (iv_ruleXImportSection= ruleXImportSection EOF ) - // InternalEntities.g:6661:2: iv_ruleXImportSection= ruleXImportSection EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXImportSectionRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXImportSection=ruleXImportSection(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXImportSection; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXImportSection" - - - // $ANTLR start "ruleXImportSection" - // InternalEntities.g:6667:1: ruleXImportSection returns [EObject current=null] : ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ; - public final EObject ruleXImportSection() throws RecognitionException { - EObject current = null; - - EObject lv_importDeclarations_0_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6673:2: ( ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ ) - // InternalEntities.g:6674:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ - { - // InternalEntities.g:6674:2: ( (lv_importDeclarations_0_0= ruleXImportDeclaration ) )+ - int cnt116=0; - loop116: - do { - int alt116=2; - int LA116_0 = input.LA(1); - - if ( (LA116_0==74) ) { - alt116=1; - } - - - switch (alt116) { - case 1 : - // InternalEntities.g:6675:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) - { - // InternalEntities.g:6675:3: (lv_importDeclarations_0_0= ruleXImportDeclaration ) - // InternalEntities.g:6676:4: lv_importDeclarations_0_0= ruleXImportDeclaration - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXImportSectionAccess().getImportDeclarationsXImportDeclarationParserRuleCall_0()); - - } - pushFollow(FOLLOW_85); - lv_importDeclarations_0_0=ruleXImportDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXImportSectionRule()); - } - add( - current, - "importDeclarations", - lv_importDeclarations_0_0, - "org.eclipse.xtext.xbase.Xtype.XImportDeclaration"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - break; - - default : - if ( cnt116 >= 1 ) break loop116; - if (state.backtracking>0) {state.failed=true; return current;} - EarlyExitException eee = - new EarlyExitException(116, input); - throw eee; - } - cnt116++; - } while (true); - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXImportSection" - - - // $ANTLR start "entryRuleXImportDeclaration" - // InternalEntities.g:6696:1: entryRuleXImportDeclaration returns [EObject current=null] : iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ; - public final EObject entryRuleXImportDeclaration() throws RecognitionException { - EObject current = null; - - EObject iv_ruleXImportDeclaration = null; - - - try { - // InternalEntities.g:6696:59: (iv_ruleXImportDeclaration= ruleXImportDeclaration EOF ) - // InternalEntities.g:6697:2: iv_ruleXImportDeclaration= ruleXImportDeclaration EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getXImportDeclarationRule()); - } - pushFollow(FOLLOW_1); - iv_ruleXImportDeclaration=ruleXImportDeclaration(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleXImportDeclaration; - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleXImportDeclaration" - - - // $ANTLR start "ruleXImportDeclaration" - // InternalEntities.g:6703:1: ruleXImportDeclaration returns [EObject current=null] : (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) ; - public final EObject ruleXImportDeclaration() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token lv_static_1_0=null; - Token lv_extension_2_0=null; - Token lv_wildcard_4_0=null; - Token otherlv_8=null; - AntlrDatatypeRuleToken lv_memberName_5_0 = null; - - AntlrDatatypeRuleToken lv_importedNamespace_7_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6709:2: ( (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) ) - // InternalEntities.g:6710:2: (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) - { - // InternalEntities.g:6710:2: (otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? ) - // InternalEntities.g:6711:3: otherlv_0= 'import' ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) (otherlv_8= ';' )? - { - otherlv_0=(Token)match(input,74,FOLLOW_86); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_0, grammarAccess.getXImportDeclarationAccess().getImportKeyword_0()); - - } - // InternalEntities.g:6715:3: ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) ) - int alt119=3; - alt119 = dfa119.predict(input); - switch (alt119) { - case 1 : - // InternalEntities.g:6716:4: ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) - { - // InternalEntities.g:6716:4: ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) - // InternalEntities.g:6717:5: ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) - { - // InternalEntities.g:6717:5: ( (lv_static_1_0= 'static' ) ) - // InternalEntities.g:6718:6: (lv_static_1_0= 'static' ) - { - // InternalEntities.g:6718:6: (lv_static_1_0= 'static' ) - // InternalEntities.g:6719:7: lv_static_1_0= 'static' - { - lv_static_1_0=(Token)match(input,73,FOLLOW_87); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_static_1_0, grammarAccess.getXImportDeclarationAccess().getStaticStaticKeyword_1_0_0_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - setWithLastConsumed(current, "static", lv_static_1_0 != null, "static"); - - } - - } - - - } - - // InternalEntities.g:6731:5: ( (lv_extension_2_0= 'extension' ) )? - int alt117=2; - int LA117_0 = input.LA(1); - - if ( (LA117_0==75) ) { - alt117=1; - } - switch (alt117) { - case 1 : - // InternalEntities.g:6732:6: (lv_extension_2_0= 'extension' ) - { - // InternalEntities.g:6732:6: (lv_extension_2_0= 'extension' ) - // InternalEntities.g:6733:7: lv_extension_2_0= 'extension' - { - lv_extension_2_0=(Token)match(input,75,FOLLOW_87); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_extension_2_0, grammarAccess.getXImportDeclarationAccess().getExtensionExtensionKeyword_1_0_1_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - setWithLastConsumed(current, "extension", lv_extension_2_0 != null, "extension"); - - } - - } - - - } - break; - - } - - // InternalEntities.g:6745:5: ( ( ruleQualifiedNameInStaticImport ) ) - // InternalEntities.g:6746:6: ( ruleQualifiedNameInStaticImport ) - { - // InternalEntities.g:6746:6: ( ruleQualifiedNameInStaticImport ) - // InternalEntities.g:6747:7: ruleQualifiedNameInStaticImport - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_0_2_0()); - - } - pushFollow(FOLLOW_88); - ruleQualifiedNameInStaticImport(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - // InternalEntities.g:6761:5: ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) - int alt118=2; - int LA118_0 = input.LA(1); - - if ( (LA118_0==47) ) { - alt118=1; - } - else if ( (LA118_0==RULE_ID) ) { - alt118=2; - } - else { - if (state.backtracking>0) {state.failed=true; return current;} - NoViableAltException nvae = - new NoViableAltException("", 118, 0, input); - - throw nvae; - } - switch (alt118) { - case 1 : - // InternalEntities.g:6762:6: ( (lv_wildcard_4_0= '*' ) ) - { - // InternalEntities.g:6762:6: ( (lv_wildcard_4_0= '*' ) ) - // InternalEntities.g:6763:7: (lv_wildcard_4_0= '*' ) - { - // InternalEntities.g:6763:7: (lv_wildcard_4_0= '*' ) - // InternalEntities.g:6764:8: lv_wildcard_4_0= '*' - { - lv_wildcard_4_0=(Token)match(input,47,FOLLOW_89); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(lv_wildcard_4_0, grammarAccess.getXImportDeclarationAccess().getWildcardAsteriskKeyword_1_0_3_0_0()); - - } - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - setWithLastConsumed(current, "wildcard", lv_wildcard_4_0 != null, "*"); - - } - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:6777:6: ( (lv_memberName_5_0= ruleValidID ) ) - { - // InternalEntities.g:6777:6: ( (lv_memberName_5_0= ruleValidID ) ) - // InternalEntities.g:6778:7: (lv_memberName_5_0= ruleValidID ) - { - // InternalEntities.g:6778:7: (lv_memberName_5_0= ruleValidID ) - // InternalEntities.g:6779:8: lv_memberName_5_0= ruleValidID - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getMemberNameValidIDParserRuleCall_1_0_3_1_0()); - - } - pushFollow(FOLLOW_89); - lv_memberName_5_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); - } - set( - current, - "memberName", - lv_memberName_5_0, - "org.eclipse.xtext.xbase.Xtype.ValidID"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - - } - - - } - break; - case 2 : - // InternalEntities.g:6799:4: ( ( ruleQualifiedName ) ) - { - // InternalEntities.g:6799:4: ( ( ruleQualifiedName ) ) - // InternalEntities.g:6800:5: ( ruleQualifiedName ) - { - // InternalEntities.g:6800:5: ( ruleQualifiedName ) - // InternalEntities.g:6801:6: ruleQualifiedName - { - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElement(grammarAccess.getXImportDeclarationRule()); - } - - } - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedTypeJvmDeclaredTypeCrossReference_1_1_0()); - - } - pushFollow(FOLLOW_89); - ruleQualifiedName(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - case 3 : - // InternalEntities.g:6816:4: ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) - { - // InternalEntities.g:6816:4: ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) - // InternalEntities.g:6817:5: (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) - { - // InternalEntities.g:6817:5: (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) - // InternalEntities.g:6818:6: lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getXImportDeclarationAccess().getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_2_0()); - - } - pushFollow(FOLLOW_89); - lv_importedNamespace_7_0=ruleQualifiedNameWithWildcard(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - if (current==null) { - current = createModelElementForParent(grammarAccess.getXImportDeclarationRule()); - } - set( - current, - "importedNamespace", - lv_importedNamespace_7_0, - "org.eclipse.xtext.xbase.Xtype.QualifiedNameWithWildcard"); - afterParserOrEnumRuleCall(); - - } - - } - - - } - - - } - break; - - } - - // InternalEntities.g:6836:3: (otherlv_8= ';' )? - int alt120=2; - int LA120_0 = input.LA(1); - - if ( (LA120_0==62) ) { - alt120=1; - } - switch (alt120) { - case 1 : - // InternalEntities.g:6837:4: otherlv_8= ';' - { - otherlv_8=(Token)match(input,62,FOLLOW_2); if (state.failed) return current; - if ( state.backtracking==0 ) { - - newLeafNode(otherlv_8, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); - - } - - } - break; - - } - - - } - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleXImportDeclaration" - - - // $ANTLR start "entryRuleQualifiedNameInStaticImport" - // InternalEntities.g:6846:1: entryRuleQualifiedNameInStaticImport returns [String current=null] : iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ; - public final String entryRuleQualifiedNameInStaticImport() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleQualifiedNameInStaticImport = null; - - - try { - // InternalEntities.g:6846:67: (iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF ) - // InternalEntities.g:6847:2: iv_ruleQualifiedNameInStaticImport= ruleQualifiedNameInStaticImport EOF - { - if ( state.backtracking==0 ) { - newCompositeNode(grammarAccess.getQualifiedNameInStaticImportRule()); - } - pushFollow(FOLLOW_1); - iv_ruleQualifiedNameInStaticImport=ruleQualifiedNameInStaticImport(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - current =iv_ruleQualifiedNameInStaticImport.getText(); - } - match(input,EOF,FOLLOW_2); if (state.failed) return current; - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQualifiedNameInStaticImport" - - - // $ANTLR start "ruleQualifiedNameInStaticImport" - // InternalEntities.g:6853:1: ruleQualifiedNameInStaticImport returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ValidID_0= ruleValidID kw= '.' )+ ; - public final AntlrDatatypeRuleToken ruleQualifiedNameInStaticImport() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token kw=null; - AntlrDatatypeRuleToken this_ValidID_0 = null; - - - - enterRule(); - - try { - // InternalEntities.g:6859:2: ( (this_ValidID_0= ruleValidID kw= '.' )+ ) - // InternalEntities.g:6860:2: (this_ValidID_0= ruleValidID kw= '.' )+ - { - // InternalEntities.g:6860:2: (this_ValidID_0= ruleValidID kw= '.' )+ - int cnt121=0; - loop121: - do { - int alt121=2; - int LA121_0 = input.LA(1); - - if ( (LA121_0==RULE_ID) ) { - int LA121_2 = input.LA(2); - - if ( (LA121_2==55) ) { - alt121=1; - } - - - } - - - switch (alt121) { - case 1 : - // InternalEntities.g:6861:3: this_ValidID_0= ruleValidID kw= '.' - { - if ( state.backtracking==0 ) { - - newCompositeNode(grammarAccess.getQualifiedNameInStaticImportAccess().getValidIDParserRuleCall_0()); - - } - pushFollow(FOLLOW_83); - this_ValidID_0=ruleValidID(); - - state._fsp--; - if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(this_ValidID_0); - - } - if ( state.backtracking==0 ) { - - afterParserOrEnumRuleCall(); - - } - kw=(Token)match(input,55,FOLLOW_90); if (state.failed) return current; - if ( state.backtracking==0 ) { - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameInStaticImportAccess().getFullStopKeyword_1()); - - } - - } - break; - - default : - if ( cnt121 >= 1 ) break loop121; - if (state.backtracking>0) {state.failed=true; return current;} - EarlyExitException eee = - new EarlyExitException(121, input); - throw eee; - } - cnt121++; - } while (true); - - - } - - if ( state.backtracking==0 ) { - - leaveRule(); - - } - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQualifiedNameInStaticImport" - - // $ANTLR start synpred1_InternalEntities - public final void synpred1_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:665:6: ( ( () ( ( ruleOpMultiAssign ) ) ) ) - // InternalEntities.g:665:7: ( () ( ( ruleOpMultiAssign ) ) ) - { - // InternalEntities.g:665:7: ( () ( ( ruleOpMultiAssign ) ) ) - // InternalEntities.g:666:7: () ( ( ruleOpMultiAssign ) ) - { - // InternalEntities.g:666:7: () - // InternalEntities.g:667:7: - { - } - - // InternalEntities.g:668:7: ( ( ruleOpMultiAssign ) ) - // InternalEntities.g:669:8: ( ruleOpMultiAssign ) - { - // InternalEntities.g:669:8: ( ruleOpMultiAssign ) - // InternalEntities.g:670:9: ruleOpMultiAssign - { - pushFollow(FOLLOW_2); - ruleOpMultiAssign(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred1_InternalEntities - - // $ANTLR start synpred2_InternalEntities - public final void synpred2_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:859:5: ( ( () ( ( ruleOpOr ) ) ) ) - // InternalEntities.g:859:6: ( () ( ( ruleOpOr ) ) ) - { - // InternalEntities.g:859:6: ( () ( ( ruleOpOr ) ) ) - // InternalEntities.g:860:6: () ( ( ruleOpOr ) ) - { - // InternalEntities.g:860:6: () - // InternalEntities.g:861:6: - { - } - - // InternalEntities.g:862:6: ( ( ruleOpOr ) ) - // InternalEntities.g:863:7: ( ruleOpOr ) - { - // InternalEntities.g:863:7: ( ruleOpOr ) - // InternalEntities.g:864:8: ruleOpOr - { - pushFollow(FOLLOW_2); - ruleOpOr(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred2_InternalEntities - - // $ANTLR start synpred3_InternalEntities - public final void synpred3_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:966:5: ( ( () ( ( ruleOpAnd ) ) ) ) - // InternalEntities.g:966:6: ( () ( ( ruleOpAnd ) ) ) - { - // InternalEntities.g:966:6: ( () ( ( ruleOpAnd ) ) ) - // InternalEntities.g:967:6: () ( ( ruleOpAnd ) ) - { - // InternalEntities.g:967:6: () - // InternalEntities.g:968:6: - { - } - - // InternalEntities.g:969:6: ( ( ruleOpAnd ) ) - // InternalEntities.g:970:7: ( ruleOpAnd ) - { - // InternalEntities.g:970:7: ( ruleOpAnd ) - // InternalEntities.g:971:8: ruleOpAnd - { - pushFollow(FOLLOW_2); - ruleOpAnd(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred3_InternalEntities - - // $ANTLR start synpred4_InternalEntities - public final void synpred4_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1073:5: ( ( () ( ( ruleOpEquality ) ) ) ) - // InternalEntities.g:1073:6: ( () ( ( ruleOpEquality ) ) ) - { - // InternalEntities.g:1073:6: ( () ( ( ruleOpEquality ) ) ) - // InternalEntities.g:1074:6: () ( ( ruleOpEquality ) ) - { - // InternalEntities.g:1074:6: () - // InternalEntities.g:1075:6: - { - } - - // InternalEntities.g:1076:6: ( ( ruleOpEquality ) ) - // InternalEntities.g:1077:7: ( ruleOpEquality ) - { - // InternalEntities.g:1077:7: ( ruleOpEquality ) - // InternalEntities.g:1078:8: ruleOpEquality - { - pushFollow(FOLLOW_2); - ruleOpEquality(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred4_InternalEntities - - // $ANTLR start synpred5_InternalEntities - public final void synpred5_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1201:6: ( ( () 'instanceof' ) ) - // InternalEntities.g:1201:7: ( () 'instanceof' ) - { - // InternalEntities.g:1201:7: ( () 'instanceof' ) - // InternalEntities.g:1202:7: () 'instanceof' - { - // InternalEntities.g:1202:7: () - // InternalEntities.g:1203:7: - { - } - - match(input,38,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred5_InternalEntities - - // $ANTLR start synpred6_InternalEntities - public final void synpred6_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1244:6: ( ( () ( ( ruleOpCompare ) ) ) ) - // InternalEntities.g:1244:7: ( () ( ( ruleOpCompare ) ) ) - { - // InternalEntities.g:1244:7: ( () ( ( ruleOpCompare ) ) ) - // InternalEntities.g:1245:7: () ( ( ruleOpCompare ) ) - { - // InternalEntities.g:1245:7: () - // InternalEntities.g:1246:7: - { - } - - // InternalEntities.g:1247:7: ( ( ruleOpCompare ) ) - // InternalEntities.g:1248:8: ( ruleOpCompare ) - { - // InternalEntities.g:1248:8: ( ruleOpCompare ) - // InternalEntities.g:1249:9: ruleOpCompare - { - pushFollow(FOLLOW_2); - ruleOpCompare(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred6_InternalEntities - - // $ANTLR start synpred7_InternalEntities - public final void synpred7_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1379:5: ( ( () ( ( ruleOpOther ) ) ) ) - // InternalEntities.g:1379:6: ( () ( ( ruleOpOther ) ) ) - { - // InternalEntities.g:1379:6: ( () ( ( ruleOpOther ) ) ) - // InternalEntities.g:1380:6: () ( ( ruleOpOther ) ) - { - // InternalEntities.g:1380:6: () - // InternalEntities.g:1381:6: - { - } - - // InternalEntities.g:1382:6: ( ( ruleOpOther ) ) - // InternalEntities.g:1383:7: ( ruleOpOther ) - { - // InternalEntities.g:1383:7: ( ruleOpOther ) - // InternalEntities.g:1384:8: ruleOpOther - { - pushFollow(FOLLOW_2); - ruleOpOther(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred7_InternalEntities - - // $ANTLR start synpred8_InternalEntities - public final void synpred8_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1499:6: ( ( '>' '>' ) ) - // InternalEntities.g:1499:7: ( '>' '>' ) - { - // InternalEntities.g:1499:7: ( '>' '>' ) - // InternalEntities.g:1500:7: '>' '>' - { - match(input,30,FOLLOW_27); if (state.failed) return ; - match(input,30,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred8_InternalEntities - - // $ANTLR start synpred9_InternalEntities - public final void synpred9_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1534:6: ( ( '<' '<' ) ) - // InternalEntities.g:1534:7: ( '<' '<' ) - { - // InternalEntities.g:1534:7: ( '<' '<' ) - // InternalEntities.g:1535:7: '<' '<' - { - match(input,29,FOLLOW_18); if (state.failed) return ; - match(input,29,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred9_InternalEntities - - // $ANTLR start synpred10_InternalEntities - public final void synpred10_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1607:5: ( ( () ( ( ruleOpAdd ) ) ) ) - // InternalEntities.g:1607:6: ( () ( ( ruleOpAdd ) ) ) - { - // InternalEntities.g:1607:6: ( () ( ( ruleOpAdd ) ) ) - // InternalEntities.g:1608:6: () ( ( ruleOpAdd ) ) - { - // InternalEntities.g:1608:6: () - // InternalEntities.g:1609:6: - { - } - - // InternalEntities.g:1610:6: ( ( ruleOpAdd ) ) - // InternalEntities.g:1611:7: ( ruleOpAdd ) - { - // InternalEntities.g:1611:7: ( ruleOpAdd ) - // InternalEntities.g:1612:8: ruleOpAdd - { - pushFollow(FOLLOW_2); - ruleOpAdd(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred10_InternalEntities - - // $ANTLR start synpred11_InternalEntities - public final void synpred11_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1722:5: ( ( () ( ( ruleOpMulti ) ) ) ) - // InternalEntities.g:1722:6: ( () ( ( ruleOpMulti ) ) ) - { - // InternalEntities.g:1722:6: ( () ( ( ruleOpMulti ) ) ) - // InternalEntities.g:1723:6: () ( ( ruleOpMulti ) ) - { - // InternalEntities.g:1723:6: () - // InternalEntities.g:1724:6: - { - } - - // InternalEntities.g:1725:6: ( ( ruleOpMulti ) ) - // InternalEntities.g:1726:7: ( ruleOpMulti ) - { - // InternalEntities.g:1726:7: ( ruleOpMulti ) - // InternalEntities.g:1727:8: ruleOpMulti - { - pushFollow(FOLLOW_2); - ruleOpMulti(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred11_InternalEntities - - // $ANTLR start synpred12_InternalEntities - public final void synpred12_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:1957:5: ( ( () 'as' ) ) - // InternalEntities.g:1957:6: ( () 'as' ) - { - // InternalEntities.g:1957:6: ( () 'as' ) - // InternalEntities.g:1958:6: () 'as' - { - // InternalEntities.g:1958:6: () - // InternalEntities.g:1959:6: - { - } - - match(input,52,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred12_InternalEntities - - // $ANTLR start synpred13_InternalEntities - public final void synpred13_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2025:4: ( ( () ( ( ruleOpPostfix ) ) ) ) - // InternalEntities.g:2025:5: ( () ( ( ruleOpPostfix ) ) ) - { - // InternalEntities.g:2025:5: ( () ( ( ruleOpPostfix ) ) ) - // InternalEntities.g:2026:5: () ( ( ruleOpPostfix ) ) - { - // InternalEntities.g:2026:5: () - // InternalEntities.g:2027:5: - { - } - - // InternalEntities.g:2028:5: ( ( ruleOpPostfix ) ) - // InternalEntities.g:2029:6: ( ruleOpPostfix ) - { - // InternalEntities.g:2029:6: ( ruleOpPostfix ) - // InternalEntities.g:2030:7: ruleOpPostfix - { - pushFollow(FOLLOW_2); - ruleOpPostfix(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred13_InternalEntities - - // $ANTLR start synpred14_InternalEntities - public final void synpred14_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2121:6: ( ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) ) - // InternalEntities.g:2121:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) - { - // InternalEntities.g:2121:7: ( () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign ) - // InternalEntities.g:2122:7: () ( '.' | ( ( '::' ) ) ) ( ( ruleFeatureCallID ) ) ruleOpSingleAssign - { - // InternalEntities.g:2122:7: () - // InternalEntities.g:2123:7: - { - } - - // InternalEntities.g:2124:7: ( '.' | ( ( '::' ) ) ) - int alt122=2; - int LA122_0 = input.LA(1); - - if ( (LA122_0==55) ) { - alt122=1; - } - else if ( (LA122_0==56) ) { - alt122=2; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 122, 0, input); - - throw nvae; - } - switch (alt122) { - case 1 : - // InternalEntities.g:2125:8: '.' - { - match(input,55,FOLLOW_34); if (state.failed) return ; - - } - break; - case 2 : - // InternalEntities.g:2127:8: ( ( '::' ) ) - { - // InternalEntities.g:2127:8: ( ( '::' ) ) - // InternalEntities.g:2128:9: ( '::' ) - { - // InternalEntities.g:2128:9: ( '::' ) - // InternalEntities.g:2129:10: '::' - { - match(input,56,FOLLOW_34); if (state.failed) return ; - - } - - - } - - - } - break; - - } - - // InternalEntities.g:2133:7: ( ( ruleFeatureCallID ) ) - // InternalEntities.g:2134:8: ( ruleFeatureCallID ) - { - // InternalEntities.g:2134:8: ( ruleFeatureCallID ) - // InternalEntities.g:2135:9: ruleFeatureCallID - { - pushFollow(FOLLOW_15); - ruleFeatureCallID(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - pushFollow(FOLLOW_2); - ruleOpSingleAssign(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred14_InternalEntities - - // $ANTLR start synpred15_InternalEntities - public final void synpred15_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2218:6: ( ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) ) - // InternalEntities.g:2218:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) - { - // InternalEntities.g:2218:7: ( () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) ) - // InternalEntities.g:2219:7: () ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) - { - // InternalEntities.g:2219:7: () - // InternalEntities.g:2220:7: - { - } - - // InternalEntities.g:2221:7: ( '.' | ( ( '?.' ) ) | ( ( '::' ) ) ) - int alt123=3; - switch ( input.LA(1) ) { - case 55: - { - alt123=1; - } - break; - case 57: - { - alt123=2; - } - break; - case 56: - { - alt123=3; - } - break; - default: - if (state.backtracking>0) {state.failed=true; return ;} - NoViableAltException nvae = - new NoViableAltException("", 123, 0, input); - - throw nvae; - } - - switch (alt123) { - case 1 : - // InternalEntities.g:2222:8: '.' - { - match(input,55,FOLLOW_2); if (state.failed) return ; - - } - break; - case 2 : - // InternalEntities.g:2224:8: ( ( '?.' ) ) - { - // InternalEntities.g:2224:8: ( ( '?.' ) ) - // InternalEntities.g:2225:9: ( '?.' ) - { - // InternalEntities.g:2225:9: ( '?.' ) - // InternalEntities.g:2226:10: '?.' - { - match(input,57,FOLLOW_2); if (state.failed) return ; - - } - - - } - - - } - break; - case 3 : - // InternalEntities.g:2230:8: ( ( '::' ) ) - { - // InternalEntities.g:2230:8: ( ( '::' ) ) - // InternalEntities.g:2231:9: ( '::' ) - { - // InternalEntities.g:2231:9: ( '::' ) - // InternalEntities.g:2232:10: '::' - { - match(input,56,FOLLOW_2); if (state.failed) return ; - - } - - - } - - - } - break; - - } - - - } - - - } - } - // $ANTLR end synpred15_InternalEntities - - // $ANTLR start synpred16_InternalEntities - public final void synpred16_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2356:7: ( ( '(' ) ) - // InternalEntities.g:2356:8: ( '(' ) - { - // InternalEntities.g:2356:8: ( '(' ) - // InternalEntities.g:2357:8: '(' - { - match(input,20,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred16_InternalEntities - - // $ANTLR start synpred17_InternalEntities - public final void synpred17_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2375:8: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) - // InternalEntities.g:2375:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - { - // InternalEntities.g:2375:9: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - // InternalEntities.g:2376:9: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) - { - // InternalEntities.g:2376:9: () - // InternalEntities.g:2377:9: - { - } - - // InternalEntities.g:2378:9: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? - int alt125=2; - int LA125_0 = input.LA(1); - - if ( (LA125_0==RULE_ID||LA125_0==20||LA125_0==42) ) { - alt125=1; - } - switch (alt125) { - case 1 : - // InternalEntities.g:2379:10: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* - { - // InternalEntities.g:2379:10: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:2380:11: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:2380:11: ( ruleJvmFormalParameter ) - // InternalEntities.g:2381:12: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - // InternalEntities.g:2384:10: ( ',' ( ( ruleJvmFormalParameter ) ) )* - loop124: - do { - int alt124=2; - int LA124_0 = input.LA(1); - - if ( (LA124_0==21) ) { - alt124=1; - } - - - switch (alt124) { - case 1 : - // InternalEntities.g:2385:11: ',' ( ( ruleJvmFormalParameter ) ) - { - match(input,21,FOLLOW_10); if (state.failed) return ; - // InternalEntities.g:2386:11: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:2387:12: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:2387:12: ( ruleJvmFormalParameter ) - // InternalEntities.g:2388:13: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - break; - - default : - break loop124; - } - } while (true); - - - } - break; - - } - - // InternalEntities.g:2393:9: ( ( '|' ) ) - // InternalEntities.g:2394:10: ( '|' ) - { - // InternalEntities.g:2394:10: ( '|' ) - // InternalEntities.g:2395:11: '|' - { - match(input,61,FOLLOW_2); if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred17_InternalEntities - - // $ANTLR start synpred18_InternalEntities - public final void synpred18_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2472:6: ( ( () '[' ) ) - // InternalEntities.g:2472:7: ( () '[' ) - { - // InternalEntities.g:2472:7: ( () '[' ) - // InternalEntities.g:2473:7: () '[' - { - // InternalEntities.g:2473:7: () - // InternalEntities.g:2474:7: - { - } - - match(input,59,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred18_InternalEntities - - // $ANTLR start synpred19_InternalEntities - public final void synpred19_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2545:4: ( ( () 'synchronized' '(' ) ) - // InternalEntities.g:2545:5: ( () 'synchronized' '(' ) - { - // InternalEntities.g:2545:5: ( () 'synchronized' '(' ) - // InternalEntities.g:2546:5: () 'synchronized' '(' - { - // InternalEntities.g:2546:5: () - // InternalEntities.g:2547:5: - { - } - - match(input,86,FOLLOW_11); if (state.failed) return ; - match(input,20,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred19_InternalEntities - - // $ANTLR start synpred20_InternalEntities - public final void synpred20_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2590:4: ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) - // InternalEntities.g:2590:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) - { - // InternalEntities.g:2590:5: ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) - // InternalEntities.g:2591:5: () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' - { - // InternalEntities.g:2591:5: () - // InternalEntities.g:2592:5: - { - } - - match(input,68,FOLLOW_11); if (state.failed) return ; - match(input,20,FOLLOW_10); if (state.failed) return ; - // InternalEntities.g:2595:5: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:2596:6: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:2596:6: ( ruleJvmFormalParameter ) - // InternalEntities.g:2597:7: ruleJvmFormalParameter - { - pushFollow(FOLLOW_9); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - match(input,18,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred20_InternalEntities - - // $ANTLR start synpred21_InternalEntities - public final void synpred21_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:2704:4: ( ( () '[' ) ) - // InternalEntities.g:2704:5: ( () '[' ) - { - // InternalEntities.g:2704:5: ( () '[' ) - // InternalEntities.g:2705:5: () '[' - { - // InternalEntities.g:2705:5: () - // InternalEntities.g:2706:5: - { - } - - match(input,59,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred21_InternalEntities - - // $ANTLR start synpred23_InternalEntities - public final void synpred23_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:3009:4: ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) - // InternalEntities.g:3009:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - { - // InternalEntities.g:3009:5: ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - // InternalEntities.g:3010:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) - { - // InternalEntities.g:3010:5: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? - int alt127=2; - int LA127_0 = input.LA(1); - - if ( (LA127_0==RULE_ID||LA127_0==20||LA127_0==42) ) { - alt127=1; - } - switch (alt127) { - case 1 : - // InternalEntities.g:3011:6: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* - { - // InternalEntities.g:3011:6: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:3012:7: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:3012:7: ( ruleJvmFormalParameter ) - // InternalEntities.g:3013:8: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - // InternalEntities.g:3016:6: ( ',' ( ( ruleJvmFormalParameter ) ) )* - loop126: - do { - int alt126=2; - int LA126_0 = input.LA(1); - - if ( (LA126_0==21) ) { - alt126=1; - } - - - switch (alt126) { - case 1 : - // InternalEntities.g:3017:7: ',' ( ( ruleJvmFormalParameter ) ) - { - match(input,21,FOLLOW_10); if (state.failed) return ; - // InternalEntities.g:3018:7: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:3019:8: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:3019:8: ( ruleJvmFormalParameter ) - // InternalEntities.g:3020:9: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - break; - - default : - break loop126; - } - } while (true); - - - } - break; - - } - - // InternalEntities.g:3025:5: ( ( '|' ) ) - // InternalEntities.g:3026:6: ( '|' ) - { - // InternalEntities.g:3026:6: ( '|' ) - // InternalEntities.g:3027:7: '|' - { - match(input,61,FOLLOW_2); if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred23_InternalEntities - - // $ANTLR start synpred25_InternalEntities - public final void synpred25_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:3418:5: ( 'else' ) - // InternalEntities.g:3418:6: 'else' - { - match(input,64,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred25_InternalEntities - - // $ANTLR start synpred26_InternalEntities - public final void synpred26_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:3477:6: ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) ) - // InternalEntities.g:3477:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) - { - // InternalEntities.g:3477:7: ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) - // InternalEntities.g:3478:7: '(' ( ( ruleJvmFormalParameter ) ) ':' - { - match(input,20,FOLLOW_10); if (state.failed) return ; - // InternalEntities.g:3479:7: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:3480:8: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:3480:8: ( ruleJvmFormalParameter ) - // InternalEntities.g:3481:9: ruleJvmFormalParameter - { - pushFollow(FOLLOW_9); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - match(input,18,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred26_InternalEntities - - // $ANTLR start synpred27_InternalEntities - public final void synpred27_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:3544:6: ( ( ( ( ruleJvmFormalParameter ) ) ':' ) ) - // InternalEntities.g:3544:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) - { - // InternalEntities.g:3544:7: ( ( ( ruleJvmFormalParameter ) ) ':' ) - // InternalEntities.g:3545:7: ( ( ruleJvmFormalParameter ) ) ':' - { - // InternalEntities.g:3545:7: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:3546:8: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:3546:8: ( ruleJvmFormalParameter ) - // InternalEntities.g:3547:9: ruleJvmFormalParameter - { - pushFollow(FOLLOW_9); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - match(input,18,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred27_InternalEntities - - // $ANTLR start synpred29_InternalEntities - public final void synpred29_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4362:5: ( ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) ) - // InternalEntities.g:4362:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) - { - // InternalEntities.g:4362:6: ( ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) ) - // InternalEntities.g:4363:6: ( ( ruleJvmTypeReference ) ) ( ( ruleValidID ) ) - { - // InternalEntities.g:4363:6: ( ( ruleJvmTypeReference ) ) - // InternalEntities.g:4364:7: ( ruleJvmTypeReference ) - { - // InternalEntities.g:4364:7: ( ruleJvmTypeReference ) - // InternalEntities.g:4365:8: ruleJvmTypeReference - { - pushFollow(FOLLOW_4); - ruleJvmTypeReference(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - // InternalEntities.g:4368:6: ( ( ruleValidID ) ) - // InternalEntities.g:4369:7: ( ruleValidID ) - { - // InternalEntities.g:4369:7: ( ruleValidID ) - // InternalEntities.g:4370:8: ruleValidID - { - pushFollow(FOLLOW_2); - ruleValidID(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred29_InternalEntities - - // $ANTLR start synpred30_InternalEntities - public final void synpred30_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4674:5: ( ( '(' ) ) - // InternalEntities.g:4674:6: ( '(' ) - { - // InternalEntities.g:4674:6: ( '(' ) - // InternalEntities.g:4675:6: '(' - { - match(input,20,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred30_InternalEntities - - // $ANTLR start synpred31_InternalEntities - public final void synpred31_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4693:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) - // InternalEntities.g:4693:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - { - // InternalEntities.g:4693:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - // InternalEntities.g:4694:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) - { - // InternalEntities.g:4694:7: () - // InternalEntities.g:4695:7: - { - } - - // InternalEntities.g:4696:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? - int alt131=2; - int LA131_0 = input.LA(1); - - if ( (LA131_0==RULE_ID||LA131_0==20||LA131_0==42) ) { - alt131=1; - } - switch (alt131) { - case 1 : - // InternalEntities.g:4697:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* - { - // InternalEntities.g:4697:8: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:4698:9: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:4698:9: ( ruleJvmFormalParameter ) - // InternalEntities.g:4699:10: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - // InternalEntities.g:4702:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* - loop130: - do { - int alt130=2; - int LA130_0 = input.LA(1); - - if ( (LA130_0==21) ) { - alt130=1; - } - - - switch (alt130) { - case 1 : - // InternalEntities.g:4703:9: ',' ( ( ruleJvmFormalParameter ) ) - { - match(input,21,FOLLOW_10); if (state.failed) return ; - // InternalEntities.g:4704:9: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:4705:10: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:4705:10: ( ruleJvmFormalParameter ) - // InternalEntities.g:4706:11: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - break; - - default : - break loop130; - } - } while (true); - - - } - break; - - } - - // InternalEntities.g:4711:7: ( ( '|' ) ) - // InternalEntities.g:4712:8: ( '|' ) - { - // InternalEntities.g:4712:8: ( '|' ) - // InternalEntities.g:4713:9: '|' - { - match(input,61,FOLLOW_2); if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred31_InternalEntities - - // $ANTLR start synpred32_InternalEntities - public final void synpred32_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4790:4: ( ( () '[' ) ) - // InternalEntities.g:4790:5: ( () '[' ) - { - // InternalEntities.g:4790:5: ( () '[' ) - // InternalEntities.g:4791:5: () '[' - { - // InternalEntities.g:4791:5: () - // InternalEntities.g:4792:5: - { - } - - match(input,59,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred32_InternalEntities - - // $ANTLR start synpred33_InternalEntities - public final void synpred33_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:4950:5: ( '<' ) - // InternalEntities.g:4950:6: '<' - { - match(input,29,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred33_InternalEntities - - // $ANTLR start synpred34_InternalEntities - public final void synpred34_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5007:5: ( ( '(' ) ) - // InternalEntities.g:5007:6: ( '(' ) - { - // InternalEntities.g:5007:6: ( '(' ) - // InternalEntities.g:5008:6: '(' - { - match(input,20,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred34_InternalEntities - - // $ANTLR start synpred35_InternalEntities - public final void synpred35_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5026:6: ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) ) - // InternalEntities.g:5026:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - { - // InternalEntities.g:5026:7: ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) - // InternalEntities.g:5027:7: () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) - { - // InternalEntities.g:5027:7: () - // InternalEntities.g:5028:7: - { - } - - // InternalEntities.g:5029:7: ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? - int alt133=2; - int LA133_0 = input.LA(1); - - if ( (LA133_0==RULE_ID||LA133_0==20||LA133_0==42) ) { - alt133=1; - } - switch (alt133) { - case 1 : - // InternalEntities.g:5030:8: ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* - { - // InternalEntities.g:5030:8: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:5031:9: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:5031:9: ( ruleJvmFormalParameter ) - // InternalEntities.g:5032:10: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - // InternalEntities.g:5035:8: ( ',' ( ( ruleJvmFormalParameter ) ) )* - loop132: - do { - int alt132=2; - int LA132_0 = input.LA(1); - - if ( (LA132_0==21) ) { - alt132=1; - } - - - switch (alt132) { - case 1 : - // InternalEntities.g:5036:9: ',' ( ( ruleJvmFormalParameter ) ) - { - match(input,21,FOLLOW_10); if (state.failed) return ; - // InternalEntities.g:5037:9: ( ( ruleJvmFormalParameter ) ) - // InternalEntities.g:5038:10: ( ruleJvmFormalParameter ) - { - // InternalEntities.g:5038:10: ( ruleJvmFormalParameter ) - // InternalEntities.g:5039:11: ruleJvmFormalParameter - { - pushFollow(FOLLOW_48); - ruleJvmFormalParameter(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - - - } - break; - - default : - break loop132; - } - } while (true); - - - } - break; - - } - - // InternalEntities.g:5044:7: ( ( '|' ) ) - // InternalEntities.g:5045:8: ( '|' ) - { - // InternalEntities.g:5045:8: ( '|' ) - // InternalEntities.g:5046:9: '|' - { - match(input,61,FOLLOW_2); if (state.failed) return ; - - } - - - } - - - } - - - } - } - // $ANTLR end synpred35_InternalEntities - - // $ANTLR start synpred36_InternalEntities - public final void synpred36_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5123:4: ( ( () '[' ) ) - // InternalEntities.g:5123:5: ( () '[' ) - { - // InternalEntities.g:5123:5: ( () '[' ) - // InternalEntities.g:5124:5: () '[' - { - // InternalEntities.g:5124:5: () - // InternalEntities.g:5125:5: - { - } - - match(input,59,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred36_InternalEntities - - // $ANTLR start synpred37_InternalEntities - public final void synpred37_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5466:4: ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING ) - // InternalEntities.g: - { - if ( (input.LA(1)>=RULE_STRING && input.LA(1)<=RULE_ID)||input.LA(1)==14||input.LA(1)==17||input.LA(1)==20||input.LA(1)==29||(input.LA(1)>=45 && input.LA(1)<=46)||input.LA(1)==51||(input.LA(1)>=58 && input.LA(1)<=59)||input.LA(1)==63||input.LA(1)==65||(input.LA(1)>=68 && input.LA(1)<=70)||(input.LA(1)>=73 && input.LA(1)<=84)||input.LA(1)==86 ) { - input.consume(); - state.errorRecovery=false;state.failed=false; - } - else { - if (state.backtracking>0) {state.failed=true; return ;} - MismatchedSetException mse = new MismatchedSetException(null,input); - throw mse; - } - - - } - } - // $ANTLR end synpred37_InternalEntities - - // $ANTLR start synpred38_InternalEntities - public final void synpred38_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5537:6: ( 'catch' ) - // InternalEntities.g:5537:7: 'catch' - { - match(input,87,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred38_InternalEntities - - // $ANTLR start synpred39_InternalEntities - public final void synpred39_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5558:7: ( 'finally' ) - // InternalEntities.g:5558:8: 'finally' - { - match(input,85,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred39_InternalEntities - - // $ANTLR start synpred42_InternalEntities - public final void synpred42_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5802:5: ( '.' ) - // InternalEntities.g:5802:6: '.' - { - match(input,55,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred42_InternalEntities - - // $ANTLR start synpred43_InternalEntities - public final void synpred43_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:5928:5: ( ( () ruleArrayBrackets ) ) - // InternalEntities.g:5928:6: ( () ruleArrayBrackets ) - { - // InternalEntities.g:5928:6: ( () ruleArrayBrackets ) - // InternalEntities.g:5929:6: () ruleArrayBrackets - { - // InternalEntities.g:5929:6: () - // InternalEntities.g:5930:6: - { - } - - pushFollow(FOLLOW_2); - ruleArrayBrackets(); - - state._fsp--; - if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred43_InternalEntities - - // $ANTLR start synpred44_InternalEntities - public final void synpred44_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6125:5: ( '<' ) - // InternalEntities.g:6125:6: '<' - { - match(input,29,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred44_InternalEntities - - // $ANTLR start synpred45_InternalEntities - public final void synpred45_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6181:6: ( ( () '.' ) ) - // InternalEntities.g:6181:7: ( () '.' ) - { - // InternalEntities.g:6181:7: ( () '.' ) - // InternalEntities.g:6182:7: () '.' - { - // InternalEntities.g:6182:7: () - // InternalEntities.g:6183:7: - { - } - - match(input,55,FOLLOW_2); if (state.failed) return ; - - } - - - } - } - // $ANTLR end synpred45_InternalEntities - - // $ANTLR start synpred46_InternalEntities - public final void synpred46_InternalEntities_fragment() throws RecognitionException { - // InternalEntities.g:6219:7: ( '<' ) - // InternalEntities.g:6219:8: '<' - { - match(input,29,FOLLOW_2); if (state.failed) return ; - - } - } - // $ANTLR end synpred46_InternalEntities - - // Delegated rules - - public final boolean synpred16_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred16_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred11_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred11_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred29_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred29_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred5_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred5_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred37_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred37_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred38_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred38_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred32_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred32_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred15_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred15_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred17_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred17_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred45_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred45_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred9_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred9_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred42_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred42_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred34_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred34_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred12_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred12_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred21_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred21_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred25_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred25_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred6_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred6_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred20_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred20_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred33_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred33_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred1_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred1_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred46_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred46_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred35_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred35_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred3_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred3_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred27_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred27_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred8_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred8_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred19_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred19_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred26_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred26_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred2_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred2_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred13_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred13_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred43_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred43_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred30_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred30_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred4_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred4_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred10_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred10_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred36_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred36_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred7_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred7_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred23_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred23_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred39_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred39_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred14_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred14_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred31_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred31_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred18_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred18_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - public final boolean synpred44_InternalEntities() { - state.backtracking++; - int start = input.mark(); - try { - synpred44_InternalEntities_fragment(); // can never throw exception - } catch (RecognitionException re) { - System.err.println("impossible: "+re); - } - boolean success = !state.failed; - input.rewind(start); - state.backtracking--; - state.failed=false; - return success; - } - - - protected DFA11 dfa11 = new DFA11(this); - protected DFA21 dfa21 = new DFA21(this); - protected DFA24 dfa24 = new DFA24(this); - protected DFA40 dfa40 = new DFA40(this); - protected DFA39 dfa39 = new DFA39(this); - protected DFA41 dfa41 = new DFA41(this); - protected DFA43 dfa43 = new DFA43(this); - protected DFA52 dfa52 = new DFA52(this); - protected DFA59 dfa59 = new DFA59(this); - protected DFA58 dfa58 = new DFA58(this); - protected DFA81 dfa81 = new DFA81(this); - protected DFA80 dfa80 = new DFA80(this); - protected DFA82 dfa82 = new DFA82(this); - protected DFA86 dfa86 = new DFA86(this); - protected DFA89 dfa89 = new DFA89(this); - protected DFA88 dfa88 = new DFA88(this); - protected DFA90 dfa90 = new DFA90(this); - protected DFA93 dfa93 = new DFA93(this); - protected DFA111 dfa111 = new DFA111(this); - protected DFA109 dfa109 = new DFA109(this); - protected DFA119 dfa119 = new DFA119(this); - static final String dfa_1s = "\12\uffff"; - static final String dfa_2s = "\1\10\11\uffff"; - static final String dfa_3s = "\1\4\7\0\2\uffff"; - static final String dfa_4s = "\1\127\7\0\2\uffff"; - static final String dfa_5s = "\10\uffff\1\2\1\1"; - static final String dfa_6s = "\1\uffff\1\2\1\3\1\4\1\5\1\6\1\1\1\0\2\uffff}>"; - static final String[] dfa_7s = { - "\5\10\5\uffff\2\10\1\uffff\2\10\1\uffff\3\10\1\uffff\1\1\1\2\1\3\1\4\1\5\1\6\1\7\36\10\1\uffff\32\10", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "", - "" - }; - - static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s); - static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s); - static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s); - static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s); - static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s); - static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s); - static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s); - - class DFA11 extends DFA { - - public DFA11(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 11; - this.eot = dfa_1; - this.eof = dfa_2; - this.min = dfa_3; - this.max = dfa_4; - this.accept = dfa_5; - this.special = dfa_6; - this.transition = dfa_7; - } - public String getDescription() { - return "663:4: ( ( ( ( () ( ( ruleOpMultiAssign ) ) ) )=> ( () ( ( ruleOpMultiAssign ) ) ) ) ( (lv_rightOperand_7_0= ruleXAssignment ) ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA11_7 = input.LA(1); - - - int index11_7 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_7); - if ( s>=0 ) return s; - break; - case 1 : - int LA11_6 = input.LA(1); - - - int index11_6 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_6); - if ( s>=0 ) return s; - break; - case 2 : - int LA11_1 = input.LA(1); - - - int index11_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_1); - if ( s>=0 ) return s; - break; - case 3 : - int LA11_2 = input.LA(1); - - - int index11_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_2); - if ( s>=0 ) return s; - break; - case 4 : - int LA11_3 = input.LA(1); - - - int index11_3 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_3); - if ( s>=0 ) return s; - break; - case 5 : - int LA11_4 = input.LA(1); - - - int index11_4 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_4); - if ( s>=0 ) return s; - break; - case 6 : - int LA11_5 = input.LA(1); - - - int index11_5 = input.index(); - input.rewind(); - s = -1; - if ( (synpred1_InternalEntities()) ) {s = 9;} - - else if ( (true) ) {s = 8;} - - - input.seek(index11_5); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 11, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_8s = "\13\uffff"; - static final String dfa_9s = "\1\1\12\uffff"; - static final String dfa_10s = "\1\4\1\uffff\10\0\1\uffff"; - static final String dfa_11s = "\1\127\1\uffff\10\0\1\uffff"; - static final String dfa_12s = "\1\uffff\1\2\10\uffff\1\1"; - static final String dfa_13s = "\2\uffff\1\1\1\6\1\4\1\5\1\7\1\0\1\2\1\3\1\uffff}>"; - static final String[] dfa_14s = { - "\5\1\5\uffff\2\1\1\uffff\2\1\1\uffff\3\1\1\uffff\5\1\1\2\1\3\10\1\1\4\1\5\1\6\1\7\1\10\1\11\20\1\1\uffff\32\1", - "", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "" - }; - - static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s); - static final short[] dfa_9 = DFA.unpackEncodedString(dfa_9s); - static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s); - static final char[] dfa_11 = DFA.unpackEncodedStringToUnsignedChars(dfa_11s); - static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s); - static final short[] dfa_13 = DFA.unpackEncodedString(dfa_13s); - static final short[][] dfa_14 = unpackEncodedStringArray(dfa_14s); - - class DFA21 extends DFA { - - public DFA21(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 21; - this.eot = dfa_8; - this.eof = dfa_9; - this.min = dfa_10; - this.max = dfa_11; - this.accept = dfa_12; - this.special = dfa_13; - this.transition = dfa_14; - } - public String getDescription() { - return "()* loopback of 1377:3: ( ( ( ( () ( ( ruleOpOther ) ) ) )=> ( () ( ( ruleOpOther ) ) ) ) ( (lv_rightOperand_3_0= ruleXAdditiveExpression ) ) )*"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA21_7 = input.LA(1); - - - int index21_7 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_7); - if ( s>=0 ) return s; - break; - case 1 : - int LA21_2 = input.LA(1); - - - int index21_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_2); - if ( s>=0 ) return s; - break; - case 2 : - int LA21_8 = input.LA(1); - - - int index21_8 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_8); - if ( s>=0 ) return s; - break; - case 3 : - int LA21_9 = input.LA(1); - - - int index21_9 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_9); - if ( s>=0 ) return s; - break; - case 4 : - int LA21_4 = input.LA(1); - - - int index21_4 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_4); - if ( s>=0 ) return s; - break; - case 5 : - int LA21_5 = input.LA(1); - - - int index21_5 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_5); - if ( s>=0 ) return s; - break; - case 6 : - int LA21_3 = input.LA(1); - - - int index21_3 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_3); - if ( s>=0 ) return s; - break; - case 7 : - int LA21_6 = input.LA(1); - - - int index21_6 = input.index(); - input.rewind(); - s = -1; - if ( (synpred7_InternalEntities()) ) {s = 10;} - - else if ( (true) ) {s = 1;} - - - input.seek(index21_6); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 21, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_15s = "\1\35\2\uffff\1\36\7\uffff"; - static final String dfa_16s = "\1\54\2\uffff\1\51\7\uffff"; - static final String dfa_17s = "\1\uffff\1\1\1\2\1\uffff\1\4\1\5\1\7\1\10\1\11\1\3\1\6"; - static final String dfa_18s = "\13\uffff}>"; - static final String[] dfa_19s = { - "\1\6\1\3\10\uffff\1\1\1\2\1\4\1\5\1\7\1\10", - "", - "", - "\1\12\12\uffff\1\11", - "", - "", - "", - "", - "", - "", - "" - }; - static final char[] dfa_15 = DFA.unpackEncodedStringToUnsignedChars(dfa_15s); - static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s); - static final short[] dfa_17 = DFA.unpackEncodedString(dfa_17s); - static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s); - static final short[][] dfa_19 = unpackEncodedStringArray(dfa_19s); - - class DFA24 extends DFA { - - public DFA24(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 24; - this.eot = dfa_8; - this.eof = dfa_8; - this.min = dfa_15; - this.max = dfa_16; - this.accept = dfa_17; - this.special = dfa_18; - this.transition = dfa_19; - } - public String getDescription() { - return "1453:2: (kw= '->' | kw= '..<' | (kw= '>' kw= '..' ) | kw= '..' | kw= '=>' | (kw= '>' ( ( ( ( '>' '>' ) )=> (kw= '>' kw= '>' ) ) | kw= '>' ) ) | (kw= '<' ( ( ( ( '<' '<' ) )=> (kw= '<' kw= '<' ) ) | kw= '<' | kw= '=>' ) ) | kw= '<>' | kw= '?:' )"; - } - } - static final String dfa_20s = "\116\uffff"; - static final String dfa_21s = "\1\2\115\uffff"; - static final String dfa_22s = "\1\4\1\0\114\uffff"; - static final String dfa_23s = "\1\127\1\0\114\uffff"; - static final String dfa_24s = "\2\uffff\1\2\112\uffff\1\1"; - static final String dfa_25s = "\1\uffff\1\0\114\uffff}>"; - static final String[] dfa_26s = { - "\5\2\5\uffff\2\2\1\uffff\2\2\1\uffff\1\1\2\2\1\uffff\45\2\1\uffff\32\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_20 = DFA.unpackEncodedString(dfa_20s); - static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s); - static final char[] dfa_22 = DFA.unpackEncodedStringToUnsignedChars(dfa_22s); - static final char[] dfa_23 = DFA.unpackEncodedStringToUnsignedChars(dfa_23s); - static final short[] dfa_24 = DFA.unpackEncodedString(dfa_24s); - static final short[] dfa_25 = DFA.unpackEncodedString(dfa_25s); - static final short[][] dfa_26 = unpackEncodedStringArray(dfa_26s); - - class DFA40 extends DFA { - - public DFA40(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 40; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_26; - } - public String getDescription() { - return "2354:5: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_17_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )? otherlv_22= ')' )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA40_1 = input.LA(1); - - - int index40_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred16_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index40_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 40, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_27s = "\44\uffff"; - static final String dfa_28s = "\1\4\2\0\41\uffff"; - static final String dfa_29s = "\1\126\2\0\41\uffff"; - static final String dfa_30s = "\3\uffff\2\1\1\2\35\uffff\1\3"; - static final String dfa_31s = "\1\0\1\1\1\2\41\uffff}>"; - static final String[] dfa_32s = { - "\4\5\1\1\5\uffff\1\5\2\uffff\1\5\2\uffff\1\2\1\uffff\1\43\6\uffff\1\5\14\uffff\1\3\2\uffff\2\5\4\uffff\1\5\6\uffff\2\5\1\uffff\1\4\1\uffff\1\5\1\uffff\1\5\2\uffff\3\5\2\uffff\14\5\1\uffff\1\5", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_27 = DFA.unpackEncodedString(dfa_27s); - static final char[] dfa_28 = DFA.unpackEncodedStringToUnsignedChars(dfa_28s); - static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s); - static final short[] dfa_30 = DFA.unpackEncodedString(dfa_30s); - static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s); - static final short[][] dfa_32 = unpackEncodedStringArray(dfa_32s); - - class DFA39 extends DFA { - - public DFA39(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 39; - this.eot = dfa_27; - this.eof = dfa_27; - this.min = dfa_28; - this.max = dfa_29; - this.accept = dfa_30; - this.special = dfa_31; - this.transition = dfa_32; - } - public String getDescription() { - return "2373:6: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_memberCallArguments_18_0= ruleXShortClosure ) ) | ( ( (lv_memberCallArguments_19_0= ruleXExpression ) ) (otherlv_20= ',' ( (lv_memberCallArguments_21_0= ruleXExpression ) ) )* ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA39_0 = input.LA(1); - - - int index39_0 = input.index(); - input.rewind(); - s = -1; - if ( (LA39_0==RULE_ID) ) {s = 1;} - - else if ( (LA39_0==20) ) {s = 2;} - - else if ( (LA39_0==42) && (synpred17_InternalEntities())) {s = 3;} - - else if ( (LA39_0==61) && (synpred17_InternalEntities())) {s = 4;} - - else if ( ((LA39_0>=RULE_STRING && LA39_0<=RULE_DECIMAL)||LA39_0==14||LA39_0==17||LA39_0==29||(LA39_0>=45 && LA39_0<=46)||LA39_0==51||(LA39_0>=58 && LA39_0<=59)||LA39_0==63||LA39_0==65||(LA39_0>=68 && LA39_0<=70)||(LA39_0>=73 && LA39_0<=84)||LA39_0==86) ) {s = 5;} - - else if ( (LA39_0==22) ) {s = 35;} - - - input.seek(index39_0); - if ( s>=0 ) return s; - break; - case 1 : - int LA39_1 = input.LA(1); - - - int index39_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred17_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index39_1); - if ( s>=0 ) return s; - break; - case 2 : - int LA39_2 = input.LA(1); - - - int index39_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred17_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index39_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 39, _s, input); - error(nvae); - throw nvae; - } - } - static final String[] dfa_33s = { - "\5\2\5\uffff\2\2\1\uffff\2\2\1\uffff\3\2\1\uffff\43\2\1\1\1\2\1\uffff\32\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final short[][] dfa_33 = unpackEncodedStringArray(dfa_33s); - - class DFA41 extends DFA { - - public DFA41(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 41; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_33; - } - public String getDescription() { - return "2471:5: ( ( ( () '[' ) )=> (lv_memberCallArguments_23_0= ruleXClosure ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA41_1 = input.LA(1); - - - int index41_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred18_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index41_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 41, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_34s = "\40\uffff"; - static final String dfa_35s = "\1\4\26\uffff\1\0\10\uffff"; - static final String dfa_36s = "\1\126\26\uffff\1\0\10\uffff"; - static final String dfa_37s = "\1\uffff\1\1\1\2\1\3\1\4\1\5\6\uffff\1\6\11\uffff\1\7\1\uffff\1\12\1\13\1\14\1\15\1\16\1\17\1\10\1\11"; - static final String dfa_38s = "\1\0\26\uffff\1\1\10\uffff}>"; - static final String[] dfa_39s = { - "\4\14\1\5\5\uffff\1\2\2\uffff\1\5\2\uffff\1\35\10\uffff\1\5\34\uffff\2\14\3\uffff\1\26\1\uffff\1\3\2\uffff\1\27\1\30\1\31\2\uffff\4\5\1\1\4\14\1\32\1\33\1\34\1\uffff\1\4", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_34 = DFA.unpackEncodedString(dfa_34s); - static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s); - static final char[] dfa_36 = DFA.unpackEncodedStringToUnsignedChars(dfa_36s); - static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s); - static final short[] dfa_38 = DFA.unpackEncodedString(dfa_38s); - static final short[][] dfa_39 = unpackEncodedStringArray(dfa_39s); - - class DFA43 extends DFA { - - public DFA43(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 43; - this.eot = dfa_34; - this.eof = dfa_34; - this.min = dfa_35; - this.max = dfa_36; - this.accept = dfa_37; - this.special = dfa_38; - this.transition = dfa_39; - } - public String getDescription() { - return "2516:2: (this_XConstructorCall_0= ruleXConstructorCall | this_XBlockExpression_1= ruleXBlockExpression | this_XSwitchExpression_2= ruleXSwitchExpression | ( ( ( () 'synchronized' '(' ) )=>this_XSynchronizedExpression_3= ruleXSynchronizedExpression ) | this_XFeatureCall_4= ruleXFeatureCall | this_XLiteral_5= ruleXLiteral | this_XIfExpression_6= ruleXIfExpression | ( ( ( () 'for' '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=>this_XForLoopExpression_7= ruleXForLoopExpression ) | this_XBasicForLoopExpression_8= ruleXBasicForLoopExpression | this_XWhileExpression_9= ruleXWhileExpression | this_XDoWhileExpression_10= ruleXDoWhileExpression | this_XThrowExpression_11= ruleXThrowExpression | this_XReturnExpression_12= ruleXReturnExpression | this_XTryCatchFinallyExpression_13= ruleXTryCatchFinallyExpression | this_XParenthesizedExpression_14= ruleXParenthesizedExpression )"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA43_0 = input.LA(1); - - - int index43_0 = input.index(); - input.rewind(); - s = -1; - if ( (LA43_0==77) ) {s = 1;} - - else if ( (LA43_0==14) ) {s = 2;} - - else if ( (LA43_0==65) ) {s = 3;} - - else if ( (LA43_0==86) && (synpred19_InternalEntities())) {s = 4;} - - else if ( (LA43_0==RULE_ID||LA43_0==17||LA43_0==29||(LA43_0>=73 && LA43_0<=76)) ) {s = 5;} - - else if ( ((LA43_0>=RULE_STRING && LA43_0<=RULE_DECIMAL)||(LA43_0>=58 && LA43_0<=59)||(LA43_0>=78 && LA43_0<=81)) ) {s = 12;} - - else if ( (LA43_0==63) ) {s = 22;} - - else if ( (LA43_0==68) ) {s = 23;} - - else if ( (LA43_0==69) ) {s = 24;} - - else if ( (LA43_0==70) ) {s = 25;} - - else if ( (LA43_0==82) ) {s = 26;} - - else if ( (LA43_0==83) ) {s = 27;} - - else if ( (LA43_0==84) ) {s = 28;} - - else if ( (LA43_0==20) ) {s = 29;} - - - input.seek(index43_0); - if ( s>=0 ) return s; - break; - case 1 : - int LA43_23 = input.LA(1); - - - int index43_23 = input.index(); - input.rewind(); - s = -1; - if ( (synpred20_InternalEntities()) ) {s = 30;} - - else if ( (true) ) {s = 31;} - - - input.seek(index43_23); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 43, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_40s = "\46\uffff"; - static final String dfa_41s = "\1\4\2\0\43\uffff"; - static final String dfa_42s = "\1\126\2\0\43\uffff"; - static final String dfa_43s = "\3\uffff\2\1\1\2\40\uffff"; - static final String dfa_44s = "\1\0\1\1\1\2\43\uffff}>"; - static final String[] dfa_45s = { - "\4\5\1\1\5\uffff\1\5\2\uffff\1\5\2\uffff\1\2\10\uffff\1\5\14\uffff\1\3\2\uffff\2\5\4\uffff\1\5\6\uffff\3\5\1\4\1\uffff\1\5\1\uffff\1\5\2\uffff\21\5\1\uffff\1\5", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_40 = DFA.unpackEncodedString(dfa_40s); - static final char[] dfa_41 = DFA.unpackEncodedStringToUnsignedChars(dfa_41s); - static final char[] dfa_42 = DFA.unpackEncodedStringToUnsignedChars(dfa_42s); - static final short[] dfa_43 = DFA.unpackEncodedString(dfa_43s); - static final short[] dfa_44 = DFA.unpackEncodedString(dfa_44s); - static final short[][] dfa_45 = unpackEncodedStringArray(dfa_45s); - - class DFA52 extends DFA { - - public DFA52(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 52; - this.eot = dfa_40; - this.eof = dfa_40; - this.min = dfa_41; - this.max = dfa_42; - this.accept = dfa_43; - this.special = dfa_44; - this.transition = dfa_45; - } - public String getDescription() { - return "3008:3: ( ( ( ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> ( ( ( (lv_declaredFormalParameters_2_0= ruleJvmFormalParameter ) ) (otherlv_3= ',' ( (lv_declaredFormalParameters_4_0= ruleJvmFormalParameter ) ) )* )? ( (lv_explicitSyntax_5_0= '|' ) ) ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA52_0 = input.LA(1); - - - int index52_0 = input.index(); - input.rewind(); - s = -1; - if ( (LA52_0==RULE_ID) ) {s = 1;} - - else if ( (LA52_0==20) ) {s = 2;} - - else if ( (LA52_0==42) && (synpred23_InternalEntities())) {s = 3;} - - else if ( (LA52_0==61) && (synpred23_InternalEntities())) {s = 4;} - - else if ( ((LA52_0>=RULE_STRING && LA52_0<=RULE_DECIMAL)||LA52_0==14||LA52_0==17||LA52_0==29||(LA52_0>=45 && LA52_0<=46)||LA52_0==51||(LA52_0>=58 && LA52_0<=60)||LA52_0==63||LA52_0==65||(LA52_0>=68 && LA52_0<=84)||LA52_0==86) ) {s = 5;} - - - input.seek(index52_0); - if ( s>=0 ) return s; - break; - case 1 : - int LA52_1 = input.LA(1); - - - int index52_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred23_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index52_1); - if ( s>=0 ) return s; - break; - case 2 : - int LA52_2 = input.LA(1); - - - int index52_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred23_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index52_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 52, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_46s = "\43\uffff"; - static final String dfa_47s = "\1\4\1\0\41\uffff"; - static final String dfa_48s = "\1\126\1\0\41\uffff"; - static final String dfa_49s = "\2\uffff\1\2\37\uffff\1\1"; - static final String dfa_50s = "\1\uffff\1\0\41\uffff}>"; - static final String[] dfa_51s = { - "\5\2\5\uffff\1\2\2\uffff\1\2\2\uffff\1\1\10\uffff\1\2\14\uffff\1\2\2\uffff\2\2\4\uffff\1\2\6\uffff\2\2\3\uffff\1\2\1\uffff\1\2\2\uffff\3\2\2\uffff\14\2\1\uffff\1\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_46 = DFA.unpackEncodedString(dfa_46s); - static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s); - static final char[] dfa_48 = DFA.unpackEncodedStringToUnsignedChars(dfa_48s); - static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s); - static final short[] dfa_50 = DFA.unpackEncodedString(dfa_50s); - static final short[][] dfa_51 = unpackEncodedStringArray(dfa_51s); - - class DFA59 extends DFA { - - public DFA59(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 59; - this.eot = dfa_46; - this.eof = dfa_46; - this.min = dfa_47; - this.max = dfa_48; - this.accept = dfa_49; - this.special = dfa_50; - this.transition = dfa_51; - } - public String getDescription() { - return "3474:3: ( ( ( ( ( '(' ( ( ruleJvmFormalParameter ) ) ':' ) )=> (otherlv_2= '(' ( (lv_declaredParam_3_0= ruleJvmFormalParameter ) ) otherlv_4= ':' ) ) ( (lv_switch_5_0= ruleXExpression ) ) otherlv_6= ')' ) | ( ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )? ( (lv_switch_9_0= ruleXExpression ) ) ) )"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA59_1 = input.LA(1); - - - int index59_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred26_InternalEntities()) ) {s = 34;} - - else if ( (true) ) {s = 2;} - - - input.seek(index59_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 59, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_52s = "\42\uffff"; - static final String dfa_53s = "\1\4\2\0\37\uffff"; - static final String dfa_54s = "\1\126\2\0\37\uffff"; - static final String dfa_55s = "\3\uffff\1\1\1\2\35\uffff"; - static final String dfa_56s = "\1\0\1\1\1\2\37\uffff}>"; - static final String[] dfa_57s = { - "\4\4\1\1\5\uffff\1\4\2\uffff\1\4\2\uffff\1\2\10\uffff\1\4\14\uffff\1\3\2\uffff\2\4\4\uffff\1\4\6\uffff\2\4\3\uffff\1\4\1\uffff\1\4\2\uffff\3\4\2\uffff\14\4\1\uffff\1\4", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_52 = DFA.unpackEncodedString(dfa_52s); - static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s); - static final char[] dfa_54 = DFA.unpackEncodedStringToUnsignedChars(dfa_54s); - static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s); - static final short[] dfa_56 = DFA.unpackEncodedString(dfa_56s); - static final short[][] dfa_57 = unpackEncodedStringArray(dfa_57s); - - class DFA58 extends DFA { - - public DFA58(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 58; - this.eot = dfa_52; - this.eof = dfa_52; - this.min = dfa_53; - this.max = dfa_54; - this.accept = dfa_55; - this.special = dfa_56; - this.transition = dfa_57; - } - public String getDescription() { - return "3543:5: ( ( ( ( ( ruleJvmFormalParameter ) ) ':' ) )=> ( ( (lv_declaredParam_7_0= ruleJvmFormalParameter ) ) otherlv_8= ':' ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA58_0 = input.LA(1); - - - int index58_0 = input.index(); - input.rewind(); - s = -1; - if ( (LA58_0==RULE_ID) ) {s = 1;} - - else if ( (LA58_0==20) ) {s = 2;} - - else if ( (LA58_0==42) && (synpred27_InternalEntities())) {s = 3;} - - else if ( ((LA58_0>=RULE_STRING && LA58_0<=RULE_DECIMAL)||LA58_0==14||LA58_0==17||LA58_0==29||(LA58_0>=45 && LA58_0<=46)||LA58_0==51||(LA58_0>=58 && LA58_0<=59)||LA58_0==63||LA58_0==65||(LA58_0>=68 && LA58_0<=70)||(LA58_0>=73 && LA58_0<=84)||LA58_0==86) ) {s = 4;} - - - input.seek(index58_0); - if ( s>=0 ) return s; - break; - case 1 : - int LA58_1 = input.LA(1); - - - int index58_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred27_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 4;} - - - input.seek(index58_1); - if ( s>=0 ) return s; - break; - case 2 : - int LA58_2 = input.LA(1); - - - int index58_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred27_InternalEntities()) ) {s = 3;} - - else if ( (true) ) {s = 4;} - - - input.seek(index58_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 58, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA81 extends DFA { - - public DFA81(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 81; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_26; - } - public String getDescription() { - return "4672:3: ( ( ( ( '(' ) )=> (lv_explicitOperationCall_7_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )? otherlv_12= ')' )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA81_1 = input.LA(1); - - - int index81_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred30_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index81_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 81, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA80 extends DFA { - - public DFA80(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 80; - this.eot = dfa_27; - this.eof = dfa_27; - this.min = dfa_28; - this.max = dfa_29; - this.accept = dfa_30; - this.special = dfa_31; - this.transition = dfa_32; - } - public String getDescription() { - return "4691:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_featureCallArguments_8_0= ruleXShortClosure ) ) | ( ( (lv_featureCallArguments_9_0= ruleXExpression ) ) (otherlv_10= ',' ( (lv_featureCallArguments_11_0= ruleXExpression ) ) )* ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA80_0 = input.LA(1); - - - int index80_0 = input.index(); - input.rewind(); - s = -1; - if ( (LA80_0==RULE_ID) ) {s = 1;} - - else if ( (LA80_0==20) ) {s = 2;} - - else if ( (LA80_0==42) && (synpred31_InternalEntities())) {s = 3;} - - else if ( (LA80_0==61) && (synpred31_InternalEntities())) {s = 4;} - - else if ( ((LA80_0>=RULE_STRING && LA80_0<=RULE_DECIMAL)||LA80_0==14||LA80_0==17||LA80_0==29||(LA80_0>=45 && LA80_0<=46)||LA80_0==51||(LA80_0>=58 && LA80_0<=59)||LA80_0==63||LA80_0==65||(LA80_0>=68 && LA80_0<=70)||(LA80_0>=73 && LA80_0<=84)||LA80_0==86) ) {s = 5;} - - else if ( (LA80_0==22) ) {s = 35;} - - - input.seek(index80_0); - if ( s>=0 ) return s; - break; - case 1 : - int LA80_1 = input.LA(1); - - - int index80_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred31_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index80_1); - if ( s>=0 ) return s; - break; - case 2 : - int LA80_2 = input.LA(1); - - - int index80_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred31_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index80_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 80, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA82 extends DFA { - - public DFA82(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 82; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_33; - } - public String getDescription() { - return "4789:3: ( ( ( () '[' ) )=> (lv_featureCallArguments_13_0= ruleXClosure ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA82_1 = input.LA(1); - - - int index82_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred32_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index82_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 82, _s, input); - error(nvae); - throw nvae; - } - } - static final String[] dfa_58s = { - "\5\2\5\uffff\2\2\1\uffff\2\2\1\uffff\3\2\1\uffff\5\2\1\1\37\2\1\uffff\32\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final short[][] dfa_58 = unpackEncodedStringArray(dfa_58s); - - class DFA86 extends DFA { - - public DFA86(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 86; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_58; - } - public String getDescription() { - return "4948:3: ( ( ( '<' )=>otherlv_3= '<' ) ( (lv_typeArguments_4_0= ruleJvmArgumentTypeReference ) ) (otherlv_5= ',' ( (lv_typeArguments_6_0= ruleJvmArgumentTypeReference ) ) )* otherlv_7= '>' )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA86_1 = input.LA(1); - - - int index86_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred33_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index86_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 86, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA89 extends DFA { - - public DFA89(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 89; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_26; - } - public String getDescription() { - return "5005:3: ( ( ( ( '(' ) )=> (lv_explicitConstructorCall_8_0= '(' ) ) ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )? otherlv_13= ')' )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA89_1 = input.LA(1); - - - int index89_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred34_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index89_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 89, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA88 extends DFA { - - public DFA88(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 88; - this.eot = dfa_27; - this.eof = dfa_27; - this.min = dfa_28; - this.max = dfa_29; - this.accept = dfa_30; - this.special = dfa_31; - this.transition = dfa_32; - } - public String getDescription() { - return "5024:4: ( ( ( ( () ( ( ( ruleJvmFormalParameter ) ) ( ',' ( ( ruleJvmFormalParameter ) ) )* )? ( ( '|' ) ) ) )=> (lv_arguments_9_0= ruleXShortClosure ) ) | ( ( (lv_arguments_10_0= ruleXExpression ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleXExpression ) ) )* ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA88_0 = input.LA(1); - - - int index88_0 = input.index(); - input.rewind(); - s = -1; - if ( (LA88_0==RULE_ID) ) {s = 1;} - - else if ( (LA88_0==20) ) {s = 2;} - - else if ( (LA88_0==42) && (synpred35_InternalEntities())) {s = 3;} - - else if ( (LA88_0==61) && (synpred35_InternalEntities())) {s = 4;} - - else if ( ((LA88_0>=RULE_STRING && LA88_0<=RULE_DECIMAL)||LA88_0==14||LA88_0==17||LA88_0==29||(LA88_0>=45 && LA88_0<=46)||LA88_0==51||(LA88_0>=58 && LA88_0<=59)||LA88_0==63||LA88_0==65||(LA88_0>=68 && LA88_0<=70)||(LA88_0>=73 && LA88_0<=84)||LA88_0==86) ) {s = 5;} - - else if ( (LA88_0==22) ) {s = 35;} - - - input.seek(index88_0); - if ( s>=0 ) return s; - break; - case 1 : - int LA88_1 = input.LA(1); - - - int index88_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred35_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index88_1); - if ( s>=0 ) return s; - break; - case 2 : - int LA88_2 = input.LA(1); - - - int index88_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred35_InternalEntities()) ) {s = 4;} - - else if ( (true) ) {s = 5;} - - - input.seek(index88_2); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 88, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA90 extends DFA { - - public DFA90(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 90; - this.eot = dfa_20; - this.eof = dfa_21; - this.min = dfa_22; - this.max = dfa_23; - this.accept = dfa_24; - this.special = dfa_25; - this.transition = dfa_33; - } - public String getDescription() { - return "5122:3: ( ( ( () '[' ) )=> (lv_arguments_14_0= ruleXClosure ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA90_1 = input.LA(1); - - - int index90_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred36_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 2;} - - - input.seek(index90_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 90, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_59s = "\1\41\115\uffff"; - static final String dfa_60s = "\1\4\40\0\55\uffff"; - static final String dfa_61s = "\1\127\40\0\55\uffff"; - static final String dfa_62s = "\41\uffff\1\2\53\uffff\1\1"; - static final String dfa_63s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\24\1\25\1\26\1\27\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37\55\uffff}>"; - static final String[] dfa_64s = { - "\1\27\1\23\1\24\1\25\1\1\5\uffff\1\12\1\41\1\uffff\1\2\1\41\1\uffff\1\40\2\41\1\uffff\5\41\1\15\17\41\1\10\1\7\4\41\1\6\6\41\1\17\1\20\1\41\1\uffff\1\41\1\31\1\41\1\13\2\41\1\32\1\33\1\34\2\41\1\3\1\4\1\5\1\16\1\11\1\21\1\22\1\26\1\30\1\35\1\36\1\37\1\41\1\14\1\41", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - static final short[] dfa_59 = DFA.unpackEncodedString(dfa_59s); - static final char[] dfa_60 = DFA.unpackEncodedStringToUnsignedChars(dfa_60s); - static final char[] dfa_61 = DFA.unpackEncodedStringToUnsignedChars(dfa_61s); - static final short[] dfa_62 = DFA.unpackEncodedString(dfa_62s); - static final short[] dfa_63 = DFA.unpackEncodedString(dfa_63s); - static final short[][] dfa_64 = unpackEncodedStringArray(dfa_64s); - - class DFA93 extends DFA { - - public DFA93(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 93; - this.eot = dfa_20; - this.eof = dfa_59; - this.min = dfa_60; - this.max = dfa_61; - this.accept = dfa_62; - this.special = dfa_63; - this.transition = dfa_64; - } - public String getDescription() { - return "5465:3: ( ( 'extends' | 'static' | 'import' | 'extension' | '!' | '-' | '+' | 'new' | '{' | 'switch' | 'synchronized' | '<' | 'super' | '#' | '[' | 'false' | 'true' | 'null' | 'typeof' | 'if' | 'for' | 'while' | 'do' | 'throw' | 'return' | 'try' | '(' | RULE_ID | RULE_HEX | RULE_INT | RULE_DECIMAL | RULE_STRING )=> (lv_expression_2_0= ruleXExpression ) )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA93_1 = input.LA(1); - - - int index93_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_1); - if ( s>=0 ) return s; - break; - case 1 : - int LA93_2 = input.LA(1); - - - int index93_2 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_2); - if ( s>=0 ) return s; - break; - case 2 : - int LA93_3 = input.LA(1); - - - int index93_3 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_3); - if ( s>=0 ) return s; - break; - case 3 : - int LA93_4 = input.LA(1); - - - int index93_4 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_4); - if ( s>=0 ) return s; - break; - case 4 : - int LA93_5 = input.LA(1); - - - int index93_5 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_5); - if ( s>=0 ) return s; - break; - case 5 : - int LA93_6 = input.LA(1); - - - int index93_6 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_6); - if ( s>=0 ) return s; - break; - case 6 : - int LA93_7 = input.LA(1); - - - int index93_7 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_7); - if ( s>=0 ) return s; - break; - case 7 : - int LA93_8 = input.LA(1); - - - int index93_8 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_8); - if ( s>=0 ) return s; - break; - case 8 : - int LA93_9 = input.LA(1); - - - int index93_9 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_9); - if ( s>=0 ) return s; - break; - case 9 : - int LA93_10 = input.LA(1); - - - int index93_10 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_10); - if ( s>=0 ) return s; - break; - case 10 : - int LA93_11 = input.LA(1); - - - int index93_11 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_11); - if ( s>=0 ) return s; - break; - case 11 : - int LA93_12 = input.LA(1); - - - int index93_12 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_12); - if ( s>=0 ) return s; - break; - case 12 : - int LA93_13 = input.LA(1); - - - int index93_13 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_13); - if ( s>=0 ) return s; - break; - case 13 : - int LA93_14 = input.LA(1); - - - int index93_14 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_14); - if ( s>=0 ) return s; - break; - case 14 : - int LA93_15 = input.LA(1); - - - int index93_15 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_15); - if ( s>=0 ) return s; - break; - case 15 : - int LA93_16 = input.LA(1); - - - int index93_16 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_16); - if ( s>=0 ) return s; - break; - case 16 : - int LA93_17 = input.LA(1); - - - int index93_17 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_17); - if ( s>=0 ) return s; - break; - case 17 : - int LA93_18 = input.LA(1); - - - int index93_18 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_18); - if ( s>=0 ) return s; - break; - case 18 : - int LA93_19 = input.LA(1); - - - int index93_19 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_19); - if ( s>=0 ) return s; - break; - case 19 : - int LA93_20 = input.LA(1); - - - int index93_20 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_20); - if ( s>=0 ) return s; - break; - case 20 : - int LA93_21 = input.LA(1); - - - int index93_21 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_21); - if ( s>=0 ) return s; - break; - case 21 : - int LA93_22 = input.LA(1); - - - int index93_22 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_22); - if ( s>=0 ) return s; - break; - case 22 : - int LA93_23 = input.LA(1); - - - int index93_23 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_23); - if ( s>=0 ) return s; - break; - case 23 : - int LA93_24 = input.LA(1); - - - int index93_24 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_24); - if ( s>=0 ) return s; - break; - case 24 : - int LA93_25 = input.LA(1); - - - int index93_25 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_25); - if ( s>=0 ) return s; - break; - case 25 : - int LA93_26 = input.LA(1); - - - int index93_26 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_26); - if ( s>=0 ) return s; - break; - case 26 : - int LA93_27 = input.LA(1); - - - int index93_27 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_27); - if ( s>=0 ) return s; - break; - case 27 : - int LA93_28 = input.LA(1); - - - int index93_28 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_28); - if ( s>=0 ) return s; - break; - case 28 : - int LA93_29 = input.LA(1); - - - int index93_29 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_29); - if ( s>=0 ) return s; - break; - case 29 : - int LA93_30 = input.LA(1); - - - int index93_30 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_30); - if ( s>=0 ) return s; - break; - case 30 : - int LA93_31 = input.LA(1); - - - int index93_31 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_31); - if ( s>=0 ) return s; - break; - case 31 : - int LA93_32 = input.LA(1); - - - int index93_32 = input.index(); - input.rewind(); - s = -1; - if ( (synpred37_InternalEntities()) ) {s = 77;} - - else if ( (true) ) {s = 33;} - - - input.seek(index93_32); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 93, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_65s = "\120\uffff"; - static final String dfa_66s = "\1\2\117\uffff"; - static final String dfa_67s = "\1\4\1\0\116\uffff"; - static final String dfa_68s = "\1\131\1\0\116\uffff"; - static final String dfa_69s = "\2\uffff\1\2\114\uffff\1\1"; - static final String dfa_70s = "\1\uffff\1\0\116\uffff}>"; - static final String[] dfa_71s = { - "\5\2\5\uffff\2\2\1\uffff\6\2\1\uffff\5\2\1\1\37\2\1\uffff\32\2\1\uffff\1\2", - "\1\uffff", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - }; - - static final short[] dfa_65 = DFA.unpackEncodedString(dfa_65s); - static final short[] dfa_66 = DFA.unpackEncodedString(dfa_66s); - static final char[] dfa_67 = DFA.unpackEncodedStringToUnsignedChars(dfa_67s); - static final char[] dfa_68 = DFA.unpackEncodedStringToUnsignedChars(dfa_68s); - static final short[] dfa_69 = DFA.unpackEncodedString(dfa_69s); - static final short[] dfa_70 = DFA.unpackEncodedString(dfa_70s); - static final short[][] dfa_71 = unpackEncodedStringArray(dfa_71s); - - class DFA111 extends DFA { - - public DFA111(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 111; - this.eot = dfa_65; - this.eof = dfa_66; - this.min = dfa_67; - this.max = dfa_68; - this.accept = dfa_69; - this.special = dfa_70; - this.transition = dfa_71; - } - public String getDescription() { - return "6123:3: ( ( ( '<' )=>otherlv_1= '<' ) ( (lv_arguments_2_0= ruleJvmArgumentTypeReference ) ) (otherlv_3= ',' ( (lv_arguments_4_0= ruleJvmArgumentTypeReference ) ) )* otherlv_5= '>' ( ( ( ( () '.' ) )=> ( () otherlv_7= '.' ) ) ( ( ruleValidID ) ) ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )? )* )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA111_1 = input.LA(1); - - - int index111_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred44_InternalEntities()) ) {s = 79;} - - else if ( (true) ) {s = 2;} - - - input.seek(index111_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 111, _s, input); - error(nvae); - throw nvae; - } - } - - class DFA109 extends DFA { - - public DFA109(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 109; - this.eot = dfa_65; - this.eof = dfa_66; - this.min = dfa_67; - this.max = dfa_68; - this.accept = dfa_69; - this.special = dfa_70; - this.transition = dfa_71; - } - public String getDescription() { - return "6217:5: ( ( ( '<' )=>otherlv_9= '<' ) ( (lv_arguments_10_0= ruleJvmArgumentTypeReference ) ) (otherlv_11= ',' ( (lv_arguments_12_0= ruleJvmArgumentTypeReference ) ) )* otherlv_13= '>' )?"; - } - public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { - TokenStream input = (TokenStream)_input; - int _s = s; - switch ( s ) { - case 0 : - int LA109_1 = input.LA(1); - - - int index109_1 = input.index(); - input.rewind(); - s = -1; - if ( (synpred46_InternalEntities()) ) {s = 79;} - - else if ( (true) ) {s = 2;} - - - input.seek(index109_1); - if ( s>=0 ) return s; - break; - } - if (state.backtracking>0) {state.failed=true; return -1;} - NoViableAltException nvae = - new NoViableAltException(getDescription(), 109, _s, input); - error(nvae); - throw nvae; - } - } - static final String dfa_72s = "\7\uffff"; - static final String dfa_73s = "\2\uffff\1\4\3\uffff\1\4"; - static final String dfa_74s = "\1\10\1\uffff\1\15\1\10\2\uffff\1\15"; - static final String dfa_75s = "\1\111\1\uffff\1\112\1\57\2\uffff\1\112"; - static final String dfa_76s = "\1\uffff\1\1\2\uffff\1\2\1\3\1\uffff"; - static final String dfa_77s = "\7\uffff}>"; - static final String[] dfa_78s = { - "\1\2\100\uffff\1\1", - "", - "\1\4\2\uffff\1\4\46\uffff\1\3\6\uffff\1\4\13\uffff\1\4", - "\1\6\46\uffff\1\5", - "", - "", - "\1\4\2\uffff\1\4\46\uffff\1\3\6\uffff\1\4\13\uffff\1\4" - }; - - static final short[] dfa_72 = DFA.unpackEncodedString(dfa_72s); - static final short[] dfa_73 = DFA.unpackEncodedString(dfa_73s); - static final char[] dfa_74 = DFA.unpackEncodedStringToUnsignedChars(dfa_74s); - static final char[] dfa_75 = DFA.unpackEncodedStringToUnsignedChars(dfa_75s); - static final short[] dfa_76 = DFA.unpackEncodedString(dfa_76s); - static final short[] dfa_77 = DFA.unpackEncodedString(dfa_77s); - static final short[][] dfa_78 = unpackEncodedStringArray(dfa_78s); - - class DFA119 extends DFA { - - public DFA119(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 119; - this.eot = dfa_72; - this.eof = dfa_73; - this.min = dfa_74; - this.max = dfa_75; - this.accept = dfa_76; - this.special = dfa_77; - this.transition = dfa_78; - } - public String getDescription() { - return "6715:3: ( ( ( (lv_static_1_0= 'static' ) ) ( (lv_extension_2_0= 'extension' ) )? ( ( ruleQualifiedNameInStaticImport ) ) ( ( (lv_wildcard_4_0= '*' ) ) | ( (lv_memberName_5_0= ruleValidID ) ) ) ) | ( ( ruleQualifiedName ) ) | ( (lv_importedNamespace_7_0= ruleQualifiedNameWithWildcard ) ) )"; - } - } - - - public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000012002L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000100L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000004000L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x000000000001A000L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000024000L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000088100L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000040000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000040000100100L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000100000L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000040000500100L}); - public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000600000L}); - public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000044000L}); - public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800000L}); - public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x8C086000201641F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x000000007F000002L}); - public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000020000000L}); - public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x00000000C0000000L}); - public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000080000000L}); - public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000100000002L}); - public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000200000002L}); - public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000003C00000002L}); - public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x00000040E0000002L}); - public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x00001F8060000002L}); - public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000020000000000L}); - public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000040000000L}); - public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000040020000000L}); - public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000600000000002L}); - public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0007800000000002L}); - public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0010000000000002L}); - public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0060000000000002L}); - public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0380000000000002L}); - public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000000020100L,0x0000000000000E00L}); - public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000000020020100L,0x0000000000001E00L}); - public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000040000100100L,0x0000000001000000L}); - public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000000040200000L}); - public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0B80000000100002L}); - public static final BitSet FOLLOW_39 = new BitSet(new long[]{0xAC086400205641F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000000000400000L}); - public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0B80000000000002L}); - public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x8C0860002016C1F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0000000000208000L}); - public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0800000000000000L}); - public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x9C086000201641F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x1000000000200000L}); - public static final BitSet FOLLOW_47 = new BitSet(new long[]{0xBC086400201641F0L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x2000000000200000L}); - public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x9C086000201641F0L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_50 = new BitSet(new long[]{0x1000000000000000L}); - public static final BitSet FOLLOW_51 = new BitSet(new long[]{0xCC086000201641F2L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x8C086000201641F2L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000001L}); - public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x8C086400201641F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0000040000348100L,0x000000000000000CL}); - public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0000000000008000L}); - public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0000000000240000L,0x0000000000000008L}); - public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0000000000240000L}); - public static final BitSet FOLLOW_59 = new BitSet(new long[]{0xCC086000201641F0L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x4000000000200000L}); - public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x8C086000201641F0L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_62 = new BitSet(new long[]{0xCC086000201641F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x4000000000000000L}); - public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x8C086000205641F0L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000020L}); - public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x8C0860002016C1F0L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_67 = new BitSet(new long[]{0xCC0860002016C1F0L,0x00000000005FFFF2L}); - public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0000000000800002L}); - public static final BitSet FOLLOW_69 = new BitSet(new long[]{0x0800000000100002L}); - public static final BitSet FOLLOW_70 = new BitSet(new long[]{0x0800000000000002L}); - public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0800000020100002L}); - public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0800000000400000L}); - public static final BitSet FOLLOW_73 = new BitSet(new long[]{0x8C086000201641F2L,0x00000000005FFE72L}); - public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000000000000L,0x0000000000A00000L}); - public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000002L,0x0000000000A00000L}); - public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x0080000000000002L}); - public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x00000000000000C0L}); - public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x0000040000000000L}); - public static final BitSet FOLLOW_79 = new BitSet(new long[]{0x0000000020000002L}); - public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0080000020000002L}); - public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000020002L,0x0000000000001000L}); - public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000002L,0x0000000002000000L}); - public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0080000000000000L}); - public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000800000000000L}); - public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000400L}); - public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000100L,0x0000000000000200L}); - public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000100L,0x0000000000000800L}); - public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000800000000100L}); - public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x4000000000000002L}); - public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000102L}); - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/scoping/AbstractEntitiesScopeProvider.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/scoping/AbstractEntitiesScopeProvider.java deleted file mode 100644 index dff4f5e7d71..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/scoping/AbstractEntitiesScopeProvider.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.scoping; - -import org.eclipse.xtext.xbase.scoping.batch.XbaseBatchScopeProvider; - -public abstract class AbstractEntitiesScopeProvider extends XbaseBatchScopeProvider { -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSemanticSequencer.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSemanticSequencer.java deleted file mode 100644 index f200c4e40d2..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSemanticSequencer.java +++ /dev/null @@ -1,431 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.serializer; - -import com.google.inject.Inject; -import java.util.Set; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.Action; -import org.eclipse.xtext.Parameter; -import org.eclipse.xtext.ParserRule; -import org.eclipse.xtext.common.types.JvmFormalParameter; -import org.eclipse.xtext.common.types.JvmGenericArrayTypeReference; -import org.eclipse.xtext.common.types.JvmInnerTypeReference; -import org.eclipse.xtext.common.types.JvmLowerBound; -import org.eclipse.xtext.common.types.JvmParameterizedTypeReference; -import org.eclipse.xtext.common.types.JvmTypeParameter; -import org.eclipse.xtext.common.types.JvmUpperBound; -import org.eclipse.xtext.common.types.JvmWildcardTypeReference; -import org.eclipse.xtext.common.types.TypesPackage; -import org.eclipse.xtext.serializer.ISerializationContext; -import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; -import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entities; -import org.eclipse.xtext.web.example.entities.domainmodel.Entity; -import org.eclipse.xtext.web.example.entities.domainmodel.Operation; -import org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration; -import org.eclipse.xtext.web.example.entities.domainmodel.Property; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; -import org.eclipse.xtext.xbase.XAssignment; -import org.eclipse.xtext.xbase.XBasicForLoopExpression; -import org.eclipse.xtext.xbase.XBinaryOperation; -import org.eclipse.xtext.xbase.XBlockExpression; -import org.eclipse.xtext.xbase.XBooleanLiteral; -import org.eclipse.xtext.xbase.XCasePart; -import org.eclipse.xtext.xbase.XCastedExpression; -import org.eclipse.xtext.xbase.XCatchClause; -import org.eclipse.xtext.xbase.XClosure; -import org.eclipse.xtext.xbase.XConstructorCall; -import org.eclipse.xtext.xbase.XDoWhileExpression; -import org.eclipse.xtext.xbase.XFeatureCall; -import org.eclipse.xtext.xbase.XForLoopExpression; -import org.eclipse.xtext.xbase.XIfExpression; -import org.eclipse.xtext.xbase.XInstanceOfExpression; -import org.eclipse.xtext.xbase.XListLiteral; -import org.eclipse.xtext.xbase.XMemberFeatureCall; -import org.eclipse.xtext.xbase.XNullLiteral; -import org.eclipse.xtext.xbase.XNumberLiteral; -import org.eclipse.xtext.xbase.XPostfixOperation; -import org.eclipse.xtext.xbase.XReturnExpression; -import org.eclipse.xtext.xbase.XSetLiteral; -import org.eclipse.xtext.xbase.XStringLiteral; -import org.eclipse.xtext.xbase.XSwitchExpression; -import org.eclipse.xtext.xbase.XSynchronizedExpression; -import org.eclipse.xtext.xbase.XThrowExpression; -import org.eclipse.xtext.xbase.XTryCatchFinallyExpression; -import org.eclipse.xtext.xbase.XTypeLiteral; -import org.eclipse.xtext.xbase.XUnaryOperation; -import org.eclipse.xtext.xbase.XVariableDeclaration; -import org.eclipse.xtext.xbase.XWhileExpression; -import org.eclipse.xtext.xbase.XbasePackage; -import org.eclipse.xtext.xbase.serializer.XbaseSemanticSequencer; -import org.eclipse.xtext.xtype.XFunctionTypeRef; -import org.eclipse.xtext.xtype.XImportDeclaration; -import org.eclipse.xtext.xtype.XImportSection; -import org.eclipse.xtext.xtype.XtypePackage; - -@SuppressWarnings("all") -public abstract class AbstractEntitiesSemanticSequencer extends XbaseSemanticSequencer { - - @Inject - private EntitiesGrammarAccess grammarAccess; - - @Override - public void sequence(ISerializationContext context, EObject semanticObject) { - EPackage epackage = semanticObject.eClass().getEPackage(); - ParserRule rule = context.getParserRule(); - Action action = context.getAssignedAction(); - Set parameters = context.getEnabledBooleanParameters(); - if (epackage == DomainmodelPackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case DomainmodelPackage.ENTITIES: - sequence_Entities(context, (Entities) semanticObject); - return; - case DomainmodelPackage.ENTITY: - sequence_Entity(context, (Entity) semanticObject); - return; - case DomainmodelPackage.OPERATION: - sequence_Operation(context, (Operation) semanticObject); - return; - case DomainmodelPackage.PACKAGE_DECLARATION: - sequence_PackageDeclaration(context, (PackageDeclaration) semanticObject); - return; - case DomainmodelPackage.PROPERTY: - sequence_Property(context, (Property) semanticObject); - return; - } - else if (epackage == TypesPackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case TypesPackage.JVM_FORMAL_PARAMETER: - if (rule == grammarAccess.getFullJvmFormalParameterRule()) { - sequence_FullJvmFormalParameter(context, (JvmFormalParameter) semanticObject); - return; - } - else if (rule == grammarAccess.getJvmFormalParameterRule()) { - sequence_JvmFormalParameter(context, (JvmFormalParameter) semanticObject); - return; - } - else break; - case TypesPackage.JVM_GENERIC_ARRAY_TYPE_REFERENCE: - sequence_JvmTypeReference(context, (JvmGenericArrayTypeReference) semanticObject); - return; - case TypesPackage.JVM_INNER_TYPE_REFERENCE: - sequence_JvmParameterizedTypeReference(context, (JvmInnerTypeReference) semanticObject); - return; - case TypesPackage.JVM_LOWER_BOUND: - if (rule == grammarAccess.getJvmLowerBoundAndedRule()) { - sequence_JvmLowerBoundAnded(context, (JvmLowerBound) semanticObject); - return; - } - else if (rule == grammarAccess.getJvmLowerBoundRule()) { - sequence_JvmLowerBound(context, (JvmLowerBound) semanticObject); - return; - } - else break; - case TypesPackage.JVM_PARAMETERIZED_TYPE_REFERENCE: - if (action == grammarAccess.getJvmParameterizedTypeReferenceAccess().getJvmInnerTypeReferenceOuterAction_1_4_0_0_0()) { - sequence_JvmParameterizedTypeReference_JvmInnerTypeReference_1_4_0_0_0(context, (JvmParameterizedTypeReference) semanticObject); - return; - } - else if (rule == grammarAccess.getJvmTypeReferenceRule() - || action == grammarAccess.getJvmTypeReferenceAccess().getJvmGenericArrayTypeReferenceComponentTypeAction_0_1_0_0() - || rule == grammarAccess.getJvmParameterizedTypeReferenceRule() - || rule == grammarAccess.getJvmArgumentTypeReferenceRule()) { - sequence_JvmParameterizedTypeReference(context, (JvmParameterizedTypeReference) semanticObject); - return; - } - else break; - case TypesPackage.JVM_TYPE_PARAMETER: - sequence_JvmTypeParameter(context, (JvmTypeParameter) semanticObject); - return; - case TypesPackage.JVM_UPPER_BOUND: - if (rule == grammarAccess.getJvmUpperBoundAndedRule()) { - sequence_JvmUpperBoundAnded(context, (JvmUpperBound) semanticObject); - return; - } - else if (rule == grammarAccess.getJvmUpperBoundRule()) { - sequence_JvmUpperBound(context, (JvmUpperBound) semanticObject); - return; - } - else break; - case TypesPackage.JVM_WILDCARD_TYPE_REFERENCE: - sequence_JvmWildcardTypeReference(context, (JvmWildcardTypeReference) semanticObject); - return; - } - else if (epackage == XbasePackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case XbasePackage.XASSIGNMENT: - sequence_XAssignment_XMemberFeatureCall(context, (XAssignment) semanticObject); - return; - case XbasePackage.XBASIC_FOR_LOOP_EXPRESSION: - sequence_XBasicForLoopExpression(context, (XBasicForLoopExpression) semanticObject); - return; - case XbasePackage.XBINARY_OPERATION: - sequence_XAdditiveExpression_XAndExpression_XAssignment_XEqualityExpression_XMultiplicativeExpression_XOrExpression_XOtherOperatorExpression_XRelationalExpression(context, (XBinaryOperation) semanticObject); - return; - case XbasePackage.XBLOCK_EXPRESSION: - if (rule == grammarAccess.getXExpressionRule() - || rule == grammarAccess.getXAssignmentRule() - || action == grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0() - || rule == grammarAccess.getXOrExpressionRule() - || action == grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXAndExpressionRule() - || action == grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXEqualityExpressionRule() - || action == grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXRelationalExpressionRule() - || action == grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0() - || action == grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0() - || rule == grammarAccess.getXOtherOperatorExpressionRule() - || action == grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXAdditiveExpressionRule() - || action == grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXMultiplicativeExpressionRule() - || action == grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXUnaryOperationRule() - || rule == grammarAccess.getXCastedExpressionRule() - || action == grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0() - || rule == grammarAccess.getXPostfixOperationRule() - || action == grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0() - || rule == grammarAccess.getXMemberFeatureCallRule() - || action == grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0() - || action == grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0() - || rule == grammarAccess.getXPrimaryExpressionRule() - || rule == grammarAccess.getXParenthesizedExpressionRule() - || rule == grammarAccess.getXBlockExpressionRule() - || rule == grammarAccess.getXExpressionOrVarDeclarationRule()) { - sequence_XBlockExpression(context, (XBlockExpression) semanticObject); - return; - } - else if (rule == grammarAccess.getXExpressionInClosureRule()) { - sequence_XExpressionInClosure(context, (XBlockExpression) semanticObject); - return; - } - else break; - case XbasePackage.XBOOLEAN_LITERAL: - sequence_XBooleanLiteral(context, (XBooleanLiteral) semanticObject); - return; - case XbasePackage.XCASE_PART: - sequence_XCasePart(context, (XCasePart) semanticObject); - return; - case XbasePackage.XCASTED_EXPRESSION: - sequence_XCastedExpression(context, (XCastedExpression) semanticObject); - return; - case XbasePackage.XCATCH_CLAUSE: - sequence_XCatchClause(context, (XCatchClause) semanticObject); - return; - case XbasePackage.XCLOSURE: - if (rule == grammarAccess.getXExpressionRule() - || rule == grammarAccess.getXAssignmentRule() - || action == grammarAccess.getXAssignmentAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0() - || rule == grammarAccess.getXOrExpressionRule() - || action == grammarAccess.getXOrExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXAndExpressionRule() - || action == grammarAccess.getXAndExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXEqualityExpressionRule() - || action == grammarAccess.getXEqualityExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXRelationalExpressionRule() - || action == grammarAccess.getXRelationalExpressionAccess().getXInstanceOfExpressionExpressionAction_1_0_0_0_0() - || action == grammarAccess.getXRelationalExpressionAccess().getXBinaryOperationLeftOperandAction_1_1_0_0_0() - || rule == grammarAccess.getXOtherOperatorExpressionRule() - || action == grammarAccess.getXOtherOperatorExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXAdditiveExpressionRule() - || action == grammarAccess.getXAdditiveExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXMultiplicativeExpressionRule() - || action == grammarAccess.getXMultiplicativeExpressionAccess().getXBinaryOperationLeftOperandAction_1_0_0_0() - || rule == grammarAccess.getXUnaryOperationRule() - || rule == grammarAccess.getXCastedExpressionRule() - || action == grammarAccess.getXCastedExpressionAccess().getXCastedExpressionTargetAction_1_0_0_0() - || rule == grammarAccess.getXPostfixOperationRule() - || action == grammarAccess.getXPostfixOperationAccess().getXPostfixOperationOperandAction_1_0_0() - || rule == grammarAccess.getXMemberFeatureCallRule() - || action == grammarAccess.getXMemberFeatureCallAccess().getXAssignmentAssignableAction_1_0_0_0_0() - || action == grammarAccess.getXMemberFeatureCallAccess().getXMemberFeatureCallMemberCallTargetAction_1_1_0_0_0() - || rule == grammarAccess.getXPrimaryExpressionRule() - || rule == grammarAccess.getXLiteralRule() - || rule == grammarAccess.getXClosureRule() - || rule == grammarAccess.getXParenthesizedExpressionRule() - || rule == grammarAccess.getXExpressionOrVarDeclarationRule()) { - sequence_XClosure(context, (XClosure) semanticObject); - return; - } - else if (rule == grammarAccess.getXShortClosureRule()) { - sequence_XShortClosure(context, (XClosure) semanticObject); - return; - } - else break; - case XbasePackage.XCONSTRUCTOR_CALL: - sequence_XConstructorCall(context, (XConstructorCall) semanticObject); - return; - case XbasePackage.XDO_WHILE_EXPRESSION: - sequence_XDoWhileExpression(context, (XDoWhileExpression) semanticObject); - return; - case XbasePackage.XFEATURE_CALL: - sequence_XFeatureCall(context, (XFeatureCall) semanticObject); - return; - case XbasePackage.XFOR_LOOP_EXPRESSION: - sequence_XForLoopExpression(context, (XForLoopExpression) semanticObject); - return; - case XbasePackage.XIF_EXPRESSION: - sequence_XIfExpression(context, (XIfExpression) semanticObject); - return; - case XbasePackage.XINSTANCE_OF_EXPRESSION: - sequence_XRelationalExpression(context, (XInstanceOfExpression) semanticObject); - return; - case XbasePackage.XLIST_LITERAL: - sequence_XListLiteral(context, (XListLiteral) semanticObject); - return; - case XbasePackage.XMEMBER_FEATURE_CALL: - sequence_XMemberFeatureCall(context, (XMemberFeatureCall) semanticObject); - return; - case XbasePackage.XNULL_LITERAL: - sequence_XNullLiteral(context, (XNullLiteral) semanticObject); - return; - case XbasePackage.XNUMBER_LITERAL: - sequence_XNumberLiteral(context, (XNumberLiteral) semanticObject); - return; - case XbasePackage.XPOSTFIX_OPERATION: - sequence_XPostfixOperation(context, (XPostfixOperation) semanticObject); - return; - case XbasePackage.XRETURN_EXPRESSION: - sequence_XReturnExpression(context, (XReturnExpression) semanticObject); - return; - case XbasePackage.XSET_LITERAL: - sequence_XSetLiteral(context, (XSetLiteral) semanticObject); - return; - case XbasePackage.XSTRING_LITERAL: - sequence_XStringLiteral(context, (XStringLiteral) semanticObject); - return; - case XbasePackage.XSWITCH_EXPRESSION: - sequence_XSwitchExpression(context, (XSwitchExpression) semanticObject); - return; - case XbasePackage.XSYNCHRONIZED_EXPRESSION: - sequence_XSynchronizedExpression(context, (XSynchronizedExpression) semanticObject); - return; - case XbasePackage.XTHROW_EXPRESSION: - sequence_XThrowExpression(context, (XThrowExpression) semanticObject); - return; - case XbasePackage.XTRY_CATCH_FINALLY_EXPRESSION: - sequence_XTryCatchFinallyExpression(context, (XTryCatchFinallyExpression) semanticObject); - return; - case XbasePackage.XTYPE_LITERAL: - sequence_XTypeLiteral(context, (XTypeLiteral) semanticObject); - return; - case XbasePackage.XUNARY_OPERATION: - sequence_XUnaryOperation(context, (XUnaryOperation) semanticObject); - return; - case XbasePackage.XVARIABLE_DECLARATION: - sequence_XVariableDeclaration(context, (XVariableDeclaration) semanticObject); - return; - case XbasePackage.XWHILE_EXPRESSION: - sequence_XWhileExpression(context, (XWhileExpression) semanticObject); - return; - } - else if (epackage == XtypePackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case XtypePackage.XFUNCTION_TYPE_REF: - sequence_XFunctionTypeRef(context, (XFunctionTypeRef) semanticObject); - return; - case XtypePackage.XIMPORT_DECLARATION: - sequence_XImportDeclaration(context, (XImportDeclaration) semanticObject); - return; - case XtypePackage.XIMPORT_SECTION: - sequence_XImportSection(context, (XImportSection) semanticObject); - return; - } - if (errorAcceptor != null) - errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); - } - - /** - *
-	 * Contexts:
-	 *     Entities returns Entities
-	 *
-	 * Constraint:
-	 *     ((importSection=XImportSection elements+=AbstractElement+) | elements+=AbstractElement+)?
-	 * 
- */ - protected void sequence_Entities(ISerializationContext context, Entities semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     AbstractElement returns Entity
-	 *     Entity returns Entity
-	 *
-	 * Constraint:
-	 *     (name=ValidID superType=JvmParameterizedTypeReference? features+=Feature*)
-	 * 
- */ - protected void sequence_Entity(ISerializationContext context, Entity semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Feature returns Operation
-	 *     Operation returns Operation
-	 *
-	 * Constraint:
-	 *     (name=ValidID (params+=FullJvmFormalParameter params+=FullJvmFormalParameter*)? type=JvmTypeReference? body=XBlockExpression)
-	 * 
- */ - protected void sequence_Operation(ISerializationContext context, Operation semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     AbstractElement returns PackageDeclaration
-	 *     PackageDeclaration returns PackageDeclaration
-	 *
-	 * Constraint:
-	 *     (name=QualifiedName elements+=AbstractElement*)
-	 * 
- */ - protected void sequence_PackageDeclaration(ISerializationContext context, PackageDeclaration semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Feature returns Property
-	 *     Property returns Property
-	 *
-	 * Constraint:
-	 *     (name=ValidID type=JvmTypeReference)
-	 * 
- */ - protected void sequence_Property(ISerializationContext context, Property semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, DomainmodelPackage.Literals.FEATURE__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DomainmodelPackage.Literals.FEATURE__NAME)); - if (transientValues.isValueTransient(semanticObject, DomainmodelPackage.Literals.FEATURE__TYPE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DomainmodelPackage.Literals.FEATURE__TYPE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getPropertyAccess().getNameValidIDParserRuleCall_0_0(), semanticObject.getName()); - feeder.accept(grammarAccess.getPropertyAccess().getTypeJvmTypeReferenceParserRuleCall_2_0(), semanticObject.getType()); - feeder.finish(); - } - - -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSyntacticSequencer.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSyntacticSequencer.java deleted file mode 100644 index 7064f542848..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/serializer/AbstractEntitiesSyntacticSequencer.java +++ /dev/null @@ -1,272 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.serializer; - -import com.google.inject.Inject; -import java.util.List; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; -import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; -import org.eclipse.xtext.web.example.entities.services.EntitiesGrammarAccess; - -@SuppressWarnings("all") -public abstract class AbstractEntitiesSyntacticSequencer extends AbstractSyntacticSequencer { - - protected EntitiesGrammarAccess grammarAccess; - protected AbstractElementAlias match_XBlockExpression_SemicolonKeyword_2_1_q; - protected AbstractElementAlias match_XExpressionInClosure_SemicolonKeyword_1_1_q; - protected AbstractElementAlias match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q; - protected AbstractElementAlias match_XImportDeclaration_SemicolonKeyword_2_q; - protected AbstractElementAlias match_XParenthesizedExpression_LeftParenthesisKeyword_0_a; - protected AbstractElementAlias match_XParenthesizedExpression_LeftParenthesisKeyword_0_p; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (EntitiesGrammarAccess) access; - match_XBlockExpression_SemicolonKeyword_2_1_q = new TokenAlias(false, true, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1()); - match_XExpressionInClosure_SemicolonKeyword_1_1_q = new TokenAlias(false, true, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1()); - match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2())); - match_XImportDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2()); - match_XParenthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - match_XParenthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0()); - } - - @Override - protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (ruleCall.getRule() == grammarAccess.getArrayBracketsRule()) - return getArrayBracketsToken(semanticObject, ruleCall, node); - else if (ruleCall.getRule() == grammarAccess.getOpSingleAssignRule()) - return getOpSingleAssignToken(semanticObject, ruleCall, node); - return ""; - } - - /** - * ArrayBrackets : - * '[' ']' - * ; - */ - protected String getArrayBracketsToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (node != null) - return getTokenText(node); - return "[ ]"; - } - - /** - * OpSingleAssign: - * '=' - * ; - */ - protected String getOpSingleAssignToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (node != null) - return getTokenText(node); - return "="; - } - - @Override - protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; - List transitionNodes = collectNodes(fromNode, toNode); - for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { - List syntaxNodes = getNodesFor(transitionNodes, syntax); - if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax)) - emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax)) - emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax)) - emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax)) - emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax)) - emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes); - else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax)) - emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes); - else acceptNodes(getLastNavigableState(), syntaxNodes); - } - } - - /** - *
-	 * Ambiguous syntax:
-	 *     ';'?
-	 *
-	 * This ambiguous syntax occurs at:
-	 *     expressions+=XExpressionOrVarDeclaration (ambiguity) '}' ')' (rule end)
-	 *     expressions+=XExpressionOrVarDeclaration (ambiguity) '}' (rule end)
-	 *     expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
-	 
-	 * 
- */ - protected void emit_XBlockExpression_SemicolonKeyword_2_1_q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - *
-	 * Ambiguous syntax:
-	 *     ';'?
-	 *
-	 * This ambiguous syntax occurs at:
-	 *     expressions+=XExpressionOrVarDeclaration (ambiguity) (rule end)
-	 *     expressions+=XExpressionOrVarDeclaration (ambiguity) expressions+=XExpressionOrVarDeclaration
-	 
-	 * 
- */ - protected void emit_XExpressionInClosure_SemicolonKeyword_1_1_q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - *
-	 * Ambiguous syntax:
-	 *     ('(' ')')?
-	 *
-	 * This ambiguous syntax occurs at:
-	 *     (rule start) (ambiguity) '=>' returnType=JvmTypeReference
-	 
-	 * 
- */ - protected void emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - *
-	 * Ambiguous syntax:
-	 *     ';'?
-	 *
-	 * This ambiguous syntax occurs at:
-	 *     importedNamespace=QualifiedNameWithWildcard (ambiguity) (rule end)
-	 *     importedType=[JvmDeclaredType|QualifiedName] (ambiguity) (rule end)
-	 *     memberName=ValidID (ambiguity) (rule end)
-	 *     wildcard?='*' (ambiguity) (rule end)
-	 
-	 * 
- */ - protected void emit_XImportDeclaration_SemicolonKeyword_2_q(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - *
-	 * Ambiguous syntax:
-	 *     '('*
-	 *
-	 * This ambiguous syntax occurs at:
-	 *     (rule start) (ambiguity) '#' '[' ']' (rule start)
-	 *     (rule start) (ambiguity) '#' '[' elements+=XExpression
-	 *     (rule start) (ambiguity) '#' '{' '}' (rule start)
-	 *     (rule start) (ambiguity) '#' '{' elements+=XExpression
-	 *     (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
-	 *     (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
-	 *     (rule start) (ambiguity) '[' explicitSyntax?='|'
-	 *     (rule start) (ambiguity) '[' expression=XExpressionInClosure
-	 *     (rule start) (ambiguity) 'do' body=XExpression
-	 *     (rule start) (ambiguity) 'false' (rule start)
-	 *     (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
-	 *     (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
-	 *     (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
-	 *     (rule start) (ambiguity) 'for' '(' declaredParam=JvmFormalParameter
-	 *     (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
-	 *     (rule start) (ambiguity) 'if' '(' if=XExpression
-	 *     (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
-	 *     (rule start) (ambiguity) 'null' (rule start)
-	 *     (rule start) (ambiguity) 'return' (rule start)
-	 *     (rule start) (ambiguity) 'return' expression=XExpression
-	 *     (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
-	 *     (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
-	 *     (rule start) (ambiguity) 'switch' switch=XExpression
-	 *     (rule start) (ambiguity) 'synchronized' '(' param=XExpression
-	 *     (rule start) (ambiguity) 'throw' expression=XExpression
-	 *     (rule start) (ambiguity) 'try' expression=XExpression
-	 *     (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
-	 *     (rule start) (ambiguity) 'while' '(' predicate=XExpression
-	 *     (rule start) (ambiguity) '{' '}' (rule start)
-	 *     (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
-	 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
-	 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
-	 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
-	 *     (rule start) (ambiguity) isTrue?='true'
-	 *     (rule start) (ambiguity) value=Number
-	 *     (rule start) (ambiguity) value=STRING
-	 *     (rule start) (ambiguity) {XAssignment.assignable=}
-	 *     (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
-	 *     (rule start) (ambiguity) {XCastedExpression.target=}
-	 *     (rule start) (ambiguity) {XInstanceOfExpression.expression=}
-	 *     (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
-	 *     (rule start) (ambiguity) {XPostfixOperation.operand=}
-	 
-	 * 
- */ - protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - - /** - *
-	 * Ambiguous syntax:
-	 *     '('+
-	 *
-	 * This ambiguous syntax occurs at:
-	 *     (rule start) (ambiguity) '#' '[' ']' ')' (rule start)
-	 *     (rule start) (ambiguity) '#' '[' elements+=XExpression
-	 *     (rule start) (ambiguity) '#' '{' '}' ')' (rule start)
-	 *     (rule start) (ambiguity) '#' '{' elements+=XExpression
-	 *     (rule start) (ambiguity) '<' typeArguments+=JvmArgumentTypeReference
-	 *     (rule start) (ambiguity) '[' declaredFormalParameters+=JvmFormalParameter
-	 *     (rule start) (ambiguity) '[' explicitSyntax?='|'
-	 *     (rule start) (ambiguity) '[' expression=XExpressionInClosure
-	 *     (rule start) (ambiguity) 'do' body=XExpression
-	 *     (rule start) (ambiguity) 'false' ')' (rule start)
-	 *     (rule start) (ambiguity) 'for' '(' ';' ';' ')' eachExpression=XExpression
-	 *     (rule start) (ambiguity) 'for' '(' ';' ';' updateExpressions+=XExpression
-	 *     (rule start) (ambiguity) 'for' '(' ';' expression=XExpression
-	 *     (rule start) (ambiguity) 'for' '(' declaredParam=JvmFormalParameter
-	 *     (rule start) (ambiguity) 'for' '(' initExpressions+=XExpressionOrVarDeclaration
-	 *     (rule start) (ambiguity) 'if' '(' if=XExpression
-	 *     (rule start) (ambiguity) 'new' constructor=[JvmConstructor|QualifiedName]
-	 *     (rule start) (ambiguity) 'null' ')' (rule start)
-	 *     (rule start) (ambiguity) 'return' ')' (rule start)
-	 *     (rule start) (ambiguity) 'return' expression=XExpression
-	 *     (rule start) (ambiguity) 'switch' '(' declaredParam=JvmFormalParameter
-	 *     (rule start) (ambiguity) 'switch' declaredParam=JvmFormalParameter
-	 *     (rule start) (ambiguity) 'switch' switch=XExpression
-	 *     (rule start) (ambiguity) 'synchronized' '(' param=XExpression
-	 *     (rule start) (ambiguity) 'throw' expression=XExpression
-	 *     (rule start) (ambiguity) 'try' expression=XExpression
-	 *     (rule start) (ambiguity) 'typeof' '(' type=[JvmType|QualifiedName]
-	 *     (rule start) (ambiguity) 'while' '(' predicate=XExpression
-	 *     (rule start) (ambiguity) '{' '}' ')' (rule start)
-	 *     (rule start) (ambiguity) '{' expressions+=XExpressionOrVarDeclaration
-	 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|FeatureCallID]
-	 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|IdOrSuper]
-	 *     (rule start) (ambiguity) feature=[JvmIdentifiableElement|OpUnary]
-	 *     (rule start) (ambiguity) isTrue?='true'
-	 *     (rule start) (ambiguity) value=Number
-	 *     (rule start) (ambiguity) value=STRING
-	 *     (rule start) (ambiguity) {XAssignment.assignable=}
-	 *     (rule start) (ambiguity) {XBinaryOperation.leftOperand=}
-	 *     (rule start) (ambiguity) {XCastedExpression.target=}
-	 *     (rule start) (ambiguity) {XInstanceOfExpression.expression=}
-	 *     (rule start) (ambiguity) {XMemberFeatureCall.memberCallTarget=}
-	 *     (rule start) (ambiguity) {XPostfixOperation.operand=}
-	 
-	 * 
- */ - protected void emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List nodes) { - acceptNodes(transition, nodes); - } - -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/services/EntitiesGrammarAccess.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/services/EntitiesGrammarAccess.java deleted file mode 100644 index 861ebac9681..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/services/EntitiesGrammarAccess.java +++ /dev/null @@ -1,1427 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.services; - -import com.google.inject.Inject; -import com.google.inject.Singleton; -import java.util.List; -import org.eclipse.xtext.Alternatives; -import org.eclipse.xtext.Assignment; -import org.eclipse.xtext.Grammar; -import org.eclipse.xtext.GrammarUtil; -import org.eclipse.xtext.Group; -import org.eclipse.xtext.Keyword; -import org.eclipse.xtext.ParserRule; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.TerminalRule; -import org.eclipse.xtext.service.AbstractElementFinder; -import org.eclipse.xtext.service.GrammarProvider; -import org.eclipse.xtext.xbase.services.XbaseGrammarAccess; -import org.eclipse.xtext.xbase.services.XtypeGrammarAccess; - -@Singleton -public class EntitiesGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder { - - public class EntitiesElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.Entities"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cImportSectionAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cImportSectionXImportSectionParserRuleCall_0_0 = (RuleCall)cImportSectionAssignment_0.eContents().get(0); - private final Assignment cElementsAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cElementsAbstractElementParserRuleCall_1_0 = (RuleCall)cElementsAssignment_1.eContents().get(0); - - //Entities: - // importSection=XImportSection? - // elements+=AbstractElement*; - @Override public ParserRule getRule() { return rule; } - - //importSection=XImportSection? - //elements+=AbstractElement* - public Group getGroup() { return cGroup; } - - //importSection=XImportSection? - public Assignment getImportSectionAssignment_0() { return cImportSectionAssignment_0; } - - //XImportSection - public RuleCall getImportSectionXImportSectionParserRuleCall_0_0() { return cImportSectionXImportSectionParserRuleCall_0_0; } - - //elements+=AbstractElement* - public Assignment getElementsAssignment_1() { return cElementsAssignment_1; } - - //AbstractElement - public RuleCall getElementsAbstractElementParserRuleCall_1_0() { return cElementsAbstractElementParserRuleCall_1_0; } - } - public class AbstractElementElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.AbstractElement"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cPackageDeclarationParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cEntityParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //AbstractElement: - // PackageDeclaration | Entity; - @Override public ParserRule getRule() { return rule; } - - //PackageDeclaration | Entity - public Alternatives getAlternatives() { return cAlternatives; } - - //PackageDeclaration - public RuleCall getPackageDeclarationParserRuleCall_0() { return cPackageDeclarationParserRuleCall_0; } - - //Entity - public RuleCall getEntityParserRuleCall_1() { return cEntityParserRuleCall_1; } - } - public class PackageDeclarationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.PackageDeclaration"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Assignment cElementsAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cElementsAbstractElementParserRuleCall_3_0 = (RuleCall)cElementsAssignment_3.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); - - //PackageDeclaration: - // 'package' name=QualifiedName '{' - // elements+=AbstractElement* - // '}'; - @Override public ParserRule getRule() { return rule; } - - //'package' name=QualifiedName '{' - // elements+=AbstractElement* - //'}' - public Group getGroup() { return cGroup; } - - //'package' - public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } - - //name=QualifiedName - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //QualifiedName - public RuleCall getNameQualifiedNameParserRuleCall_1_0() { return cNameQualifiedNameParserRuleCall_1_0; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } - - //elements+=AbstractElement* - public Assignment getElementsAssignment_3() { return cElementsAssignment_3; } - - //AbstractElement - public RuleCall getElementsAbstractElementParserRuleCall_3_0() { return cElementsAbstractElementParserRuleCall_3_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; } - } - public class EntityElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.Entity"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cEntityKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameValidIDParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - private final Group cGroup_2 = (Group)cGroup.eContents().get(2); - private final Keyword cExtendsKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); - private final Assignment cSuperTypeAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); - private final RuleCall cSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0 = (RuleCall)cSuperTypeAssignment_2_1.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); - private final Assignment cFeaturesAssignment_4 = (Assignment)cGroup.eContents().get(4); - private final RuleCall cFeaturesFeatureParserRuleCall_4_0 = (RuleCall)cFeaturesAssignment_4.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); - - //Entity: - // 'entity' name=ValidID ('extends' superType=JvmParameterizedTypeReference)? '{' - // features+=Feature* - // '}'; - @Override public ParserRule getRule() { return rule; } - - //'entity' name=ValidID ('extends' superType=JvmParameterizedTypeReference)? '{' - // features+=Feature* - //'}' - public Group getGroup() { return cGroup; } - - //'entity' - public Keyword getEntityKeyword_0() { return cEntityKeyword_0; } - - //name=ValidID - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //ValidID - public RuleCall getNameValidIDParserRuleCall_1_0() { return cNameValidIDParserRuleCall_1_0; } - - //('extends' superType=JvmParameterizedTypeReference)? - public Group getGroup_2() { return cGroup_2; } - - //'extends' - public Keyword getExtendsKeyword_2_0() { return cExtendsKeyword_2_0; } - - //superType=JvmParameterizedTypeReference - public Assignment getSuperTypeAssignment_2_1() { return cSuperTypeAssignment_2_1; } - - //JvmParameterizedTypeReference - public RuleCall getSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0() { return cSuperTypeJvmParameterizedTypeReferenceParserRuleCall_2_1_0; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_3() { return cLeftCurlyBracketKeyword_3; } - - //features+=Feature* - public Assignment getFeaturesAssignment_4() { return cFeaturesAssignment_4; } - - //Feature - public RuleCall getFeaturesFeatureParserRuleCall_4_0() { return cFeaturesFeatureParserRuleCall_4_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } - } - public class FeatureElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.Feature"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cPropertyParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cOperationParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //Feature: - // Property | Operation; - @Override public ParserRule getRule() { return rule; } - - //Property | Operation - public Alternatives getAlternatives() { return cAlternatives; } - - //Property - public RuleCall getPropertyParserRuleCall_0() { return cPropertyParserRuleCall_0; } - - //Operation - public RuleCall getOperationParserRuleCall_1() { return cOperationParserRuleCall_1; } - } - public class PropertyElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.Property"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cNameValidIDParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); - private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cTypeAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cTypeJvmTypeReferenceParserRuleCall_2_0 = (RuleCall)cTypeAssignment_2.eContents().get(0); - - //Property: - // name=ValidID ':' type=JvmTypeReference; - @Override public ParserRule getRule() { return rule; } - - //name=ValidID ':' type=JvmTypeReference - public Group getGroup() { return cGroup; } - - //name=ValidID - public Assignment getNameAssignment_0() { return cNameAssignment_0; } - - //ValidID - public RuleCall getNameValidIDParserRuleCall_0_0() { return cNameValidIDParserRuleCall_0_0; } - - //':' - public Keyword getColonKeyword_1() { return cColonKeyword_1; } - - //type=JvmTypeReference - public Assignment getTypeAssignment_2() { return cTypeAssignment_2; } - - //JvmTypeReference - public RuleCall getTypeJvmTypeReferenceParserRuleCall_2_0() { return cTypeJvmTypeReferenceParserRuleCall_2_0; } - } - public class OperationElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.entities.Entities.Operation"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cOpKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameValidIDParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Group cGroup_3 = (Group)cGroup.eContents().get(3); - private final Assignment cParamsAssignment_3_0 = (Assignment)cGroup_3.eContents().get(0); - private final RuleCall cParamsFullJvmFormalParameterParserRuleCall_3_0_0 = (RuleCall)cParamsAssignment_3_0.eContents().get(0); - private final Group cGroup_3_1 = (Group)cGroup_3.eContents().get(1); - private final Keyword cCommaKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); - private final Assignment cParamsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); - private final RuleCall cParamsFullJvmFormalParameterParserRuleCall_3_1_1_0 = (RuleCall)cParamsAssignment_3_1_1.eContents().get(0); - private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4); - private final Group cGroup_5 = (Group)cGroup.eContents().get(5); - private final Keyword cColonKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); - private final Assignment cTypeAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); - private final RuleCall cTypeJvmTypeReferenceParserRuleCall_5_1_0 = (RuleCall)cTypeAssignment_5_1.eContents().get(0); - private final Assignment cBodyAssignment_6 = (Assignment)cGroup.eContents().get(6); - private final RuleCall cBodyXBlockExpressionParserRuleCall_6_0 = (RuleCall)cBodyAssignment_6.eContents().get(0); - - //Operation: - // 'op' name=ValidID '(' (params+=FullJvmFormalParameter (',' params+=FullJvmFormalParameter)*)? ')' (':' type=JvmTypeReference)? - // body=XBlockExpression; - @Override public ParserRule getRule() { return rule; } - - //'op' name=ValidID '(' (params+=FullJvmFormalParameter (',' params+=FullJvmFormalParameter)*)? ')' (':' type=JvmTypeReference)? - // body=XBlockExpression - public Group getGroup() { return cGroup; } - - //'op' - public Keyword getOpKeyword_0() { return cOpKeyword_0; } - - //name=ValidID - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //ValidID - public RuleCall getNameValidIDParserRuleCall_1_0() { return cNameValidIDParserRuleCall_1_0; } - - //'(' - public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } - - //(params+=FullJvmFormalParameter (',' params+=FullJvmFormalParameter)*)? - public Group getGroup_3() { return cGroup_3; } - - //params+=FullJvmFormalParameter - public Assignment getParamsAssignment_3_0() { return cParamsAssignment_3_0; } - - //FullJvmFormalParameter - public RuleCall getParamsFullJvmFormalParameterParserRuleCall_3_0_0() { return cParamsFullJvmFormalParameterParserRuleCall_3_0_0; } - - //(',' params+=FullJvmFormalParameter)* - public Group getGroup_3_1() { return cGroup_3_1; } - - //',' - public Keyword getCommaKeyword_3_1_0() { return cCommaKeyword_3_1_0; } - - //params+=FullJvmFormalParameter - public Assignment getParamsAssignment_3_1_1() { return cParamsAssignment_3_1_1; } - - //FullJvmFormalParameter - public RuleCall getParamsFullJvmFormalParameterParserRuleCall_3_1_1_0() { return cParamsFullJvmFormalParameterParserRuleCall_3_1_1_0; } - - //')' - public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; } - - //(':' type=JvmTypeReference)? - public Group getGroup_5() { return cGroup_5; } - - //':' - public Keyword getColonKeyword_5_0() { return cColonKeyword_5_0; } - - //type=JvmTypeReference - public Assignment getTypeAssignment_5_1() { return cTypeAssignment_5_1; } - - //JvmTypeReference - public RuleCall getTypeJvmTypeReferenceParserRuleCall_5_1_0() { return cTypeJvmTypeReferenceParserRuleCall_5_1_0; } - - //body=XBlockExpression - public Assignment getBodyAssignment_6() { return cBodyAssignment_6; } - - //XBlockExpression - public RuleCall getBodyXBlockExpressionParserRuleCall_6_0() { return cBodyXBlockExpressionParserRuleCall_6_0; } - } - - - private final EntitiesElements pEntities; - private final AbstractElementElements pAbstractElement; - private final PackageDeclarationElements pPackageDeclaration; - private final EntityElements pEntity; - private final FeatureElements pFeature; - private final PropertyElements pProperty; - private final OperationElements pOperation; - - private final Grammar grammar; - - private final XbaseGrammarAccess gaXbase; - - private final XtypeGrammarAccess gaXtype; - - @Inject - public EntitiesGrammarAccess(GrammarProvider grammarProvider, - XbaseGrammarAccess gaXbase, - XtypeGrammarAccess gaXtype) { - this.grammar = internalFindGrammar(grammarProvider); - this.gaXbase = gaXbase; - this.gaXtype = gaXtype; - this.pEntities = new EntitiesElements(); - this.pAbstractElement = new AbstractElementElements(); - this.pPackageDeclaration = new PackageDeclarationElements(); - this.pEntity = new EntityElements(); - this.pFeature = new FeatureElements(); - this.pProperty = new PropertyElements(); - this.pOperation = new OperationElements(); - } - - protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { - Grammar grammar = grammarProvider.getGrammar(this); - while (grammar != null) { - if ("org.eclipse.xtext.web.example.entities.Entities".equals(grammar.getName())) { - return grammar; - } - List grammars = grammar.getUsedGrammars(); - if (!grammars.isEmpty()) { - grammar = grammars.iterator().next(); - } else { - return null; - } - } - return grammar; - } - - @Override - public Grammar getGrammar() { - return grammar; - } - - - public XbaseGrammarAccess getXbaseGrammarAccess() { - return gaXbase; - } - - public XtypeGrammarAccess getXtypeGrammarAccess() { - return gaXtype; - } - - - //Entities: - // importSection=XImportSection? - // elements+=AbstractElement*; - public EntitiesElements getEntitiesAccess() { - return pEntities; - } - - public ParserRule getEntitiesRule() { - return getEntitiesAccess().getRule(); - } - - //AbstractElement: - // PackageDeclaration | Entity; - public AbstractElementElements getAbstractElementAccess() { - return pAbstractElement; - } - - public ParserRule getAbstractElementRule() { - return getAbstractElementAccess().getRule(); - } - - //PackageDeclaration: - // 'package' name=QualifiedName '{' - // elements+=AbstractElement* - // '}'; - public PackageDeclarationElements getPackageDeclarationAccess() { - return pPackageDeclaration; - } - - public ParserRule getPackageDeclarationRule() { - return getPackageDeclarationAccess().getRule(); - } - - //Entity: - // 'entity' name=ValidID ('extends' superType=JvmParameterizedTypeReference)? '{' - // features+=Feature* - // '}'; - public EntityElements getEntityAccess() { - return pEntity; - } - - public ParserRule getEntityRule() { - return getEntityAccess().getRule(); - } - - //Feature: - // Property | Operation; - public FeatureElements getFeatureAccess() { - return pFeature; - } - - public ParserRule getFeatureRule() { - return getFeatureAccess().getRule(); - } - - //Property: - // name=ValidID ':' type=JvmTypeReference; - public PropertyElements getPropertyAccess() { - return pProperty; - } - - public ParserRule getPropertyRule() { - return getPropertyAccess().getRule(); - } - - //Operation: - // 'op' name=ValidID '(' (params+=FullJvmFormalParameter (',' params+=FullJvmFormalParameter)*)? ')' (':' type=JvmTypeReference)? - // body=XBlockExpression; - public OperationElements getOperationAccess() { - return pOperation; - } - - public ParserRule getOperationRule() { - return getOperationAccess().getRule(); - } - - //XExpression returns XExpression : - // XAssignment; - public XbaseGrammarAccess.XExpressionElements getXExpressionAccess() { - return gaXbase.getXExpressionAccess(); - } - - public ParserRule getXExpressionRule() { - return getXExpressionAccess().getRule(); - } - - //XAssignment returns XExpression : - // {XAssignment} feature=[types::JvmIdentifiableElement|FeatureCallID] OpSingleAssign value=XAssignment | - // XOrExpression ( - // =>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpMultiAssign]) rightOperand=XAssignment - // )?; - public XbaseGrammarAccess.XAssignmentElements getXAssignmentAccess() { - return gaXbase.getXAssignmentAccess(); - } - - public ParserRule getXAssignmentRule() { - return getXAssignmentAccess().getRule(); - } - - //OpSingleAssign: - // '=' - //; - public XbaseGrammarAccess.OpSingleAssignElements getOpSingleAssignAccess() { - return gaXbase.getOpSingleAssignAccess(); - } - - public ParserRule getOpSingleAssignRule() { - return getOpSingleAssignAccess().getRule(); - } - - //OpMultiAssign: - // '+=' | '-=' | '*=' | '/=' | '%=' | - // '<' '<' '=' | - // '>' '>'? '>='; - public XbaseGrammarAccess.OpMultiAssignElements getOpMultiAssignAccess() { - return gaXbase.getOpMultiAssignAccess(); - } - - public ParserRule getOpMultiAssignRule() { - return getOpMultiAssignAccess().getRule(); - } - - //XOrExpression returns XExpression: - // XAndExpression (=>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpOr]) rightOperand=XAndExpression)*; - public XbaseGrammarAccess.XOrExpressionElements getXOrExpressionAccess() { - return gaXbase.getXOrExpressionAccess(); - } - - public ParserRule getXOrExpressionRule() { - return getXOrExpressionAccess().getRule(); - } - - //OpOr: - // '||'; - public XbaseGrammarAccess.OpOrElements getOpOrAccess() { - return gaXbase.getOpOrAccess(); - } - - public ParserRule getOpOrRule() { - return getOpOrAccess().getRule(); - } - - //XAndExpression returns XExpression: - // XEqualityExpression (=>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpAnd]) rightOperand=XEqualityExpression)*; - public XbaseGrammarAccess.XAndExpressionElements getXAndExpressionAccess() { - return gaXbase.getXAndExpressionAccess(); - } - - public ParserRule getXAndExpressionRule() { - return getXAndExpressionAccess().getRule(); - } - - //OpAnd: - // '&&'; - public XbaseGrammarAccess.OpAndElements getOpAndAccess() { - return gaXbase.getOpAndAccess(); - } - - public ParserRule getOpAndRule() { - return getOpAndAccess().getRule(); - } - - //XEqualityExpression returns XExpression: - // XRelationalExpression (=>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpEquality]) - // rightOperand=XRelationalExpression)*; - public XbaseGrammarAccess.XEqualityExpressionElements getXEqualityExpressionAccess() { - return gaXbase.getXEqualityExpressionAccess(); - } - - public ParserRule getXEqualityExpressionRule() { - return getXEqualityExpressionAccess().getRule(); - } - - //OpEquality: - // '==' | '!=' | '===' | '!=='; - public XbaseGrammarAccess.OpEqualityElements getOpEqualityAccess() { - return gaXbase.getOpEqualityAccess(); - } - - public ParserRule getOpEqualityRule() { - return getOpEqualityAccess().getRule(); - } - - //XRelationalExpression returns XExpression: - // XOtherOperatorExpression - // (=>({XInstanceOfExpression.expression=current} 'instanceof') type=JvmTypeReference | - // =>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpCompare]) rightOperand=XOtherOperatorExpression)*; - public XbaseGrammarAccess.XRelationalExpressionElements getXRelationalExpressionAccess() { - return gaXbase.getXRelationalExpressionAccess(); - } - - public ParserRule getXRelationalExpressionRule() { - return getXRelationalExpressionAccess().getRule(); - } - - //OpCompare: - // '>=' | '<' '=' | '>' | '<' ; - public XbaseGrammarAccess.OpCompareElements getOpCompareAccess() { - return gaXbase.getOpCompareAccess(); - } - - public ParserRule getOpCompareRule() { - return getOpCompareAccess().getRule(); - } - - //XOtherOperatorExpression returns XExpression: - // XAdditiveExpression (=>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpOther]) - // rightOperand=XAdditiveExpression)*; - public XbaseGrammarAccess.XOtherOperatorExpressionElements getXOtherOperatorExpressionAccess() { - return gaXbase.getXOtherOperatorExpressionAccess(); - } - - public ParserRule getXOtherOperatorExpressionRule() { - return getXOtherOperatorExpressionAccess().getRule(); - } - - //OpOther: - // '->' - // | '..<' - // | '>' '..' - // | '..' - // | '=>' - // | '>' (=>('>' '>') | '>') - // | '<' (=>('<' '<') | '<' | '=>') - // | '<>' - // | '?:'; - public XbaseGrammarAccess.OpOtherElements getOpOtherAccess() { - return gaXbase.getOpOtherAccess(); - } - - public ParserRule getOpOtherRule() { - return getOpOtherAccess().getRule(); - } - - //XAdditiveExpression returns XExpression: - // XMultiplicativeExpression (=>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpAdd]) - // rightOperand=XMultiplicativeExpression)*; - public XbaseGrammarAccess.XAdditiveExpressionElements getXAdditiveExpressionAccess() { - return gaXbase.getXAdditiveExpressionAccess(); - } - - public ParserRule getXAdditiveExpressionRule() { - return getXAdditiveExpressionAccess().getRule(); - } - - //OpAdd: - // '+' | '-'; - public XbaseGrammarAccess.OpAddElements getOpAddAccess() { - return gaXbase.getOpAddAccess(); - } - - public ParserRule getOpAddRule() { - return getOpAddAccess().getRule(); - } - - //XMultiplicativeExpression returns XExpression: - // XUnaryOperation (=>({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpMulti]) rightOperand=XUnaryOperation)*; - public XbaseGrammarAccess.XMultiplicativeExpressionElements getXMultiplicativeExpressionAccess() { - return gaXbase.getXMultiplicativeExpressionAccess(); - } - - public ParserRule getXMultiplicativeExpressionRule() { - return getXMultiplicativeExpressionAccess().getRule(); - } - - //OpMulti: - // '*' | '**' | '/' | '%'; - public XbaseGrammarAccess.OpMultiElements getOpMultiAccess() { - return gaXbase.getOpMultiAccess(); - } - - public ParserRule getOpMultiRule() { - return getOpMultiAccess().getRule(); - } - - //XUnaryOperation returns XExpression: - // {XUnaryOperation} feature=[types::JvmIdentifiableElement|OpUnary] operand=XUnaryOperation - // | XCastedExpression; - public XbaseGrammarAccess.XUnaryOperationElements getXUnaryOperationAccess() { - return gaXbase.getXUnaryOperationAccess(); - } - - public ParserRule getXUnaryOperationRule() { - return getXUnaryOperationAccess().getRule(); - } - - //OpUnary: - // "!" | "-" | "+"; - public XbaseGrammarAccess.OpUnaryElements getOpUnaryAccess() { - return gaXbase.getOpUnaryAccess(); - } - - public ParserRule getOpUnaryRule() { - return getOpUnaryAccess().getRule(); - } - - //XCastedExpression returns XExpression: - // XPostfixOperation (=>({XCastedExpression.target=current} 'as') type=JvmTypeReference)* - //; - public XbaseGrammarAccess.XCastedExpressionElements getXCastedExpressionAccess() { - return gaXbase.getXCastedExpressionAccess(); - } - - public ParserRule getXCastedExpressionRule() { - return getXCastedExpressionAccess().getRule(); - } - - //XPostfixOperation returns XExpression: - // XMemberFeatureCall =>({XPostfixOperation.operand=current} feature=[types::JvmIdentifiableElement|OpPostfix])? - //; - public XbaseGrammarAccess.XPostfixOperationElements getXPostfixOperationAccess() { - return gaXbase.getXPostfixOperationAccess(); - } - - public ParserRule getXPostfixOperationRule() { - return getXPostfixOperationAccess().getRule(); - } - - //OpPostfix: - // "++" | "--" - //; - public XbaseGrammarAccess.OpPostfixElements getOpPostfixAccess() { - return gaXbase.getOpPostfixAccess(); - } - - public ParserRule getOpPostfixRule() { - return getOpPostfixAccess().getRule(); - } - - //XMemberFeatureCall returns XExpression: - // XPrimaryExpression - // (=>({XAssignment.assignable=current} ('.'|explicitStatic?="::") feature=[types::JvmIdentifiableElement|FeatureCallID] OpSingleAssign) value=XAssignment - // |=>({XMemberFeatureCall.memberCallTarget=current} ("."|nullSafe?="?."|explicitStatic?="::")) - // ('<' typeArguments+=JvmArgumentTypeReference (',' typeArguments+=JvmArgumentTypeReference)* '>')? - // feature=[types::JvmIdentifiableElement|IdOrSuper] ( - // =>explicitOperationCall?='(' - // ( - // memberCallArguments+=XShortClosure - // | memberCallArguments+=XExpression (',' memberCallArguments+=XExpression)* - // )? - // ')')? - // memberCallArguments+=XClosure? - // )*; - public XbaseGrammarAccess.XMemberFeatureCallElements getXMemberFeatureCallAccess() { - return gaXbase.getXMemberFeatureCallAccess(); - } - - public ParserRule getXMemberFeatureCallRule() { - return getXMemberFeatureCallAccess().getRule(); - } - - //XPrimaryExpression returns XExpression: - // XConstructorCall | - // XBlockExpression | - // XSwitchExpression | - // XSynchronizedExpression | - // XFeatureCall | - // XLiteral | - // XIfExpression | - // XForLoopExpression | - // XBasicForLoopExpression | - // XWhileExpression | - // XDoWhileExpression | - // XThrowExpression | - // XReturnExpression | - // XTryCatchFinallyExpression | - // XParenthesizedExpression; - public XbaseGrammarAccess.XPrimaryExpressionElements getXPrimaryExpressionAccess() { - return gaXbase.getXPrimaryExpressionAccess(); - } - - public ParserRule getXPrimaryExpressionRule() { - return getXPrimaryExpressionAccess().getRule(); - } - - //XLiteral returns XExpression: - // XCollectionLiteral | - // XClosure | - // XBooleanLiteral | - // XNumberLiteral | - // XNullLiteral | - // XStringLiteral | - // XTypeLiteral - //; - public XbaseGrammarAccess.XLiteralElements getXLiteralAccess() { - return gaXbase.getXLiteralAccess(); - } - - public ParserRule getXLiteralRule() { - return getXLiteralAccess().getRule(); - } - - //XCollectionLiteral: - // XSetLiteral | XListLiteral - //; - public XbaseGrammarAccess.XCollectionLiteralElements getXCollectionLiteralAccess() { - return gaXbase.getXCollectionLiteralAccess(); - } - - public ParserRule getXCollectionLiteralRule() { - return getXCollectionLiteralAccess().getRule(); - } - - //XSetLiteral: - // {XSetLiteral} '#' '{' (elements+=XExpression (',' elements+=XExpression )*)? '}' - //; - public XbaseGrammarAccess.XSetLiteralElements getXSetLiteralAccess() { - return gaXbase.getXSetLiteralAccess(); - } - - public ParserRule getXSetLiteralRule() { - return getXSetLiteralAccess().getRule(); - } - - //XListLiteral: - // {XListLiteral} '#' '[' (elements+=XExpression (',' elements+=XExpression )*)? ']' - //; - public XbaseGrammarAccess.XListLiteralElements getXListLiteralAccess() { - return gaXbase.getXListLiteralAccess(); - } - - public ParserRule getXListLiteralRule() { - return getXListLiteralAccess().getRule(); - } - - //XClosure returns XExpression: - // =>({XClosure} - // '[') - // =>((declaredFormalParameters+=JvmFormalParameter (',' declaredFormalParameters+=JvmFormalParameter)*)? explicitSyntax?='|')? - // expression=XExpressionInClosure - // ']'; - public XbaseGrammarAccess.XClosureElements getXClosureAccess() { - return gaXbase.getXClosureAccess(); - } - - public ParserRule getXClosureRule() { - return getXClosureAccess().getRule(); - } - - //XExpressionInClosure returns XExpression: - // {XBlockExpression} - // (expressions+=XExpressionOrVarDeclaration ';'?)* - //; - public XbaseGrammarAccess.XExpressionInClosureElements getXExpressionInClosureAccess() { - return gaXbase.getXExpressionInClosureAccess(); - } - - public ParserRule getXExpressionInClosureRule() { - return getXExpressionInClosureAccess().getRule(); - } - - //XShortClosure returns XExpression: - // =>({XClosure} (declaredFormalParameters+=JvmFormalParameter (',' declaredFormalParameters+=JvmFormalParameter)*)? explicitSyntax?='|') expression=XExpression; - public XbaseGrammarAccess.XShortClosureElements getXShortClosureAccess() { - return gaXbase.getXShortClosureAccess(); - } - - public ParserRule getXShortClosureRule() { - return getXShortClosureAccess().getRule(); - } - - //XParenthesizedExpression returns XExpression: - // '(' XExpression ')'; - public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() { - return gaXbase.getXParenthesizedExpressionAccess(); - } - - public ParserRule getXParenthesizedExpressionRule() { - return getXParenthesizedExpressionAccess().getRule(); - } - - //XIfExpression returns XExpression: - // {XIfExpression} - // 'if' '(' if=XExpression ')' - // then=XExpression - // (=>'else' else=XExpression)?; - public XbaseGrammarAccess.XIfExpressionElements getXIfExpressionAccess() { - return gaXbase.getXIfExpressionAccess(); - } - - public ParserRule getXIfExpressionRule() { - return getXIfExpressionAccess().getRule(); - } - - //XSwitchExpression returns XExpression: - // {XSwitchExpression} - // 'switch' (=>('(' declaredParam=JvmFormalParameter ':') switch=XExpression ')' - // | =>(declaredParam=JvmFormalParameter ':')? switch=XExpression) '{' - // (cases+=XCasePart)* - // ('default' ':' default=XExpression )? - // '}'; - public XbaseGrammarAccess.XSwitchExpressionElements getXSwitchExpressionAccess() { - return gaXbase.getXSwitchExpressionAccess(); - } - - public ParserRule getXSwitchExpressionRule() { - return getXSwitchExpressionAccess().getRule(); - } - - //XCasePart: - // {XCasePart} - // typeGuard=JvmTypeReference? ('case' case=XExpression)? - // (':' then=XExpression | fallThrough?=',') ; - public XbaseGrammarAccess.XCasePartElements getXCasePartAccess() { - return gaXbase.getXCasePartAccess(); - } - - public ParserRule getXCasePartRule() { - return getXCasePartAccess().getRule(); - } - - //XForLoopExpression returns XExpression: - // =>({XForLoopExpression} - // 'for' '(' declaredParam=JvmFormalParameter ':') forExpression=XExpression ')' - // eachExpression=XExpression; - public XbaseGrammarAccess.XForLoopExpressionElements getXForLoopExpressionAccess() { - return gaXbase.getXForLoopExpressionAccess(); - } - - public ParserRule getXForLoopExpressionRule() { - return getXForLoopExpressionAccess().getRule(); - } - - //XBasicForLoopExpression returns XExpression: - // {XBasicForLoopExpression} - // 'for' '('(initExpressions+=XExpressionOrVarDeclaration (',' initExpressions+=XExpressionOrVarDeclaration)*)? ';' - // expression=XExpression? ';' - // (updateExpressions+=XExpression (',' updateExpressions+=XExpression)*)? ')' - // eachExpression=XExpression; - public XbaseGrammarAccess.XBasicForLoopExpressionElements getXBasicForLoopExpressionAccess() { - return gaXbase.getXBasicForLoopExpressionAccess(); - } - - public ParserRule getXBasicForLoopExpressionRule() { - return getXBasicForLoopExpressionAccess().getRule(); - } - - //XWhileExpression returns XExpression: - // {XWhileExpression} - // 'while' '(' predicate=XExpression ')' - // body=XExpression; - public XbaseGrammarAccess.XWhileExpressionElements getXWhileExpressionAccess() { - return gaXbase.getXWhileExpressionAccess(); - } - - public ParserRule getXWhileExpressionRule() { - return getXWhileExpressionAccess().getRule(); - } - - //XDoWhileExpression returns XExpression: - // {XDoWhileExpression} - // 'do' - // body=XExpression - // 'while' '(' predicate=XExpression ')'; - public XbaseGrammarAccess.XDoWhileExpressionElements getXDoWhileExpressionAccess() { - return gaXbase.getXDoWhileExpressionAccess(); - } - - public ParserRule getXDoWhileExpressionRule() { - return getXDoWhileExpressionAccess().getRule(); - } - - //XBlockExpression returns XExpression: - // {XBlockExpression} - // '{' - // (expressions+=XExpressionOrVarDeclaration ';'?)* - // '}'; - public XbaseGrammarAccess.XBlockExpressionElements getXBlockExpressionAccess() { - return gaXbase.getXBlockExpressionAccess(); - } - - public ParserRule getXBlockExpressionRule() { - return getXBlockExpressionAccess().getRule(); - } - - //XExpressionOrVarDeclaration returns XExpression: - // XVariableDeclaration | XExpression; - public XbaseGrammarAccess.XExpressionOrVarDeclarationElements getXExpressionOrVarDeclarationAccess() { - return gaXbase.getXExpressionOrVarDeclarationAccess(); - } - - public ParserRule getXExpressionOrVarDeclarationRule() { - return getXExpressionOrVarDeclarationAccess().getRule(); - } - - //XVariableDeclaration returns XExpression: - // {XVariableDeclaration} - // (writeable?='var'|'val') (=>(type=JvmTypeReference name=ValidID) | name=ValidID) ('=' right=XExpression)?; - public XbaseGrammarAccess.XVariableDeclarationElements getXVariableDeclarationAccess() { - return gaXbase.getXVariableDeclarationAccess(); - } - - public ParserRule getXVariableDeclarationRule() { - return getXVariableDeclarationAccess().getRule(); - } - - //JvmFormalParameter returns types::JvmFormalParameter: - // (parameterType=JvmTypeReference)? name=ValidID; - public XbaseGrammarAccess.JvmFormalParameterElements getJvmFormalParameterAccess() { - return gaXbase.getJvmFormalParameterAccess(); - } - - public ParserRule getJvmFormalParameterRule() { - return getJvmFormalParameterAccess().getRule(); - } - - //FullJvmFormalParameter returns types::JvmFormalParameter: - // parameterType=JvmTypeReference name=ValidID; - public XbaseGrammarAccess.FullJvmFormalParameterElements getFullJvmFormalParameterAccess() { - return gaXbase.getFullJvmFormalParameterAccess(); - } - - public ParserRule getFullJvmFormalParameterRule() { - return getFullJvmFormalParameterAccess().getRule(); - } - - //XFeatureCall returns XExpression: - // {XFeatureCall} - // ('<' typeArguments+=JvmArgumentTypeReference (',' typeArguments+=JvmArgumentTypeReference)* '>')? - // feature=[types::JvmIdentifiableElement|IdOrSuper] - // (=>explicitOperationCall?='(' - // ( - // featureCallArguments+=XShortClosure - // | featureCallArguments+=XExpression (',' featureCallArguments+=XExpression)* - // )? - // ')')? - // featureCallArguments+=XClosure?; - public XbaseGrammarAccess.XFeatureCallElements getXFeatureCallAccess() { - return gaXbase.getXFeatureCallAccess(); - } - - public ParserRule getXFeatureCallRule() { - return getXFeatureCallAccess().getRule(); - } - - //FeatureCallID: - // ValidID | 'extends' | 'static' | 'import' | 'extension' - //; - public XbaseGrammarAccess.FeatureCallIDElements getFeatureCallIDAccess() { - return gaXbase.getFeatureCallIDAccess(); - } - - public ParserRule getFeatureCallIDRule() { - return getFeatureCallIDAccess().getRule(); - } - - //IdOrSuper : - // FeatureCallID | 'super' - //; - public XbaseGrammarAccess.IdOrSuperElements getIdOrSuperAccess() { - return gaXbase.getIdOrSuperAccess(); - } - - public ParserRule getIdOrSuperRule() { - return getIdOrSuperAccess().getRule(); - } - - //XConstructorCall returns XExpression: - // {XConstructorCall} - // 'new' constructor=[types::JvmConstructor|QualifiedName] - // (=>'<' typeArguments+=JvmArgumentTypeReference (',' typeArguments+=JvmArgumentTypeReference)* '>')? - // (=>explicitConstructorCall?='(' - // ( - // arguments+=XShortClosure - // | arguments+=XExpression (',' arguments+=XExpression)* - // )? - // ')')? - // arguments+=XClosure?; - public XbaseGrammarAccess.XConstructorCallElements getXConstructorCallAccess() { - return gaXbase.getXConstructorCallAccess(); - } - - public ParserRule getXConstructorCallRule() { - return getXConstructorCallAccess().getRule(); - } - - //XBooleanLiteral returns XExpression : - // {XBooleanLiteral} ('false' | isTrue?='true'); - public XbaseGrammarAccess.XBooleanLiteralElements getXBooleanLiteralAccess() { - return gaXbase.getXBooleanLiteralAccess(); - } - - public ParserRule getXBooleanLiteralRule() { - return getXBooleanLiteralAccess().getRule(); - } - - //XNullLiteral returns XExpression : - // {XNullLiteral} 'null'; - public XbaseGrammarAccess.XNullLiteralElements getXNullLiteralAccess() { - return gaXbase.getXNullLiteralAccess(); - } - - public ParserRule getXNullLiteralRule() { - return getXNullLiteralAccess().getRule(); - } - - //XNumberLiteral returns XExpression : - // {XNumberLiteral} value=Number; - public XbaseGrammarAccess.XNumberLiteralElements getXNumberLiteralAccess() { - return gaXbase.getXNumberLiteralAccess(); - } - - public ParserRule getXNumberLiteralRule() { - return getXNumberLiteralAccess().getRule(); - } - - //XStringLiteral returns XExpression: - // {XStringLiteral} value=STRING; - public XbaseGrammarAccess.XStringLiteralElements getXStringLiteralAccess() { - return gaXbase.getXStringLiteralAccess(); - } - - public ParserRule getXStringLiteralRule() { - return getXStringLiteralAccess().getRule(); - } - - //XTypeLiteral returns XExpression : - // {XTypeLiteral} 'typeof' '(' type=[types::JvmType|QualifiedName] (arrayDimensions+=ArrayBrackets)* ')' - //; - public XbaseGrammarAccess.XTypeLiteralElements getXTypeLiteralAccess() { - return gaXbase.getXTypeLiteralAccess(); - } - - public ParserRule getXTypeLiteralRule() { - return getXTypeLiteralAccess().getRule(); - } - - //XThrowExpression returns XExpression : - // {XThrowExpression} 'throw' expression=XExpression; - public XbaseGrammarAccess.XThrowExpressionElements getXThrowExpressionAccess() { - return gaXbase.getXThrowExpressionAccess(); - } - - public ParserRule getXThrowExpressionRule() { - return getXThrowExpressionAccess().getRule(); - } - - //XReturnExpression returns XExpression : - // {XReturnExpression} 'return' (->expression=XExpression)?; - public XbaseGrammarAccess.XReturnExpressionElements getXReturnExpressionAccess() { - return gaXbase.getXReturnExpressionAccess(); - } - - public ParserRule getXReturnExpressionRule() { - return getXReturnExpressionAccess().getRule(); - } - - //XTryCatchFinallyExpression returns XExpression: - // {XTryCatchFinallyExpression} - // 'try' - // expression=XExpression - // ( - // catchClauses+=XCatchClause+ - // (=>'finally' finallyExpression=XExpression)? - // | 'finally' finallyExpression=XExpression - // ); - public XbaseGrammarAccess.XTryCatchFinallyExpressionElements getXTryCatchFinallyExpressionAccess() { - return gaXbase.getXTryCatchFinallyExpressionAccess(); - } - - public ParserRule getXTryCatchFinallyExpressionRule() { - return getXTryCatchFinallyExpressionAccess().getRule(); - } - - //XSynchronizedExpression returns XExpression: - // =>({XSynchronizedExpression} - // 'synchronized' '(') param=XExpression ')' expression=XExpression; - public XbaseGrammarAccess.XSynchronizedExpressionElements getXSynchronizedExpressionAccess() { - return gaXbase.getXSynchronizedExpressionAccess(); - } - - public ParserRule getXSynchronizedExpressionRule() { - return getXSynchronizedExpressionAccess().getRule(); - } - - //XCatchClause : - // =>'catch' '(' declaredParam=FullJvmFormalParameter ')' expression=XExpression; - public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() { - return gaXbase.getXCatchClauseAccess(); - } - - public ParserRule getXCatchClauseRule() { - return getXCatchClauseAccess().getRule(); - } - - //@Override - //QualifiedName: - // ValidID (=>'.' ValidID)*; - public XbaseGrammarAccess.QualifiedNameElements getQualifiedNameAccess() { - return gaXbase.getQualifiedNameAccess(); - } - - public ParserRule getQualifiedNameRule() { - return getQualifiedNameAccess().getRule(); - } - - //Number hidden(): - // HEX | (INT | DECIMAL) ('.' (INT | DECIMAL))?; - public XbaseGrammarAccess.NumberElements getNumberAccess() { - return gaXbase.getNumberAccess(); - } - - public ParserRule getNumberRule() { - return getNumberAccess().getRule(); - } - - ///** - // * Dummy rule, for "better" downwards compatibility, since GrammarAccess generates non-static inner classes, - // * which makes downstream grammars break on classloading, when a rule is removed. - // */ - //StaticQualifier: - // (ValidID '::')+ - //; - public XbaseGrammarAccess.StaticQualifierElements getStaticQualifierAccess() { - return gaXbase.getStaticQualifierAccess(); - } - - public ParserRule getStaticQualifierRule() { - return getStaticQualifierAccess().getRule(); - } - - //terminal HEX: - // ('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F'|'_')+ - // ('#' (('b'|'B')('i'|'I') | ('l'|'L')))?; - public TerminalRule getHEXRule() { - return gaXbase.getHEXRule(); - } - - //terminal INT returns ecore::EInt: - // '0'..'9' ('0'..'9'|'_')*; - public TerminalRule getINTRule() { - return gaXbase.getINTRule(); - } - - //terminal DECIMAL: - // INT - // (('e'|'E') ('+'|'-')? INT)? - // (('b'|'B')('i'|'I'|'d'|'D') | ('l'|'L'|'d'|'D'|'f'|'F'))?; - public TerminalRule getDECIMALRule() { - return gaXbase.getDECIMALRule(); - } - - //JvmTypeReference: - // JvmParameterizedTypeReference =>({JvmGenericArrayTypeReference.componentType=current} ArrayBrackets)* - // | XFunctionTypeRef; - public XtypeGrammarAccess.JvmTypeReferenceElements getJvmTypeReferenceAccess() { - return gaXtype.getJvmTypeReferenceAccess(); - } - - public ParserRule getJvmTypeReferenceRule() { - return getJvmTypeReferenceAccess().getRule(); - } - - //ArrayBrackets : - // '[' ']' - //; - public XtypeGrammarAccess.ArrayBracketsElements getArrayBracketsAccess() { - return gaXtype.getArrayBracketsAccess(); - } - - public ParserRule getArrayBracketsRule() { - return getArrayBracketsAccess().getRule(); - } - - //XFunctionTypeRef: - // ('(' (paramTypes+=JvmTypeReference (',' paramTypes+=JvmTypeReference)*)? ')')? '=>' returnType=JvmTypeReference; - public XtypeGrammarAccess.XFunctionTypeRefElements getXFunctionTypeRefAccess() { - return gaXtype.getXFunctionTypeRefAccess(); - } - - public ParserRule getXFunctionTypeRefRule() { - return getXFunctionTypeRefAccess().getRule(); - } - - //JvmParameterizedTypeReference: - // type=[JvmType|QualifiedName] ( - // =>'<' arguments+=JvmArgumentTypeReference (',' arguments+=JvmArgumentTypeReference)* '>' - // (=>({JvmInnerTypeReference.outer=current} '.') type=[JvmType|ValidID] (=>'<' arguments+=JvmArgumentTypeReference (',' arguments+=JvmArgumentTypeReference)* '>')?)* - // )?; - public XtypeGrammarAccess.JvmParameterizedTypeReferenceElements getJvmParameterizedTypeReferenceAccess() { - return gaXtype.getJvmParameterizedTypeReferenceAccess(); - } - - public ParserRule getJvmParameterizedTypeReferenceRule() { - return getJvmParameterizedTypeReferenceAccess().getRule(); - } - - //JvmArgumentTypeReference returns JvmTypeReference: - // JvmTypeReference | JvmWildcardTypeReference; - public XtypeGrammarAccess.JvmArgumentTypeReferenceElements getJvmArgumentTypeReferenceAccess() { - return gaXtype.getJvmArgumentTypeReferenceAccess(); - } - - public ParserRule getJvmArgumentTypeReferenceRule() { - return getJvmArgumentTypeReferenceAccess().getRule(); - } - - //JvmWildcardTypeReference: - // {JvmWildcardTypeReference} '?' ( - // constraints+=JvmUpperBound (constraints+=JvmUpperBoundAnded)* - // | constraints+=JvmLowerBound (constraints+=JvmLowerBoundAnded)* - // )?; - public XtypeGrammarAccess.JvmWildcardTypeReferenceElements getJvmWildcardTypeReferenceAccess() { - return gaXtype.getJvmWildcardTypeReferenceAccess(); - } - - public ParserRule getJvmWildcardTypeReferenceRule() { - return getJvmWildcardTypeReferenceAccess().getRule(); - } - - //JvmUpperBound : - // 'extends' typeReference=JvmTypeReference; - public XtypeGrammarAccess.JvmUpperBoundElements getJvmUpperBoundAccess() { - return gaXtype.getJvmUpperBoundAccess(); - } - - public ParserRule getJvmUpperBoundRule() { - return getJvmUpperBoundAccess().getRule(); - } - - //JvmUpperBoundAnded returns JvmUpperBound: - // '&' typeReference=JvmTypeReference; - public XtypeGrammarAccess.JvmUpperBoundAndedElements getJvmUpperBoundAndedAccess() { - return gaXtype.getJvmUpperBoundAndedAccess(); - } - - public ParserRule getJvmUpperBoundAndedRule() { - return getJvmUpperBoundAndedAccess().getRule(); - } - - //JvmLowerBound : - // 'super' typeReference=JvmTypeReference; - public XtypeGrammarAccess.JvmLowerBoundElements getJvmLowerBoundAccess() { - return gaXtype.getJvmLowerBoundAccess(); - } - - public ParserRule getJvmLowerBoundRule() { - return getJvmLowerBoundAccess().getRule(); - } - - //JvmLowerBoundAnded returns JvmLowerBound: - // '&' typeReference=JvmTypeReference; - public XtypeGrammarAccess.JvmLowerBoundAndedElements getJvmLowerBoundAndedAccess() { - return gaXtype.getJvmLowerBoundAndedAccess(); - } - - public ParserRule getJvmLowerBoundAndedRule() { - return getJvmLowerBoundAndedAccess().getRule(); - } - - //JvmTypeParameter : - // name=ValidID - // (constraints+=JvmUpperBound (constraints+=JvmUpperBoundAnded)*)?; - public XtypeGrammarAccess.JvmTypeParameterElements getJvmTypeParameterAccess() { - return gaXtype.getJvmTypeParameterAccess(); - } - - public ParserRule getJvmTypeParameterRule() { - return getJvmTypeParameterAccess().getRule(); - } - - //QualifiedNameWithWildcard : - // QualifiedName '.' '*'; - public XtypeGrammarAccess.QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { - return gaXtype.getQualifiedNameWithWildcardAccess(); - } - - public ParserRule getQualifiedNameWithWildcardRule() { - return getQualifiedNameWithWildcardAccess().getRule(); - } - - //ValidID: - // ID; - public XtypeGrammarAccess.ValidIDElements getValidIDAccess() { - return gaXtype.getValidIDAccess(); - } - - public ParserRule getValidIDRule() { - return getValidIDAccess().getRule(); - } - - //XImportSection: - // importDeclarations+=XImportDeclaration+; - public XtypeGrammarAccess.XImportSectionElements getXImportSectionAccess() { - return gaXtype.getXImportSectionAccess(); - } - - public ParserRule getXImportSectionRule() { - return getXImportSectionAccess().getRule(); - } - - //XImportDeclaration: - // 'import' ( - // (static?='static' extension?='extension'? importedType=[JvmDeclaredType|QualifiedNameInStaticImport] (wildcard?='*' | memberName=ValidID)) - // | importedType=[JvmDeclaredType|QualifiedName] - // | importedNamespace=QualifiedNameWithWildcard) ';'? - //; - public XtypeGrammarAccess.XImportDeclarationElements getXImportDeclarationAccess() { - return gaXtype.getXImportDeclarationAccess(); - } - - public ParserRule getXImportDeclarationRule() { - return getXImportDeclarationAccess().getRule(); - } - - //QualifiedNameInStaticImport: - // (ValidID '.')+ - //; - public XtypeGrammarAccess.QualifiedNameInStaticImportElements getQualifiedNameInStaticImportAccess() { - return gaXtype.getQualifiedNameInStaticImportAccess(); - } - - public ParserRule getQualifiedNameInStaticImportRule() { - return getQualifiedNameInStaticImportAccess().getRule(); - } - - //terminal ID: - // '^'? ('a'..'z'|'A'..'Z'|'$'|'_') ('a'..'z'|'A'..'Z'|'$'|'_'|'0'..'9')*; - public TerminalRule getIDRule() { - return gaXtype.getIDRule(); - } - - //terminal STRING: - // '"' ( '\\' . /* ('b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\') */ | !('\\'|'"') )* '"'? | - // "'" ( '\\' . /* ('b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\') */ | !('\\'|"'") )* "'"?; - public TerminalRule getSTRINGRule() { - return gaXtype.getSTRINGRule(); - } - - //terminal ML_COMMENT: '/*' -> '*/'; - public TerminalRule getML_COMMENTRule() { - return gaXtype.getML_COMMENTRule(); - } - - //terminal SL_COMMENT: '//' !('\n'|'\r')* ('\r'? '\n')?; - public TerminalRule getSL_COMMENTRule() { - return gaXtype.getSL_COMMENTRule(); - } - - //terminal WS: (' '|'\t'|'\r'|'\n')+; - public TerminalRule getWSRule() { - return gaXtype.getWSRule(); - } - - //terminal ANY_OTHER: .; - public TerminalRule getANY_OTHERRule() { - return gaXtype.getANY_OTHERRule(); - } -} diff --git a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/validation/AbstractEntitiesValidator.java b/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/validation/AbstractEntitiesValidator.java deleted file mode 100644 index bd0362d28a3..00000000000 --- a/org.eclipse.xtext.web.example.entities/src-gen/org/eclipse/xtext/web/example/entities/validation/AbstractEntitiesValidator.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.validation; - -import java.util.ArrayList; -import java.util.List; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.xbase.validation.XbaseValidator; - -public abstract class AbstractEntitiesValidator extends XbaseValidator { - - @Override - protected List getEPackages() { - List result = new ArrayList(super.getEPackages()); - result.add(org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage.eINSTANCE); - result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/xtext/xbase/Xbase")); - result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/xtext/common/JavaVMTypes")); - result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.eclipse.org/xtext/xbase/Xtype")); - return result; - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/Entities.xtext b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/Entities.xtext deleted file mode 100644 index 78fc9875ac8..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/Entities.xtext +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2009, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -grammar org.eclipse.xtext.web.example.entities.Entities with org.eclipse.xtext.xbase.Xbase - -generate domainmodel "http://www.xtext.org/example/Entities" - -Entities: - importSection=XImportSection? - elements+=AbstractElement*; - -AbstractElement: - PackageDeclaration | Entity; - -PackageDeclaration: - 'package' name=QualifiedName '{' - elements+=AbstractElement* - '}'; - -Entity: - 'entity' name=ValidID ('extends' superType=JvmParameterizedTypeReference)? '{' - features+=Feature* - '}'; - -Feature: - Property | Operation; - -Property: - name=ValidID ':' type=JvmTypeReference; - -Operation: - 'op' name=ValidID '(' (params+=FullJvmFormalParameter (',' params+=FullJvmFormalParameter)*)? ')' (':' type=JvmTypeReference)? - body=XBlockExpression; diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/EntitiesRuntimeModule.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/EntitiesRuntimeModule.java deleted file mode 100644 index 6c3c9ce6014..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/EntitiesRuntimeModule.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities; - -import org.eclipse.xtext.web.example.entities.jvmmodel.EntitiesJvmModelInferrer; -import org.eclipse.xtext.xbase.jvmmodel.IJvmModelInferrer; - -/** - * Use this class to register components to be used at runtime / without the - * Equinox extension registry. - */ -public class EntitiesRuntimeModule extends AbstractEntitiesRuntimeModule { - public Class bindIJvmModelInferrer() { - return EntitiesJvmModelInferrer.class; - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/EntitiesStandaloneSetup.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/EntitiesStandaloneSetup.java deleted file mode 100644 index 15206451b96..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/EntitiesStandaloneSetup.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities; - - -/** - * Initialization support for running Xtext languages without Equinox extension registry. - */ -public class EntitiesStandaloneSetup extends EntitiesStandaloneSetupGenerated { - - public static void doSetup() { - new EntitiesStandaloneSetup().createInjectorAndDoEMFRegistration(); - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/GenerateEntities.mwe2 b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/GenerateEntities.mwe2 deleted file mode 100644 index 641607ab1be..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/GenerateEntities.mwe2 +++ /dev/null @@ -1,124 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -module org.eclipse.xtext.web.example.entities.GenerateEntities - -import org.eclipse.xtext.xtext.generator.* -import org.eclipse.xtext.xtext.generator.model.project.* - -var rootPath = ".." -var baseName = "org.eclipse.xtext.web.example.entities" - -Workflow { - - component = XtextGenerator { - configuration = EntitiesGeneratorModule { - project = StandardProjectConfig { - rootPath = rootPath - baseName = baseName - genericIde = { - enabled = true - } - web = { - enabled = true - root = "../org.eclipse.xtext.web.example.jetty" - src = "../org.eclipse.xtext.web.example.jetty/src/main/java" - srcGen = "../org.eclipse.xtext.web.example.jetty/src/main/xtext-gen" - assets = "../org.eclipse.xtext.web.example.jetty/src/main/webapp" - } - runtimeTest = { - enabled = true - root = "../org.eclipse.xtext.xbase.web" - src = "../org.eclipse.xtext.xbase.web/src/test/java" - srcGen = "../org.eclipse.xtext.xbase.web/src/test/xtext-gen" - } - } - code = { - preferXtendStubs = false - encoding = "ISO-8859-1" - fileHeader = -"/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/" - } - } - cleaner = { - exclude = "AbstractStatemachineWebModule.java" - } - language = { - grammarUri = "classpath:/org/eclipse/xtext/web/example/entities/Entities.xtext" - fileExtensions = "entities" - referencedResource = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel" - - // Java API to access grammar elements (required by several other fragments) - fragment = grammarAccess.GrammarAccessFragment2 {} - - // generates Java API for the generated EPackages - fragment = ecore.EMFGeneratorFragment2 {} - - fragment = serializer.SerializerFragment2 { - generateStub = true - } - - // a custom ResourceFactory for use with EMF - fragment = resourceFactory.ResourceFactoryFragment2 {} - - // The antlr parser generator fragment. - fragment = parser.antlr.XtextAntlrGeneratorFragment2 { - } - - // Xtend-based API for validation - fragment = validation.ValidatorFragment2 { - //composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" - } - - // scoping and exporting API - fragment = scoping.ImportNamespacesScopingFragment2 {} - fragment = exporting.QualifiedNamesFragment2 {} - - // generator API - fragment = generator.GeneratorFragment2 {} - - // formatter API - fragment = formatting.Formatter2Fragment2 { - generateXtendStub = false - } - - // testing API - fragment = junit.JUnitFragment { - generateStub = false - } - - // Xbase support - fragment = types.TypesGeneratorFragment2 {} - fragment = xbase.XbaseGeneratorFragment2 { - generateXtendInferrer = false - } - fragment = xbase.XtypeGeneratorFragment2 {} - - // JavaScript-based syntax highlighting - fragment = web.WebIntegrationFragment { - framework = "Orion" - highlightingPath = "xtext/entities-syntax.js" - } - fragment = web.WebIntegrationFragment { - framework = "Ace" - highlightingPath = "xtext/ace-mode-entities.js" - } - fragment = web.WebIntegrationFragment { - framework = "CodeMirror" - highlightingPath = "xtext/cm-mode-entities.js" - } - } - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/formatting2/EntitiesFormatter.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/formatting2/EntitiesFormatter.java deleted file mode 100644 index e9d84803629..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/formatting2/EntitiesFormatter.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Copyright (c) 2015, 2022 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.formatting2; - -import org.eclipse.xtext.common.types.JvmFormalParameter; -import org.eclipse.xtext.formatting2.IFormattableDocument; -import org.eclipse.xtext.formatting2.IHiddenRegionFormatter; -import org.eclipse.xtext.formatting2.regionaccess.ISemanticRegion; -import org.eclipse.xtext.web.example.entities.domainmodel.AbstractElement; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entities; -import org.eclipse.xtext.web.example.entities.domainmodel.Entity; -import org.eclipse.xtext.web.example.entities.domainmodel.Feature; -import org.eclipse.xtext.web.example.entities.domainmodel.Operation; -import org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration; -import org.eclipse.xtext.web.example.entities.domainmodel.Property; -import org.eclipse.xtext.xbase.formatting2.XbaseFormatter; -import org.eclipse.xtext.xbase.lib.Extension; - -public class EntitiesFormatter extends XbaseFormatter { - protected void _format(Entities entities, @Extension IFormattableDocument document) { - document.append(document.prepend(entities, (IHiddenRegionFormatter it) -> { - it.setNewLines(0, 0, 1); - it.noSpace(); - }), this::newLine); - format(entities.getImportSection(), document); - for (AbstractElement element : entities.getElements()) { - format(element, document); - } - } - - protected void _format(PackageDeclaration pkg, @Extension IFormattableDocument document) { - ISemanticRegion open = regionFor(pkg).keyword("{"); - ISemanticRegion close = regionFor(pkg).keyword("}"); - document.surround(regionFor(pkg).feature(DomainmodelPackage.Literals.ABSTRACT_ELEMENT__NAME), this::oneSpace); - document.append(open, this::newLine); - document.interior(open, close, this::indent); - for (AbstractElement element : pkg.getElements()) { - document.format(element); - document.append(element, (IHiddenRegionFormatter it) -> it.setNewLines(1, 1, 2)); - } - } - - protected void _format(Entity entity, IFormattableDocument document) { - ISemanticRegion open = regionFor(entity).keyword("{"); - ISemanticRegion close = regionFor(entity).keyword("}"); - document.surround(regionFor(entity).feature(DomainmodelPackage.Literals.ABSTRACT_ELEMENT__NAME), - this::oneSpace); - document.surround(entity.getSuperType(), this::oneSpace); - document.append(open, this::newLine); - document.interior(open, close, this::indent); - format(entity.getSuperType(), document); - for (Feature feature : entity.getFeatures()) { - document.format(feature); - document.append(feature, (IHiddenRegionFormatter it) -> it.setNewLines(1, 1, 2)); - } - } - - protected void _format(Property property, IFormattableDocument document) { - document.surround(regionFor(property).keyword(":"), this::noSpace); - document.format(property.getType()); - } - - protected void _format(Operation operation, IFormattableDocument document) { - document.append(regionFor(operation).keyword("op"), this::oneSpace); - document.surround(regionFor(operation).keyword("("), this::noSpace); - if (!operation.getParams().isEmpty()) { - for (ISemanticRegion comma : regionFor(operation).keywords(",")) { - document.append(document.prepend(comma, this::noSpace), this::oneSpace); - } - for (JvmFormalParameter params : operation.getParams()) { - document.format(params); - } - document.prepend(regionFor(operation).keyword(")"), this::noSpace); - } - if (operation.getType() != null) { - document.append(regionFor(operation).keyword(")"), this::noSpace); - document.append(document.prepend(operation.getType(), this::noSpace), this::oneSpace); - document.format(operation.getType()); - } else { - document.append(regionFor(operation).keyword(")"), this::oneSpace); - } - document.format(operation.getBody()); - } - - public void format(Object object, IFormattableDocument document) { - formatUsingPolymorphicDispatcher(object, document); - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/jvmmodel/EntitiesJvmModelHelper.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/jvmmodel/EntitiesJvmModelHelper.java deleted file mode 100644 index 2811a5427df..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/jvmmodel/EntitiesJvmModelHelper.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.jvmmodel; - -import com.google.common.collect.HashMultimap; -import com.google.common.collect.Multimap; -import com.google.inject.Inject; -import java.util.Collection; -import java.util.List; -import java.util.function.Consumer; -import org.eclipse.xtext.common.types.JvmDeclaredType; -import org.eclipse.xtext.common.types.JvmOperation; -import org.eclipse.xtext.xbase.typesystem.override.IResolvedOperation; -import org.eclipse.xtext.xbase.typesystem.override.OverrideHelper; - -/** - * @author Lorenzo Bettini - Initial contribution and API, https://github.com/eclipse/xtext-eclipse/issues/1205 - */ -public class EntitiesJvmModelHelper { - - @Inject - private OverrideHelper overrideHelper; - - /** - * Detects duplicated {@link JvmOperation}s in the passed {@link JvmDeclaredType} taking into consideration overloading and type - * erasure; each collection of duplicates is passed to the consumer. - */ - public void handleDuplicateJvmOperations(JvmDeclaredType jvmDeclaredType, Consumer> consumer) { - // takes into consideration overloading and type erasure - List methods = overrideHelper.getResolvedFeatures(jvmDeclaredType).getDeclaredOperations(); - Multimap signature2Declarations = HashMultimap.create(); - - methods.forEach(method -> signature2Declarations.put(method.getResolvedErasureSignature(), method.getDeclaration())); - - signature2Declarations.asMap().values().forEach(jvmOperations -> { - if (jvmOperations.size() > 1) { - consumer.accept(jvmOperations); - } - }); - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/jvmmodel/EntitiesJvmModelInferrer.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/jvmmodel/EntitiesJvmModelInferrer.java deleted file mode 100644 index 290eba43ec3..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/jvmmodel/EntitiesJvmModelInferrer.java +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Copyright (c) 2015, 2022 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.entities.jvmmodel; - -import java.util.Arrays; -import java.util.Collection; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtend2.lib.StringConcatenationClient; -import org.eclipse.xtext.common.types.JvmConstructor; -import org.eclipse.xtext.common.types.JvmDeclaredType; -import org.eclipse.xtext.common.types.JvmField; -import org.eclipse.xtext.common.types.JvmFormalParameter; -import org.eclipse.xtext.common.types.JvmGenericType; -import org.eclipse.xtext.common.types.JvmOperation; -import org.eclipse.xtext.common.types.JvmTypeReference; -import org.eclipse.xtext.naming.IQualifiedNameProvider; -import org.eclipse.xtext.web.example.entities.domainmodel.Entity; -import org.eclipse.xtext.web.example.entities.domainmodel.Feature; -import org.eclipse.xtext.web.example.entities.domainmodel.Operation; -import org.eclipse.xtext.web.example.entities.domainmodel.Property; -import org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer; -import org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor; -import org.eclipse.xtext.xbase.jvmmodel.IJvmModelAssociations; -import org.eclipse.xtext.xbase.jvmmodel.JvmTypesBuilder; -import org.eclipse.xtext.xbase.lib.Procedures.Procedure1; - -import com.google.common.collect.Iterables; -import com.google.inject.Inject; - -public class EntitiesJvmModelInferrer extends AbstractModelInferrer { - @Inject - private JvmTypesBuilder jvmTypesBuilder; - - @Inject - private IQualifiedNameProvider qualifiedNameProvider; - - @Inject - private EntitiesJvmModelHelper entitiesJvmModelHelper; - - @Inject - private IJvmModelAssociations jvmModelAssociations; - - protected void _infer(Entity entity, IJvmDeclaredTypeAcceptor acceptor, boolean prelinkingPhase) { - acceptor.accept(jvmTypesBuilder.toClass(entity, qualifiedNameProvider.getFullyQualifiedName(entity)), - (JvmGenericType it) -> { - jvmTypesBuilder.setDocumentation(it, jvmTypesBuilder.getDocumentation(entity)); - if (entity.getSuperType() != null) { - it.getSuperTypes().add(jvmTypesBuilder.cloneWithProxies(entity.getSuperType())); - } - // let's add a default constructor - it.getMembers().add(jvmTypesBuilder.toConstructor(entity, c -> { - })); - // and one which can be called with a lambda for initialization. - JvmTypeReference procedureType = this._typeReferenceBuilder.typeRef(Procedure1.class, - this._typeReferenceBuilder.typeRef(it));/* Procedure */ - it.getMembers().add(jvmTypesBuilder.toConstructor(entity, (JvmConstructor c) -> { - c.getParameters().add(jvmTypesBuilder.toParameter(entity, "initializer", procedureType)); - // here we implement the body using black box Java code. - jvmTypesBuilder.setBody(c, new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation b) { - b.append("initializer.apply(this);"); - b.newLine(); - } - }); - })); - // now let's go over the features - for (Feature f : entity.getFeatures()) { - if (f instanceof Property) { - // for properties we create a field, a getter and a setter - JvmField field = jvmTypesBuilder.toField(f, ((Property) f).getName(), - ((Property) f).getType()); - it.getMembers().add(field); - it.getMembers().add( - jvmTypesBuilder.toGetter(f, ((Property) f).getName(), ((Property) f).getType())); - it.getMembers().add( - jvmTypesBuilder.toSetter(f, ((Property) f).getName(), ((Property) f).getType())); - } else if (f instanceof Operation) { - // operations are mapped to methods - JvmTypeReference operationType = null; - if (((Operation) f).getType() != null) { - operationType = ((Operation) f).getType(); - } else { - operationType = jvmTypesBuilder.inferredType(); - } - it.getMembers().add(jvmTypesBuilder.toMethod(f, ((Operation) f).getName(), operationType, - (JvmOperation o) -> { - jvmTypesBuilder.setDocumentation(o, jvmTypesBuilder.getDocumentation(f)); - for (JvmFormalParameter p : ((Operation) f).getParams()) { - o.getParameters().add( - jvmTypesBuilder.toParameter(p, p.getName(), p.getParameterType())); - } - // here the body is implemented using a user expression. - // Note that by doing this we set the expression into the context of this - // method, - // The parameters, 'this' and all the members of this method will be visible for - // the expression. - jvmTypesBuilder.setBody(o, ((Operation) f).getBody()); - })); - } - } - // remove created getters/setters in case they - // are explicit in the source code - removeDuplicateGettersSetters(it); - // finally we want to have a nice toString methods. - it.getMembers().add(jvmTypesBuilder.toToStringMethod(entity, it)); - }); - } - - private void removeDuplicateGettersSetters(JvmDeclaredType inferredType) { - entitiesJvmModelHelper.handleDuplicateJvmOperations(inferredType, (Collection jvmOperations) -> { - // we only remove getters/setters we created automatically - JvmOperation getterOrSetter = Iterables.getFirst(Iterables.filter(jvmOperations, - it -> jvmModelAssociations.getPrimarySourceElement(it) instanceof Property), null); - if (getterOrSetter != null) { - inferredType.getMembers().remove(getterOrSetter); - } - // other duplicated methods will be reported by the validator - }); - } - - public void infer(EObject entity, IJvmDeclaredTypeAcceptor acceptor, boolean prelinkingPhase) { - if (entity instanceof Entity) { - _infer((Entity) entity, acceptor, prelinkingPhase); - return; - } else if (entity != null) { - _infer(entity, acceptor, prelinkingPhase); - return; - } else { - throw new IllegalArgumentException( - "Unhandled parameter types: " + Arrays.asList(entity, acceptor, prelinkingPhase).toString()); - } - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/scoping/EntitiesScopeProvider.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/scoping/EntitiesScopeProvider.java deleted file mode 100644 index 6b5f82dae55..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/scoping/EntitiesScopeProvider.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.scoping; - - -/** - * This class contains custom scoping description. - * - * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping - * on how and when to use it. - */ -public class EntitiesScopeProvider extends AbstractEntitiesScopeProvider { - -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/serializer/EntitiesSemanticSequencer.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/serializer/EntitiesSemanticSequencer.java deleted file mode 100644 index 2c49b6654b0..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/serializer/EntitiesSemanticSequencer.java +++ /dev/null @@ -1,13 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.serializer; - - -public class EntitiesSemanticSequencer extends AbstractEntitiesSemanticSequencer { -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/serializer/EntitiesSyntacticSequencer.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/serializer/EntitiesSyntacticSequencer.java deleted file mode 100644 index f41fa4bc367..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/serializer/EntitiesSyntacticSequencer.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.serializer; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; - -public class EntitiesSyntacticSequencer extends AbstractEntitiesSyntacticSequencer { - @Override - protected String getArrayBracketsToken(EObject semanticObject, RuleCall ruleCall, INode node) { - if (node != null) { - return this.getTokenText(node); - } - return "[]"; - } -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/validation/EntitiesValidator.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/validation/EntitiesValidator.java deleted file mode 100644 index e378a2451cf..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/validation/EntitiesValidator.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.validation; - -import org.eclipse.xtext.util.Strings; -import org.eclipse.xtext.validation.Check; -import org.eclipse.xtext.validation.ComposedChecks; -import org.eclipse.xtext.validation.ValidationMessageAcceptor; -import org.eclipse.xtext.web.example.entities.domainmodel.DomainmodelPackage; -import org.eclipse.xtext.web.example.entities.domainmodel.Entity; -import org.eclipse.xtext.web.example.entities.domainmodel.Feature; -import org.eclipse.xtext.web.example.entities.domainmodel.PackageDeclaration; -import org.eclipse.xtext.xbase.validation.JvmGenericTypeValidator; - -/** - * This class contains custom validation rules. - * - * See - * https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation - */ -@ComposedChecks(validators = JvmGenericTypeValidator.class) -public class EntitiesValidator extends AbstractEntitiesValidator { - - @Check - public void checkTypeNameStartsWithCapital(Entity entity) { - if (!Character.isUpperCase(entity.getName().charAt(0))) { - warning("Name should start with a capital", DomainmodelPackage.Literals.ABSTRACT_ELEMENT__NAME, - ValidationMessageAcceptor.INSIGNIFICANT_INDEX, IssueCodes.INVALID_TYPE_NAME, entity.getName()); - } - } - - @Check - public void checkFeatureNameStartsWithLowercase(Feature feature) { - if (!Character.isLowerCase(feature.getName().charAt(0))) { - warning("Name should start with a lowercase", DomainmodelPackage.Literals.FEATURE__NAME, - ValidationMessageAcceptor.INSIGNIFICANT_INDEX, IssueCodes.INVALID_FEATURE_NAME, feature.getName()); - } - } - - @Check - public void checkPackage(PackageDeclaration packages) { - if (Strings.isEmpty(packages.getName())) { - error("Name cannot be empty", DomainmodelPackage.Literals.ABSTRACT_ELEMENT__NAME); - } - if ("java".equals(packages.getName())) { - error("Invalid package name", DomainmodelPackage.Literals.ABSTRACT_ELEMENT__NAME); - } - } - -} diff --git a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/validation/IssueCodes.java b/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/validation/IssueCodes.java deleted file mode 100644 index 9af5012c340..00000000000 --- a/org.eclipse.xtext.web.example.entities/src/org/eclipse/xtext/web/example/entities/validation/IssueCodes.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.validation; - -/** - * @author miklossy - Initial contribution and API - */ -public interface IssueCodes { - - String PREFIX = "org.eclipse.xtext.example.domainmodel.domainmodel."; - - String INVALID_TYPE_NAME = PREFIX + "InvalidTypeName"; - - String INVALID_FEATURE_NAME = PREFIX + "InvalidFeatureName"; - - String MISSING_TYPE = PREFIX + "MissingType"; - -} diff --git a/org.eclipse.xtext.web.example.jetty/.classpath b/org.eclipse.xtext.web.example.jetty/.classpath deleted file mode 100644 index b4943fa1a1f..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.classpath +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.jetty/.gitignore b/org.eclipse.xtext.web.example.jetty/.gitignore deleted file mode 100644 index 567609b1234..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.gitignore +++ /dev/null @@ -1 +0,0 @@ -build/ diff --git a/org.eclipse.xtext.web.example.jetty/.project b/org.eclipse.xtext.web.example.jetty/.project deleted file mode 100644 index df230850340..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web.example.jetty - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web.example.jetty/.settings/.jsdtscope b/org.eclipse.xtext.web.example.jetty/.settings/.jsdtscope deleted file mode 100644 index eecc81b424c..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.settings/.jsdtscope +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 39f4e5a6ff2..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=ISO-8859-1 -encoding//src/main/xtext-gen=ISO-8859-1 -encoding/=ISO-8859-1 diff --git a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e77491258d4..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.wst.jsdt.ui.superType.container b/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4803..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.wst.jsdt.ui.superType.name b/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6ec2..00000000000 --- a/org.eclipse.xtext.web.example.jetty/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/pom.xml b/org.eclipse.xtext.web.example.jetty/pom.xml deleted file mode 100644 index a0251e1d0a8..00000000000 --- a/org.eclipse.xtext.web.example.jetty/pom.xml +++ /dev/null @@ -1,187 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - org.eclipse.xtext.nodeploy.parent - 2.44.0-SNAPSHOT - ../org.eclipse.xtext.nodeploy.parent - - org.eclipse.xtext.web.example.jetty - war - - - 12.1.8 - - - - - org.eclipse.xtext - org.eclipse.xtext.web.servlet - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.web.example.statemachine.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.web - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.web.example.entities.ide - ${project.version} - - - org.webjars - requirejs - 2.3.7 - - - org.webjars - requirejs-text - 2.0.15 - - - org.webjars - jquery - 3.6.0 - - - org.webjars - ace - 1.3.3 - - - org.webjars - codemirror - 5.41.0 - - - org.slf4j - slf4j-log4j12 - 1.7.33 - - - ch.qos.reload4j - reload4j - - - org.eclipse.jetty.ee10 - jetty-ee10-annotations - ${jetty-version} - provided - - - org.eclipse.jetty - jetty-rewrite - ${jetty-version} - provided - - - - - - - - org.apache.maven.plugins - maven-war-plugin - 3.4.0 - - - org.codehaus.mojo - exec-maven-plugin - - - web-example-jetty - - java - - verify - - org.eclipse.xtext.web.example.jetty.ServerLauncher - compile - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - add-sources - initialize - - add-source - - - - src/main/xtext-gen - - - - - - - org.codehaus.mojo - wagon-maven-plugin - 2.0.2 - - - download-orion - prepare-package - - download-single - - - - ${project.build.directory}/built-codeEdit.zip - true - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - unzip-orion - prepare-package - - run - - - - - - - - - zip-test-files - prepare-package - - run - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/log4j.properties b/org.eclipse.xtext.web.example.jetty/src/main/java/log4j.properties deleted file mode 100644 index d35c0a07f38..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/log4j.properties +++ /dev/null @@ -1,13 +0,0 @@ -# Log configuration for the example Xtext Web server. -# -# For your convenience: valid log levels are (from least to most significant): -# TRACE, DEBUG, INFO, WARN, ERROR and FATAL -# Log4J manual: http://logging.apache.org/log4j/1.2/manual.html - -log4j.rootLogger=INFO, default - -log4j.appender.default=org.apache.log4j.ConsoleAppender -log4j.appender.default.layout=org.apache.log4j.PatternLayout -log4j.appender.default.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n - -log4j.logger.org.eclipse.xtext.web=TRACE diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/EntitiesWebModule.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/EntitiesWebModule.java deleted file mode 100644 index c34f9068b36..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/EntitiesWebModule.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import org.eclipse.xtext.web.server.persistence.FileResourceHandler; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.web.server.persistence.IServerResourceHandler; - -import com.google.inject.Binder; - -/** - * Use this class to register additional components to be used within the web - * application. - */ -public class EntitiesWebModule extends AbstractEntitiesWebModule { - private IResourceBaseProvider resourceBaseProvider; - - public void configureResourceBaseProvider(Binder binder) { - if (resourceBaseProvider != null) { - binder.bind(IResourceBaseProvider.class).toInstance(resourceBaseProvider); - } - } - - public Class bindIServerResourceHandler() { - return FileResourceHandler.class; - } - - public EntitiesWebModule(IResourceBaseProvider resourceBaseProvider) { - this.resourceBaseProvider = resourceBaseProvider; - } -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/EntitiesWebSetup.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/EntitiesWebSetup.java deleted file mode 100644 index 8c7b4469089..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/EntitiesWebSetup.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.xtext.util.Modules2; -import org.eclipse.xtext.web.example.entities.EntitiesRuntimeModule; -import org.eclipse.xtext.web.example.entities.EntitiesStandaloneSetup; -import org.eclipse.xtext.web.example.entities.ide.EntitiesIdeModule; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; - -/** - * Initialization support for running Xtext languages in web applications. - */ -public class EntitiesWebSetup extends EntitiesStandaloneSetup { - - private final IResourceBaseProvider resourceBaseProvider; - - public EntitiesWebSetup(IResourceBaseProvider resourceBaseProvider) { - this.resourceBaseProvider = resourceBaseProvider; - } - - @Override - public Injector createInjector() { - EntitiesWebModule webModule = new EntitiesWebModule(this.resourceBaseProvider); - EntitiesRuntimeModule runtimeModule = new EntitiesRuntimeModule(); - EntitiesIdeModule ideModule = new EntitiesIdeModule(); - return Guice.createInjector(Modules2.mixin(runtimeModule, ideModule, webModule)); - } - -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/MyXtextServlet.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/MyXtextServlet.java deleted file mode 100644 index 73f2b186fa5..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/MyXtextServlet.java +++ /dev/null @@ -1,41 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import jakarta.servlet.ServletException; -import jakarta.servlet.annotation.WebServlet; -import org.eclipse.xtext.util.DisposableRegistry; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.web.server.persistence.ResourceBaseProviderImpl; -import org.eclipse.xtext.web.servlet.XtextServlet; - -@WebServlet(name = "Xtext Services", urlPatterns = "/xtext-service/*") -public class MyXtextServlet extends XtextServlet { - - private static final long serialVersionUID = 7755930570117246031L; - DisposableRegistry disposableRegistry; - - @Override - public void init() throws ServletException { - super.init(); - IResourceBaseProvider resourceBaseProvider = new ResourceBaseProviderImpl("./test-files"); - new StatemachineWebSetup(resourceBaseProvider).createInjectorAndDoEMFRegistration(); - new EntitiesWebSetup(resourceBaseProvider).createInjectorAndDoEMFRegistration(); - } - - @Override - public void destroy() { - if (disposableRegistry != null) { - disposableRegistry.dispose(); - disposableRegistry = null; - } - super.destroy(); - } - -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/ServerLauncher.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/ServerLauncher.java deleted file mode 100644 index 2395910b2ad..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/ServerLauncher.java +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import java.io.IOException; -import java.net.InetSocketAddress; -import java.nio.file.Path; -import java.util.List; - -import org.eclipse.jetty.ee10.annotations.AnnotationConfiguration; -import org.eclipse.jetty.rewrite.handler.RewriteHandler; -import org.eclipse.jetty.rewrite.handler.RewriteRegexRule; -import org.eclipse.jetty.server.Handler; -import org.eclipse.jetty.server.Server; -import org.eclipse.jetty.server.handler.ResourceHandler; -import org.eclipse.jetty.util.resource.ResourceFactory; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.eclipse.jetty.ee10.webapp.Configuration; -import org.eclipse.jetty.ee10.webapp.MetaInfConfiguration; -import org.eclipse.jetty.ee10.webapp.WebAppConfiguration; -import org.eclipse.jetty.ee10.webapp.WebAppContext; -import org.eclipse.jetty.ee10.webapp.WebInfConfiguration; -import org.eclipse.jetty.ee10.webapp.WebXmlConfiguration; - -public class ServerLauncher { - - private static final Logger LOG = LoggerFactory.getLogger(ServerLauncher.class); - - public static void main(String[] args) throws IOException { - Server server = new Server(new InetSocketAddress("localhost", 8080)); - RewriteHandler rewriteHandler = new RewriteHandler(); - server.setHandler(rewriteHandler); - RewriteRegexRule rule = new RewriteRegexRule(); - rule.setRegex("/xtext/@xtext-version-placeholder@/(.*)"); - rule.setReplacement("/xtext/$1"); - rule.setTerminating(false); - rewriteHandler.addRule(rule); - Handler.Sequence handlerList = new Handler.Sequence(); - ResourceHandler resourceHandler1 = new ResourceHandler(); - resourceHandler1.setBaseResource(ResourceFactory.of(resourceHandler1).newResource("src/main/webapp")); - resourceHandler1.setWelcomeFiles(List.of("index.html")); - - ResourceHandler resourceHandler2 = new ResourceHandler(); - Path jsPath = Path.of("../org.eclipse.xtext.web/src/main/js/") - .toRealPath(); - Path cssPath = Path.of("../org.eclipse.xtext.web/src/main/css") - .toRealPath(); - resourceHandler2.setBaseResource(ResourceFactory.of(resourceHandler2).newResource(cssPath)); - - WebAppContext webAppContext = new WebAppContext(); - webAppContext.setBaseResource(ResourceFactory.of(webAppContext).newResource(jsPath)); - webAppContext.setContextPath("/"); - webAppContext.setConfigurations(new Configuration[] { - new AnnotationConfiguration(), - new WebXmlConfiguration(), - new WebInfConfiguration(), - new MetaInfConfiguration(), - new WebAppConfiguration() - }); - webAppContext.setAttribute(MetaInfConfiguration.CONTAINER_JAR_PATTERN, - ".*/org\\.eclipse\\.xtext\\.web.*,.*/org.webjars.*"); - - handlerList.setHandlers(new Handler[] { resourceHandler1, resourceHandler2, webAppContext }); - rewriteHandler.setHandler(handlerList); - try { - server.start(); - LOG.info("Server started " + server.getURI() + "..."); - new Thread() { - - public void run() { - try { - LOG.info("Press enter to stop the server..."); - int key = System.in.read(); - if (key != -1) { - server.stop(); - } else { - LOG.warn( - "Console input is not available. In order to stop the server, you need to cancel process manually."); - } - } catch (Exception e) { - LOG.warn(e.getMessage()); - } - } - }.start(); - server.join(); - } catch (Exception exception) { - LOG.warn(exception.getMessage()); - System.exit(1); - } - } - -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/StatemachineWebModule.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/StatemachineWebModule.java deleted file mode 100644 index 281d6f2207d..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/StatemachineWebModule.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import org.eclipse.xtext.web.example.jetty.resource.StatemachineContentTypeProvider; -import org.eclipse.xtext.web.example.jetty.resource.StatemachineResourceSetProvider; -import org.eclipse.xtext.web.server.generator.IContentTypeProvider; -import org.eclipse.xtext.web.server.model.IWebResourceSetProvider; -import org.eclipse.xtext.web.server.persistence.FileResourceHandler; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.web.server.persistence.IServerResourceHandler; - -import com.google.inject.Binder; - -/** - * Use this class to register additional components to be used within the web - * application. - */ -public class StatemachineWebModule extends AbstractStatemachineWebModule { - private IResourceBaseProvider resourceBaseProvider; - - @Override - public Class bindIContentTypeProvider() { - return StatemachineContentTypeProvider.class; - } - - public Class bindIWebResourceSetProvider() { - return StatemachineResourceSetProvider.class; - } - - public void configureResourceBaseProvider(Binder binder) { - if (resourceBaseProvider != null) { - binder.bind(IResourceBaseProvider.class).toInstance(resourceBaseProvider); - } - } - - public Class bindIServerResourceHandler() { - return FileResourceHandler.class; - } - - public StatemachineWebModule(IResourceBaseProvider resourceBaseProvider) { - this.resourceBaseProvider = resourceBaseProvider; - } -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/StatemachineWebSetup.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/StatemachineWebSetup.java deleted file mode 100644 index 2b44598e1a1..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/StatemachineWebSetup.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.xtext.util.Modules2; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.example.statemachine.StatemachineStandaloneSetup; -import org.eclipse.xtext.web.example.statemachine.ide.StatemachineIdeModule; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; - -/** - * Initialization support for running Xtext languages in web applications. - */ -public class StatemachineWebSetup extends StatemachineStandaloneSetup { - - private IResourceBaseProvider resourceBaseProvider; - - public StatemachineWebSetup(IResourceBaseProvider resourceBaseProvider) { - this.resourceBaseProvider = resourceBaseProvider; - } - - @Override - public Injector createInjector() { - StatemachineWebModule webModule = new StatemachineWebModule(this.resourceBaseProvider); - StatemachineRuntimeModule runtimeModule = new StatemachineRuntimeModule(); - StatemachineIdeModule ideModule = new StatemachineIdeModule(); - return Guice.createInjector(Modules2.mixin(runtimeModule, ideModule, webModule)); - } - -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/resource/StatemachineContentTypeProvider.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/resource/StatemachineContentTypeProvider.java deleted file mode 100644 index 9a71f593499..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/resource/StatemachineContentTypeProvider.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty.resource; - -import org.eclipse.xtext.web.server.generator.DefaultContentTypeProvider; -import org.eclipse.xtext.web.server.generator.GeneratorService; - -public class StatemachineContentTypeProvider extends DefaultContentTypeProvider { - - @Override - public String getContentType(String fileName) { - if (GeneratorService.DEFAULT_ARTIFACT.equals(fileName)) - return "text/html"; - return super.getContentType(fileName); - } - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/resource/StatemachineResourceSetProvider.java b/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/resource/StatemachineResourceSetProvider.java deleted file mode 100644 index d9263df4c16..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/java/org/eclipse/xtext/web/example/jetty/resource/StatemachineResourceSetProvider.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty.resource; - -import com.google.inject.Inject; -import com.google.inject.Provider; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.xtext.xbase.lib.Pair; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.model.IWebResourceSetProvider; - -/** - * Resources that run in multi-resource mode share the same resource set. - */ -public class StatemachineResourceSetProvider implements IWebResourceSetProvider { - - public static final String MULTI_RESOURCE_PREFIX = "multi-resource"; - - @Inject - private Provider provider; - - @Override - public ResourceSet get(String resourceId, IServiceContext serviceContext) { - if (resourceId != null && resourceId.startsWith(MULTI_RESOURCE_PREFIX)) { - int pathEnd = Math.max(resourceId.indexOf('/'), MULTI_RESOURCE_PREFIX.length()); - return serviceContext.getSession().get(Pair.of(ResourceSet.class, resourceId.substring(0, pathEnd)), ()->provider.get()); - } else - return provider.get(); - } - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/.gitignore b/org.eclipse.xtext.web.example.jetty/src/main/webapp/.gitignore deleted file mode 100644 index 85378467696..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/.gitignore +++ /dev/null @@ -1 +0,0 @@ -orion/ diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-resource-multi.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-resource-multi.html deleted file mode 100644 index 7100cb15fcf..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-resource-multi.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Multiple Resources) - - - - - - - -
-
-
-
-
-
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-resource.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-resource.html deleted file mode 100644 index fff54a1c5f2..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-resource.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - Xtext-Web Domainmodel Example - - - - - - - -
-
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - - - -
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-stateless.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-stateless.html deleted file mode 100644 index b16ef40c3af..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-stateless.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - Xtext-Web State Machine Example - - - - - - - -
-
-/*
- * A simple State Machine example.
- */
-input signal x
-input signal y
-output signal z
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-state State2
-	if x == false and y == true goto State1
-end
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-static-multi.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-static-multi.html deleted file mode 100644 index d46e6798fc1..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-static-multi.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Multiple Resources) - - - - - - - -
-
-/*
- * A first State Machine resource.
- */
-input signal x
-input signal y
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-
-
-/*
- * A second State Machine resource.
- */
-output signal z
-
-state State2
-	if x == false and y == true goto State1
-end
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-static.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-static.html deleted file mode 100644 index 50776e66938..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/ace-statemachine-static.html +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - Xtext-Web State Machine Example - - - - - - - -
-
-/*
- * A simple State Machine example.
- */
-input signal x
-input signal y
-output signal z
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-state State2
-	if x == false and y == true goto State1
-end
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-resource-multi.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-resource-multi.html deleted file mode 100644 index eecccac55f2..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-resource-multi.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Multiple Resources) - - - - - - - - - -
-
-
-
-
-
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-resource.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-resource.html deleted file mode 100644 index 4c362792f12..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-resource.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Xtext-Web State Machine Example - - - - - - - - - -
-
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - - - -
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-stateless.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-stateless.html deleted file mode 100644 index 99c71d868bc..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-stateless.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - Xtext-Web State Machine Example - - - - - - - - - -
-
-/*
- * A simple State Machine example.
- */
-input signal x
-input signal y
-output signal z
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-state State2
-	if x == false and y == true goto State1
-end
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-static-multi.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-static-multi.html deleted file mode 100644 index 5145712ee1e..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-static-multi.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Multiple Resources) - - - - - - - - - -
-
-/*
- * A first State Machine resource.
- */
-input signal x
-input signal y
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-
-
-/*
- * A second State Machine resource.
- */
-output signal z
-
-state State2
-	if x == false and y == true goto State1
-end
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-static.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-static.html deleted file mode 100644 index 30dbcc011e1..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/codemirror-statemachine-static.html +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - Xtext-Web State Machine Example - - - - - - - - - -
-
-/*
- * A simple State Machine example.
- */
-input signal x
-input signal y
-output signal z
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-state State2
-	if x == false and y == true goto State1
-end
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/favicon.ico b/org.eclipse.xtext.web.example.jetty/src/main/webapp/favicon.ico deleted file mode 100644 index ec9419ec0aa..00000000000 Binary files a/org.eclipse.xtext.web.example.jetty/src/main/webapp/favicon.ico and /dev/null differ diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/i18n.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/i18n.js deleted file mode 100644 index fb7a331d9d4..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/i18n.js +++ /dev/null @@ -1,187 +0,0 @@ -/** - * @license RequireJS i18n 2.0.5 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved. - * Available via the MIT or new BSD license. - * see: http://github.com/requirejs/i18n for details - */ -/*jslint regexp: true */ -/*global require: false, navigator: false, define: false */ - -/** - * This plugin handles i18n! prefixed modules. It does the following: - * - * 1) A regular module can have a dependency on an i18n bundle, but the regular - * module does not want to specify what locale to load. So it just specifies - * the top-level bundle, like "i18n!nls/colors". - * - * This plugin will load the i18n bundle at nls/colors, see that it is a root/master - * bundle since it does not have a locale in its name. It will then try to find - * the best match locale available in that master bundle, then request all the - * locale pieces for that best match locale. For instance, if the locale is "en-us", - * then the plugin will ask for the "en-us", "en" and "root" bundles to be loaded - * (but only if they are specified on the master bundle). - * - * Once all the bundles for the locale pieces load, then it mixes in all those - * locale pieces into each other, then finally sets the context.defined value - * for the nls/colors bundle to be that mixed in locale. - * - * 2) A regular module specifies a specific locale to load. For instance, - * i18n!nls/fr-fr/colors. In this case, the plugin needs to load the master bundle - * first, at nls/colors, then figure out what the best match locale is for fr-fr, - * since maybe only fr or just root is defined for that locale. Once that best - * fit is found, all of its locale pieces need to have their bundles loaded. - * - * Once all the bundles for the locale pieces load, then it mixes in all those - * locale pieces into each other, then finally sets the context.defined value - * for the nls/fr-fr/colors bundle to be that mixed in locale. - */ -(function () { - 'use strict'; - - //regexp for reconstructing the master bundle name from parts of the regexp match - //nlsRegExp.exec("foo/bar/baz/nls/en-ca/foo") gives: - //["foo/bar/baz/nls/en-ca/foo", "foo/bar/baz/nls/", "/", "/", "en-ca", "foo"] - //nlsRegExp.exec("foo/bar/baz/nls/foo") gives: - //["foo/bar/baz/nls/foo", "foo/bar/baz/nls/", "/", "/", "foo", ""] - //so, if match[5] is blank, it means this is the top bundle definition. - var nlsRegExp = /(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/; - - //Helper function to avoid repeating code. Lots of arguments in the - //desire to stay functional and support RequireJS contexts without having - //to know about the RequireJS contexts. - function addPart(locale, master, needed, toLoad, prefix, suffix) { - if (master[locale]) { - needed.push(locale); - if (master[locale] === true || master[locale] === 1) { - toLoad.push(prefix + locale + '/' + suffix); - } - } - } - - function addIfExists(req, locale, toLoad, prefix, suffix) { - var fullName = prefix + locale + '/' + suffix; - if (require._fileExists(req.toUrl(fullName + '.js'))) { - toLoad.push(fullName); - } - } - - /** - * Simple function to mix in properties from source into target, - * but only if target does not already have a property of the same name. - * This is not robust in IE for transferring methods that match - * Object.prototype names, but the uses of mixin here seem unlikely to - * trigger a problem related to that. - */ - function mixin(target, source, force) { - var prop; - for (prop in source) { - if (prop === '__proto__' || prop === 'constructor') { - continue; // Skip these properties - } - if (Object.prototype.hasOwnProperty.call(source, prop) && (!Object.prototype.hasOwnProperty.call(target, prop) || force)) { - target[prop] = source[prop]; - } else if (typeof source[prop] === 'object') { - if (!target[prop] && source[prop]) { - target[prop] = {}; - } - mixin(target[prop], source[prop], force); - } - } - } - - define(['module'], function (module) { - var masterConfig = module.config ? module.config() : {}; - - return { - version: '2.0.5', - /** - * Called when a dependency needs to be loaded. - */ - load: function (name, req, onLoad, config) { - config = config || {}; - - if (config.locale) { - masterConfig.locale = config.locale; - } - - var masterName, - match = nlsRegExp.exec(name), - prefix = match[1], - locale = match[4], - suffix = match[5], - parts = locale.split("-"), - toLoad = [], - value = {}, - i, part, current = ""; - - //If match[5] is blank, it means this is the top bundle definition, - //so it does not have to be handled. Locale-specific requests - //will have a match[4] value but no match[5] - if (match[5]) { - //locale-specific bundle - prefix = match[1]; - masterName = prefix + suffix; - } else { - //Top-level bundle. - masterName = name; - suffix = match[4]; - locale = masterConfig.locale; - if (!locale) { - locale = masterConfig.locale = - typeof navigator === "undefined" ? "root" : - ((navigator.languages && navigator.languages[0]) || - navigator.language || - navigator.userLanguage || "root").toLowerCase(); - } - parts = locale.split("-"); - } - - if (config.isBuild) { - //Check for existence of all locale possible files and - //require them if exist. - toLoad.push(masterName); - addIfExists(req, "root", toLoad, prefix, suffix); - for (i = 0; i < parts.length; i++) { - part = parts[i]; - current += (current ? "-" : "") + part; - addIfExists(req, current, toLoad, prefix, suffix); - } - - req(toLoad, function () { - onLoad(); - }); - } else { - //First, fetch the master bundle, it knows what locales are available. - req([masterName], function (master) { - //Figure out the best fit - var needed = [], - part; - - //Always allow for root, then do the rest of the locale parts. - addPart("root", master, needed, toLoad, prefix, suffix); - for (i = 0; i < parts.length; i++) { - part = parts[i]; - current += (current ? "-" : "") + part; - addPart(current, master, needed, toLoad, prefix, suffix); - } - - //Load all the parts missing. - req(toLoad, function () { - var i, partBundle, part; - for (i = needed.length - 1; i > -1 && needed[i]; i--) { - part = needed[i]; - partBundle = master[part]; - if (partBundle === true || partBundle === 1) { - partBundle = req(prefix + part + '/' + suffix); - } - mixin(value, partBundle); - } - - //All done, notify the loader. - onLoad(value); - }); - }); - } - } - }; - }); -}()); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/images/output.gif b/org.eclipse.xtext.web.example.jetty/src/main/webapp/images/output.gif deleted file mode 100644 index 13077f940ab..00000000000 Binary files a/org.eclipse.xtext.web.example.jetty/src/main/webapp/images/output.gif and /dev/null differ diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/index.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/index.html deleted file mode 100644 index 1a586ed2479..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - Xtext-Web Example - - - - -
- -

Welcome to Xtext

-Please choose an example. - -

Orion

-The following examples are based on Orion. - -

State Machine

- - -

Entities (Using Xbase)

- - -

Ace

-The following examples are based on Ace. - -

State Machine

- - -

CodeMirror

-The following examples are based on CodeMirror. - -

State Machine

- - -
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-entities-resource.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-entities-resource.html deleted file mode 100644 index 72af2324f95..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-entities-resource.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Xtext-Web Entities Example - - - - - - - - -
-
-
-
modified
-
Welcome to Xtext-Web
-
-
- - -
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-entities-static.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-entities-static.html deleted file mode 100644 index ebb65358514..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-entities-static.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - Xtext-Web Entities Example - - - - - - - - -
-
-import java.util.List
-
-/*
- * A simple Entities example.
- */
-package test {
-	
-	// This is my self-made entity
-	entity MyEntity {
-		myProperty : List<String>
-		op myOperation() : String {
-			myProperty.head
-		}
-	}
-	
-	entity Container {
-		entities : List<MyEntity>
-		op findMatching(String param) : MyEntity {
-			entities.findFirst[myOperation == param]
-		}
-	}
-	
-}
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-autogenerate.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-autogenerate.html deleted file mode 100644 index d266c2b869c..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-autogenerate.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Auto-Generator) - - - - - - - - -
-
-
- - -
modified
-
Welcome to Xtext-Web
-
-
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-resource-multi.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-resource-multi.html deleted file mode 100644 index 33195390829..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-resource-multi.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Multiple Resources) - - - - - - - - -
-
-
-
-
-
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-resource.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-resource.html deleted file mode 100644 index 7952aa948f9..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-resource.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Server-Side Resource) - - - - - - - - -
-
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - - - -
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-stateless.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-stateless.html deleted file mode 100644 index 3d3afdfb31f..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-stateless.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Stateless Server) - - - - - - - - -
-
-/*
- * A simple State Machine example.
- */
-input signal x
-input signal y
-output signal z
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-state State2
-	if x == false and y == true goto State1
-end
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-static-multi.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-static-multi.html deleted file mode 100644 index c811b173eac..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-static-multi.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Multiple Resources) - - - - - - - - -
-
-/*
- * A first State Machine resource.
- */
-input signal x
-input signal y
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-
-
-/*
- * A second State Machine resource.
- */
-output signal z
-
-state State2
-	if x == false and y == true goto State1
-end
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-static.html b/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-static.html deleted file mode 100644 index 277a34a507f..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/orion-statemachine-static.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - Xtext-Web State Machine Example (Static Content) - - - - - - - - -
-
-/*
- * A simple State Machine example.
- */
-input signal x
-input signal y
-output signal z
-
-state State1
-	set z = false
-	if x == true goto State2
-end
-
-state State2
-	if x == false and y == true goto State1
-end
-
-
modified
-
Welcome to Xtext-Web
-
-
- - - diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/style.css b/org.eclipse.xtext.web.example.jetty/src/main/webapp/style.css deleted file mode 100644 index a269cb9f92f..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/style.css +++ /dev/null @@ -1,149 +0,0 @@ -body { - font: 16px Helvetica,sans-serif; -} - -iframe { - width: 100%; - height: 100%; - border: 1px solid #aaa; - background-color: #f0f0f0; -} - -a { - color: #22a; - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -h1 { - color: #555; - font-style: italic; -} - -h2 { - color: #555; - padding-left: 15px; - border-bottom: 1px solid #aab; -} - -h3 { - font-size: 16px; -} - -.text-container { - width: 800px; - margin: 40px; -} - -.container { - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 640px; - margin: 20px; -} - -.container-left { - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 450px; - margin: 20px; -} - -.container-right { - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 480px; - width: 450px; - margin: 20px; -} - -.xtext-editor { - display: block; - position: absolute; - top: 0; - bottom: 30px; - left: 0; - right: 0; - padding: 4px; - border: 1px solid #aaa; -} - -#xtext-editor { - display: block; - position: absolute; - top: 0; - bottom: 30px; - left: 0; - right: 0; - border: 1px solid #aaa; -} - -.status-wrapper { - display: block; - position: absolute; - bottom: 0; - left: 0; - right: 0; - height: 20px; - margin-top: 10px; -} - -.button-wrapper { - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 640px; - margin: 20px; -} - -#generator-result { - display: block; - position: absolute; - top: 20px; - bottom: 50px; - left: 680px; - right: 20px; -} - -#dirty-indicator { - display: inline; - color: #e8e8e8; - padding: 1px 8px 1px 8px; - border: 1px solid #ccc; - margin-left: 10px; -} - -#dirty-indicator.dirty { - background-color: #88e; -} - -#status { - display: inline; -} - -.output-icon { - background-image: url("images/output.gif"); - background-repeat: no-repeat; -} - -.InputSignal { - font-style: italic; - color: #2222ff -} - -.OutputSignal { - font-style: italic; - color: #11aa11 -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/ace-mode-entities.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/ace-mode-entities.js deleted file mode 100644 index 799f28b66f5..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/ace-mode-entities.js +++ /dev/null @@ -1,36 +0,0 @@ -define(["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) { - var HighlightRules = function() { - var keywords = "as|case|catch|default|do|else|entity|extends|extension|false|finally|for|if|import|instanceof|new|null|op|package|return|static|super|switch|synchronized|throw|true|try|typeof|val|var|while"; - this.$rules = { - "start": [ - {token: "comment", regex: "\\/\\/.*$"}, - {token: "comment", regex: "\\/\\*", next : "comment"}, - {token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'}, - {token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}, - {token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"}, - {token: "constant.numeric", regex: "0[xX][0-9a-fA-F]+\\b"}, - {token: "lparen", regex: "[\\[({]"}, - {token: "rparen", regex: "[\\])}]"}, - {token: "keyword", regex: "\\b(?:" + keywords + ")\\b"} - ], - "comment": [ - {token: "comment", regex: ".*?\\*\\/", next : "start"}, - {token: "comment", regex: ".+"} - ] - }; - }; - oop.inherits(HighlightRules, mTextHighlightRules.TextHighlightRules); - - var Mode = function() { - this.HighlightRules = HighlightRules; - }; - oop.inherits(Mode, mText.Mode); - Mode.prototype.$id = "xtext/entities"; - Mode.prototype.getCompletions = function(state, session, pos, prefix) { - return []; - } - - return { - Mode: Mode - }; -}); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/ace-mode-statemachine.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/ace-mode-statemachine.js deleted file mode 100644 index b28892ac438..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/ace-mode-statemachine.js +++ /dev/null @@ -1,33 +0,0 @@ -define(["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) { - var HighlightRules = function() { - var keywords = "and|end|goto|if|input|output|set|signal|state"; - this.$rules = { - "start": [ - {token: "comment", regex: "\\/\\/.*$"}, - {token: "comment", regex: "\\/\\*", next : "comment"}, - {token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'}, - {token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}, - {token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"}, - {token: "keyword", regex: "\\b(?:" + keywords + ")\\b"} - ], - "comment": [ - {token: "comment", regex: ".*?\\*\\/", next : "start"}, - {token: "comment", regex: ".+"} - ] - }; - }; - oop.inherits(HighlightRules, mTextHighlightRules.TextHighlightRules); - - var Mode = function() { - this.HighlightRules = HighlightRules; - }; - oop.inherits(Mode, mText.Mode); - Mode.prototype.$id = "xtext/statemachine"; - Mode.prototype.getCompletions = function(state, session, pos, prefix) { - return []; - } - - return { - Mode: Mode - }; -}); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/cm-mode-entities.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/cm-mode-entities.js deleted file mode 100644 index 17ef64d8e94..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/cm-mode-entities.js +++ /dev/null @@ -1,24 +0,0 @@ -define(["codemirror", "codemirror/addon/mode/simple"], function(CodeMirror, SimpleMode) { - var keywords = "as|case|catch|default|do|else|entity|extends|extension|false|finally|for|if|import|instanceof|new|null|op|package|return|static|super|switch|synchronized|throw|true|try|typeof|val|var|while"; - CodeMirror.defineSimpleMode("xtext/entities", { - start: [ - {token: "comment", regex: "\\/\\/.*$"}, - {token: "comment", regex: "\\/\\*", next : "comment"}, - {token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'}, - {token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}, - {token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"}, - {token: "constant.numeric", regex: "0[xX][0-9a-fA-F]+\\b"}, - {token: "lparen", regex: "[\\[({]"}, - {token: "rparen", regex: "[\\])}]"}, - {token: "keyword", regex: "\\b(?:" + keywords + ")\\b"} - ], - comment: [ - {token: "comment", regex: ".*?\\*\\/", next : "start"}, - {token: "comment", regex: ".+"} - ], - meta: { - dontIndentStates: ["comment"], - lineComment: "//" - } - }); -}); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/cm-mode-statemachine.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/cm-mode-statemachine.js deleted file mode 100644 index cb107ca8742..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/cm-mode-statemachine.js +++ /dev/null @@ -1,21 +0,0 @@ -define(["codemirror", "codemirror/addon/mode/simple"], function(CodeMirror, SimpleMode) { - var keywords = "and|end|goto|if|input|output|set|signal|state"; - CodeMirror.defineSimpleMode("xtext/statemachine", { - start: [ - {token: "comment", regex: "\\/\\/.*$"}, - {token: "comment", regex: "\\/\\*", next : "comment"}, - {token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'}, - {token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}, - {token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"}, - {token: "keyword", regex: "\\b(?:" + keywords + ")\\b"} - ], - comment: [ - {token: "comment", regex: ".*?\\*\\/", next : "start"}, - {token: "comment", regex: ".+"} - ], - meta: { - dontIndentStates: ["comment"], - lineComment: "//" - } - }); -}); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/entities-syntax.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/entities-syntax.js deleted file mode 100644 index e56c0844ebd..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/entities-syntax.js +++ /dev/null @@ -1,22 +0,0 @@ -define([], function() { - var keywords = "as|case|catch|default|do|else|entity|extends|extension|false|finally|for|if|import|instanceof|new|null|op|package|return|static|super|switch|synchronized|throw|true|try|typeof|val|var|while"; - return { - id: "xtext.entities", - contentTypes: ["xtext/entities"], - patterns: [ - {include: "orion.c-like#comment_singleLine"}, - {include: "orion.c-like#comment_block"}, - {include: "orion.lib#string_doubleQuote"}, - {include: "orion.lib#string_singleQuote"}, - {include: "orion.lib#number_decimal"}, - {include: "orion.lib#number_hex"}, - {include: "orion.lib#brace_open"}, - {include: "orion.lib#brace_close"}, - {include: "orion.lib#bracket_open"}, - {include: "orion.lib#bracket_close"}, - {include: "orion.lib#parenthesis_open"}, - {include: "orion.lib#parenthesis_close"}, - {name: "keyword.entities", match: "\\b(?:" + keywords + ")\\b"} - ] - }; -}); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/statemachine-syntax.js b/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/statemachine-syntax.js deleted file mode 100644 index 7ee5f0299b8..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/webapp/xtext/statemachine-syntax.js +++ /dev/null @@ -1,15 +0,0 @@ -define([], function() { - var keywords = "and|end|goto|if|input|output|set|signal|state"; - return { - id: "xtext.statemachine", - contentTypes: ["xtext/statemachine"], - patterns: [ - {include: "orion.c-like#comment_singleLine"}, - {include: "orion.c-like#comment_block"}, - {include: "orion.lib#string_doubleQuote"}, - {include: "orion.lib#string_singleQuote"}, - {include: "orion.lib#number_decimal"}, - {name: "keyword.statemachine", match: "\\b(?:" + keywords + ")\\b"} - ] - }; -}); diff --git a/org.eclipse.xtext.web.example.jetty/src/main/xtext-gen/org/eclipse/xtext/web/example/jetty/AbstractEntitiesWebModule.java b/org.eclipse.xtext.web.example.jetty/src/main/xtext-gen/org/eclipse/xtext/web/example/jetty/AbstractEntitiesWebModule.java deleted file mode 100644 index 2fa427d4d32..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/xtext-gen/org/eclipse/xtext/web/example/jetty/AbstractEntitiesWebModule.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import org.eclipse.xtext.xbase.web.DefaultXbaseWebModule; - -/** - * Manual modifications go to {@link EntitiesWebModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractEntitiesWebModule extends DefaultXbaseWebModule { - -} diff --git a/org.eclipse.xtext.web.example.jetty/src/main/xtext-gen/org/eclipse/xtext/web/example/jetty/AbstractStatemachineWebModule.java b/org.eclipse.xtext.web.example.jetty/src/main/xtext-gen/org/eclipse/xtext/web/example/jetty/AbstractStatemachineWebModule.java deleted file mode 100644 index 2cd14d0c004..00000000000 --- a/org.eclipse.xtext.web.example.jetty/src/main/xtext-gen/org/eclipse/xtext/web/example/jetty/AbstractStatemachineWebModule.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.jetty; - -import org.eclipse.xtext.web.server.DefaultWebModule; - -/** - * Manual modifications go to {@link StatemachineWebModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractStatemachineWebModule extends DefaultWebModule { - -} diff --git a/org.eclipse.xtext.web.example.jetty/test-files/example.entities b/org.eclipse.xtext.web.example.jetty/test-files/example.entities deleted file mode 100644 index 29c69509ee7..00000000000 --- a/org.eclipse.xtext.web.example.jetty/test-files/example.entities +++ /dev/null @@ -1,23 +0,0 @@ -import java.util.List - -/* - * A simple Entities example. - */ -package test { - - // This is my self-made entity - entity MyEntity { - myProperty : List - op myOperation() : String { - myProperty.head - } - } - - entity Container { - entities : List - op findMatching(String param) : MyEntity { - entities.findFirst[myOperation == param] - } - } - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/test-files/example1.statemachine b/org.eclipse.xtext.web.example.jetty/test-files/example1.statemachine deleted file mode 100644 index 5285b1a0c3b..00000000000 --- a/org.eclipse.xtext.web.example.jetty/test-files/example1.statemachine +++ /dev/null @@ -1,15 +0,0 @@ -/* - * A simple State Machine example. - */ -input signal x -input signal y -output signal z - -state State1 - set z = false - if x == true goto State2 -end - -state State2 - if x == false and y == true goto State1 -end \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/test-files/example2.statemachine b/org.eclipse.xtext.web.example.jetty/test-files/example2.statemachine deleted file mode 100644 index 43396279e89..00000000000 --- a/org.eclipse.xtext.web.example.jetty/test-files/example2.statemachine +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Yet another State Machine example. - */ -input signal sig1 -output signal sig2 -output signal sig3 - -state Init - set sig2 = true - set sig3 = false - if sig1 == true goto Next -end - -state Next - set sig2 = false - set sig3 = true - if sig1 == true goto Final -end - -state Final -end \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/test-files/multi-resource/left.statemachine b/org.eclipse.xtext.web.example.jetty/test-files/multi-resource/left.statemachine deleted file mode 100644 index d1097713392..00000000000 --- a/org.eclipse.xtext.web.example.jetty/test-files/multi-resource/left.statemachine +++ /dev/null @@ -1,10 +0,0 @@ -/* - * A first State Machine resource. - */ -input signal x -input signal y - -state State1 - set z = false - if x == true goto State2 -end \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/test-files/multi-resource/right.statemachine b/org.eclipse.xtext.web.example.jetty/test-files/multi-resource/right.statemachine deleted file mode 100644 index 65dcec4e520..00000000000 --- a/org.eclipse.xtext.web.example.jetty/test-files/multi-resource/right.statemachine +++ /dev/null @@ -1,8 +0,0 @@ -/* - * A second State Machine resource. - */ -output signal z - -state State2 - if x == false and y == true goto State1 -end \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.jetty/web-example-jetty install dependencies.launch b/org.eclipse.xtext.web.example.jetty/web-example-jetty install dependencies.launch deleted file mode 100644 index 9e518a30b33..00000000000 --- a/org.eclipse.xtext.web.example.jetty/web-example-jetty install dependencies.launch +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.jetty/web-example-jetty run.launch b/org.eclipse.xtext.web.example.jetty/web-example-jetty run.launch deleted file mode 100644 index d5bf25da804..00000000000 --- a/org.eclipse.xtext.web.example.jetty/web-example-jetty run.launch +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine.ide/.classpath b/org.eclipse.xtext.web.example.statemachine.ide/.classpath deleted file mode 100644 index 1c2fe5941a1..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/.classpath +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine.ide/.project b/org.eclipse.xtext.web.example.statemachine.ide/.project deleted file mode 100644 index 0d150ad6446..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web.example.statemachine.ide - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 20ca120cde5..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,4 +0,0 @@ -eclipse.preferences.version=1 -encoding/=ISO-8859-1 -encoding/src=ISO-8859-1 -encoding/src-gen=ISO-8859-1 diff --git a/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e77491258d4..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web.example.statemachine.ide/pom.xml b/org.eclipse.xtext.web.example.statemachine.ide/pom.xml deleted file mode 100644 index f4110f35d00..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - org.eclipse.xtext.nodeploy.parent - 2.44.0-SNAPSHOT - ../org.eclipse.xtext.nodeploy.parent - - org.eclipse.xtext.web.example.statemachine.ide - jar - - - - org.eclipse.xtext - org.eclipse.xtext.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.web.example.statemachine - ${project.version} - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - add-sources - initialize - - add-source - - - - src - src-gen - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup deleted file mode 100644 index ff050934551..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.xtext.web.example.statemachine.ide.StatemachineIdeSetup diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/AbstractStatemachineIdeModule.java b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/AbstractStatemachineIdeModule.java deleted file mode 100644 index 4194b809218..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/AbstractStatemachineIdeModule.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.ide; - -import com.google.inject.Binder; -import com.google.inject.name.Names; -import org.eclipse.xtext.ide.DefaultIdeModule; -import org.eclipse.xtext.ide.LexerIdeBindings; -import org.eclipse.xtext.ide.editor.contentassist.FQNPrefixMatcher; -import org.eclipse.xtext.ide.editor.contentassist.IPrefixMatcher; -import org.eclipse.xtext.ide.editor.contentassist.IProposalConflictHelper; -import org.eclipse.xtext.ide.editor.contentassist.antlr.AntlrProposalConflictHelper; -import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; -import org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.StatemachineParser; -import org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.internal.InternalStatemachineLexer; - -/** - * Manual modifications go to {@link StatemachineIdeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractStatemachineIdeModule extends DefaultIdeModule { - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureContentAssistLexer(Binder binder) { - binder.bind(Lexer.class) - .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) - .to(InternalStatemachineLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIContentAssistParser() { - return StatemachineParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIProposalConflictHelper() { - return AntlrProposalConflictHelper.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 - public Class bindIPrefixMatcher() { - return FQNPrefixMatcher.class; - } - -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/StatemachineParser.java b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/StatemachineParser.java deleted file mode 100644 index b315642e8d7..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/StatemachineParser.java +++ /dev/null @@ -1,108 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr; - -import com.google.common.collect.ImmutableMap; -import com.google.inject.Inject; -import com.google.inject.Singleton; -import java.util.Map; -import org.eclipse.xtext.AbstractElement; -import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser; -import org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.internal.InternalStatemachineParser; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -public class StatemachineParser extends AbstractContentAssistParser { - - @Singleton - public static final class NameMappings { - - private final Map mappings; - - @Inject - public NameMappings(StatemachineGrammarAccess grammarAccess) { - ImmutableMap.Builder builder = ImmutableMap.builder(); - init(builder, grammarAccess); - this.mappings = builder.build(); - } - - public String getRuleName(AbstractElement element) { - return mappings.get(element); - } - - private static void init(ImmutableMap.Builder builder, StatemachineGrammarAccess grammarAccess) { - builder.put(grammarAccess.getSignalAccess().getAlternatives_0(), "rule__Signal__Alternatives_0"); - builder.put(grammarAccess.getStatemachineAccess().getGroup(), "rule__Statemachine__Group__0"); - builder.put(grammarAccess.getSignalAccess().getGroup(), "rule__Signal__Group__0"); - builder.put(grammarAccess.getInputSignalAccess().getGroup(), "rule__InputSignal__Group__0"); - builder.put(grammarAccess.getOutputSignalAccess().getGroup(), "rule__OutputSignal__Group__0"); - builder.put(grammarAccess.getStateAccess().getGroup(), "rule__State__Group__0"); - builder.put(grammarAccess.getTransitionAccess().getGroup(), "rule__Transition__Group__0"); - builder.put(grammarAccess.getConditionAccess().getGroup(), "rule__Condition__Group__0"); - builder.put(grammarAccess.getConditionAccess().getGroup_1(), "rule__Condition__Group_1__0"); - builder.put(grammarAccess.getEventAccess().getGroup(), "rule__Event__Group__0"); - builder.put(grammarAccess.getCommandAccess().getGroup(), "rule__Command__Group__0"); - builder.put(grammarAccess.getQualifiedNameAccess().getGroup(), "rule__QualifiedName__Group__0"); - builder.put(grammarAccess.getQualifiedNameAccess().getGroup_1(), "rule__QualifiedName__Group_1__0"); - builder.put(grammarAccess.getStatemachineAccess().getSignalsAssignment_1(), "rule__Statemachine__SignalsAssignment_1"); - builder.put(grammarAccess.getStatemachineAccess().getStatesAssignment_2(), "rule__Statemachine__StatesAssignment_2"); - builder.put(grammarAccess.getSignalAccess().getNameAssignment_2(), "rule__Signal__NameAssignment_2"); - builder.put(grammarAccess.getStateAccess().getNameAssignment_1(), "rule__State__NameAssignment_1"); - builder.put(grammarAccess.getStateAccess().getCommandsAssignment_2(), "rule__State__CommandsAssignment_2"); - builder.put(grammarAccess.getStateAccess().getTransitionsAssignment_3(), "rule__State__TransitionsAssignment_3"); - builder.put(grammarAccess.getStateAccess().getNestedStatesAssignment_4(), "rule__State__NestedStatesAssignment_4"); - builder.put(grammarAccess.getTransitionAccess().getConditionAssignment_1(), "rule__Transition__ConditionAssignment_1"); - builder.put(grammarAccess.getTransitionAccess().getStateAssignment_3(), "rule__Transition__StateAssignment_3"); - builder.put(grammarAccess.getConditionAccess().getEventsAssignment_0(), "rule__Condition__EventsAssignment_0"); - builder.put(grammarAccess.getConditionAccess().getEventsAssignment_1_1(), "rule__Condition__EventsAssignment_1_1"); - builder.put(grammarAccess.getEventAccess().getSignalAssignment_0(), "rule__Event__SignalAssignment_0"); - builder.put(grammarAccess.getEventAccess().getValueAssignment_2(), "rule__Event__ValueAssignment_2"); - builder.put(grammarAccess.getCommandAccess().getSignalAssignment_1(), "rule__Command__SignalAssignment_1"); - builder.put(grammarAccess.getCommandAccess().getNewValueAssignment_3(), "rule__Command__NewValueAssignment_3"); - } - } - - @Inject - private NameMappings nameMappings; - - @Inject - private StatemachineGrammarAccess grammarAccess; - - @Override - protected InternalStatemachineParser createParser() { - InternalStatemachineParser result = new InternalStatemachineParser(null); - result.setGrammarAccess(grammarAccess); - return result; - } - - @Override - protected String getRuleName(AbstractElement element) { - return nameMappings.getRuleName(element); - } - - @Override - protected String[] getInitialHiddenTokens() { - return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" }; - } - - public StatemachineGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(StatemachineGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - public NameMappings getNameMappings() { - return nameMappings; - } - - public void setNameMappings(NameMappings nameMappings) { - this.nameMappings = nameMappings; - } -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachine.g b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachine.g deleted file mode 100644 index b1ee64c50d5..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachine.g +++ /dev/null @@ -1,1524 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -grammar InternalStatemachine; - -options { - superClass=AbstractInternalContentAssistParser; -} - -@lexer::header { -package org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; -} - -@parser::header { -package org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.internal; - -import java.io.InputStream; -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.DFA; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -} -@parser::members { - private StatemachineGrammarAccess grammarAccess; - - public void setGrammarAccess(StatemachineGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - @Override - protected Grammar getGrammar() { - return grammarAccess.getGrammar(); - } - - @Override - protected String getValueForTokenName(String tokenName) { - return tokenName; - } -} - -// Entry rule entryRuleStatemachine -entryRuleStatemachine -: -{ before(grammarAccess.getStatemachineRule()); } - ruleStatemachine -{ after(grammarAccess.getStatemachineRule()); } - EOF -; - -// Rule Statemachine -ruleStatemachine - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getStatemachineAccess().getGroup()); } - (rule__Statemachine__Group__0) - { after(grammarAccess.getStatemachineAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleSignal -entryRuleSignal -: -{ before(grammarAccess.getSignalRule()); } - ruleSignal -{ after(grammarAccess.getSignalRule()); } - EOF -; - -// Rule Signal -ruleSignal - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getSignalAccess().getGroup()); } - (rule__Signal__Group__0) - { after(grammarAccess.getSignalAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleInputSignal -entryRuleInputSignal -: -{ before(grammarAccess.getInputSignalRule()); } - ruleInputSignal -{ after(grammarAccess.getInputSignalRule()); } - EOF -; - -// Rule InputSignal -ruleInputSignal - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getInputSignalAccess().getGroup()); } - (rule__InputSignal__Group__0) - { after(grammarAccess.getInputSignalAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleOutputSignal -entryRuleOutputSignal -: -{ before(grammarAccess.getOutputSignalRule()); } - ruleOutputSignal -{ after(grammarAccess.getOutputSignalRule()); } - EOF -; - -// Rule OutputSignal -ruleOutputSignal - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getOutputSignalAccess().getGroup()); } - (rule__OutputSignal__Group__0) - { after(grammarAccess.getOutputSignalAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleState -entryRuleState -: -{ before(grammarAccess.getStateRule()); } - ruleState -{ after(grammarAccess.getStateRule()); } - EOF -; - -// Rule State -ruleState - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getStateAccess().getGroup()); } - (rule__State__Group__0) - { after(grammarAccess.getStateAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleTransition -entryRuleTransition -: -{ before(grammarAccess.getTransitionRule()); } - ruleTransition -{ after(grammarAccess.getTransitionRule()); } - EOF -; - -// Rule Transition -ruleTransition - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getTransitionAccess().getGroup()); } - (rule__Transition__Group__0) - { after(grammarAccess.getTransitionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleCondition -entryRuleCondition -: -{ before(grammarAccess.getConditionRule()); } - ruleCondition -{ after(grammarAccess.getConditionRule()); } - EOF -; - -// Rule Condition -ruleCondition - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getConditionAccess().getGroup()); } - (rule__Condition__Group__0) - { after(grammarAccess.getConditionAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleEvent -entryRuleEvent -: -{ before(grammarAccess.getEventRule()); } - ruleEvent -{ after(grammarAccess.getEventRule()); } - EOF -; - -// Rule Event -ruleEvent - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getEventAccess().getGroup()); } - (rule__Event__Group__0) - { after(grammarAccess.getEventAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleCommand -entryRuleCommand -: -{ before(grammarAccess.getCommandRule()); } - ruleCommand -{ after(grammarAccess.getCommandRule()); } - EOF -; - -// Rule Command -ruleCommand - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getCommandAccess().getGroup()); } - (rule__Command__Group__0) - { after(grammarAccess.getCommandAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleQualifiedName -entryRuleQualifiedName -: -{ before(grammarAccess.getQualifiedNameRule()); } - ruleQualifiedName -{ after(grammarAccess.getQualifiedNameRule()); } - EOF -; - -// Rule QualifiedName -ruleQualifiedName - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getQualifiedNameAccess().getGroup()); } - (rule__QualifiedName__Group__0) - { after(grammarAccess.getQualifiedNameAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__Alternatives_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSignalAccess().getInputSignalParserRuleCall_0_0()); } - ruleInputSignal - { after(grammarAccess.getSignalAccess().getInputSignalParserRuleCall_0_0()); } - ) - | - ( - { before(grammarAccess.getSignalAccess().getOutputSignalParserRuleCall_0_1()); } - ruleOutputSignal - { after(grammarAccess.getSignalAccess().getOutputSignalParserRuleCall_0_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Statemachine__Group__0__Impl - rule__Statemachine__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStatemachineAccess().getStatemachineAction_0()); } - () - { after(grammarAccess.getStatemachineAccess().getStatemachineAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Statemachine__Group__1__Impl - rule__Statemachine__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStatemachineAccess().getSignalsAssignment_1()); } - (rule__Statemachine__SignalsAssignment_1)* - { after(grammarAccess.getStatemachineAccess().getSignalsAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Statemachine__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStatemachineAccess().getStatesAssignment_2()); } - (rule__Statemachine__StatesAssignment_2)* - { after(grammarAccess.getStatemachineAccess().getStatesAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Signal__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Signal__Group__0__Impl - rule__Signal__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSignalAccess().getAlternatives_0()); } - (rule__Signal__Alternatives_0) - { after(grammarAccess.getSignalAccess().getAlternatives_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Signal__Group__1__Impl - rule__Signal__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSignalAccess().getSignalKeyword_1()); } - 'signal' - { after(grammarAccess.getSignalAccess().getSignalKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Signal__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSignalAccess().getNameAssignment_2()); } - (rule__Signal__NameAssignment_2) - { after(grammarAccess.getSignalAccess().getNameAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__InputSignal__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__InputSignal__Group__0__Impl - rule__InputSignal__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__InputSignal__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getInputSignalAccess().getInputSignalAction_0()); } - () - { after(grammarAccess.getInputSignalAccess().getInputSignalAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__InputSignal__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__InputSignal__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__InputSignal__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getInputSignalAccess().getInputKeyword_1()); } - 'input' - { after(grammarAccess.getInputSignalAccess().getInputKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__OutputSignal__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__OutputSignal__Group__0__Impl - rule__OutputSignal__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__OutputSignal__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOutputSignalAccess().getOutputSignalAction_0()); } - () - { after(grammarAccess.getOutputSignalAccess().getOutputSignalAction_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__OutputSignal__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__OutputSignal__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__OutputSignal__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getOutputSignalAccess().getOutputKeyword_1()); } - 'output' - { after(grammarAccess.getOutputSignalAccess().getOutputKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__State__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__State__Group__0__Impl - rule__State__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStateAccess().getStateKeyword_0()); } - 'state' - { after(grammarAccess.getStateAccess().getStateKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__State__Group__1__Impl - rule__State__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStateAccess().getNameAssignment_1()); } - (rule__State__NameAssignment_1) - { after(grammarAccess.getStateAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__State__Group__2__Impl - rule__State__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStateAccess().getCommandsAssignment_2()); } - (rule__State__CommandsAssignment_2)* - { after(grammarAccess.getStateAccess().getCommandsAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__State__Group__3__Impl - rule__State__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStateAccess().getTransitionsAssignment_3()); } - (rule__State__TransitionsAssignment_3)* - { after(grammarAccess.getStateAccess().getTransitionsAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__State__Group__4__Impl - rule__State__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStateAccess().getNestedStatesAssignment_4()); } - (rule__State__NestedStatesAssignment_4)* - { after(grammarAccess.getStateAccess().getNestedStatesAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__State__Group__5__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__State__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getStateAccess().getEndKeyword_5()); } - 'end' - { after(grammarAccess.getStateAccess().getEndKeyword_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Transition__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Transition__Group__0__Impl - rule__Transition__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getTransitionAccess().getIfKeyword_0()); } - 'if' - { after(grammarAccess.getTransitionAccess().getIfKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Transition__Group__1__Impl - rule__Transition__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getTransitionAccess().getConditionAssignment_1()); } - (rule__Transition__ConditionAssignment_1) - { after(grammarAccess.getTransitionAccess().getConditionAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Transition__Group__2__Impl - rule__Transition__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getTransitionAccess().getGotoKeyword_2()); } - 'goto' - { after(grammarAccess.getTransitionAccess().getGotoKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__Transition__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getTransitionAccess().getStateAssignment_3()); } - (rule__Transition__StateAssignment_3) - { after(grammarAccess.getTransitionAccess().getStateAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Condition__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Condition__Group__0__Impl - rule__Condition__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getConditionAccess().getEventsAssignment_0()); } - (rule__Condition__EventsAssignment_0) - { after(grammarAccess.getConditionAccess().getEventsAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Condition__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getConditionAccess().getGroup_1()); } - (rule__Condition__Group_1__0)* - { after(grammarAccess.getConditionAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Condition__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Condition__Group_1__0__Impl - rule__Condition__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getConditionAccess().getAndKeyword_1_0()); } - 'and' - { after(grammarAccess.getConditionAccess().getAndKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Condition__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getConditionAccess().getEventsAssignment_1_1()); } - (rule__Condition__EventsAssignment_1_1) - { after(grammarAccess.getConditionAccess().getEventsAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Event__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Event__Group__0__Impl - rule__Event__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEventAccess().getSignalAssignment_0()); } - (rule__Event__SignalAssignment_0) - { after(grammarAccess.getEventAccess().getSignalAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Event__Group__1__Impl - rule__Event__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEventAccess().getEqualsSignEqualsSignKeyword_1()); } - '==' - { after(grammarAccess.getEventAccess().getEqualsSignEqualsSignKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Event__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getEventAccess().getValueAssignment_2()); } - (rule__Event__ValueAssignment_2) - { after(grammarAccess.getEventAccess().getValueAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Command__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Command__Group__0__Impl - rule__Command__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCommandAccess().getSetKeyword_0()); } - 'set' - { after(grammarAccess.getCommandAccess().getSetKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Command__Group__1__Impl - rule__Command__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCommandAccess().getSignalAssignment_1()); } - (rule__Command__SignalAssignment_1) - { after(grammarAccess.getCommandAccess().getSignalAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Command__Group__2__Impl - rule__Command__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCommandAccess().getEqualsSignKeyword_2()); } - '=' - { after(grammarAccess.getCommandAccess().getEqualsSignKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__Command__Group__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCommandAccess().getNewValueAssignment_3()); } - (rule__Command__NewValueAssignment_3) - { after(grammarAccess.getCommandAccess().getNewValueAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedName__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group__0__Impl - rule__QualifiedName__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); } - RULE_ID - { after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getGroup_1()); } - (rule__QualifiedName__Group_1__0)* - { after(grammarAccess.getQualifiedNameAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedName__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group_1__0__Impl - rule__QualifiedName__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); } - '.' - { after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedName__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedName__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); } - RULE_ID - { after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Statemachine__SignalsAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getStatemachineAccess().getSignalsSignalParserRuleCall_1_0()); } - ruleSignal - { after(grammarAccess.getStatemachineAccess().getSignalsSignalParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Statemachine__StatesAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getStatemachineAccess().getStatesStateParserRuleCall_2_0()); } - ruleState - { after(grammarAccess.getStatemachineAccess().getStatesStateParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Signal__NameAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0()); } - RULE_ID - { after(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getStateAccess().getNameIDTerminalRuleCall_1_0()); } - RULE_ID - { after(grammarAccess.getStateAccess().getNameIDTerminalRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__CommandsAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getStateAccess().getCommandsCommandParserRuleCall_2_0()); } - ruleCommand - { after(grammarAccess.getStateAccess().getCommandsCommandParserRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__TransitionsAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getStateAccess().getTransitionsTransitionParserRuleCall_3_0()); } - ruleTransition - { after(grammarAccess.getStateAccess().getTransitionsTransitionParserRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__State__NestedStatesAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getStateAccess().getNestedStatesStateParserRuleCall_4_0()); } - ruleState - { after(grammarAccess.getStateAccess().getNestedStatesStateParserRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__ConditionAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0()); } - ruleCondition - { after(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Transition__StateAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getTransitionAccess().getStateStateCrossReference_3_0()); } - ( - { before(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1()); } - ruleQualifiedName - { after(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1()); } - ) - { after(grammarAccess.getTransitionAccess().getStateStateCrossReference_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__EventsAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_0_0()); } - ruleEvent - { after(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Condition__EventsAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_1_1_0()); } - ruleEvent - { after(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__SignalAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEventAccess().getSignalSignalCrossReference_0_0()); } - ( - { before(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1()); } - RULE_ID - { after(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1()); } - ) - { after(grammarAccess.getEventAccess().getSignalSignalCrossReference_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Event__ValueAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0()); } - RULE_BOOLEAN - { after(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__SignalAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCommandAccess().getSignalSignalCrossReference_1_0()); } - ( - { before(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1()); } - RULE_ID - { after(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1()); } - ) - { after(grammarAccess.getCommandAccess().getSignalSignalCrossReference_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Command__NewValueAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0()); } - RULE_BOOLEAN - { after(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -RULE_BOOLEAN : ('true'|'false'); - -RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; - -RULE_INT : ('0'..'9')+; - -RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); - -RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; - -RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; - -RULE_WS : (' '|'\t'|'\r'|'\n')+; - -RULE_ANY_OTHER : .; diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachine.tokens b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachine.tokens deleted file mode 100644 index 5d8376c6d2d..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachine.tokens +++ /dev/null @@ -1,32 +0,0 @@ -'.'=23 -'='=22 -'=='=20 -'and'=19 -'end'=16 -'goto'=18 -'if'=17 -'input'=13 -'output'=14 -'set'=21 -'signal'=12 -'state'=15 -RULE_ANY_OTHER=11 -RULE_BOOLEAN=5 -RULE_ID=4 -RULE_INT=6 -RULE_ML_COMMENT=8 -RULE_SL_COMMENT=9 -RULE_STRING=7 -RULE_WS=10 -T__12=12 -T__13=13 -T__14=14 -T__15=15 -T__16=16 -T__17=17 -T__18=18 -T__19=19 -T__20=20 -T__21=21 -T__22=22 -T__23=23 diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachineLexer.java b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachineLexer.java deleted file mode 100644 index 0724add2d9f..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachineLexer.java +++ /dev/null @@ -1,1200 +0,0 @@ -package org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalStatemachineLexer extends Lexer { - public static final int RULE_BOOLEAN=5; - public static final int RULE_STRING=7; - public static final int RULE_SL_COMMENT=9; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__12=12; - public static final int T__13=13; - public static final int T__14=14; - public static final int EOF=-1; - public static final int RULE_ID=4; - public static final int RULE_WS=10; - public static final int RULE_ANY_OTHER=11; - public static final int RULE_INT=6; - public static final int T__22=22; - public static final int RULE_ML_COMMENT=8; - public static final int T__23=23; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - public InternalStatemachineLexer() {;} - public InternalStatemachineLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalStatemachineLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalStatemachine.g"; } - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:11:7: ( 'signal' ) - // InternalStatemachine.g:11:9: 'signal' - { - match("signal"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__12" - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:12:7: ( 'input' ) - // InternalStatemachine.g:12:9: 'input' - { - match("input"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__13" - - // $ANTLR start "T__14" - public final void mT__14() throws RecognitionException { - try { - int _type = T__14; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:13:7: ( 'output' ) - // InternalStatemachine.g:13:9: 'output' - { - match("output"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__14" - - // $ANTLR start "T__15" - public final void mT__15() throws RecognitionException { - try { - int _type = T__15; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:14:7: ( 'state' ) - // InternalStatemachine.g:14:9: 'state' - { - match("state"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__15" - - // $ANTLR start "T__16" - public final void mT__16() throws RecognitionException { - try { - int _type = T__16; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:15:7: ( 'end' ) - // InternalStatemachine.g:15:9: 'end' - { - match("end"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__16" - - // $ANTLR start "T__17" - public final void mT__17() throws RecognitionException { - try { - int _type = T__17; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:16:7: ( 'if' ) - // InternalStatemachine.g:16:9: 'if' - { - match("if"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__17" - - // $ANTLR start "T__18" - public final void mT__18() throws RecognitionException { - try { - int _type = T__18; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:17:7: ( 'goto' ) - // InternalStatemachine.g:17:9: 'goto' - { - match("goto"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__18" - - // $ANTLR start "T__19" - public final void mT__19() throws RecognitionException { - try { - int _type = T__19; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:18:7: ( 'and' ) - // InternalStatemachine.g:18:9: 'and' - { - match("and"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__19" - - // $ANTLR start "T__20" - public final void mT__20() throws RecognitionException { - try { - int _type = T__20; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:19:7: ( '==' ) - // InternalStatemachine.g:19:9: '==' - { - match("=="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__20" - - // $ANTLR start "T__21" - public final void mT__21() throws RecognitionException { - try { - int _type = T__21; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:20:7: ( 'set' ) - // InternalStatemachine.g:20:9: 'set' - { - match("set"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__21" - - // $ANTLR start "T__22" - public final void mT__22() throws RecognitionException { - try { - int _type = T__22; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:21:7: ( '=' ) - // InternalStatemachine.g:21:9: '=' - { - match('='); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__22" - - // $ANTLR start "T__23" - public final void mT__23() throws RecognitionException { - try { - int _type = T__23; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:22:7: ( '.' ) - // InternalStatemachine.g:22:9: '.' - { - match('.'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__23" - - // $ANTLR start "RULE_BOOLEAN" - public final void mRULE_BOOLEAN() throws RecognitionException { - try { - int _type = RULE_BOOLEAN; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1510:14: ( ( 'true' | 'false' ) ) - // InternalStatemachine.g:1510:16: ( 'true' | 'false' ) - { - // InternalStatemachine.g:1510:16: ( 'true' | 'false' ) - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0=='t') ) { - alt1=1; - } - else if ( (LA1_0=='f') ) { - alt1=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 0, input); - - throw nvae; - } - switch (alt1) { - case 1 : - // InternalStatemachine.g:1510:17: 'true' - { - match("true"); - - - } - break; - case 2 : - // InternalStatemachine.g:1510:24: 'false' - { - match("false"); - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_BOOLEAN" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1512:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalStatemachine.g:1512:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - // InternalStatemachine.g:1512:11: ( '^' )? - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0=='^') ) { - alt2=1; - } - switch (alt2) { - case 1 : - // InternalStatemachine.g:1512:11: '^' - { - match('^'); - - } - break; - - } - - if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalStatemachine.g:1512:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop3: - do { - int alt3=2; - int LA3_0 = input.LA(1); - - if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) { - alt3=1; - } - - - switch (alt3) { - case 1 : - // InternalStatemachine.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop3; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1514:10: ( ( '0' .. '9' )+ ) - // InternalStatemachine.g:1514:12: ( '0' .. '9' )+ - { - // InternalStatemachine.g:1514:12: ( '0' .. '9' )+ - int cnt4=0; - loop4: - do { - int alt4=2; - int LA4_0 = input.LA(1); - - if ( ((LA4_0>='0' && LA4_0<='9')) ) { - alt4=1; - } - - - switch (alt4) { - case 1 : - // InternalStatemachine.g:1514:13: '0' .. '9' - { - matchRange('0','9'); - - } - break; - - default : - if ( cnt4 >= 1 ) break loop4; - EarlyExitException eee = - new EarlyExitException(4, input); - throw eee; - } - cnt4++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1516:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) - // InternalStatemachine.g:1516:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - { - // InternalStatemachine.g:1516:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='\"') ) { - alt7=1; - } - else if ( (LA7_0=='\'') ) { - alt7=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 7, 0, input); - - throw nvae; - } - switch (alt7) { - case 1 : - // InternalStatemachine.g:1516:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' - { - match('\"'); - // InternalStatemachine.g:1516:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop5: - do { - int alt5=3; - int LA5_0 = input.LA(1); - - if ( (LA5_0=='\\') ) { - alt5=1; - } - else if ( ((LA5_0>='\u0000' && LA5_0<='!')||(LA5_0>='#' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { - alt5=2; - } - - - switch (alt5) { - case 1 : - // InternalStatemachine.g:1516:21: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalStatemachine.g:1516:28: ~ ( ( '\\\\' | '\"' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop5; - } - } while (true); - - match('\"'); - - } - break; - case 2 : - // InternalStatemachine.g:1516:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' - { - match('\''); - // InternalStatemachine.g:1516:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - loop6: - do { - int alt6=3; - int LA6_0 = input.LA(1); - - if ( (LA6_0=='\\') ) { - alt6=1; - } - else if ( ((LA6_0>='\u0000' && LA6_0<='&')||(LA6_0>='(' && LA6_0<='[')||(LA6_0>=']' && LA6_0<='\uFFFF')) ) { - alt6=2; - } - - - switch (alt6) { - case 1 : - // InternalStatemachine.g:1516:54: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalStatemachine.g:1516:61: ~ ( ( '\\\\' | '\\'' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop6; - } - } while (true); - - match('\''); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1518:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalStatemachine.g:1518:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalStatemachine.g:1518:24: ( options {greedy=false; } : . )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0=='*') ) { - int LA8_1 = input.LA(2); - - if ( (LA8_1=='/') ) { - alt8=2; - } - else if ( ((LA8_1>='\u0000' && LA8_1<='.')||(LA8_1>='0' && LA8_1<='\uFFFF')) ) { - alt8=1; - } - - - } - else if ( ((LA8_0>='\u0000' && LA8_0<=')')||(LA8_0>='+' && LA8_0<='\uFFFF')) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalStatemachine.g:1518:52: . - { - matchAny(); - - } - break; - - default : - break loop8; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1520:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalStatemachine.g:1520:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // InternalStatemachine.g:1520:24: (~ ( ( '\\n' | '\\r' ) ) )* - loop9: - do { - int alt9=2; - int LA9_0 = input.LA(1); - - if ( ((LA9_0>='\u0000' && LA9_0<='\t')||(LA9_0>='\u000B' && LA9_0<='\f')||(LA9_0>='\u000E' && LA9_0<='\uFFFF')) ) { - alt9=1; - } - - - switch (alt9) { - case 1 : - // InternalStatemachine.g:1520:24: ~ ( ( '\\n' | '\\r' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop9; - } - } while (true); - - // InternalStatemachine.g:1520:40: ( ( '\\r' )? '\\n' )? - int alt11=2; - int LA11_0 = input.LA(1); - - if ( (LA11_0=='\n'||LA11_0=='\r') ) { - alt11=1; - } - switch (alt11) { - case 1 : - // InternalStatemachine.g:1520:41: ( '\\r' )? '\\n' - { - // InternalStatemachine.g:1520:41: ( '\\r' )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='\r') ) { - alt10=1; - } - switch (alt10) { - case 1 : - // InternalStatemachine.g:1520:41: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1522:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalStatemachine.g:1522:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalStatemachine.g:1522:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt12=0; - loop12: - do { - int alt12=2; - int LA12_0 = input.LA(1); - - if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) { - alt12=1; - } - - - switch (alt12) { - case 1 : - // InternalStatemachine.g: - { - if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt12 >= 1 ) break loop12; - EarlyExitException eee = - new EarlyExitException(12, input); - throw eee; - } - cnt12++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:1524:16: ( . ) - // InternalStatemachine.g:1524:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalStatemachine.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | RULE_BOOLEAN | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt13=20; - alt13 = dfa13.predict(input); - switch (alt13) { - case 1 : - // InternalStatemachine.g:1:10: T__12 - { - mT__12(); - - } - break; - case 2 : - // InternalStatemachine.g:1:16: T__13 - { - mT__13(); - - } - break; - case 3 : - // InternalStatemachine.g:1:22: T__14 - { - mT__14(); - - } - break; - case 4 : - // InternalStatemachine.g:1:28: T__15 - { - mT__15(); - - } - break; - case 5 : - // InternalStatemachine.g:1:34: T__16 - { - mT__16(); - - } - break; - case 6 : - // InternalStatemachine.g:1:40: T__17 - { - mT__17(); - - } - break; - case 7 : - // InternalStatemachine.g:1:46: T__18 - { - mT__18(); - - } - break; - case 8 : - // InternalStatemachine.g:1:52: T__19 - { - mT__19(); - - } - break; - case 9 : - // InternalStatemachine.g:1:58: T__20 - { - mT__20(); - - } - break; - case 10 : - // InternalStatemachine.g:1:64: T__21 - { - mT__21(); - - } - break; - case 11 : - // InternalStatemachine.g:1:70: T__22 - { - mT__22(); - - } - break; - case 12 : - // InternalStatemachine.g:1:76: T__23 - { - mT__23(); - - } - break; - case 13 : - // InternalStatemachine.g:1:82: RULE_BOOLEAN - { - mRULE_BOOLEAN(); - - } - break; - case 14 : - // InternalStatemachine.g:1:95: RULE_ID - { - mRULE_ID(); - - } - break; - case 15 : - // InternalStatemachine.g:1:103: RULE_INT - { - mRULE_INT(); - - } - break; - case 16 : - // InternalStatemachine.g:1:112: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 17 : - // InternalStatemachine.g:1:124: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 18 : - // InternalStatemachine.g:1:140: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 19 : - // InternalStatemachine.g:1:156: RULE_WS - { - mRULE_WS(); - - } - break; - case 20 : - // InternalStatemachine.g:1:164: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA13 dfa13 = new DFA13(this); - static final String DFA13_eotS = - "\1\uffff\6\26\1\36\1\uffff\2\26\1\22\2\uffff\3\22\2\uffff\3\26\1\uffff\1\26\1\53\4\26\3\uffff\2\26\5\uffff\2\26\1\64\1\26\1\uffff\1\26\1\67\1\26\1\71\4\26\1\uffff\2\26\1\uffff\1\100\1\uffff\1\101\2\26\1\104\1\105\1\26\2\uffff\1\101\1\107\2\uffff\1\110\2\uffff"; - static final String DFA13_eofS = - "\111\uffff"; - static final String DFA13_minS = - "\1\0\1\145\1\146\1\165\1\156\1\157\1\156\1\75\1\uffff\1\162\1\141\1\101\2\uffff\2\0\1\52\2\uffff\1\147\1\141\1\164\1\uffff\1\160\1\60\1\164\1\144\1\164\1\144\3\uffff\1\165\1\154\5\uffff\1\156\1\164\1\60\1\165\1\uffff\1\160\1\60\1\157\1\60\1\145\1\163\1\141\1\145\1\uffff\1\164\1\165\1\uffff\1\60\1\uffff\1\60\1\145\1\154\2\60\1\164\2\uffff\2\60\2\uffff\1\60\2\uffff"; - static final String DFA13_maxS = - "\1\uffff\1\164\1\156\1\165\1\156\1\157\1\156\1\75\1\uffff\1\162\1\141\1\172\2\uffff\2\uffff\1\57\2\uffff\1\147\1\141\1\164\1\uffff\1\160\1\172\1\164\1\144\1\164\1\144\3\uffff\1\165\1\154\5\uffff\1\156\1\164\1\172\1\165\1\uffff\1\160\1\172\1\157\1\172\1\145\1\163\1\141\1\145\1\uffff\1\164\1\165\1\uffff\1\172\1\uffff\1\172\1\145\1\154\2\172\1\164\2\uffff\2\172\2\uffff\1\172\2\uffff"; - static final String DFA13_acceptS = - "\10\uffff\1\14\3\uffff\1\16\1\17\3\uffff\1\23\1\24\3\uffff\1\16\6\uffff\1\11\1\13\1\14\2\uffff\1\17\1\20\1\21\1\22\1\23\4\uffff\1\6\10\uffff\1\12\2\uffff\1\5\1\uffff\1\10\6\uffff\1\7\1\15\2\uffff\1\4\1\2\1\uffff\1\1\1\3"; - static final String DFA13_specialS = - "\1\2\15\uffff\1\0\1\1\71\uffff}>"; - static final String[] DFA13_transitionS = { - "\11\22\2\21\2\22\1\21\22\22\1\21\1\22\1\16\4\22\1\17\6\22\1\10\1\20\12\15\3\22\1\7\3\22\32\14\3\22\1\13\1\14\1\22\1\6\3\14\1\4\1\12\1\5\1\14\1\2\5\14\1\3\3\14\1\1\1\11\6\14\uff85\22", - "\1\25\3\uffff\1\23\12\uffff\1\24", - "\1\30\7\uffff\1\27", - "\1\31", - "\1\32", - "\1\33", - "\1\34", - "\1\35", - "", - "\1\40", - "\1\41", - "\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "", - "\0\43", - "\0\43", - "\1\44\4\uffff\1\45", - "", - "", - "\1\47", - "\1\50", - "\1\51", - "", - "\1\52", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\54", - "\1\55", - "\1\56", - "\1\57", - "", - "", - "", - "\1\60", - "\1\61", - "", - "", - "", - "", - "", - "\1\62", - "\1\63", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\65", - "", - "\1\66", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\70", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\72", - "\1\73", - "\1\74", - "\1\75", - "", - "\1\76", - "\1\77", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\102", - "\1\103", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\106", - "", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "" - }; - - static final short[] DFA13_eot = DFA.unpackEncodedString(DFA13_eotS); - static final short[] DFA13_eof = DFA.unpackEncodedString(DFA13_eofS); - static final char[] DFA13_min = DFA.unpackEncodedStringToUnsignedChars(DFA13_minS); - static final char[] DFA13_max = DFA.unpackEncodedStringToUnsignedChars(DFA13_maxS); - static final short[] DFA13_accept = DFA.unpackEncodedString(DFA13_acceptS); - static final short[] DFA13_special = DFA.unpackEncodedString(DFA13_specialS); - static final short[][] DFA13_transition; - - static { - int numStates = DFA13_transitionS.length; - DFA13_transition = new short[numStates][]; - for (int i=0; i='\u0000' && LA13_14<='\uFFFF')) ) {s = 35;} - - else s = 18; - - if ( s>=0 ) return s; - break; - case 1 : - int LA13_15 = input.LA(1); - - s = -1; - if ( ((LA13_15>='\u0000' && LA13_15<='\uFFFF')) ) {s = 35;} - - else s = 18; - - if ( s>=0 ) return s; - break; - case 2 : - int LA13_0 = input.LA(1); - - s = -1; - if ( (LA13_0=='s') ) {s = 1;} - - else if ( (LA13_0=='i') ) {s = 2;} - - else if ( (LA13_0=='o') ) {s = 3;} - - else if ( (LA13_0=='e') ) {s = 4;} - - else if ( (LA13_0=='g') ) {s = 5;} - - else if ( (LA13_0=='a') ) {s = 6;} - - else if ( (LA13_0=='=') ) {s = 7;} - - else if ( (LA13_0=='.') ) {s = 8;} - - else if ( (LA13_0=='t') ) {s = 9;} - - else if ( (LA13_0=='f') ) {s = 10;} - - else if ( (LA13_0=='^') ) {s = 11;} - - else if ( ((LA13_0>='A' && LA13_0<='Z')||LA13_0=='_'||(LA13_0>='b' && LA13_0<='d')||LA13_0=='h'||(LA13_0>='j' && LA13_0<='n')||(LA13_0>='p' && LA13_0<='r')||(LA13_0>='u' && LA13_0<='z')) ) {s = 12;} - - else if ( ((LA13_0>='0' && LA13_0<='9')) ) {s = 13;} - - else if ( (LA13_0=='\"') ) {s = 14;} - - else if ( (LA13_0=='\'') ) {s = 15;} - - else if ( (LA13_0=='/') ) {s = 16;} - - else if ( ((LA13_0>='\t' && LA13_0<='\n')||LA13_0=='\r'||LA13_0==' ') ) {s = 17;} - - else if ( ((LA13_0>='\u0000' && LA13_0<='\b')||(LA13_0>='\u000B' && LA13_0<='\f')||(LA13_0>='\u000E' && LA13_0<='\u001F')||LA13_0=='!'||(LA13_0>='#' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='-')||(LA13_0>=':' && LA13_0<='<')||(LA13_0>='>' && LA13_0<='@')||(LA13_0>='[' && LA13_0<=']')||LA13_0=='`'||(LA13_0>='{' && LA13_0<='\uFFFF')) ) {s = 18;} - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 13, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachineParser.java b/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachineParser.java deleted file mode 100644 index fce6a16446e..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src-gen/org/eclipse/xtext/web/example/statemachine/ide/contentassist/antlr/internal/InternalStatemachineParser.java +++ /dev/null @@ -1,4452 +0,0 @@ -package org.eclipse.xtext.web.example.statemachine.ide.contentassist.antlr.internal; - -import java.io.InputStream; -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.DFA; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -@SuppressWarnings("all") -public class InternalStatemachineParser extends AbstractInternalContentAssistParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_ID", "RULE_BOOLEAN", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'signal'", "'input'", "'output'", "'state'", "'end'", "'if'", "'goto'", "'and'", "'=='", "'set'", "'='", "'.'" - }; - public static final int RULE_BOOLEAN=5; - public static final int RULE_STRING=7; - public static final int RULE_SL_COMMENT=9; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__12=12; - public static final int T__13=13; - public static final int T__14=14; - public static final int EOF=-1; - public static final int RULE_ID=4; - public static final int RULE_WS=10; - public static final int RULE_ANY_OTHER=11; - public static final int RULE_INT=6; - public static final int T__22=22; - public static final int RULE_ML_COMMENT=8; - public static final int T__23=23; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - - public InternalStatemachineParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalStatemachineParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalStatemachineParser.tokenNames; } - public String getGrammarFileName() { return "InternalStatemachine.g"; } - - - private StatemachineGrammarAccess grammarAccess; - - public void setGrammarAccess(StatemachineGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - @Override - protected Grammar getGrammar() { - return grammarAccess.getGrammar(); - } - - @Override - protected String getValueForTokenName(String tokenName) { - return tokenName; - } - - - - // $ANTLR start "entryRuleStatemachine" - // InternalStatemachine.g:58:1: entryRuleStatemachine : ruleStatemachine EOF ; - public final void entryRuleStatemachine() throws RecognitionException { - try { - // InternalStatemachine.g:59:1: ( ruleStatemachine EOF ) - // InternalStatemachine.g:60:1: ruleStatemachine EOF - { - before(grammarAccess.getStatemachineRule()); - pushFollow(FOLLOW_1); - ruleStatemachine(); - - state._fsp--; - - after(grammarAccess.getStatemachineRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleStatemachine" - - - // $ANTLR start "ruleStatemachine" - // InternalStatemachine.g:67:1: ruleStatemachine : ( ( rule__Statemachine__Group__0 ) ) ; - public final void ruleStatemachine() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:71:2: ( ( ( rule__Statemachine__Group__0 ) ) ) - // InternalStatemachine.g:72:2: ( ( rule__Statemachine__Group__0 ) ) - { - // InternalStatemachine.g:72:2: ( ( rule__Statemachine__Group__0 ) ) - // InternalStatemachine.g:73:3: ( rule__Statemachine__Group__0 ) - { - before(grammarAccess.getStatemachineAccess().getGroup()); - // InternalStatemachine.g:74:3: ( rule__Statemachine__Group__0 ) - // InternalStatemachine.g:74:4: rule__Statemachine__Group__0 - { - pushFollow(FOLLOW_2); - rule__Statemachine__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getStatemachineAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleStatemachine" - - - // $ANTLR start "entryRuleSignal" - // InternalStatemachine.g:83:1: entryRuleSignal : ruleSignal EOF ; - public final void entryRuleSignal() throws RecognitionException { - try { - // InternalStatemachine.g:84:1: ( ruleSignal EOF ) - // InternalStatemachine.g:85:1: ruleSignal EOF - { - before(grammarAccess.getSignalRule()); - pushFollow(FOLLOW_1); - ruleSignal(); - - state._fsp--; - - after(grammarAccess.getSignalRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleSignal" - - - // $ANTLR start "ruleSignal" - // InternalStatemachine.g:92:1: ruleSignal : ( ( rule__Signal__Group__0 ) ) ; - public final void ruleSignal() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:96:2: ( ( ( rule__Signal__Group__0 ) ) ) - // InternalStatemachine.g:97:2: ( ( rule__Signal__Group__0 ) ) - { - // InternalStatemachine.g:97:2: ( ( rule__Signal__Group__0 ) ) - // InternalStatemachine.g:98:3: ( rule__Signal__Group__0 ) - { - before(grammarAccess.getSignalAccess().getGroup()); - // InternalStatemachine.g:99:3: ( rule__Signal__Group__0 ) - // InternalStatemachine.g:99:4: rule__Signal__Group__0 - { - pushFollow(FOLLOW_2); - rule__Signal__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getSignalAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleSignal" - - - // $ANTLR start "entryRuleInputSignal" - // InternalStatemachine.g:108:1: entryRuleInputSignal : ruleInputSignal EOF ; - public final void entryRuleInputSignal() throws RecognitionException { - try { - // InternalStatemachine.g:109:1: ( ruleInputSignal EOF ) - // InternalStatemachine.g:110:1: ruleInputSignal EOF - { - before(grammarAccess.getInputSignalRule()); - pushFollow(FOLLOW_1); - ruleInputSignal(); - - state._fsp--; - - after(grammarAccess.getInputSignalRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleInputSignal" - - - // $ANTLR start "ruleInputSignal" - // InternalStatemachine.g:117:1: ruleInputSignal : ( ( rule__InputSignal__Group__0 ) ) ; - public final void ruleInputSignal() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:121:2: ( ( ( rule__InputSignal__Group__0 ) ) ) - // InternalStatemachine.g:122:2: ( ( rule__InputSignal__Group__0 ) ) - { - // InternalStatemachine.g:122:2: ( ( rule__InputSignal__Group__0 ) ) - // InternalStatemachine.g:123:3: ( rule__InputSignal__Group__0 ) - { - before(grammarAccess.getInputSignalAccess().getGroup()); - // InternalStatemachine.g:124:3: ( rule__InputSignal__Group__0 ) - // InternalStatemachine.g:124:4: rule__InputSignal__Group__0 - { - pushFollow(FOLLOW_2); - rule__InputSignal__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getInputSignalAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleInputSignal" - - - // $ANTLR start "entryRuleOutputSignal" - // InternalStatemachine.g:133:1: entryRuleOutputSignal : ruleOutputSignal EOF ; - public final void entryRuleOutputSignal() throws RecognitionException { - try { - // InternalStatemachine.g:134:1: ( ruleOutputSignal EOF ) - // InternalStatemachine.g:135:1: ruleOutputSignal EOF - { - before(grammarAccess.getOutputSignalRule()); - pushFollow(FOLLOW_1); - ruleOutputSignal(); - - state._fsp--; - - after(grammarAccess.getOutputSignalRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleOutputSignal" - - - // $ANTLR start "ruleOutputSignal" - // InternalStatemachine.g:142:1: ruleOutputSignal : ( ( rule__OutputSignal__Group__0 ) ) ; - public final void ruleOutputSignal() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:146:2: ( ( ( rule__OutputSignal__Group__0 ) ) ) - // InternalStatemachine.g:147:2: ( ( rule__OutputSignal__Group__0 ) ) - { - // InternalStatemachine.g:147:2: ( ( rule__OutputSignal__Group__0 ) ) - // InternalStatemachine.g:148:3: ( rule__OutputSignal__Group__0 ) - { - before(grammarAccess.getOutputSignalAccess().getGroup()); - // InternalStatemachine.g:149:3: ( rule__OutputSignal__Group__0 ) - // InternalStatemachine.g:149:4: rule__OutputSignal__Group__0 - { - pushFollow(FOLLOW_2); - rule__OutputSignal__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getOutputSignalAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleOutputSignal" - - - // $ANTLR start "entryRuleState" - // InternalStatemachine.g:158:1: entryRuleState : ruleState EOF ; - public final void entryRuleState() throws RecognitionException { - try { - // InternalStatemachine.g:159:1: ( ruleState EOF ) - // InternalStatemachine.g:160:1: ruleState EOF - { - before(grammarAccess.getStateRule()); - pushFollow(FOLLOW_1); - ruleState(); - - state._fsp--; - - after(grammarAccess.getStateRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleState" - - - // $ANTLR start "ruleState" - // InternalStatemachine.g:167:1: ruleState : ( ( rule__State__Group__0 ) ) ; - public final void ruleState() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:171:2: ( ( ( rule__State__Group__0 ) ) ) - // InternalStatemachine.g:172:2: ( ( rule__State__Group__0 ) ) - { - // InternalStatemachine.g:172:2: ( ( rule__State__Group__0 ) ) - // InternalStatemachine.g:173:3: ( rule__State__Group__0 ) - { - before(grammarAccess.getStateAccess().getGroup()); - // InternalStatemachine.g:174:3: ( rule__State__Group__0 ) - // InternalStatemachine.g:174:4: rule__State__Group__0 - { - pushFollow(FOLLOW_2); - rule__State__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getStateAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleState" - - - // $ANTLR start "entryRuleTransition" - // InternalStatemachine.g:183:1: entryRuleTransition : ruleTransition EOF ; - public final void entryRuleTransition() throws RecognitionException { - try { - // InternalStatemachine.g:184:1: ( ruleTransition EOF ) - // InternalStatemachine.g:185:1: ruleTransition EOF - { - before(grammarAccess.getTransitionRule()); - pushFollow(FOLLOW_1); - ruleTransition(); - - state._fsp--; - - after(grammarAccess.getTransitionRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleTransition" - - - // $ANTLR start "ruleTransition" - // InternalStatemachine.g:192:1: ruleTransition : ( ( rule__Transition__Group__0 ) ) ; - public final void ruleTransition() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:196:2: ( ( ( rule__Transition__Group__0 ) ) ) - // InternalStatemachine.g:197:2: ( ( rule__Transition__Group__0 ) ) - { - // InternalStatemachine.g:197:2: ( ( rule__Transition__Group__0 ) ) - // InternalStatemachine.g:198:3: ( rule__Transition__Group__0 ) - { - before(grammarAccess.getTransitionAccess().getGroup()); - // InternalStatemachine.g:199:3: ( rule__Transition__Group__0 ) - // InternalStatemachine.g:199:4: rule__Transition__Group__0 - { - pushFollow(FOLLOW_2); - rule__Transition__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getTransitionAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleTransition" - - - // $ANTLR start "entryRuleCondition" - // InternalStatemachine.g:208:1: entryRuleCondition : ruleCondition EOF ; - public final void entryRuleCondition() throws RecognitionException { - try { - // InternalStatemachine.g:209:1: ( ruleCondition EOF ) - // InternalStatemachine.g:210:1: ruleCondition EOF - { - before(grammarAccess.getConditionRule()); - pushFollow(FOLLOW_1); - ruleCondition(); - - state._fsp--; - - after(grammarAccess.getConditionRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleCondition" - - - // $ANTLR start "ruleCondition" - // InternalStatemachine.g:217:1: ruleCondition : ( ( rule__Condition__Group__0 ) ) ; - public final void ruleCondition() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:221:2: ( ( ( rule__Condition__Group__0 ) ) ) - // InternalStatemachine.g:222:2: ( ( rule__Condition__Group__0 ) ) - { - // InternalStatemachine.g:222:2: ( ( rule__Condition__Group__0 ) ) - // InternalStatemachine.g:223:3: ( rule__Condition__Group__0 ) - { - before(grammarAccess.getConditionAccess().getGroup()); - // InternalStatemachine.g:224:3: ( rule__Condition__Group__0 ) - // InternalStatemachine.g:224:4: rule__Condition__Group__0 - { - pushFollow(FOLLOW_2); - rule__Condition__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getConditionAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleCondition" - - - // $ANTLR start "entryRuleEvent" - // InternalStatemachine.g:233:1: entryRuleEvent : ruleEvent EOF ; - public final void entryRuleEvent() throws RecognitionException { - try { - // InternalStatemachine.g:234:1: ( ruleEvent EOF ) - // InternalStatemachine.g:235:1: ruleEvent EOF - { - before(grammarAccess.getEventRule()); - pushFollow(FOLLOW_1); - ruleEvent(); - - state._fsp--; - - after(grammarAccess.getEventRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleEvent" - - - // $ANTLR start "ruleEvent" - // InternalStatemachine.g:242:1: ruleEvent : ( ( rule__Event__Group__0 ) ) ; - public final void ruleEvent() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:246:2: ( ( ( rule__Event__Group__0 ) ) ) - // InternalStatemachine.g:247:2: ( ( rule__Event__Group__0 ) ) - { - // InternalStatemachine.g:247:2: ( ( rule__Event__Group__0 ) ) - // InternalStatemachine.g:248:3: ( rule__Event__Group__0 ) - { - before(grammarAccess.getEventAccess().getGroup()); - // InternalStatemachine.g:249:3: ( rule__Event__Group__0 ) - // InternalStatemachine.g:249:4: rule__Event__Group__0 - { - pushFollow(FOLLOW_2); - rule__Event__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getEventAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleEvent" - - - // $ANTLR start "entryRuleCommand" - // InternalStatemachine.g:258:1: entryRuleCommand : ruleCommand EOF ; - public final void entryRuleCommand() throws RecognitionException { - try { - // InternalStatemachine.g:259:1: ( ruleCommand EOF ) - // InternalStatemachine.g:260:1: ruleCommand EOF - { - before(grammarAccess.getCommandRule()); - pushFollow(FOLLOW_1); - ruleCommand(); - - state._fsp--; - - after(grammarAccess.getCommandRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleCommand" - - - // $ANTLR start "ruleCommand" - // InternalStatemachine.g:267:1: ruleCommand : ( ( rule__Command__Group__0 ) ) ; - public final void ruleCommand() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:271:2: ( ( ( rule__Command__Group__0 ) ) ) - // InternalStatemachine.g:272:2: ( ( rule__Command__Group__0 ) ) - { - // InternalStatemachine.g:272:2: ( ( rule__Command__Group__0 ) ) - // InternalStatemachine.g:273:3: ( rule__Command__Group__0 ) - { - before(grammarAccess.getCommandAccess().getGroup()); - // InternalStatemachine.g:274:3: ( rule__Command__Group__0 ) - // InternalStatemachine.g:274:4: rule__Command__Group__0 - { - pushFollow(FOLLOW_2); - rule__Command__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getCommandAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleCommand" - - - // $ANTLR start "entryRuleQualifiedName" - // InternalStatemachine.g:283:1: entryRuleQualifiedName : ruleQualifiedName EOF ; - public final void entryRuleQualifiedName() throws RecognitionException { - try { - // InternalStatemachine.g:284:1: ( ruleQualifiedName EOF ) - // InternalStatemachine.g:285:1: ruleQualifiedName EOF - { - before(grammarAccess.getQualifiedNameRule()); - pushFollow(FOLLOW_1); - ruleQualifiedName(); - - state._fsp--; - - after(grammarAccess.getQualifiedNameRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleQualifiedName" - - - // $ANTLR start "ruleQualifiedName" - // InternalStatemachine.g:292:1: ruleQualifiedName : ( ( rule__QualifiedName__Group__0 ) ) ; - public final void ruleQualifiedName() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:296:2: ( ( ( rule__QualifiedName__Group__0 ) ) ) - // InternalStatemachine.g:297:2: ( ( rule__QualifiedName__Group__0 ) ) - { - // InternalStatemachine.g:297:2: ( ( rule__QualifiedName__Group__0 ) ) - // InternalStatemachine.g:298:3: ( rule__QualifiedName__Group__0 ) - { - before(grammarAccess.getQualifiedNameAccess().getGroup()); - // InternalStatemachine.g:299:3: ( rule__QualifiedName__Group__0 ) - // InternalStatemachine.g:299:4: rule__QualifiedName__Group__0 - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getQualifiedNameAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQualifiedName" - - - // $ANTLR start "rule__Signal__Alternatives_0" - // InternalStatemachine.g:307:1: rule__Signal__Alternatives_0 : ( ( ruleInputSignal ) | ( ruleOutputSignal ) ); - public final void rule__Signal__Alternatives_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:311:1: ( ( ruleInputSignal ) | ( ruleOutputSignal ) ) - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0==13) ) { - alt1=1; - } - else if ( (LA1_0==14) ) { - alt1=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 0, input); - - throw nvae; - } - switch (alt1) { - case 1 : - // InternalStatemachine.g:312:2: ( ruleInputSignal ) - { - // InternalStatemachine.g:312:2: ( ruleInputSignal ) - // InternalStatemachine.g:313:3: ruleInputSignal - { - before(grammarAccess.getSignalAccess().getInputSignalParserRuleCall_0_0()); - pushFollow(FOLLOW_2); - ruleInputSignal(); - - state._fsp--; - - after(grammarAccess.getSignalAccess().getInputSignalParserRuleCall_0_0()); - - } - - - } - break; - case 2 : - // InternalStatemachine.g:318:2: ( ruleOutputSignal ) - { - // InternalStatemachine.g:318:2: ( ruleOutputSignal ) - // InternalStatemachine.g:319:3: ruleOutputSignal - { - before(grammarAccess.getSignalAccess().getOutputSignalParserRuleCall_0_1()); - pushFollow(FOLLOW_2); - ruleOutputSignal(); - - state._fsp--; - - after(grammarAccess.getSignalAccess().getOutputSignalParserRuleCall_0_1()); - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Alternatives_0" - - - // $ANTLR start "rule__Statemachine__Group__0" - // InternalStatemachine.g:328:1: rule__Statemachine__Group__0 : rule__Statemachine__Group__0__Impl rule__Statemachine__Group__1 ; - public final void rule__Statemachine__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:332:1: ( rule__Statemachine__Group__0__Impl rule__Statemachine__Group__1 ) - // InternalStatemachine.g:333:2: rule__Statemachine__Group__0__Impl rule__Statemachine__Group__1 - { - pushFollow(FOLLOW_3); - rule__Statemachine__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Statemachine__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__Group__0" - - - // $ANTLR start "rule__Statemachine__Group__0__Impl" - // InternalStatemachine.g:340:1: rule__Statemachine__Group__0__Impl : ( () ) ; - public final void rule__Statemachine__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:344:1: ( ( () ) ) - // InternalStatemachine.g:345:1: ( () ) - { - // InternalStatemachine.g:345:1: ( () ) - // InternalStatemachine.g:346:2: () - { - before(grammarAccess.getStatemachineAccess().getStatemachineAction_0()); - // InternalStatemachine.g:347:2: () - // InternalStatemachine.g:347:3: - { - } - - after(grammarAccess.getStatemachineAccess().getStatemachineAction_0()); - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__Group__0__Impl" - - - // $ANTLR start "rule__Statemachine__Group__1" - // InternalStatemachine.g:355:1: rule__Statemachine__Group__1 : rule__Statemachine__Group__1__Impl rule__Statemachine__Group__2 ; - public final void rule__Statemachine__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:359:1: ( rule__Statemachine__Group__1__Impl rule__Statemachine__Group__2 ) - // InternalStatemachine.g:360:2: rule__Statemachine__Group__1__Impl rule__Statemachine__Group__2 - { - pushFollow(FOLLOW_3); - rule__Statemachine__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Statemachine__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__Group__1" - - - // $ANTLR start "rule__Statemachine__Group__1__Impl" - // InternalStatemachine.g:367:1: rule__Statemachine__Group__1__Impl : ( ( rule__Statemachine__SignalsAssignment_1 )* ) ; - public final void rule__Statemachine__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:371:1: ( ( ( rule__Statemachine__SignalsAssignment_1 )* ) ) - // InternalStatemachine.g:372:1: ( ( rule__Statemachine__SignalsAssignment_1 )* ) - { - // InternalStatemachine.g:372:1: ( ( rule__Statemachine__SignalsAssignment_1 )* ) - // InternalStatemachine.g:373:2: ( rule__Statemachine__SignalsAssignment_1 )* - { - before(grammarAccess.getStatemachineAccess().getSignalsAssignment_1()); - // InternalStatemachine.g:374:2: ( rule__Statemachine__SignalsAssignment_1 )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( ((LA2_0>=13 && LA2_0<=14)) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalStatemachine.g:374:3: rule__Statemachine__SignalsAssignment_1 - { - pushFollow(FOLLOW_4); - rule__Statemachine__SignalsAssignment_1(); - - state._fsp--; - - - } - break; - - default : - break loop2; - } - } while (true); - - after(grammarAccess.getStatemachineAccess().getSignalsAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__Group__1__Impl" - - - // $ANTLR start "rule__Statemachine__Group__2" - // InternalStatemachine.g:382:1: rule__Statemachine__Group__2 : rule__Statemachine__Group__2__Impl ; - public final void rule__Statemachine__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:386:1: ( rule__Statemachine__Group__2__Impl ) - // InternalStatemachine.g:387:2: rule__Statemachine__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__Statemachine__Group__2__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__Group__2" - - - // $ANTLR start "rule__Statemachine__Group__2__Impl" - // InternalStatemachine.g:393:1: rule__Statemachine__Group__2__Impl : ( ( rule__Statemachine__StatesAssignment_2 )* ) ; - public final void rule__Statemachine__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:397:1: ( ( ( rule__Statemachine__StatesAssignment_2 )* ) ) - // InternalStatemachine.g:398:1: ( ( rule__Statemachine__StatesAssignment_2 )* ) - { - // InternalStatemachine.g:398:1: ( ( rule__Statemachine__StatesAssignment_2 )* ) - // InternalStatemachine.g:399:2: ( rule__Statemachine__StatesAssignment_2 )* - { - before(grammarAccess.getStatemachineAccess().getStatesAssignment_2()); - // InternalStatemachine.g:400:2: ( rule__Statemachine__StatesAssignment_2 )* - loop3: - do { - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0==15) ) { - alt3=1; - } - - - switch (alt3) { - case 1 : - // InternalStatemachine.g:400:3: rule__Statemachine__StatesAssignment_2 - { - pushFollow(FOLLOW_5); - rule__Statemachine__StatesAssignment_2(); - - state._fsp--; - - - } - break; - - default : - break loop3; - } - } while (true); - - after(grammarAccess.getStatemachineAccess().getStatesAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__Group__2__Impl" - - - // $ANTLR start "rule__Signal__Group__0" - // InternalStatemachine.g:409:1: rule__Signal__Group__0 : rule__Signal__Group__0__Impl rule__Signal__Group__1 ; - public final void rule__Signal__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:413:1: ( rule__Signal__Group__0__Impl rule__Signal__Group__1 ) - // InternalStatemachine.g:414:2: rule__Signal__Group__0__Impl rule__Signal__Group__1 - { - pushFollow(FOLLOW_6); - rule__Signal__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Signal__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Group__0" - - - // $ANTLR start "rule__Signal__Group__0__Impl" - // InternalStatemachine.g:421:1: rule__Signal__Group__0__Impl : ( ( rule__Signal__Alternatives_0 ) ) ; - public final void rule__Signal__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:425:1: ( ( ( rule__Signal__Alternatives_0 ) ) ) - // InternalStatemachine.g:426:1: ( ( rule__Signal__Alternatives_0 ) ) - { - // InternalStatemachine.g:426:1: ( ( rule__Signal__Alternatives_0 ) ) - // InternalStatemachine.g:427:2: ( rule__Signal__Alternatives_0 ) - { - before(grammarAccess.getSignalAccess().getAlternatives_0()); - // InternalStatemachine.g:428:2: ( rule__Signal__Alternatives_0 ) - // InternalStatemachine.g:428:3: rule__Signal__Alternatives_0 - { - pushFollow(FOLLOW_2); - rule__Signal__Alternatives_0(); - - state._fsp--; - - - } - - after(grammarAccess.getSignalAccess().getAlternatives_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Group__0__Impl" - - - // $ANTLR start "rule__Signal__Group__1" - // InternalStatemachine.g:436:1: rule__Signal__Group__1 : rule__Signal__Group__1__Impl rule__Signal__Group__2 ; - public final void rule__Signal__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:440:1: ( rule__Signal__Group__1__Impl rule__Signal__Group__2 ) - // InternalStatemachine.g:441:2: rule__Signal__Group__1__Impl rule__Signal__Group__2 - { - pushFollow(FOLLOW_7); - rule__Signal__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Signal__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Group__1" - - - // $ANTLR start "rule__Signal__Group__1__Impl" - // InternalStatemachine.g:448:1: rule__Signal__Group__1__Impl : ( 'signal' ) ; - public final void rule__Signal__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:452:1: ( ( 'signal' ) ) - // InternalStatemachine.g:453:1: ( 'signal' ) - { - // InternalStatemachine.g:453:1: ( 'signal' ) - // InternalStatemachine.g:454:2: 'signal' - { - before(grammarAccess.getSignalAccess().getSignalKeyword_1()); - match(input,12,FOLLOW_2); - after(grammarAccess.getSignalAccess().getSignalKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Group__1__Impl" - - - // $ANTLR start "rule__Signal__Group__2" - // InternalStatemachine.g:463:1: rule__Signal__Group__2 : rule__Signal__Group__2__Impl ; - public final void rule__Signal__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:467:1: ( rule__Signal__Group__2__Impl ) - // InternalStatemachine.g:468:2: rule__Signal__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__Signal__Group__2__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Group__2" - - - // $ANTLR start "rule__Signal__Group__2__Impl" - // InternalStatemachine.g:474:1: rule__Signal__Group__2__Impl : ( ( rule__Signal__NameAssignment_2 ) ) ; - public final void rule__Signal__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:478:1: ( ( ( rule__Signal__NameAssignment_2 ) ) ) - // InternalStatemachine.g:479:1: ( ( rule__Signal__NameAssignment_2 ) ) - { - // InternalStatemachine.g:479:1: ( ( rule__Signal__NameAssignment_2 ) ) - // InternalStatemachine.g:480:2: ( rule__Signal__NameAssignment_2 ) - { - before(grammarAccess.getSignalAccess().getNameAssignment_2()); - // InternalStatemachine.g:481:2: ( rule__Signal__NameAssignment_2 ) - // InternalStatemachine.g:481:3: rule__Signal__NameAssignment_2 - { - pushFollow(FOLLOW_2); - rule__Signal__NameAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getSignalAccess().getNameAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__Group__2__Impl" - - - // $ANTLR start "rule__InputSignal__Group__0" - // InternalStatemachine.g:490:1: rule__InputSignal__Group__0 : rule__InputSignal__Group__0__Impl rule__InputSignal__Group__1 ; - public final void rule__InputSignal__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:494:1: ( rule__InputSignal__Group__0__Impl rule__InputSignal__Group__1 ) - // InternalStatemachine.g:495:2: rule__InputSignal__Group__0__Impl rule__InputSignal__Group__1 - { - pushFollow(FOLLOW_8); - rule__InputSignal__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__InputSignal__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__InputSignal__Group__0" - - - // $ANTLR start "rule__InputSignal__Group__0__Impl" - // InternalStatemachine.g:502:1: rule__InputSignal__Group__0__Impl : ( () ) ; - public final void rule__InputSignal__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:506:1: ( ( () ) ) - // InternalStatemachine.g:507:1: ( () ) - { - // InternalStatemachine.g:507:1: ( () ) - // InternalStatemachine.g:508:2: () - { - before(grammarAccess.getInputSignalAccess().getInputSignalAction_0()); - // InternalStatemachine.g:509:2: () - // InternalStatemachine.g:509:3: - { - } - - after(grammarAccess.getInputSignalAccess().getInputSignalAction_0()); - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__InputSignal__Group__0__Impl" - - - // $ANTLR start "rule__InputSignal__Group__1" - // InternalStatemachine.g:517:1: rule__InputSignal__Group__1 : rule__InputSignal__Group__1__Impl ; - public final void rule__InputSignal__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:521:1: ( rule__InputSignal__Group__1__Impl ) - // InternalStatemachine.g:522:2: rule__InputSignal__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__InputSignal__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__InputSignal__Group__1" - - - // $ANTLR start "rule__InputSignal__Group__1__Impl" - // InternalStatemachine.g:528:1: rule__InputSignal__Group__1__Impl : ( 'input' ) ; - public final void rule__InputSignal__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:532:1: ( ( 'input' ) ) - // InternalStatemachine.g:533:1: ( 'input' ) - { - // InternalStatemachine.g:533:1: ( 'input' ) - // InternalStatemachine.g:534:2: 'input' - { - before(grammarAccess.getInputSignalAccess().getInputKeyword_1()); - match(input,13,FOLLOW_2); - after(grammarAccess.getInputSignalAccess().getInputKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__InputSignal__Group__1__Impl" - - - // $ANTLR start "rule__OutputSignal__Group__0" - // InternalStatemachine.g:544:1: rule__OutputSignal__Group__0 : rule__OutputSignal__Group__0__Impl rule__OutputSignal__Group__1 ; - public final void rule__OutputSignal__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:548:1: ( rule__OutputSignal__Group__0__Impl rule__OutputSignal__Group__1 ) - // InternalStatemachine.g:549:2: rule__OutputSignal__Group__0__Impl rule__OutputSignal__Group__1 - { - pushFollow(FOLLOW_9); - rule__OutputSignal__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__OutputSignal__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OutputSignal__Group__0" - - - // $ANTLR start "rule__OutputSignal__Group__0__Impl" - // InternalStatemachine.g:556:1: rule__OutputSignal__Group__0__Impl : ( () ) ; - public final void rule__OutputSignal__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:560:1: ( ( () ) ) - // InternalStatemachine.g:561:1: ( () ) - { - // InternalStatemachine.g:561:1: ( () ) - // InternalStatemachine.g:562:2: () - { - before(grammarAccess.getOutputSignalAccess().getOutputSignalAction_0()); - // InternalStatemachine.g:563:2: () - // InternalStatemachine.g:563:3: - { - } - - after(grammarAccess.getOutputSignalAccess().getOutputSignalAction_0()); - - } - - - } - - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OutputSignal__Group__0__Impl" - - - // $ANTLR start "rule__OutputSignal__Group__1" - // InternalStatemachine.g:571:1: rule__OutputSignal__Group__1 : rule__OutputSignal__Group__1__Impl ; - public final void rule__OutputSignal__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:575:1: ( rule__OutputSignal__Group__1__Impl ) - // InternalStatemachine.g:576:2: rule__OutputSignal__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__OutputSignal__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OutputSignal__Group__1" - - - // $ANTLR start "rule__OutputSignal__Group__1__Impl" - // InternalStatemachine.g:582:1: rule__OutputSignal__Group__1__Impl : ( 'output' ) ; - public final void rule__OutputSignal__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:586:1: ( ( 'output' ) ) - // InternalStatemachine.g:587:1: ( 'output' ) - { - // InternalStatemachine.g:587:1: ( 'output' ) - // InternalStatemachine.g:588:2: 'output' - { - before(grammarAccess.getOutputSignalAccess().getOutputKeyword_1()); - match(input,14,FOLLOW_2); - after(grammarAccess.getOutputSignalAccess().getOutputKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__OutputSignal__Group__1__Impl" - - - // $ANTLR start "rule__State__Group__0" - // InternalStatemachine.g:598:1: rule__State__Group__0 : rule__State__Group__0__Impl rule__State__Group__1 ; - public final void rule__State__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:602:1: ( rule__State__Group__0__Impl rule__State__Group__1 ) - // InternalStatemachine.g:603:2: rule__State__Group__0__Impl rule__State__Group__1 - { - pushFollow(FOLLOW_7); - rule__State__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__State__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__0" - - - // $ANTLR start "rule__State__Group__0__Impl" - // InternalStatemachine.g:610:1: rule__State__Group__0__Impl : ( 'state' ) ; - public final void rule__State__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:614:1: ( ( 'state' ) ) - // InternalStatemachine.g:615:1: ( 'state' ) - { - // InternalStatemachine.g:615:1: ( 'state' ) - // InternalStatemachine.g:616:2: 'state' - { - before(grammarAccess.getStateAccess().getStateKeyword_0()); - match(input,15,FOLLOW_2); - after(grammarAccess.getStateAccess().getStateKeyword_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__0__Impl" - - - // $ANTLR start "rule__State__Group__1" - // InternalStatemachine.g:625:1: rule__State__Group__1 : rule__State__Group__1__Impl rule__State__Group__2 ; - public final void rule__State__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:629:1: ( rule__State__Group__1__Impl rule__State__Group__2 ) - // InternalStatemachine.g:630:2: rule__State__Group__1__Impl rule__State__Group__2 - { - pushFollow(FOLLOW_10); - rule__State__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__State__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__1" - - - // $ANTLR start "rule__State__Group__1__Impl" - // InternalStatemachine.g:637:1: rule__State__Group__1__Impl : ( ( rule__State__NameAssignment_1 ) ) ; - public final void rule__State__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:641:1: ( ( ( rule__State__NameAssignment_1 ) ) ) - // InternalStatemachine.g:642:1: ( ( rule__State__NameAssignment_1 ) ) - { - // InternalStatemachine.g:642:1: ( ( rule__State__NameAssignment_1 ) ) - // InternalStatemachine.g:643:2: ( rule__State__NameAssignment_1 ) - { - before(grammarAccess.getStateAccess().getNameAssignment_1()); - // InternalStatemachine.g:644:2: ( rule__State__NameAssignment_1 ) - // InternalStatemachine.g:644:3: rule__State__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__State__NameAssignment_1(); - - state._fsp--; - - - } - - after(grammarAccess.getStateAccess().getNameAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__1__Impl" - - - // $ANTLR start "rule__State__Group__2" - // InternalStatemachine.g:652:1: rule__State__Group__2 : rule__State__Group__2__Impl rule__State__Group__3 ; - public final void rule__State__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:656:1: ( rule__State__Group__2__Impl rule__State__Group__3 ) - // InternalStatemachine.g:657:2: rule__State__Group__2__Impl rule__State__Group__3 - { - pushFollow(FOLLOW_10); - rule__State__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__State__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__2" - - - // $ANTLR start "rule__State__Group__2__Impl" - // InternalStatemachine.g:664:1: rule__State__Group__2__Impl : ( ( rule__State__CommandsAssignment_2 )* ) ; - public final void rule__State__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:668:1: ( ( ( rule__State__CommandsAssignment_2 )* ) ) - // InternalStatemachine.g:669:1: ( ( rule__State__CommandsAssignment_2 )* ) - { - // InternalStatemachine.g:669:1: ( ( rule__State__CommandsAssignment_2 )* ) - // InternalStatemachine.g:670:2: ( rule__State__CommandsAssignment_2 )* - { - before(grammarAccess.getStateAccess().getCommandsAssignment_2()); - // InternalStatemachine.g:671:2: ( rule__State__CommandsAssignment_2 )* - loop4: - do { - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==21) ) { - alt4=1; - } - - - switch (alt4) { - case 1 : - // InternalStatemachine.g:671:3: rule__State__CommandsAssignment_2 - { - pushFollow(FOLLOW_11); - rule__State__CommandsAssignment_2(); - - state._fsp--; - - - } - break; - - default : - break loop4; - } - } while (true); - - after(grammarAccess.getStateAccess().getCommandsAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__2__Impl" - - - // $ANTLR start "rule__State__Group__3" - // InternalStatemachine.g:679:1: rule__State__Group__3 : rule__State__Group__3__Impl rule__State__Group__4 ; - public final void rule__State__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:683:1: ( rule__State__Group__3__Impl rule__State__Group__4 ) - // InternalStatemachine.g:684:2: rule__State__Group__3__Impl rule__State__Group__4 - { - pushFollow(FOLLOW_10); - rule__State__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__State__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__3" - - - // $ANTLR start "rule__State__Group__3__Impl" - // InternalStatemachine.g:691:1: rule__State__Group__3__Impl : ( ( rule__State__TransitionsAssignment_3 )* ) ; - public final void rule__State__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:695:1: ( ( ( rule__State__TransitionsAssignment_3 )* ) ) - // InternalStatemachine.g:696:1: ( ( rule__State__TransitionsAssignment_3 )* ) - { - // InternalStatemachine.g:696:1: ( ( rule__State__TransitionsAssignment_3 )* ) - // InternalStatemachine.g:697:2: ( rule__State__TransitionsAssignment_3 )* - { - before(grammarAccess.getStateAccess().getTransitionsAssignment_3()); - // InternalStatemachine.g:698:2: ( rule__State__TransitionsAssignment_3 )* - loop5: - do { - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0==17) ) { - alt5=1; - } - - - switch (alt5) { - case 1 : - // InternalStatemachine.g:698:3: rule__State__TransitionsAssignment_3 - { - pushFollow(FOLLOW_12); - rule__State__TransitionsAssignment_3(); - - state._fsp--; - - - } - break; - - default : - break loop5; - } - } while (true); - - after(grammarAccess.getStateAccess().getTransitionsAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__3__Impl" - - - // $ANTLR start "rule__State__Group__4" - // InternalStatemachine.g:706:1: rule__State__Group__4 : rule__State__Group__4__Impl rule__State__Group__5 ; - public final void rule__State__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:710:1: ( rule__State__Group__4__Impl rule__State__Group__5 ) - // InternalStatemachine.g:711:2: rule__State__Group__4__Impl rule__State__Group__5 - { - pushFollow(FOLLOW_10); - rule__State__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__State__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__4" - - - // $ANTLR start "rule__State__Group__4__Impl" - // InternalStatemachine.g:718:1: rule__State__Group__4__Impl : ( ( rule__State__NestedStatesAssignment_4 )* ) ; - public final void rule__State__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:722:1: ( ( ( rule__State__NestedStatesAssignment_4 )* ) ) - // InternalStatemachine.g:723:1: ( ( rule__State__NestedStatesAssignment_4 )* ) - { - // InternalStatemachine.g:723:1: ( ( rule__State__NestedStatesAssignment_4 )* ) - // InternalStatemachine.g:724:2: ( rule__State__NestedStatesAssignment_4 )* - { - before(grammarAccess.getStateAccess().getNestedStatesAssignment_4()); - // InternalStatemachine.g:725:2: ( rule__State__NestedStatesAssignment_4 )* - loop6: - do { - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0==15) ) { - alt6=1; - } - - - switch (alt6) { - case 1 : - // InternalStatemachine.g:725:3: rule__State__NestedStatesAssignment_4 - { - pushFollow(FOLLOW_5); - rule__State__NestedStatesAssignment_4(); - - state._fsp--; - - - } - break; - - default : - break loop6; - } - } while (true); - - after(grammarAccess.getStateAccess().getNestedStatesAssignment_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__4__Impl" - - - // $ANTLR start "rule__State__Group__5" - // InternalStatemachine.g:733:1: rule__State__Group__5 : rule__State__Group__5__Impl ; - public final void rule__State__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:737:1: ( rule__State__Group__5__Impl ) - // InternalStatemachine.g:738:2: rule__State__Group__5__Impl - { - pushFollow(FOLLOW_2); - rule__State__Group__5__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__5" - - - // $ANTLR start "rule__State__Group__5__Impl" - // InternalStatemachine.g:744:1: rule__State__Group__5__Impl : ( 'end' ) ; - public final void rule__State__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:748:1: ( ( 'end' ) ) - // InternalStatemachine.g:749:1: ( 'end' ) - { - // InternalStatemachine.g:749:1: ( 'end' ) - // InternalStatemachine.g:750:2: 'end' - { - before(grammarAccess.getStateAccess().getEndKeyword_5()); - match(input,16,FOLLOW_2); - after(grammarAccess.getStateAccess().getEndKeyword_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__Group__5__Impl" - - - // $ANTLR start "rule__Transition__Group__0" - // InternalStatemachine.g:760:1: rule__Transition__Group__0 : rule__Transition__Group__0__Impl rule__Transition__Group__1 ; - public final void rule__Transition__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:764:1: ( rule__Transition__Group__0__Impl rule__Transition__Group__1 ) - // InternalStatemachine.g:765:2: rule__Transition__Group__0__Impl rule__Transition__Group__1 - { - pushFollow(FOLLOW_7); - rule__Transition__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Transition__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__0" - - - // $ANTLR start "rule__Transition__Group__0__Impl" - // InternalStatemachine.g:772:1: rule__Transition__Group__0__Impl : ( 'if' ) ; - public final void rule__Transition__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:776:1: ( ( 'if' ) ) - // InternalStatemachine.g:777:1: ( 'if' ) - { - // InternalStatemachine.g:777:1: ( 'if' ) - // InternalStatemachine.g:778:2: 'if' - { - before(grammarAccess.getTransitionAccess().getIfKeyword_0()); - match(input,17,FOLLOW_2); - after(grammarAccess.getTransitionAccess().getIfKeyword_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__0__Impl" - - - // $ANTLR start "rule__Transition__Group__1" - // InternalStatemachine.g:787:1: rule__Transition__Group__1 : rule__Transition__Group__1__Impl rule__Transition__Group__2 ; - public final void rule__Transition__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:791:1: ( rule__Transition__Group__1__Impl rule__Transition__Group__2 ) - // InternalStatemachine.g:792:2: rule__Transition__Group__1__Impl rule__Transition__Group__2 - { - pushFollow(FOLLOW_13); - rule__Transition__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Transition__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__1" - - - // $ANTLR start "rule__Transition__Group__1__Impl" - // InternalStatemachine.g:799:1: rule__Transition__Group__1__Impl : ( ( rule__Transition__ConditionAssignment_1 ) ) ; - public final void rule__Transition__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:803:1: ( ( ( rule__Transition__ConditionAssignment_1 ) ) ) - // InternalStatemachine.g:804:1: ( ( rule__Transition__ConditionAssignment_1 ) ) - { - // InternalStatemachine.g:804:1: ( ( rule__Transition__ConditionAssignment_1 ) ) - // InternalStatemachine.g:805:2: ( rule__Transition__ConditionAssignment_1 ) - { - before(grammarAccess.getTransitionAccess().getConditionAssignment_1()); - // InternalStatemachine.g:806:2: ( rule__Transition__ConditionAssignment_1 ) - // InternalStatemachine.g:806:3: rule__Transition__ConditionAssignment_1 - { - pushFollow(FOLLOW_2); - rule__Transition__ConditionAssignment_1(); - - state._fsp--; - - - } - - after(grammarAccess.getTransitionAccess().getConditionAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__1__Impl" - - - // $ANTLR start "rule__Transition__Group__2" - // InternalStatemachine.g:814:1: rule__Transition__Group__2 : rule__Transition__Group__2__Impl rule__Transition__Group__3 ; - public final void rule__Transition__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:818:1: ( rule__Transition__Group__2__Impl rule__Transition__Group__3 ) - // InternalStatemachine.g:819:2: rule__Transition__Group__2__Impl rule__Transition__Group__3 - { - pushFollow(FOLLOW_7); - rule__Transition__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Transition__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__2" - - - // $ANTLR start "rule__Transition__Group__2__Impl" - // InternalStatemachine.g:826:1: rule__Transition__Group__2__Impl : ( 'goto' ) ; - public final void rule__Transition__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:830:1: ( ( 'goto' ) ) - // InternalStatemachine.g:831:1: ( 'goto' ) - { - // InternalStatemachine.g:831:1: ( 'goto' ) - // InternalStatemachine.g:832:2: 'goto' - { - before(grammarAccess.getTransitionAccess().getGotoKeyword_2()); - match(input,18,FOLLOW_2); - after(grammarAccess.getTransitionAccess().getGotoKeyword_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__2__Impl" - - - // $ANTLR start "rule__Transition__Group__3" - // InternalStatemachine.g:841:1: rule__Transition__Group__3 : rule__Transition__Group__3__Impl ; - public final void rule__Transition__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:845:1: ( rule__Transition__Group__3__Impl ) - // InternalStatemachine.g:846:2: rule__Transition__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__Transition__Group__3__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__3" - - - // $ANTLR start "rule__Transition__Group__3__Impl" - // InternalStatemachine.g:852:1: rule__Transition__Group__3__Impl : ( ( rule__Transition__StateAssignment_3 ) ) ; - public final void rule__Transition__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:856:1: ( ( ( rule__Transition__StateAssignment_3 ) ) ) - // InternalStatemachine.g:857:1: ( ( rule__Transition__StateAssignment_3 ) ) - { - // InternalStatemachine.g:857:1: ( ( rule__Transition__StateAssignment_3 ) ) - // InternalStatemachine.g:858:2: ( rule__Transition__StateAssignment_3 ) - { - before(grammarAccess.getTransitionAccess().getStateAssignment_3()); - // InternalStatemachine.g:859:2: ( rule__Transition__StateAssignment_3 ) - // InternalStatemachine.g:859:3: rule__Transition__StateAssignment_3 - { - pushFollow(FOLLOW_2); - rule__Transition__StateAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getTransitionAccess().getStateAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__Group__3__Impl" - - - // $ANTLR start "rule__Condition__Group__0" - // InternalStatemachine.g:868:1: rule__Condition__Group__0 : rule__Condition__Group__0__Impl rule__Condition__Group__1 ; - public final void rule__Condition__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:872:1: ( rule__Condition__Group__0__Impl rule__Condition__Group__1 ) - // InternalStatemachine.g:873:2: rule__Condition__Group__0__Impl rule__Condition__Group__1 - { - pushFollow(FOLLOW_14); - rule__Condition__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Condition__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group__0" - - - // $ANTLR start "rule__Condition__Group__0__Impl" - // InternalStatemachine.g:880:1: rule__Condition__Group__0__Impl : ( ( rule__Condition__EventsAssignment_0 ) ) ; - public final void rule__Condition__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:884:1: ( ( ( rule__Condition__EventsAssignment_0 ) ) ) - // InternalStatemachine.g:885:1: ( ( rule__Condition__EventsAssignment_0 ) ) - { - // InternalStatemachine.g:885:1: ( ( rule__Condition__EventsAssignment_0 ) ) - // InternalStatemachine.g:886:2: ( rule__Condition__EventsAssignment_0 ) - { - before(grammarAccess.getConditionAccess().getEventsAssignment_0()); - // InternalStatemachine.g:887:2: ( rule__Condition__EventsAssignment_0 ) - // InternalStatemachine.g:887:3: rule__Condition__EventsAssignment_0 - { - pushFollow(FOLLOW_2); - rule__Condition__EventsAssignment_0(); - - state._fsp--; - - - } - - after(grammarAccess.getConditionAccess().getEventsAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group__0__Impl" - - - // $ANTLR start "rule__Condition__Group__1" - // InternalStatemachine.g:895:1: rule__Condition__Group__1 : rule__Condition__Group__1__Impl ; - public final void rule__Condition__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:899:1: ( rule__Condition__Group__1__Impl ) - // InternalStatemachine.g:900:2: rule__Condition__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__Condition__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group__1" - - - // $ANTLR start "rule__Condition__Group__1__Impl" - // InternalStatemachine.g:906:1: rule__Condition__Group__1__Impl : ( ( rule__Condition__Group_1__0 )* ) ; - public final void rule__Condition__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:910:1: ( ( ( rule__Condition__Group_1__0 )* ) ) - // InternalStatemachine.g:911:1: ( ( rule__Condition__Group_1__0 )* ) - { - // InternalStatemachine.g:911:1: ( ( rule__Condition__Group_1__0 )* ) - // InternalStatemachine.g:912:2: ( rule__Condition__Group_1__0 )* - { - before(grammarAccess.getConditionAccess().getGroup_1()); - // InternalStatemachine.g:913:2: ( rule__Condition__Group_1__0 )* - loop7: - do { - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0==19) ) { - alt7=1; - } - - - switch (alt7) { - case 1 : - // InternalStatemachine.g:913:3: rule__Condition__Group_1__0 - { - pushFollow(FOLLOW_15); - rule__Condition__Group_1__0(); - - state._fsp--; - - - } - break; - - default : - break loop7; - } - } while (true); - - after(grammarAccess.getConditionAccess().getGroup_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group__1__Impl" - - - // $ANTLR start "rule__Condition__Group_1__0" - // InternalStatemachine.g:922:1: rule__Condition__Group_1__0 : rule__Condition__Group_1__0__Impl rule__Condition__Group_1__1 ; - public final void rule__Condition__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:926:1: ( rule__Condition__Group_1__0__Impl rule__Condition__Group_1__1 ) - // InternalStatemachine.g:927:2: rule__Condition__Group_1__0__Impl rule__Condition__Group_1__1 - { - pushFollow(FOLLOW_7); - rule__Condition__Group_1__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Condition__Group_1__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group_1__0" - - - // $ANTLR start "rule__Condition__Group_1__0__Impl" - // InternalStatemachine.g:934:1: rule__Condition__Group_1__0__Impl : ( 'and' ) ; - public final void rule__Condition__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:938:1: ( ( 'and' ) ) - // InternalStatemachine.g:939:1: ( 'and' ) - { - // InternalStatemachine.g:939:1: ( 'and' ) - // InternalStatemachine.g:940:2: 'and' - { - before(grammarAccess.getConditionAccess().getAndKeyword_1_0()); - match(input,19,FOLLOW_2); - after(grammarAccess.getConditionAccess().getAndKeyword_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group_1__0__Impl" - - - // $ANTLR start "rule__Condition__Group_1__1" - // InternalStatemachine.g:949:1: rule__Condition__Group_1__1 : rule__Condition__Group_1__1__Impl ; - public final void rule__Condition__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:953:1: ( rule__Condition__Group_1__1__Impl ) - // InternalStatemachine.g:954:2: rule__Condition__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__Condition__Group_1__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group_1__1" - - - // $ANTLR start "rule__Condition__Group_1__1__Impl" - // InternalStatemachine.g:960:1: rule__Condition__Group_1__1__Impl : ( ( rule__Condition__EventsAssignment_1_1 ) ) ; - public final void rule__Condition__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:964:1: ( ( ( rule__Condition__EventsAssignment_1_1 ) ) ) - // InternalStatemachine.g:965:1: ( ( rule__Condition__EventsAssignment_1_1 ) ) - { - // InternalStatemachine.g:965:1: ( ( rule__Condition__EventsAssignment_1_1 ) ) - // InternalStatemachine.g:966:2: ( rule__Condition__EventsAssignment_1_1 ) - { - before(grammarAccess.getConditionAccess().getEventsAssignment_1_1()); - // InternalStatemachine.g:967:2: ( rule__Condition__EventsAssignment_1_1 ) - // InternalStatemachine.g:967:3: rule__Condition__EventsAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__Condition__EventsAssignment_1_1(); - - state._fsp--; - - - } - - after(grammarAccess.getConditionAccess().getEventsAssignment_1_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__Group_1__1__Impl" - - - // $ANTLR start "rule__Event__Group__0" - // InternalStatemachine.g:976:1: rule__Event__Group__0 : rule__Event__Group__0__Impl rule__Event__Group__1 ; - public final void rule__Event__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:980:1: ( rule__Event__Group__0__Impl rule__Event__Group__1 ) - // InternalStatemachine.g:981:2: rule__Event__Group__0__Impl rule__Event__Group__1 - { - pushFollow(FOLLOW_16); - rule__Event__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Event__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__Group__0" - - - // $ANTLR start "rule__Event__Group__0__Impl" - // InternalStatemachine.g:988:1: rule__Event__Group__0__Impl : ( ( rule__Event__SignalAssignment_0 ) ) ; - public final void rule__Event__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:992:1: ( ( ( rule__Event__SignalAssignment_0 ) ) ) - // InternalStatemachine.g:993:1: ( ( rule__Event__SignalAssignment_0 ) ) - { - // InternalStatemachine.g:993:1: ( ( rule__Event__SignalAssignment_0 ) ) - // InternalStatemachine.g:994:2: ( rule__Event__SignalAssignment_0 ) - { - before(grammarAccess.getEventAccess().getSignalAssignment_0()); - // InternalStatemachine.g:995:2: ( rule__Event__SignalAssignment_0 ) - // InternalStatemachine.g:995:3: rule__Event__SignalAssignment_0 - { - pushFollow(FOLLOW_2); - rule__Event__SignalAssignment_0(); - - state._fsp--; - - - } - - after(grammarAccess.getEventAccess().getSignalAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__Group__0__Impl" - - - // $ANTLR start "rule__Event__Group__1" - // InternalStatemachine.g:1003:1: rule__Event__Group__1 : rule__Event__Group__1__Impl rule__Event__Group__2 ; - public final void rule__Event__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1007:1: ( rule__Event__Group__1__Impl rule__Event__Group__2 ) - // InternalStatemachine.g:1008:2: rule__Event__Group__1__Impl rule__Event__Group__2 - { - pushFollow(FOLLOW_17); - rule__Event__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Event__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__Group__1" - - - // $ANTLR start "rule__Event__Group__1__Impl" - // InternalStatemachine.g:1015:1: rule__Event__Group__1__Impl : ( '==' ) ; - public final void rule__Event__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1019:1: ( ( '==' ) ) - // InternalStatemachine.g:1020:1: ( '==' ) - { - // InternalStatemachine.g:1020:1: ( '==' ) - // InternalStatemachine.g:1021:2: '==' - { - before(grammarAccess.getEventAccess().getEqualsSignEqualsSignKeyword_1()); - match(input,20,FOLLOW_2); - after(grammarAccess.getEventAccess().getEqualsSignEqualsSignKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__Group__1__Impl" - - - // $ANTLR start "rule__Event__Group__2" - // InternalStatemachine.g:1030:1: rule__Event__Group__2 : rule__Event__Group__2__Impl ; - public final void rule__Event__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1034:1: ( rule__Event__Group__2__Impl ) - // InternalStatemachine.g:1035:2: rule__Event__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__Event__Group__2__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__Group__2" - - - // $ANTLR start "rule__Event__Group__2__Impl" - // InternalStatemachine.g:1041:1: rule__Event__Group__2__Impl : ( ( rule__Event__ValueAssignment_2 ) ) ; - public final void rule__Event__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1045:1: ( ( ( rule__Event__ValueAssignment_2 ) ) ) - // InternalStatemachine.g:1046:1: ( ( rule__Event__ValueAssignment_2 ) ) - { - // InternalStatemachine.g:1046:1: ( ( rule__Event__ValueAssignment_2 ) ) - // InternalStatemachine.g:1047:2: ( rule__Event__ValueAssignment_2 ) - { - before(grammarAccess.getEventAccess().getValueAssignment_2()); - // InternalStatemachine.g:1048:2: ( rule__Event__ValueAssignment_2 ) - // InternalStatemachine.g:1048:3: rule__Event__ValueAssignment_2 - { - pushFollow(FOLLOW_2); - rule__Event__ValueAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getEventAccess().getValueAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__Group__2__Impl" - - - // $ANTLR start "rule__Command__Group__0" - // InternalStatemachine.g:1057:1: rule__Command__Group__0 : rule__Command__Group__0__Impl rule__Command__Group__1 ; - public final void rule__Command__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1061:1: ( rule__Command__Group__0__Impl rule__Command__Group__1 ) - // InternalStatemachine.g:1062:2: rule__Command__Group__0__Impl rule__Command__Group__1 - { - pushFollow(FOLLOW_7); - rule__Command__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Command__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__0" - - - // $ANTLR start "rule__Command__Group__0__Impl" - // InternalStatemachine.g:1069:1: rule__Command__Group__0__Impl : ( 'set' ) ; - public final void rule__Command__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1073:1: ( ( 'set' ) ) - // InternalStatemachine.g:1074:1: ( 'set' ) - { - // InternalStatemachine.g:1074:1: ( 'set' ) - // InternalStatemachine.g:1075:2: 'set' - { - before(grammarAccess.getCommandAccess().getSetKeyword_0()); - match(input,21,FOLLOW_2); - after(grammarAccess.getCommandAccess().getSetKeyword_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__0__Impl" - - - // $ANTLR start "rule__Command__Group__1" - // InternalStatemachine.g:1084:1: rule__Command__Group__1 : rule__Command__Group__1__Impl rule__Command__Group__2 ; - public final void rule__Command__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1088:1: ( rule__Command__Group__1__Impl rule__Command__Group__2 ) - // InternalStatemachine.g:1089:2: rule__Command__Group__1__Impl rule__Command__Group__2 - { - pushFollow(FOLLOW_18); - rule__Command__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Command__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__1" - - - // $ANTLR start "rule__Command__Group__1__Impl" - // InternalStatemachine.g:1096:1: rule__Command__Group__1__Impl : ( ( rule__Command__SignalAssignment_1 ) ) ; - public final void rule__Command__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1100:1: ( ( ( rule__Command__SignalAssignment_1 ) ) ) - // InternalStatemachine.g:1101:1: ( ( rule__Command__SignalAssignment_1 ) ) - { - // InternalStatemachine.g:1101:1: ( ( rule__Command__SignalAssignment_1 ) ) - // InternalStatemachine.g:1102:2: ( rule__Command__SignalAssignment_1 ) - { - before(grammarAccess.getCommandAccess().getSignalAssignment_1()); - // InternalStatemachine.g:1103:2: ( rule__Command__SignalAssignment_1 ) - // InternalStatemachine.g:1103:3: rule__Command__SignalAssignment_1 - { - pushFollow(FOLLOW_2); - rule__Command__SignalAssignment_1(); - - state._fsp--; - - - } - - after(grammarAccess.getCommandAccess().getSignalAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__1__Impl" - - - // $ANTLR start "rule__Command__Group__2" - // InternalStatemachine.g:1111:1: rule__Command__Group__2 : rule__Command__Group__2__Impl rule__Command__Group__3 ; - public final void rule__Command__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1115:1: ( rule__Command__Group__2__Impl rule__Command__Group__3 ) - // InternalStatemachine.g:1116:2: rule__Command__Group__2__Impl rule__Command__Group__3 - { - pushFollow(FOLLOW_17); - rule__Command__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Command__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__2" - - - // $ANTLR start "rule__Command__Group__2__Impl" - // InternalStatemachine.g:1123:1: rule__Command__Group__2__Impl : ( '=' ) ; - public final void rule__Command__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1127:1: ( ( '=' ) ) - // InternalStatemachine.g:1128:1: ( '=' ) - { - // InternalStatemachine.g:1128:1: ( '=' ) - // InternalStatemachine.g:1129:2: '=' - { - before(grammarAccess.getCommandAccess().getEqualsSignKeyword_2()); - match(input,22,FOLLOW_2); - after(grammarAccess.getCommandAccess().getEqualsSignKeyword_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__2__Impl" - - - // $ANTLR start "rule__Command__Group__3" - // InternalStatemachine.g:1138:1: rule__Command__Group__3 : rule__Command__Group__3__Impl ; - public final void rule__Command__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1142:1: ( rule__Command__Group__3__Impl ) - // InternalStatemachine.g:1143:2: rule__Command__Group__3__Impl - { - pushFollow(FOLLOW_2); - rule__Command__Group__3__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__3" - - - // $ANTLR start "rule__Command__Group__3__Impl" - // InternalStatemachine.g:1149:1: rule__Command__Group__3__Impl : ( ( rule__Command__NewValueAssignment_3 ) ) ; - public final void rule__Command__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1153:1: ( ( ( rule__Command__NewValueAssignment_3 ) ) ) - // InternalStatemachine.g:1154:1: ( ( rule__Command__NewValueAssignment_3 ) ) - { - // InternalStatemachine.g:1154:1: ( ( rule__Command__NewValueAssignment_3 ) ) - // InternalStatemachine.g:1155:2: ( rule__Command__NewValueAssignment_3 ) - { - before(grammarAccess.getCommandAccess().getNewValueAssignment_3()); - // InternalStatemachine.g:1156:2: ( rule__Command__NewValueAssignment_3 ) - // InternalStatemachine.g:1156:3: rule__Command__NewValueAssignment_3 - { - pushFollow(FOLLOW_2); - rule__Command__NewValueAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getCommandAccess().getNewValueAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__Group__3__Impl" - - - // $ANTLR start "rule__QualifiedName__Group__0" - // InternalStatemachine.g:1165:1: rule__QualifiedName__Group__0 : rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ; - public final void rule__QualifiedName__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1169:1: ( rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 ) - // InternalStatemachine.g:1170:2: rule__QualifiedName__Group__0__Impl rule__QualifiedName__Group__1 - { - pushFollow(FOLLOW_19); - rule__QualifiedName__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QualifiedName__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__0" - - - // $ANTLR start "rule__QualifiedName__Group__0__Impl" - // InternalStatemachine.g:1177:1: rule__QualifiedName__Group__0__Impl : ( RULE_ID ) ; - public final void rule__QualifiedName__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1181:1: ( ( RULE_ID ) ) - // InternalStatemachine.g:1182:1: ( RULE_ID ) - { - // InternalStatemachine.g:1182:1: ( RULE_ID ) - // InternalStatemachine.g:1183:2: RULE_ID - { - before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__0__Impl" - - - // $ANTLR start "rule__QualifiedName__Group__1" - // InternalStatemachine.g:1192:1: rule__QualifiedName__Group__1 : rule__QualifiedName__Group__1__Impl ; - public final void rule__QualifiedName__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1196:1: ( rule__QualifiedName__Group__1__Impl ) - // InternalStatemachine.g:1197:2: rule__QualifiedName__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__1" - - - // $ANTLR start "rule__QualifiedName__Group__1__Impl" - // InternalStatemachine.g:1203:1: rule__QualifiedName__Group__1__Impl : ( ( rule__QualifiedName__Group_1__0 )* ) ; - public final void rule__QualifiedName__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1207:1: ( ( ( rule__QualifiedName__Group_1__0 )* ) ) - // InternalStatemachine.g:1208:1: ( ( rule__QualifiedName__Group_1__0 )* ) - { - // InternalStatemachine.g:1208:1: ( ( rule__QualifiedName__Group_1__0 )* ) - // InternalStatemachine.g:1209:2: ( rule__QualifiedName__Group_1__0 )* - { - before(grammarAccess.getQualifiedNameAccess().getGroup_1()); - // InternalStatemachine.g:1210:2: ( rule__QualifiedName__Group_1__0 )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==23) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalStatemachine.g:1210:3: rule__QualifiedName__Group_1__0 - { - pushFollow(FOLLOW_20); - rule__QualifiedName__Group_1__0(); - - state._fsp--; - - - } - break; - - default : - break loop8; - } - } while (true); - - after(grammarAccess.getQualifiedNameAccess().getGroup_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group__1__Impl" - - - // $ANTLR start "rule__QualifiedName__Group_1__0" - // InternalStatemachine.g:1219:1: rule__QualifiedName__Group_1__0 : rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 ; - public final void rule__QualifiedName__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1223:1: ( rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 ) - // InternalStatemachine.g:1224:2: rule__QualifiedName__Group_1__0__Impl rule__QualifiedName__Group_1__1 - { - pushFollow(FOLLOW_7); - rule__QualifiedName__Group_1__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QualifiedName__Group_1__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__0" - - - // $ANTLR start "rule__QualifiedName__Group_1__0__Impl" - // InternalStatemachine.g:1231:1: rule__QualifiedName__Group_1__0__Impl : ( '.' ) ; - public final void rule__QualifiedName__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1235:1: ( ( '.' ) ) - // InternalStatemachine.g:1236:1: ( '.' ) - { - // InternalStatemachine.g:1236:1: ( '.' ) - // InternalStatemachine.g:1237:2: '.' - { - before(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - match(input,23,FOLLOW_2); - after(grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__0__Impl" - - - // $ANTLR start "rule__QualifiedName__Group_1__1" - // InternalStatemachine.g:1246:1: rule__QualifiedName__Group_1__1 : rule__QualifiedName__Group_1__1__Impl ; - public final void rule__QualifiedName__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1250:1: ( rule__QualifiedName__Group_1__1__Impl ) - // InternalStatemachine.g:1251:2: rule__QualifiedName__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedName__Group_1__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__1" - - - // $ANTLR start "rule__QualifiedName__Group_1__1__Impl" - // InternalStatemachine.g:1257:1: rule__QualifiedName__Group_1__1__Impl : ( RULE_ID ) ; - public final void rule__QualifiedName__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1261:1: ( ( RULE_ID ) ) - // InternalStatemachine.g:1262:1: ( RULE_ID ) - { - // InternalStatemachine.g:1262:1: ( RULE_ID ) - // InternalStatemachine.g:1263:2: RULE_ID - { - before(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedName__Group_1__1__Impl" - - - // $ANTLR start "rule__Statemachine__SignalsAssignment_1" - // InternalStatemachine.g:1273:1: rule__Statemachine__SignalsAssignment_1 : ( ruleSignal ) ; - public final void rule__Statemachine__SignalsAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1277:1: ( ( ruleSignal ) ) - // InternalStatemachine.g:1278:2: ( ruleSignal ) - { - // InternalStatemachine.g:1278:2: ( ruleSignal ) - // InternalStatemachine.g:1279:3: ruleSignal - { - before(grammarAccess.getStatemachineAccess().getSignalsSignalParserRuleCall_1_0()); - pushFollow(FOLLOW_2); - ruleSignal(); - - state._fsp--; - - after(grammarAccess.getStatemachineAccess().getSignalsSignalParserRuleCall_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__SignalsAssignment_1" - - - // $ANTLR start "rule__Statemachine__StatesAssignment_2" - // InternalStatemachine.g:1288:1: rule__Statemachine__StatesAssignment_2 : ( ruleState ) ; - public final void rule__Statemachine__StatesAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1292:1: ( ( ruleState ) ) - // InternalStatemachine.g:1293:2: ( ruleState ) - { - // InternalStatemachine.g:1293:2: ( ruleState ) - // InternalStatemachine.g:1294:3: ruleState - { - before(grammarAccess.getStatemachineAccess().getStatesStateParserRuleCall_2_0()); - pushFollow(FOLLOW_2); - ruleState(); - - state._fsp--; - - after(grammarAccess.getStatemachineAccess().getStatesStateParserRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Statemachine__StatesAssignment_2" - - - // $ANTLR start "rule__Signal__NameAssignment_2" - // InternalStatemachine.g:1303:1: rule__Signal__NameAssignment_2 : ( RULE_ID ) ; - public final void rule__Signal__NameAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1307:1: ( ( RULE_ID ) ) - // InternalStatemachine.g:1308:2: ( RULE_ID ) - { - // InternalStatemachine.g:1308:2: ( RULE_ID ) - // InternalStatemachine.g:1309:3: RULE_ID - { - before(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Signal__NameAssignment_2" - - - // $ANTLR start "rule__State__NameAssignment_1" - // InternalStatemachine.g:1318:1: rule__State__NameAssignment_1 : ( RULE_ID ) ; - public final void rule__State__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1322:1: ( ( RULE_ID ) ) - // InternalStatemachine.g:1323:2: ( RULE_ID ) - { - // InternalStatemachine.g:1323:2: ( RULE_ID ) - // InternalStatemachine.g:1324:3: RULE_ID - { - before(grammarAccess.getStateAccess().getNameIDTerminalRuleCall_1_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getStateAccess().getNameIDTerminalRuleCall_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__NameAssignment_1" - - - // $ANTLR start "rule__State__CommandsAssignment_2" - // InternalStatemachine.g:1333:1: rule__State__CommandsAssignment_2 : ( ruleCommand ) ; - public final void rule__State__CommandsAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1337:1: ( ( ruleCommand ) ) - // InternalStatemachine.g:1338:2: ( ruleCommand ) - { - // InternalStatemachine.g:1338:2: ( ruleCommand ) - // InternalStatemachine.g:1339:3: ruleCommand - { - before(grammarAccess.getStateAccess().getCommandsCommandParserRuleCall_2_0()); - pushFollow(FOLLOW_2); - ruleCommand(); - - state._fsp--; - - after(grammarAccess.getStateAccess().getCommandsCommandParserRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__CommandsAssignment_2" - - - // $ANTLR start "rule__State__TransitionsAssignment_3" - // InternalStatemachine.g:1348:1: rule__State__TransitionsAssignment_3 : ( ruleTransition ) ; - public final void rule__State__TransitionsAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1352:1: ( ( ruleTransition ) ) - // InternalStatemachine.g:1353:2: ( ruleTransition ) - { - // InternalStatemachine.g:1353:2: ( ruleTransition ) - // InternalStatemachine.g:1354:3: ruleTransition - { - before(grammarAccess.getStateAccess().getTransitionsTransitionParserRuleCall_3_0()); - pushFollow(FOLLOW_2); - ruleTransition(); - - state._fsp--; - - after(grammarAccess.getStateAccess().getTransitionsTransitionParserRuleCall_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__TransitionsAssignment_3" - - - // $ANTLR start "rule__State__NestedStatesAssignment_4" - // InternalStatemachine.g:1363:1: rule__State__NestedStatesAssignment_4 : ( ruleState ) ; - public final void rule__State__NestedStatesAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1367:1: ( ( ruleState ) ) - // InternalStatemachine.g:1368:2: ( ruleState ) - { - // InternalStatemachine.g:1368:2: ( ruleState ) - // InternalStatemachine.g:1369:3: ruleState - { - before(grammarAccess.getStateAccess().getNestedStatesStateParserRuleCall_4_0()); - pushFollow(FOLLOW_2); - ruleState(); - - state._fsp--; - - after(grammarAccess.getStateAccess().getNestedStatesStateParserRuleCall_4_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__State__NestedStatesAssignment_4" - - - // $ANTLR start "rule__Transition__ConditionAssignment_1" - // InternalStatemachine.g:1378:1: rule__Transition__ConditionAssignment_1 : ( ruleCondition ) ; - public final void rule__Transition__ConditionAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1382:1: ( ( ruleCondition ) ) - // InternalStatemachine.g:1383:2: ( ruleCondition ) - { - // InternalStatemachine.g:1383:2: ( ruleCondition ) - // InternalStatemachine.g:1384:3: ruleCondition - { - before(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0()); - pushFollow(FOLLOW_2); - ruleCondition(); - - state._fsp--; - - after(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__ConditionAssignment_1" - - - // $ANTLR start "rule__Transition__StateAssignment_3" - // InternalStatemachine.g:1393:1: rule__Transition__StateAssignment_3 : ( ( ruleQualifiedName ) ) ; - public final void rule__Transition__StateAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1397:1: ( ( ( ruleQualifiedName ) ) ) - // InternalStatemachine.g:1398:2: ( ( ruleQualifiedName ) ) - { - // InternalStatemachine.g:1398:2: ( ( ruleQualifiedName ) ) - // InternalStatemachine.g:1399:3: ( ruleQualifiedName ) - { - before(grammarAccess.getTransitionAccess().getStateStateCrossReference_3_0()); - // InternalStatemachine.g:1400:3: ( ruleQualifiedName ) - // InternalStatemachine.g:1401:4: ruleQualifiedName - { - before(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1()); - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - - after(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1()); - - } - - after(grammarAccess.getTransitionAccess().getStateStateCrossReference_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Transition__StateAssignment_3" - - - // $ANTLR start "rule__Condition__EventsAssignment_0" - // InternalStatemachine.g:1412:1: rule__Condition__EventsAssignment_0 : ( ruleEvent ) ; - public final void rule__Condition__EventsAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1416:1: ( ( ruleEvent ) ) - // InternalStatemachine.g:1417:2: ( ruleEvent ) - { - // InternalStatemachine.g:1417:2: ( ruleEvent ) - // InternalStatemachine.g:1418:3: ruleEvent - { - before(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_0_0()); - pushFollow(FOLLOW_2); - ruleEvent(); - - state._fsp--; - - after(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__EventsAssignment_0" - - - // $ANTLR start "rule__Condition__EventsAssignment_1_1" - // InternalStatemachine.g:1427:1: rule__Condition__EventsAssignment_1_1 : ( ruleEvent ) ; - public final void rule__Condition__EventsAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1431:1: ( ( ruleEvent ) ) - // InternalStatemachine.g:1432:2: ( ruleEvent ) - { - // InternalStatemachine.g:1432:2: ( ruleEvent ) - // InternalStatemachine.g:1433:3: ruleEvent - { - before(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_1_1_0()); - pushFollow(FOLLOW_2); - ruleEvent(); - - state._fsp--; - - after(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_1_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Condition__EventsAssignment_1_1" - - - // $ANTLR start "rule__Event__SignalAssignment_0" - // InternalStatemachine.g:1442:1: rule__Event__SignalAssignment_0 : ( ( RULE_ID ) ) ; - public final void rule__Event__SignalAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1446:1: ( ( ( RULE_ID ) ) ) - // InternalStatemachine.g:1447:2: ( ( RULE_ID ) ) - { - // InternalStatemachine.g:1447:2: ( ( RULE_ID ) ) - // InternalStatemachine.g:1448:3: ( RULE_ID ) - { - before(grammarAccess.getEventAccess().getSignalSignalCrossReference_0_0()); - // InternalStatemachine.g:1449:3: ( RULE_ID ) - // InternalStatemachine.g:1450:4: RULE_ID - { - before(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1()); - - } - - after(grammarAccess.getEventAccess().getSignalSignalCrossReference_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__SignalAssignment_0" - - - // $ANTLR start "rule__Event__ValueAssignment_2" - // InternalStatemachine.g:1461:1: rule__Event__ValueAssignment_2 : ( RULE_BOOLEAN ) ; - public final void rule__Event__ValueAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1465:1: ( ( RULE_BOOLEAN ) ) - // InternalStatemachine.g:1466:2: ( RULE_BOOLEAN ) - { - // InternalStatemachine.g:1466:2: ( RULE_BOOLEAN ) - // InternalStatemachine.g:1467:3: RULE_BOOLEAN - { - before(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0()); - match(input,RULE_BOOLEAN,FOLLOW_2); - after(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Event__ValueAssignment_2" - - - // $ANTLR start "rule__Command__SignalAssignment_1" - // InternalStatemachine.g:1476:1: rule__Command__SignalAssignment_1 : ( ( RULE_ID ) ) ; - public final void rule__Command__SignalAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1480:1: ( ( ( RULE_ID ) ) ) - // InternalStatemachine.g:1481:2: ( ( RULE_ID ) ) - { - // InternalStatemachine.g:1481:2: ( ( RULE_ID ) ) - // InternalStatemachine.g:1482:3: ( RULE_ID ) - { - before(grammarAccess.getCommandAccess().getSignalSignalCrossReference_1_0()); - // InternalStatemachine.g:1483:3: ( RULE_ID ) - // InternalStatemachine.g:1484:4: RULE_ID - { - before(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1()); - - } - - after(grammarAccess.getCommandAccess().getSignalSignalCrossReference_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__SignalAssignment_1" - - - // $ANTLR start "rule__Command__NewValueAssignment_3" - // InternalStatemachine.g:1495:1: rule__Command__NewValueAssignment_3 : ( RULE_BOOLEAN ) ; - public final void rule__Command__NewValueAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalStatemachine.g:1499:1: ( ( RULE_BOOLEAN ) ) - // InternalStatemachine.g:1500:2: ( RULE_BOOLEAN ) - { - // InternalStatemachine.g:1500:2: ( RULE_BOOLEAN ) - // InternalStatemachine.g:1501:3: RULE_BOOLEAN - { - before(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0()); - match(input,RULE_BOOLEAN,FOLLOW_2); - after(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Command__NewValueAssignment_3" - - // Delegated rules - - - - - public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x000000000000E000L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000006002L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000008002L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000001000L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000002000L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000006000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000238000L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000200002L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000020002L}); - public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000040000L}); - public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000080000L}); - public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000080002L}); - public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000100000L}); - public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000400000L}); - public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000000800000L}); - public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000800002L}); - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineIdeModule.java b/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineIdeModule.java deleted file mode 100644 index 63f964f1391..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineIdeModule.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.ide; - -import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalProvider; -import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator; -import org.eclipse.xtext.ide.labels.IImageDescriptionProvider; - -/** - * Use this class to register ide components. - */ -public class StatemachineIdeModule extends AbstractStatemachineIdeModule { - public Class bindIdeContentProposalProvider() { - return StatemachineWebContentProposalProvider.class; - } - - public Class bindIImageDescriptionProvider() { - return StatemachineImageDescriptionProvider.class; - } - - public Class bindISemanticHighlightingCalculator() { - return StatemachineSemanticHighlightingCalculator.class; - } -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineIdeSetup.java b/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineIdeSetup.java deleted file mode 100644 index 1da35fc43ba..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineIdeSetup.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.ide; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.xtext.util.Modules2; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.example.statemachine.StatemachineStandaloneSetup; - -/** - * Initialization support for running Xtext languages as language servers. - */ -public class StatemachineIdeSetup extends StatemachineStandaloneSetup { - - @Override - public Injector createInjector() { - return Guice.createInjector(Modules2.mixin(new StatemachineRuntimeModule(), new StatemachineIdeModule())); - } - -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineImageDescriptionProvider.java b/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineImageDescriptionProvider.java deleted file mode 100644 index 2d749764328..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineImageDescriptionProvider.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.ide; - -import org.eclipse.xtext.ide.labels.DecoratedImageDescription; -import org.eclipse.xtext.ide.labels.EClassImageDescriptionProvider; -import org.eclipse.xtext.ide.labels.IImageDescription; -import org.eclipse.xtext.ide.labels.SimpleImageDescription; -import org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal; - -public class StatemachineImageDescriptionProvider extends EClassImageDescriptionProvider { - @Override - public IImageDescription getImageDescription(Object element) { - IImageDescription baseImage = super.getImageDescription(element); - if (element instanceof OutputSignal) { - return new DecoratedImageDescription(baseImage, new SimpleImageDescription("output")); - } else { - return baseImage; - } - } -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineSemanticHighlightingCalculator.java b/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineSemanticHighlightingCalculator.java deleted file mode 100644 index 7936bb41f9e..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineSemanticHighlightingCalculator.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.ide; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.xtext.ide.editor.syntaxcoloring.DefaultSemanticHighlightingCalculator; -import org.eclipse.xtext.ide.editor.syntaxcoloring.IHighlightedPositionAcceptor; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.nodemodel.util.NodeModelUtils; -import org.eclipse.xtext.service.OperationCanceledManager; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -import com.google.inject.Inject; - -public class StatemachineSemanticHighlightingCalculator extends DefaultSemanticHighlightingCalculator { - @Inject - private OperationCanceledManager operationCanceledManager; - - @Override - protected boolean highlightElement(EObject o, IHighlightedPositionAcceptor acceptor, - CancelIndicator cancelIndicator) { - if (o instanceof Signal) { - highlightSignal(o, (Signal) o, StatemachinePackage.Literals.SIGNAL__NAME, acceptor, cancelIndicator); - } else if (o instanceof Command) { - highlightSignal(o, ((Command) o).getSignal(), StatemachinePackage.Literals.COMMAND__SIGNAL, acceptor, - cancelIndicator); - } else if (o instanceof Event) { - highlightSignal(o, ((Event) o).getSignal(), StatemachinePackage.Literals.EVENT__SIGNAL, acceptor, - cancelIndicator); - } - return false; - } - - protected void highlightSignal(EObject owner, Signal signal, EStructuralFeature feature, - IHighlightedPositionAcceptor acceptor, CancelIndicator cancelIndicator) { - operationCanceledManager.checkCanceled(cancelIndicator); - for (INode n : NodeModelUtils.findNodesForFeature(owner, feature)) { - acceptor.addPosition(n.getOffset(), n.getLength(), signal.eClass().getName()); - } - } -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineTemplateProposalProvider.java b/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineTemplateProposalProvider.java deleted file mode 100644 index ed8b360b26f..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineTemplateProposalProvider.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Copyright (c) 2016, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.ide; - -import org.eclipse.xtend2.lib.StringConcatenationClient; -import org.eclipse.xtext.ide.editor.contentassist.AbstractIdeTemplateProposalProvider; -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistContext; -import org.eclipse.xtext.ide.editor.contentassist.IIdeContentProposalAcceptor; - -public class StatemachineTemplateProposalProvider extends AbstractIdeTemplateProposalProvider { - public void createStateProposal(ContentAssistContext context, IIdeContentProposalAcceptor acceptor) { - StringConcatenationClient template = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation target) { - target.append("state "); - target.append(variable("name")); - target.newLineIfNotEmpty(); - target.append("\t"); - target.append(cursor(), "\t"); - target.newLineIfNotEmpty(); - target.append("end"); - target.newLine(); - } - }; - acceptProposal("state", "Create a new state", template, context, acceptor); - } -} diff --git a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineWebContentProposalProvider.java b/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineWebContentProposalProvider.java deleted file mode 100644 index 18d5ddb9f7e..00000000000 --- a/org.eclipse.xtext.web.example.statemachine.ide/src/org/eclipse/xtext/web/example/statemachine/ide/StatemachineWebContentProposalProvider.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.ide; - -import org.eclipse.xtext.Assignment; -import org.eclipse.xtext.Keyword; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistContext; -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistEntry; -import org.eclipse.xtext.ide.editor.contentassist.IIdeContentProposalAcceptor; -import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalProvider; -import org.eclipse.xtext.resource.IEObjectDescription; -import org.eclipse.xtext.scoping.IScope; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; -import org.eclipse.xtext.xbase.lib.Procedures.Procedure1; - -import com.google.common.collect.Iterables; -import com.google.inject.Inject; - -public class StatemachineWebContentProposalProvider extends IdeContentProposalProvider { - @Inject - private StatemachineGrammarAccess statemachineGrammarAccess; - - @Inject - private StatemachineTemplateProposalProvider templateProvider; - - @Override - protected void _createProposals(RuleCall ruleCall, ContentAssistContext context, - IIdeContentProposalAcceptor acceptor) { - if (ruleCall.getRule() == statemachineGrammarAccess.getBOOLEANRule()) { - if ("true".startsWith(context.getPrefix())) { - ContentAssistEntry trueEntry = getProposalCreator().createProposal("true", context); - acceptor.accept(trueEntry, getProposalPriorities().getDefaultPriority(trueEntry)); - } - if ("false".startsWith(context.getPrefix())) { - ContentAssistEntry falseEntry = getProposalCreator().createProposal("false", context); - acceptor.accept(falseEntry, getProposalPriorities().getDefaultPriority(falseEntry)); - } - } else if (ruleCall.getRule() == statemachineGrammarAccess.getStateRule()) { - templateProvider.createStateProposal(context, acceptor); - } else { - super._createProposals(ruleCall, context, acceptor); - } - } - - @Override - protected void _createProposals(Assignment assignment, ContentAssistContext context, - IIdeContentProposalAcceptor acceptor) { - if (assignment == statemachineGrammarAccess.getEventAccess().getSignalAssignment_0()) { - IScope scope = getScopeProvider().getScope(context.getCurrentModel(), - StatemachinePackage.Literals.EVENT__SIGNAL); - for (IEObjectDescription description : Iterables.filter(scope.getAllElements(), - it -> StatemachinePackage.Literals.INPUT_SIGNAL.equals(it.getEClass()))) { - ContentAssistEntry entry = getProposalCreator().createProposal(description.getName().toString(), - context, new Procedure1() { - @Override - public void apply(ContentAssistEntry it) { - it.setSource(description); - it.setDescription("input signal"); - } - }); - acceptor.accept(entry, getProposalPriorities().getCrossRefPriority(description, entry)); - } - } else if (assignment == statemachineGrammarAccess.getCommandAccess().getSignalAssignment_1()) { - IScope scope = getScopeProvider().getScope(context.getCurrentModel(), - StatemachinePackage.Literals.COMMAND__SIGNAL); - for (IEObjectDescription description_1 : Iterables.filter(scope.getAllElements(), - it -> StatemachinePackage.Literals.OUTPUT_SIGNAL.equals(it.getEClass()))) { - ContentAssistEntry entry = getProposalCreator().createProposal(description_1.getName().toString(), - context, new Procedure1() { - @Override - public void apply(ContentAssistEntry it) { - it.setSource(description_1); - it.setDescription("output signal"); - } - }); - acceptor.accept(entry, getProposalPriorities().getCrossRefPriority(description_1, entry)); - } - } else if (assignment == statemachineGrammarAccess.getEventAccess().getValueAssignment_2() - || assignment == statemachineGrammarAccess.getCommandAccess().getNewValueAssignment_3()) { - // Proposals are created by RuleCall dispatch method - } else { - super._createProposals(assignment, context, acceptor); - } - } - - @Override - protected boolean filterKeyword(Keyword keyword, ContentAssistContext context) { - if (keyword == statemachineGrammarAccess.getStateAccess().getStateKeyword_0()) { - return false; - } - return super.filterKeyword(keyword, context); - } - -} diff --git a/org.eclipse.xtext.web.example.statemachine/.classpath b/org.eclipse.xtext.web.example.statemachine/.classpath deleted file mode 100644 index 826cca67ae3..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/.classpath +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine/.gitignore b/org.eclipse.xtext.web.example.statemachine/.gitignore deleted file mode 100644 index f3f1c4be15a..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.antlr-generator-*.jar diff --git a/org.eclipse.xtext.web.example.statemachine/.project b/org.eclipse.xtext.web.example.statemachine/.project deleted file mode 100644 index 615112a7641..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web.example.statemachine - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index c10c903975a..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding/=ISO-8859-1 -encoding/generator=ISO-8859-1 -encoding/src=ISO-8859-1 -encoding/src-gen=ISO-8859-1 diff --git a/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e77491258d4..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web.example.statemachine/generator/org/eclipse/xtext/web/example/statemachine/StateMachineGeneratorModule.java b/org.eclipse.xtext.web.example.statemachine/generator/org/eclipse/xtext/web/example/statemachine/StateMachineGeneratorModule.java deleted file mode 100644 index 6523f19c8dc..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/generator/org/eclipse/xtext/web/example/statemachine/StateMachineGeneratorModule.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine; - -import org.eclipse.xtext.Grammar; -import org.eclipse.xtext.xtext.generator.DefaultGeneratorModule; -import org.eclipse.xtext.xtext.generator.XtextGeneratorNaming; - -public class StateMachineGeneratorModule extends DefaultGeneratorModule { - - public Class bindNaming() { - return StateMachineGeneratorNaming.class; - } - - public static class StateMachineGeneratorNaming extends XtextGeneratorNaming { - @Override - public String getWebBasePackage(Grammar grammar) { - if (grammar.getName().equals("org.eclipse.xtext.web.example.statemachine.Statemachine")) { - return "org.eclipse.xtext.web.example.jetty"; - } else { - return super.getWebBasePackage(grammar); - } - } - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/model/generated/Statemachine.ecore b/org.eclipse.xtext.web.example.statemachine/model/generated/Statemachine.ecore deleted file mode 100644 index 1210641ec48..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/model/generated/Statemachine.ecore +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine/model/generated/Statemachine.genmodel b/org.eclipse.xtext.web.example.statemachine/model/generated/Statemachine.genmodel deleted file mode 100644 index 10d84664579..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/model/generated/Statemachine.genmodel +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine/pom.xml b/org.eclipse.xtext.web.example.statemachine/pom.xml deleted file mode 100644 index 5b5feaff959..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - org.eclipse.xtext.nodeploy.parent - 2.44.0-SNAPSHOT - ../org.eclipse.xtext.nodeploy.parent - - org.eclipse.xtext.web.example.statemachine - jar - - - - org.eclipse.xtext - org.eclipse.xtext - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xtext.generator - ${project.version} - true - - - org.eclipse.xtext - org.eclipse.xtext.common.types - ${project.version} - true - - - org.eclipse.emf - org.eclipse.emf.mwe2.launch - true - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - - add-sources - initialize - - add-source - - - - src - src-gen - generator - - - - - - add-resources - initialize - - add-resource - - - - - src-gen - - - - - - - - - diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/AbstractStatemachineRuntimeModule.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/AbstractStatemachineRuntimeModule.java deleted file mode 100644 index e1a13b7e47b..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/AbstractStatemachineRuntimeModule.java +++ /dev/null @@ -1,187 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine; - -import com.google.inject.Binder; -import com.google.inject.Provider; -import com.google.inject.name.Names; -import java.util.Properties; -import org.eclipse.xtext.Constants; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.formatting2.FormatterPreferenceValuesProvider; -import org.eclipse.xtext.formatting2.FormatterPreferences; -import org.eclipse.xtext.formatting2.IFormatter2; -import org.eclipse.xtext.generator.IGenerator2; -import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; -import org.eclipse.xtext.naming.IQualifiedNameProvider; -import org.eclipse.xtext.parser.IParser; -import org.eclipse.xtext.parser.ITokenToStringConverter; -import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; -import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; -import org.eclipse.xtext.parser.antlr.ITokenDefProvider; -import org.eclipse.xtext.parser.antlr.Lexer; -import org.eclipse.xtext.parser.antlr.LexerBindings; -import org.eclipse.xtext.parser.antlr.LexerProvider; -import org.eclipse.xtext.preferences.IPreferenceValuesProvider; -import org.eclipse.xtext.scoping.IGlobalScopeProvider; -import org.eclipse.xtext.scoping.IScopeProvider; -import org.eclipse.xtext.scoping.IgnoreCaseLinking; -import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; -import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; -import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; -import org.eclipse.xtext.serializer.ISerializer; -import org.eclipse.xtext.serializer.impl.Serializer; -import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; -import org.eclipse.xtext.service.DefaultRuntimeModule; -import org.eclipse.xtext.service.SingletonBinding; -import org.eclipse.xtext.web.example.statemachine.formatting2.StatemachineFormatter; -import org.eclipse.xtext.web.example.statemachine.generator.StatemachineGenerator; -import org.eclipse.xtext.web.example.statemachine.parser.antlr.StatemachineAntlrTokenFileProvider; -import org.eclipse.xtext.web.example.statemachine.parser.antlr.StatemachineParser; -import org.eclipse.xtext.web.example.statemachine.parser.antlr.internal.InternalStatemachineLexer; -import org.eclipse.xtext.web.example.statemachine.scoping.StatemachineScopeProvider; -import org.eclipse.xtext.web.example.statemachine.serializer.StatemachineSemanticSequencer; -import org.eclipse.xtext.web.example.statemachine.serializer.StatemachineSyntacticSequencer; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; -import org.eclipse.xtext.web.example.statemachine.validation.StatemachineValidator; - -/** - * Manual modifications go to {@link StatemachineRuntimeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractStatemachineRuntimeModule extends DefaultRuntimeModule { - - protected Properties properties = null; - - @Override - public void configure(Binder binder) { - properties = tryBindProperties(binder, "org/eclipse/xtext/web/example/statemachine/Statemachine.properties"); - super.configure(binder); - } - - public void configureLanguageName(Binder binder) { - binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.xtext.web.example.statemachine.Statemachine"); - } - - public void configureFileExtensions(Binder binder) { - if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) - binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("statemachine"); - } - - // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 - public ClassLoader bindClassLoaderToInstance() { - return getClass().getClassLoader(); - } - - // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 - public Class bindIGrammarAccess() { - return StatemachineGrammarAccess.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISemanticSequencer() { - return StatemachineSemanticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISyntacticSequencer() { - return StatemachineSyntacticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISerializer() { - return Serializer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIParser() { - return StatemachineParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindITokenToStringConverter() { - return AntlrTokenToStringConverter.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIAntlrTokenFileProvider() { - return StatemachineAntlrTokenFileProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindLexer() { - return InternalStatemachineLexer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindITokenDefProvider() { - return AntlrTokenDefProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Provider provideInternalStatemachineLexer() { - return LexerProvider.create(InternalStatemachineLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureRuntimeLexer(Binder binder) { - binder.bind(Lexer.class) - .annotatedWith(Names.named(LexerBindings.RUNTIME)) - .to(InternalStatemachineLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 - @SingletonBinding(eager=true) - public Class bindStatemachineValidator() { - return StatemachineValidator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public Class bindIScopeProvider() { - return StatemachineScopeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public void configureIScopeProviderDelegate(Binder binder) { - binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public Class bindIGlobalScopeProvider() { - return DefaultGlobalScopeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public void configureIgnoreCaseLinking(Binder binder) { - binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); - } - - // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 - public Class bindIQualifiedNameProvider() { - return DefaultDeclarativeQualifiedNameProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 - public Class bindIGenerator2() { - return StatemachineGenerator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2 - public Class bindIFormatter2() { - return StatemachineFormatter.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.formatting.Formatter2Fragment2 - public void configureFormatterPreferences(Binder binder) { - binder.bind(IPreferenceValuesProvider.class).annotatedWith(FormatterPreferences.class).to(FormatterPreferenceValuesProvider.class); - } - -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/Statemachine.xtextbin b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/Statemachine.xtextbin deleted file mode 100644 index 4069b4c33b7..00000000000 Binary files a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/Statemachine.xtextbin and /dev/null differ diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/StatemachineStandaloneSetupGenerated.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/StatemachineStandaloneSetupGenerated.java deleted file mode 100644 index 9253bed5562..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/StatemachineStandaloneSetupGenerated.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.ISetup; -import org.eclipse.xtext.common.TerminalsStandaloneSetup; -import org.eclipse.xtext.resource.IResourceFactory; -import org.eclipse.xtext.resource.IResourceServiceProvider; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -@SuppressWarnings("all") -public class StatemachineStandaloneSetupGenerated implements ISetup { - - @Override - public Injector createInjectorAndDoEMFRegistration() { - TerminalsStandaloneSetup.doSetup(); - - Injector injector = createInjector(); - register(injector); - return injector; - } - - public Injector createInjector() { - return Guice.createInjector(new StatemachineRuntimeModule()); - } - - public void register(Injector injector) { - if (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/xtext/web/example/Statemachine")) { - EPackage.Registry.INSTANCE.put("http://www.eclipse.org/xtext/web/example/Statemachine", StatemachinePackage.eINSTANCE); - } - IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); - IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); - - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("statemachine", resourceFactory); - IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("statemachine", serviceProvider); - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/StatemachineAntlrTokenFileProvider.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/StatemachineAntlrTokenFileProvider.java deleted file mode 100644 index c930bbd5afc..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/StatemachineAntlrTokenFileProvider.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.parser.antlr; - -import java.io.InputStream; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; - -public class StatemachineAntlrTokenFileProvider implements IAntlrTokenFileProvider { - - @Override - public InputStream getAntlrTokenFile() { - ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.tokens"); - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/StatemachineParser.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/StatemachineParser.java deleted file mode 100644 index 2e1f0276039..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/StatemachineParser.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.parser.antlr; - -import com.google.inject.Inject; -import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.web.example.statemachine.parser.antlr.internal.InternalStatemachineParser; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -public class StatemachineParser extends AbstractAntlrParser { - - @Inject - private StatemachineGrammarAccess grammarAccess; - - @Override - protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { - tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); - } - - - @Override - protected InternalStatemachineParser createParser(XtextTokenStream stream) { - return new InternalStatemachineParser(stream, getGrammarAccess()); - } - - @Override - protected String getDefaultRuleName() { - return "Statemachine"; - } - - public StatemachineGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(StatemachineGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.g b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.g deleted file mode 100644 index d346c0260ca..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.g +++ /dev/null @@ -1,645 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -grammar InternalStatemachine; - -options { - superClass=AbstractInternalAntlrParser; -} - -@lexer::header { -package org.eclipse.xtext.web.example.statemachine.parser.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.parser.antlr.Lexer; -} - -@parser::header { -package org.eclipse.xtext.web.example.statemachine.parser.antlr.internal; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -} - -@parser::members { - - private StatemachineGrammarAccess grammarAccess; - - public InternalStatemachineParser(TokenStream input, StatemachineGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "Statemachine"; - } - - @Override - protected StatemachineGrammarAccess getGrammarAccess() { - return grammarAccess; - } - -} - -@rulecatch { - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } -} - -// Entry rule entryRuleStatemachine -entryRuleStatemachine returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStatemachineRule()); } - iv_ruleStatemachine=ruleStatemachine - { $current=$iv_ruleStatemachine.current; } - EOF; - -// Rule Statemachine -ruleStatemachine returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getStatemachineAccess().getStatemachineAction_0(), - $current); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getStatemachineAccess().getSignalsSignalParserRuleCall_1_0()); - } - lv_signals_1_0=ruleSignal - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStatemachineRule()); - } - add( - $current, - "signals", - lv_signals_1_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Signal"); - afterParserOrEnumRuleCall(); - } - ) - )* - ( - ( - { - newCompositeNode(grammarAccess.getStatemachineAccess().getStatesStateParserRuleCall_2_0()); - } - lv_states_2_0=ruleState - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStatemachineRule()); - } - add( - $current, - "states", - lv_states_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.State"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) -; - -// Entry rule entryRuleSignal -entryRuleSignal returns [EObject current=null]: - { newCompositeNode(grammarAccess.getSignalRule()); } - iv_ruleSignal=ruleSignal - { $current=$iv_ruleSignal.current; } - EOF; - -// Rule Signal -ruleSignal returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - newCompositeNode(grammarAccess.getSignalAccess().getInputSignalParserRuleCall_0_0()); - } - this_InputSignal_0=ruleInputSignal - { - $current = $this_InputSignal_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getSignalAccess().getOutputSignalParserRuleCall_0_1()); - } - this_OutputSignal_1=ruleOutputSignal - { - $current = $this_OutputSignal_1.current; - afterParserOrEnumRuleCall(); - } - ) - otherlv_2='signal' - { - newLeafNode(otherlv_2, grammarAccess.getSignalAccess().getSignalKeyword_1()); - } - ( - ( - lv_name_3_0=RULE_ID - { - newLeafNode(lv_name_3_0, grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSignalRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_3_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ) -; - -// Entry rule entryRuleInputSignal -entryRuleInputSignal returns [EObject current=null]: - { newCompositeNode(grammarAccess.getInputSignalRule()); } - iv_ruleInputSignal=ruleInputSignal - { $current=$iv_ruleInputSignal.current; } - EOF; - -// Rule InputSignal -ruleInputSignal returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getInputSignalAccess().getInputSignalAction_0(), - $current); - } - ) - otherlv_1='input' - { - newLeafNode(otherlv_1, grammarAccess.getInputSignalAccess().getInputKeyword_1()); - } - ) -; - -// Entry rule entryRuleOutputSignal -entryRuleOutputSignal returns [EObject current=null]: - { newCompositeNode(grammarAccess.getOutputSignalRule()); } - iv_ruleOutputSignal=ruleOutputSignal - { $current=$iv_ruleOutputSignal.current; } - EOF; - -// Rule OutputSignal -ruleOutputSignal returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - { - $current = forceCreateModelElement( - grammarAccess.getOutputSignalAccess().getOutputSignalAction_0(), - $current); - } - ) - otherlv_1='output' - { - newLeafNode(otherlv_1, grammarAccess.getOutputSignalAccess().getOutputKeyword_1()); - } - ) -; - -// Entry rule entryRuleState -entryRuleState returns [EObject current=null]: - { newCompositeNode(grammarAccess.getStateRule()); } - iv_ruleState=ruleState - { $current=$iv_ruleState.current; } - EOF; - -// Rule State -ruleState returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='state' - { - newLeafNode(otherlv_0, grammarAccess.getStateAccess().getStateKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getStateAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getStateRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - ( - ( - { - newCompositeNode(grammarAccess.getStateAccess().getCommandsCommandParserRuleCall_2_0()); - } - lv_commands_2_0=ruleCommand - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStateRule()); - } - add( - $current, - "commands", - lv_commands_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Command"); - afterParserOrEnumRuleCall(); - } - ) - )* - ( - ( - { - newCompositeNode(grammarAccess.getStateAccess().getTransitionsTransitionParserRuleCall_3_0()); - } - lv_transitions_3_0=ruleTransition - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStateRule()); - } - add( - $current, - "transitions", - lv_transitions_3_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Transition"); - afterParserOrEnumRuleCall(); - } - ) - )* - ( - ( - { - newCompositeNode(grammarAccess.getStateAccess().getNestedStatesStateParserRuleCall_4_0()); - } - lv_nestedStates_4_0=ruleState - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getStateRule()); - } - add( - $current, - "nestedStates", - lv_nestedStates_4_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.State"); - afterParserOrEnumRuleCall(); - } - ) - )* - otherlv_5='end' - { - newLeafNode(otherlv_5, grammarAccess.getStateAccess().getEndKeyword_5()); - } - ) -; - -// Entry rule entryRuleTransition -entryRuleTransition returns [EObject current=null]: - { newCompositeNode(grammarAccess.getTransitionRule()); } - iv_ruleTransition=ruleTransition - { $current=$iv_ruleTransition.current; } - EOF; - -// Rule Transition -ruleTransition returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='if' - { - newLeafNode(otherlv_0, grammarAccess.getTransitionAccess().getIfKeyword_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0()); - } - lv_condition_1_0=ruleCondition - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getTransitionRule()); - } - set( - $current, - "condition", - lv_condition_1_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Condition"); - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_2='goto' - { - newLeafNode(otherlv_2, grammarAccess.getTransitionAccess().getGotoKeyword_2()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getTransitionRule()); - } - } - { - newCompositeNode(grammarAccess.getTransitionAccess().getStateStateCrossReference_3_0()); - } - ruleQualifiedName - { - afterParserOrEnumRuleCall(); - } - ) - ) - ) -; - -// Entry rule entryRuleCondition -entryRuleCondition returns [EObject current=null]: - { newCompositeNode(grammarAccess.getConditionRule()); } - iv_ruleCondition=ruleCondition - { $current=$iv_ruleCondition.current; } - EOF; - -// Rule Condition -ruleCondition returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_0_0()); - } - lv_events_0_0=ruleEvent - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConditionRule()); - } - add( - $current, - "events", - lv_events_0_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Event"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_1='and' - { - newLeafNode(otherlv_1, grammarAccess.getConditionAccess().getAndKeyword_1_0()); - } - ( - ( - { - newCompositeNode(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_1_1_0()); - } - lv_events_2_0=ruleEvent - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getConditionRule()); - } - add( - $current, - "events", - lv_events_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Event"); - afterParserOrEnumRuleCall(); - } - ) - ) - )* - ) -; - -// Entry rule entryRuleEvent -entryRuleEvent returns [EObject current=null]: - { newCompositeNode(grammarAccess.getEventRule()); } - iv_ruleEvent=ruleEvent - { $current=$iv_ruleEvent.current; } - EOF; - -// Rule Event -ruleEvent returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getEventRule()); - } - } - otherlv_0=RULE_ID - { - newLeafNode(otherlv_0, grammarAccess.getEventAccess().getSignalSignalCrossReference_0_0()); - } - ) - ) - otherlv_1='==' - { - newLeafNode(otherlv_1, grammarAccess.getEventAccess().getEqualsSignEqualsSignKeyword_1()); - } - ( - ( - lv_value_2_0=RULE_BOOLEAN - { - newLeafNode(lv_value_2_0, grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getEventRule()); - } - setWithLastConsumed( - $current, - "value", - lv_value_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.BOOLEAN"); - } - ) - ) - ) -; - -// Entry rule entryRuleCommand -entryRuleCommand returns [EObject current=null]: - { newCompositeNode(grammarAccess.getCommandRule()); } - iv_ruleCommand=ruleCommand - { $current=$iv_ruleCommand.current; } - EOF; - -// Rule Command -ruleCommand returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='set' - { - newLeafNode(otherlv_0, grammarAccess.getCommandAccess().getSetKeyword_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCommandRule()); - } - } - otherlv_1=RULE_ID - { - newLeafNode(otherlv_1, grammarAccess.getCommandAccess().getSignalSignalCrossReference_1_0()); - } - ) - ) - otherlv_2='=' - { - newLeafNode(otherlv_2, grammarAccess.getCommandAccess().getEqualsSignKeyword_2()); - } - ( - ( - lv_newValue_3_0=RULE_BOOLEAN - { - newLeafNode(lv_newValue_3_0, grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCommandRule()); - } - setWithLastConsumed( - $current, - "newValue", - lv_newValue_3_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.BOOLEAN"); - } - ) - ) - ) -; - -// Entry rule entryRuleQualifiedName -entryRuleQualifiedName returns [String current=null]: - { newCompositeNode(grammarAccess.getQualifiedNameRule()); } - iv_ruleQualifiedName=ruleQualifiedName - { $current=$iv_ruleQualifiedName.current.getText(); } - EOF; - -// Rule QualifiedName -ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - this_ID_0=RULE_ID - { - $current.merge(this_ID_0); - } - { - newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); - } - ( - kw='.' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - } - this_ID_2=RULE_ID - { - $current.merge(this_ID_2); - } - { - newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); - } - )* - ) -; - -RULE_BOOLEAN : ('true'|'false'); - -RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; - -RULE_INT : ('0'..'9')+; - -RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); - -RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; - -RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; - -RULE_WS : (' '|'\t'|'\r'|'\n')+; - -RULE_ANY_OTHER : .; diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.tokens b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.tokens deleted file mode 100644 index 5d8376c6d2d..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachine.tokens +++ /dev/null @@ -1,32 +0,0 @@ -'.'=23 -'='=22 -'=='=20 -'and'=19 -'end'=16 -'goto'=18 -'if'=17 -'input'=13 -'output'=14 -'set'=21 -'signal'=12 -'state'=15 -RULE_ANY_OTHER=11 -RULE_BOOLEAN=5 -RULE_ID=4 -RULE_INT=6 -RULE_ML_COMMENT=8 -RULE_SL_COMMENT=9 -RULE_STRING=7 -RULE_WS=10 -T__12=12 -T__13=13 -T__14=14 -T__15=15 -T__16=16 -T__17=17 -T__18=18 -T__19=19 -T__20=20 -T__21=21 -T__22=22 -T__23=23 diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachineLexer.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachineLexer.java deleted file mode 100644 index cb8aef97576..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachineLexer.java +++ /dev/null @@ -1,1200 +0,0 @@ -package org.eclipse.xtext.web.example.statemachine.parser.antlr.internal; - -// Hack: Use our own Lexer superclass by means of import. -// Currently there is no other way to specify the superclass for the lexer. -import org.eclipse.xtext.parser.antlr.Lexer; - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalStatemachineLexer extends Lexer { - public static final int RULE_BOOLEAN=5; - public static final int RULE_STRING=7; - public static final int RULE_SL_COMMENT=9; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__12=12; - public static final int T__13=13; - public static final int T__14=14; - public static final int EOF=-1; - public static final int RULE_ID=4; - public static final int RULE_WS=10; - public static final int RULE_ANY_OTHER=11; - public static final int RULE_INT=6; - public static final int T__22=22; - public static final int RULE_ML_COMMENT=8; - public static final int T__23=23; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - public InternalStatemachineLexer() {;} - public InternalStatemachineLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalStatemachineLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalStatemachine.g"; } - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:11:7: ( 'signal' ) - // InternalStatemachine.g:11:9: 'signal' - { - match("signal"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__12" - - // $ANTLR start "T__13" - public final void mT__13() throws RecognitionException { - try { - int _type = T__13; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:12:7: ( 'input' ) - // InternalStatemachine.g:12:9: 'input' - { - match("input"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__13" - - // $ANTLR start "T__14" - public final void mT__14() throws RecognitionException { - try { - int _type = T__14; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:13:7: ( 'output' ) - // InternalStatemachine.g:13:9: 'output' - { - match("output"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__14" - - // $ANTLR start "T__15" - public final void mT__15() throws RecognitionException { - try { - int _type = T__15; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:14:7: ( 'state' ) - // InternalStatemachine.g:14:9: 'state' - { - match("state"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__15" - - // $ANTLR start "T__16" - public final void mT__16() throws RecognitionException { - try { - int _type = T__16; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:15:7: ( 'end' ) - // InternalStatemachine.g:15:9: 'end' - { - match("end"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__16" - - // $ANTLR start "T__17" - public final void mT__17() throws RecognitionException { - try { - int _type = T__17; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:16:7: ( 'if' ) - // InternalStatemachine.g:16:9: 'if' - { - match("if"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__17" - - // $ANTLR start "T__18" - public final void mT__18() throws RecognitionException { - try { - int _type = T__18; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:17:7: ( 'goto' ) - // InternalStatemachine.g:17:9: 'goto' - { - match("goto"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__18" - - // $ANTLR start "T__19" - public final void mT__19() throws RecognitionException { - try { - int _type = T__19; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:18:7: ( 'and' ) - // InternalStatemachine.g:18:9: 'and' - { - match("and"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__19" - - // $ANTLR start "T__20" - public final void mT__20() throws RecognitionException { - try { - int _type = T__20; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:19:7: ( '==' ) - // InternalStatemachine.g:19:9: '==' - { - match("=="); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__20" - - // $ANTLR start "T__21" - public final void mT__21() throws RecognitionException { - try { - int _type = T__21; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:20:7: ( 'set' ) - // InternalStatemachine.g:20:9: 'set' - { - match("set"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__21" - - // $ANTLR start "T__22" - public final void mT__22() throws RecognitionException { - try { - int _type = T__22; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:21:7: ( '=' ) - // InternalStatemachine.g:21:9: '=' - { - match('='); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__22" - - // $ANTLR start "T__23" - public final void mT__23() throws RecognitionException { - try { - int _type = T__23; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:22:7: ( '.' ) - // InternalStatemachine.g:22:9: '.' - { - match('.'); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__23" - - // $ANTLR start "RULE_BOOLEAN" - public final void mRULE_BOOLEAN() throws RecognitionException { - try { - int _type = RULE_BOOLEAN; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:631:14: ( ( 'true' | 'false' ) ) - // InternalStatemachine.g:631:16: ( 'true' | 'false' ) - { - // InternalStatemachine.g:631:16: ( 'true' | 'false' ) - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0=='t') ) { - alt1=1; - } - else if ( (LA1_0=='f') ) { - alt1=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 1, 0, input); - - throw nvae; - } - switch (alt1) { - case 1 : - // InternalStatemachine.g:631:17: 'true' - { - match("true"); - - - } - break; - case 2 : - // InternalStatemachine.g:631:24: 'false' - { - match("false"); - - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_BOOLEAN" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:633:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalStatemachine.g:633:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - // InternalStatemachine.g:633:11: ( '^' )? - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0=='^') ) { - alt2=1; - } - switch (alt2) { - case 1 : - // InternalStatemachine.g:633:11: '^' - { - match('^'); - - } - break; - - } - - if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - // InternalStatemachine.g:633:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop3: - do { - int alt3=2; - int LA3_0 = input.LA(1); - - if ( ((LA3_0>='0' && LA3_0<='9')||(LA3_0>='A' && LA3_0<='Z')||LA3_0=='_'||(LA3_0>='a' && LA3_0<='z')) ) { - alt3=1; - } - - - switch (alt3) { - case 1 : - // InternalStatemachine.g: - { - if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop3; - } - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ID" - - // $ANTLR start "RULE_INT" - public final void mRULE_INT() throws RecognitionException { - try { - int _type = RULE_INT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:635:10: ( ( '0' .. '9' )+ ) - // InternalStatemachine.g:635:12: ( '0' .. '9' )+ - { - // InternalStatemachine.g:635:12: ( '0' .. '9' )+ - int cnt4=0; - loop4: - do { - int alt4=2; - int LA4_0 = input.LA(1); - - if ( ((LA4_0>='0' && LA4_0<='9')) ) { - alt4=1; - } - - - switch (alt4) { - case 1 : - // InternalStatemachine.g:635:13: '0' .. '9' - { - matchRange('0','9'); - - } - break; - - default : - if ( cnt4 >= 1 ) break loop4; - EarlyExitException eee = - new EarlyExitException(4, input); - throw eee; - } - cnt4++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_INT" - - // $ANTLR start "RULE_STRING" - public final void mRULE_STRING() throws RecognitionException { - try { - int _type = RULE_STRING; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:637:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) - // InternalStatemachine.g:637:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - { - // InternalStatemachine.g:637:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='\"') ) { - alt7=1; - } - else if ( (LA7_0=='\'') ) { - alt7=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 7, 0, input); - - throw nvae; - } - switch (alt7) { - case 1 : - // InternalStatemachine.g:637:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' - { - match('\"'); - // InternalStatemachine.g:637:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop5: - do { - int alt5=3; - int LA5_0 = input.LA(1); - - if ( (LA5_0=='\\') ) { - alt5=1; - } - else if ( ((LA5_0>='\u0000' && LA5_0<='!')||(LA5_0>='#' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { - alt5=2; - } - - - switch (alt5) { - case 1 : - // InternalStatemachine.g:637:21: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalStatemachine.g:637:28: ~ ( ( '\\\\' | '\"' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop5; - } - } while (true); - - match('\"'); - - } - break; - case 2 : - // InternalStatemachine.g:637:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' - { - match('\''); - // InternalStatemachine.g:637:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - loop6: - do { - int alt6=3; - int LA6_0 = input.LA(1); - - if ( (LA6_0=='\\') ) { - alt6=1; - } - else if ( ((LA6_0>='\u0000' && LA6_0<='&')||(LA6_0>='(' && LA6_0<='[')||(LA6_0>=']' && LA6_0<='\uFFFF')) ) { - alt6=2; - } - - - switch (alt6) { - case 1 : - // InternalStatemachine.g:637:54: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalStatemachine.g:637:61: ~ ( ( '\\\\' | '\\'' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop6; - } - } while (true); - - match('\''); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_STRING" - - // $ANTLR start "RULE_ML_COMMENT" - public final void mRULE_ML_COMMENT() throws RecognitionException { - try { - int _type = RULE_ML_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:639:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalStatemachine.g:639:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalStatemachine.g:639:24: ( options {greedy=false; } : . )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0=='*') ) { - int LA8_1 = input.LA(2); - - if ( (LA8_1=='/') ) { - alt8=2; - } - else if ( ((LA8_1>='\u0000' && LA8_1<='.')||(LA8_1>='0' && LA8_1<='\uFFFF')) ) { - alt8=1; - } - - - } - else if ( ((LA8_0>='\u0000' && LA8_0<=')')||(LA8_0>='+' && LA8_0<='\uFFFF')) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalStatemachine.g:639:52: . - { - matchAny(); - - } - break; - - default : - break loop8; - } - } while (true); - - match("*/"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ML_COMMENT" - - // $ANTLR start "RULE_SL_COMMENT" - public final void mRULE_SL_COMMENT() throws RecognitionException { - try { - int _type = RULE_SL_COMMENT; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:641:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalStatemachine.g:641:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // InternalStatemachine.g:641:24: (~ ( ( '\\n' | '\\r' ) ) )* - loop9: - do { - int alt9=2; - int LA9_0 = input.LA(1); - - if ( ((LA9_0>='\u0000' && LA9_0<='\t')||(LA9_0>='\u000B' && LA9_0<='\f')||(LA9_0>='\u000E' && LA9_0<='\uFFFF')) ) { - alt9=1; - } - - - switch (alt9) { - case 1 : - // InternalStatemachine.g:641:24: ~ ( ( '\\n' | '\\r' ) ) - { - if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - break loop9; - } - } while (true); - - // InternalStatemachine.g:641:40: ( ( '\\r' )? '\\n' )? - int alt11=2; - int LA11_0 = input.LA(1); - - if ( (LA11_0=='\n'||LA11_0=='\r') ) { - alt11=1; - } - switch (alt11) { - case 1 : - // InternalStatemachine.g:641:41: ( '\\r' )? '\\n' - { - // InternalStatemachine.g:641:41: ( '\\r' )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='\r') ) { - alt10=1; - } - switch (alt10) { - case 1 : - // InternalStatemachine.g:641:41: '\\r' - { - match('\r'); - - } - break; - - } - - match('\n'); - - } - break; - - } - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_SL_COMMENT" - - // $ANTLR start "RULE_WS" - public final void mRULE_WS() throws RecognitionException { - try { - int _type = RULE_WS; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:643:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalStatemachine.g:643:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalStatemachine.g:643:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt12=0; - loop12: - do { - int alt12=2; - int LA12_0 = input.LA(1); - - if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) { - alt12=1; - } - - - switch (alt12) { - case 1 : - // InternalStatemachine.g: - { - if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { - input.consume(); - - } - else { - MismatchedSetException mse = new MismatchedSetException(null,input); - recover(mse); - throw mse;} - - - } - break; - - default : - if ( cnt12 >= 1 ) break loop12; - EarlyExitException eee = - new EarlyExitException(12, input); - throw eee; - } - cnt12++; - } while (true); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_WS" - - // $ANTLR start "RULE_ANY_OTHER" - public final void mRULE_ANY_OTHER() throws RecognitionException { - try { - int _type = RULE_ANY_OTHER; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalStatemachine.g:645:16: ( . ) - // InternalStatemachine.g:645:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalStatemachine.g:1:8: ( T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | RULE_BOOLEAN | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt13=20; - alt13 = dfa13.predict(input); - switch (alt13) { - case 1 : - // InternalStatemachine.g:1:10: T__12 - { - mT__12(); - - } - break; - case 2 : - // InternalStatemachine.g:1:16: T__13 - { - mT__13(); - - } - break; - case 3 : - // InternalStatemachine.g:1:22: T__14 - { - mT__14(); - - } - break; - case 4 : - // InternalStatemachine.g:1:28: T__15 - { - mT__15(); - - } - break; - case 5 : - // InternalStatemachine.g:1:34: T__16 - { - mT__16(); - - } - break; - case 6 : - // InternalStatemachine.g:1:40: T__17 - { - mT__17(); - - } - break; - case 7 : - // InternalStatemachine.g:1:46: T__18 - { - mT__18(); - - } - break; - case 8 : - // InternalStatemachine.g:1:52: T__19 - { - mT__19(); - - } - break; - case 9 : - // InternalStatemachine.g:1:58: T__20 - { - mT__20(); - - } - break; - case 10 : - // InternalStatemachine.g:1:64: T__21 - { - mT__21(); - - } - break; - case 11 : - // InternalStatemachine.g:1:70: T__22 - { - mT__22(); - - } - break; - case 12 : - // InternalStatemachine.g:1:76: T__23 - { - mT__23(); - - } - break; - case 13 : - // InternalStatemachine.g:1:82: RULE_BOOLEAN - { - mRULE_BOOLEAN(); - - } - break; - case 14 : - // InternalStatemachine.g:1:95: RULE_ID - { - mRULE_ID(); - - } - break; - case 15 : - // InternalStatemachine.g:1:103: RULE_INT - { - mRULE_INT(); - - } - break; - case 16 : - // InternalStatemachine.g:1:112: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 17 : - // InternalStatemachine.g:1:124: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 18 : - // InternalStatemachine.g:1:140: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 19 : - // InternalStatemachine.g:1:156: RULE_WS - { - mRULE_WS(); - - } - break; - case 20 : - // InternalStatemachine.g:1:164: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA13 dfa13 = new DFA13(this); - static final String DFA13_eotS = - "\1\uffff\6\26\1\36\1\uffff\2\26\1\22\2\uffff\3\22\2\uffff\3\26\1\uffff\1\26\1\53\4\26\3\uffff\2\26\5\uffff\2\26\1\64\1\26\1\uffff\1\26\1\67\1\26\1\71\4\26\1\uffff\2\26\1\uffff\1\100\1\uffff\1\101\2\26\1\104\1\105\1\26\2\uffff\1\101\1\107\2\uffff\1\110\2\uffff"; - static final String DFA13_eofS = - "\111\uffff"; - static final String DFA13_minS = - "\1\0\1\145\1\146\1\165\1\156\1\157\1\156\1\75\1\uffff\1\162\1\141\1\101\2\uffff\2\0\1\52\2\uffff\1\147\1\141\1\164\1\uffff\1\160\1\60\1\164\1\144\1\164\1\144\3\uffff\1\165\1\154\5\uffff\1\156\1\164\1\60\1\165\1\uffff\1\160\1\60\1\157\1\60\1\145\1\163\1\141\1\145\1\uffff\1\164\1\165\1\uffff\1\60\1\uffff\1\60\1\145\1\154\2\60\1\164\2\uffff\2\60\2\uffff\1\60\2\uffff"; - static final String DFA13_maxS = - "\1\uffff\1\164\1\156\1\165\1\156\1\157\1\156\1\75\1\uffff\1\162\1\141\1\172\2\uffff\2\uffff\1\57\2\uffff\1\147\1\141\1\164\1\uffff\1\160\1\172\1\164\1\144\1\164\1\144\3\uffff\1\165\1\154\5\uffff\1\156\1\164\1\172\1\165\1\uffff\1\160\1\172\1\157\1\172\1\145\1\163\1\141\1\145\1\uffff\1\164\1\165\1\uffff\1\172\1\uffff\1\172\1\145\1\154\2\172\1\164\2\uffff\2\172\2\uffff\1\172\2\uffff"; - static final String DFA13_acceptS = - "\10\uffff\1\14\3\uffff\1\16\1\17\3\uffff\1\23\1\24\3\uffff\1\16\6\uffff\1\11\1\13\1\14\2\uffff\1\17\1\20\1\21\1\22\1\23\4\uffff\1\6\10\uffff\1\12\2\uffff\1\5\1\uffff\1\10\6\uffff\1\7\1\15\2\uffff\1\4\1\2\1\uffff\1\1\1\3"; - static final String DFA13_specialS = - "\1\2\15\uffff\1\0\1\1\71\uffff}>"; - static final String[] DFA13_transitionS = { - "\11\22\2\21\2\22\1\21\22\22\1\21\1\22\1\16\4\22\1\17\6\22\1\10\1\20\12\15\3\22\1\7\3\22\32\14\3\22\1\13\1\14\1\22\1\6\3\14\1\4\1\12\1\5\1\14\1\2\5\14\1\3\3\14\1\1\1\11\6\14\uff85\22", - "\1\25\3\uffff\1\23\12\uffff\1\24", - "\1\30\7\uffff\1\27", - "\1\31", - "\1\32", - "\1\33", - "\1\34", - "\1\35", - "", - "\1\40", - "\1\41", - "\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "", - "\0\43", - "\0\43", - "\1\44\4\uffff\1\45", - "", - "", - "\1\47", - "\1\50", - "\1\51", - "", - "\1\52", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\54", - "\1\55", - "\1\56", - "\1\57", - "", - "", - "", - "\1\60", - "\1\61", - "", - "", - "", - "", - "", - "\1\62", - "\1\63", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\65", - "", - "\1\66", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\70", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\72", - "\1\73", - "\1\74", - "\1\75", - "", - "\1\76", - "\1\77", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\102", - "\1\103", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\1\106", - "", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "", - "\12\26\7\uffff\32\26\4\uffff\1\26\1\uffff\32\26", - "", - "" - }; - - static final short[] DFA13_eot = DFA.unpackEncodedString(DFA13_eotS); - static final short[] DFA13_eof = DFA.unpackEncodedString(DFA13_eofS); - static final char[] DFA13_min = DFA.unpackEncodedStringToUnsignedChars(DFA13_minS); - static final char[] DFA13_max = DFA.unpackEncodedStringToUnsignedChars(DFA13_maxS); - static final short[] DFA13_accept = DFA.unpackEncodedString(DFA13_acceptS); - static final short[] DFA13_special = DFA.unpackEncodedString(DFA13_specialS); - static final short[][] DFA13_transition; - - static { - int numStates = DFA13_transitionS.length; - DFA13_transition = new short[numStates][]; - for (int i=0; i='\u0000' && LA13_14<='\uFFFF')) ) {s = 35;} - - else s = 18; - - if ( s>=0 ) return s; - break; - case 1 : - int LA13_15 = input.LA(1); - - s = -1; - if ( ((LA13_15>='\u0000' && LA13_15<='\uFFFF')) ) {s = 35;} - - else s = 18; - - if ( s>=0 ) return s; - break; - case 2 : - int LA13_0 = input.LA(1); - - s = -1; - if ( (LA13_0=='s') ) {s = 1;} - - else if ( (LA13_0=='i') ) {s = 2;} - - else if ( (LA13_0=='o') ) {s = 3;} - - else if ( (LA13_0=='e') ) {s = 4;} - - else if ( (LA13_0=='g') ) {s = 5;} - - else if ( (LA13_0=='a') ) {s = 6;} - - else if ( (LA13_0=='=') ) {s = 7;} - - else if ( (LA13_0=='.') ) {s = 8;} - - else if ( (LA13_0=='t') ) {s = 9;} - - else if ( (LA13_0=='f') ) {s = 10;} - - else if ( (LA13_0=='^') ) {s = 11;} - - else if ( ((LA13_0>='A' && LA13_0<='Z')||LA13_0=='_'||(LA13_0>='b' && LA13_0<='d')||LA13_0=='h'||(LA13_0>='j' && LA13_0<='n')||(LA13_0>='p' && LA13_0<='r')||(LA13_0>='u' && LA13_0<='z')) ) {s = 12;} - - else if ( ((LA13_0>='0' && LA13_0<='9')) ) {s = 13;} - - else if ( (LA13_0=='\"') ) {s = 14;} - - else if ( (LA13_0=='\'') ) {s = 15;} - - else if ( (LA13_0=='/') ) {s = 16;} - - else if ( ((LA13_0>='\t' && LA13_0<='\n')||LA13_0=='\r'||LA13_0==' ') ) {s = 17;} - - else if ( ((LA13_0>='\u0000' && LA13_0<='\b')||(LA13_0>='\u000B' && LA13_0<='\f')||(LA13_0>='\u000E' && LA13_0<='\u001F')||LA13_0=='!'||(LA13_0>='#' && LA13_0<='&')||(LA13_0>='(' && LA13_0<='-')||(LA13_0>=':' && LA13_0<='<')||(LA13_0>='>' && LA13_0<='@')||(LA13_0>='[' && LA13_0<=']')||LA13_0=='`'||(LA13_0>='{' && LA13_0<='\uFFFF')) ) {s = 18;} - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 13, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachineParser.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachineParser.java deleted file mode 100644 index dac94d2a2ff..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/parser/antlr/internal/InternalStatemachineParser.java +++ /dev/null @@ -1,1607 +0,0 @@ -package org.eclipse.xtext.web.example.statemachine.parser.antlr.internal; - -import org.eclipse.xtext.*; -import org.eclipse.xtext.parser.*; -import org.eclipse.xtext.parser.impl.*; -import org.eclipse.emf.ecore.util.EcoreUtil; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; -import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; -import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -@SuppressWarnings("all") -public class InternalStatemachineParser extends AbstractInternalAntlrParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_ID", "RULE_BOOLEAN", "RULE_INT", "RULE_STRING", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'signal'", "'input'", "'output'", "'state'", "'end'", "'if'", "'goto'", "'and'", "'=='", "'set'", "'='", "'.'" - }; - public static final int RULE_BOOLEAN=5; - public static final int RULE_STRING=7; - public static final int RULE_SL_COMMENT=9; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__16=16; - public static final int T__17=17; - public static final int T__18=18; - public static final int T__12=12; - public static final int T__13=13; - public static final int T__14=14; - public static final int EOF=-1; - public static final int RULE_ID=4; - public static final int RULE_WS=10; - public static final int RULE_ANY_OTHER=11; - public static final int RULE_INT=6; - public static final int T__22=22; - public static final int RULE_ML_COMMENT=8; - public static final int T__23=23; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - - public InternalStatemachineParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalStatemachineParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalStatemachineParser.tokenNames; } - public String getGrammarFileName() { return "InternalStatemachine.g"; } - - - - private StatemachineGrammarAccess grammarAccess; - - public InternalStatemachineParser(TokenStream input, StatemachineGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "Statemachine"; - } - - @Override - protected StatemachineGrammarAccess getGrammarAccess() { - return grammarAccess; - } - - - - - // $ANTLR start "entryRuleStatemachine" - // InternalStatemachine.g:69:1: entryRuleStatemachine returns [EObject current=null] : iv_ruleStatemachine= ruleStatemachine EOF ; - public final EObject entryRuleStatemachine() throws RecognitionException { - EObject current = null; - - EObject iv_ruleStatemachine = null; - - - try { - // InternalStatemachine.g:69:53: (iv_ruleStatemachine= ruleStatemachine EOF ) - // InternalStatemachine.g:70:2: iv_ruleStatemachine= ruleStatemachine EOF - { - newCompositeNode(grammarAccess.getStatemachineRule()); - pushFollow(FOLLOW_1); - iv_ruleStatemachine=ruleStatemachine(); - - state._fsp--; - - current =iv_ruleStatemachine; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleStatemachine" - - - // $ANTLR start "ruleStatemachine" - // InternalStatemachine.g:76:1: ruleStatemachine returns [EObject current=null] : ( () ( (lv_signals_1_0= ruleSignal ) )* ( (lv_states_2_0= ruleState ) )* ) ; - public final EObject ruleStatemachine() throws RecognitionException { - EObject current = null; - - EObject lv_signals_1_0 = null; - - EObject lv_states_2_0 = null; - - - - enterRule(); - - try { - // InternalStatemachine.g:82:2: ( ( () ( (lv_signals_1_0= ruleSignal ) )* ( (lv_states_2_0= ruleState ) )* ) ) - // InternalStatemachine.g:83:2: ( () ( (lv_signals_1_0= ruleSignal ) )* ( (lv_states_2_0= ruleState ) )* ) - { - // InternalStatemachine.g:83:2: ( () ( (lv_signals_1_0= ruleSignal ) )* ( (lv_states_2_0= ruleState ) )* ) - // InternalStatemachine.g:84:3: () ( (lv_signals_1_0= ruleSignal ) )* ( (lv_states_2_0= ruleState ) )* - { - // InternalStatemachine.g:84:3: () - // InternalStatemachine.g:85:4: - { - - current = forceCreateModelElement( - grammarAccess.getStatemachineAccess().getStatemachineAction_0(), - current); - - - } - - // InternalStatemachine.g:91:3: ( (lv_signals_1_0= ruleSignal ) )* - loop1: - do { - int alt1=2; - int LA1_0 = input.LA(1); - - if ( ((LA1_0>=13 && LA1_0<=14)) ) { - alt1=1; - } - - - switch (alt1) { - case 1 : - // InternalStatemachine.g:92:4: (lv_signals_1_0= ruleSignal ) - { - // InternalStatemachine.g:92:4: (lv_signals_1_0= ruleSignal ) - // InternalStatemachine.g:93:5: lv_signals_1_0= ruleSignal - { - - newCompositeNode(grammarAccess.getStatemachineAccess().getSignalsSignalParserRuleCall_1_0()); - - pushFollow(FOLLOW_3); - lv_signals_1_0=ruleSignal(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getStatemachineRule()); - } - add( - current, - "signals", - lv_signals_1_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Signal"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop1; - } - } while (true); - - // InternalStatemachine.g:110:3: ( (lv_states_2_0= ruleState ) )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0==15) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalStatemachine.g:111:4: (lv_states_2_0= ruleState ) - { - // InternalStatemachine.g:111:4: (lv_states_2_0= ruleState ) - // InternalStatemachine.g:112:5: lv_states_2_0= ruleState - { - - newCompositeNode(grammarAccess.getStatemachineAccess().getStatesStateParserRuleCall_2_0()); - - pushFollow(FOLLOW_4); - lv_states_2_0=ruleState(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getStatemachineRule()); - } - add( - current, - "states", - lv_states_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.State"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop2; - } - } while (true); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleStatemachine" - - - // $ANTLR start "entryRuleSignal" - // InternalStatemachine.g:133:1: entryRuleSignal returns [EObject current=null] : iv_ruleSignal= ruleSignal EOF ; - public final EObject entryRuleSignal() throws RecognitionException { - EObject current = null; - - EObject iv_ruleSignal = null; - - - try { - // InternalStatemachine.g:133:47: (iv_ruleSignal= ruleSignal EOF ) - // InternalStatemachine.g:134:2: iv_ruleSignal= ruleSignal EOF - { - newCompositeNode(grammarAccess.getSignalRule()); - pushFollow(FOLLOW_1); - iv_ruleSignal=ruleSignal(); - - state._fsp--; - - current =iv_ruleSignal; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleSignal" - - - // $ANTLR start "ruleSignal" - // InternalStatemachine.g:140:1: ruleSignal returns [EObject current=null] : ( (this_InputSignal_0= ruleInputSignal | this_OutputSignal_1= ruleOutputSignal ) otherlv_2= 'signal' ( (lv_name_3_0= RULE_ID ) ) ) ; - public final EObject ruleSignal() throws RecognitionException { - EObject current = null; - - Token otherlv_2=null; - Token lv_name_3_0=null; - EObject this_InputSignal_0 = null; - - EObject this_OutputSignal_1 = null; - - - - enterRule(); - - try { - // InternalStatemachine.g:146:2: ( ( (this_InputSignal_0= ruleInputSignal | this_OutputSignal_1= ruleOutputSignal ) otherlv_2= 'signal' ( (lv_name_3_0= RULE_ID ) ) ) ) - // InternalStatemachine.g:147:2: ( (this_InputSignal_0= ruleInputSignal | this_OutputSignal_1= ruleOutputSignal ) otherlv_2= 'signal' ( (lv_name_3_0= RULE_ID ) ) ) - { - // InternalStatemachine.g:147:2: ( (this_InputSignal_0= ruleInputSignal | this_OutputSignal_1= ruleOutputSignal ) otherlv_2= 'signal' ( (lv_name_3_0= RULE_ID ) ) ) - // InternalStatemachine.g:148:3: (this_InputSignal_0= ruleInputSignal | this_OutputSignal_1= ruleOutputSignal ) otherlv_2= 'signal' ( (lv_name_3_0= RULE_ID ) ) - { - // InternalStatemachine.g:148:3: (this_InputSignal_0= ruleInputSignal | this_OutputSignal_1= ruleOutputSignal ) - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0==13) ) { - alt3=1; - } - else if ( (LA3_0==14) ) { - alt3=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - switch (alt3) { - case 1 : - // InternalStatemachine.g:149:4: this_InputSignal_0= ruleInputSignal - { - - newCompositeNode(grammarAccess.getSignalAccess().getInputSignalParserRuleCall_0_0()); - - pushFollow(FOLLOW_5); - this_InputSignal_0=ruleInputSignal(); - - state._fsp--; - - - current = this_InputSignal_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalStatemachine.g:158:4: this_OutputSignal_1= ruleOutputSignal - { - - newCompositeNode(grammarAccess.getSignalAccess().getOutputSignalParserRuleCall_0_1()); - - pushFollow(FOLLOW_5); - this_OutputSignal_1=ruleOutputSignal(); - - state._fsp--; - - - current = this_OutputSignal_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - otherlv_2=(Token)match(input,12,FOLLOW_6); - - newLeafNode(otherlv_2, grammarAccess.getSignalAccess().getSignalKeyword_1()); - - // InternalStatemachine.g:171:3: ( (lv_name_3_0= RULE_ID ) ) - // InternalStatemachine.g:172:4: (lv_name_3_0= RULE_ID ) - { - // InternalStatemachine.g:172:4: (lv_name_3_0= RULE_ID ) - // InternalStatemachine.g:173:5: lv_name_3_0= RULE_ID - { - lv_name_3_0=(Token)match(input,RULE_ID,FOLLOW_2); - - newLeafNode(lv_name_3_0, grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSignalRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_3_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleSignal" - - - // $ANTLR start "entryRuleInputSignal" - // InternalStatemachine.g:193:1: entryRuleInputSignal returns [EObject current=null] : iv_ruleInputSignal= ruleInputSignal EOF ; - public final EObject entryRuleInputSignal() throws RecognitionException { - EObject current = null; - - EObject iv_ruleInputSignal = null; - - - try { - // InternalStatemachine.g:193:52: (iv_ruleInputSignal= ruleInputSignal EOF ) - // InternalStatemachine.g:194:2: iv_ruleInputSignal= ruleInputSignal EOF - { - newCompositeNode(grammarAccess.getInputSignalRule()); - pushFollow(FOLLOW_1); - iv_ruleInputSignal=ruleInputSignal(); - - state._fsp--; - - current =iv_ruleInputSignal; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleInputSignal" - - - // $ANTLR start "ruleInputSignal" - // InternalStatemachine.g:200:1: ruleInputSignal returns [EObject current=null] : ( () otherlv_1= 'input' ) ; - public final EObject ruleInputSignal() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - - - enterRule(); - - try { - // InternalStatemachine.g:206:2: ( ( () otherlv_1= 'input' ) ) - // InternalStatemachine.g:207:2: ( () otherlv_1= 'input' ) - { - // InternalStatemachine.g:207:2: ( () otherlv_1= 'input' ) - // InternalStatemachine.g:208:3: () otherlv_1= 'input' - { - // InternalStatemachine.g:208:3: () - // InternalStatemachine.g:209:4: - { - - current = forceCreateModelElement( - grammarAccess.getInputSignalAccess().getInputSignalAction_0(), - current); - - - } - - otherlv_1=(Token)match(input,13,FOLLOW_2); - - newLeafNode(otherlv_1, grammarAccess.getInputSignalAccess().getInputKeyword_1()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleInputSignal" - - - // $ANTLR start "entryRuleOutputSignal" - // InternalStatemachine.g:223:1: entryRuleOutputSignal returns [EObject current=null] : iv_ruleOutputSignal= ruleOutputSignal EOF ; - public final EObject entryRuleOutputSignal() throws RecognitionException { - EObject current = null; - - EObject iv_ruleOutputSignal = null; - - - try { - // InternalStatemachine.g:223:53: (iv_ruleOutputSignal= ruleOutputSignal EOF ) - // InternalStatemachine.g:224:2: iv_ruleOutputSignal= ruleOutputSignal EOF - { - newCompositeNode(grammarAccess.getOutputSignalRule()); - pushFollow(FOLLOW_1); - iv_ruleOutputSignal=ruleOutputSignal(); - - state._fsp--; - - current =iv_ruleOutputSignal; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleOutputSignal" - - - // $ANTLR start "ruleOutputSignal" - // InternalStatemachine.g:230:1: ruleOutputSignal returns [EObject current=null] : ( () otherlv_1= 'output' ) ; - public final EObject ruleOutputSignal() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - - - enterRule(); - - try { - // InternalStatemachine.g:236:2: ( ( () otherlv_1= 'output' ) ) - // InternalStatemachine.g:237:2: ( () otherlv_1= 'output' ) - { - // InternalStatemachine.g:237:2: ( () otherlv_1= 'output' ) - // InternalStatemachine.g:238:3: () otherlv_1= 'output' - { - // InternalStatemachine.g:238:3: () - // InternalStatemachine.g:239:4: - { - - current = forceCreateModelElement( - grammarAccess.getOutputSignalAccess().getOutputSignalAction_0(), - current); - - - } - - otherlv_1=(Token)match(input,14,FOLLOW_2); - - newLeafNode(otherlv_1, grammarAccess.getOutputSignalAccess().getOutputKeyword_1()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleOutputSignal" - - - // $ANTLR start "entryRuleState" - // InternalStatemachine.g:253:1: entryRuleState returns [EObject current=null] : iv_ruleState= ruleState EOF ; - public final EObject entryRuleState() throws RecognitionException { - EObject current = null; - - EObject iv_ruleState = null; - - - try { - // InternalStatemachine.g:253:46: (iv_ruleState= ruleState EOF ) - // InternalStatemachine.g:254:2: iv_ruleState= ruleState EOF - { - newCompositeNode(grammarAccess.getStateRule()); - pushFollow(FOLLOW_1); - iv_ruleState=ruleState(); - - state._fsp--; - - current =iv_ruleState; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleState" - - - // $ANTLR start "ruleState" - // InternalStatemachine.g:260:1: ruleState returns [EObject current=null] : (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) ( (lv_commands_2_0= ruleCommand ) )* ( (lv_transitions_3_0= ruleTransition ) )* ( (lv_nestedStates_4_0= ruleState ) )* otherlv_5= 'end' ) ; - public final EObject ruleState() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token lv_name_1_0=null; - Token otherlv_5=null; - EObject lv_commands_2_0 = null; - - EObject lv_transitions_3_0 = null; - - EObject lv_nestedStates_4_0 = null; - - - - enterRule(); - - try { - // InternalStatemachine.g:266:2: ( (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) ( (lv_commands_2_0= ruleCommand ) )* ( (lv_transitions_3_0= ruleTransition ) )* ( (lv_nestedStates_4_0= ruleState ) )* otherlv_5= 'end' ) ) - // InternalStatemachine.g:267:2: (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) ( (lv_commands_2_0= ruleCommand ) )* ( (lv_transitions_3_0= ruleTransition ) )* ( (lv_nestedStates_4_0= ruleState ) )* otherlv_5= 'end' ) - { - // InternalStatemachine.g:267:2: (otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) ( (lv_commands_2_0= ruleCommand ) )* ( (lv_transitions_3_0= ruleTransition ) )* ( (lv_nestedStates_4_0= ruleState ) )* otherlv_5= 'end' ) - // InternalStatemachine.g:268:3: otherlv_0= 'state' ( (lv_name_1_0= RULE_ID ) ) ( (lv_commands_2_0= ruleCommand ) )* ( (lv_transitions_3_0= ruleTransition ) )* ( (lv_nestedStates_4_0= ruleState ) )* otherlv_5= 'end' - { - otherlv_0=(Token)match(input,15,FOLLOW_6); - - newLeafNode(otherlv_0, grammarAccess.getStateAccess().getStateKeyword_0()); - - // InternalStatemachine.g:272:3: ( (lv_name_1_0= RULE_ID ) ) - // InternalStatemachine.g:273:4: (lv_name_1_0= RULE_ID ) - { - // InternalStatemachine.g:273:4: (lv_name_1_0= RULE_ID ) - // InternalStatemachine.g:274:5: lv_name_1_0= RULE_ID - { - lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_1_0, grammarAccess.getStateAccess().getNameIDTerminalRuleCall_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getStateRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - // InternalStatemachine.g:290:3: ( (lv_commands_2_0= ruleCommand ) )* - loop4: - do { - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==21) ) { - alt4=1; - } - - - switch (alt4) { - case 1 : - // InternalStatemachine.g:291:4: (lv_commands_2_0= ruleCommand ) - { - // InternalStatemachine.g:291:4: (lv_commands_2_0= ruleCommand ) - // InternalStatemachine.g:292:5: lv_commands_2_0= ruleCommand - { - - newCompositeNode(grammarAccess.getStateAccess().getCommandsCommandParserRuleCall_2_0()); - - pushFollow(FOLLOW_7); - lv_commands_2_0=ruleCommand(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getStateRule()); - } - add( - current, - "commands", - lv_commands_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Command"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop4; - } - } while (true); - - // InternalStatemachine.g:309:3: ( (lv_transitions_3_0= ruleTransition ) )* - loop5: - do { - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0==17) ) { - alt5=1; - } - - - switch (alt5) { - case 1 : - // InternalStatemachine.g:310:4: (lv_transitions_3_0= ruleTransition ) - { - // InternalStatemachine.g:310:4: (lv_transitions_3_0= ruleTransition ) - // InternalStatemachine.g:311:5: lv_transitions_3_0= ruleTransition - { - - newCompositeNode(grammarAccess.getStateAccess().getTransitionsTransitionParserRuleCall_3_0()); - - pushFollow(FOLLOW_8); - lv_transitions_3_0=ruleTransition(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getStateRule()); - } - add( - current, - "transitions", - lv_transitions_3_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Transition"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop5; - } - } while (true); - - // InternalStatemachine.g:328:3: ( (lv_nestedStates_4_0= ruleState ) )* - loop6: - do { - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0==15) ) { - alt6=1; - } - - - switch (alt6) { - case 1 : - // InternalStatemachine.g:329:4: (lv_nestedStates_4_0= ruleState ) - { - // InternalStatemachine.g:329:4: (lv_nestedStates_4_0= ruleState ) - // InternalStatemachine.g:330:5: lv_nestedStates_4_0= ruleState - { - - newCompositeNode(grammarAccess.getStateAccess().getNestedStatesStateParserRuleCall_4_0()); - - pushFollow(FOLLOW_9); - lv_nestedStates_4_0=ruleState(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getStateRule()); - } - add( - current, - "nestedStates", - lv_nestedStates_4_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.State"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop6; - } - } while (true); - - otherlv_5=(Token)match(input,16,FOLLOW_2); - - newLeafNode(otherlv_5, grammarAccess.getStateAccess().getEndKeyword_5()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleState" - - - // $ANTLR start "entryRuleTransition" - // InternalStatemachine.g:355:1: entryRuleTransition returns [EObject current=null] : iv_ruleTransition= ruleTransition EOF ; - public final EObject entryRuleTransition() throws RecognitionException { - EObject current = null; - - EObject iv_ruleTransition = null; - - - try { - // InternalStatemachine.g:355:51: (iv_ruleTransition= ruleTransition EOF ) - // InternalStatemachine.g:356:2: iv_ruleTransition= ruleTransition EOF - { - newCompositeNode(grammarAccess.getTransitionRule()); - pushFollow(FOLLOW_1); - iv_ruleTransition=ruleTransition(); - - state._fsp--; - - current =iv_ruleTransition; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleTransition" - - - // $ANTLR start "ruleTransition" - // InternalStatemachine.g:362:1: ruleTransition returns [EObject current=null] : (otherlv_0= 'if' ( (lv_condition_1_0= ruleCondition ) ) otherlv_2= 'goto' ( ( ruleQualifiedName ) ) ) ; - public final EObject ruleTransition() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_2=null; - EObject lv_condition_1_0 = null; - - - - enterRule(); - - try { - // InternalStatemachine.g:368:2: ( (otherlv_0= 'if' ( (lv_condition_1_0= ruleCondition ) ) otherlv_2= 'goto' ( ( ruleQualifiedName ) ) ) ) - // InternalStatemachine.g:369:2: (otherlv_0= 'if' ( (lv_condition_1_0= ruleCondition ) ) otherlv_2= 'goto' ( ( ruleQualifiedName ) ) ) - { - // InternalStatemachine.g:369:2: (otherlv_0= 'if' ( (lv_condition_1_0= ruleCondition ) ) otherlv_2= 'goto' ( ( ruleQualifiedName ) ) ) - // InternalStatemachine.g:370:3: otherlv_0= 'if' ( (lv_condition_1_0= ruleCondition ) ) otherlv_2= 'goto' ( ( ruleQualifiedName ) ) - { - otherlv_0=(Token)match(input,17,FOLLOW_6); - - newLeafNode(otherlv_0, grammarAccess.getTransitionAccess().getIfKeyword_0()); - - // InternalStatemachine.g:374:3: ( (lv_condition_1_0= ruleCondition ) ) - // InternalStatemachine.g:375:4: (lv_condition_1_0= ruleCondition ) - { - // InternalStatemachine.g:375:4: (lv_condition_1_0= ruleCondition ) - // InternalStatemachine.g:376:5: lv_condition_1_0= ruleCondition - { - - newCompositeNode(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0()); - - pushFollow(FOLLOW_10); - lv_condition_1_0=ruleCondition(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getTransitionRule()); - } - set( - current, - "condition", - lv_condition_1_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Condition"); - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_2=(Token)match(input,18,FOLLOW_6); - - newLeafNode(otherlv_2, grammarAccess.getTransitionAccess().getGotoKeyword_2()); - - // InternalStatemachine.g:397:3: ( ( ruleQualifiedName ) ) - // InternalStatemachine.g:398:4: ( ruleQualifiedName ) - { - // InternalStatemachine.g:398:4: ( ruleQualifiedName ) - // InternalStatemachine.g:399:5: ruleQualifiedName - { - - if (current==null) { - current = createModelElement(grammarAccess.getTransitionRule()); - } - - - newCompositeNode(grammarAccess.getTransitionAccess().getStateStateCrossReference_3_0()); - - pushFollow(FOLLOW_2); - ruleQualifiedName(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleTransition" - - - // $ANTLR start "entryRuleCondition" - // InternalStatemachine.g:417:1: entryRuleCondition returns [EObject current=null] : iv_ruleCondition= ruleCondition EOF ; - public final EObject entryRuleCondition() throws RecognitionException { - EObject current = null; - - EObject iv_ruleCondition = null; - - - try { - // InternalStatemachine.g:417:50: (iv_ruleCondition= ruleCondition EOF ) - // InternalStatemachine.g:418:2: iv_ruleCondition= ruleCondition EOF - { - newCompositeNode(grammarAccess.getConditionRule()); - pushFollow(FOLLOW_1); - iv_ruleCondition=ruleCondition(); - - state._fsp--; - - current =iv_ruleCondition; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleCondition" - - - // $ANTLR start "ruleCondition" - // InternalStatemachine.g:424:1: ruleCondition returns [EObject current=null] : ( ( (lv_events_0_0= ruleEvent ) ) (otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) )* ) ; - public final EObject ruleCondition() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - EObject lv_events_0_0 = null; - - EObject lv_events_2_0 = null; - - - - enterRule(); - - try { - // InternalStatemachine.g:430:2: ( ( ( (lv_events_0_0= ruleEvent ) ) (otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) )* ) ) - // InternalStatemachine.g:431:2: ( ( (lv_events_0_0= ruleEvent ) ) (otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) )* ) - { - // InternalStatemachine.g:431:2: ( ( (lv_events_0_0= ruleEvent ) ) (otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) )* ) - // InternalStatemachine.g:432:3: ( (lv_events_0_0= ruleEvent ) ) (otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) )* - { - // InternalStatemachine.g:432:3: ( (lv_events_0_0= ruleEvent ) ) - // InternalStatemachine.g:433:4: (lv_events_0_0= ruleEvent ) - { - // InternalStatemachine.g:433:4: (lv_events_0_0= ruleEvent ) - // InternalStatemachine.g:434:5: lv_events_0_0= ruleEvent - { - - newCompositeNode(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_0_0()); - - pushFollow(FOLLOW_11); - lv_events_0_0=ruleEvent(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getConditionRule()); - } - add( - current, - "events", - lv_events_0_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Event"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalStatemachine.g:451:3: (otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) )* - loop7: - do { - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0==19) ) { - alt7=1; - } - - - switch (alt7) { - case 1 : - // InternalStatemachine.g:452:4: otherlv_1= 'and' ( (lv_events_2_0= ruleEvent ) ) - { - otherlv_1=(Token)match(input,19,FOLLOW_6); - - newLeafNode(otherlv_1, grammarAccess.getConditionAccess().getAndKeyword_1_0()); - - // InternalStatemachine.g:456:4: ( (lv_events_2_0= ruleEvent ) ) - // InternalStatemachine.g:457:5: (lv_events_2_0= ruleEvent ) - { - // InternalStatemachine.g:457:5: (lv_events_2_0= ruleEvent ) - // InternalStatemachine.g:458:6: lv_events_2_0= ruleEvent - { - - newCompositeNode(grammarAccess.getConditionAccess().getEventsEventParserRuleCall_1_1_0()); - - pushFollow(FOLLOW_11); - lv_events_2_0=ruleEvent(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getConditionRule()); - } - add( - current, - "events", - lv_events_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.Event"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - break; - - default : - break loop7; - } - } while (true); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleCondition" - - - // $ANTLR start "entryRuleEvent" - // InternalStatemachine.g:480:1: entryRuleEvent returns [EObject current=null] : iv_ruleEvent= ruleEvent EOF ; - public final EObject entryRuleEvent() throws RecognitionException { - EObject current = null; - - EObject iv_ruleEvent = null; - - - try { - // InternalStatemachine.g:480:46: (iv_ruleEvent= ruleEvent EOF ) - // InternalStatemachine.g:481:2: iv_ruleEvent= ruleEvent EOF - { - newCompositeNode(grammarAccess.getEventRule()); - pushFollow(FOLLOW_1); - iv_ruleEvent=ruleEvent(); - - state._fsp--; - - current =iv_ruleEvent; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleEvent" - - - // $ANTLR start "ruleEvent" - // InternalStatemachine.g:487:1: ruleEvent returns [EObject current=null] : ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '==' ( (lv_value_2_0= RULE_BOOLEAN ) ) ) ; - public final EObject ruleEvent() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_1=null; - Token lv_value_2_0=null; - - - enterRule(); - - try { - // InternalStatemachine.g:493:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '==' ( (lv_value_2_0= RULE_BOOLEAN ) ) ) ) - // InternalStatemachine.g:494:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '==' ( (lv_value_2_0= RULE_BOOLEAN ) ) ) - { - // InternalStatemachine.g:494:2: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '==' ( (lv_value_2_0= RULE_BOOLEAN ) ) ) - // InternalStatemachine.g:495:3: ( (otherlv_0= RULE_ID ) ) otherlv_1= '==' ( (lv_value_2_0= RULE_BOOLEAN ) ) - { - // InternalStatemachine.g:495:3: ( (otherlv_0= RULE_ID ) ) - // InternalStatemachine.g:496:4: (otherlv_0= RULE_ID ) - { - // InternalStatemachine.g:496:4: (otherlv_0= RULE_ID ) - // InternalStatemachine.g:497:5: otherlv_0= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getEventRule()); - } - - otherlv_0=(Token)match(input,RULE_ID,FOLLOW_12); - - newLeafNode(otherlv_0, grammarAccess.getEventAccess().getSignalSignalCrossReference_0_0()); - - - } - - - } - - otherlv_1=(Token)match(input,20,FOLLOW_13); - - newLeafNode(otherlv_1, grammarAccess.getEventAccess().getEqualsSignEqualsSignKeyword_1()); - - // InternalStatemachine.g:512:3: ( (lv_value_2_0= RULE_BOOLEAN ) ) - // InternalStatemachine.g:513:4: (lv_value_2_0= RULE_BOOLEAN ) - { - // InternalStatemachine.g:513:4: (lv_value_2_0= RULE_BOOLEAN ) - // InternalStatemachine.g:514:5: lv_value_2_0= RULE_BOOLEAN - { - lv_value_2_0=(Token)match(input,RULE_BOOLEAN,FOLLOW_2); - - newLeafNode(lv_value_2_0, grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getEventRule()); - } - setWithLastConsumed( - current, - "value", - lv_value_2_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.BOOLEAN"); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleEvent" - - - // $ANTLR start "entryRuleCommand" - // InternalStatemachine.g:534:1: entryRuleCommand returns [EObject current=null] : iv_ruleCommand= ruleCommand EOF ; - public final EObject entryRuleCommand() throws RecognitionException { - EObject current = null; - - EObject iv_ruleCommand = null; - - - try { - // InternalStatemachine.g:534:48: (iv_ruleCommand= ruleCommand EOF ) - // InternalStatemachine.g:535:2: iv_ruleCommand= ruleCommand EOF - { - newCompositeNode(grammarAccess.getCommandRule()); - pushFollow(FOLLOW_1); - iv_ruleCommand=ruleCommand(); - - state._fsp--; - - current =iv_ruleCommand; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleCommand" - - - // $ANTLR start "ruleCommand" - // InternalStatemachine.g:541:1: ruleCommand returns [EObject current=null] : (otherlv_0= 'set' ( (otherlv_1= RULE_ID ) ) otherlv_2= '=' ( (lv_newValue_3_0= RULE_BOOLEAN ) ) ) ; - public final EObject ruleCommand() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_1=null; - Token otherlv_2=null; - Token lv_newValue_3_0=null; - - - enterRule(); - - try { - // InternalStatemachine.g:547:2: ( (otherlv_0= 'set' ( (otherlv_1= RULE_ID ) ) otherlv_2= '=' ( (lv_newValue_3_0= RULE_BOOLEAN ) ) ) ) - // InternalStatemachine.g:548:2: (otherlv_0= 'set' ( (otherlv_1= RULE_ID ) ) otherlv_2= '=' ( (lv_newValue_3_0= RULE_BOOLEAN ) ) ) - { - // InternalStatemachine.g:548:2: (otherlv_0= 'set' ( (otherlv_1= RULE_ID ) ) otherlv_2= '=' ( (lv_newValue_3_0= RULE_BOOLEAN ) ) ) - // InternalStatemachine.g:549:3: otherlv_0= 'set' ( (otherlv_1= RULE_ID ) ) otherlv_2= '=' ( (lv_newValue_3_0= RULE_BOOLEAN ) ) - { - otherlv_0=(Token)match(input,21,FOLLOW_6); - - newLeafNode(otherlv_0, grammarAccess.getCommandAccess().getSetKeyword_0()); - - // InternalStatemachine.g:553:3: ( (otherlv_1= RULE_ID ) ) - // InternalStatemachine.g:554:4: (otherlv_1= RULE_ID ) - { - // InternalStatemachine.g:554:4: (otherlv_1= RULE_ID ) - // InternalStatemachine.g:555:5: otherlv_1= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getCommandRule()); - } - - otherlv_1=(Token)match(input,RULE_ID,FOLLOW_14); - - newLeafNode(otherlv_1, grammarAccess.getCommandAccess().getSignalSignalCrossReference_1_0()); - - - } - - - } - - otherlv_2=(Token)match(input,22,FOLLOW_13); - - newLeafNode(otherlv_2, grammarAccess.getCommandAccess().getEqualsSignKeyword_2()); - - // InternalStatemachine.g:570:3: ( (lv_newValue_3_0= RULE_BOOLEAN ) ) - // InternalStatemachine.g:571:4: (lv_newValue_3_0= RULE_BOOLEAN ) - { - // InternalStatemachine.g:571:4: (lv_newValue_3_0= RULE_BOOLEAN ) - // InternalStatemachine.g:572:5: lv_newValue_3_0= RULE_BOOLEAN - { - lv_newValue_3_0=(Token)match(input,RULE_BOOLEAN,FOLLOW_2); - - newLeafNode(lv_newValue_3_0, grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getCommandRule()); - } - setWithLastConsumed( - current, - "newValue", - lv_newValue_3_0, - "org.eclipse.xtext.web.example.statemachine.Statemachine.BOOLEAN"); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleCommand" - - - // $ANTLR start "entryRuleQualifiedName" - // InternalStatemachine.g:592:1: entryRuleQualifiedName returns [String current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ; - public final String entryRuleQualifiedName() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleQualifiedName = null; - - - try { - // InternalStatemachine.g:592:53: (iv_ruleQualifiedName= ruleQualifiedName EOF ) - // InternalStatemachine.g:593:2: iv_ruleQualifiedName= ruleQualifiedName EOF - { - newCompositeNode(grammarAccess.getQualifiedNameRule()); - pushFollow(FOLLOW_1); - iv_ruleQualifiedName=ruleQualifiedName(); - - state._fsp--; - - current =iv_ruleQualifiedName.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQualifiedName" - - - // $ANTLR start "ruleQualifiedName" - // InternalStatemachine.g:599:1: ruleQualifiedName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ; - public final AntlrDatatypeRuleToken ruleQualifiedName() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_ID_0=null; - Token kw=null; - Token this_ID_2=null; - - - enterRule(); - - try { - // InternalStatemachine.g:605:2: ( (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) ) - // InternalStatemachine.g:606:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) - { - // InternalStatemachine.g:606:2: (this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* ) - // InternalStatemachine.g:607:3: this_ID_0= RULE_ID (kw= '.' this_ID_2= RULE_ID )* - { - this_ID_0=(Token)match(input,RULE_ID,FOLLOW_15); - - current.merge(this_ID_0); - - - newLeafNode(this_ID_0, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_0()); - - // InternalStatemachine.g:614:3: (kw= '.' this_ID_2= RULE_ID )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==23) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalStatemachine.g:615:4: kw= '.' this_ID_2= RULE_ID - { - kw=(Token)match(input,23,FOLLOW_6); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_0()); - - this_ID_2=(Token)match(input,RULE_ID,FOLLOW_15); - - current.merge(this_ID_2); - - - newLeafNode(this_ID_2, grammarAccess.getQualifiedNameAccess().getIDTerminalRuleCall_1_1()); - - - } - break; - - default : - break loop8; - } - } while (true); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQualifiedName" - - // Delegated rules - - - - - public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); - public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); - public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x000000000000E002L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000008002L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000001000L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000238000L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000038000L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000018000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000040000L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000080002L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000100000L}); - public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000400000L}); - public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000800002L}); - -} \ No newline at end of file diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/scoping/AbstractStatemachineScopeProvider.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/scoping/AbstractStatemachineScopeProvider.java deleted file mode 100644 index 845a1713c6f..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/scoping/AbstractStatemachineScopeProvider.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.scoping; - -import org.eclipse.xtext.scoping.impl.DelegatingScopeProvider; - -public abstract class AbstractStatemachineScopeProvider extends DelegatingScopeProvider { -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSemanticSequencer.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSemanticSequencer.java deleted file mode 100644 index 7a5b49693f0..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSemanticSequencer.java +++ /dev/null @@ -1,269 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.serializer; - -import com.google.inject.Inject; -import java.util.Set; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.Action; -import org.eclipse.xtext.Parameter; -import org.eclipse.xtext.ParserRule; -import org.eclipse.xtext.serializer.ISerializationContext; -import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; -import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; -import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.Condition; -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; -import org.eclipse.xtext.web.example.statemachine.statemachine.Transition; - -@SuppressWarnings("all") -public class StatemachineSemanticSequencer extends AbstractDelegatingSemanticSequencer { - - @Inject - private StatemachineGrammarAccess grammarAccess; - - @Override - public void sequence(ISerializationContext context, EObject semanticObject) { - EPackage epackage = semanticObject.eClass().getEPackage(); - ParserRule rule = context.getParserRule(); - Action action = context.getAssignedAction(); - Set parameters = context.getEnabledBooleanParameters(); - if (epackage == StatemachinePackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case StatemachinePackage.COMMAND: - sequence_Command(context, (Command) semanticObject); - return; - case StatemachinePackage.CONDITION: - sequence_Condition(context, (Condition) semanticObject); - return; - case StatemachinePackage.EVENT: - sequence_Event(context, (Event) semanticObject); - return; - case StatemachinePackage.INPUT_SIGNAL: - if (rule == grammarAccess.getInputSignalRule()) { - sequence_InputSignal(context, (InputSignal) semanticObject); - return; - } - else if (rule == grammarAccess.getSignalRule()) { - sequence_InputSignal_Signal(context, (InputSignal) semanticObject); - return; - } - else break; - case StatemachinePackage.OUTPUT_SIGNAL: - if (rule == grammarAccess.getOutputSignalRule()) { - sequence_OutputSignal(context, (OutputSignal) semanticObject); - return; - } - else if (rule == grammarAccess.getSignalRule()) { - sequence_OutputSignal_Signal(context, (OutputSignal) semanticObject); - return; - } - else break; - case StatemachinePackage.STATE: - sequence_State(context, (State) semanticObject); - return; - case StatemachinePackage.STATEMACHINE: - sequence_Statemachine(context, (Statemachine) semanticObject); - return; - case StatemachinePackage.TRANSITION: - sequence_Transition(context, (Transition) semanticObject); - return; - } - if (errorAcceptor != null) - errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); - } - - /** - *
-	 * Contexts:
-	 *     Command returns Command
-	 *
-	 * Constraint:
-	 *     (signal=[Signal|ID] newValue=BOOLEAN)
-	 * 
- */ - protected void sequence_Command(ISerializationContext context, Command semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.COMMAND__SIGNAL) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.COMMAND__SIGNAL)); - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.COMMAND__NEW_VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.COMMAND__NEW_VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getCommandAccess().getSignalSignalIDTerminalRuleCall_1_0_1(), semanticObject.eGet(StatemachinePackage.Literals.COMMAND__SIGNAL, false)); - feeder.accept(grammarAccess.getCommandAccess().getNewValueBOOLEANTerminalRuleCall_3_0(), semanticObject.isNewValue()); - feeder.finish(); - } - - - /** - *
-	 * Contexts:
-	 *     Condition returns Condition
-	 *
-	 * Constraint:
-	 *     (events+=Event events+=Event*)
-	 * 
- */ - protected void sequence_Condition(ISerializationContext context, Condition semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Event returns Event
-	 *
-	 * Constraint:
-	 *     (signal=[Signal|ID] value=BOOLEAN)
-	 * 
- */ - protected void sequence_Event(ISerializationContext context, Event semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.EVENT__SIGNAL) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.EVENT__SIGNAL)); - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.EVENT__VALUE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.EVENT__VALUE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getEventAccess().getSignalSignalIDTerminalRuleCall_0_0_1(), semanticObject.eGet(StatemachinePackage.Literals.EVENT__SIGNAL, false)); - feeder.accept(grammarAccess.getEventAccess().getValueBOOLEANTerminalRuleCall_2_0(), semanticObject.isValue()); - feeder.finish(); - } - - - /** - *
-	 * Contexts:
-	 *     InputSignal returns InputSignal
-	 *
-	 * Constraint:
-	 *     {InputSignal}
-	 * 
- */ - protected void sequence_InputSignal(ISerializationContext context, InputSignal semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Signal returns InputSignal
-	 *
-	 * Constraint:
-	 *     name=ID
-	 * 
- */ - protected void sequence_InputSignal_Signal(ISerializationContext context, InputSignal semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); - feeder.finish(); - } - - - /** - *
-	 * Contexts:
-	 *     OutputSignal returns OutputSignal
-	 *
-	 * Constraint:
-	 *     {OutputSignal}
-	 * 
- */ - protected void sequence_OutputSignal(ISerializationContext context, OutputSignal semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Signal returns OutputSignal
-	 *
-	 * Constraint:
-	 *     name=ID
-	 * 
- */ - protected void sequence_OutputSignal_Signal(ISerializationContext context, OutputSignal semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.SIGNAL__NAME)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getSignalAccess().getNameIDTerminalRuleCall_2_0(), semanticObject.getName()); - feeder.finish(); - } - - - /** - *
-	 * Contexts:
-	 *     State returns State
-	 *
-	 * Constraint:
-	 *     (name=ID commands+=Command* transitions+=Transition* nestedStates+=State*)
-	 * 
- */ - protected void sequence_State(ISerializationContext context, State semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Statemachine returns Statemachine
-	 *
-	 * Constraint:
-	 *     (signals+=Signal* states+=State*)
-	 * 
- */ - protected void sequence_Statemachine(ISerializationContext context, Statemachine semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Transition returns Transition
-	 *
-	 * Constraint:
-	 *     (condition=Condition state=[State|QualifiedName])
-	 * 
- */ - protected void sequence_Transition(ISerializationContext context, Transition semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.TRANSITION__CONDITION) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.TRANSITION__CONDITION)); - if (transientValues.isValueTransient(semanticObject, StatemachinePackage.Literals.TRANSITION__STATE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, StatemachinePackage.Literals.TRANSITION__STATE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getTransitionAccess().getConditionConditionParserRuleCall_1_0(), semanticObject.getCondition()); - feeder.accept(grammarAccess.getTransitionAccess().getStateStateQualifiedNameParserRuleCall_3_0_1(), semanticObject.eGet(StatemachinePackage.Literals.TRANSITION__STATE, false)); - feeder.finish(); - } - - -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSyntacticSequencer.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSyntacticSequencer.java deleted file mode 100644 index ee93a13c464..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/serializer/StatemachineSyntacticSequencer.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.serializer; - -import com.google.inject.Inject; -import java.util.List; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.IGrammarAccess; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.nodemodel.INode; -import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; -import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; -import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -@SuppressWarnings("all") -public class StatemachineSyntacticSequencer extends AbstractSyntacticSequencer { - - protected StatemachineGrammarAccess grammarAccess; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (StatemachineGrammarAccess) access; - } - - @Override - protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { - return ""; - } - - - @Override - protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { - if (transition.getAmbiguousSyntaxes().isEmpty()) return; - List transitionNodes = collectNodes(fromNode, toNode); - for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { - List syntaxNodes = getNodesFor(transitionNodes, syntax); - acceptNodes(getLastNavigableState(), syntaxNodes); - } - } - -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/services/StatemachineGrammarAccess.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/services/StatemachineGrammarAccess.java deleted file mode 100644 index 49ff4b3ff0d..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/services/StatemachineGrammarAccess.java +++ /dev/null @@ -1,592 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.services; - -import com.google.inject.Inject; -import com.google.inject.Singleton; -import java.util.List; -import org.eclipse.xtext.Action; -import org.eclipse.xtext.Alternatives; -import org.eclipse.xtext.Assignment; -import org.eclipse.xtext.CrossReference; -import org.eclipse.xtext.Grammar; -import org.eclipse.xtext.GrammarUtil; -import org.eclipse.xtext.Group; -import org.eclipse.xtext.Keyword; -import org.eclipse.xtext.ParserRule; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.TerminalRule; -import org.eclipse.xtext.common.services.TerminalsGrammarAccess; -import org.eclipse.xtext.service.AbstractElementFinder; -import org.eclipse.xtext.service.GrammarProvider; - -@Singleton -public class StatemachineGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder { - - public class StatemachineElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.Statemachine"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Action cStatemachineAction_0 = (Action)cGroup.eContents().get(0); - private final Assignment cSignalsAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cSignalsSignalParserRuleCall_1_0 = (RuleCall)cSignalsAssignment_1.eContents().get(0); - private final Assignment cStatesAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cStatesStateParserRuleCall_2_0 = (RuleCall)cStatesAssignment_2.eContents().get(0); - - //Statemachine : - // {Statemachine} - // signals+=Signal* - // states+=State*; - @Override public ParserRule getRule() { return rule; } - - //{Statemachine} - //signals+=Signal* - //states+=State* - public Group getGroup() { return cGroup; } - - //{Statemachine} - public Action getStatemachineAction_0() { return cStatemachineAction_0; } - - //signals+=Signal* - public Assignment getSignalsAssignment_1() { return cSignalsAssignment_1; } - - //Signal - public RuleCall getSignalsSignalParserRuleCall_1_0() { return cSignalsSignalParserRuleCall_1_0; } - - //states+=State* - public Assignment getStatesAssignment_2() { return cStatesAssignment_2; } - - //State - public RuleCall getStatesStateParserRuleCall_2_0() { return cStatesStateParserRuleCall_2_0; } - } - public class SignalElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.Signal"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0); - private final RuleCall cInputSignalParserRuleCall_0_0 = (RuleCall)cAlternatives_0.eContents().get(0); - private final RuleCall cOutputSignalParserRuleCall_0_1 = (RuleCall)cAlternatives_0.eContents().get(1); - private final Keyword cSignalKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); - - //Signal: - // (InputSignal | OutputSignal) 'signal' name=ID; - @Override public ParserRule getRule() { return rule; } - - //(InputSignal | OutputSignal) 'signal' name=ID - public Group getGroup() { return cGroup; } - - //(InputSignal | OutputSignal) - public Alternatives getAlternatives_0() { return cAlternatives_0; } - - //InputSignal - public RuleCall getInputSignalParserRuleCall_0_0() { return cInputSignalParserRuleCall_0_0; } - - //OutputSignal - public RuleCall getOutputSignalParserRuleCall_0_1() { return cOutputSignalParserRuleCall_0_1; } - - //'signal' - public Keyword getSignalKeyword_1() { return cSignalKeyword_1; } - - //name=ID - public Assignment getNameAssignment_2() { return cNameAssignment_2; } - - //ID - public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } - } - public class InputSignalElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.InputSignal"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Action cInputSignalAction_0 = (Action)cGroup.eContents().get(0); - private final Keyword cInputKeyword_1 = (Keyword)cGroup.eContents().get(1); - - //InputSignal: - // {InputSignal} - // 'input'; - @Override public ParserRule getRule() { return rule; } - - //{InputSignal} - //'input' - public Group getGroup() { return cGroup; } - - //{InputSignal} - public Action getInputSignalAction_0() { return cInputSignalAction_0; } - - //'input' - public Keyword getInputKeyword_1() { return cInputKeyword_1; } - } - public class OutputSignalElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.OutputSignal"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Action cOutputSignalAction_0 = (Action)cGroup.eContents().get(0); - private final Keyword cOutputKeyword_1 = (Keyword)cGroup.eContents().get(1); - - //OutputSignal: - // {OutputSignal} - // 'output'; - @Override public ParserRule getRule() { return rule; } - - //{OutputSignal} - //'output' - public Group getGroup() { return cGroup; } - - //{OutputSignal} - public Action getOutputSignalAction_0() { return cOutputSignalAction_0; } - - //'output' - public Keyword getOutputKeyword_1() { return cOutputKeyword_1; } - } - public class StateElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.State"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cStateKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); - private final Assignment cCommandsAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cCommandsCommandParserRuleCall_2_0 = (RuleCall)cCommandsAssignment_2.eContents().get(0); - private final Assignment cTransitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cTransitionsTransitionParserRuleCall_3_0 = (RuleCall)cTransitionsAssignment_3.eContents().get(0); - private final Assignment cNestedStatesAssignment_4 = (Assignment)cGroup.eContents().get(4); - private final RuleCall cNestedStatesStateParserRuleCall_4_0 = (RuleCall)cNestedStatesAssignment_4.eContents().get(0); - private final Keyword cEndKeyword_5 = (Keyword)cGroup.eContents().get(5); - - //State: - // 'state' name=ID - // commands+=Command* - // transitions+=Transition* - // nestedStates+=State* - // 'end'; - @Override public ParserRule getRule() { return rule; } - - //'state' name=ID - // commands+=Command* - // transitions+=Transition* - // nestedStates+=State* - //'end' - public Group getGroup() { return cGroup; } - - //'state' - public Keyword getStateKeyword_0() { return cStateKeyword_0; } - - //name=ID - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //ID - public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } - - //commands+=Command* - public Assignment getCommandsAssignment_2() { return cCommandsAssignment_2; } - - //Command - public RuleCall getCommandsCommandParserRuleCall_2_0() { return cCommandsCommandParserRuleCall_2_0; } - - //transitions+=Transition* - public Assignment getTransitionsAssignment_3() { return cTransitionsAssignment_3; } - - //Transition - public RuleCall getTransitionsTransitionParserRuleCall_3_0() { return cTransitionsTransitionParserRuleCall_3_0; } - - //nestedStates+=State* - public Assignment getNestedStatesAssignment_4() { return cNestedStatesAssignment_4; } - - //State - public RuleCall getNestedStatesStateParserRuleCall_4_0() { return cNestedStatesStateParserRuleCall_4_0; } - - //'end' - public Keyword getEndKeyword_5() { return cEndKeyword_5; } - } - public class TransitionElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.Transition"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cIfKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cConditionAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cConditionConditionParserRuleCall_1_0 = (RuleCall)cConditionAssignment_1.eContents().get(0); - private final Keyword cGotoKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Assignment cStateAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final CrossReference cStateStateCrossReference_3_0 = (CrossReference)cStateAssignment_3.eContents().get(0); - private final RuleCall cStateStateQualifiedNameParserRuleCall_3_0_1 = (RuleCall)cStateStateCrossReference_3_0.eContents().get(1); - - //Transition: - // 'if' condition=Condition 'goto' state=[State|QualifiedName]; - @Override public ParserRule getRule() { return rule; } - - //'if' condition=Condition 'goto' state=[State|QualifiedName] - public Group getGroup() { return cGroup; } - - //'if' - public Keyword getIfKeyword_0() { return cIfKeyword_0; } - - //condition=Condition - public Assignment getConditionAssignment_1() { return cConditionAssignment_1; } - - //Condition - public RuleCall getConditionConditionParserRuleCall_1_0() { return cConditionConditionParserRuleCall_1_0; } - - //'goto' - public Keyword getGotoKeyword_2() { return cGotoKeyword_2; } - - //state=[State|QualifiedName] - public Assignment getStateAssignment_3() { return cStateAssignment_3; } - - //[State|QualifiedName] - public CrossReference getStateStateCrossReference_3_0() { return cStateStateCrossReference_3_0; } - - //QualifiedName - public RuleCall getStateStateQualifiedNameParserRuleCall_3_0_1() { return cStateStateQualifiedNameParserRuleCall_3_0_1; } - } - public class ConditionElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.Condition"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cEventsAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cEventsEventParserRuleCall_0_0 = (RuleCall)cEventsAssignment_0.eContents().get(0); - private final Group cGroup_1 = (Group)cGroup.eContents().get(1); - private final Keyword cAndKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final Assignment cEventsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1); - private final RuleCall cEventsEventParserRuleCall_1_1_0 = (RuleCall)cEventsAssignment_1_1.eContents().get(0); - - //Condition: - // events+=Event ('and' events+=Event)*; - @Override public ParserRule getRule() { return rule; } - - //events+=Event ('and' events+=Event)* - public Group getGroup() { return cGroup; } - - //events+=Event - public Assignment getEventsAssignment_0() { return cEventsAssignment_0; } - - //Event - public RuleCall getEventsEventParserRuleCall_0_0() { return cEventsEventParserRuleCall_0_0; } - - //('and' events+=Event)* - public Group getGroup_1() { return cGroup_1; } - - //'and' - public Keyword getAndKeyword_1_0() { return cAndKeyword_1_0; } - - //events+=Event - public Assignment getEventsAssignment_1_1() { return cEventsAssignment_1_1; } - - //Event - public RuleCall getEventsEventParserRuleCall_1_1_0() { return cEventsEventParserRuleCall_1_1_0; } - } - public class EventElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.Event"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cSignalAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cSignalSignalCrossReference_0_0 = (CrossReference)cSignalAssignment_0.eContents().get(0); - private final RuleCall cSignalSignalIDTerminalRuleCall_0_0_1 = (RuleCall)cSignalSignalCrossReference_0_0.eContents().get(1); - private final Keyword cEqualsSignEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cValueAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cValueBOOLEANTerminalRuleCall_2_0 = (RuleCall)cValueAssignment_2.eContents().get(0); - - //Event: - // signal=[Signal] '==' value=BOOLEAN; - @Override public ParserRule getRule() { return rule; } - - //signal=[Signal] '==' value=BOOLEAN - public Group getGroup() { return cGroup; } - - //signal=[Signal] - public Assignment getSignalAssignment_0() { return cSignalAssignment_0; } - - //[Signal] - public CrossReference getSignalSignalCrossReference_0_0() { return cSignalSignalCrossReference_0_0; } - - //ID - public RuleCall getSignalSignalIDTerminalRuleCall_0_0_1() { return cSignalSignalIDTerminalRuleCall_0_0_1; } - - //'==' - public Keyword getEqualsSignEqualsSignKeyword_1() { return cEqualsSignEqualsSignKeyword_1; } - - //value=BOOLEAN - public Assignment getValueAssignment_2() { return cValueAssignment_2; } - - //BOOLEAN - public RuleCall getValueBOOLEANTerminalRuleCall_2_0() { return cValueBOOLEANTerminalRuleCall_2_0; } - } - public class CommandElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.Command"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cSetKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cSignalAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final CrossReference cSignalSignalCrossReference_1_0 = (CrossReference)cSignalAssignment_1.eContents().get(0); - private final RuleCall cSignalSignalIDTerminalRuleCall_1_0_1 = (RuleCall)cSignalSignalCrossReference_1_0.eContents().get(1); - private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Assignment cNewValueAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cNewValueBOOLEANTerminalRuleCall_3_0 = (RuleCall)cNewValueAssignment_3.eContents().get(0); - - //Command: - // 'set' signal=[Signal] '=' newValue=BOOLEAN; - @Override public ParserRule getRule() { return rule; } - - //'set' signal=[Signal] '=' newValue=BOOLEAN - public Group getGroup() { return cGroup; } - - //'set' - public Keyword getSetKeyword_0() { return cSetKeyword_0; } - - //signal=[Signal] - public Assignment getSignalAssignment_1() { return cSignalAssignment_1; } - - //[Signal] - public CrossReference getSignalSignalCrossReference_1_0() { return cSignalSignalCrossReference_1_0; } - - //ID - public RuleCall getSignalSignalIDTerminalRuleCall_1_0_1() { return cSignalSignalIDTerminalRuleCall_1_0_1; } - - //'=' - public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; } - - //newValue=BOOLEAN - public Assignment getNewValueAssignment_3() { return cNewValueAssignment_3; } - - //BOOLEAN - public RuleCall getNewValueBOOLEANTerminalRuleCall_3_0() { return cNewValueBOOLEANTerminalRuleCall_3_0; } - } - public class QualifiedNameElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.QualifiedName"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0); - private final Group cGroup_1 = (Group)cGroup.eContents().get(1); - private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); - - //QualifiedName: - // ID ('.' ID)*; - @Override public ParserRule getRule() { return rule; } - - //ID ('.' ID)* - public Group getGroup() { return cGroup; } - - //ID - public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } - - //('.' ID)* - public Group getGroup_1() { return cGroup_1; } - - //'.' - public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } - - //ID - public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; } - } - - - private final StatemachineElements pStatemachine; - private final SignalElements pSignal; - private final InputSignalElements pInputSignal; - private final OutputSignalElements pOutputSignal; - private final StateElements pState; - private final TransitionElements pTransition; - private final ConditionElements pCondition; - private final EventElements pEvent; - private final CommandElements pCommand; - private final QualifiedNameElements pQualifiedName; - private final TerminalRule tBOOLEAN; - - private final Grammar grammar; - - private final TerminalsGrammarAccess gaTerminals; - - @Inject - public StatemachineGrammarAccess(GrammarProvider grammarProvider, - TerminalsGrammarAccess gaTerminals) { - this.grammar = internalFindGrammar(grammarProvider); - this.gaTerminals = gaTerminals; - this.pStatemachine = new StatemachineElements(); - this.pSignal = new SignalElements(); - this.pInputSignal = new InputSignalElements(); - this.pOutputSignal = new OutputSignalElements(); - this.pState = new StateElements(); - this.pTransition = new TransitionElements(); - this.pCondition = new ConditionElements(); - this.pEvent = new EventElements(); - this.pCommand = new CommandElements(); - this.pQualifiedName = new QualifiedNameElements(); - this.tBOOLEAN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.xtext.web.example.statemachine.Statemachine.BOOLEAN"); - } - - protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { - Grammar grammar = grammarProvider.getGrammar(this); - while (grammar != null) { - if ("org.eclipse.xtext.web.example.statemachine.Statemachine".equals(grammar.getName())) { - return grammar; - } - List grammars = grammar.getUsedGrammars(); - if (!grammars.isEmpty()) { - grammar = grammars.iterator().next(); - } else { - return null; - } - } - return grammar; - } - - @Override - public Grammar getGrammar() { - return grammar; - } - - - public TerminalsGrammarAccess getTerminalsGrammarAccess() { - return gaTerminals; - } - - - //Statemachine : - // {Statemachine} - // signals+=Signal* - // states+=State*; - public StatemachineElements getStatemachineAccess() { - return pStatemachine; - } - - public ParserRule getStatemachineRule() { - return getStatemachineAccess().getRule(); - } - - //Signal: - // (InputSignal | OutputSignal) 'signal' name=ID; - public SignalElements getSignalAccess() { - return pSignal; - } - - public ParserRule getSignalRule() { - return getSignalAccess().getRule(); - } - - //InputSignal: - // {InputSignal} - // 'input'; - public InputSignalElements getInputSignalAccess() { - return pInputSignal; - } - - public ParserRule getInputSignalRule() { - return getInputSignalAccess().getRule(); - } - - //OutputSignal: - // {OutputSignal} - // 'output'; - public OutputSignalElements getOutputSignalAccess() { - return pOutputSignal; - } - - public ParserRule getOutputSignalRule() { - return getOutputSignalAccess().getRule(); - } - - //State: - // 'state' name=ID - // commands+=Command* - // transitions+=Transition* - // nestedStates+=State* - // 'end'; - public StateElements getStateAccess() { - return pState; - } - - public ParserRule getStateRule() { - return getStateAccess().getRule(); - } - - //Transition: - // 'if' condition=Condition 'goto' state=[State|QualifiedName]; - public TransitionElements getTransitionAccess() { - return pTransition; - } - - public ParserRule getTransitionRule() { - return getTransitionAccess().getRule(); - } - - //Condition: - // events+=Event ('and' events+=Event)*; - public ConditionElements getConditionAccess() { - return pCondition; - } - - public ParserRule getConditionRule() { - return getConditionAccess().getRule(); - } - - //Event: - // signal=[Signal] '==' value=BOOLEAN; - public EventElements getEventAccess() { - return pEvent; - } - - public ParserRule getEventRule() { - return getEventAccess().getRule(); - } - - //Command: - // 'set' signal=[Signal] '=' newValue=BOOLEAN; - public CommandElements getCommandAccess() { - return pCommand; - } - - public ParserRule getCommandRule() { - return getCommandAccess().getRule(); - } - - //QualifiedName: - // ID ('.' ID)*; - public QualifiedNameElements getQualifiedNameAccess() { - return pQualifiedName; - } - - public ParserRule getQualifiedNameRule() { - return getQualifiedNameAccess().getRule(); - } - - //terminal BOOLEAN returns ecore::EBoolean: - // 'true' | 'false'; - public TerminalRule getBOOLEANRule() { - return tBOOLEAN; - } - - //terminal ID: '^'?('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; - public TerminalRule getIDRule() { - return gaTerminals.getIDRule(); - } - - //terminal INT returns ecore::EInt: ('0'..'9')+; - public TerminalRule getINTRule() { - return gaTerminals.getINTRule(); - } - - //terminal STRING: - // '"' ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|'"') )* '"' | - // "'" ( '\\' . /* 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' */ | !('\\'|"'") )* "'" - // ; - public TerminalRule getSTRINGRule() { - return gaTerminals.getSTRINGRule(); - } - - //terminal ML_COMMENT : '/*' -> '*/'; - public TerminalRule getML_COMMENTRule() { - return gaTerminals.getML_COMMENTRule(); - } - - //terminal SL_COMMENT : '//' !('\n'|'\r')* ('\r'? '\n')?; - public TerminalRule getSL_COMMENTRule() { - return gaTerminals.getSL_COMMENTRule(); - } - - //terminal WS : (' '|'\t'|'\r'|'\n')+; - public TerminalRule getWSRule() { - return gaTerminals.getWSRule(); - } - - //terminal ANY_OTHER: .; - public TerminalRule getANY_OTHERRule() { - return gaTerminals.getANY_OTHERRule(); - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Command.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Command.java deleted file mode 100644 index 9c2c2afc178..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Command.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Command'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Command#getSignal Signal}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Command#isNewValue New Value}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getCommand() - * @model - * @generated - */ -public interface Command extends EObject -{ - /** - * Returns the value of the 'Signal' reference. - * - * - * @return the value of the 'Signal' reference. - * @see #setSignal(Signal) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getCommand_Signal() - * @model - * @generated - */ - Signal getSignal(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command#getSignal Signal}' reference. - * - * - * @param value the new value of the 'Signal' reference. - * @see #getSignal() - * @generated - */ - void setSignal(Signal value); - - /** - * Returns the value of the 'New Value' attribute. - * - * - * @return the value of the 'New Value' attribute. - * @see #setNewValue(boolean) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getCommand_NewValue() - * @model - * @generated - */ - boolean isNewValue(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command#isNewValue New Value}' attribute. - * - * - * @param value the new value of the 'New Value' attribute. - * @see #isNewValue() - * @generated - */ - void setNewValue(boolean value); - -} // Command diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Condition.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Condition.java deleted file mode 100644 index 7b67c32735c..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Condition.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Condition'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Condition#getEvents Events}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getCondition() - * @model - * @generated - */ -public interface Condition extends EObject -{ - /** - * Returns the value of the 'Events' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.statemachine.statemachine.Event}. - * - * - * @return the value of the 'Events' containment reference list. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getCondition_Events() - * @model containment="true" - * @generated - */ - EList getEvents(); - -} // Condition diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Event.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Event.java deleted file mode 100644 index 83f4c232360..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Event.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Event'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Event#getSignal Signal}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Event#isValue Value}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getEvent() - * @model - * @generated - */ -public interface Event extends EObject -{ - /** - * Returns the value of the 'Signal' reference. - * - * - * @return the value of the 'Signal' reference. - * @see #setSignal(Signal) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getEvent_Signal() - * @model - * @generated - */ - Signal getSignal(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event#getSignal Signal}' reference. - * - * - * @param value the new value of the 'Signal' reference. - * @see #getSignal() - * @generated - */ - void setSignal(Signal value); - - /** - * Returns the value of the 'Value' attribute. - * - * - * @return the value of the 'Value' attribute. - * @see #setValue(boolean) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getEvent_Value() - * @model - * @generated - */ - boolean isValue(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event#isValue Value}' attribute. - * - * - * @param value the new value of the 'Value' attribute. - * @see #isValue() - * @generated - */ - void setValue(boolean value); - -} // Event diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/InputSignal.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/InputSignal.java deleted file mode 100644 index 15aea9e4a2c..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/InputSignal.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - - -/** - * - * A representation of the model object 'Input Signal'. - * - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getInputSignal() - * @model - * @generated - */ -public interface InputSignal extends Signal -{ -} // InputSignal diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/OutputSignal.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/OutputSignal.java deleted file mode 100644 index 50f29bdc74e..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/OutputSignal.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - - -/** - * - * A representation of the model object 'Output Signal'. - * - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getOutputSignal() - * @model - * @generated - */ -public interface OutputSignal extends Signal -{ -} // OutputSignal diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Signal.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Signal.java deleted file mode 100644 index b106f80098c..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Signal.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Signal'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal#getName Name}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getSignal() - * @model - * @generated - */ -public interface Signal extends EObject -{ - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getSignal_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - -} // Signal diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/State.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/State.java deleted file mode 100644 index b7767196ef5..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/State.java +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'State'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getName Name}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getCommands Commands}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getTransitions Transitions}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getNestedStates Nested States}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getState() - * @model - * @generated - */ -public interface State extends EObject -{ - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getState_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Commands' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.statemachine.statemachine.Command}. - * - * - * @return the value of the 'Commands' containment reference list. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getState_Commands() - * @model containment="true" - * @generated - */ - EList getCommands(); - - /** - * Returns the value of the 'Transitions' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition}. - * - * - * @return the value of the 'Transitions' containment reference list. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getState_Transitions() - * @model containment="true" - * @generated - */ - EList getTransitions(); - - /** - * Returns the value of the 'Nested States' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.statemachine.statemachine.State}. - * - * - * @return the value of the 'Nested States' containment reference list. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getState_NestedStates() - * @model containment="true" - * @generated - */ - EList getNestedStates(); - -} // State diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Statemachine.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Statemachine.java deleted file mode 100644 index 2536e013283..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Statemachine.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Statemachine'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine#getSignals Signals}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine#getStates States}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getStatemachine() - * @model - * @generated - */ -public interface Statemachine extends EObject -{ - /** - * Returns the value of the 'Signals' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal}. - * - * - * @return the value of the 'Signals' containment reference list. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getStatemachine_Signals() - * @model containment="true" - * @generated - */ - EList getSignals(); - - /** - * Returns the value of the 'States' containment reference list. - * The list contents are of type {@link org.eclipse.xtext.web.example.statemachine.statemachine.State}. - * - * - * @return the value of the 'States' containment reference list. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getStatemachine_States() - * @model containment="true" - * @generated - */ - EList getStates(); - -} // Statemachine diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/StatemachineFactory.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/StatemachineFactory.java deleted file mode 100644 index 11ebc35ffe1..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/StatemachineFactory.java +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.ecore.EFactory; - -/** - * - * The Factory for the model. - * It provides a create method for each non-abstract class of the model. - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage - * @generated - */ -public interface StatemachineFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * - * - * @generated - */ - StatemachineFactory eINSTANCE = org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineFactoryImpl.init(); - - /** - * Returns a new object of class 'Statemachine'. - * - * - * @return a new object of class 'Statemachine'. - * @generated - */ - Statemachine createStatemachine(); - - /** - * Returns a new object of class 'Signal'. - * - * - * @return a new object of class 'Signal'. - * @generated - */ - Signal createSignal(); - - /** - * Returns a new object of class 'Input Signal'. - * - * - * @return a new object of class 'Input Signal'. - * @generated - */ - InputSignal createInputSignal(); - - /** - * Returns a new object of class 'Output Signal'. - * - * - * @return a new object of class 'Output Signal'. - * @generated - */ - OutputSignal createOutputSignal(); - - /** - * Returns a new object of class 'State'. - * - * - * @return a new object of class 'State'. - * @generated - */ - State createState(); - - /** - * Returns a new object of class 'Transition'. - * - * - * @return a new object of class 'Transition'. - * @generated - */ - Transition createTransition(); - - /** - * Returns a new object of class 'Condition'. - * - * - * @return a new object of class 'Condition'. - * @generated - */ - Condition createCondition(); - - /** - * Returns a new object of class 'Event'. - * - * - * @return a new object of class 'Event'. - * @generated - */ - Event createEvent(); - - /** - * Returns a new object of class 'Command'. - * - * - * @return a new object of class 'Command'. - * @generated - */ - Command createCommand(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - StatemachinePackage getStatemachinePackage(); - -} //StatemachineFactory diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/StatemachinePackage.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/StatemachinePackage.java deleted file mode 100644 index cea38123646..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/StatemachinePackage.java +++ /dev/null @@ -1,852 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -/** - * - * The Package for the model. - * It contains accessors for the meta objects to represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachineFactory - * @model kind="package" - * @generated - */ -public interface StatemachinePackage extends EPackage -{ - /** - * The package name. - * - * - * @generated - */ - String eNAME = "statemachine"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.eclipse.org/xtext/web/example/Statemachine"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "statemachine"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - StatemachinePackage eINSTANCE = org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl.init(); - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineImpl Statemachine}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getStatemachine() - * @generated - */ - int STATEMACHINE = 0; - - /** - * The feature id for the 'Signals' containment reference list. - * - * - * @generated - * @ordered - */ - int STATEMACHINE__SIGNALS = 0; - - /** - * The feature id for the 'States' containment reference list. - * - * - * @generated - * @ordered - */ - int STATEMACHINE__STATES = 1; - - /** - * The number of structural features of the 'Statemachine' class. - * - * - * @generated - * @ordered - */ - int STATEMACHINE_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.SignalImpl Signal}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.SignalImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getSignal() - * @generated - */ - int SIGNAL = 1; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int SIGNAL__NAME = 0; - - /** - * The number of structural features of the 'Signal' class. - * - * - * @generated - * @ordered - */ - int SIGNAL_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.InputSignalImpl Input Signal}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.InputSignalImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getInputSignal() - * @generated - */ - int INPUT_SIGNAL = 2; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int INPUT_SIGNAL__NAME = SIGNAL__NAME; - - /** - * The number of structural features of the 'Input Signal' class. - * - * - * @generated - * @ordered - */ - int INPUT_SIGNAL_FEATURE_COUNT = SIGNAL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.OutputSignalImpl Output Signal}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.OutputSignalImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getOutputSignal() - * @generated - */ - int OUTPUT_SIGNAL = 3; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int OUTPUT_SIGNAL__NAME = SIGNAL__NAME; - - /** - * The number of structural features of the 'Output Signal' class. - * - * - * @generated - * @ordered - */ - int OUTPUT_SIGNAL_FEATURE_COUNT = SIGNAL_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl State}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getState() - * @generated - */ - int STATE = 4; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int STATE__NAME = 0; - - /** - * The feature id for the 'Commands' containment reference list. - * - * - * @generated - * @ordered - */ - int STATE__COMMANDS = 1; - - /** - * The feature id for the 'Transitions' containment reference list. - * - * - * @generated - * @ordered - */ - int STATE__TRANSITIONS = 2; - - /** - * The feature id for the 'Nested States' containment reference list. - * - * - * @generated - * @ordered - */ - int STATE__NESTED_STATES = 3; - - /** - * The number of structural features of the 'State' class. - * - * - * @generated - * @ordered - */ - int STATE_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.TransitionImpl Transition}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.TransitionImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getTransition() - * @generated - */ - int TRANSITION = 5; - - /** - * The feature id for the 'Condition' containment reference. - * - * - * @generated - * @ordered - */ - int TRANSITION__CONDITION = 0; - - /** - * The feature id for the 'State' reference. - * - * - * @generated - * @ordered - */ - int TRANSITION__STATE = 1; - - /** - * The number of structural features of the 'Transition' class. - * - * - * @generated - * @ordered - */ - int TRANSITION_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.ConditionImpl Condition}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.ConditionImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getCondition() - * @generated - */ - int CONDITION = 6; - - /** - * The feature id for the 'Events' containment reference list. - * - * - * @generated - * @ordered - */ - int CONDITION__EVENTS = 0; - - /** - * The number of structural features of the 'Condition' class. - * - * - * @generated - * @ordered - */ - int CONDITION_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.EventImpl Event}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.EventImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getEvent() - * @generated - */ - int EVENT = 7; - - /** - * The feature id for the 'Signal' reference. - * - * - * @generated - * @ordered - */ - int EVENT__SIGNAL = 0; - - /** - * The feature id for the 'Value' attribute. - * - * - * @generated - * @ordered - */ - int EVENT__VALUE = 1; - - /** - * The number of structural features of the 'Event' class. - * - * - * @generated - * @ordered - */ - int EVENT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.CommandImpl Command}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.CommandImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getCommand() - * @generated - */ - int COMMAND = 8; - - /** - * The feature id for the 'Signal' reference. - * - * - * @generated - * @ordered - */ - int COMMAND__SIGNAL = 0; - - /** - * The feature id for the 'New Value' attribute. - * - * - * @generated - * @ordered - */ - int COMMAND__NEW_VALUE = 1; - - /** - * The number of structural features of the 'Command' class. - * - * - * @generated - * @ordered - */ - int COMMAND_FEATURE_COUNT = 2; - - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine Statemachine}'. - * - * - * @return the meta object for class 'Statemachine'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine - * @generated - */ - EClass getStatemachine(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine#getSignals Signals}'. - * - * - * @return the meta object for the containment reference list 'Signals'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine#getSignals() - * @see #getStatemachine() - * @generated - */ - EReference getStatemachine_Signals(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine#getStates States}'. - * - * - * @return the meta object for the containment reference list 'States'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine#getStates() - * @see #getStatemachine() - * @generated - */ - EReference getStatemachine_States(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal Signal}'. - * - * - * @return the meta object for class 'Signal'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Signal - * @generated - */ - EClass getSignal(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Signal#getName() - * @see #getSignal() - * @generated - */ - EAttribute getSignal_Name(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal Input Signal}'. - * - * - * @return the meta object for class 'Input Signal'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal - * @generated - */ - EClass getInputSignal(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal Output Signal}'. - * - * - * @return the meta object for class 'Output Signal'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal - * @generated - */ - EClass getOutputSignal(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State State}'. - * - * - * @return the meta object for class 'State'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.State - * @generated - */ - EClass getState(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.State#getName() - * @see #getState() - * @generated - */ - EAttribute getState_Name(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getCommands Commands}'. - * - * - * @return the meta object for the containment reference list 'Commands'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.State#getCommands() - * @see #getState() - * @generated - */ - EReference getState_Commands(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getTransitions Transitions}'. - * - * - * @return the meta object for the containment reference list 'Transitions'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.State#getTransitions() - * @see #getState() - * @generated - */ - EReference getState_Transitions(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State#getNestedStates Nested States}'. - * - * - * @return the meta object for the containment reference list 'Nested States'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.State#getNestedStates() - * @see #getState() - * @generated - */ - EReference getState_NestedStates(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition Transition}'. - * - * - * @return the meta object for class 'Transition'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Transition - * @generated - */ - EClass getTransition(); - - /** - * Returns the meta object for the containment reference '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getCondition Condition}'. - * - * - * @return the meta object for the containment reference 'Condition'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getCondition() - * @see #getTransition() - * @generated - */ - EReference getTransition_Condition(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getState State}'. - * - * - * @return the meta object for the reference 'State'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getState() - * @see #getTransition() - * @generated - */ - EReference getTransition_State(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Condition Condition}'. - * - * - * @return the meta object for class 'Condition'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Condition - * @generated - */ - EClass getCondition(); - - /** - * Returns the meta object for the containment reference list '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Condition#getEvents Events}'. - * - * - * @return the meta object for the containment reference list 'Events'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Condition#getEvents() - * @see #getCondition() - * @generated - */ - EReference getCondition_Events(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event Event}'. - * - * - * @return the meta object for class 'Event'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Event - * @generated - */ - EClass getEvent(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event#getSignal Signal}'. - * - * - * @return the meta object for the reference 'Signal'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Event#getSignal() - * @see #getEvent() - * @generated - */ - EReference getEvent_Signal(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event#isValue Value}'. - * - * - * @return the meta object for the attribute 'Value'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Event#isValue() - * @see #getEvent() - * @generated - */ - EAttribute getEvent_Value(); - - /** - * Returns the meta object for class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command Command}'. - * - * - * @return the meta object for class 'Command'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Command - * @generated - */ - EClass getCommand(); - - /** - * Returns the meta object for the reference '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command#getSignal Signal}'. - * - * - * @return the meta object for the reference 'Signal'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Command#getSignal() - * @see #getCommand() - * @generated - */ - EReference getCommand_Signal(); - - /** - * Returns the meta object for the attribute '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command#isNewValue New Value}'. - * - * - * @return the meta object for the attribute 'New Value'. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Command#isNewValue() - * @see #getCommand() - * @generated - */ - EAttribute getCommand_NewValue(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - StatemachineFactory getStatemachineFactory(); - - /** - * - * Defines literals for the meta objects that represent - *
    - *
  • each class,
  • - *
  • each feature of each class,
  • - *
  • each enum,
  • - *
  • and each data type
  • - *
- * - * @generated - */ - interface Literals - { - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineImpl Statemachine}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getStatemachine() - * @generated - */ - EClass STATEMACHINE = eINSTANCE.getStatemachine(); - - /** - * The meta object literal for the 'Signals' containment reference list feature. - * - * - * @generated - */ - EReference STATEMACHINE__SIGNALS = eINSTANCE.getStatemachine_Signals(); - - /** - * The meta object literal for the 'States' containment reference list feature. - * - * - * @generated - */ - EReference STATEMACHINE__STATES = eINSTANCE.getStatemachine_States(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.SignalImpl Signal}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.SignalImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getSignal() - * @generated - */ - EClass SIGNAL = eINSTANCE.getSignal(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute SIGNAL__NAME = eINSTANCE.getSignal_Name(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.InputSignalImpl Input Signal}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.InputSignalImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getInputSignal() - * @generated - */ - EClass INPUT_SIGNAL = eINSTANCE.getInputSignal(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.OutputSignalImpl Output Signal}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.OutputSignalImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getOutputSignal() - * @generated - */ - EClass OUTPUT_SIGNAL = eINSTANCE.getOutputSignal(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl State}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getState() - * @generated - */ - EClass STATE = eINSTANCE.getState(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute STATE__NAME = eINSTANCE.getState_Name(); - - /** - * The meta object literal for the 'Commands' containment reference list feature. - * - * - * @generated - */ - EReference STATE__COMMANDS = eINSTANCE.getState_Commands(); - - /** - * The meta object literal for the 'Transitions' containment reference list feature. - * - * - * @generated - */ - EReference STATE__TRANSITIONS = eINSTANCE.getState_Transitions(); - - /** - * The meta object literal for the 'Nested States' containment reference list feature. - * - * - * @generated - */ - EReference STATE__NESTED_STATES = eINSTANCE.getState_NestedStates(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.TransitionImpl Transition}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.TransitionImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getTransition() - * @generated - */ - EClass TRANSITION = eINSTANCE.getTransition(); - - /** - * The meta object literal for the 'Condition' containment reference feature. - * - * - * @generated - */ - EReference TRANSITION__CONDITION = eINSTANCE.getTransition_Condition(); - - /** - * The meta object literal for the 'State' reference feature. - * - * - * @generated - */ - EReference TRANSITION__STATE = eINSTANCE.getTransition_State(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.ConditionImpl Condition}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.ConditionImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getCondition() - * @generated - */ - EClass CONDITION = eINSTANCE.getCondition(); - - /** - * The meta object literal for the 'Events' containment reference list feature. - * - * - * @generated - */ - EReference CONDITION__EVENTS = eINSTANCE.getCondition_Events(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.EventImpl Event}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.EventImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getEvent() - * @generated - */ - EClass EVENT = eINSTANCE.getEvent(); - - /** - * The meta object literal for the 'Signal' reference feature. - * - * - * @generated - */ - EReference EVENT__SIGNAL = eINSTANCE.getEvent_Signal(); - - /** - * The meta object literal for the 'Value' attribute feature. - * - * - * @generated - */ - EAttribute EVENT__VALUE = eINSTANCE.getEvent_Value(); - - /** - * The meta object literal for the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.CommandImpl Command}' class. - * - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.CommandImpl - * @see org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachinePackageImpl#getCommand() - * @generated - */ - EClass COMMAND = eINSTANCE.getCommand(); - - /** - * The meta object literal for the 'Signal' reference feature. - * - * - * @generated - */ - EReference COMMAND__SIGNAL = eINSTANCE.getCommand_Signal(); - - /** - * The meta object literal for the 'New Value' attribute feature. - * - * - * @generated - */ - EAttribute COMMAND__NEW_VALUE = eINSTANCE.getCommand_NewValue(); - - } - -} //StatemachinePackage diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Transition.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Transition.java deleted file mode 100644 index 263fbcd01b7..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/Transition.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Transition'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getCondition Condition}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getState State}
  • - *
- * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getTransition() - * @model - * @generated - */ -public interface Transition extends EObject -{ - /** - * Returns the value of the 'Condition' containment reference. - * - * - * @return the value of the 'Condition' containment reference. - * @see #setCondition(Condition) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getTransition_Condition() - * @model containment="true" - * @generated - */ - Condition getCondition(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getCondition Condition}' containment reference. - * - * - * @param value the new value of the 'Condition' containment reference. - * @see #getCondition() - * @generated - */ - void setCondition(Condition value); - - /** - * Returns the value of the 'State' reference. - * - * - * @return the value of the 'State' reference. - * @see #setState(State) - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#getTransition_State() - * @model - * @generated - */ - State getState(); - - /** - * Sets the value of the '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition#getState State}' reference. - * - * - * @param value the new value of the 'State' reference. - * @see #getState() - * @generated - */ - void setState(State value); - -} // Transition diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/CommandImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/CommandImpl.java deleted file mode 100644 index 0544196d57e..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/CommandImpl.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Command'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.CommandImpl#getSignal Signal}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.CommandImpl#isNewValue New Value}
  • - *
- * - * @generated - */ -public class CommandImpl extends MinimalEObjectImpl.Container implements Command -{ - /** - * The cached value of the '{@link #getSignal() Signal}' reference. - * - * - * @see #getSignal() - * @generated - * @ordered - */ - protected Signal signal; - - /** - * The default value of the '{@link #isNewValue() New Value}' attribute. - * - * - * @see #isNewValue() - * @generated - * @ordered - */ - protected static final boolean NEW_VALUE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isNewValue() New Value}' attribute. - * - * - * @see #isNewValue() - * @generated - * @ordered - */ - protected boolean newValue = NEW_VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected CommandImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.COMMAND; - } - - /** - * - * - * @generated - */ - @Override - public Signal getSignal() - { - if (signal != null && signal.eIsProxy()) - { - InternalEObject oldSignal = (InternalEObject)signal; - signal = (Signal)eResolveProxy(oldSignal); - if (signal != oldSignal) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, StatemachinePackage.COMMAND__SIGNAL, oldSignal, signal)); - } - } - return signal; - } - - /** - * - * - * @generated - */ - public Signal basicGetSignal() - { - return signal; - } - - /** - * - * - * @generated - */ - @Override - public void setSignal(Signal newSignal) - { - Signal oldSignal = signal; - signal = newSignal; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.COMMAND__SIGNAL, oldSignal, signal)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isNewValue() - { - return newValue; - } - - /** - * - * - * @generated - */ - @Override - public void setNewValue(boolean newNewValue) - { - boolean oldNewValue = newValue; - newValue = newNewValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.COMMAND__NEW_VALUE, oldNewValue, newValue)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.COMMAND__SIGNAL: - if (resolve) return getSignal(); - return basicGetSignal(); - case StatemachinePackage.COMMAND__NEW_VALUE: - return isNewValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.COMMAND__SIGNAL: - setSignal((Signal)newValue); - return; - case StatemachinePackage.COMMAND__NEW_VALUE: - setNewValue((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.COMMAND__SIGNAL: - setSignal((Signal)null); - return; - case StatemachinePackage.COMMAND__NEW_VALUE: - setNewValue(NEW_VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.COMMAND__SIGNAL: - return signal != null; - case StatemachinePackage.COMMAND__NEW_VALUE: - return newValue != NEW_VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (newValue: "); - result.append(newValue); - result.append(')'); - return result.toString(); - } - -} //CommandImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/ConditionImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/ConditionImpl.java deleted file mode 100644 index d2adc3ae545..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/ConditionImpl.java +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Condition; -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Condition'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.ConditionImpl#getEvents Events}
  • - *
- * - * @generated - */ -public class ConditionImpl extends MinimalEObjectImpl.Container implements Condition -{ - /** - * The cached value of the '{@link #getEvents() Events}' containment reference list. - * - * - * @see #getEvents() - * @generated - * @ordered - */ - protected EList events; - - /** - * - * - * @generated - */ - protected ConditionImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.CONDITION; - } - - /** - * - * - * @generated - */ - @Override - public EList getEvents() - { - if (events == null) - { - events = new EObjectContainmentEList(Event.class, this, StatemachinePackage.CONDITION__EVENTS); - } - return events; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case StatemachinePackage.CONDITION__EVENTS: - return ((InternalEList)getEvents()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.CONDITION__EVENTS: - return getEvents(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.CONDITION__EVENTS: - getEvents().clear(); - getEvents().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.CONDITION__EVENTS: - getEvents().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.CONDITION__EVENTS: - return events != null && !events.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ConditionImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/EventImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/EventImpl.java deleted file mode 100644 index abfa90a0f85..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/EventImpl.java +++ /dev/null @@ -1,254 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Event'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.EventImpl#getSignal Signal}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.EventImpl#isValue Value}
  • - *
- * - * @generated - */ -public class EventImpl extends MinimalEObjectImpl.Container implements Event -{ - /** - * The cached value of the '{@link #getSignal() Signal}' reference. - * - * - * @see #getSignal() - * @generated - * @ordered - */ - protected Signal signal; - - /** - * The default value of the '{@link #isValue() Value}' attribute. - * - * - * @see #isValue() - * @generated - * @ordered - */ - protected static final boolean VALUE_EDEFAULT = false; - - /** - * The cached value of the '{@link #isValue() Value}' attribute. - * - * - * @see #isValue() - * @generated - * @ordered - */ - protected boolean value = VALUE_EDEFAULT; - - /** - * - * - * @generated - */ - protected EventImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.EVENT; - } - - /** - * - * - * @generated - */ - @Override - public Signal getSignal() - { - if (signal != null && signal.eIsProxy()) - { - InternalEObject oldSignal = (InternalEObject)signal; - signal = (Signal)eResolveProxy(oldSignal); - if (signal != oldSignal) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, StatemachinePackage.EVENT__SIGNAL, oldSignal, signal)); - } - } - return signal; - } - - /** - * - * - * @generated - */ - public Signal basicGetSignal() - { - return signal; - } - - /** - * - * - * @generated - */ - @Override - public void setSignal(Signal newSignal) - { - Signal oldSignal = signal; - signal = newSignal; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.EVENT__SIGNAL, oldSignal, signal)); - } - - /** - * - * - * @generated - */ - @Override - public boolean isValue() - { - return value; - } - - /** - * - * - * @generated - */ - @Override - public void setValue(boolean newValue) - { - boolean oldValue = value; - value = newValue; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.EVENT__VALUE, oldValue, value)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.EVENT__SIGNAL: - if (resolve) return getSignal(); - return basicGetSignal(); - case StatemachinePackage.EVENT__VALUE: - return isValue(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.EVENT__SIGNAL: - setSignal((Signal)newValue); - return; - case StatemachinePackage.EVENT__VALUE: - setValue((Boolean)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.EVENT__SIGNAL: - setSignal((Signal)null); - return; - case StatemachinePackage.EVENT__VALUE: - setValue(VALUE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.EVENT__SIGNAL: - return signal != null; - case StatemachinePackage.EVENT__VALUE: - return value != VALUE_EDEFAULT; - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (value: "); - result.append(value); - result.append(')'); - return result.toString(); - } - -} //EventImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/InputSignalImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/InputSignalImpl.java deleted file mode 100644 index 1a057a39ca0..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/InputSignalImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Input Signal'. - * - * - * @generated - */ -public class InputSignalImpl extends SignalImpl implements InputSignal -{ - /** - * - * - * @generated - */ - protected InputSignalImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.INPUT_SIGNAL; - } - -} //InputSignalImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/OutputSignalImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/OutputSignalImpl.java deleted file mode 100644 index 35208dfcdb2..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/OutputSignalImpl.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Output Signal'. - * - * - * @generated - */ -public class OutputSignalImpl extends SignalImpl implements OutputSignal -{ - /** - * - * - * @generated - */ - protected OutputSignalImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.OUTPUT_SIGNAL; - } - -} //OutputSignalImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/SignalImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/SignalImpl.java deleted file mode 100644 index 697ef733438..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/SignalImpl.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Signal'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.SignalImpl#getName Name}
  • - *
- * - * @generated - */ -public class SignalImpl extends MinimalEObjectImpl.Container implements Signal -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * - * - * @generated - */ - protected SignalImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.SIGNAL; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.SIGNAL__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.SIGNAL__NAME: - return getName(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.SIGNAL__NAME: - setName((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.SIGNAL__NAME: - setName(NAME_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.SIGNAL__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //SignalImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StateImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StateImpl.java deleted file mode 100644 index 910e4ffd96f..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StateImpl.java +++ /dev/null @@ -1,328 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; -import org.eclipse.xtext.web.example.statemachine.statemachine.Transition; - -/** - * - * An implementation of the model object 'State'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl#getName Name}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl#getCommands Commands}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl#getTransitions Transitions}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StateImpl#getNestedStates Nested States}
  • - *
- * - * @generated - */ -public class StateImpl extends MinimalEObjectImpl.Container implements State -{ - /** - * The default value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected static final String NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getName() Name}' attribute. - * - * - * @see #getName() - * @generated - * @ordered - */ - protected String name = NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getCommands() Commands}' containment reference list. - * - * - * @see #getCommands() - * @generated - * @ordered - */ - protected EList commands; - - /** - * The cached value of the '{@link #getTransitions() Transitions}' containment reference list. - * - * - * @see #getTransitions() - * @generated - * @ordered - */ - protected EList transitions; - - /** - * The cached value of the '{@link #getNestedStates() Nested States}' containment reference list. - * - * - * @see #getNestedStates() - * @generated - * @ordered - */ - protected EList nestedStates; - - /** - * - * - * @generated - */ - protected StateImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.STATE; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public void setName(String newName) - { - String oldName = name; - name = newName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.STATE__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public EList getCommands() - { - if (commands == null) - { - commands = new EObjectContainmentEList(Command.class, this, StatemachinePackage.STATE__COMMANDS); - } - return commands; - } - - /** - * - * - * @generated - */ - @Override - public EList getTransitions() - { - if (transitions == null) - { - transitions = new EObjectContainmentEList(Transition.class, this, StatemachinePackage.STATE__TRANSITIONS); - } - return transitions; - } - - /** - * - * - * @generated - */ - @Override - public EList getNestedStates() - { - if (nestedStates == null) - { - nestedStates = new EObjectContainmentEList(State.class, this, StatemachinePackage.STATE__NESTED_STATES); - } - return nestedStates; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case StatemachinePackage.STATE__COMMANDS: - return ((InternalEList)getCommands()).basicRemove(otherEnd, msgs); - case StatemachinePackage.STATE__TRANSITIONS: - return ((InternalEList)getTransitions()).basicRemove(otherEnd, msgs); - case StatemachinePackage.STATE__NESTED_STATES: - return ((InternalEList)getNestedStates()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.STATE__NAME: - return getName(); - case StatemachinePackage.STATE__COMMANDS: - return getCommands(); - case StatemachinePackage.STATE__TRANSITIONS: - return getTransitions(); - case StatemachinePackage.STATE__NESTED_STATES: - return getNestedStates(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.STATE__NAME: - setName((String)newValue); - return; - case StatemachinePackage.STATE__COMMANDS: - getCommands().clear(); - getCommands().addAll((Collection)newValue); - return; - case StatemachinePackage.STATE__TRANSITIONS: - getTransitions().clear(); - getTransitions().addAll((Collection)newValue); - return; - case StatemachinePackage.STATE__NESTED_STATES: - getNestedStates().clear(); - getNestedStates().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.STATE__NAME: - setName(NAME_EDEFAULT); - return; - case StatemachinePackage.STATE__COMMANDS: - getCommands().clear(); - return; - case StatemachinePackage.STATE__TRANSITIONS: - getTransitions().clear(); - return; - case StatemachinePackage.STATE__NESTED_STATES: - getNestedStates().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.STATE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case StatemachinePackage.STATE__COMMANDS: - return commands != null && !commands.isEmpty(); - case StatemachinePackage.STATE__TRANSITIONS: - return transitions != null && !transitions.isEmpty(); - case StatemachinePackage.STATE__NESTED_STATES: - return nestedStates != null && !nestedStates.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (name: "); - result.append(name); - result.append(')'); - return result.toString(); - } - -} //StateImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachineFactoryImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachineFactoryImpl.java deleted file mode 100644 index 66a597c9111..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachineFactoryImpl.java +++ /dev/null @@ -1,218 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.impl.EFactoryImpl; - -import org.eclipse.emf.ecore.plugin.EcorePlugin; - -import org.eclipse.xtext.web.example.statemachine.statemachine.*; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class StatemachineFactoryImpl extends EFactoryImpl implements StatemachineFactory -{ - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static StatemachineFactory init() - { - try - { - StatemachineFactory theStatemachineFactory = (StatemachineFactory)EPackage.Registry.INSTANCE.getEFactory(StatemachinePackage.eNS_URI); - if (theStatemachineFactory != null) - { - return theStatemachineFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new StatemachineFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public StatemachineFactoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case StatemachinePackage.STATEMACHINE: return createStatemachine(); - case StatemachinePackage.SIGNAL: return createSignal(); - case StatemachinePackage.INPUT_SIGNAL: return createInputSignal(); - case StatemachinePackage.OUTPUT_SIGNAL: return createOutputSignal(); - case StatemachinePackage.STATE: return createState(); - case StatemachinePackage.TRANSITION: return createTransition(); - case StatemachinePackage.CONDITION: return createCondition(); - case StatemachinePackage.EVENT: return createEvent(); - case StatemachinePackage.COMMAND: return createCommand(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Statemachine createStatemachine() - { - StatemachineImpl statemachine = new StatemachineImpl(); - return statemachine; - } - - /** - * - * - * @generated - */ - @Override - public Signal createSignal() - { - SignalImpl signal = new SignalImpl(); - return signal; - } - - /** - * - * - * @generated - */ - @Override - public InputSignal createInputSignal() - { - InputSignalImpl inputSignal = new InputSignalImpl(); - return inputSignal; - } - - /** - * - * - * @generated - */ - @Override - public OutputSignal createOutputSignal() - { - OutputSignalImpl outputSignal = new OutputSignalImpl(); - return outputSignal; - } - - /** - * - * - * @generated - */ - @Override - public State createState() - { - StateImpl state = new StateImpl(); - return state; - } - - /** - * - * - * @generated - */ - @Override - public Transition createTransition() - { - TransitionImpl transition = new TransitionImpl(); - return transition; - } - - /** - * - * - * @generated - */ - @Override - public Condition createCondition() - { - ConditionImpl condition = new ConditionImpl(); - return condition; - } - - /** - * - * - * @generated - */ - @Override - public Event createEvent() - { - EventImpl event = new EventImpl(); - return event; - } - - /** - * - * - * @generated - */ - @Override - public Command createCommand() - { - CommandImpl command = new CommandImpl(); - return command; - } - - /** - * - * - * @generated - */ - @Override - public StatemachinePackage getStatemachinePackage() - { - return (StatemachinePackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static StatemachinePackage getPackage() - { - return StatemachinePackage.eINSTANCE; - } - -} //StatemachineFactoryImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachineImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachineImpl.java deleted file mode 100644 index 02173045d84..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachineImpl.java +++ /dev/null @@ -1,214 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import java.util.Collection; - -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; - -/** - * - * An implementation of the model object 'Statemachine'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineImpl#getSignals Signals}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.StatemachineImpl#getStates States}
  • - *
- * - * @generated - */ -public class StatemachineImpl extends MinimalEObjectImpl.Container implements Statemachine -{ - /** - * The cached value of the '{@link #getSignals() Signals}' containment reference list. - * - * - * @see #getSignals() - * @generated - * @ordered - */ - protected EList signals; - - /** - * The cached value of the '{@link #getStates() States}' containment reference list. - * - * - * @see #getStates() - * @generated - * @ordered - */ - protected EList states; - - /** - * - * - * @generated - */ - protected StatemachineImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.STATEMACHINE; - } - - /** - * - * - * @generated - */ - @Override - public EList getSignals() - { - if (signals == null) - { - signals = new EObjectContainmentEList(Signal.class, this, StatemachinePackage.STATEMACHINE__SIGNALS); - } - return signals; - } - - /** - * - * - * @generated - */ - @Override - public EList getStates() - { - if (states == null) - { - states = new EObjectContainmentEList(State.class, this, StatemachinePackage.STATEMACHINE__STATES); - } - return states; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case StatemachinePackage.STATEMACHINE__SIGNALS: - return ((InternalEList)getSignals()).basicRemove(otherEnd, msgs); - case StatemachinePackage.STATEMACHINE__STATES: - return ((InternalEList)getStates()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.STATEMACHINE__SIGNALS: - return getSignals(); - case StatemachinePackage.STATEMACHINE__STATES: - return getStates(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.STATEMACHINE__SIGNALS: - getSignals().clear(); - getSignals().addAll((Collection)newValue); - return; - case StatemachinePackage.STATEMACHINE__STATES: - getStates().clear(); - getStates().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.STATEMACHINE__SIGNALS: - getSignals().clear(); - return; - case StatemachinePackage.STATEMACHINE__STATES: - getStates().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.STATEMACHINE__SIGNALS: - return signals != null && !signals.isEmpty(); - case StatemachinePackage.STATEMACHINE__STATES: - return states != null && !states.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //StatemachineImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachinePackageImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachinePackageImpl.java deleted file mode 100644 index 8788a8927aa..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/StatemachinePackageImpl.java +++ /dev/null @@ -1,549 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.Condition; -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachineFactory; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; -import org.eclipse.xtext.web.example.statemachine.statemachine.Transition; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class StatemachinePackageImpl extends EPackageImpl implements StatemachinePackage -{ - /** - * - * - * @generated - */ - private EClass statemachineEClass = null; - - /** - * - * - * @generated - */ - private EClass signalEClass = null; - - /** - * - * - * @generated - */ - private EClass inputSignalEClass = null; - - /** - * - * - * @generated - */ - private EClass outputSignalEClass = null; - - /** - * - * - * @generated - */ - private EClass stateEClass = null; - - /** - * - * - * @generated - */ - private EClass transitionEClass = null; - - /** - * - * - * @generated - */ - private EClass conditionEClass = null; - - /** - * - * - * @generated - */ - private EClass eventEClass = null; - - /** - * - * - * @generated - */ - private EClass commandEClass = null; - - /** - * Creates an instance of the model Package, registered with - * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package - * package URI value. - *

Note: the correct way to create the package is via the static - * factory method {@link #init init()}, which also performs - * initialization of the package, or returns the registered package, - * if one already exists. - * - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage#eNS_URI - * @see #init() - * @generated - */ - private StatemachinePackageImpl() - { - super(eNS_URI, StatemachineFactory.eINSTANCE); - } - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - * - *

This method is used to initialize {@link StatemachinePackage#eINSTANCE} when that field is accessed. - * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static StatemachinePackage init() - { - if (isInited) return (StatemachinePackage)EPackage.Registry.INSTANCE.getEPackage(StatemachinePackage.eNS_URI); - - // Obtain or create and register package - Object registeredStatemachinePackage = EPackage.Registry.INSTANCE.get(eNS_URI); - StatemachinePackageImpl theStatemachinePackage = registeredStatemachinePackage instanceof StatemachinePackageImpl ? (StatemachinePackageImpl)registeredStatemachinePackage : new StatemachinePackageImpl(); - - isInited = true; - - // Create package meta-data objects - theStatemachinePackage.createPackageContents(); - - // Initialize created meta-data - theStatemachinePackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theStatemachinePackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(StatemachinePackage.eNS_URI, theStatemachinePackage); - return theStatemachinePackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getStatemachine() - { - return statemachineEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getStatemachine_Signals() - { - return (EReference)statemachineEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getStatemachine_States() - { - return (EReference)statemachineEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getSignal() - { - return signalEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getSignal_Name() - { - return (EAttribute)signalEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getInputSignal() - { - return inputSignalEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getOutputSignal() - { - return outputSignalEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getState() - { - return stateEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getState_Name() - { - return (EAttribute)stateEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getState_Commands() - { - return (EReference)stateEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getState_Transitions() - { - return (EReference)stateEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getState_NestedStates() - { - return (EReference)stateEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EClass getTransition() - { - return transitionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getTransition_Condition() - { - return (EReference)transitionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getTransition_State() - { - return (EReference)transitionEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCondition() - { - return conditionEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getCondition_Events() - { - return (EReference)conditionEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getEvent() - { - return eventEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getEvent_Signal() - { - return (EReference)eventEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getEvent_Value() - { - return (EAttribute)eventEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCommand() - { - return commandEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getCommand_Signal() - { - return (EReference)commandEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCommand_NewValue() - { - return (EAttribute)commandEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public StatemachineFactory getStatemachineFactory() - { - return (StatemachineFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is - * guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) return; - isCreated = true; - - // Create classes and their features - statemachineEClass = createEClass(STATEMACHINE); - createEReference(statemachineEClass, STATEMACHINE__SIGNALS); - createEReference(statemachineEClass, STATEMACHINE__STATES); - - signalEClass = createEClass(SIGNAL); - createEAttribute(signalEClass, SIGNAL__NAME); - - inputSignalEClass = createEClass(INPUT_SIGNAL); - - outputSignalEClass = createEClass(OUTPUT_SIGNAL); - - stateEClass = createEClass(STATE); - createEAttribute(stateEClass, STATE__NAME); - createEReference(stateEClass, STATE__COMMANDS); - createEReference(stateEClass, STATE__TRANSITIONS); - createEReference(stateEClass, STATE__NESTED_STATES); - - transitionEClass = createEClass(TRANSITION); - createEReference(transitionEClass, TRANSITION__CONDITION); - createEReference(transitionEClass, TRANSITION__STATE); - - conditionEClass = createEClass(CONDITION); - createEReference(conditionEClass, CONDITION__EVENTS); - - eventEClass = createEClass(EVENT); - createEReference(eventEClass, EVENT__SIGNAL); - createEAttribute(eventEClass, EVENT__VALUE); - - commandEClass = createEClass(COMMAND); - createEReference(commandEClass, COMMAND__SIGNAL); - createEAttribute(commandEClass, COMMAND__NEW_VALUE); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This - * method is guarded to have no affect on any invocation but its first. - * - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - inputSignalEClass.getESuperTypes().add(this.getSignal()); - outputSignalEClass.getESuperTypes().add(this.getSignal()); - - // Initialize classes and features; add operations and parameters - initEClass(statemachineEClass, Statemachine.class, "Statemachine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getStatemachine_Signals(), this.getSignal(), null, "signals", null, 0, -1, Statemachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getStatemachine_States(), this.getState(), null, "states", null, 0, -1, Statemachine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(signalEClass, Signal.class, "Signal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSignal_Name(), ecorePackage.getEString(), "name", null, 0, 1, Signal.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(inputSignalEClass, InputSignal.class, "InputSignal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(outputSignalEClass, OutputSignal.class, "OutputSignal", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(stateEClass, State.class, "State", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getState_Name(), ecorePackage.getEString(), "name", null, 0, 1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getState_Commands(), this.getCommand(), null, "commands", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getState_Transitions(), this.getTransition(), null, "transitions", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getState_NestedStates(), this.getState(), null, "nestedStates", null, 0, -1, State.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(transitionEClass, Transition.class, "Transition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getTransition_Condition(), this.getCondition(), null, "condition", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getTransition_State(), this.getState(), null, "state", null, 0, 1, Transition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(conditionEClass, Condition.class, "Condition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCondition_Events(), this.getEvent(), null, "events", null, 0, -1, Condition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(eventEClass, Event.class, "Event", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getEvent_Signal(), this.getSignal(), null, "signal", null, 0, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getEvent_Value(), ecorePackage.getEBoolean(), "value", null, 0, 1, Event.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getCommand_Signal(), this.getSignal(), null, "signal", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCommand_NewValue(), ecorePackage.getEBoolean(), "newValue", null, 0, 1, Command.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Create resource - createResource(eNS_URI); - } - -} //StatemachinePackageImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/TransitionImpl.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/TransitionImpl.java deleted file mode 100644 index cc0ed81f1f3..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/impl/TransitionImpl.java +++ /dev/null @@ -1,270 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.impl; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.common.notify.NotificationChain; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -import org.eclipse.xtext.web.example.statemachine.statemachine.Condition; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage; -import org.eclipse.xtext.web.example.statemachine.statemachine.Transition; - -/** - * - * An implementation of the model object 'Transition'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.TransitionImpl#getCondition Condition}
  • - *
  • {@link org.eclipse.xtext.web.example.statemachine.statemachine.impl.TransitionImpl#getState State}
  • - *
- * - * @generated - */ -public class TransitionImpl extends MinimalEObjectImpl.Container implements Transition -{ - /** - * The cached value of the '{@link #getCondition() Condition}' containment reference. - * - * - * @see #getCondition() - * @generated - * @ordered - */ - protected Condition condition; - - /** - * The cached value of the '{@link #getState() State}' reference. - * - * - * @see #getState() - * @generated - * @ordered - */ - protected State state; - - /** - * - * - * @generated - */ - protected TransitionImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return StatemachinePackage.Literals.TRANSITION; - } - - /** - * - * - * @generated - */ - @Override - public Condition getCondition() - { - return condition; - } - - /** - * - * - * @generated - */ - public NotificationChain basicSetCondition(Condition newCondition, NotificationChain msgs) - { - Condition oldCondition = condition; - condition = newCondition; - if (eNotificationRequired()) - { - ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, StatemachinePackage.TRANSITION__CONDITION, oldCondition, newCondition); - if (msgs == null) msgs = notification; else msgs.add(notification); - } - return msgs; - } - - /** - * - * - * @generated - */ - @Override - public void setCondition(Condition newCondition) - { - if (newCondition != condition) - { - NotificationChain msgs = null; - if (condition != null) - msgs = ((InternalEObject)condition).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - StatemachinePackage.TRANSITION__CONDITION, null, msgs); - if (newCondition != null) - msgs = ((InternalEObject)newCondition).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - StatemachinePackage.TRANSITION__CONDITION, null, msgs); - msgs = basicSetCondition(newCondition, msgs); - if (msgs != null) msgs.dispatch(); - } - else if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.TRANSITION__CONDITION, newCondition, newCondition)); - } - - /** - * - * - * @generated - */ - @Override - public State getState() - { - if (state != null && state.eIsProxy()) - { - InternalEObject oldState = (InternalEObject)state; - state = (State)eResolveProxy(oldState); - if (state != oldState) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, StatemachinePackage.TRANSITION__STATE, oldState, state)); - } - } - return state; - } - - /** - * - * - * @generated - */ - public State basicGetState() - { - return state; - } - - /** - * - * - * @generated - */ - @Override - public void setState(State newState) - { - State oldState = state; - state = newState; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, StatemachinePackage.TRANSITION__STATE, oldState, state)); - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case StatemachinePackage.TRANSITION__CONDITION: - return basicSetCondition(null, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case StatemachinePackage.TRANSITION__CONDITION: - return getCondition(); - case StatemachinePackage.TRANSITION__STATE: - if (resolve) return getState(); - return basicGetState(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case StatemachinePackage.TRANSITION__CONDITION: - setCondition((Condition)newValue); - return; - case StatemachinePackage.TRANSITION__STATE: - setState((State)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case StatemachinePackage.TRANSITION__CONDITION: - setCondition((Condition)null); - return; - case StatemachinePackage.TRANSITION__STATE: - setState((State)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case StatemachinePackage.TRANSITION__CONDITION: - return condition != null; - case StatemachinePackage.TRANSITION__STATE: - return state != null; - } - return super.eIsSet(featureID); - } - -} //TransitionImpl diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineAdapterFactory.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineAdapterFactory.java deleted file mode 100644 index 626865f9e2d..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineAdapterFactory.java +++ /dev/null @@ -1,298 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.util; - -import org.eclipse.emf.common.notify.Adapter; -import org.eclipse.emf.common.notify.Notifier; - -import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; - -import org.eclipse.emf.ecore.EObject; - -import org.eclipse.xtext.web.example.statemachine.statemachine.*; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage - * @generated - */ -public class StatemachineAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * - * - * @generated - */ - protected static StatemachinePackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public StatemachineAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = StatemachinePackage.eINSTANCE; - } - } - - /** - * Returns whether this factory is applicable for the type of the object. - * - * This implementation returns true if the object is either the model's package or is an instance object of the model. - * - * @return whether this factory is applicable for the type of the object. - * @generated - */ - @Override - public boolean isFactoryForType(Object object) - { - if (object == modelPackage) - { - return true; - } - if (object instanceof EObject) - { - return ((EObject)object).eClass().getEPackage() == modelPackage; - } - return false; - } - - /** - * The switch that delegates to the createXXX methods. - * - * - * @generated - */ - protected StatemachineSwitch modelSwitch = - new StatemachineSwitch() - { - @Override - public Adapter caseStatemachine(Statemachine object) - { - return createStatemachineAdapter(); - } - @Override - public Adapter caseSignal(Signal object) - { - return createSignalAdapter(); - } - @Override - public Adapter caseInputSignal(InputSignal object) - { - return createInputSignalAdapter(); - } - @Override - public Adapter caseOutputSignal(OutputSignal object) - { - return createOutputSignalAdapter(); - } - @Override - public Adapter caseState(State object) - { - return createStateAdapter(); - } - @Override - public Adapter caseTransition(Transition object) - { - return createTransitionAdapter(); - } - @Override - public Adapter caseCondition(Condition object) - { - return createConditionAdapter(); - } - @Override - public Adapter caseEvent(Event object) - { - return createEventAdapter(); - } - @Override - public Adapter caseCommand(Command object) - { - return createCommandAdapter(); - } - @Override - public Adapter defaultCase(EObject object) - { - return createEObjectAdapter(); - } - }; - - /** - * Creates an adapter for the target. - * - * - * @param target the object to adapt. - * @return the adapter for the target. - * @generated - */ - @Override - public Adapter createAdapter(Notifier target) - { - return modelSwitch.doSwitch((EObject)target); - } - - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine Statemachine}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine - * @generated - */ - public Adapter createStatemachineAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Signal Signal}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Signal - * @generated - */ - public Adapter createSignalAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal Input Signal}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal - * @generated - */ - public Adapter createInputSignalAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal Output Signal}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal - * @generated - */ - public Adapter createOutputSignalAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.State State}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.State - * @generated - */ - public Adapter createStateAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Transition Transition}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Transition - * @generated - */ - public Adapter createTransitionAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Condition Condition}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Condition - * @generated - */ - public Adapter createConditionAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Event Event}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Event - * @generated - */ - public Adapter createEventAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link org.eclipse.xtext.web.example.statemachine.statemachine.Command Command}'. - * - * This default implementation returns null so that we can easily ignore cases; - * it's useful to ignore a case when inheritance will catch all the cases anyway. - * - * @return the new adapter. - * @see org.eclipse.xtext.web.example.statemachine.statemachine.Command - * @generated - */ - public Adapter createCommandAdapter() - { - return null; - } - - /** - * Creates a new adapter for the default case. - * - * This default implementation returns null. - * - * @return the new adapter. - * @generated - */ - public Adapter createEObjectAdapter() - { - return null; - } - -} //StatemachineAdapterFactory diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineSwitch.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineSwitch.java deleted file mode 100644 index baf87d9fbf3..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/statemachine/util/StatemachineSwitch.java +++ /dev/null @@ -1,311 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.statemachine.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.util.Switch; - -import org.eclipse.xtext.web.example.statemachine.statemachine.*; - -/** - * - * The Switch for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the caseXXX method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. - * - * @see org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage - * @generated - */ -public class StatemachineSwitch extends Switch -{ - /** - * The cached model package - * - * - * @generated - */ - protected static StatemachinePackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public StatemachineSwitch() - { - if (modelPackage == null) - { - modelPackage = StatemachinePackage.eINSTANCE; - } - } - - /** - * Checks whether this is a switch for the given package. - * - * - * @param ePackage the package in question. - * @return whether this is a switch for the given package. - * @generated - */ - @Override - protected boolean isSwitchFor(EPackage ePackage) - { - return ePackage == modelPackage; - } - - /** - * Calls caseXXX for each class of the model until one returns a non null result; it yields that result. - * - * - * @return the first non-null result returned by a caseXXX call. - * @generated - */ - @Override - protected T doSwitch(int classifierID, EObject theEObject) - { - switch (classifierID) - { - case StatemachinePackage.STATEMACHINE: - { - Statemachine statemachine = (Statemachine)theEObject; - T result = caseStatemachine(statemachine); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.SIGNAL: - { - Signal signal = (Signal)theEObject; - T result = caseSignal(signal); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.INPUT_SIGNAL: - { - InputSignal inputSignal = (InputSignal)theEObject; - T result = caseInputSignal(inputSignal); - if (result == null) result = caseSignal(inputSignal); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.OUTPUT_SIGNAL: - { - OutputSignal outputSignal = (OutputSignal)theEObject; - T result = caseOutputSignal(outputSignal); - if (result == null) result = caseSignal(outputSignal); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.STATE: - { - State state = (State)theEObject; - T result = caseState(state); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.TRANSITION: - { - Transition transition = (Transition)theEObject; - T result = caseTransition(transition); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.CONDITION: - { - Condition condition = (Condition)theEObject; - T result = caseCondition(condition); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.EVENT: - { - Event event = (Event)theEObject; - T result = caseEvent(event); - if (result == null) result = defaultCase(theEObject); - return result; - } - case StatemachinePackage.COMMAND: - { - Command command = (Command)theEObject; - T result = caseCommand(command); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Statemachine'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Statemachine'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseStatemachine(Statemachine object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Signal'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Signal'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSignal(Signal object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Input Signal'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Input Signal'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseInputSignal(InputSignal object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Output Signal'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Output Signal'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseOutputSignal(OutputSignal object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'State'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'State'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseState(State object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Transition'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Transition'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseTransition(Transition object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Condition'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Condition'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCondition(Condition object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Event'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Event'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseEvent(Event object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Command'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'Command'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCommand(Command object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'EObject'. - * - * This implementation returns null; - * returning a non-null result will terminate the switch, but this is the last case anyway. - * - * @param object the target of the switch. - * @return the result of interpreting the object as an instance of 'EObject'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) - * @generated - */ - @Override - public T defaultCase(EObject object) - { - return null; - } - -} //StatemachineSwitch diff --git a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/validation/AbstractStatemachineValidator.java b/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/validation/AbstractStatemachineValidator.java deleted file mode 100644 index d386fd42301..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src-gen/org/eclipse/xtext/web/example/statemachine/validation/AbstractStatemachineValidator.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.validation; - -import java.util.ArrayList; -import java.util.List; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.validation.AbstractDeclarativeValidator; -import org.eclipse.xtext.validation.ComposedChecks; -import org.eclipse.xtext.validation.NamesAreUniqueValidator; - -@ComposedChecks(validators = {NamesAreUniqueValidator.class}) -public abstract class AbstractStatemachineValidator extends AbstractDeclarativeValidator { - - @Override - protected List getEPackages() { - List result = new ArrayList(); - result.add(org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage.eINSTANCE); - return result; - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/GenerateStatemachine.mwe2 b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/GenerateStatemachine.mwe2 deleted file mode 100644 index e1d14a007a2..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/GenerateStatemachine.mwe2 +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -module org.eclipse.xtext.web.example.statemachine.GenerateStatemachine - -import org.eclipse.xtext.xtext.generator.* -import org.eclipse.xtext.xtext.generator.model.project.* - -var rootPath = ".." -var baseName = "org.eclipse.xtext.web.example.statemachine" - -Workflow { - - component = XtextGenerator { - configuration = StateMachineGeneratorModule { - project = StandardProjectConfig { - rootPath = rootPath - baseName = baseName - genericIde = { - enabled = true - } - web = { - enabled = true - root = "../org.eclipse.xtext.web.example.jetty" - src = "../org.eclipse.xtext.web.example.jetty/src/main/java" - srcGen = "../org.eclipse.xtext.web.example.jetty/src/main/xtext-gen" - assets = "../org.eclipse.xtext.web.example.jetty/src/main/webapp" - } - runtimeTest = { - enabled = true - root = "../org.eclipse.xtext.web" - src = "../org.eclipse.xtext.web/src/test/java" - srcGen = "../org.eclipse.xtext.web/src/test/xtext-gen" - } - } - code = { - preferXtendStubs = false - encoding = "UTF-8" - fileHeader = -"/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/" - } - } - cleaner = { - exclude = "AbstractEntitiesWebModule.java" - } - language = { - grammarUri = "classpath:/org/eclipse/xtext/web/example/statemachine/Statemachine.xtext" - fileExtensions = "statemachine" - - // Java API to access grammar elements (required by several other fragments) - fragment = grammarAccess.GrammarAccessFragment2 {} - - // generates Java API for the generated EPackages - fragment = ecore.EMFGeneratorFragment2 {} - - fragment = serializer.SerializerFragment2 { - generateStub = false - } - - // a custom ResourceFactory for use with EMF - fragment = resourceFactory.ResourceFactoryFragment2 {} - - // The antlr parser generator fragment. - fragment = parser.antlr.XtextAntlrGeneratorFragment2 { - } - - // Xtend-based API for validation - fragment = validation.ValidatorFragment2 { - composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" - } - - // scoping and exporting API - fragment = scoping.ImportNamespacesScopingFragment2 {} - fragment = exporting.QualifiedNamesFragment2 {} - - // generator API - fragment = generator.GeneratorFragment2 { - generateXtendStub = false - } - - // formatter API - fragment = formatting.Formatter2Fragment2 { - generateStub = true - } - - // testing API - fragment = junit.JUnitFragment { - generateStub = false - } - - // JavaScript-based syntax highlighting - fragment = web.WebIntegrationFragment { - framework = "Orion" - highlightingPath = "xtext/statemachine-syntax.js" - } - fragment = web.WebIntegrationFragment { - framework = "Ace" - highlightingPath = "xtext/ace-mode-statemachine.js" - } - fragment = web.WebIntegrationFragment { - framework = "CodeMirror" - highlightingPath = "xtext/cm-mode-statemachine.js" - } - } - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/Statemachine.xtext b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/Statemachine.xtext deleted file mode 100644 index 8d62933834c..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/Statemachine.xtext +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -grammar org.eclipse.xtext.web.example.statemachine.Statemachine with org.eclipse.xtext.common.Terminals - -import "http://www.eclipse.org/emf/2002/Ecore" as ecore -generate statemachine "http://www.eclipse.org/xtext/web/example/Statemachine" - -Statemachine : - {Statemachine} - signals+=Signal* - states+=State*; - -Signal: - (InputSignal | OutputSignal) 'signal' name=ID; - -InputSignal: - {InputSignal} - 'input'; - -OutputSignal: - {OutputSignal} - 'output'; - -State: - 'state' name=ID - commands+=Command* - transitions+=Transition* - nestedStates+=State* - 'end'; - -Transition: - 'if' condition=Condition 'goto' state=[State|QualifiedName]; - -Condition: - events+=Event ('and' events+=Event)*; - -Event: - signal=[Signal] '==' value=BOOLEAN; - -Command: - 'set' signal=[Signal] '=' newValue=BOOLEAN; - -QualifiedName: - ID ('.' ID)*; - -terminal BOOLEAN returns ecore::EBoolean: - 'true' | 'false'; diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/StatemachineRuntimeModule.java b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/StatemachineRuntimeModule.java deleted file mode 100644 index 071ec896abe..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/StatemachineRuntimeModule.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine; - - -/** - * Use this class to register components to be used at runtime / without the Equinox extension registry. - */ -public class StatemachineRuntimeModule extends AbstractStatemachineRuntimeModule { -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/StatemachineStandaloneSetup.java b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/StatemachineStandaloneSetup.java deleted file mode 100644 index 89ab09a90ec..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/StatemachineStandaloneSetup.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine; - - -/** - * Initialization support for running Xtext languages without Equinox extension registry. - */ -public class StatemachineStandaloneSetup extends StatemachineStandaloneSetupGenerated { - - public static void doSetup() { - new StatemachineStandaloneSetup().createInjectorAndDoEMFRegistration(); - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/formatting2/StatemachineFormatter.java b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/formatting2/StatemachineFormatter.java deleted file mode 100644 index e8e83aaad4f..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/formatting2/StatemachineFormatter.java +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.formatting2; - -import org.eclipse.xtext.formatting2.AbstractJavaFormatter; -import org.eclipse.xtext.formatting2.IFormattableDocument; -import org.eclipse.xtext.formatting2.regionaccess.ISemanticRegion; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.Condition; -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine; -import org.eclipse.xtext.web.example.statemachine.statemachine.Transition; - -import com.google.inject.Inject; - -public class StatemachineFormatter extends AbstractJavaFormatter { - - @Inject - private StatemachineGrammarAccess ga; - - protected void format(Statemachine statemachine, IFormattableDocument doc) { - for (Signal signal : statemachine.getSignals()) { - doc.format(signal); - doc.append(signal, it -> it.setNewLines(1, 1, 2)); - } - for (State state : statemachine.getStates()) { - doc.format(state); - doc.append(state, it -> it.setNewLines(1, 1, 2)); - } - } - - protected void format(Signal signal, IFormattableDocument doc) { - ISemanticRegion signalKeyword = regionFor(signal).keyword(ga.getSignalAccess().getSignalKeyword_1()); - doc.prepend(signalKeyword, it -> it.oneSpace()); - doc.append(signalKeyword, it -> it.oneSpace()); - } - - protected void format(State state, IFormattableDocument doc) { - doc.append(regionFor(state).keyword(ga.getStateAccess().getStateKeyword_0()), it -> it.oneSpace()); - ISemanticRegion nameAssignment = regionFor(state).assignment(ga.getStateAccess().getNameAssignment_1()); - doc.append(nameAssignment, it -> it.newLine()); - doc.interior(nameAssignment, regionFor(state).keyword(ga.getStateAccess().getEndKeyword_5()), - it -> it.indent()); - for (Command command : state.getCommands()) { - doc.format(command); - doc.append(command, it -> it.newLine()); - } - for (Transition transition : state.getTransitions()) { - doc.format(transition); - doc.append(transition, it -> it.newLine()); - } - for (State nestedState : state.getNestedStates()) { - doc.format(nestedState); - doc.append(nestedState, it -> it.newLine()); - } - } - - protected void format(Command command, IFormattableDocument doc) { - doc.append(regionFor(command).keyword(ga.getCommandAccess().getSetKeyword_0()), it -> it.oneSpace()); - ISemanticRegion equalsSignKeyword = regionFor(command).keyword(ga.getCommandAccess().getEqualsSignKeyword_2()); - doc.prepend(equalsSignKeyword, it -> it.oneSpace()); - doc.append(equalsSignKeyword, it -> it.oneSpace()); - } - - protected void format(Transition transition, IFormattableDocument doc) { - doc.append(regionFor(transition).keyword(ga.getTransitionAccess().getIfKeyword_0()), it -> it.oneSpace()); - ISemanticRegion gotoKeyword = regionFor(transition).keyword(ga.getTransitionAccess().getGotoKeyword_2()); - doc.prepend(gotoKeyword, it -> it.oneSpace()); - doc.append(gotoKeyword, it -> it.oneSpace()); - if (transition.getCondition() != null) { - doc.format(transition.getCondition()); - } - } - - protected void format(Condition condition, IFormattableDocument doc) { - ISemanticRegion andKeyword = regionFor(condition).keyword(ga.getConditionAccess().getAndKeyword_1_0()); - doc.prepend(andKeyword, it -> it.oneSpace()); - doc.append(andKeyword, it -> it.oneSpace()); - for (Event event : condition.getEvents()) { - doc.format(event); - } - - } - - protected void format(Event event, IFormattableDocument doc) { - ISemanticRegion equalsSignEqualsSignKeyword = regionFor(event) - .keyword(ga.getEventAccess().getEqualsSignEqualsSignKeyword_1()); - doc.prepend(equalsSignEqualsSignKeyword, it -> it.oneSpace()); - doc.append(equalsSignEqualsSignKeyword, it -> it.oneSpace()); - } - -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/generator/StatemachineGenerator.java b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/generator/StatemachineGenerator.java deleted file mode 100644 index a4a8dab35d1..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/generator/StatemachineGenerator.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Copyright (c) 2015, 2022 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.example.statemachine.generator; - -import java.util.Comparator; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.generator.AbstractGenerator; -import org.eclipse.xtext.generator.IFileSystemAccess2; -import org.eclipse.xtext.generator.IGeneratorContext; -import org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.Signal; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine; - -import com.google.common.base.Joiner; - -/** - * Generates code from your model files on save. - * - * See - * https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#code-generation - */ -public class StatemachineGenerator extends AbstractGenerator { - @Override - public void doGenerate(Resource resource, IFileSystemAccess2 fsa, IGeneratorContext context) { - for (EObject o : resource.getContents()) { - if (o instanceof Statemachine) { - Statemachine statemachine = (Statemachine)o; - fsa.generateFile("/DEFAULT_ARTIFACT", generateHtml(statemachine)); - fsa.generateFile("/hidden.txt", "This is an additional generator artifact."); - } - } - } - - private CharSequence generateHtml(Statemachine statemachine) { - return "" - + "\n" - + "\n" - + "\n" - + " \n" - + " \n" - + " State Machine Overview\n" - + " \n" - + " \n" - + "\n" - + "\n" - + "
\n" - + "

Signals

\n" - + Joiner.on("\n").join( - statemachine.getSignals().stream().sorted(Comparator.comparing(Signal::getName)).map( - signal -> " " + signal.getName() + " (" + (signal instanceof InputSignal ? "input" : "output") + ")
\n" - ).iterator() - ) - + "

States

\n" - + Joiner.on("\n").join( - statemachine.getStates().stream().sorted(Comparator.comparing(State::getName)).map( - state -> " " + state.getName() + " – transitions: "+(state.getTransitions().isEmpty() ? "NONE" : Joiner.on(", ").join(state.getTransitions().stream().map(t -> t.getState().getName()).iterator()))+"
\n" - ).iterator() - ) - + "
\n" - + "\n" - + ""; - } -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/scoping/StatemachineScopeProvider.java b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/scoping/StatemachineScopeProvider.java deleted file mode 100644 index 16f2d539f15..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/scoping/StatemachineScopeProvider.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.scoping; - - -/** - * This class contains custom scoping description. - * - * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping - * on how and when to use it. - */ -public class StatemachineScopeProvider extends AbstractStatemachineScopeProvider { - -} diff --git a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/validation/StatemachineValidator.java b/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/validation/StatemachineValidator.java deleted file mode 100644 index 0111bcb959f..00000000000 --- a/org.eclipse.xtext.web.example.statemachine/src/org/eclipse/xtext/web/example/statemachine/validation/StatemachineValidator.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.validation; - -import org.eclipse.xtext.validation.Check; -import org.eclipse.xtext.web.example.statemachine.statemachine.Command; -import org.eclipse.xtext.web.example.statemachine.statemachine.Event; -import org.eclipse.xtext.web.example.statemachine.statemachine.InputSignal; -import org.eclipse.xtext.web.example.statemachine.statemachine.OutputSignal; - -import static org.eclipse.xtext.web.example.statemachine.statemachine.StatemachinePackage.Literals.*; - -/** - * This class contains custom validation rules. - * - * See - * https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation - */ -public class StatemachineValidator extends AbstractStatemachineValidator { - - @Check - public void checkEventUsesInputSignal(Event event) { - if (event.getSignal() != null && !event.getSignal().eIsProxy() && !(event.getSignal() instanceof InputSignal)) { - error("Only input signals are allowed for read access.", event, EVENT__SIGNAL); - } - } - - @Check - public void checkCommandUsesOutputSignal(Command command) { - if (command.getSignal() != null && !command.getSignal().eIsProxy() - && !(command.getSignal() instanceof OutputSignal)) { - error("Only output signals are allowed for write access.", command, COMMAND__SIGNAL); - } - } - -} diff --git a/org.eclipse.xtext.web.servlet/.classpath b/org.eclipse.xtext.web.servlet/.classpath deleted file mode 100644 index 428705d53d0..00000000000 --- a/org.eclipse.xtext.web.servlet/.classpath +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web.servlet/.gitignore b/org.eclipse.xtext.web.servlet/.gitignore deleted file mode 100644 index 567609b1234..00000000000 --- a/org.eclipse.xtext.web.servlet/.gitignore +++ /dev/null @@ -1 +0,0 @@ -build/ diff --git a/org.eclipse.xtext.web.servlet/.project b/org.eclipse.xtext.web.servlet/.project deleted file mode 100644 index 0bb93b273d6..00000000000 --- a/org.eclipse.xtext.web.servlet/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web.servlet - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web.servlet/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web.servlet/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 3622a30c67e..00000000000 --- a/org.eclipse.xtext.web.servlet/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,3 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=ISO-8859-1 -encoding/=ISO-8859-1 diff --git a/org.eclipse.xtext.web.servlet/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web.servlet/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index e77491258d4..00000000000 --- a/org.eclipse.xtext.web.servlet/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,16 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 diff --git a/org.eclipse.xtext.web.servlet/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web.servlet/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web.servlet/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web.servlet/pom.xml b/org.eclipse.xtext.web.servlet/pom.xml deleted file mode 100644 index 0c9ade5d549..00000000000 --- a/org.eclipse.xtext.web.servlet/pom.xml +++ /dev/null @@ -1,49 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - xtext-parent - 2.44.0-SNAPSHOT - - org.eclipse.xtext.web.servlet - jar - - Xtext Servlet - Servlet for the Xtext Web API. - - - - org.eclipse.xtext - org.eclipse.xtext.web - ${project.version} - - - com.google.code.gson - gson - 2.14.0 - - - jakarta.servlet - jakarta.servlet-api - 5.0.0 - provided - - - - - - - maven-jar-plugin - - - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - - - - org.apache.felix - maven-bundle-plugin - - - - diff --git a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/HttpServiceContext.java b/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/HttpServiceContext.java deleted file mode 100644 index d536f0fbf57..00000000000 --- a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/HttpServiceContext.java +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.servlet; - -import java.io.IOException; -import java.net.URLDecoder; -import java.nio.charset.Charset; -import java.util.Collections; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.Map; -import java.util.Set; - -import jakarta.servlet.http.HttpServletRequest; - -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.xbase.lib.Exceptions; - -import com.google.common.io.CharStreams; - -/** - * Provides the parameters and metadata of an {@link HttpServletRequest}. - */ -public class HttpServiceContext implements IServiceContext { - private final HttpServletRequest request; - - private final Map parameters = new HashMap<>(); - - private HttpSessionWrapper sessionWrapper; - - public HttpServiceContext(HttpServletRequest request) { - this.request = request; - this.initializeParameters(); - } - - private String initializeParameters() { - try { - String[] contentType = null; - if (request.getContentType() != null) { - contentType = request.getContentType().split(";(\\s*)"); - } - if (contentType != null && "application/x-www-form-urlencoded".equals(contentType[0])) { - String charset = null; - if (contentType != null && contentType.length >= 2 && contentType[1].startsWith("charset=")) { - charset = (contentType[1]).substring("charset=".length()); - } else { - charset = Charset.defaultCharset().toString(); - } - String[] encodedParams = CharStreams.toString(request.getReader()).split("&"); - for (String param : encodedParams) { - int nameEnd = param.indexOf("="); - if (nameEnd > 0) { - String key = param.substring(0, nameEnd); - String value = URLDecoder.decode(param.substring(nameEnd + 1), charset); - parameters.put(key, value); - } - } - } - Enumeration paramNames = request.getParameterNames(); - while (paramNames.hasMoreElements()) { - String name = paramNames.nextElement(); - parameters.put(name, request.getParameter(name)); - } - if (!parameters.containsKey(IServiceContext.SERVICE_TYPE)) { - String substring = null; - if (request.getPathInfo() != null) { - substring = request.getPathInfo().substring(1); - } - return parameters.put(IServiceContext.SERVICE_TYPE, substring); - } - return null; - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - @Override - public Set getParameterKeys() { - return Collections.unmodifiableSet(parameters.keySet()); - } - - @Override - public String getParameter(String key) { - return parameters.get(key); - } - - @Override - public ISession getSession() { - if (sessionWrapper == null) { - sessionWrapper = new HttpSessionWrapper(request.getSession(true)); - } - return sessionWrapper; - } - - public HttpServletRequest getRequest() { - return request; - } -} diff --git a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/HttpSessionWrapper.java b/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/HttpSessionWrapper.java deleted file mode 100644 index 22c67d2bdb5..00000000000 --- a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/HttpSessionWrapper.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.servlet; - -import jakarta.servlet.http.HttpSession; - -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.xbase.lib.Functions.Function0; - -/** - * Provides access to the information stored in a {@link HttpSession}. - */ -public class HttpSessionWrapper implements ISession { - private final HttpSession session; - - @SuppressWarnings("unchecked") - @Override - public T get(Object key) { - return (T) session.getAttribute(key.toString()); - } - - @Override - public T get(Object key, Function0 factory) { - synchronized (session) { - T sessionValue = get(key); - if (sessionValue != null) { - return sessionValue; - } else { - T factoryValue = factory.apply(); - put(key, factoryValue); - return factoryValue; - } - } - } - - @Override - public void put(Object key, Object value) { - session.setAttribute(key.toString(), value); - } - - @Override - public void remove(Object key) { - session.removeAttribute(key.toString()); - } - - public HttpSessionWrapper(HttpSession session) { - this.session = session; - } - - public HttpSession getSession() { - return session; - } -} diff --git a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/XtextResourcesServlet.java b/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/XtextResourcesServlet.java deleted file mode 100644 index 5254c743bb3..00000000000 --- a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/XtextResourcesServlet.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.servlet; - -import com.google.common.io.ByteStreams; - -import java.io.IOException; -import java.io.InputStream; -import jakarta.servlet.ServletConfig; -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.xbase.lib.Exceptions; - -/** - * This servlet is required only in servlet containers that do not support the - * servlet 3.0 API. - */ -public class XtextResourcesServlet extends HttpServlet { - - private static final long serialVersionUID = 4318411920672654776L; - - private static final long DEFAULT_EXPIRE_TIME_MS = 86400000L; // 1 day - - private static final long DEFAULT_EXPIRE_TIME_S = 86400L; // 1 day - - private boolean disableCache = false; - - @Override - public void init(ServletConfig config) throws ServletException { - super.init(config); - String disableCache = config.getInitParameter("disableCache"); - if (disableCache != null) { - this.disableCache = Boolean.parseBoolean(disableCache); - } - } - - @Override - public void doGet(HttpServletRequest request, HttpServletResponse response) { - try { - String resourceURI = "META-INF/resources" + request.getServletPath() + request.getPathInfo(); - try (InputStream inputStream = getResourceAsStream(resourceURI)) { - if (inputStream != null) { - String[] tokens = resourceURI.split("/"); - String fileName = tokens[tokens.length - 1]; - if (!disableCache && tokens.length > 4) { - String version = tokens[3]; - response.setHeader("ETag", fileName + "_" + version); - response.setDateHeader("Expires", - System.currentTimeMillis() + XtextResourcesServlet.DEFAULT_EXPIRE_TIME_MS); - response.addHeader("Cache-Control", - ("private, max-age=" + XtextResourcesServlet.DEFAULT_EXPIRE_TIME_S)); - } - String mimeType = getServletContext().getMimeType(fileName); - String contentType = null; - if (mimeType != null) { - contentType = mimeType; - } else { - contentType = "application/octet-stream"; - } - response.setContentType(contentType); - ByteStreams.copy(inputStream, response.getOutputStream()); - } else { - response.sendError(HttpServletResponse.SC_NOT_FOUND); - } - } - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - protected InputStream getResourceAsStream(String resourceURI) { - return XtextServiceDispatcher.class.getClassLoader().getResourceAsStream(resourceURI); - } -} diff --git a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/XtextServlet.java b/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/XtextServlet.java deleted file mode 100644 index b36c7755efc..00000000000 --- a/org.eclipse.xtext.web.servlet/src/main/java/org/eclipse/xtext/web/servlet/XtextServlet.java +++ /dev/null @@ -1,206 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.servlet; - -import java.io.IOException; -import java.util.Objects; -import java.util.Set; - -import jakarta.servlet.ServletException; -import jakarta.servlet.http.HttpServlet; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; - -import org.apache.log4j.Logger; -import org.eclipse.emf.common.util.URI; -import org.eclipse.xtext.resource.IResourceServiceProvider; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.web.server.IUnwrappableServiceResult; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.xbase.lib.Exceptions; - -import com.google.common.base.Strings; -import com.google.gson.Gson; -import com.google.inject.Injector; - -/** - * An HTTP servlet for publishing the Xtext services. Include this into your web - * server by creating a subclass that executes the standalone setups of your - * languages in its {@link #init()} method: - * - *
- * @WebServlet(name = "Xtext Services", urlPatterns = "/xtext-service/*")
- * class MyXtextServlet extends XtextServlet {
- * 	override init() {
- * 		super.init();
- * 		MyDslWebSetup.doSetup();
- * 	}
- * }
- * 
- * - * Use the {@code WebServlet} annotation to register your servlet. The default - * URL pattern for Xtext services is {@code "/xtext-service/*"}. - */ -public class XtextServlet extends HttpServlet { - - private static final long serialVersionUID = -6273795508296110114L; - - private final Logger LOG = Logger.getLogger(this.getClass()); - - private final IResourceServiceProvider.Registry serviceProviderRegistry = IResourceServiceProvider.Registry.INSTANCE; - - private final Gson gson = new Gson(); - - @Override - protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - try { - super.service(req, resp); - } catch (InvalidRequestException.ResourceNotFoundException exception) { - LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage()); - resp.sendError(HttpServletResponse.SC_NOT_FOUND, exception.getMessage()); - } catch (InvalidRequestException.InvalidDocumentStateException exception) { - LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage()); - resp.sendError(HttpServletResponse.SC_CONFLICT, exception.getMessage()); - } catch (InvalidRequestException.PermissionDeniedException exception) { - LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage()); - resp.sendError(HttpServletResponse.SC_FORBIDDEN, exception.getMessage()); - } catch (InvalidRequestException exception) { - LOG.trace("Invalid request (" + req.getRequestURI() + "): " + exception.getMessage()); - resp.sendError(HttpServletResponse.SC_BAD_REQUEST, exception.getMessage()); - } - } - - @Override - protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - XtextServiceDispatcher.ServiceDescriptor service = getService(req); - if (!service.isHasConflict() && (service.isHasSideEffects() || hasTextInput(service))) { - super.doGet(req, resp); - } else { - doService(service, resp); - } - } - - @Override - protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - XtextServiceDispatcher.ServiceDescriptor service = getService(req); - String type = service.getContext().getParameter(IServiceContext.SERVICE_TYPE); - if (!service.isHasConflict() && !Objects.equals(type, "update")) { - super.doPut(req, resp); - } else { - doService(service, resp); - } - } - - @Override - protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { - XtextServiceDispatcher.ServiceDescriptor service = getService(req); - String type = service.getContext().getParameter(IServiceContext.SERVICE_TYPE); - if (!service.isHasConflict() - && (!service.isHasSideEffects() && !hasTextInput(service) || Objects.equals(type, "update"))) { - super.doPost(req, resp); - } else { - doService(service, resp); - } - } - - protected boolean hasTextInput(XtextServiceDispatcher.ServiceDescriptor service) { - Set parameterKeys = service.getContext().getParameterKeys(); - return parameterKeys.contains("fullText") || parameterKeys.contains("deltaText"); - } - - /** - * Retrieve the service metadata for the given request. This involves resolving - * the Guice injector for the respective language, querying the - * {@link XtextServiceDispatcher}, and checking the permission to invoke the - * service. - */ - protected XtextServiceDispatcher.ServiceDescriptor getService(HttpServletRequest request) - throws InvalidRequestException { - HttpServiceContext serviceContext = new HttpServiceContext(request); - Injector injector = getInjector(serviceContext); - XtextServiceDispatcher serviceDispatcher = injector.getInstance(XtextServiceDispatcher.class); - XtextServiceDispatcher.ServiceDescriptor service = serviceDispatcher.getService(serviceContext); - return service; - } - - /** - * Invoke the service function of the given service descriptor and write its - * result to the servlet response in Json format. An exception is made for - * {@link IUnwrappableServiceResult}: here the document itself is written into - * the response instead of wrapping it into a Json object. - */ - protected void doService(XtextServiceDispatcher.ServiceDescriptor service, HttpServletResponse response) { - try { - IServiceResult result = service.getService().apply(); - response.setStatus(HttpServletResponse.SC_OK); - response.setCharacterEncoding(getEncoding(service, result)); - response.setHeader("Cache-Control", "no-cache"); - if (result instanceof IUnwrappableServiceResult - && ((IUnwrappableServiceResult) result).getContent() != null) { - IUnwrappableServiceResult unwrapResult = ((IUnwrappableServiceResult) result); - String contentType = null; - if (unwrapResult.getContentType() != null) { - contentType = unwrapResult.getContentType(); - } else { - contentType = "text/plain"; - } - response.setContentType(contentType); - response.getWriter().write(unwrapResult.getContent()); - } else { - response.setContentType("text/x-json"); - gson.toJson(result, response.getWriter()); - } - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - /** - * Determine the encoding to apply to servlet responses. The default is UTF-8. - */ - protected String getEncoding(XtextServiceDispatcher.ServiceDescriptor service, IServiceResult result) { - return "UTF-8"; - } - - /** - * Resolve the Guice injector for the language associated with the given - * context. - */ - protected Injector getInjector(HttpServiceContext serviceContext) - throws InvalidRequestException.UnknownLanguageException { - IResourceServiceProvider resourceServiceProvider = null; - String parameter = serviceContext.getParameter("resource"); - if (parameter == null) { - parameter = ""; - } - URI emfURI = URI.createURI(parameter); - String contentType = serviceContext.getParameter("contentType"); - if (Strings.isNullOrEmpty(contentType)) { - resourceServiceProvider = serviceProviderRegistry.getResourceServiceProvider(emfURI); - if (resourceServiceProvider == null) { - if (emfURI.toString().isEmpty()) { - throw new InvalidRequestException.UnknownLanguageException( - "Unable to identify the Xtext language: missing parameter 'resource' or 'contentType'."); - } else { - throw new InvalidRequestException.UnknownLanguageException( - "Unable to identify the Xtext language for resource " + emfURI + "."); - } - } - } else { - resourceServiceProvider = serviceProviderRegistry.getResourceServiceProvider(emfURI, contentType); - if (resourceServiceProvider == null) { - throw new InvalidRequestException.UnknownLanguageException( - "Unable to identify the Xtext language for contentType " + contentType + "."); - } - } - return resourceServiceProvider.get(Injector.class); - } -} diff --git a/org.eclipse.xtext.web/.classpath b/org.eclipse.xtext.web/.classpath deleted file mode 100644 index 4721713c21c..00000000000 --- a/org.eclipse.xtext.web/.classpath +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web/.gitignore b/org.eclipse.xtext.web/.gitignore deleted file mode 100644 index 7045bf0301d..00000000000 --- a/org.eclipse.xtext.web/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -build/ -node_modules/ -node/ \ No newline at end of file diff --git a/org.eclipse.xtext.web/.project b/org.eclipse.xtext.web/.project deleted file mode 100644 index bbaba98cd82..00000000000 --- a/org.eclipse.xtext.web/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.web - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.web/.settings/.jsdtscope b/org.eclipse.xtext.web/.settings/.jsdtscope deleted file mode 100644 index eecc81b424c..00000000000 --- a/org.eclipse.xtext.web/.settings/.jsdtscope +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.web/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.web/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index ca5437e846f..00000000000 --- a/org.eclipse.xtext.web/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=ISO-8859-1 -encoding//src/test/java=ISO-8859-1 -encoding//src/test/xtext-gen=ISO-8859-1 -encoding/=ISO-8859-1 diff --git a/org.eclipse.xtext.web/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.web/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8855a971179..00000000000 --- a/org.eclipse.xtext.web/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,17 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 -org.eclipse.jdt.core.compiler.release=enabled diff --git a/org.eclipse.xtext.web/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.web/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.web/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.web/.settings/org.eclipse.wst.jsdt.ui.superType.container b/org.eclipse.xtext.web/.settings/org.eclipse.wst.jsdt.ui.superType.container deleted file mode 100644 index 3bd5d0a4803..00000000000 --- a/org.eclipse.xtext.web/.settings/org.eclipse.wst.jsdt.ui.superType.container +++ /dev/null @@ -1 +0,0 @@ -org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/org.eclipse.xtext.web/.settings/org.eclipse.wst.jsdt.ui.superType.name b/org.eclipse.xtext.web/.settings/org.eclipse.wst.jsdt.ui.superType.name deleted file mode 100644 index 05bd71b6ec2..00000000000 --- a/org.eclipse.xtext.web/.settings/org.eclipse.wst.jsdt.ui.superType.name +++ /dev/null @@ -1 +0,0 @@ -Window \ No newline at end of file diff --git a/org.eclipse.xtext.web/package-lock.json b/org.eclipse.xtext.web/package-lock.json deleted file mode 100644 index 2a27ecc0abf..00000000000 --- a/org.eclipse.xtext.web/package-lock.json +++ /dev/null @@ -1,1180 +0,0 @@ -{ - "name": "xtext", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "xtext", - "devDependencies": { - "mocha": "11.7.5", - "requirejs": "2.3.7" - } - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true, - "license": "MIT" - }, - "node_modules/brace-expansion": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz", - "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chalk/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/cliui/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/cliui/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.6.tgz", - "integrity": "sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/debug/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/diff": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/diff/-/diff-8.0.3.tgz", - "integrity": "sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "bin": { - "flat": "cli.js" - } - }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dev": true, - "license": "ISC", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/glob": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.1.0.tgz", - "integrity": "sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "foreground-child": "^3.3.1", - "jackspeak": "^4.1.1", - "minimatch": "^10.1.1", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob/node_modules/balanced-match": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", - "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", - "dev": true, - "license": "MIT", - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/glob/node_modules/brace-expansion": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz", - "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^4.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - } - }, - "node_modules/glob/node_modules/minimatch": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz", - "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.2" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true, - "license": "ISC" - }, - "node_modules/jackspeak": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.1.1.tgz", - "integrity": "sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/js-yaml": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", - "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lru-cache": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.2.tgz", - "integrity": "sha512-F9ODfyqML2coTIsQpSkRHnLSZMtkU8Q+mSfcaIyKwy58u+8k5nvAYeiNhsyMARvzNcXJ9QfWVrcPsC9e9rAxtg==", - "dev": true, - "license": "ISC", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mocha": { - "version": "11.7.5", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.7.5.tgz", - "integrity": "sha512-mTT6RgopEYABzXWFx+GcJ+ZQ32kp4fMf0xvpZIIfSq9Z8lC/++MtcCnQ9t5FP2veYEP95FIYSvW+U9fV4xrlig==", - "dev": true, - "license": "MIT", - "dependencies": { - "browser-stdout": "^1.3.1", - "chokidar": "^4.0.1", - "debug": "^4.3.5", - "diff": "^7.0.0", - "escape-string-regexp": "^4.0.0", - "find-up": "^5.0.0", - "glob": "^10.4.5", - "he": "^1.2.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "log-symbols": "^4.1.0", - "minimatch": "^9.0.5", - "ms": "^2.1.3", - "picocolors": "^1.1.1", - "serialize-javascript": "^6.0.2", - "strip-json-comments": "^3.1.1", - "supports-color": "^8.1.1", - "workerpool": "^9.2.0", - "yargs": "^17.7.2", - "yargs-parser": "^21.1.1", - "yargs-unparser": "^2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-scurry": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.1.tgz", - "integrity": "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requirejs": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.7.tgz", - "integrity": "sha512-DouTG8T1WanGok6Qjg2SXuCMzszOo0eHeH9hDZ5Y4x8Je+9JB38HdTLT4/VA8OaUhBa0JPVHJ0pyBkM1z+pDsw==", - "dev": true, - "bin": { - "r_js": "bin/r.js", - "r.js": "bin/r.js" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/serialize-javascript": { - "version": "7.0.5", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-7.0.5.tgz", - "integrity": "sha512-F4LcB0UqUl1zErq+1nYEEzSHJnIwb3AF2XWB94b+afhrekOUijwooAYqFyRbjYkm2PAKBabx6oYv/xDxNi8IBw==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/string-width-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", - "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/workerpool": { - "version": "9.3.4", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.4.tgz", - "integrity": "sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.3", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", - "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true, - "license": "MIT" - }, - "node_modules/yargs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/org.eclipse.xtext.web/package.json b/org.eclipse.xtext.web/package.json deleted file mode 100644 index 08dd7aba24d..00000000000 --- a/org.eclipse.xtext.web/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "xtext", - "private": true, - "devDependencies": { - "mocha": "11.7.5", - "requirejs": "2.3.7" - }, - "overrides": { - "glob": "11.1.0", - "diff": "8.0.3", - "serialize-javascript": "7.0.5" - }, - "scripts": { - "test": "mocha -u tdd --reporter dot src/test/js/*.js", - "optimize": "npm run optimizeAce && npm run optimizeOrion && npm run optimizeCodeMirror", - "optimizeAce": "npm run optimizeAceJs && npm run optimizeAceJsMin && npm run optimizeAceCss", - "optimizeAceJs":"node node_modules/requirejs/bin/r.js -o src/main/js/requirejs-ace-config.js logLevel=2 out=build/opt-resources/xtext-ace.js optimize=none", - "optimizeAceJsMin": "node node_modules/requirejs/bin/r.js -o src/main/js/requirejs-ace-config.js logLevel=2 out=build/opt-resources/xtext-ace.min.js optimize=uglify preserveLicenseComments=false", - "optimizeAceCss": "node node_modules/requirejs/bin/r.js -o logLevel=2 cssIn=src/main/css/xtext/xtext-ace.css out=build/opt-resources/xtext-ace.css", - "optimizeOrion": "npm run optimizeOrionJs && npm run optimizeOrionJsMin && npm run optimizeOrionCss", - "optimizeOrionJs":"node node_modules/requirejs/bin/r.js -o src/main/js/requirejs-orion-config.js logLevel=2 out=build/opt-resources/xtext-orion.js optimize=none", - "optimizeOrionJsMin": "node node_modules/requirejs/bin/r.js -o src/main/js/requirejs-orion-config.js logLevel=2 out=build/opt-resources/xtext-orion.min.js optimize=uglify preserveLicenseComments=false", - "optimizeOrionCss": "node node_modules/requirejs/bin/r.js -o logLevel=2 cssIn=src/main/css/xtext/xtext-orion.css out=build/opt-resources/xtext-orion.css", - "optimizeCodeMirror": "npm run optimizeCodeMirrorJs && npm run optimizeCodeMirrorJsMin && npm run optimizeCodeMirrorCss", - "optimizeCodeMirrorJs":"node node_modules/requirejs/bin/r.js -o src/main/js/requirejs-codemirror-config.js logLevel=2 out=build/opt-resources/xtext-codemirror.js optimize=none", - "optimizeCodeMirrorJsMin": "node node_modules/requirejs/bin/r.js -o src/main/js/requirejs-codemirror-config.js logLevel=2 out=build/opt-resources/xtext-codemirror.min.js optimize=uglify preserveLicenseComments=false", - "optimizeCodeMirrorCss": "node node_modules/requirejs/bin/r.js -o logLevel=2 cssIn=src/main/css/xtext/xtext-codemirror.css out=build/opt-resources/xtext-codemirror.css" - } -} diff --git a/org.eclipse.xtext.web/pom.xml b/org.eclipse.xtext.web/pom.xml deleted file mode 100644 index 9ba36e080ff..00000000000 --- a/org.eclipse.xtext.web/pom.xml +++ /dev/null @@ -1,192 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - xtext-parent - 2.44.0-SNAPSHOT - - org.eclipse.xtext.web - jar - - Xtext Web API - API for integrating Xtext editors in web pages. - - - - - org.eclipse.platform - org.eclipse.core.runtime - test - - - org.eclipse.xtext - org.eclipse.xtext.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.common.types - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.testing - ${project.version} - test - - - org.eclipse.xtext - org.eclipse.xtext.web.example.statemachine - ${project.version} - test - - - org.eclipse.xtext - org.eclipse.xtext.web.example.statemachine.ide - ${project.version} - test - - - junit - junit - test - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-test-sources - initialize - - add-test-source - - - - src/test/xtext-gen - - - - - - - maven-resources-plugin - - - copy-js-resources - prepare-package - - copy-resources - - - ${project.build.outputDirectory}/META-INF/resources/xtext/${project.version} - - - build/opt-resources - true - - - - - - copy-images-resources - prepare-package - - copy-resources - - - ${project.build.outputDirectory}/META-INF/resources/xtext/${project.version}/images - - - src/main/css/xtext/images - true - - - - - - - - com.github.eirslett - frontend-maven-plugin - 1.15.0 - - - install node and npm - - install-node-and-npm - - - - v22.22.0 - 10.9.4 - - - - npm ci - - npm - - - - ci - - - - javascript tests - - npm - - - run test - - - - optimize - - npm - - - run optimize - - - - - - maven-jar-plugin - - - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - - - - org.apache.felix - maven-bundle-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - - true - - - - - org.apache.maven.surefire - surefire-junit47 - ${maven-surefire-version} - - - - - - diff --git a/org.eclipse.xtext.web/src/main/css/xtext/images/default-icon.gif b/org.eclipse.xtext.web/src/main/css/xtext/images/default-icon.gif deleted file mode 100755 index 21036fedd73..00000000000 Binary files a/org.eclipse.xtext.web/src/main/css/xtext/images/default-icon.gif and /dev/null differ diff --git a/org.eclipse.xtext.web/src/main/css/xtext/images/error_an.gif b/org.eclipse.xtext.web/src/main/css/xtext/images/error_an.gif deleted file mode 100644 index e014ce90597..00000000000 Binary files a/org.eclipse.xtext.web/src/main/css/xtext/images/error_an.gif and /dev/null differ diff --git a/org.eclipse.xtext.web/src/main/css/xtext/images/error_co.gif b/org.eclipse.xtext.web/src/main/css/xtext/images/error_co.gif deleted file mode 100644 index 119dcccd5a7..00000000000 Binary files a/org.eclipse.xtext.web/src/main/css/xtext/images/error_co.gif and /dev/null differ diff --git a/org.eclipse.xtext.web/src/main/css/xtext/images/info_an.gif b/org.eclipse.xtext.web/src/main/css/xtext/images/info_an.gif deleted file mode 100644 index d62ad9ddcac..00000000000 Binary files a/org.eclipse.xtext.web/src/main/css/xtext/images/info_an.gif and /dev/null differ diff --git a/org.eclipse.xtext.web/src/main/css/xtext/images/warning_an.gif b/org.eclipse.xtext.web/src/main/css/xtext/images/warning_an.gif deleted file mode 100644 index 9ef66dd7823..00000000000 Binary files a/org.eclipse.xtext.web/src/main/css/xtext/images/warning_an.gif and /dev/null differ diff --git a/org.eclipse.xtext.web/src/main/css/xtext/images/warning_co.gif b/org.eclipse.xtext.web/src/main/css/xtext/images/warning_co.gif deleted file mode 100644 index ee2dac4a90a..00000000000 Binary files a/org.eclipse.xtext.web/src/main/css/xtext/images/warning_co.gif and /dev/null differ diff --git a/org.eclipse.xtext.web/src/main/css/xtext/xtext-ace.css b/org.eclipse.xtext.web/src/main/css/xtext/xtext-ace.css deleted file mode 100644 index db460a0acb0..00000000000 --- a/org.eclipse.xtext.web/src/main/css/xtext/xtext-ace.css +++ /dev/null @@ -1,35 +0,0 @@ -.xtext-marker_error { - position: absolute; - z-index: 30; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAABmJLR0QA/wD/AP+gvaeTAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="); - background-repeat: repeat-x; - background-position: left bottom; -} - -.xtext-marker_warning { - position: absolute; - z-index: 20; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAABmJLR0QA/wD/AP+gvaeTAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="); - background-repeat: repeat-x; - background-position: left bottom; -} - -.xtext-marker_info { - position: absolute; - z-index: 10; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAABmJLR0QA/wD/AP+gvaeTAAAANklEQVQI12NkgIIVRx8tZGBg6GZccfRRKAMDgw8DA0M3AwPDIiYGBoZKBgaG7ghruSsMDAwpABH5CoqwzCoTAAAAAElFTkSuQmCC"); - background-repeat: repeat-x; - background-position: left bottom; -} - -.xtext-marker_read { - position: absolute; - z-index: 5; - background-color: #ddd; -} - -.xtext-marker_write { - z-index: 5; - position: absolute; - background-color: yellow; -} \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/css/xtext/xtext-codemirror.css b/org.eclipse.xtext.web/src/main/css/xtext/xtext-codemirror.css deleted file mode 100644 index 831b6daf122..00000000000 --- a/org.eclipse.xtext.web/src/main/css/xtext/xtext-codemirror.css +++ /dev/null @@ -1,58 +0,0 @@ -.CodeMirror { - height: 100%; -} - -.annotations-gutter { - width: 12px; - background: #f0f0f0; -} - -.xtext-annotation_error { - width: 12px; - height: 12px; - background-image: url('images/error_an.gif'); - background-repeat: no-repeat; -} - -.xtext-annotation_warning { - width: 12px; - height: 12px; - background-image: url('images/warning_an.gif'); - background-repeat: no-repeat; -} - -.xtext-annotation_info { - width: 12px; - height: 12px; - background-image: url('images/info_an.gif'); - background-repeat: no-repeat; -} - -.xtext-marker_error { - z-index: 30; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAABmJLR0QA/wD/AP+gvaeTAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="); - background-repeat: repeat-x; - background-position: left bottom; -} - -.xtext-marker_warning { - z-index: 20; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAABmJLR0QA/wD/AP+gvaeTAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="); - background-repeat: repeat-x; - background-position: left bottom; -} - -.xtext-marker_info { - z-index: 10; - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAABmJLR0QA/wD/AP+gvaeTAAAANklEQVQI12NkgIIVRx8tZGBg6GZccfRRKAMDgw8DA0M3AwPDIiYGBoZKBgaG7ghruSsMDAwpABH5CoqwzCoTAAAAAElFTkSuQmCC"); - background-repeat: repeat-x; - background-position: left bottom; -} - -.xtext-marker_read { - background-color: #ddd; -} - -.xtext-marker_write { - background-color: yellow; -} diff --git a/org.eclipse.xtext.web/src/main/css/xtext/xtext-orion.css b/org.eclipse.xtext.web/src/main/css/xtext/xtext-orion.css deleted file mode 100644 index 0b0f85f57d9..00000000000 --- a/org.eclipse.xtext.web/src/main/css/xtext/xtext-orion.css +++ /dev/null @@ -1,23 +0,0 @@ -.contentassist .proposal-default { - color: #777; -} - -.contentassist .proposal-name { - color: #000; - padding-right: 12px; -} - -.xtext-hover { - font-family: sans-serif; -} - -.xtext-hover .element-name { - padding-left: 16px; - font-weight: bold; -} - -.textviewTooltip { - color: #444; - background-color: #ecebec; - border: 1px solid #aaa; -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/DefaultWebModule.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/DefaultWebModule.java deleted file mode 100644 index 0e669532e58..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/DefaultWebModule.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2015, 2016 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -import org.eclipse.xtext.service.AbstractGenericModule; -import org.eclipse.xtext.web.server.generator.DefaultContentTypeProvider; -import org.eclipse.xtext.web.server.generator.IContentTypeProvider; - -/** - * Default Guice bindings for the web integration of Xtext. - */ -public class DefaultWebModule extends AbstractGenericModule { - public Class bindIContentTypeProvider() { - return DefaultContentTypeProvider.class; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceContext.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceContext.java deleted file mode 100644 index 8fb5d30dc22..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceContext.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -import java.util.Set; - -/** - * Provides the parameters and meta data of a service request. - */ -public interface IServiceContext { - /** - * Key for the service type parameter, which determines the actual service to be invoked. - */ - static String SERVICE_TYPE = "serviceType"; - - /** - * The available keys that can be used as arguments to {@link #getParameter(String)}. - */ - Set getParameterKeys(); - - /** - * Returns the request parameter for the given key. - */ - String getParameter(String key); - - /** - * Returns a session into which information can be stored across multiple requests from - * the same client. If a session does not exist yet, one is created. - * - *

Warning: This method may have side effects on the response sent to the client, - * such as adding a session Id.

- */ - ISession getSession(); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceResult.java deleted file mode 100644 index 2eb51fe3ee7..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IServiceResult.java +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -/** - * Marker interface for objects that can be converted to the Json - * format for sending service results to the client. - */ -public interface IServiceResult { -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ISession.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ISession.java deleted file mode 100644 index 1d3f35fba9a..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ISession.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -import org.eclipse.xtext.xbase.lib.Functions.Function0; - -/** - * Provides means to store information that can be accessed for subsequent requests. - * This allows to improve the server performance by avoiding duplicate computations, - * and to share resources across multiple service requests. - */ -public interface ISession { - /** - * A default implementation that stores nothing. - */ - class NullImpl implements ISession { - @Override - public T get(Object key) { - return null; - } - - @Override - public T get(Object key, Function0 factory) { - return factory.apply(); - } - - @Override - public void put(Object key, Object value) { - } - - @Override - public void remove(Object key) { - } - } - - /** - * Get the stored information for the given key. Returns {@code null} if nothing - * is associated with that key. - */ - T get(Object key); - - /** - * Get the stored information for the given key, creating it if it is not present yet. - * The check for presence of the information and the invocation of the factory are - * done in an atomic block, thus the session store may be accessed from multiple threads. - */ - T get(Object key, Function0 factory); - - /** - * Add the given information to this session store, overwriting any previously stored - * information for that key. - */ - void put(Object key, Object value); - - /** - * Remove the information stored with the given key. - */ - void remove(Object key); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IUnwrappableServiceResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IUnwrappableServiceResult.java deleted file mode 100644 index 77b14070106..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/IUnwrappableServiceResult.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -/** - * Service results that implement this interface are unwrapped, i.e. the content of the result object - * is sent to the client instead of a Json object. - */ -public interface IUnwrappableServiceResult extends IServiceResult { - /** - * The actual content to write into the request response. - */ - String getContent(); - - /** - * The content type of the text content. - */ - String getContentType(); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/InvalidRequestException.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/InvalidRequestException.java deleted file mode 100644 index 40ebb679781..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/InvalidRequestException.java +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -/** - * Exception that can be thrown anytime while preparing or executing an Xtext - * service. Clients invoking such a service directly or indirectly through - * {@link XtextServiceDispatcher} must catch this exception and translate it to - * a proper error message. An InvalidRequestException must never lead to an - * internal server error. - */ -public class InvalidRequestException extends RuntimeException { - private static final long serialVersionUID = 1833024545060531279L; - - /** - * The request parameters are not valid. - */ - public static class InvalidParametersException extends InvalidRequestException { - private static final long serialVersionUID = -5543694640103889039L; - - public InvalidParametersException(String message) { - super(message); - } - - public InvalidParametersException(String message, Throwable cause) { - super(message, cause); - } - } - - /** - * The Xtext language could not be inferred from the parameters or metadata. - */ - public static class UnknownLanguageException extends InvalidRequestException { - private static final long serialVersionUID = 4069448061508416517L; - - public UnknownLanguageException(String message) { - super(message); - } - - public UnknownLanguageException(String message, Throwable cause) { - super(message, cause); - } - } - - /** - * The requested resource was not found on the server. - */ - public static class ResourceNotFoundException extends InvalidRequestException { - private static final long serialVersionUID = -5065475982907147862L; - - public ResourceNotFoundException(String message) { - super(message); - } - - public ResourceNotFoundException(String message, Throwable cause) { - super(message, cause); - } - } - - /** - * The required document state does not match the current document state. - * - * @see org.eclipse.xtext.web.server.model.XtextWebDocument#getStateId() - */ - public static class InvalidDocumentStateException extends InvalidRequestException { - private static final long serialVersionUID = 6295176606149510699L; - - public InvalidDocumentStateException(String message) { - super(message); - } - - public InvalidDocumentStateException(String message, Throwable cause) { - super(message, cause); - } - } - - /** - * Permission to invoke the requested service was denied. - */ - public static class PermissionDeniedException extends InvalidRequestException { - private static final long serialVersionUID = 2990973891054231055L; - - public PermissionDeniedException(String message) { - super(message); - } - - public PermissionDeniedException(String message, Throwable cause) { - super(message, cause); - } - } - - public InvalidRequestException(String message) { - super(message); - } - - public InvalidRequestException(String message, Throwable cause) { - super(message, cause); - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ServiceConflictResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ServiceConflictResult.java deleted file mode 100644 index 86a056b3718..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/ServiceConflictResult.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * A service result object indicating that a conflict has occurred and thus the - * original request could not be completed. This result type is used to avoid - * responses with error codes for conflict situations that can happen relatively - * often, e.g. when multiple requests are sent within a short amount of time. - */ -public class ServiceConflictResult implements IServiceResult { - /** - * A descriptor of the reason for the conflict. Commonly used values are - * "invalidStateId" for cases when the requiredStateId parameter does not - * match the current document state, and "canceled" when the service has been - * interrupted by another service request. - */ - private final String conflict; - - public ServiceConflictResult(String conflict) { - this.conflict = conflict; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((conflict == null) ? 0 : conflict.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ServiceConflictResult other = (ServiceConflictResult) obj; - if (conflict == null) { - if (other.conflict != null) - return false; - } else if (!conflict.equals(other.conflict)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("conflict", this.conflict); - return b.toString(); - } - - public String getConflict() { - return conflict; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/XtextServiceDispatcher.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/XtextServiceDispatcher.java deleted file mode 100644 index 922867bde9d..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/XtextServiceDispatcher.java +++ /dev/null @@ -1,795 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server; - -import java.io.IOException; -import java.util.Arrays; -import java.util.Collections; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Random; - -import org.apache.log4j.Logger; -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.xtext.formatting2.FormatterPreferenceKeys; -import org.eclipse.xtext.formatting2.FormatterPreferences; -import org.eclipse.xtext.preferences.IPreferenceValues; -import org.eclipse.xtext.preferences.IPreferenceValuesProvider; -import org.eclipse.xtext.preferences.MapBasedPreferenceValues; -import org.eclipse.xtext.resource.FileExtensionProvider; -import org.eclipse.xtext.resource.IResourceFactory; -import org.eclipse.xtext.resource.XtextResource; -import org.eclipse.xtext.service.OperationCanceledManager; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.StringInputStream; -import org.eclipse.xtext.util.TextRegion; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.contentassist.ContentAssistService; -import org.eclipse.xtext.web.server.formatting.FormattingService; -import org.eclipse.xtext.web.server.generator.GeneratorService; -import org.eclipse.xtext.web.server.hover.HoverService; -import org.eclipse.xtext.web.server.model.IWebDocumentProvider; -import org.eclipse.xtext.web.server.model.IWebResourceSetProvider; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.PrecomputedServiceRegistry; -import org.eclipse.xtext.web.server.model.UpdateDocumentService; -import org.eclipse.xtext.web.server.model.XtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.web.server.occurrences.OccurrencesService; -import org.eclipse.xtext.web.server.persistence.IServerResourceHandler; -import org.eclipse.xtext.web.server.persistence.ResourcePersistenceService; -import org.eclipse.xtext.web.server.syntaxcoloring.HighlightingService; -import org.eclipse.xtext.web.server.validation.ValidationService; -import org.eclipse.xtext.xbase.lib.Exceptions; -import org.eclipse.xtext.xbase.lib.Functions.Function0; -import org.eclipse.xtext.xbase.lib.IterableExtensions; -import org.eclipse.xtext.xbase.lib.Pair; -import org.eclipse.xtext.xbase.lib.StringExtensions; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -import com.google.common.base.Optional; -import com.google.inject.Inject; -import com.google.inject.Singleton; - -/** - * The entry class for Xtext service invocations. Use - * {@link #getService(IServiceContext)} to obtain a {@link ServiceDescriptor} - * for a client request. The service descriptor has some metadata that may - * influence the message format expected for the request, and may lead to a - * rejection of the request. - * - *

- * A typical usage can look like this: - *

- * - *
- * val serviceDispatcher = injector.getInstance(XtextServiceDispatcher)
- * val serviceDescriptor = serviceDispatcher.getService(serviceContext)
- * // Check whether the service metadata fits to the request format
- * ...
- * val result = serviceDescriptor.service.apply()
- * // Serialize and send the result back to the client
- * ...
- * 
- */ -@Singleton -public class XtextServiceDispatcher { - - private static final Logger LOG = Logger.getLogger(XtextServiceDispatcher.class); - - /** - * Service metadata, including a function for actually invoking the service. - */ - public static class ServiceDescriptor { - /** - * Context information such as request parameters and session data. - */ - private IServiceContext context; - - /** - * The function for invoking the service. - */ - private Function0 service; - - /** - * Whether the service has any side effects apart from initializing data in the - * session. - */ - private boolean hasSideEffects; - - /** - * Whether one of the preconditions of the service does not match, e.g. because - * it is in conflict with another request. - */ - private boolean hasConflict; - - public IServiceContext getContext() { - return context; - } - - public void setContext(IServiceContext context) { - this.context = context; - } - - public Function0 getService() { - return service; - } - - public void setService(Function0 service) { - this.service = service; - } - - public boolean isHasSideEffects() { - return hasSideEffects; - } - - public void setHasSideEffects(boolean hasSideEffects) { - this.hasSideEffects = hasSideEffects; - } - - public boolean isHasConflict() { - return hasConflict; - } - - public void setHasConflict(boolean hasConflict) { - this.hasConflict = hasConflict; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("context", context); - b.add("service", service); - b.add("hasSideEffects", hasSideEffects); - b.add("hasConflict", hasConflict); - return b.toString(); - } - } - - @Inject(optional = true) - @FormatterPreferences - private IPreferenceValuesProvider formatterPreferencesProvider; - - @Inject - private ResourcePersistenceService resourcePersistenceService; - - @Inject - private UpdateDocumentService updateDocumentService; - - @Inject - private ContentAssistService contentAssistService; - - @Inject - private ValidationService validationService; - - @Inject - private HighlightingService highlightingService; - - @Inject - private HoverService hoverService; - - @Inject - private OccurrencesService occurrencesService; - - @Inject - private FormattingService formattingService; - - @Inject - private GeneratorService generatorService; - - @Inject - private IServerResourceHandler resourceHandler; - - @Inject - private IWebResourceSetProvider resourceSetProvider; - - @Inject - private IWebDocumentProvider documentProvider; - - @Inject - private FileExtensionProvider fileExtensionProvider; - - @Inject - private IResourceFactory resourceFactory; - - @Inject - private OperationCanceledManager operationCanceledManager; - - @Inject - private XtextWebDocumentAccess.Factory documentAccessFactory; - - private final Random randomGenerator = new Random(); - - @Inject - protected void registerPreComputedServices(PrecomputedServiceRegistry registry) { - registry.addPrecomputedService(highlightingService); - registry.addPrecomputedService(validationService); - } - - /** - * Create a service descriptor according to the parameters given in the service - * context. - */ - public ServiceDescriptor getService(IServiceContext context) throws InvalidRequestException { - String serviceType = context.getParameter(IServiceContext.SERVICE_TYPE); - if (serviceType == null) { - throw new InvalidRequestException.InvalidParametersException("The parameter 'serviceType' is required."); - } - if (LOG.isTraceEnabled()) { - List sorted = IterableExtensions.sort(context.getParameterKeys()); - String stringParams = IterableExtensions.join(sorted, ": ", ", ", "", (String key) -> { - String value = context.getParameter(key); - if (value.length() > 18) { - return key + "='" + value.substring(0, 16) + "...'"; - } else { - if (value.matches(".*\\s+.*")) { - return key + "='" + value + "'"; - } else { - return key + "=" + value; - } - } - }).replaceAll("(\\n|\\f|\\r)+", " "); - LOG.trace("xtext-service/" + serviceType + stringParams); - } - try { - ServiceDescriptor serviceDescriptor = createServiceDescriptor(serviceType, context); - serviceDescriptor.context = context; - return serviceDescriptor; - } catch (InvalidRequestException.InvalidDocumentStateException e) { - LOG.trace("Invalid document state (" + serviceType + ")"); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.context = context; - serviceDescriptor.service = () -> { - return new ServiceConflictResult("invalidStateId"); - }; - serviceDescriptor.hasConflict = true; - return serviceDescriptor; - } - } - - /** - * Do the actual dispatching by delegating to a service descriptor creation - * method depending on the service type. Override this method if you want to add - * more services to the dispatcher. - */ - protected ServiceDescriptor createServiceDescriptor(String serviceType, IServiceContext context) { - if (serviceType != null) { - switch (serviceType) { - case "load": - return getLoadResourceService(false, context); - case "revert": - return getLoadResourceService(true, context); - case "save": - return getSaveResourceService(context); - case "update": - return getUpdateDocumentService(context); - case "assist": - return getContentAssistService(context); - case "validate": - return getValidationService(context); - case "hover": - return getHoverService(context); - case "highlight": - return getHighlightingService(context); - case "occurrences": - return getOccurrencesService(context); - case "format": - return getFormattingService(context); - case "generate": - return getGeneratorService(context); - default: - throw new InvalidRequestException.InvalidParametersException( - "The service type '" + serviceType + "' is not supported."); - } - } else { - throw new InvalidRequestException.InvalidParametersException( - "The service type '" + serviceType + "' is not supported."); - } - } - - protected ServiceDescriptor getLoadResourceService(boolean revert, IServiceContext context) - throws InvalidRequestException { - String resourceId = getResourceID(context); - if (resourceId == null) { - throw new InvalidRequestException.InvalidParametersException("The parameter 'resource' is required."); - } - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - if (revert) { - return resourcePersistenceService.revert(resourceId, resourceHandler, context); - } else { - return resourcePersistenceService.load(resourceId, resourceHandler, context); - } - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - serviceDescriptor.hasSideEffects = revert; - return serviceDescriptor; - } - - protected ServiceDescriptor getSaveResourceService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return resourcePersistenceService.save(document, resourceHandler, context); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - serviceDescriptor.hasSideEffects = true; - return serviceDescriptor; - } - - protected ServiceDescriptor getUpdateDocumentService(IServiceContext context) throws InvalidRequestException { - String resourceId = getResourceID(context); - if (resourceId == null) { - throw new InvalidRequestException.InvalidParametersException("The parameter 'resource' is required."); - } - String fullText = context.getParameter("fullText"); - XtextWebDocument document = getResourceDocument(resourceId, context); - boolean initializedFromFullText = (document == null); - if (initializedFromFullText) { - if (fullText == null) { - throw new InvalidRequestException.ResourceNotFoundException("The requested resource was not found."); - } - document = getFullTextDocument(fullText, resourceId, context); - } - XtextWebDocumentAccess documentAccess = documentAccessFactory.create(document, - context.getParameter("requiredStateId"), false); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.hasSideEffects = true; - if (fullText == null) { - String deltaText = context.getParameter("deltaText"); - if (deltaText == null) { - throw new InvalidRequestException.InvalidParametersException( - "One of the parameters 'deltaText' and 'fullText' must be specified."); - } - int deltaOffset = getInt(context, "deltaOffset", Optional.absent()); - if (deltaOffset < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'deltaOffset' must not be negative."); - } - int deltaReplaceLength = getInt(context, "deltaReplaceLength", Optional.absent()); - if (deltaReplaceLength < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'deltaReplaceLength' must not be negative."); - } - serviceDescriptor.service = () -> { - try { - return updateDocumentService.updateDeltaText(documentAccess, deltaText, deltaOffset, - deltaReplaceLength); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - } else { - if (context.getParameterKeys().contains("deltaText")) { - throw new InvalidRequestException.InvalidParametersException( - "The parameters 'deltaText' and 'fullText' cannot be set in the same request."); - } - serviceDescriptor.service = () -> { - try { - if (initializedFromFullText) { - return updateDocumentService.getStateId(documentAccess); - } else { - return updateDocumentService.updateFullText(documentAccess, fullText); - } - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - } - return serviceDescriptor; - } - - protected ServiceDescriptor getContentAssistService(IServiceContext context) throws InvalidRequestException { - int offset = getInt(context, "caretOffset", Optional.of(0)); - if (offset < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'offset' must not be negative."); - } - XtextWebDocumentAccess document = getDocumentAccess(context); - int proposalsLimit = getInt(context, "proposalsLimit", - Optional.of(ContentAssistService.DEFAULT_PROPOSALS_LIMIT)); - if (proposalsLimit <= 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'proposalsLimit' must contain a positive integer."); - } - int selectionStart = getInt(context, "selectionStart", Optional.of(offset)); - int selectionEnd = getInt(context, "selectionEnd", Optional.of(selectionStart)); - TextRegion selection = new TextRegion(selectionStart, Math.max(selectionEnd - selectionStart, 0)); - String deltaText = context.getParameter("deltaText"); - if (deltaText == null) { - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return contentAssistService.createProposals(document, selection, offset, proposalsLimit); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - return serviceDescriptor; - } else { - if (context.getParameterKeys().contains("fullText")) { - throw new InvalidRequestException.InvalidParametersException( - "The parameters 'deltaText' and 'fullText' cannot be set in the same request."); - } - int deltaOffset = getInt(context, "deltaOffset", Optional.absent()); - if (deltaOffset < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'deltaOffset' must not be negative."); - } - int deltaReplaceLength = getInt(context, "deltaReplaceLength", Optional.absent()); - if (deltaReplaceLength < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'deltaReplaceLength' must not be negative."); - } - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return contentAssistService.createProposalsWithUpdate(document, deltaText, deltaOffset, - deltaReplaceLength, selection, offset, proposalsLimit); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - serviceDescriptor.hasSideEffects = true; - return serviceDescriptor; - } - } - - protected ServiceDescriptor getValidationService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return validationService.getResult(document); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - return serviceDescriptor; - } - - protected ServiceDescriptor getHoverService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - int offset = getInt(context, "caretOffset", Optional.of(0)); - if (offset < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'offset' must not be negative."); - } - int selectionStart = getInt(context, "selectionStart", Optional.of(offset)); - int selectionEnd = getInt(context, "selectionEnd", Optional.of(selectionStart)); - TextRegion selection = new TextRegion(selectionStart, Math.max(selectionEnd - selectionStart, 0)); - String proposal = context.getParameter("proposal"); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - if (StringExtensions.isNullOrEmpty(proposal)) { - return hoverService.getHover(document, offset); - } else { - return hoverService.getHover(document, proposal, selection, offset); - } - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - return serviceDescriptor; - } - - protected ServiceDescriptor getHighlightingService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return highlightingService.getResult(document); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - return serviceDescriptor; - } - - protected ServiceDescriptor getOccurrencesService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - int offset = getInt(context, "caretOffset", Optional.of(0)); - if (offset < 0) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter 'offset' must not be negative."); - } - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return occurrencesService.findOccurrences(document, offset); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - return serviceDescriptor; - } - - /** - * @see FormatterPreferenceKeys - */ - protected ServiceDescriptor getFormattingService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - int selectionStart = getInt(context, "selectionStart", Optional.of(0)); - int selectionEnd = getInt(context, "selectionEnd", Optional.of(selectionStart)); - String lineSeparator = context.getParameter("lineSeparator"); - String indentation = context.getParameter("indentation"); - int indentationLength = getInt(context, "indentationLength", Optional.of(4)); - int maxLineWidth = getInt(context, "maxLineWidth", Optional.of(120)); - IPreferenceValues formatterPreferences = document - .readOnly(new CancelableUnitOfWork() { - @Override - public IPreferenceValues exec(IXtextWebDocument $0, CancelIndicator $1) throws Exception { - if (formatterPreferencesProvider != null) { - return formatterPreferencesProvider.getPreferenceValues($0.getResource()); - } - return null; - } - }); - MapBasedPreferenceValues preferences = new MapBasedPreferenceValues(formatterPreferences, - new LinkedHashMap<>()); - preferences.put(FormatterPreferenceKeys.lineSeparator, lineSeparator); - preferences.put(FormatterPreferenceKeys.indentation, indentation); - preferences.put(FormatterPreferenceKeys.tabWidth, indentationLength); - preferences.put(FormatterPreferenceKeys.maxLineWidth, maxLineWidth); - final TextRegion selection; - if (selectionEnd > selectionStart) { - selection = new TextRegion(selectionStart, (selectionEnd - selectionStart)); - } else { - selection = null; - } - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - serviceDescriptor.service = () -> { - try { - return formattingService.format(document, selection, preferences); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - serviceDescriptor.hasSideEffects = true; - return serviceDescriptor; - } - - protected ServiceDescriptor getGeneratorService(IServiceContext context) throws InvalidRequestException { - XtextWebDocumentAccess document = getDocumentAccess(context); - boolean allArtifacts = getBoolean(context, "allArtifacts", Optional.of(false)); - boolean includeContent = getBoolean(context, "includeContent", Optional.of(true)); - ServiceDescriptor serviceDescriptor = new ServiceDescriptor(); - if (allArtifacts) { - serviceDescriptor.service = () -> { - try { - return generatorService.getResult(document, includeContent); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - } else { - String artifactId = context.getParameter("artifact"); - serviceDescriptor.service = () -> { - try { - return generatorService.getArtifact(document, artifactId, includeContent); - } catch (Throwable throwable) { - return handleError(serviceDescriptor, throwable); - } - }; - } - return serviceDescriptor; - } - - /** - * Retrieve the document access for the given service context. If the 'fullText' - * parameter is given, a new document containing that text is created. Otherwise - * the 'resource' parameter is used to load a resource and put it into the - * session store. - */ - protected XtextWebDocumentAccess getDocumentAccess(IServiceContext context) throws InvalidRequestException { - XtextWebDocument document = null; - boolean initializedFromFullText = false; - if (context.getParameterKeys().contains("fullText")) { - document = getFullTextDocument(context.getParameter("fullText"), getResourceID(context), context); - initializedFromFullText = true; - } else { - if (context.getParameterKeys().contains("resource")) { - document = getResourceDocument(getResourceID(context), context); - if (document == null) { - throw new InvalidRequestException.ResourceNotFoundException( - "The requested resource was not found."); - } - } else { - throw new InvalidRequestException.InvalidParametersException( - "At least one of the parameters 'resource' and 'fullText' must be specified."); - } - } - return documentAccessFactory.create(document, context.getParameter("requiredStateId"), initializedFromFullText); - } - - /** - * Returns the resource ID from the service context. Potentially null. - */ - protected String getResourceID(IServiceContext context) { - return context.getParameter("resource"); - } - - /** - * Create a new document containing the given text. - */ - protected XtextWebDocument getFullTextDocument(String fullText, String resourceId, IServiceContext context) { - try { - ResourceSet resourceSet = resourceSetProvider.get(resourceId, context); - String uriString = null; - if (resourceId != null) { - uriString = resourceId; - } else { - uriString = Integer.toHexString(randomGenerator.nextInt()) + "." - + fileExtensionProvider.getPrimaryFileExtension(); - } - URI uri = URI.createURI(uriString); - XtextResource resource = (XtextResource) resourceFactory.createResource(uri); - Resource existingResource = resourceSet.getResource(uri, false); - if (existingResource != null) { - resourceSet.getResources().remove(existingResource); - } - resourceSet.getResources().add(resource); - resource.load(new StringInputStream(fullText), Collections.emptyMap()); - XtextWebDocument document = documentProvider.get(resourceId, context); - document.setInput(resource); - if (resourceId != null) { - context.getSession().put(Pair.of(XtextWebDocument.class, resourceId), document); - } - return document; - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - /** - * Obtain a document from the session store, and if it is not present there, ask - * the {@link IServerResourceHandler} to provide it. In case that resource - * handler fails to provide the document, {@code null} is returned instead. - */ - protected XtextWebDocument getResourceDocument(String resourceId, IServiceContext context) { - try { - return context.getSession().get(Pair.of(XtextWebDocument.class, resourceId), () -> { - try { - return resourceHandler.get(resourceId, context); - } catch (Throwable t) { - throw Exceptions.sneakyThrow(t); - } - }); - } catch (Throwable t) { - if (t instanceof IOException) { - return null; - } else { - throw Exceptions.sneakyThrow(t); - } - } - } - - /** - * Read an string-valued parameter. If the parameter is not available, the - * {@code defaultValue} is returned. - * - * @throws InvalidRequestException.InvalidParametersException if the parameter - * is not available - * and - * {@code defaultValue} - * is absent - */ - protected String getString(IServiceContext context, String key, Optional defaultValue) - throws InvalidRequestException.InvalidParametersException { - String stringValue = context.getParameter(key); - if (stringValue == null) { - if (!defaultValue.isPresent()) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter '" + key + "' must be specified."); - } - return defaultValue.get(); - } - return stringValue; - } - - /** - * Read an integer-valued parameter. If the parameter is not available, the - * {@code defaultValue} is returned. - * - * @throws InvalidRequestException.InvalidParametersException if the parameter - * is not available - * and - * {@code defaultValue} - * is absent - */ - protected int getInt(IServiceContext context, String key, Optional defaultValue) - throws InvalidRequestException.InvalidParametersException { - String stringValue = context.getParameter(key); - if (stringValue == null) { - if (!defaultValue.isPresent()) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter '" + key + "' must be specified."); - } - return defaultValue.get().intValue(); - } - try { - return Integer.parseInt(stringValue); - } catch (NumberFormatException e) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter '" + key + "' must contain an integer value."); - } - } - - /** - * Read a Boolean-valued parameter. If the parameter is not available, the - * {@code defaultValue} is returned. - * - * @throws InvalidRequestException.InvalidParametersException if the parameter - * is not available - * and - * {@code defaultValue} - * is absent - */ - protected boolean getBoolean(IServiceContext context, String key, Optional defaultValue) - throws InvalidRequestException.InvalidParametersException { - String stringValue = context.getParameter(key); - if (stringValue == null) { - if (!defaultValue.isPresent()) { - throw new InvalidRequestException.InvalidParametersException( - "The parameter '" + key + "' must be specified."); - } - return defaultValue.get().booleanValue(); - } - String lowerCase = stringValue.toLowerCase(); - if (lowerCase != null) { - switch (lowerCase) { - case "true": - return true; - case "false": - return false; - default: - throw new InvalidRequestException.InvalidParametersException( - "The parameter '" + key + "' must contain a Boolean value."); - } - } else { - throw new InvalidRequestException.InvalidParametersException( - "The parameter '" + key + "' must contain a Boolean value."); - } - } - - protected ServiceConflictResult _handleError(ServiceDescriptor service, Throwable throwable) { - if (operationCanceledManager.isOperationCanceledException(throwable)) { - LOG.trace("Service canceled (" + service.context.getParameter(IServiceContext.SERVICE_TYPE) + ")"); - return new ServiceConflictResult("canceled"); - } - throw Exceptions.sneakyThrow(throwable); - } - - protected ServiceConflictResult _handleError(ServiceDescriptor service, - InvalidRequestException.InvalidDocumentStateException exception) { - LOG.trace("Invalid document state (" + service.context.getParameter(IServiceContext.SERVICE_TYPE) + ")"); - return new ServiceConflictResult("invalidStateId"); - } - - protected ServiceConflictResult handleError(ServiceDescriptor service, Throwable exception) { - if (exception instanceof InvalidRequestException.InvalidDocumentStateException) { - return _handleError(service, (InvalidRequestException.InvalidDocumentStateException) exception); - } else if (exception != null) { - return _handleError(service, exception); - } else { - throw new IllegalArgumentException( - "Unhandled parameter types: " + Arrays.asList(service, exception).toString()); - } - } - -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/contentassist/ContentAssistResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/contentassist/ContentAssistResult.java deleted file mode 100644 index 210b10739db..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/contentassist/ContentAssistResult.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.contentassist; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistEntry; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the content assist service. - */ -public class ContentAssistResult implements IServiceResult { - private final String stateId; - - private final List entries = new ArrayList<>(); - - public ContentAssistResult(String stateId) { - this.stateId = stateId; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((entries == null) ? 0 : entries.hashCode()); - result = prime * result + ((stateId == null) ? 0 : stateId.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ContentAssistResult other = (ContentAssistResult) obj; - if (entries == null) { - if (other.entries != null) - return false; - } else if (!entries.equals(other.entries)) - return false; - if (stateId == null) { - if (other.stateId != null) - return false; - } else if (!stateId.equals(other.stateId)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.skipNulls(); - b.add("stateId", this.stateId); - b.add("entries", this.entries); - return b.toString(); - } - - public String getStateId() { - return stateId; - } - - public List getEntries() { - return entries; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/contentassist/ContentAssistService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/contentassist/ContentAssistService.java deleted file mode 100644 index 9ff0c60fee6..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/contentassist/ContentAssistService.java +++ /dev/null @@ -1,160 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.contentassist; - -import java.util.Arrays; -import java.util.HashSet; -import java.util.List; -import java.util.Set; -import java.util.concurrent.ExecutorService; - -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistContext; -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistEntry; -import org.eclipse.xtext.ide.editor.contentassist.IIdeContentProposalAcceptor; -import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalProvider; -import org.eclipse.xtext.ide.editor.contentassist.antlr.ContentAssistContextFactory; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.ITextRegion; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.xbase.lib.IterableExtensions; -import org.eclipse.xtext.xbase.lib.Pair; - -import com.google.common.collect.Lists; -import com.google.inject.Inject; -import com.google.inject.Provider; -import com.google.inject.Singleton; - -/** - * Service class for content assist proposals. - */ -@Singleton -public class ContentAssistService { - public static final int DEFAULT_PROPOSALS_LIMIT = 1000; - - @Inject - private Provider contextFactoryProvider; - - @Inject - private ExecutorService executorService; - - @Inject - private IdeContentProposalProvider proposalProvider; - - /** - * Create content assist proposals at the given caret offset. This document read - * operation is scheduled with higher priority, so currently running operations - * may be canceled. The document processing is rescheduled as background work - * afterwards. - */ - public ContentAssistResult createProposals(XtextWebDocumentAccess document, ITextRegion selection, int caretOffset, - int proposalsLimit) throws InvalidRequestException { - String[] stateIdWrapper = new String[1]; - ContentAssistContext[] contexts = document - .priorityReadOnly(new CancelableUnitOfWork() { - @Override - public ContentAssistContext[] exec(IXtextWebDocument it, CancelIndicator cancelIndicator) - throws Exception { - stateIdWrapper[0] = it.getStateId(); - return getContexts(it, selection, caretOffset); - } - }); - List contextsList = Arrays.asList(contexts); - return createProposals(contextsList, stateIdWrapper[0], proposalsLimit); - } - - /** - * Apply a text update and then create content assist proposals. This document - * read operation is scheduled with higher priority, so currently running - * operations may be canceled. The document processing is rescheduled as - * background work afterwards. - */ - public ContentAssistResult createProposalsWithUpdate(XtextWebDocumentAccess document, String deltaText, - int deltaOffset, int deltaReplaceLength, ITextRegion selection, int caretOffset, int proposalsLimit) - throws InvalidRequestException { - String[] stateIdWrapper = new String[1]; - ContentAssistContext[] contexts = document - .modify(new CancelableUnitOfWork() { - @Override - public ContentAssistContext[] exec(IXtextWebDocument it, CancelIndicator cancelIndicator) - throws Exception { - it.setDirty(true); - it.createNewStateId(); - stateIdWrapper[0] = it.getStateId(); - it.updateText(deltaText, deltaOffset, deltaReplaceLength); - return getContexts(it, selection, caretOffset); - } - }); - List contextsList = Arrays.asList(contexts); - return createProposals(contextsList, stateIdWrapper[0], proposalsLimit); - } - - public ContentAssistContext[] getContexts(IXtextWebDocument document, ITextRegion selection, int caretOffset) { - if (caretOffset > document.getText().length()) { - return new ContentAssistContext[] {}; - } - ContentAssistContextFactory contextFactory = contextFactoryProvider.get(); - contextFactory.setPool(executorService); - return contextFactory.create(document.getText(), selection, caretOffset, document.getResource()); - } - - /** - * Invoke the proposal provider and put the results into a - * {@link ContentAssistResult} object. - */ - protected ContentAssistResult createProposals(List contexts, String stateId, - int proposalsLimit) { - ContentAssistResult result = new ContentAssistResult(stateId); - if (!contexts.isEmpty()) { - Set> proposals = new HashSet>(); - IIdeContentProposalAcceptor acceptor = new IIdeContentProposalAcceptor() { - @Override - public void accept(ContentAssistEntry entry, int priority) { - if (entry != null) { - if (entry.getProposal() == null) { - throw new IllegalArgumentException("proposal must not be null."); - } - proposals.add(Pair.of(priority, entry)); - } - } - - @Override - public boolean canAcceptMoreProposals() { - return proposals.size() < proposalsLimit; - } - }; - proposalProvider.createProposals(contexts, acceptor); - List> sorted = IterableExtensions.sortWith(proposals, - (Pair p1, Pair p2) -> { - int prioResult = p2.getKey().compareTo(p1.getKey()); - if (prioResult != 0) { - return prioResult; - } - String s1 = p1.getValue().getLabel(); - if (s1 == null) { - s1 = p1.getValue().getProposal(); - } - String s2 = p2.getValue().getLabel(); - if (s2 == null) { - s2 = p2.getValue().getProposal(); - } - return s1.compareTo(s2); - }); - result.getEntries() - .addAll(Lists.transform(sorted, (Pair it) -> it.getValue())); - } - return result; - } - - public IdeContentProposalProvider getProposalProvider() { - return proposalProvider; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/formatting/FormattingResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/formatting/FormattingResult.java deleted file mode 100644 index 7c3765eac83..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/formatting/FormattingResult.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.formatting; - -import org.eclipse.xtext.util.TextRegion; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the formatting service. - */ -public class FormattingResult implements IServiceResult { - private final String stateId; - - private final String formattedText; - - private final TextRegion replaceRegion; - - public FormattingResult(String stateId, String formattedText, TextRegion replaceRegion) { - this.stateId = stateId; - this.formattedText = formattedText; - this.replaceRegion = replaceRegion; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((formattedText == null) ? 0 : formattedText.hashCode()); - result = prime * result + ((replaceRegion == null) ? 0 : replaceRegion.hashCode()); - result = prime * result + ((stateId == null) ? 0 : stateId.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - FormattingResult other = (FormattingResult) obj; - if (formattedText == null) { - if (other.formattedText != null) - return false; - } else if (!formattedText.equals(other.formattedText)) - return false; - if (replaceRegion == null) { - if (other.replaceRegion != null) - return false; - } else if (!replaceRegion.equals(other.replaceRegion)) - return false; - if (stateId == null) { - if (other.stateId != null) - return false; - } else if (!stateId.equals(other.stateId)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.skipNulls(); - b.add("stateId", this.stateId); - b.add("formattedText", this.formattedText); - b.add("replaceRegion", this.replaceRegion); - return b.toString(); - } - - public String getStateId() { - return stateId; - } - - public String getFormattedText() { - return formattedText; - } - - public TextRegion getReplaceRegion() { - return replaceRegion; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/formatting/FormattingService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/formatting/FormattingService.java deleted file mode 100644 index b86385b811d..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/formatting/FormattingService.java +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.formatting; - -import java.util.List; - -import org.eclipse.xtext.formatting.INodeModelFormatter; -import org.eclipse.xtext.formatting2.FormatterRequest; -import org.eclipse.xtext.formatting2.IFormatter2; -import org.eclipse.xtext.formatting2.regionaccess.ITextRegionAccess; -import org.eclipse.xtext.formatting2.regionaccess.ITextReplacement; -import org.eclipse.xtext.formatting2.regionaccess.TextRegionAccessBuilder; -import org.eclipse.xtext.formatting2.regionaccess.internal.TextSegment; -import org.eclipse.xtext.nodemodel.ICompositeNode; -import org.eclipse.xtext.parser.IParseResult; -import org.eclipse.xtext.preferences.ITypedPreferenceValues; -import org.eclipse.xtext.resource.XtextResource; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.ITextRegion; -import org.eclipse.xtext.util.TextRegion; -import org.eclipse.xtext.util.Wrapper; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; - -import com.google.common.collect.Lists; -import com.google.inject.Inject; -import com.google.inject.Provider; -import com.google.inject.Singleton; - -/** - * Service class for text formatting. - */ -@Singleton -public class FormattingService { - @Inject(optional = true) - private INodeModelFormatter formatter1; - - @Inject(optional = true) - private Provider formatter2Provider; - - @Inject - private Provider formatterRequestProvider; - - @Inject - private TextRegionAccessBuilder regionBuilder; - - /** - * Format the given document. This operation modifies the document content and - * returns the - */ - public FormattingResult format(XtextWebDocumentAccess document, ITextRegion selection, - ITypedPreferenceValues preferences) throws InvalidRequestException { - Wrapper textWrapper = new Wrapper(); - Wrapper regionWrapper = new Wrapper(); - CancelableUnitOfWork work = new CancelableUnitOfWork() { - @Override - public FormattingResult exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) - throws Exception { - if (formatter2Provider != null) { - textWrapper.set(format2(doc.getResource(), selection, preferences)); - if (selection != null) { - regionWrapper.set(new TextRegion(selection.getOffset(), selection.getLength())); - } - } else { - if (formatter1 != null) { - INodeModelFormatter.IFormattedRegion formattedRegion = format1(doc.getResource(), selection); - textWrapper.set(formattedRegion.getFormattedText()); - regionWrapper.set(new TextRegion(formattedRegion.getOffset(), formattedRegion.getLength())); - } else { - throw new IllegalStateException("No formatter is available in the language configuration."); - } - } - doc.setDirty(true); - doc.createNewStateId(); - return new FormattingResult(doc.getStateId(), textWrapper.get(), regionWrapper.get()); - } - }; - CancelableUnitOfWork asynchronousWork = new CancelableUnitOfWork() { - @Override - public Object exec(IXtextWebDocument it, CancelIndicator cancelIndicator) throws Exception { - if (regionWrapper.isEmpty()) { - it.setText(textWrapper.get()); - } else { - it.updateText(textWrapper.get(), regionWrapper.get().getOffset(), regionWrapper.get().getLength()); - } - return null; - } - }; - return document.modify(work, asynchronousWork); - } - - protected INodeModelFormatter.IFormattedRegion format1(XtextResource resource, ITextRegion selection) { - IParseResult parseResult = resource.getParseResult(); - if (parseResult == null) { - return null; - } - ICompositeNode rootNode = parseResult.getRootNode(); - ITextRegion region = selection; - if (region == null) { - region = new TextRegion(rootNode.getOffset(), rootNode.getLength()); - } - return formatter1.format(rootNode, region.getOffset(), region.getLength()); - } - - protected String format2(XtextResource resource, ITextRegion selection, ITypedPreferenceValues preferences) { - FormatterRequest request = formatterRequestProvider.get(); - request.setAllowIdentityEdits(false); - request.setFormatUndefinedHiddenRegionsOnly(false); - if (selection != null) { - request.setRegions(Lists.newArrayList(selection)); - } - if (preferences != null) { - request.setPreferences(preferences); - } - ITextRegionAccess regionAccess = regionBuilder.forNodeModel(resource).create(); - request.setTextRegionAccess(regionAccess); - IFormatter2 formatter2 = formatter2Provider.get(); - List replacements = formatter2.format(request); - if (selection != null) { - return regionAccess.getRewriter().renderToString( - new TextSegment(regionAccess, selection.getOffset(), selection.getLength()), replacements); - } else { - return regionAccess.getRewriter().renderToString(replacements); - } - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/DefaultContentTypeProvider.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/DefaultContentTypeProvider.java deleted file mode 100644 index ae6f6168e87..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/DefaultContentTypeProvider.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.generator; - -import java.net.URLConnection; - -/** - * The default content type provider uses {@link URLConnection#guessContentTypeFromName(String)} - * to determine content types. - */ -public class DefaultContentTypeProvider implements IContentTypeProvider { - @Override - public String getContentType(String fileName) { - if (fileName != null) { - return URLConnection.guessContentTypeFromName(fileName); - } - return null; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/GeneratorResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/GeneratorResult.java deleted file mode 100644 index 70de2f29046..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/GeneratorResult.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.generator; - -import org.eclipse.xtext.web.server.IUnwrappableServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the generator service. This object is usually not - * sent in JSON format, but the content itself is returned to the client. - */ -public class GeneratorResult implements IUnwrappableServiceResult { - private final String name; - - private final String contentType; - - private final String content; - - public GeneratorResult(String name, String contentType, String content) { - this.name = name; - this.contentType = contentType; - this.content = content; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((content == null) ? 0 : content.hashCode()); - result = prime * result + ((contentType == null) ? 0 : contentType.hashCode()); - result = prime * result + ((name == null) ? 0 : name.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - GeneratorResult other = (GeneratorResult) obj; - if (content == null) { - if (other.content != null) - return false; - } else if (!content.equals(other.content)) - return false; - if (contentType == null) { - if (other.contentType != null) - return false; - } else if (!contentType.equals(other.contentType)) - return false; - if (name == null) { - if (other.name != null) - return false; - } else if (!name.equals(other.name)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.skipNulls(); - b.add("name", this.name); - b.add("contentType", this.contentType); - b.add("content", this.content); - return b.toString(); - } - - public String getName() { - return name; - } - - public String getContentType() { - return contentType; - } - - public String getContent() { - return content; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/GeneratorService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/GeneratorService.java deleted file mode 100644 index efbe0905d17..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/GeneratorService.java +++ /dev/null @@ -1,181 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.generator; - -import java.util.ArrayList; -import java.util.List; -import java.util.Map.Entry; - -import org.eclipse.xtext.generator.GeneratorDelegate; -import org.eclipse.xtext.generator.IFileSystemAccess; -import org.eclipse.xtext.generator.InMemoryFileSystemAccess; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.model.AbstractCachedService; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -import com.google.inject.Inject; -import com.google.inject.Provider; -import com.google.inject.Singleton; - -/** - * Service class for code generation. The resulting documents are sent back to - * the client; if exactly one document is generated, the result should be - * unwrapped, i.e. the response body is the generated document. - * - *

- * Results of this service are cached in the session state. However, the service - * is not invoked automatically after a document change (in contrast to - * e.g. validation), but only after an explicit request. - *

- */ -@Singleton -public class GeneratorService extends AbstractCachedService { - /** - * This service result class is just a wrapper to store all generated documents. - */ - public static class GeneratedArtifacts implements IServiceResult { - private final List artifacts = new ArrayList<>(); - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((artifacts == null) ? 0 : artifacts.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - GeneratedArtifacts other = (GeneratedArtifacts) obj; - if (artifacts == null) { - if (other.artifacts != null) - return false; - } else if (!artifacts.equals(other.artifacts)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("artifacts", artifacts); - return b.toString(); - } - - public List getArtifacts() { - return artifacts; - } - } - - /** - * The default artifact name that is accessed when no specific artifact is - * requested. Value: "DEFAULT_OUTPUT/DEFAULT_ARTIFACT" - */ - public static final String DEFAULT_ARTIFACT = IFileSystemAccess.DEFAULT_OUTPUT + "/DEFAULT_ARTIFACT"; - - @Inject - private GeneratorDelegate generator; - - @Inject - private IContentTypeProvider contentTypeProvider; - - @Inject - private Provider fileSystemAccessProvider; - - /** - * Generate artifacts for the given document. The result can be fetched with - * {@link #getResult(XtextWebDocumentAccess)}. - */ - @Override - public GeneratedArtifacts compute(IXtextWebDocument doc, CancelIndicator cancelIndicator) { - InMemoryFileSystemAccess fileSystemAccess = fileSystemAccessProvider.get(); - generator.generate(doc.getResource(), fileSystemAccess, () -> cancelIndicator); - GeneratedArtifacts result = new GeneratedArtifacts(); - for (Entry e : fileSystemAccess.getTextFiles().entrySet()) { - String contentType = contentTypeProvider.getContentType(e.getKey()); - result.artifacts.add(new GeneratorResult(e.getKey(), contentType, e.getValue().toString())); - } - return result; - } - - /** - * Retrieve the generated artifact with given identifier. The identifier must - * match the name of one of the generator results; each name is created by - * concatenating the output configuration name and the file name (see - * {@link InMemoryFileSystemAccess#getFileName(String,String)}). If artifactId - * is null, {@link #DEFAULT_ARTIFACT} is used as identifier. If the requested - * artifact is in {@link IFileSystemAccess#DEFAULT_OUTPUT}, the output - * configuration prefix may be omitted. - */ - public GeneratorResult getArtifact(XtextWebDocumentAccess document, String artifactId) { - List artifacts = getResult(document).artifacts; - final String searchString; - if (artifactId != null) { - searchString = artifactId; - } else { - searchString = GeneratorService.DEFAULT_ARTIFACT; - } - for (GeneratorResult r : artifacts) { - if (searchString.equals(r.getName())) { - return r; - } - } - if (!searchString.startsWith(IFileSystemAccess.DEFAULT_OUTPUT)) { - String defaultSearchString = IFileSystemAccess.DEFAULT_OUTPUT + searchString; - for (GeneratorResult r : artifacts) { - if (defaultSearchString.equals(r.getName())) { - return r; - } - } - } - throw new InvalidRequestException.ResourceNotFoundException("The requested generator artifact was not found."); - } - - /** - * Retrieve the generated artifact with given identifier. If - * {@code includeContent} is false, only the metadata is included in the service - * result. - */ - public GeneratorResult getArtifact(XtextWebDocumentAccess document, String artifactId, boolean includeContent) { - GeneratorResult result = getArtifact(document, artifactId); - if (includeContent) { - return result; - } else { - return new GeneratorResult(result.getName(), result.getContentType(), null); - } - } - - /** - * Returns a {@link GeneratedArtifacts} result with or without content. If - * {@code includeContent} is false, only the metadata is included in the service - * result, which is useful to explore the generated artifacts. - */ - public GeneratedArtifacts getResult(XtextWebDocumentAccess document, boolean includeContent) { - if (includeContent) { - return getResult(document); - } else { - List artifacts = getResult(document).artifacts; - GeneratedArtifacts result = new GeneratedArtifacts(); - for (GeneratorResult r : artifacts) { - result.artifacts.add(new GeneratorResult(r.getName(), r.getContentType(), null)); - } - return result; - } - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/IContentTypeProvider.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/IContentTypeProvider.java deleted file mode 100644 index 474e4e54bc1..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/generator/IContentTypeProvider.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.generator; - -/** - * A content type provider is responsible for assigning content types to documents resulting - * from an {@link org.eclipse.xtext.generator.IGenerator} implementation. - */ -public interface IContentTypeProvider { - String getContentType(String fileName); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/hover/HoverResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/hover/HoverResult.java deleted file mode 100644 index 3b6b4ab2b3e..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/hover/HoverResult.java +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.hover; - -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the hover service. - */ -public class HoverResult implements IServiceResult { - private final String stateId; - - private final String title; - - private final String content; - - public HoverResult(String stateId) { - this.stateId = stateId; - this.title = null; - this.content = null; - } - - public HoverResult(String stateId, String title, String content) { - this.stateId = stateId; - this.title = title; - this.content = content; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((content == null) ? 0 : content.hashCode()); - result = prime * result + ((stateId == null) ? 0 : stateId.hashCode()); - result = prime * result + ((title == null) ? 0 : title.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - HoverResult other = (HoverResult) obj; - if (content == null) { - if (other.content != null) - return false; - } else if (!content.equals(other.content)) - return false; - if (stateId == null) { - if (other.stateId != null) - return false; - } else if (!stateId.equals(other.stateId)) - return false; - if (title == null) { - if (other.title != null) - return false; - } else if (!title.equals(other.title)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.skipNulls(); - b.add("stateId", this.stateId); - b.add("title", this.title); - b.add("content", this.content); - return b.toString(); - } - - public String getStateId() { - return stateId; - } - - public String getTitle() { - return title; - } - - public String getContent() { - return content; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/hover/HoverService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/hover/HoverService.java deleted file mode 100644 index 24146b7237f..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/hover/HoverService.java +++ /dev/null @@ -1,182 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.hover; - -import java.util.Arrays; -import java.util.Collection; -import java.util.List; -import java.util.Objects; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtend2.lib.StringConcatenation; -import org.eclipse.xtext.documentation.IEObjectDocumentationProvider; -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistContext; -import org.eclipse.xtext.ide.editor.contentassist.ContentAssistEntry; -import org.eclipse.xtext.ide.editor.contentassist.IIdeContentProposalAcceptor; -import org.eclipse.xtext.ide.labels.AlternativeImageDescription; -import org.eclipse.xtext.ide.labels.DecoratedImageDescription; -import org.eclipse.xtext.ide.labels.IImageDescription; -import org.eclipse.xtext.ide.labels.IImageDescriptionProvider; -import org.eclipse.xtext.ide.labels.INameLabelProvider; -import org.eclipse.xtext.ide.labels.SimpleImageDescription; -import org.eclipse.xtext.resource.IEObjectDescription; -import org.eclipse.xtext.service.OperationCanceledManager; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.ITextRegion; -import org.eclipse.xtext.util.Wrapper; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.contentassist.ContentAssistService; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.web.server.util.ElementAtOffsetUtil; -import org.eclipse.xtext.xbase.lib.IterableExtensions; - -import com.google.common.base.Joiner; -import com.google.common.collect.Iterables; -import com.google.common.collect.Lists; -import com.google.inject.Inject; -import com.google.inject.Singleton; - -/** - * Service class for mouse hover information. Such information can be created - * for an already existing model element or for an element proposed through - * content assist. - */ -@Singleton -public class HoverService { - @Inject - private ElementAtOffsetUtil elementAtOffsetUtil; - - @Inject - private IEObjectDocumentationProvider eObjectDocumentationProvider; - - @Inject - private IImageDescriptionProvider imageDescriptionProvider; - - @Inject - private INameLabelProvider nameLabelProvider; - - @Inject - private OperationCanceledManager operationCanceledManager; - - @Inject - private ContentAssistService contentAssistService; - - /** - * Compute a hover result at the given offset in the document. - */ - public HoverResult getHover(XtextWebDocumentAccess document, int offset) throws InvalidRequestException { - return document.readOnly(new CancelableUnitOfWork() { - @Override - public HoverResult exec(IXtextWebDocument it, CancelIndicator cancelIndicator) throws Exception { - EObject element = elementAtOffsetUtil.getElementAt(it.getResource(), offset); - return createHover(element, it.getStateId(), cancelIndicator); - } - }); - } - - /** - * Compute a hover result for a content assist proposal at the given offset. - */ - public HoverResult getHover(XtextWebDocumentAccess document, String proposal, ITextRegion selection, int offset) - throws InvalidRequestException { - return document.readOnly(new CancelableUnitOfWork() { - @Override - public HoverResult exec(IXtextWebDocument it, CancelIndicator cancelIndicator) throws Exception { - ContentAssistContext[] contexts = contentAssistService.getContexts(it, selection, offset); - Wrapper proposedElement = new Wrapper(); - Collection contextsList = Arrays.asList(contexts); - contentAssistService.getProposalProvider().createProposals(contextsList, - new IIdeContentProposalAcceptor() { - @Override - public void accept(ContentAssistEntry entry, int priority) { - operationCanceledManager.checkCanceled(cancelIndicator); - if (entry != null && entry.getSource() != null - && Objects.equals(entry.getProposal(), proposal)) { - proposedElement.set(entry.getSource()); - } - } - - @Override - public boolean canAcceptMoreProposals() { - return proposedElement.get() == null; - } - }); - return createHover(proposedElement.get(), it.getStateId(), cancelIndicator); - } - }); - } - - protected HoverResult createHover(Object element, String stateId, CancelIndicator cancelIndicator) { - String nameLabel = null; - if (element != null) { - nameLabel = nameLabelProvider.getNameLabel(element); - if (nameLabel != null) { - nameLabel = surroundWithDiv(nameLabel, "element-name"); - } - } - if (nameLabel != null) { - operationCanceledManager.checkCanceled(cancelIndicator); - String titleHtml = surroundWithDiv( - addIconDivs(imageDescriptionProvider.getImageDescription(element), nameLabel), "xtext-hover"); - operationCanceledManager.checkCanceled(cancelIndicator); - EObject eobject = null; - if (element instanceof EObject) { - eobject = ((EObject) element); - } else if (element instanceof IEObjectDescription) { - eobject = ((IEObjectDescription) element).getEObjectOrProxy(); - } - String bodyHtml = ""; - if (eobject != null && !eobject.eIsProxy()) { - String documentation = eObjectDocumentationProvider.getDocumentation(eobject); - if (documentation != null) { - bodyHtml = surroundWithDiv(documentation, "xtext-hover"); - } - } - return new HoverResult(stateId, titleHtml, bodyHtml); - } - return new HoverResult(stateId); - } - - protected String addIconDivs(IImageDescription it, String nameHtml) { - if (it instanceof SimpleImageDescription) { - return surroundWithDiv(nameHtml, ((SimpleImageDescription) it).getImageID() + "-icon"); - } else if (it instanceof AlternativeImageDescription) { - List strings = Lists - .transform(((AlternativeImageDescription) it).getImageIDs(), (String s) -> s + "-icon"); - return surroundWithDiv(nameHtml, - strings.toArray(new String[strings.size()])); - } else if (it instanceof DecoratedImageDescription) { - return IterableExtensions.fold( - Iterables.concat(((DecoratedImageDescription) it).getDecorators(), - Lists.newArrayList(((DecoratedImageDescription) it).getBaseImage())), - nameHtml, (String $0, IImageDescription $1) -> addIconDivs($1, $0)); - } - return null; - } - - protected String surroundWithDiv(String html, String... divClasses) { - StringConcatenation builder = new StringConcatenation(); - builder.append(" 0) { - builder.append(" class=\""); - builder.append(Joiner.on(" ").join(divClasses)); - builder.append("\""); - } - builder.append(">"); - builder.newLineIfNotEmpty(); - builder.append("\t"); - builder.append(html, "\t"); - builder.newLineIfNotEmpty(); - builder.append(""); - builder.newLine(); - return builder.toString(); - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/AbstractCachedService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/AbstractCachedService.java deleted file mode 100644 index dbd0ef70f40..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/AbstractCachedService.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.web.server.IServiceResult; - -/** - * Superclass for services that support caching their results in the document. Such a service is - * not necessarily precomputed automatically after a document change; this happens only if the - * service is registered in the {@link PrecomputedServiceRegistry}. - */ -public abstract class AbstractCachedService { - /** - * If a cached result is available, that instance is returned. Otherwise a new result - * is obtained with {@link #compute(IXtextWebDocument, CancelIndicator)}. - */ - public T getResult(XtextWebDocumentAccess access) { - return access.getCachedServiceResult(this, true); - } - - /** - * Perform the actual computations to obtain a result. This method should not be called - * directly from the service dispatcher; use {@link #getResult(XtextWebDocumentAccess)} instead - * in order to avoid duplicate computations. - */ - public abstract T compute(IXtextWebDocument doc, CancelIndicator cancelIndicator); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/DocumentStateResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/DocumentStateResult.java deleted file mode 100644 index 2ab03e412b3..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/DocumentStateResult.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object containing the current document state identifier. - */ -public class DocumentStateResult implements IServiceResult { - private final String stateId; - - public DocumentStateResult(String stateId) { - this.stateId = stateId; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((stateId == null) ? 0 : stateId.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - DocumentStateResult other = (DocumentStateResult) obj; - if (stateId == null) { - if (other.stateId != null) - return false; - } else if (!stateId.equals(other.stateId)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("stateId", this.stateId); - return b.toString(); - } - - public String getStateId() { - return stateId; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/DocumentSynchronizer.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/DocumentSynchronizer.java deleted file mode 100644 index e25ee18470b..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/DocumentSynchronizer.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import java.util.concurrent.Semaphore; -import java.util.concurrent.atomic.AtomicInteger; - -import org.eclipse.xtend.lib.annotations.Accessors; -import org.eclipse.xtext.service.OperationCanceledManager; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.xbase.lib.Exceptions; - -import com.google.inject.Inject; - -/** - * Synchronizer object used by the {@link XtextWebDocumentAccess} for managing - * multithreaded access to a document. It holds the cancelation status and - * locking information. The lock is not bound to a thread, so it is possible for - * one thread to call {@link #acquireLock(boolean)} and for another thread to - * call {@link #releaseLock()}. - */ -public class DocumentSynchronizer implements CancelIndicator { - private final Semaphore semaphore = new Semaphore(1, true); - - private final AtomicInteger waitingPriorityJobs = new AtomicInteger(); - - @Inject - private OperationCanceledManager operationCanceledManager; - - @Accessors - private volatile boolean canceled; - - public Boolean acquireLock(boolean priority) { - try { - if (priority) { - waitingPriorityJobs.incrementAndGet(); - canceled = true; - } - semaphore.acquire(); - if (priority) { - if (waitingPriorityJobs.decrementAndGet() == 0) { - return this.canceled = false; - } - return false; - } else { - this.operationCanceledManager.checkCanceled(this); - } - return false; - } catch (InterruptedException e) { - throw Exceptions.sneakyThrow(e); - } - } - - public void releaseLock() { - if (semaphore.availablePermits() != 0) { - throw new IllegalStateException("Cannot release a lock without acquiring it first."); - } - semaphore.release(); - } - - public boolean isCanceled() { - return canceled; - } - - public void setCanceled(boolean canceled) { - this.canceled = canceled; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IWebDocumentProvider.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IWebDocumentProvider.java deleted file mode 100644 index 0045eac818c..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IWebDocumentProvider.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import org.eclipse.xtext.web.server.IServiceContext; - -import com.google.inject.ImplementedBy; -import com.google.inject.Inject; -import com.google.inject.Provider; - -/** - * Provider for document instances. - */ -@ImplementedBy(IWebDocumentProvider.DefaultImpl.class) -public interface IWebDocumentProvider { - /** - * The default implementation creates one document synchronizer per session. If stateless - * mode is requested, each document gets its own synchronizer. - */ - class DefaultImpl implements IWebDocumentProvider { - @Inject - private Provider synchronizerProvider; - - @Override - public XtextWebDocument get(String resourceId, IServiceContext serviceContext) { - if (resourceId == null) { - return new XtextWebDocument(resourceId, synchronizerProvider.get()); - } else { - return new XtextWebDocument(resourceId, serviceContext.getSession().get(DocumentSynchronizer.class, () -> this.synchronizerProvider.get())); - } - } - } - - /** - * Creates and configures a document. The resourceId may be {@code null}, which means that - * the request should be processed in stateless mode. Fetching the session from the service - * context should be avoided in this case. - */ - XtextWebDocument get(String resourceId, IServiceContext serviceContext); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IWebResourceSetProvider.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IWebResourceSetProvider.java deleted file mode 100644 index aa8a593fd50..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IWebResourceSetProvider.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import com.google.inject.ImplementedBy; -import com.google.inject.Inject; -import com.google.inject.Provider; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.xtext.web.server.IServiceContext; - -/** - * Provider for resource set instances. - */ -@ImplementedBy(IWebResourceSetProvider.DefaultImpl.class) -public interface IWebResourceSetProvider { - /** - * The default implementation creates a new resource set for each resource. - */ - class DefaultImpl implements IWebResourceSetProvider { - @Inject - private Provider provider; - - @Override - public ResourceSet get(String resourceId, IServiceContext serviceContext) { - return provider.get(); - } - } - - /** - * Provides a resource set. The resourceId may be {@code null}, which means that the - * request should be processed in stateless mode. Fetching the session from the service - * context should be avoided in this case. - */ - ResourceSet get(String resourceId, IServiceContext serviceContext); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IXtextWebDocument.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IXtextWebDocument.java deleted file mode 100644 index 863605abd8a..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/IXtextWebDocument.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Copyright (c) 2015, 2023 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import org.eclipse.xtext.resource.XtextResource; - -/** - * Interface for accessing a document. Depending on the access type, some methods may not be supported. - */ -public interface IXtextWebDocument { - XtextResource getResource(); - - String getResourceId(); - - String getText(); - - String getStateId(); - - boolean isDirty(); - - void setText(String text); - - void createNewStateId(); - - void updateText(String text, int offset, int replaceLength); - - void setDirty(boolean dirty); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/PrecomputedServiceRegistry.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/PrecomputedServiceRegistry.java deleted file mode 100644 index 9825a71398e..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/PrecomputedServiceRegistry.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import java.util.Collections; -import java.util.Set; -import java.util.concurrent.CopyOnWriteArraySet; -import org.eclipse.xtext.web.server.IServiceResult; -import com.google.inject.Singleton; - -/** - * Precomputed services are able to store their results in the document, which - * can in turn be cached in the session store of the server. This concept can - * improve performance by - *
    - *
  • avoiding multiple computations of the same results and
  • - *
  • starting computations immediately after a document change, reducing wait - * time for the corresponding requests.
  • - *
- */ -@Singleton -public class PrecomputedServiceRegistry { - - private final Set> precomputedServices = new CopyOnWriteArraySet<>(); - - /** - * Register a service to be precomputed after each document change. - */ - public boolean addPrecomputedService(AbstractCachedService service) { - return precomputedServices.add(service); - } - - /** - * Remove a service from the registry. - */ - public boolean removePrecomputedService(AbstractCachedService service) { - return precomputedServices.remove(service); - } - - /** - * Return the registered services. These services should be invoked whenever the - * document is changed. - */ - public Iterable> getPrecomputedServices() { - return Collections.unmodifiableSet(precomputedServices); - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/UpdateDocumentService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/UpdateDocumentService.java deleted file mode 100644 index ee1e3c5581a..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/UpdateDocumentService.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.InvalidRequestException; - -import com.google.inject.Singleton; - -/** - * Service class for document updates. This service only makes sense with a - * stateful server, where the server-side document representation is updated - * after each modification. This can greatly improve response times compared to - * the stateless alternative, where the full text content is sent with each - * service request. - */ -@Singleton -public class UpdateDocumentService { - /** - * Update the state identifier and return it. A background process is started - * where the given text is assigned to the document and the services registered - * in {@link PrecomputedServiceRegistry} are invoked. - */ - public DocumentStateResult updateFullText(XtextWebDocumentAccess document, String fullText) - throws InvalidRequestException { - return document.modify(new CancelableUnitOfWork() { - @Override - public DocumentStateResult exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) throws Exception { - doc.setDirty(true); - doc.createNewStateId(); - return new DocumentStateResult(doc.getStateId()); - } - }, new CancelableUnitOfWork() { - @Override - public Object exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) throws Exception { - doc.setText(fullText); - return null; - } - }); - } - - /** - * Update the state identifier and return it. A background process is started - * where the given text change is applied to the document and the services - * registered in {@link PrecomputedServiceRegistry} are invoked. - */ - public DocumentStateResult updateDeltaText(XtextWebDocumentAccess document, String deltaText, int offset, - int replaceLength) throws InvalidRequestException { - return document.modify(new CancelableUnitOfWork() { - @Override - public DocumentStateResult exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) throws Exception { - doc.setDirty(true); - doc.createNewStateId(); - return new DocumentStateResult(doc.getStateId()); - } - }, new CancelableUnitOfWork() { - @Override - public Object exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) throws Exception { - if (offset <= doc.getText().length()) { - doc.updateText(deltaText, offset, replaceLength); - } - return null; - } - }); - } - - /** - * Return the current state identifier. If the services registered in - * {@link PrecomputedServiceRegistry} are not cached yet, they are invoked in a - * background process. - */ - public DocumentStateResult getStateId(XtextWebDocumentAccess document) throws InvalidRequestException { - return document.modify(new CancelableUnitOfWork() { - @Override - public DocumentStateResult exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) throws Exception { - return new DocumentStateResult(doc.getStateId()); - } - }); - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/XtextWebDocument.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/XtextWebDocument.java deleted file mode 100644 index ced1ca2bab5..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/XtextWebDocument.java +++ /dev/null @@ -1,166 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import java.io.IOException; -import java.util.HashMap; -import java.util.Map; - -import org.apache.log4j.Logger; -import org.eclipse.xtext.nodemodel.ICompositeNode; -import org.eclipse.xtext.parser.IParseResult; -import org.eclipse.xtext.resource.XtextResource; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.Exceptions; - -/** - * Container for an {@link XtextResource}. - */ -public class XtextWebDocument implements IXtextWebDocument { - - private static final Logger LOG = Logger.getLogger(XtextWebDocument.class); - - public XtextWebDocument(String resourceId, DocumentSynchronizer synchronizer) { - this.resourceId = resourceId; - this.synchronizer = synchronizer; - } - - private final String resourceId; - - private final DocumentSynchronizer synchronizer; - - private XtextResource resource; - - private String text; - - private boolean dirty; - - private final Map, IServiceResult> cachedServiceResults = new HashMap<>(); - - /** - * Clear any cached result of {@link AbstractCachedService}. This method is - * called whenever the text content of the resource is modified, but it may be - * necessary to clear the cached services in other cases, too. - */ - public void clearCachedServiceResults() { - cachedServiceResults.clear(); - } - - public T getCachedServiceResult(AbstractCachedService service, - CancelIndicator cancelIndicator, boolean logCacheMiss) { - IServiceResult ca = this.cachedServiceResults.get(service.getClass()); - if (ca != null) { - @SuppressWarnings("unchecked") - T result = (T) ca; - return result; - } else { - if (logCacheMiss) { - LOG.trace("Cache miss for " + service.getClass().getSimpleName()); - } - T result = service.compute(this, cancelIndicator); - cachedServiceResults.put(service.getClass(), result); - return result; - } - } - - @Override - public String toString() { - if (resourceId != null) { - return getClass().getSimpleName() + "(" + resourceId + ")"; - } - return super.toString(); - } - - public String setInput(XtextResource resource) { - clearCachedServiceResults(); - this.resource = resource; - return refreshText(); - } - - protected String refreshText() { - String newText = ""; - IParseResult parseResult = resource.getParseResult(); - if (parseResult != null) { - ICompositeNode rootNode = parseResult.getRootNode(); - if (rootNode != null) { - String text = rootNode.getText(); - if (text != null) { - newText = text; - } - } - } - return text = newText; - } - - @Override - public String getStateId() { - return Long.toString(resource.getModificationStamp(), 16); - } - - /** - * Replace the text contents of the contained resource with the given text. - */ - @Override - public void setText(String text) { - try { - clearCachedServiceResults(); - resource.reparse(text); - refreshText(); - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - /** - * Update a part of the text. - */ - @Override - public void updateText(String text, int offset, int replaceLength) { - clearCachedServiceResults(); - resource.update(offset, replaceLength, text); - refreshText(); - } - - /** - * A new state id should be created whenever the text content is changed. The - * client must know the correct state id in order to send proper requests. If a - * request with an outdated state id is received by the server, the request is - * rejected. - */ - @Override - public void createNewStateId() { - long newStateId = resource.getModificationStamp() + 1; - resource.setModificationStamp(newStateId); - } - - public String getResourceId() { - return resourceId; - } - - DocumentSynchronizer getSynchronizer() { - return synchronizer; - } - - public XtextResource getResource() { - return resource; - } - - public String getText() { - return text; - } - - public boolean isDirty() { - return dirty; - } - - public void setDirty(boolean dirty) { - this.dirty = dirty; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/XtextWebDocumentAccess.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/XtextWebDocumentAccess.java deleted file mode 100644 index 03f9c1741cd..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/model/XtextWebDocumentAccess.java +++ /dev/null @@ -1,294 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.model; - -import java.util.Objects; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.RejectedExecutionException; - -import org.apache.log4j.Logger; -import org.eclipse.xtext.EcoreUtil2; -import org.eclipse.xtext.ide.ExecutorServiceProvider; -import org.eclipse.xtext.resource.XtextResource; -import org.eclipse.xtext.service.OperationCanceledManager; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.InvalidRequestException.InvalidDocumentStateException; -import org.eclipse.xtext.xbase.lib.Exceptions; - -import com.google.inject.Inject; -import com.google.inject.Provider; - -/** - * Accessor class for documents. Use {@link #readOnly(CancelableUnitOfWork)} to - * read the content and properties of the document, and - * {@link #modify(CancelableUnitOfWork, CancelableUnitOfWork)} to modify them. - * If this accessor has been created with a required state identifier, it will - * check the actual state identifier of the document before granting access, and - * throw an exception if it does not match. - */ -public class XtextWebDocumentAccess { - - private static final Logger LOG = Logger.getLogger(XtextWebDocumentAccess.class); - - public static class Factory { - @Inject - private Provider provider; - - public XtextWebDocumentAccess create(XtextWebDocument document, String requiredStateId, - boolean skipAsyncWork) { - XtextWebDocumentAccess docAccess = provider.get(); - docAccess.init(document, requiredStateId, skipAsyncWork); - docAccess.checkStateId(); - return docAccess; - } - - public XtextWebDocumentAccess create(XtextWebDocument document, boolean skipAsyncWork) { - XtextWebDocumentAccess docAccess = provider.get(); - docAccess.init(document, null, skipAsyncWork); - return docAccess; - } - } - - protected static class ReadAccess implements IXtextWebDocument { - private final XtextWebDocument document; - - @Override - public void setText(String text) { - throw new UnsupportedOperationException("Cannot modify the document with read-only access."); - } - - @Override - public void updateText(String text, int offset, int replaceLength) { - throw new UnsupportedOperationException("Cannot modify the document with read-only access."); - } - - @Override - public void createNewStateId() { - throw new UnsupportedOperationException("Cannot modify the document with read-only access."); - } - - public ReadAccess(XtextWebDocument document) { - this.document = document; - } - - public XtextResource getResource() { - return document.getResource(); - } - - public String getResourceId() { - return document.getResourceId(); - } - - public String getStateId() { - return document.getStateId(); - } - - public String getText() { - return document.getText(); - } - - public boolean isDirty() { - return document.isDirty(); - } - - public void setDirty(boolean dirty) { - document.setDirty(dirty); - } - } - - private static final String DOCUMENT_LOCK_EXECUTOR = "withDocumentLock"; - - @Inject - private PrecomputedServiceRegistry preComputedServiceRegistry; - - @Inject - private OperationCanceledManager operationCanceledManager; - - /** - * Executor service for runnables that are run when the lock is already acquired - */ - private ExecutorService executorService1; - - /** - * A second executor service for runnables that aquire the document lock - * themselves - */ - private ExecutorService executorService2; - - private XtextWebDocument document; - - private String requiredStateId; - - private boolean skipAsyncWork; - - @Inject - protected void setExecutorServiceProvider(ExecutorServiceProvider executorServiceProvider) { - executorService1 = executorServiceProvider.get(XtextWebDocumentAccess.DOCUMENT_LOCK_EXECUTOR); - executorService2 = executorServiceProvider.get(); - } - - protected void init(XtextWebDocument document, String requiredStateId, boolean skipAsyncWork) { - this.document = document; - this.requiredStateId = requiredStateId; - this.skipAsyncWork = skipAsyncWork; - } - - protected void checkStateId() throws InvalidRequestException.InvalidDocumentStateException { - if (requiredStateId != null && !Objects.equals(requiredStateId, document.getStateId())) { - throw new InvalidRequestException.InvalidDocumentStateException( - "The given state id does not match the current state."); - } - } - - /** - * Execute the given work unit with read-only access and return its result. - */ - public T readOnly(CancelableUnitOfWork work) { - return doAccess(work, false, false, null); - } - - /** - * Execute the given work unit with read-only access and return its result. The - * work unit is handled with higher priority, i.e. currently running work units - * are canceled if they support cancellation. - */ - public T priorityReadOnly(CancelableUnitOfWork work) { - return doAccess(work, true, false, null); - } - - /** - * Execute the given work unit with read and write access and return its result. - * The work unit is handled with higher priority, i.e. currently running work - * units are canceled if they support cancellation. The second work unit - * {@code asynchronousWork} is executed in a separate thread after the first one - * has finished. It can be used for background work that should be applied to - * the document, but is not relevant for the current service request. - */ - public T modify(CancelableUnitOfWork work, - CancelableUnitOfWork asynchronousWork) { - return doAccess(work, true, true, asynchronousWork); - } - - /** - * Execute the given work unit with read and write access and return its result. - * The work unit is handled with higher priority, i.e. currently running work - * units are canceled if they support cancellation. - */ - public T modify(CancelableUnitOfWork work) { - return doAccess(work, true, true, null); - } - - protected T doAccess(CancelableUnitOfWork synchronousWork, - boolean priority, boolean modify, CancelableUnitOfWork asynchronousWork) { - try { - DocumentSynchronizer synchronizer = document.getSynchronizer(); - final IXtextWebDocument documentAccess; - if (modify) { - documentAccess = document; - } else { - documentAccess = createReadAccess(document); - } - boolean currentThreadOwnsLock = true; - T result = null; - try { - synchronizer.acquireLock(priority); - checkStateId(); - synchronousWork.setCancelIndicator(synchronizer); - result = synchronousWork.exec(documentAccess); - requiredStateId = document.getStateId(); - if (!skipAsyncWork && priority && documentAccess != null && !synchronizer.isCanceled() - && !Thread.currentThread().isInterrupted()) { - executorService1.submit(new Runnable() { - public void run() { - try { - if (asynchronousWork != null) { - asynchronousWork.setCancelIndicator(synchronizer); - asynchronousWork.exec(documentAccess); - } - EcoreUtil2.resolveLazyCrossReferences(documentAccess.getResource(), synchronizer); - } catch (VirtualMachineError error) { - throw error; - } catch (Throwable throwable) { - if (operationCanceledManager.isOperationCanceledException(throwable)) { - LOG.trace("Canceling background work."); - } else { - LOG.error("Error during background work.", throwable); - } - } finally { - synchronizer.releaseLock(); - } - } - }); - currentThreadOwnsLock = false; - executorService2.submit(new Runnable() { - public void run() { - try { - performPrecomputation(synchronizer); - } catch (VirtualMachineError error) { - throw error; - } catch (InvalidDocumentStateException idse) { - // The document has changed since we executed our synchronous work - stop - // precomputation - return; - } catch (Throwable throwable) { - if (operationCanceledManager.isOperationCanceledException(throwable)) { - LOG.trace("Canceling precomputation."); - } else { - LOG.error("Error during precomputation.", throwable); - } - } - } - }); - } - } catch (RejectedExecutionException ree) { - XtextWebDocumentAccess.LOG.error("Failed to start background work.", ree); - } finally { - if (currentThreadOwnsLock) { - synchronizer.releaseLock(); - } - } - return result; - } catch (Exception e) { - throw Exceptions.sneakyThrow(e); - } - } - - protected void performPrecomputation(CancelIndicator cancelIndicator) { - for (AbstractCachedService service : preComputedServiceRegistry - .getPrecomputedServices()) { - operationCanceledManager.checkCanceled(cancelIndicator); - getCachedServiceResult(service, false); - } - } - - protected T getCachedServiceResult(AbstractCachedService service, - boolean logCacheMiss) { - return readOnly(new CancelableUnitOfWork() { - @Override - public T exec(IXtextWebDocument d, CancelIndicator cancelIndicator) throws Exception { - if (document.getResourceId() != null) { - return document.getCachedServiceResult(service, cancelIndicator, logCacheMiss); - } else { - return service.compute(document, cancelIndicator); - } - } - }); - } - - /** - * @since 2.11 - */ - protected IXtextWebDocument createReadAccess(XtextWebDocument document) { - return new XtextWebDocumentAccess.ReadAccess(document); - } - -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/occurrences/OccurrencesResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/occurrences/OccurrencesResult.java deleted file mode 100644 index b40e5ef746e..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/occurrences/OccurrencesResult.java +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.occurrences; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.xtext.util.TextRegion; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the occurrences service. - */ -public class OccurrencesResult implements IServiceResult { - private final String stateId; - - private final List writeRegions = new ArrayList<>(); - - private final List readRegions = new ArrayList<>(); - - public OccurrencesResult(String stateId) { - this.stateId = stateId; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((readRegions == null) ? 0 : readRegions.hashCode()); - result = prime * result + ((stateId == null) ? 0 : stateId.hashCode()); - result = prime * result + ((writeRegions == null) ? 0 : writeRegions.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - OccurrencesResult other = (OccurrencesResult) obj; - if (readRegions == null) { - if (other.readRegions != null) - return false; - } else if (!readRegions.equals(other.readRegions)) - return false; - if (stateId == null) { - if (other.stateId != null) - return false; - } else if (!stateId.equals(other.stateId)) - return false; - if (writeRegions == null) { - if (other.writeRegions != null) - return false; - } else if (!writeRegions.equals(other.writeRegions)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.skipNulls(); - b.add("stateId", this.stateId); - b.add("writeRegions", this.writeRegions); - b.add("readRegions", this.readRegions); - return b.toString(); - } - - public String getStateId() { - return stateId; - } - - public List getWriteRegions() { - return writeRegions; - } - - public List getReadRegions() { - return readRegions; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/occurrences/OccurrencesService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/occurrences/OccurrencesService.java deleted file mode 100644 index dc0a9635fe3..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/occurrences/OccurrencesService.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.occurrences; - -import java.util.Objects; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.xtext.EcoreUtil2; -import org.eclipse.xtext.findReferences.IReferenceFinder; -import org.eclipse.xtext.findReferences.TargetURIs; -import org.eclipse.xtext.resource.ILocationInFileProvider; -import org.eclipse.xtext.resource.IReferenceDescription; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.ITextRegion; -import org.eclipse.xtext.util.ITextRegionWithLineInformation; -import org.eclipse.xtext.util.TextRegion; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.web.server.util.CancelIndicatorProgressMonitor; -import org.eclipse.xtext.web.server.util.ElementAtOffsetUtil; - -import com.google.inject.Inject; -import com.google.inject.Provider; -import com.google.inject.Singleton; - -/** - * Service class for finding occurrences. - */ -@Singleton -public class OccurrencesService { - @Inject - private ElementAtOffsetUtil elementAtOffsetUtil; - - @Inject - private ILocationInFileProvider locationInFileProvider; - - @Inject - private Provider targetURIsProvider; - - @Inject - private IReferenceFinder referenceFinder; - - /** - * Find occurrences of the element at the given offset. - */ - public OccurrencesResult findOccurrences(XtextWebDocumentAccess document, int offset) { - return document.readOnly(new CancelableUnitOfWork() { - @Override - public OccurrencesResult exec(IXtextWebDocument doc, CancelIndicator cancelIndicator) throws Exception { - EObject element = elementAtOffsetUtil.getElementAt(doc.getResource(), offset); - OccurrencesResult occurrencesResult = new OccurrencesResult(doc.getStateId()); - if (element != null && filter(element)) { - URI elementURI = EcoreUtil2.getPlatformResourceOrNormalizedURI(element); - TargetURIs targetURIs = targetURIsProvider.get(); - targetURIs.addURI(elementURI); - IReferenceFinder.Acceptor acceptor = new IReferenceFinder.Acceptor() { - @Override - public void accept(EObject source, URI sourceURI, EReference eReference, int index, - EObject targetOrProxy, URI targetURI) { - ITextRegion region = locationInFileProvider.getSignificantTextRegion(source, eReference, - index); - occurrencesResult.getReadRegions() - .add(new TextRegion(region.getOffset(), region.getLength())); - } - - @Override - public void accept(IReferenceDescription description) { - } - }; - referenceFinder.findReferences(targetURIs, doc.getResource(), acceptor, - new CancelIndicatorProgressMonitor(cancelIndicator)); - if (Objects.equals(element.eResource(), doc.getResource())) { - ITextRegion definitionRegion = locationInFileProvider.getSignificantTextRegion(element); - if (definitionRegion != null - && definitionRegion != ITextRegionWithLineInformation.EMPTY_REGION) { - occurrencesResult.getWriteRegions() - .add(new TextRegion(definitionRegion.getOffset(), definitionRegion.getLength())); - } - } - } - return occurrencesResult; - } - }); - } - - protected boolean filter(EObject element) { - return element.eContainer() != null; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/FileResourceHandler.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/FileResourceHandler.java deleted file mode 100644 index 0bffdd5779e..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/FileResourceHandler.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.persistence; - -import java.io.IOException; -import java.io.OutputStreamWriter; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.emf.common.util.WrappedException; -import org.eclipse.emf.ecore.resource.ResourceSet; -import org.eclipse.xtext.parser.IEncodingProvider; -import org.eclipse.xtext.resource.XtextResource; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.model.IWebDocumentProvider; -import org.eclipse.xtext.web.server.model.IWebResourceSetProvider; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocument; -import org.eclipse.xtext.xbase.lib.Exceptions; - -import com.google.inject.Inject; - -/** - * Resource handler that reads and writes files. The file paths are given by an - * implementation of {@link IResourceBaseProvider}. - */ -public class FileResourceHandler implements IServerResourceHandler { - @Inject - private IResourceBaseProvider resourceBaseProvider; - - @Inject - private IWebResourceSetProvider resourceSetProvider; - - @Inject - private IWebDocumentProvider documentProvider; - - @Inject - private IEncodingProvider encodingProvider; - - @Override - public XtextWebDocument get(String resourceId, IServiceContext serviceContext) throws IOException { - try { - URI uri = resourceBaseProvider.getFileURI(resourceId); - if (uri == null) { - throw new IOException("The requested resource does not exist."); - } - ResourceSet resourceSet = resourceSetProvider.get(resourceId, serviceContext); - XtextResource resource = (XtextResource) resourceSet.getResource(uri, true); - XtextWebDocument document = documentProvider.get(resourceId, serviceContext); - document.setInput(resource); - return document; - } catch (WrappedException exception) { - throw Exceptions.sneakyThrow(exception.getCause()); - } - } - - @Override - public void put(IXtextWebDocument document, IServiceContext serviceContext) throws IOException { - try { - URI uri = resourceBaseProvider.getFileURI(document.getResourceId()); - try (OutputStreamWriter writer = new OutputStreamWriter( - document.getResource().getResourceSet().getURIConverter().createOutputStream(uri), - encodingProvider.getEncoding(uri))) { - writer.write(document.getText()); - } catch (WrappedException exception) { - throw exception.getCause(); - } - } catch (Throwable e) { - throw Exceptions.sneakyThrow(e); - } - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/IResourceBaseProvider.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/IResourceBaseProvider.java deleted file mode 100644 index fcb13f8f614..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/IResourceBaseProvider.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.persistence; - -import org.eclipse.emf.common.util.URI; - -/** - * Translates resource identifiers into file URIs that can be used to load and save files. - */ -public interface IResourceBaseProvider { - URI getFileURI(String resourceId); -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/IServerResourceHandler.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/IServerResourceHandler.java deleted file mode 100644 index ce09a325c00..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/IServerResourceHandler.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.persistence; - -import com.google.inject.ImplementedBy; -import java.io.IOException; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocument; - -/** - * Interface for get and put operations on documents. Implementations can - * use arbitrary persistence technology for performing these operations. - */ -@ImplementedBy(IServerResourceHandler.NullImpl.class) -public interface IServerResourceHandler { - class NullImpl implements IServerResourceHandler { - @Override - public XtextWebDocument get(String resourceId, IServiceContext serviceContext) throws IOException { - throw new IOException("This server does not support resource handling."); - } - - @Override - public void put(IXtextWebDocument document, IServiceContext serviceContext) throws IOException { - throw new IOException("This server does not support resource handling."); - } - } - - XtextWebDocument get(String resourceId, IServiceContext serviceContext) throws IOException; - - void put(IXtextWebDocument document, IServiceContext serviceContext) throws IOException; -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourceBaseProviderImpl.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourceBaseProviderImpl.java deleted file mode 100644 index 9ae1edba9ba..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourceBaseProviderImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.persistence; - -import java.io.File; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.xtext.web.server.InvalidRequestException; - -/** - * Default resource base provider that assumes all resource identifiers are - * relative paths inside a certain resource base path, which has to be given - * when creating this provider. - */ -public class ResourceBaseProviderImpl implements IResourceBaseProvider { - private final String resourceBase; - - public ResourceBaseProviderImpl(String resourceBase) { - this.resourceBase = resourceBase; - } - - @Override - public URI getFileURI(String resourceId) { - if (resourceId.contains("..")) { - throw new InvalidRequestException.InvalidParametersException("Invalid resource path."); - } - if (resourceBase.endsWith(File.separator)) { - return URI.createFileURI(this.resourceBase + resourceId); - } else { - return URI.createFileURI(this.resourceBase + File.separator + resourceId); - } - } - -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourceContentResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourceContentResult.java deleted file mode 100644 index 3f878e3c800..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourceContentResult.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.persistence; - -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by load and revert services. - */ -public class ResourceContentResult implements IServiceResult { - private final String fullText; - - private final String stateId; - - private final boolean dirty; - - public ResourceContentResult(String fullText, String stateId, boolean dirty) { - this.fullText = fullText; - this.stateId = stateId; - this.dirty = dirty; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + (dirty ? 1231 : 1237); - result = prime * result + ((fullText == null) ? 0 : fullText.hashCode()); - result = prime * result + ((stateId == null) ? 0 : stateId.hashCode()); - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ResourceContentResult other = (ResourceContentResult) obj; - if (dirty != other.dirty) - return false; - if (fullText == null) { - if (other.fullText != null) - return false; - } else if (!fullText.equals(other.fullText)) - return false; - if (stateId == null) { - if (other.stateId != null) - return false; - } else if (!stateId.equals(other.stateId)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("fullText", this.fullText); - b.add("stateId", this.stateId); - b.add("dirty", this.dirty); - return b.toString(); - } - - public String getFullText() { - return fullText; - } - - public String getStateId() { - return stateId; - } - - public boolean isDirty() { - return dirty; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourcePersistenceService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourcePersistenceService.java deleted file mode 100644 index c2602c37357..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/persistence/ResourcePersistenceService.java +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.persistence; - -import java.io.IOException; - -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.util.concurrent.CancelableUnitOfWork; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.InvalidRequestException; -import org.eclipse.xtext.web.server.model.DocumentStateResult; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.xbase.lib.Pair; - -import com.google.inject.Inject; -import com.google.inject.Singleton; - -/** - * Service class for loading, saving, and reverting documents. The actual work - * is done by an implementation of {@link IServerResourceHandler}, so if you - * want to use this service you must provide such an implementation in the Guice - * bindings. - */ -@Singleton -public class ResourcePersistenceService { - @Inject - private XtextWebDocumentAccess.Factory documentAccessFactory; - - /** - * Load the content of a document. - */ - public ResourceContentResult load(String resourceId, IServerResourceHandler resourceHandler, - IServiceContext serviceContext) throws InvalidRequestException { - XtextWebDocument document = serviceContext.getSession().get(Pair.of(XtextWebDocument.class, resourceId), () -> { - try { - return resourceHandler.get(resourceId, serviceContext); - } catch (IOException ioe) { - throw new InvalidRequestException.ResourceNotFoundException("The requested resource was not found.", - ioe); - } - }); - return documentAccessFactory.create(document, false) - .readOnly(new CancelableUnitOfWork() { - @Override - public ResourceContentResult exec(IXtextWebDocument it, CancelIndicator cancelIndicator) - throws Exception { - return new ResourceContentResult(it.getText(), it.getStateId(), it.isDirty()); - } - }); - } - - /** - * Revert the content of a document to the last saved state. - */ - public ResourceContentResult revert(String resourceId, IServerResourceHandler resourceHandler, - IServiceContext serviceContext) throws InvalidRequestException { - try { - XtextWebDocument document = resourceHandler.get(resourceId, serviceContext); - serviceContext.getSession().put(Pair.of(XtextWebDocument.class, resourceId), document); - return new ResourceContentResult(document.getText(), document.getStateId(), false); - } catch (IOException ioe) { - throw new InvalidRequestException.ResourceNotFoundException("The requested resource was not found.", ioe); - } - } - - /** - * Save the content of a document. - */ - public DocumentStateResult save(XtextWebDocumentAccess document, IServerResourceHandler resourceHandler, - IServiceContext serviceContext) throws InvalidRequestException { - return document.readOnly(new CancelableUnitOfWork() { - @Override - public DocumentStateResult exec(IXtextWebDocument it, CancelIndicator cancelIndicator) throws Exception { - try { - resourceHandler.put(it, serviceContext); - it.setDirty(false); - } catch (IOException ioe) { - throw new InvalidRequestException.ResourceNotFoundException(ioe.getMessage(), ioe); - } - return new DocumentStateResult(it.getStateId()); - } - }); - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/syntaxcoloring/HighlightingResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/syntaxcoloring/HighlightingResult.java deleted file mode 100644 index 5ed2e90f44b..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/syntaxcoloring/HighlightingResult.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.syntaxcoloring; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the highlighting service. - */ -public class HighlightingResult implements IServiceResult { - public static class Region { - private final int offset; - - private final int length; - - private final String[] styleClasses; - - public Region(int offset, int length, String[] styleClasses) { - this.offset = offset; - this.length = length; - this.styleClasses = styleClasses; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + this.offset; - result = prime * result + this.length; - return prime * result + ((this.styleClasses == null) ? 0 : Arrays.deepHashCode(this.styleClasses)); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - HighlightingResult.Region other = (HighlightingResult.Region) obj; - if (other.offset != this.offset) - return false; - if (other.length != this.length) - return false; - if (this.styleClasses == null) { - if (other.styleClasses != null) - return false; - } else if (!Arrays.deepEquals(this.styleClasses, other.styleClasses)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.singleLine(); - b.add("offset", this.offset); - b.add("length", this.length); - b.add("styleClasses", this.styleClasses); - return b.toString(); - } - - public int getOffset() { - return offset; - } - - public int getLength() { - return length; - } - - public String[] getStyleClasses() { - return styleClasses; - } - } - - private final List regions = new ArrayList<>(); - - @Override - public int hashCode() { - return 31 * 1 + ((this.regions == null) ? 0 : this.regions.hashCode()); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - HighlightingResult other = (HighlightingResult) obj; - if (this.regions == null) { - if (other.regions != null) - return false; - } else if (!this.regions.equals(other.regions)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("regions", this.regions); - return b.toString(); - } - - public List getRegions() { - return regions; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/syntaxcoloring/HighlightingService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/syntaxcoloring/HighlightingService.java deleted file mode 100644 index 6ae300a0449..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/syntaxcoloring/HighlightingService.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.syntaxcoloring; - -import com.google.inject.Inject; -import com.google.inject.Singleton; -import java.util.List; -import org.eclipse.xtext.ide.editor.syntaxcoloring.IHighlightedPositionAcceptor; -import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.web.server.model.AbstractCachedService; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; - -/** - * Service class for semantic highlighting. The syntactic highlighting is - * assumed to be already computed in the client, since that can usually be done - * with simple regular expressions in JavaScript. - */ -@Singleton -public class HighlightingService extends AbstractCachedService { - @Inject - private ISemanticHighlightingCalculator highlightingCalculator; - - /** - * Compute the highlighting result for the given document. This method should - * not be called directly from the service dispatcher; use - * {@link #getResult(XtextWebDocumentAccess)} instead in order to avoid - * duplicate computations. - */ - @Override - public HighlightingResult compute(IXtextWebDocument doc, CancelIndicator cancelIndicator) { - HighlightingResult result = new HighlightingResult(); - IHighlightedPositionAcceptor acceptor = createHighlightedPositionAcceptor(result.getRegions()); - highlightingCalculator.provideHighlightingFor(doc.getResource(), acceptor, cancelIndicator); - return result; - } - - protected IHighlightedPositionAcceptor createHighlightedPositionAcceptor( - List positions) { - return (int offset, int length, String... ids) -> { - HighlightingResult.Region region = new HighlightingResult.Region(offset, length, ids); - positions.add(region); - }; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/util/CancelIndicatorProgressMonitor.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/util/CancelIndicatorProgressMonitor.java deleted file mode 100644 index e85b8ce7af1..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/util/CancelIndicatorProgressMonitor.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.util; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor; -import org.eclipse.xtext.util.CancelIndicator; - -@FinalFieldsConstructor -public class CancelIndicatorProgressMonitor implements IProgressMonitor { - private final CancelIndicator delegate; - - private boolean isCanceled; - - @Override - public boolean isCanceled() { - return isCanceled || this.delegate.isCanceled(); - } - - @Override - public void setCanceled(boolean value) { - this.isCanceled = value; - } - - @Override - public void beginTask(String name, int totalWork) { - } - - @Override - public void setTaskName(String name) { - } - - @Override - public void subTask(String name) { - } - - @Override - public void internalWorked(double work) { - } - - @Override - public void worked(int work) { - } - - @Override - public void done() { - } - - public CancelIndicatorProgressMonitor(CancelIndicator delegate) { - this.delegate = delegate; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/util/ElementAtOffsetUtil.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/util/ElementAtOffsetUtil.java deleted file mode 100644 index bd585e5d7d2..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/util/ElementAtOffsetUtil.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.util; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.resource.EObjectAtOffsetHelper; -import org.eclipse.xtext.resource.ILocationInFileProvider; -import org.eclipse.xtext.resource.XtextResource; -import org.eclipse.xtext.util.ITextRegion; - -import com.google.inject.Inject; - -public class ElementAtOffsetUtil { - @Inject - private EObjectAtOffsetHelper eObjectAtOffsetHelper; - - @Inject - private ILocationInFileProvider locationInFileProvider; - - public EObject getElementAt(XtextResource resource, int offset) { - EObject crossLinkedEObject = eObjectAtOffsetHelper.resolveCrossReferencedElementAt(resource, offset); - if (crossLinkedEObject != null) { - return crossLinkedEObject; - } else { - EObject containedEObject = eObjectAtOffsetHelper.resolveContainedElementAt(resource, offset); - if (containedEObject != null) { - ITextRegion nameRegion = locationInFileProvider.getSignificantTextRegion(containedEObject); - if (nameRegion.contains(offset)) { - return containedEObject; - } - } - } - return null; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/validation/ValidationResult.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/validation/ValidationResult.java deleted file mode 100644 index 1ffb7c80ffe..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/validation/ValidationResult.java +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.validation; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.xbase.lib.util.ToStringBuilder; - -/** - * Result object returned by the validation service. - */ -public class ValidationResult implements IServiceResult { - public static class Issue { - private final String description; - - private final String severity; - - /** - * One based, the first line has the number 1. - */ - private final Integer line; - - /** - * One based, the first column in a line has the number 1. - */ - private final Integer column; - - /** - * Zero based, the first char in a document has the offset 0. - */ - private final Integer offset; - - private final Integer length; - - public Issue(String description, String severity, Integer line, Integer column, Integer offset, - Integer length) { - this.description = description; - this.severity = severity; - this.line = line; - this.column = column; - this.offset = offset; - this.length = length; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((this.description == null) ? 0 : this.description.hashCode()); - result = prime * result + ((this.severity == null) ? 0 : this.severity.hashCode()); - result = prime * result + ((this.line == null) ? 0 : this.line.hashCode()); - result = prime * result + ((this.column == null) ? 0 : this.column.hashCode()); - result = prime * result + ((this.offset == null) ? 0 : this.offset.hashCode()); - return prime * result + ((this.length == null) ? 0 : this.length.hashCode()); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ValidationResult.Issue other = (ValidationResult.Issue) obj; - if (this.description == null) { - if (other.description != null) - return false; - } else if (!this.description.equals(other.description)) - return false; - if (this.severity == null) { - if (other.severity != null) - return false; - } else if (!this.severity.equals(other.severity)) - return false; - if (this.line == null) { - if (other.line != null) - return false; - } else if (!this.line.equals(other.line)) - return false; - if (this.column == null) { - if (other.column != null) - return false; - } else if (!this.column.equals(other.column)) - return false; - if (this.offset == null) { - if (other.offset != null) - return false; - } else if (!this.offset.equals(other.offset)) - return false; - if (this.length == null) { - if (other.length != null) - return false; - } else if (!this.length.equals(other.length)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.skipNulls(); - b.add("description", this.description); - b.add("severity", this.severity); - b.add("line", this.line); - b.add("column", this.column); - b.add("offset", this.offset); - b.add("length", this.length); - return b.toString(); - } - - public String getDescription() { - return description; - } - - public String getSeverity() { - return severity; - } - - public Integer getLine() { - return line; - } - - public Integer getColumn() { - return column; - } - - public Integer getOffset() { - return offset; - } - - public Integer getLength() { - return length; - } - } - - private final List issues = new ArrayList<>(); - - @Override - public int hashCode() { - return 31 * 1 + ((this.issues == null) ? 0 : this.issues.hashCode()); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - ValidationResult other = (ValidationResult) obj; - if (this.issues == null) { - if (other.issues != null) - return false; - } else if (!this.issues.equals(other.issues)) - return false; - return true; - } - - @Override - public String toString() { - ToStringBuilder b = new ToStringBuilder(this); - b.add("issues", this.issues); - return b.toString(); - } - - public List getIssues() { - return issues; - } -} diff --git a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/validation/ValidationService.java b/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/validation/ValidationService.java deleted file mode 100644 index 01035bb97cb..00000000000 --- a/org.eclipse.xtext.web/src/main/java/org/eclipse/xtext/web/server/validation/ValidationService.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.validation; - -import java.util.List; - -import org.eclipse.xtext.diagnostics.Severity; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.validation.CheckMode; -import org.eclipse.xtext.validation.IResourceValidator; -import org.eclipse.xtext.validation.Issue; -import org.eclipse.xtext.web.server.model.AbstractCachedService; -import org.eclipse.xtext.web.server.model.IXtextWebDocument; -import org.eclipse.xtext.web.server.model.XtextWebDocumentAccess; -import org.eclipse.xtext.xbase.lib.IterableExtensions; - -import com.google.inject.Inject; -import com.google.inject.Singleton; - -/** - * Service class for model validation. - */ -@Singleton -public class ValidationService extends AbstractCachedService { - @Inject - private IResourceValidator resourceValidator; - - /** - * Compute the validation result for the given document. This method should not - * be called directly from the service dispatcher; use - * {@link #getResult(XtextWebDocumentAccess)} instead in order to avoid - * duplicate computations. - */ - @Override - public ValidationResult compute(IXtextWebDocument it, CancelIndicator cancelIndicator) { - List issues = resourceValidator.validate(it.getResource(), CheckMode.ALL, cancelIndicator); - ValidationResult result = new ValidationResult(); - IterableExtensions.filter(issues, i -> !Severity.IGNORE.equals(i.getSeverity())).forEach(issue -> { - result.getIssues().add(new ValidationResult.Issue(issue.getMessage(), translate(issue.getSeverity()), - issue.getLineNumber(), issue.getColumn(), issue.getOffset(), issue.getLength())); - }); - return result; - } - - protected String translate(Severity severity) { - if (severity != null) { - switch (severity) { - case WARNING: - return "warning"; - case ERROR: - return "error"; - case INFO: - return "info"; - default: - return "ignore"; - } - } else { - return "ignore"; - } - } -} diff --git a/org.eclipse.xtext.web/src/main/js/requirejs-ace-config.js b/org.eclipse.xtext.web/src/main/js/requirejs-ace-config.js deleted file mode 100644 index 2be5b879211..00000000000 --- a/org.eclipse.xtext.web/src/main/js/requirejs-ace-config.js +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -({ - baseUrl: ".", - name: "xtext/xtext-ace", - paths: { - "jquery": "empty:", - "ace/ace": "empty:", - "ace/range": "empty:", - "ace/ext/language_tools": "empty:" - }, - exclude: [ "jquery", "ace/range", "ace/ext/language_tools" ] -}) \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/requirejs-codemirror-config.js b/org.eclipse.xtext.web/src/main/js/requirejs-codemirror-config.js deleted file mode 100644 index 7829510160f..00000000000 --- a/org.eclipse.xtext.web/src/main/js/requirejs-codemirror-config.js +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -({ - baseUrl: ".", - name: "xtext/xtext-codemirror", - paths: { - "jquery": "empty:", - "codemirror": "empty:", - "codemirror/addon/hint/show-hint": "empty:" - }, - exclude: [ "jquery", "codemirror", "codemirror/addon/hint/show-hint" ] -}) \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/requirejs-orion-config.js b/org.eclipse.xtext.web/src/main/js/requirejs-orion-config.js deleted file mode 100644 index 89d25cb58c6..00000000000 --- a/org.eclipse.xtext.web/src/main/js/requirejs-orion-config.js +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -({ - baseUrl: ".", - name: "xtext/xtext-orion", - paths: { - "jquery": "empty:", - "orion/Deferred": "empty:", - "orion/codeEdit": "empty:", - "orion/keyBinding": "empty:", - "orion/editor/annotations": "empty:", - "embeddedEditor/builder/embeddedEditor": "empty:", - "embeddedEditor/helper/bootstrap": "empty:" - }, - exclude: [ - "jquery", "orion/Deferred", "orion/codeEdit", "orion/keyBinding", - "orion/editor/annotations", "embeddedEditor/builder/embeddedEditor", - "embeddedEditor/helper/bootstrap" - ] -}) \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/AceEditorContext.js b/org.eclipse.xtext.web/src/main/js/xtext/AceEditorContext.js deleted file mode 100644 index 172c7cb0485..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/AceEditorContext.js +++ /dev/null @@ -1,125 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define([], function() { - - /** - * An editor context mediates between the Xtext services and the Ace editor framework. - */ - function AceEditorContext(editor) { - this._editor = editor; - this._serverState = {}; - this._serverStateListeners = []; - this._dirty = false; - this._dirtyStateListeners = []; - }; - - AceEditorContext.prototype = { - - getServerState: function() { - return this._serverState; - }, - - updateServerState: function(currentText, currentStateId) { - this._serverState.text = currentText; - this._serverState.stateId = currentStateId; - return this._serverStateListeners; - }, - - addServerStateListener: function(listener) { - this._serverStateListeners.push(listener); - }, - - getCaretOffset: function() { - var pos = this._editor.getCursorPosition(); - return this._editor.getSession().getDocument().positionToIndex(pos); - }, - - getLineStart: function(lineNumber) { - var pos = this._editor.getCursorPosition(); - return pos.row; - }, - - getSelection: function() { - var range = this._editor.getSelectionRange(); - var document = this._editor.getSession().getDocument(); - return { - start: document.positionToIndex(range.start), - end: document.positionToIndex(range.end) - }; - }, - - getText: function(start, end) { - var session = this._editor.getSession(); - if (start && end) { - var document = session.getDocument(); - var startPos = document.indexToPosition(start); - var endPos = document.indexToPosition(end); - var mRange = require('ace/range'); - return session.getTextRange(new mRange.Range(startPos.row, startPos.column, endPos.row, endPos.column)); - } else { - return session.getValue(); - } - }, - - isDirty: function() { - return this._dirty; - }, - - setDirty: function(dirty) { - if (dirty != this._dirty) { - for (var i = 0; i < this._dirtyStateListeners.length; i++) { - this._dirtyStateListeners[i](dirty); - } - } - this._dirty = dirty; - }, - - addDirtyStateListener: function(listener) { - this._dirtyStateListeners.push(listener); - }, - - clearUndoStack: function() { - this._editor.getSession().getUndoManager().reset(); - }, - - setCaretOffset: function(offset) { - var pos = this._editor.getSession().getDocument().indexToPosition(offset); - this._editor.moveCursorTo(pos.row, pos.column); - }, - - setSelection: function(selection) { - if (this._editor.selection) { - var document = this._editor.getSession().getDocument(); - var startPos = document.indexToPosition(selection.start); - var endPos = document.indexToPosition(selection.end); - this._editor.selection.setSelectionRange(new mRange.Range(startPos.row, startPos.column, endPos.row, endPos.column)); - } - }, - - setText: function(text, start, end) { - var session = this._editor.getSession(); - var document = session.getDocument(); - if (!start) - start = 0; - if (!end) - end = document.getValue().length; - var startPos = document.indexToPosition(start); - var endPos = document.indexToPosition(end); - var cursorPos = this._editor.getCursorPosition(); - var mRange = require('ace/range'); - session.replace(new mRange.Range(startPos.row, startPos.column, endPos.row, endPos.column), text); - this._editor.moveCursorToPosition(cursorPos); - this._editor.clearSelection(); - } - - }; - - return AceEditorContext; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/CodeMirrorEditorContext.js b/org.eclipse.xtext.web/src/main/js/xtext/CodeMirrorEditorContext.js deleted file mode 100644 index b829c680e01..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/CodeMirrorEditorContext.js +++ /dev/null @@ -1,111 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define([], function() { - - /** - * An editor context mediates between the Xtext services and the CodeMirror editor framework. - */ - function CodeMirrorEditorContext(editor) { - this._editor = editor; - this._serverState = {}; - this._serverStateListeners = []; - this._dirty = false; - this._dirtyStateListeners = []; - }; - - CodeMirrorEditorContext.prototype = { - - getServerState: function() { - return this._serverState; - }, - - updateServerState: function(currentText, currentStateId) { - this._serverState.text = currentText; - this._serverState.stateId = currentStateId; - return this._serverStateListeners; - }, - - addServerStateListener: function(listener) { - this._serverStateListeners.push(listener); - }, - - getCaretOffset: function() { - var editor = this._editor; - return editor.indexFromPos(editor.getCursor()); - }, - - getLineStart: function(lineNumber) { - var editor = this._editor; - return editor.indexFromPos({line: lineNumber, ch: 0}); - }, - - getSelection: function() { - var editor = this._editor; - return { - start: editor.indexFromPos(editor.getCursor('from')), - end: editor.indexFromPos(editor.getCursor('to')) - }; - }, - - getText: function(start, end) { - var editor = this._editor; - if (start && end) { - return editor.getRange(editor.posFromIndex(start), editor.posFromIndex(end)); - } else { - return editor.getValue(); - } - }, - - isDirty: function() { - return !this._clean; - }, - - setDirty: function(dirty) { - if (dirty != this._dirty) { - for (var i = 0; i < this._dirtyStateListeners.length; i++) { - this._dirtyStateListeners[i](dirty); - } - } - this._dirty = dirty; - }, - - addDirtyStateListener: function(listener) { - this._dirtyStateListeners.push(listener); - }, - - clearUndoStack: function() { - this._editor.clearHistory(); - }, - - setCaretOffset: function(offset) { - var editor = this._editor; - editor.setCursor(editor.posFromIndex(offset)); - }, - - setSelection: function(selection) { - var editor = this._editor; - editor.setSelection(editor.posFromIndex(selection.start), editor.posFromIndex(selection.end)); - }, - - setText: function(text, start, end) { - var editor = this._editor; - if (!start) - start = 0; - if (!end) - end = editor.getValue().length; - var cursor = editor.getCursor(); - editor.replaceRange(text, editor.posFromIndex(start), editor.posFromIndex(end)); - editor.setCursor(cursor); - } - - }; - - return CodeMirrorEditorContext; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/OrionEditorContext.js b/org.eclipse.xtext.web/src/main/js/xtext/OrionEditorContext.js deleted file mode 100644 index 3c5b4e3a1b4..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/OrionEditorContext.js +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - ******************************************************************************/ - -define(function() { - - /** - * An editor context mediates between the Xtext services and the Orion - * editor framework. - */ - function OrionEditorContext(editorViewer, contentType) { - this._editorViewer = editorViewer; - this._editor = editorViewer.editor; - this._contentType = contentType; - this._serverState = {}; - this._serverStateListeners = []; - this._dirty = false; - this._dirtyStateListeners = []; - }; - - OrionEditorContext.prototype = { - - getServerState: function() { - return this._serverState; - }, - - updateServerState: function(currentText, currentStateId) { - this._serverState.text = currentText; - this._serverState.stateId = currentStateId; - return this._serverStateListeners; - }, - - addServerStateListener: function(listener) { - this._serverStateListeners.push(listener); - }, - - getCaretOffset: function() { - return this._editor.getTextView().getCaretOffset(); - }, - - getLineStart: function(lineNumber) { - var view = this._editor.getTextView(); - return view.getLineStart(view.getLineAtOffset(view.getCaretOffset())); - }, - - getSelection: function() { - return this._editor.getTextView().getSelection(); - }, - - getText: function(start, end) { - return this._editor.getText(start, end); - }, - - isDirty: function() { - return this._dirty; - }, - - setDirty: function(dirty) { - if (dirty != this._dirty) { - for (var i = 0; i < this._dirtyStateListeners.length; i++) { - this._dirtyStateListeners[i](dirty); - } - } - this._dirty = dirty; - }, - - addDirtyStateListener: function(listener) { - this._dirtyStateListeners.push(listener); - }, - - clearUndoStack: function() { - this._editor.getUndoStack().reset(); - }, - - setCaretOffset: function(offset, show) { - this._editor.getTextView().setCaretOffset(offset, show); - }, - - setSelection: function(selection) { - this._editor.getTextView().setSelection(selection.start, selection.end); - }, - - setText: function(text, start, end) { - if (start === undefined || end === undefined) { - this._editorViewer.setContents(text, this._contentType); - } else { - var fullText = this._editor.getText(); - var newText = fullText.substring(0, start) + text + fullText.substring(end); - this._editorViewer.setContents(newText, this._contentType); - } - } - - }; - - return OrionEditorContext; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/ServiceBuilder.js b/org.eclipse.xtext.web/src/main/js/xtext/ServiceBuilder.js deleted file mode 100644 index e9eff73308c..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/ServiceBuilder.js +++ /dev/null @@ -1,274 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - ******************************************************************************/ - -define([ - 'jquery', - 'xtext/services/XtextService', - 'xtext/services/LoadResourceService', - 'xtext/services/SaveResourceService', - 'xtext/services/HighlightingService', - 'xtext/services/ValidationService', - 'xtext/services/UpdateService', - 'xtext/services/ContentAssistService', - 'xtext/services/HoverService', - 'xtext/services/OccurrencesService', - 'xtext/services/FormattingService' -], function(jQuery, XtextService, LoadResourceService, SaveResourceService, HighlightingService, - ValidationService, UpdateService, ContentAssistService, HoverService, OccurrencesService, - FormattingService) { - - /** - * Builder class for the Xtext services. - */ - function ServiceBuilder(xtextServices) { - this.services = xtextServices; - }; - - /** - * Create all the available Xtext services depending on the configuration. - */ - ServiceBuilder.prototype.createServices = function() { - var services = this.services; - var options = services.options; - var editorContext = services.editorContext; - editorContext.xtextServices = services; - var self = this; - if (!options.serviceUrl) { - if (!options.baseUrl) - options.baseUrl = '/'; - else if (options.baseUrl.charAt(0) != '/') - options.baseUrl = '/' + options.baseUrl; - options.serviceUrl = window.location.protocol + '//' + window.location.host + options.baseUrl + 'xtext-service'; - } - if (options.resourceId) { - if (!options.xtextLang) - options.xtextLang = options.resourceId.split(/[?#]/)[0].split('.').pop(); - if (options.loadFromServer === undefined) - options.loadFromServer = true; - if (options.loadFromServer && this.setupPersistenceServices) { - services.loadResourceService = new LoadResourceService(options.serviceUrl, options.resourceId, false); - services.loadResource = function(addParams) { - return services.loadResourceService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - services.saveResourceService = new SaveResourceService(options.serviceUrl, options.resourceId); - services.saveResource = function(addParams) { - return services.saveResourceService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - services.revertResourceService = new LoadResourceService(options.serviceUrl, options.resourceId, true); - services.revertResource = function(addParams) { - return services.revertResourceService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - this.setupPersistenceServices(); - services.loadResource(); - } - } else { - if (options.loadFromServer === undefined) - options.loadFromServer = false; - if (options.xtextLang) { - var randomId = Math.floor(Math.random() * 2147483648).toString(16); - options.resourceId = randomId + '.' + options.xtextLang; - } - } - - if (this.setupSyntaxHighlighting) { - this.setupSyntaxHighlighting(); - } - if (options.enableHighlightingService || options.enableHighlightingService === undefined) { - services.highlightingService = new HighlightingService(options.serviceUrl, options.resourceId); - services.computeHighlighting = function(addParams) { - return services.highlightingService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - } - if (options.enableValidationService || options.enableValidationService === undefined) { - services.validationService = new ValidationService(options.serviceUrl, options.resourceId); - services.validate = function(addParams) { - return services.validationService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - } - if (this.setupUpdateService) { - function refreshDocument() { - if (services.highlightingService && self.doHighlighting) { - services.highlightingService.setState(undefined); - self.doHighlighting(); - } - if (services.validationService && self.doValidation) { - services.validationService.setState(undefined); - self.doValidation(); - } - } - if (!options.sendFullText) { - services.updateService = new UpdateService(options.serviceUrl, options.resourceId); - services.update = function(addParams) { - return services.updateService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - if (services.saveResourceService) - services.saveResourceService._updateService = services.updateService; - editorContext.addServerStateListener(refreshDocument); - } - this.setupUpdateService(refreshDocument); - } - if ((options.enableContentAssistService || options.enableContentAssistService === undefined) - && this.setupContentAssistService) { - services.contentAssistService = new ContentAssistService(options.serviceUrl, options.resourceId, services.updateService); - services.getContentAssist = function(addParams) { - return services.contentAssistService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - this.setupContentAssistService(); - } - if ((options.enableHoverService || options.enableHoverService === undefined) - && this.setupHoverService) { - services.hoverService = new HoverService(options.serviceUrl, options.resourceId, services.updateService); - services.getHoverInfo = function(addParams) { - return services.hoverService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - this.setupHoverService(); - } - if ((options.enableOccurrencesService || options.enableOccurrencesService === undefined) - && this.setupOccurrencesService) { - services.occurrencesService = new OccurrencesService(options.serviceUrl, options.resourceId, services.updateService); - services.getOccurrences = function(addParams) { - return services.occurrencesService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - this.setupOccurrencesService(); - } - if ((options.enableFormattingService || options.enableFormattingService === undefined) - && this.setupFormattingService) { - services.formattingService = new FormattingService(options.serviceUrl, options.resourceId, services.updateService); - services.format = function(addParams) { - return services.formattingService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - this.setupFormattingService(); - } - if (options.enableGeneratorService || options.enableGeneratorService === undefined) { - services.generatorService = new XtextService(); - services.generatorService.initialize(services, 'generate'); - services.generatorService._initServerData = function(serverData, editorContext, params) { - if (params.allArtifacts) - serverData.allArtifacts = params.allArtifacts; - else if (params.artifactId) - serverData.artifact = params.artifactId; - if (params.includeContent !== undefined) - serverData.includeContent = params.includeContent; - } - services.generate = function(addParams) { - return services.generatorService.invoke(editorContext, ServiceBuilder.mergeOptions(addParams, options)); - } - } - - if (options.dirtyElement) { - var doc = options.document || document; - var dirtyElement; - if (typeof(options.dirtyElement) === 'string') - dirtyElement = jQuery('#' + options.dirtyElement, doc); - else - dirtyElement = jQuery(options.dirtyElement); - var dirtyStatusClass = options.dirtyStatusClass; - if (!dirtyStatusClass) - dirtyStatusClass = 'dirty'; - editorContext.addDirtyStateListener(function(dirty) { - if (dirty) - dirtyElement.addClass(dirtyStatusClass); - else - dirtyElement.removeClass(dirtyStatusClass); - }); - } - - services.successListeners = []; - services.errorListeners = [function(serviceType, severity, message, requestData) { - if (options.showErrorDialogs) - window.alert('Xtext service \'' + serviceType + '\' failed: ' + message); - else - console.log('Xtext service \'' + serviceType + '\' failed: ' + message); - }]; - } - - /** - * Change the resource associated with this service builder. - */ - ServiceBuilder.prototype.changeResource = function(resourceId) { - var services = this.services; - var options = services.options; - options.resourceId = resourceId; - for (var p in services) { - if (services.hasOwnProperty(p)) { - var service = services[p]; - if (service._serviceType && jQuery.isFunction(service.initialize)) - services[p].initialize(options.serviceUrl, service._serviceType, resourceId, services.updateService); - } - } - var knownServerState = services.editorContext.getServerState(); - delete knownServerState.stateId; - delete knownServerState.text; - if (options.loadFromServer && jQuery.isFunction(services.loadResource)) { - services.loadResource(); - } - } - - /** - * Create a copy of the given object. - */ - ServiceBuilder.copy = function(obj) { - var copy = {}; - for (var p in obj) { - if (obj.hasOwnProperty(p)) - copy[p] = obj[p]; - } - return copy; - } - - /** - * Translate an HTML attribute name to a JS option name. - */ - ServiceBuilder.optionName = function(name) { - var prefix = 'data-editor-'; - if (name.substring(0, prefix.length) === prefix) { - var key = name.substring(prefix.length); - key = key.replace(/-([a-z])/ig, function(all, character) { - return character.toUpperCase(); - }); - return key; - } - return undefined; - } - - /** - * Copy all default options into the given set of additional options. - */ - ServiceBuilder.mergeOptions = function(options, defaultOptions) { - if (options) { - for (var p in defaultOptions) { - if (defaultOptions.hasOwnProperty(p)) - options[p] = defaultOptions[p]; - } - return options; - } else { - return ServiceBuilder.copy(defaultOptions); - } - } - - /** - * Merge all properties of the given parent element with the given default options. - */ - ServiceBuilder.mergeParentOptions = function(parent, defaultOptions) { - var options = ServiceBuilder.copy(defaultOptions); - for (var attr, j = 0, attrs = parent.attributes, l = attrs.length; j < l; j++) { - attr = attrs.item(j); - var key = ServiceBuilder.optionName(attr.nodeName); - if (key) { - var value = attr.nodeValue; - if (value === 'true' || value === 'false') - value = value === 'true'; - options[key] = value; - } - } - return options; - } - - return ServiceBuilder; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/compatibility.js b/org.eclipse.xtext.web/src/main/js/xtext/compatibility.js deleted file mode 100644 index c877fc5653b..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/compatibility.js +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define([], function() { - - if (!Function.prototype.bind) { - Function.prototype.bind = function(target) { - if (typeof this !== 'function') - throw new TypeError('bind target is not callable'); - var args = Array.prototype.slice.call(arguments, 1); - var unboundFunc = this; - var nopFunc = function() {}; - boundFunc = function() { - var localArgs = Array.prototype.slice.call(arguments); - return unboundFunc.apply(this instanceof nopFunc ? this : target, - args.concat(localArgs)); - }; - nopFunc.prototype = this.prototype; - boundFunc.prototype = new nopFunc(); - return boundFunc; - } - } - - if (!Array.prototype.map) { - Array.prototype.map = function(callback, thisArg) { - if (this == null) - throw new TypeError('this is null'); - if (typeof callback !== 'function') - throw new TypeError('callback is not callable'); - var srcArray = Object(this); - var len = srcArray.length >>> 0; - var tgtArray = new Array(len); - for (var i = 0; i < len; i++) { - if (i in srcArray) - tgtArray[i] = callback.call(thisArg, srcArray[i], i, srcArray); - } - return tgtArray; - } - } - - if (!Array.prototype.forEach) { - Array.prototype.forEach = function(callback, thisArg) { - if (this == null) - throw new TypeError('this is null'); - if (typeof callback !== 'function') - throw new TypeError('callback is not callable'); - var srcArray = Object(this); - var len = srcArray.length >>> 0; - for (var i = 0; i < len; i++) { - if (i in srcArray) - callback.call(thisArg, srcArray[i], i, srcArray); - } - } - } - - return {}; -}); diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/ContentAssistService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/ContentAssistService.js deleted file mode 100644 index d2bb58c3e91..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/ContentAssistService.js +++ /dev/null @@ -1,132 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for content assist proposals. The proposals are returned as promise of - * a Deferred object. - */ - function ContentAssistService(serviceUrl, resourceId, updateService) { - this.initialize(serviceUrl, 'assist', resourceId, updateService); - } - - ContentAssistService.prototype = new XtextService(); - - ContentAssistService.prototype.invoke = function(editorContext, params, deferred) { - if (deferred === undefined) { - deferred = jQuery.Deferred(); - } - var serverData = { - contentType: params.contentType - }; - if (params.offset) - serverData.caretOffset = params.offset; - else - serverData.caretOffset = editorContext.getCaretOffset(); - var selection = params.selection ? params.selection : editorContext.getSelection(); - if (selection.start != serverData.caretOffset || selection.end != serverData.caretOffset) { - serverData.selectionStart = selection.start; - serverData.selectionEnd = selection.end; - } - var currentText; - var httpMethod = 'GET'; - var onComplete = undefined; - var knownServerState = editorContext.getServerState(); - if (params.sendFullText) { - serverData.fullText = editorContext.getText(); - httpMethod = 'POST'; - } else { - serverData.requiredStateId = knownServerState.stateId; - if (this._updateService) { - if (knownServerState.text === undefined || knownServerState.updateInProgress) { - var self = this; - this._updateService.addCompletionCallback(function() { - self.invoke(editorContext, params, deferred); - }); - return deferred.promise(); - } - knownServerState.updateInProgress = true; - onComplete = this._updateService.onComplete.bind(this._updateService); - currentText = editorContext.getText(); - this._updateService.computeDelta(knownServerState.text, currentText, serverData); - if (serverData.deltaText !== undefined) { - httpMethod = 'POST'; - } - } - } - - var self = this; - self.sendRequest(editorContext, { - type: httpMethod, - data: serverData, - - success: function(result) { - if (result.conflict) { - // The server has lost its session state and the resource is loaded from the server - if (self._increaseRecursionCount(editorContext)) { - if (onComplete) { - delete knownServerState.updateInProgress; - delete knownServerState.text; - delete knownServerState.stateId; - self._updateService.addCompletionCallback(function() { - self.invoke(editorContext, params, deferred); - }); - self._updateService.invoke(editorContext, params); - } else { - var paramsCopy = {}; - for (var p in params) { - if (params.hasOwnProperty(p)) - paramsCopy[p] = params[p]; - } - paramsCopy.sendFullText = true; - self.invoke(editorContext, paramsCopy, deferred); - } - } else { - deferred.reject(result.conflict); - } - return false; - } - if (onComplete && result.stateId !== undefined && result.stateId != editorContext.getServerState().stateId) { - var listeners = editorContext.updateServerState(currentText, result.stateId); - for (var i = 0; i < listeners.length; i++) { - self._updateService.addCompletionCallback(listeners[i], params); - } - } - deferred.resolve(result.entries); - }, - - error: function(xhr, textStatus, errorThrown) { - if (onComplete && xhr.status == 404 && !params.loadFromServer && knownServerState.text !== undefined) { - // The server has lost its session state and the resource is not loaded from the server - delete knownServerState.updateInProgress; - delete knownServerState.text; - delete knownServerState.stateId; - self._updateService.addCompletionCallback(function() { - self.invoke(editorContext, params, deferred); - }); - self._updateService.invoke(editorContext, params); - return true; - } - deferred.reject(errorThrown); - }, - - complete: onComplete - }, !params.sendFullText); - var result = deferred.promise(); - if (onComplete) { - result.always(function() { - knownServerState.updateInProgress = false; - }); - } - return result; - }; - - return ContentAssistService; -}); diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/FormattingService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/FormattingService.js deleted file mode 100644 index 8f3a05c3959..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/FormattingService.js +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for formatting text. - */ - function FormattingService(serviceUrl, resourceId, updateService) { - this.initialize(serviceUrl, 'format', resourceId, updateService); - }; - - FormattingService.prototype = new XtextService(); - - FormattingService.prototype._initServerData = function(serverData, editorContext, params) { - var selection = params.selection ? params.selection : editorContext.getSelection(); - if (selection.end > selection.start) { - serverData.selectionStart = selection.start; - serverData.selectionEnd = selection.end; - } - return { - httpMethod: 'POST' - }; - }; - - FormattingService.prototype._processResult = function(result, editorContext) { - // The text update may be asynchronous, so we have to compute the new text ourselves - var newText; - if (result.replaceRegion) { - var fullText = editorContext.getText(); - var start = result.replaceRegion.offset; - var end = result.replaceRegion.offset + result.replaceRegion.length; - editorContext.setText(result.formattedText, start, end); - newText = fullText.substring(0, start) + result.formattedText + fullText.substring(end); - } else { - editorContext.setText(result.formattedText); - newText = result.formattedText; - } - var listeners = editorContext.updateServerState(newText, result.stateId); - for (var i = 0; i < listeners.length; i++) { - listeners[i]({}); - } - }; - - return FormattingService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/HighlightingService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/HighlightingService.js deleted file mode 100644 index 5a5ac8ba97e..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/HighlightingService.js +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for semantic highlighting. - */ - function HighlightingService(serviceUrl, resourceId) { - this.initialize(serviceUrl, 'highlight', resourceId); - }; - - HighlightingService.prototype = new XtextService(); - - HighlightingService.prototype._checkPreconditions = function(editorContext, params) { - return this._state === undefined; - } - - HighlightingService.prototype._onConflict = function(editorContext, cause) { - this.setState(undefined); - return { - suppressForcedUpdate: true - }; - }; - - return HighlightingService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/HoverService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/HoverService.js deleted file mode 100644 index 03c5a52b586..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/HoverService.js +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for hover information. - */ - function HoverService(serviceUrl, resourceId, updateService) { - this.initialize(serviceUrl, 'hover', resourceId, updateService); - }; - - HoverService.prototype = new XtextService(); - - HoverService.prototype._initServerData = function(serverData, editorContext, params) { - // In order to display hover info for a selected completion proposal while the content - // assist popup is shown, the selected proposal is passed as parameter - if (params.proposal && params.proposal.proposal) - serverData.proposal = params.proposal.proposal; - if (params.offset) - serverData.caretOffset = params.offset; - else - serverData.caretOffset = editorContext.getCaretOffset(); - var selection = params.selection ? params.selection : editorContext.getSelection(); - if (selection.start != serverData.caretOffset || selection.end != serverData.caretOffset) { - serverData.selectionStart = selection.start; - serverData.selectionEnd = selection.end; - } - }; - - HoverService.prototype._getSuccessCallback = function(editorContext, params, deferred) { - var delay = params.mouseHoverDelay; - if (!delay) - delay = 500; - var showTime = new Date().getTime() + delay; - return function(result) { - if (result.conflict || !result.title && !result.content) { - deferred.reject(); - } else { - var remainingTimeout = Math.max(0, showTime - new Date().getTime()); - setTimeout(function() { - if (!params.sendFullText && result.stateId !== undefined - && result.stateId != editorContext.getServerState().stateId) - deferred.reject(); - else - deferred.resolve(result); - }, remainingTimeout); - } - }; - }; - - return HoverService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/LoadResourceService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/LoadResourceService.js deleted file mode 100644 index b5a315c37ed..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/LoadResourceService.js +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for loading resources. The resulting text is passed to the editor context. - */ - function LoadResourceService(serviceUrl, resourceId, revert) { - this.initialize(serviceUrl, revert ? 'revert' : 'load', resourceId); - }; - - LoadResourceService.prototype = new XtextService(); - - LoadResourceService.prototype._initServerData = function(serverData, editorContext, params) { - return { - suppressContent: true, - httpMethod: this._serviceType == 'revert' ? 'POST' : 'GET' - }; - }; - - LoadResourceService.prototype._getSuccessCallback = function(editorContext, params, deferred) { - return function(result) { - editorContext.setText(result.fullText); - editorContext.clearUndoStack(); - editorContext.setDirty(result.dirty); - var listeners = editorContext.updateServerState(result.fullText, result.stateId); - for (var i = 0; i < listeners.length; i++) { - listeners[i](params); - } - deferred.resolve(result); - } - } - - return LoadResourceService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/OccurrencesService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/OccurrencesService.js deleted file mode 100644 index 2e2d0b1ae2a..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/OccurrencesService.js +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for marking occurrences. - */ - function OccurrencesService(serviceUrl, resourceId, updateService) { - this.initialize(serviceUrl, 'occurrences', resourceId, updateService); - }; - - OccurrencesService.prototype = new XtextService(); - - OccurrencesService.prototype._initServerData = function(serverData, editorContext, params) { - if (params.offset) - serverData.caretOffset = params.offset; - else - serverData.caretOffset = editorContext.getCaretOffset(); - }; - - OccurrencesService.prototype._getSuccessCallback = function(editorContext, params, deferred) { - return function(result) { - if (result.conflict || !params.sendFullText && result.stateId !== undefined - && result.stateId != editorContext.getServerState().stateId) - deferred.reject(); - else - deferred.resolve(result); - } - } - - return OccurrencesService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/SaveResourceService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/SaveResourceService.js deleted file mode 100644 index 66cdaff5ef3..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/SaveResourceService.js +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for saving resources. - */ - function SaveResourceService(serviceUrl, resourceId) { - this.initialize(serviceUrl, 'save', resourceId); - }; - - SaveResourceService.prototype = new XtextService(); - - SaveResourceService.prototype._initServerData = function(serverData, editorContext, params) { - return { - httpMethod: 'POST' - }; - }; - - SaveResourceService.prototype._processResult = function(result, editorContext) { - editorContext.setDirty(false); - }; - - return SaveResourceService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/UpdateService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/UpdateService.js deleted file mode 100644 index b78d846dfb8..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/UpdateService.js +++ /dev/null @@ -1,159 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for updating the server-side representation of a resource. - * This service only makes sense with a stateful server, where an update request is sent - * after each modification. This can greatly improve response times compared to the - * stateless alternative, where the full text content is sent with each service request. - */ - function UpdateService(serviceUrl, resourceId) { - this.initialize(serviceUrl, 'update', resourceId, this); - this._completionCallbacks = []; - }; - - UpdateService.prototype = new XtextService(); - - /** - * Compute a delta between two versions of a text. If a difference is found, the result - * contains three properties: - * deltaText - the text to insert into s1 - * deltaOffset - the text insertion offset - * deltaReplaceLength - the number of characters that shall be replaced by the inserted text - */ - UpdateService.prototype.computeDelta = function(s1, s2, result) { - var start = 0, s1length = s1.length, s2length = s2.length; - while (start < s1length && start < s2length && s1.charCodeAt(start) === s2.charCodeAt(start)) { - start++; - } - if (start === s1length && start === s2length) { - return; - } - result.deltaOffset = start; - if (start === s1length) { - result.deltaText = s2.substring(start, s2length); - result.deltaReplaceLength = 0; - return; - } else if (start === s2length) { - result.deltaText = ''; - result.deltaReplaceLength = s1length - start; - return; - } - - var end1 = s1length - 1, end2 = s2length - 1; - while (end1 >= start && end2 >= start && s1.charCodeAt(end1) === s2.charCodeAt(end2)) { - end1--; - end2--; - } - result.deltaText = s2.substring(start, end2 + 1); - result.deltaReplaceLength = end1 - start + 1; - }; - - /** - * Invoke all completion callbacks and clear the list afterwards. - */ - UpdateService.prototype.onComplete = function(xhr, textStatus) { - var callbacks = this._completionCallbacks; - this._completionCallbacks = []; - for (var i = 0; i < callbacks.length; i++) { - var callback = callbacks[i].callback; - var params = callbacks[i].params; - callback(params); - } - } - - /** - * Add a callback to be invoked when the service call has completed. - */ - UpdateService.prototype.addCompletionCallback = function(callback, params) { - this._completionCallbacks.push({callback: callback, params: params}); - } - - UpdateService.prototype.invoke = function(editorContext, params, deferred) { - if (deferred === undefined) { - deferred = jQuery.Deferred(); - } - var knownServerState = editorContext.getServerState(); - if (knownServerState.updateInProgress) { - var self = this; - this.addCompletionCallback(function() { self.invoke(editorContext, params, deferred) }); - return deferred.promise(); - } - - var serverData = { - contentType: params.contentType - }; - var currentText = editorContext.getText(); - if (params.sendFullText || knownServerState.text === undefined) { - serverData.fullText = currentText; - } else { - this.computeDelta(knownServerState.text, currentText, serverData); - if (serverData.deltaText === undefined) { - if (params.forceUpdate) { - serverData.deltaText = ''; - serverData.deltaOffset = editorContext.getCaretOffset(); - serverData.deltaReplaceLength = 0; - } else { - deferred.resolve(knownServerState); - this.onComplete(); - return deferred.promise(); - } - } - serverData.requiredStateId = knownServerState.stateId; - } - - knownServerState.updateInProgress = true; - var self = this; - self.sendRequest(editorContext, { - type: 'PUT', - data: serverData, - - success: function(result) { - if (result.conflict) { - // The server has lost its session state and the resource is loaded from the server - if (knownServerState.text !== undefined) { - delete knownServerState.updateInProgress; - delete knownServerState.text; - delete knownServerState.stateId; - self.invoke(editorContext, params, deferred); - } else { - deferred.reject(result.conflict); - } - return false; - } - var listeners = editorContext.updateServerState(currentText, result.stateId); - for (var i = 0; i < listeners.length; i++) { - self.addCompletionCallback(listeners[i], params); - } - deferred.resolve(result); - }, - - error: function(xhr, textStatus, errorThrown) { - if (xhr.status == 404 && !params.loadFromServer && knownServerState.text !== undefined) { - // The server has lost its session state and the resource is not loaded from the server - delete knownServerState.updateInProgress; - delete knownServerState.text; - delete knownServerState.stateId; - self.invoke(editorContext, params, deferred); - return true; - } - deferred.reject(errorThrown); - }, - - complete: self.onComplete.bind(self) - }, true); - return deferred.promise().always(function() { - knownServerState.updateInProgress = false; - }); - }; - - return UpdateService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/ValidationService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/ValidationService.js deleted file mode 100644 index 85c9953d67a..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/ValidationService.js +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['xtext/services/XtextService', 'jquery'], function(XtextService, jQuery) { - - /** - * Service class for validation. - */ - function ValidationService(serviceUrl, resourceId) { - this.initialize(serviceUrl, 'validate', resourceId); - }; - - ValidationService.prototype = new XtextService(); - - ValidationService.prototype._checkPreconditions = function(editorContext, params) { - return this._state === undefined; - } - - ValidationService.prototype._onConflict = function(editorContext, cause) { - this.setState(undefined); - return { - suppressForcedUpdate: true - }; - }; - - return ValidationService; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/main/js/xtext/services/XtextService.js b/org.eclipse.xtext.web/src/main/js/xtext/services/XtextService.js deleted file mode 100644 index d3a4842f038..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/services/XtextService.js +++ /dev/null @@ -1,280 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2017 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(['jquery'], function(jQuery) { - - var globalState = {}; - - /** - * Generic service implementation that can serve as superclass for specialized services. - */ - function XtextService() {}; - - /** - * Initialize the request metadata for this service class. Two variants: - * - initialize(serviceUrl, serviceType, resourceId, updateService) - * - initialize(xtextServices, serviceType) - */ - XtextService.prototype.initialize = function() { - this._serviceType = arguments[1]; - if (typeof(arguments[0]) === 'string') { - this._requestUrl = arguments[0] + '/' + this._serviceType; - var resourceId = arguments[2]; - if (resourceId) - this._encodedResourceId = encodeURIComponent(resourceId); - this._updateService = arguments[3]; - } else { - var xtextServices = arguments[0]; - if (xtextServices.options) { - this._requestUrl = xtextServices.options.serviceUrl + '/' + this._serviceType; - var resourceId = xtextServices.options.resourceId; - if (resourceId) - this._encodedResourceId = encodeURIComponent(resourceId); - } - this._updateService = xtextServices.updateService; - } - } - - XtextService.prototype.setState = function(state) { - this._state = state; - } - - /** - * Invoke the service with default service behavior. - */ - XtextService.prototype.invoke = function(editorContext, params, deferred, callbacks) { - if (deferred === undefined) { - deferred = jQuery.Deferred(); - } - if (jQuery.isFunction(this._checkPreconditions) && !this._checkPreconditions(editorContext, params)) { - deferred.reject(); - return deferred.promise(); - } - var serverData = { - contentType: params.contentType - }; - var initResult; - if (jQuery.isFunction(this._initServerData)) - initResult = this._initServerData(serverData, editorContext, params); - var httpMethod = 'GET'; - if (initResult && initResult.httpMethod) - httpMethod = initResult.httpMethod; - var self = this; - if (!(initResult && initResult.suppressContent)) { - if (params.sendFullText) { - serverData.fullText = editorContext.getText(); - httpMethod = 'POST'; - } else { - var knownServerState = editorContext.getServerState(); - if (knownServerState.updateInProgress) { - if (self._updateService) { - self._updateService.addCompletionCallback(function() { - self.invoke(editorContext, params, deferred); - }); - } else { - deferred.reject(); - } - return deferred.promise(); - } - if (knownServerState.stateId !== undefined) { - serverData.requiredStateId = knownServerState.stateId; - } - } - } - - var onSuccess; - if (jQuery.isFunction(this._getSuccessCallback)) { - onSuccess = this._getSuccessCallback(editorContext, params, deferred); - } else { - onSuccess = function(result) { - if (result.conflict) { - if (self._increaseRecursionCount(editorContext)) { - var onConflictResult; - if (jQuery.isFunction(self._onConflict)) { - onConflictResult = self._onConflict(editorContext, result.conflict); - } - if (!(onConflictResult && onConflictResult.suppressForcedUpdate) && !params.sendFullText - && result.conflict == 'invalidStateId' && self._updateService) { - self._updateService.addCompletionCallback(function() { - self.invoke(editorContext, params, deferred); - }); - var knownServerState = editorContext.getServerState(); - delete knownServerState.stateId; - delete knownServerState.text; - self._updateService.invoke(editorContext, params); - } else { - self.invoke(editorContext, params, deferred); - } - } else { - deferred.reject(); - } - return false; - } - if (jQuery.isFunction(self._processResult)) { - var processedResult = self._processResult(result, editorContext); - if (processedResult) { - deferred.resolve(processedResult); - return true; - } - } - deferred.resolve(result); - }; - } - - var onError = function(xhr, textStatus, errorThrown) { - if (xhr.status == 404 && !params.loadFromServer && self._increaseRecursionCount(editorContext)) { - var onConflictResult; - if (jQuery.isFunction(self._onConflict)) { - onConflictResult = self._onConflict(editorContext, errorThrown); - } - var knownServerState = editorContext.getServerState(); - if (!(onConflictResult && onConflictResult.suppressForcedUpdate) - && knownServerState.text !== undefined && self._updateService) { - self._updateService.addCompletionCallback(function() { - self.invoke(editorContext, params, deferred); - }); - delete knownServerState.stateId; - delete knownServerState.text; - self._updateService.invoke(editorContext, params); - return true; - } - } - deferred.reject(errorThrown); - } - - self.sendRequest(editorContext, { - type: httpMethod, - data: serverData, - success: onSuccess, - error: onError - }, !params.sendFullText); - return deferred.promise().always(function() { - self._recursionCount = undefined; - }); - } - - /** - * Send an HTTP request to invoke the service. - */ - XtextService.prototype.sendRequest = function(editorContext, settings, needsSession) { - var self = this; - self.setState('started'); - var corsEnabled = editorContext.xtextServices.options['enableCors']; - if(corsEnabled) { - settings.crossDomain = true; - settings.xhrFields = {withCredentials: true}; - } - var onSuccess = settings.success; - settings.success = function(result) { - var accepted = true; - if (jQuery.isFunction(onSuccess)) { - accepted = onSuccess(result); - } - if (accepted || accepted === undefined) { - self.setState('finished'); - if (editorContext.xtextServices) { - var successListeners = editorContext.xtextServices.successListeners; - if (successListeners) { - for (var i = 0; i < successListeners.length; i++) { - var listener = successListeners[i]; - if (jQuery.isFunction(listener)) { - listener(self._serviceType, result); - } - } - } - } - } - }; - - var onError = settings.error; - settings.error = function(xhr, textStatus, errorThrown) { - var resolved = false; - if (jQuery.isFunction(onError)) { - resolved = onError(xhr, textStatus, errorThrown); - } - if (!resolved) { - self.setState(undefined); - self._reportError(editorContext, textStatus, errorThrown, xhr); - } - }; - - settings.async = true; - var requestUrl = self._requestUrl; - if (!settings.data.resource && self._encodedResourceId) { - if (requestUrl.indexOf('?') >= 0) - requestUrl += '&resource=' + self._encodedResourceId; - else - requestUrl += '?resource=' + self._encodedResourceId; - } - - if (needsSession && globalState._initPending) { - // We have to wait until the initial request has finished to make sure the client has - // received a valid session id - if (!globalState._waitingRequests) - globalState._waitingRequests = []; - globalState._waitingRequests.push({requestUrl: requestUrl, settings: settings}); - } else { - if (needsSession && !globalState._initDone) { - globalState._initPending = true; - var onComplete = settings.complete; - settings.complete = function(xhr, textStatus) { - if (jQuery.isFunction(onComplete)) { - onComplete(xhr, textStatus); - } - delete globalState._initPending; - globalState._initDone = true; - if (globalState._waitingRequests) { - for (var i = 0; i < globalState._waitingRequests.length; i++) { - var request = globalState._waitingRequests[i]; - jQuery.ajax(request.requestUrl, request.settings); - } - delete globalState._waitingRequests; - } - } - } - jQuery.ajax(requestUrl, settings); - } - } - - /** - * Use this in case of a conflict before retrying the service invocation. If the number - * of retries exceeds the limit, an error is reported and the function returns false. - */ - XtextService.prototype._increaseRecursionCount = function(editorContext) { - if (this._recursionCount === undefined) - this._recursionCount = 1; - else - this._recursionCount++; - - if (this._recursionCount >= 10) { - this._reportError(editorContext, 'warning', 'Xtext service request failed after 10 attempts.', {}); - return false; - } - return true; - }, - - /** - * Report an error to the listeners. - */ - XtextService.prototype._reportError = function(editorContext, severity, message, requestData) { - if (editorContext.xtextServices) { - var errorListeners = editorContext.xtextServices.errorListeners; - if (errorListeners) { - for (var i = 0; i < errorListeners.length; i++) { - var listener = errorListeners[i]; - if (jQuery.isFunction(listener)) { - listener(this._serviceType, severity, message, requestData); - } - } - } - } - } - - return XtextService; -}); diff --git a/org.eclipse.xtext.web/src/main/js/xtext/xtext-ace.js b/org.eclipse.xtext.web/src/main/js/xtext/xtext-ace.js deleted file mode 100644 index 3d0c344a350..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/xtext-ace.js +++ /dev/null @@ -1,391 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -/* - * Use `createEditor(options)` to create an Xtext editor. You can specify options either - * through the function parameter or through `data-editor-x` attributes, where x is an - * option name with camelCase converted to hyphen-separated. - * The following options are available: - * - * baseUrl = "/" {String} - * The path segment where the Xtext service is found; see serviceUrl option. - * contentType {String} - * The content type included in requests to the Xtext server. - * dirtyElement {String | DOMElement} - * An element into which the dirty status class is written when the editor is marked dirty; - * it can be either a DOM element or an ID for a DOM element. - * dirtyStatusClass = 'dirty' {String} - * A CSS class name written into the dirtyElement when the editor is marked dirty. - * document {Document} - * The document; if not specified, the global document is used. - * enableContentAssistService = true {Boolean} - * Whether content assist should be enabled. - * enableFormattingAction = false {Boolean} - * Whether the formatting action should be bound to the standard keystroke ctrl+shift+f / cmd+shift+f. - * enableFormattingService = true {Boolean} - * Whether text formatting should be enabled. - * enableGeneratorService = true {Boolean} - * Whether code generation should be enabled (must be triggered through JavaScript code). - * enableOccurrencesService = true {Boolean} - * Whether marking occurrences should be enabled. - * enableSaveAction = false {Boolean} - * Whether the save action should be bound to the standard keystroke ctrl+s / cmd+s. - * enableValidationService = true {Boolean} - * Whether validation should be enabled. - * loadFromServer = true {Boolean} - * Whether to load the editor content from the server. - * parent = 'xtext-editor' {String | DOMElement} - * The parent element for the view; it can be either a DOM element or an ID for a DOM element. - * parentClass = 'xtext-editor' {String} - * If the 'parent' option is not given, this option is used to find elements that match the given class name. - * position {String} - * If this option is set, the 'position' CSS attribute of the created editor is set accordingly. - * resourceId {String} - * The identifier of the resource displayed in the text editor; this option is sent to the server to - * communicate required information on the respective resource. - * selectionUpdateDelay = 550 {Number} - * The number of milliseconds to wait after a selection change before Xtext services are invoked. - * sendFullText = false {Boolean} - * Whether the full text shall be sent to the server with each request; use this if you want - * the server to run in stateless mode. If the option is inactive, the server state is updated regularly. - * serviceUrl {String} - * The URL of the Xtext servlet; if no value is given, it is constructed using the baseUrl option in the form - * {location.protocol}//{location.host}{baseUrl}xtext-service - * showErrorDialogs = false {Boolean} - * Whether errors should be displayed in popup dialogs. - * syntaxDefinition {String} - * A path to a JS file defining an Ace syntax definition; if no path is given, it is built from - * the 'xtextLang' option in the form 'xtext-resources/mode-{xtextLang}'. Set this option to 'none' to - * disable syntax highlighting. - * textUpdateDelay = 500 {Number} - * The number of milliseconds to wait after a text change before Xtext services are invoked. - * theme {String} - * The path name of the Ace theme for the editor. - * xtextLang {String} - * The language name (usually the file extension configured for the language). - */ -define([ - 'jquery', - 'ace/ace', - 'ace/ext/language_tools', - 'xtext/compatibility', - 'xtext/ServiceBuilder', - 'xtext/AceEditorContext' -], function(jQuery, ace, languageTools, compatibility, ServiceBuilder, EditorContext) { - - var exports = {}; - - /** - * Create one or more Xtext editor instances configured with the given options. - * The return value is either an Ace editor or an array of Ace editors, which can - * be further configured using the Ace API. - */ - exports.createEditor = function(options) { - if (!options) - options = {}; - - var query; - if (jQuery.type(options.parent) === 'string') { - query = jQuery('#' + options.parent, options.document); - } else if (options.parent) { - query = jQuery(options.parent); - } else if (jQuery.type(options.parentClass) === 'string') { - query = jQuery('.' + options.parentClass, options.document); - } else { - query = jQuery('#xtext-editor', options.document); - if (query.length == 0) - query = jQuery('.xtext-editor', options.document); - } - - var editors = []; - query.each(function(index, parent) { - var editor = ace.edit(parent); - editor.$blockScrolling = Infinity; - if (options.position) - jQuery(parent).css('position', options.position); - - var editorOptions = ServiceBuilder.mergeParentOptions(parent, options); - exports.createServices(editor, editorOptions); - if (editorOptions.theme) - editor.setTheme(editorOptions.theme); - else - editor.setTheme('ace/theme/eclipse'); - editors[index] = editor; - }); - - if (editors.length == 1) - return editors[0]; - else - return editors; - } - - function AceServiceBuilder(editor, xtextServices) { - this.editor = editor; - xtextServices.editorContext._annotations = []; - xtextServices.editorContext._occurrenceMarkers = []; - ServiceBuilder.call(this, xtextServices); - } - AceServiceBuilder.prototype = new ServiceBuilder(); - - /** - * Configure Xtext services for the given editor. The editor does not have to be created - * with createEditor(options). - */ - exports.createServices = function(editor, options) { - var xtextServices = { - options: options, - editorContext: new EditorContext(editor) - }; - var serviceBuilder = new AceServiceBuilder(editor, xtextServices); - serviceBuilder.createServices(); - xtextServices.serviceBuilder = serviceBuilder; - editor.xtextServices = xtextServices; - return xtextServices; - } - - /** - * Remove all services and listeners that have been previously created with createServices(editor, options). - */ - exports.removeServices = function(editor) { - if (!editor.xtextServices) - return; - var services = editor.xtextServices; - var session = editor.getSession(); - if (services.modelChangeListener) - editor.off('change', services.modelChangeListener); - if (services.changeCursorListener) - editor.getSelection().off('changeCursor', services.changeCursorListener); - if (editor.commands) { - if (services.options.enableSaveAction) - editor.commands.removeCommand('xtext-save'); - if (services.options.enableFormattingAction) - editor.commands.removeCommand('xtext-format'); - } - if (services.contentAssistService) - editor.setOptions({ enableBasicAutocompletion: false }); - var editorContext = services.editorContext; - var annotations = editorContext._annotations; - if (annotations) { - for (var i = 0; i < annotations.length; i++) { - session.removeMarker(annotations[i].markerId); - } - session.setAnnotations([]); - } - var occurrenceMarkers = editorContext._occurrenceMarkers; - if (occurrenceMarkers) { - for (var i = 0; i < occurrenceMarkers.length; i++) { - session.removeMarker(occurrenceMarkers[i]); - } - } - delete editor.xtextServices; - } - - /** - * Syntax highlighting (without semantic highlighting). - */ - AceServiceBuilder.prototype.setupSyntaxHighlighting = function() { - var options = this.services.options; - var session = this.editor.getSession(); - if (options.syntaxDefinition != 'none' && (options.syntaxDefinition || options.xtextLang)) { - var syntaxDefinition = options.syntaxDefinition; - if (!syntaxDefinition) - syntaxDefinition = 'xtext-resources/mode-' + options.xtextLang; - if (typeof(syntaxDefinition) === 'string') { - require([syntaxDefinition], function(mode) { - session.setMode(new mode.Mode); - }); - } else if (syntaxDefinition.Mode) { - session.setMode(new syntaxDefinition.Mode); - } - } - } - - /** - * Document update service. - */ - AceServiceBuilder.prototype.setupUpdateService = function(refreshDocument) { - var services = this.services; - var editorContext = services.editorContext; - var textUpdateDelay = services.options.textUpdateDelay; - if (!textUpdateDelay) - textUpdateDelay = 500; - services.modelChangeListener = function(event) { - if (!event._xtext_init) - editorContext.setDirty(true); - if (editorContext._modelChangeTimeout) - clearTimeout(editorContext._modelChangeTimeout); - editorContext._modelChangeTimeout = setTimeout(function() { - if (services.options.sendFullText) - refreshDocument(); - else - services.update(); - }, textUpdateDelay); - } - if (!services.options.resourceId || !services.options.loadFromServer) - services.modelChangeListener({_xtext_init: true}); - this.editor.on('change', services.modelChangeListener); - } - - /** - * Persistence services: load, save, and revert. - */ - AceServiceBuilder.prototype.setupPersistenceServices = function() { - var services = this.services; - if (services.options.enableSaveAction && this.editor.commands) { - this.editor.commands.addCommand({ - name: 'xtext-save', - bindKey: {win: 'Ctrl-S', mac: 'Command-S'}, - exec: function(editor) { - services.saveResource(); - } - }); - } - } - - /** - * Content assist service. - */ - AceServiceBuilder.prototype.setupContentAssistService = function() { - var completer = { - getCompletions: function(editor, session, pos, prefix, callback) { - // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=486615 - var services = editor.xtextServices; - var params = ServiceBuilder.copy(services.options); - var document = session.getDocument(); - params.offset = document.positionToIndex(pos); - var range = editor.getSelectionRange(); - params.selection = { - start: document.positionToIndex(range.start), - end: document.positionToIndex(range.end) - }; - services.contentAssistService.invoke(services.editorContext, params).done(function(entries) { - callback(null, entries.map(function(entry, index, a) { - return { - value: entry.proposal, - caption: (entry.label ? entry.label : entry.proposal), - meta: entry.description, - score: a.length - index - }; - })); - }); - } - } - this.editor.setOptions({ enableBasicAutocompletion: [completer] }); - } - - /** - * Add a problem marker to an editor session. - */ - AceServiceBuilder.prototype._addMarker = function(session, startOffset, endOffset, clazz, type) { - var document = session.getDocument(); - var start = document.indexToPosition(startOffset); - var end = document.indexToPosition(endOffset); - var mRange = require('ace/range'); - var range = new mRange.Range(start.row, start.column, end.row, end.column); - return session.addMarker(range, 'xtext-marker_' + clazz, 'text'); - } - - /** - * Validation service. - */ - AceServiceBuilder.prototype.doValidation = function() { - var services = this.services; - var editorContext = services.editorContext; - var session = this.editor.getSession(); - var self = this; - services.validate().always(function() { - var annotations = editorContext._annotations; - if (annotations) { - for (var i = 0; i < annotations.length; i++) { - var annotation = annotations[i]; - session.removeMarker(annotation.markerId); - } - } - editorContext._annotations = []; - }).done(function(result) { - for (var i = 0; i < result.issues.length; i++) { - var entry = result.issues[i]; - var marker = self._addMarker(session, entry.offset, entry.offset + entry.length, entry.severity); - var start = session.getDocument().indexToPosition(entry.offset); - editorContext._annotations.push({ - row: start.row, - column: start.column, - text: entry.description, - type: entry.severity, - markerId: marker - }); - } - session.setAnnotations(editorContext._annotations); - }); - } - - /** - * Occurrences service. - */ - AceServiceBuilder.prototype.setupOccurrencesService = function() { - var services = this.services; - var editorContext = services.editorContext; - var selectionUpdateDelay = services.options.selectionUpdateDelay; - if (!selectionUpdateDelay) - selectionUpdateDelay = 550; - var editor = this.editor; - var session = editor.getSession(); - var self = this; - services.changeCursorListener = function() { - if (editorContext._selectionChangeTimeout) { - clearTimeout(editorContext._selectionChangeTimeout); - } - editorContext._selectionChangeTimeout = setTimeout(function() { - var params = ServiceBuilder.copy(services.options); - params.offset = session.getDocument().positionToIndex(editor.getSelection().getCursor()); - services.occurrencesService.invoke(editorContext, params).always(function() { - var occurrenceMarkers = editorContext._occurrenceMarkers; - if (occurrenceMarkers) { - for (var i = 0; i < occurrenceMarkers.length; i++) { - var marker = occurrenceMarkers[i]; - session.removeMarker(marker); - } - } - editorContext._occurrenceMarkers = []; - }).done(function(occurrencesResult) { - for (var i = 0; i < occurrencesResult.readRegions.length; i++) { - var region = occurrencesResult.readRegions[i]; - var marker = self._addMarker(session, region.offset, region.offset + region.length, 'read'); - editorContext._occurrenceMarkers.push(marker); - } - for (var i = 0; i < occurrencesResult.writeRegions.length; i++) { - var region = occurrencesResult.writeRegions[i]; - var marker = self._addMarker(session, region.offset, region.offset + region.length, 'write'); - editorContext._occurrenceMarkers.push(marker); - } - }); - }, selectionUpdateDelay); - }; - editor.getSelection().on('changeCursor', services.changeCursorListener); - } - - /** - * Formatting service. - */ - AceServiceBuilder.prototype.setupFormattingService = function() { - var services = this.services; - if (services.options.enableFormattingAction && this.editor.commands) { - this.editor.commands.addCommand({ - name: 'xtext-format', - bindKey: {win: 'Ctrl-Shift-F', mac: 'Command-Shift-F'}, - exec: function(editor) { - services.format(); - } - }); - } - } - - return exports; -}); - diff --git a/org.eclipse.xtext.web/src/main/js/xtext/xtext-codemirror.js b/org.eclipse.xtext.web/src/main/js/xtext/xtext-codemirror.js deleted file mode 100644 index 3cdcfa13e64..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/xtext-codemirror.js +++ /dev/null @@ -1,473 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2017 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -/* - * Use `createEditor(options)` to create an Xtext editor. You can specify options either - * through the function parameter or through `data-editor-x` attributes, where x is an - * option name with camelCase converted to hyphen-separated. - * In addition to the options supported by CodeMirror (https://codemirror.net/doc/manual.html#config), - * the following options are available: - * - * baseUrl = "/" {String} - * The path segment where the Xtext service is found; see serviceUrl option. - * contentType {String} - * The content type included in requests to the Xtext server. - * dirtyElement {String | DOMElement} - * An element into which the dirty status class is written when the editor is marked dirty; - * it can be either a DOM element or an ID for a DOM element. - * dirtyStatusClass = 'dirty' {String} - * A CSS class name written into the dirtyElement when the editor is marked dirty. - * document {Document} - * The document; if not specified, the global document is used. - * enableContentAssistService = true {Boolean} - * Whether content assist should be enabled. - * enableCors = true {Boolean} - * Whether CORS should be enabled for service request. - * enableFormattingAction = false {Boolean} - * Whether the formatting action should be bound to the standard keystroke ctrl+shift+s / cmd+shift+f. - * enableFormattingService = true {Boolean} - * Whether text formatting should be enabled. - * enableGeneratorService = true {Boolean} - * Whether code generation should be enabled (must be triggered through JavaScript code). - * enableHighlightingService = true {Boolean} - * Whether semantic highlighting (computed on the server) should be enabled. - * enableOccurrencesService = true {Boolean} - * Whether marking occurrences should be enabled. - * enableSaveAction = false {Boolean} - * Whether the save action should be bound to the standard keystroke ctrl+s / cmd+s. - * enableValidationService = true {Boolean} - * Whether validation should be enabled. - * loadFromServer = true {Boolean} - * Whether to load the editor content from the server. - * mode {String} - * The name of the syntax highlighting mode to use; the mode has to be registered externally - * (see CodeMirror documentation). - * parent = 'xtext-editor' {String | DOMElement} - * The parent element for the view; it can be either a DOM element or an ID for a DOM element. - * parentClass = 'xtext-editor' {String} - * If the 'parent' option is not given, this option is used to find elements that match the given class name. - * resourceId {String} - * The identifier of the resource displayed in the text editor; this option is sent to the server to - * communicate required information on the respective resource. - * selectionUpdateDelay = 550 {Number} - * The number of milliseconds to wait after a selection change before Xtext services are invoked. - * sendFullText = false {Boolean} - * Whether the full text shall be sent to the server with each request; use this if you want - * the server to run in stateless mode. If the option is inactive, the server state is updated regularly. - * serviceUrl {String} - * The URL of the Xtext servlet; if no value is given, it is constructed using the baseUrl option in the form - * {location.protocol}//{location.host}{baseUrl}xtext-service - * showErrorDialogs = false {Boolean} - * Whether errors should be displayed in popup dialogs. - * syntaxDefinition {String} - * If the 'mode' option is not set, the default mode 'xtext/{xtextLang}' is used. Set this option to - * 'none' to suppress this behavior and disable syntax highlighting. - * textUpdateDelay = 500 {Number} - * The number of milliseconds to wait after a text change before Xtext services are invoked. - * xtextLang {String} - * The language name (usually the file extension configured for the language). - */ -define([ - 'jquery', - 'codemirror', - 'codemirror/addon/hint/show-hint', - 'xtext/compatibility', - 'xtext/ServiceBuilder', - 'xtext/CodeMirrorEditorContext', - 'codemirror/mode/javascript/javascript' -], function(jQuery, CodeMirror, ShowHint, compatibility, ServiceBuilder, EditorContext) { - - var exports = {}; - - /** - * Create one or more Xtext editor instances configured with the given options. - * The return value is either a CodeMirror editor or an array of CodeMirror editors. - */ - exports.createEditor = function(options) { - if (!options) - options = {}; - - var query; - if (jQuery.type(options.parent) === 'string') { - query = jQuery('#' + options.parent, options.document); - } else if (options.parent) { - query = jQuery(options.parent); - } else if (jQuery.type(options.parentClass) === 'string') { - query = jQuery('.' + options.parentClass, options.document); - } else { - query = jQuery('#xtext-editor', options.document); - if (query.length == 0) - query = jQuery('.xtext-editor', options.document); - } - - var editors = []; - query.each(function(index, parent) { - var editorOptions = ServiceBuilder.mergeParentOptions(parent, options); - if (!editorOptions.value) - editorOptions.value = jQuery(parent).text(); - var editor = CodeMirror(function(element) { - jQuery(parent).empty().append(element); - }, editorOptions); - - exports.createServices(editor, editorOptions); - editors[index] = editor; - }); - - if (editors.length == 1) - return editors[0]; - else - return editors; - } - - function CodeMirrorServiceBuilder(editor, xtextServices) { - this.editor = editor; - xtextServices.editorContext._highlightingMarkers = []; - xtextServices.editorContext._validationMarkers = []; - xtextServices.editorContext._occurrenceMarkers = []; - ServiceBuilder.call(this, xtextServices); - } - CodeMirrorServiceBuilder.prototype = new ServiceBuilder(); - - /** - * Configure Xtext services for the given editor. The editor does not have to be created - * with createEditor(options). - */ - exports.createServices = function(editor, options) { - if (options.enableValidationService || options.enableValidationService === undefined) { - editor.setOption('gutters', ['annotations-gutter']); - } - var xtextServices = { - options: options, - editorContext: new EditorContext(editor) - }; - var serviceBuilder = new CodeMirrorServiceBuilder(editor, xtextServices); - serviceBuilder.createServices(); - xtextServices.serviceBuilder = serviceBuilder; - editor.xtextServices = xtextServices; - return xtextServices; - } - - /** - * Remove all services and listeners that have been previously created with createServices(editor, options). - */ - exports.removeServices = function(editor) { - if (!editor.xtextServices) - return; - var services = editor.xtextServices; - if (services.modelChangeListener) - editor.off('changes', services.modelChangeListener); - if (services.cursorActivityListener) - editor.off('cursorActivity', services.cursorActivityListener); - if (services.saveKeyMap) - editor.removeKeyMap(services.saveKeyMap); - if (services.contentAssistKeyMap) - editor.removeKeyMap(services.contentAssistKeyMap); - if (services.formatKeyMap) - editor.removeKeyMap(services.formatKeyMap); - var editorContext = services.editorContext; - var highlightingMarkers = editorContext._highlightingMarkers; - if (highlightingMarkers) { - for (var i = 0; i < highlightingMarkers.length; i++) { - highlightingMarkers[i].clear(); - } - } - if (editorContext._validationAnnotations) - services.serviceBuilder._clearAnnotations(editorContext._validationAnnotations); - var validationMarkers = editorContext._validationMarkers; - if (validationMarkers) { - for (var i = 0; i < validationMarkers.length; i++) { - validationMarkers[i].clear(); - } - } - var occurrenceMarkers = editorContext._occurrenceMarkers; - if (occurrenceMarkers) { - for (var i = 0; i < occurrenceMarkers.length; i++) { - occurrenceMarkers[i].clear(); - } - } - delete editor.xtextServices; - } - - /** - * Syntax highlighting (without semantic highlighting). - */ - CodeMirrorServiceBuilder.prototype.setupSyntaxHighlighting = function() { - var options = this.services.options; - // If the mode option is set, syntax highlighting has already been configured by CM - if (!options.mode && options.syntaxDefinition != 'none' && options.xtextLang) { - this.editor.setOption('mode', 'xtext/' + options.xtextLang); - } - } - - /** - * Document update service. - */ - CodeMirrorServiceBuilder.prototype.setupUpdateService = function(refreshDocument) { - var services = this.services; - var editorContext = services.editorContext; - var textUpdateDelay = services.options.textUpdateDelay; - if (!textUpdateDelay) - textUpdateDelay = 500; - services.modelChangeListener = function(event) { - if (!event._xtext_init) - editorContext.setDirty(true); - if (editorContext._modelChangeTimeout) - clearTimeout(editorContext._modelChangeTimeout); - editorContext._modelChangeTimeout = setTimeout(function() { - if (services.options.sendFullText) - refreshDocument(); - else - services.update(); - }, textUpdateDelay); - } - if (!services.options.resourceId || !services.options.loadFromServer) - services.modelChangeListener({_xtext_init: true}); - this.editor.on('changes', services.modelChangeListener); - } - - /** - * Persistence services: load, save, and revert. - */ - CodeMirrorServiceBuilder.prototype.setupPersistenceServices = function() { - var services = this.services; - if (services.options.enableSaveAction) { - var userAgent = navigator.userAgent.toLowerCase(); - var saveFunction = function(editor) { - services.saveResource(); - }; - services.saveKeyMap = /mac os/.test(userAgent) ? {'Cmd-S': saveFunction}: {'Ctrl-S': saveFunction}; - this.editor.addKeyMap(services.saveKeyMap); - } - } - - /** - * Content assist service. - */ - CodeMirrorServiceBuilder.prototype.setupContentAssistService = function() { - var services = this.services; - var editorContext = services.editorContext; - services.contentAssistKeyMap = {'Ctrl-Space': function(editor) { - var params = ServiceBuilder.copy(services.options); - var cursor = editor.getCursor(); - params.offset = editor.indexFromPos(cursor); - services.contentAssistService.invoke(editorContext, params).done(function(entries) { - editor.showHint({hint: function(editor, options) { - return { - list: entries.map(function(entry) { - var displayText; - if (entry.label) - displayText = entry.label; - else - displayText = entry.proposal; - if (entry.description) - displayText += ' (' + entry.description + ')'; - var prefixLength = 0 - if (entry.prefix) - prefixLength = entry.prefix.length - return { - text: entry.proposal, - displayText: displayText, - from: { - line: cursor.line, - ch: cursor.ch - prefixLength - } - }; - }), - to: cursor - }; - }}); - }); - }}; - this.editor.addKeyMap(services.contentAssistKeyMap); - } - - /** - * Semantic highlighting service. - */ - CodeMirrorServiceBuilder.prototype.doHighlighting = function() { - var services = this.services; - var editorContext = services.editorContext; - var editor = this.editor; - services.computeHighlighting().always(function() { - var highlightingMarkers = editorContext._highlightingMarkers; - if (highlightingMarkers) { - for (var i = 0; i < highlightingMarkers.length; i++) { - highlightingMarkers[i].clear(); - } - } - editorContext._highlightingMarkers = []; - }).done(function(result) { - for (var i = 0; i < result.regions.length; ++i) { - var region = result.regions[i]; - var from = editor.posFromIndex(region.offset); - var to = editor.posFromIndex(region.offset + region.length); - region.styleClasses.forEach(function(styleClass) { - var marker = editor.markText(from, to, {className: styleClass}); - editorContext._highlightingMarkers.push(marker); - }); - } - }); - } - - var annotationWeight = { - error: 30, - warning: 20, - info: 10 - }; - CodeMirrorServiceBuilder.prototype._getAnnotationWeight = function(annotation) { - if (annotationWeight[annotation] !== undefined) - return annotationWeight[annotation]; - else - return 0; - } - - CodeMirrorServiceBuilder.prototype._clearAnnotations = function(annotations) { - var editor = this.editor; - for (var i = 0; i < annotations.length; i++) { - var annotation = annotations[i]; - if (annotation) { - editor.setGutterMarker(i, 'annotations-gutter', null); - annotations[i] = undefined; - } - } - } - - CodeMirrorServiceBuilder.prototype._refreshAnnotations = function(annotations) { - var editor = this.editor; - for (var i = 0; i < annotations.length; i++) { - var annotation = annotations[i]; - if (annotation) { - var classProp = ' class="xtext-annotation_' + annotation.type + '"'; - var titleProp = annotation.description ? ' title="' + annotation.description.replace(/"/g, '"') + '"' : ''; - var element = jQuery('').get(0); - editor.setGutterMarker(i, 'annotations-gutter', element); - } - } - } - - /** - * Validation service. - */ - CodeMirrorServiceBuilder.prototype.doValidation = function() { - var services = this.services; - var editorContext = services.editorContext; - var editor = this.editor; - var self = this; - services.validate().always(function() { - if (editorContext._validationAnnotations) - self._clearAnnotations(editorContext._validationAnnotations); - else - editorContext._validationAnnotations = []; - var validationMarkers = editorContext._validationMarkers; - if (validationMarkers) { - for (var i = 0; i < validationMarkers.length; i++) { - validationMarkers[i].clear(); - } - } - editorContext._validationMarkers = []; - }).done(function(result) { - var validationAnnotations = editorContext._validationAnnotations; - for (var i = 0; i < result.issues.length; i++) { - var entry = result.issues[i]; - var annotation = validationAnnotations[entry.line - 1]; - var weight = self._getAnnotationWeight(entry.severity); - if (annotation) { - if (annotation.weight < weight) { - annotation.type = entry.severity; - annotation.weight = weight; - } - if (annotation.description) - annotation.description += '\n' + entry.description; - else - annotation.description = entry.description; - } else { - validationAnnotations[entry.line - 1] = { - type: entry.severity, - weight: weight, - description: entry.description - }; - } - var from = editor.posFromIndex(entry.offset); - var to = editor.posFromIndex(entry.offset + entry.length); - var marker = editor.markText(from, to, { - className: 'xtext-marker_' + entry.severity, - title: entry.description - }); - editorContext._validationMarkers.push(marker); - } - self._refreshAnnotations(validationAnnotations); - }); - } - - /** - * Occurrences service. - */ - CodeMirrorServiceBuilder.prototype.setupOccurrencesService = function() { - var services = this.services; - var editorContext = services.editorContext; - var selectionUpdateDelay = services.options.selectionUpdateDelay; - if (!selectionUpdateDelay) - selectionUpdateDelay = 550; - var editor = this.editor; - var self = this; - services.cursorActivityListener = function() { - if (editorContext._selectionChangeTimeout) { - clearTimeout(editorContext._selectionChangeTimeout); - } - editorContext._selectionChangeTimeout = setTimeout(function() { - var params = ServiceBuilder.copy(services.options); - var cursor = editor.getCursor(); - params.offset = editor.indexFromPos(cursor); - services.occurrencesService.invoke(editorContext, params).always(function() { - var occurrenceMarkers = editorContext._occurrenceMarkers; - if (occurrenceMarkers) { - for (var i = 0; i < occurrenceMarkers.length; i++) { - occurrenceMarkers[i].clear(); - } - } - editorContext._occurrenceMarkers = []; - }).done(function(occurrencesResult) { - for (var i = 0; i < occurrencesResult.readRegions.length; i++) { - var region = occurrencesResult.readRegions[i]; - var from = editor.posFromIndex(region.offset); - var to = editor.posFromIndex(region.offset + region.length); - var marker = editor.markText(from, to, {className: 'xtext-marker_read'}); - editorContext._occurrenceMarkers.push(marker); - } - for (var i = 0; i < occurrencesResult.writeRegions.length; i++) { - var region = occurrencesResult.writeRegions[i]; - var from = editor.posFromIndex(region.offset); - var to = editor.posFromIndex(region.offset + region.length); - var marker = editor.markText(from, to, {className: 'xtext-marker_write'}); - editorContext._occurrenceMarkers.push(marker); - } - }); - }, selectionUpdateDelay); - } - editor.on('cursorActivity', services.cursorActivityListener); - } - - /** - * Formatting service. - */ - CodeMirrorServiceBuilder.prototype.setupFormattingService = function() { - var services = this.services; - if (services.options.enableFormattingAction) { - var userAgent = navigator.userAgent.toLowerCase(); - var formatFunction = function(editor) { - services.format(); - }; - services.formatKeyMap = /mac os/.test(userAgent) ? {'Shift-Cmd-F': formatFunction}: {'Shift-Ctrl-S': formatFunction}; - this.editor.addKeyMap(services.formatKeyMap); - } - } - - return exports; -}); - diff --git a/org.eclipse.xtext.web/src/main/js/xtext/xtext-orion.js b/org.eclipse.xtext.web/src/main/js/xtext/xtext-orion.js deleted file mode 100644 index b5ba673563f..00000000000 --- a/org.eclipse.xtext.web/src/main/js/xtext/xtext-orion.js +++ /dev/null @@ -1,511 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2016 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -/* - * Use `createEditor(options)` to create an Xtext editor. You can specify options either - * through the function parameter or through `data-editor-x` attributes, where x is an - * option name with camelCase converted to hyphen-separated. - * The following options are available: - * - * baseUrl = "/" {String} - * The path segment where the Xtext service is found; see serviceUrl option. - * contentAssistCharTriggers {String} - * Characters that invoke the content assist service when typed (see Orion documentation). - * contentAssistExcludedStyles {String} - * Excluded styles for character triggers (see Orion documentation). - * contentType {String} - * The content type included in requests to the Xtext server. - * dirtyElement {String | DOMElement} - * An element into which the dirty status class is written when the editor is marked dirty; - * it can be either a DOM element or an ID for a DOM element. - * dirtyStatusClass = 'dirty' {String} - * A CSS class name written into the dirtyElement when the editor is marked dirty. - * document {Document} - * The document; if not specified, the global document is used. - * enableContentAssistService = true {Boolean} - * Whether content assist should be enabled. - * enableFormattingAction = false {Boolean} - * Whether the formatting action should be bound to the standard keystroke ctrl+shift+f / cmd+shift+f. - * enableFormattingService = true {Boolean} - * Whether text formatting should be enabled. - * enableGeneratorService = true {Boolean} - * Whether code generation should be enabled (must be triggered through JavaScript code). - * enableHoverService = true {Boolean} - * Whether mouse hover information should be enabled. - * enableHighlightingService = true {Boolean} - * Whether semantic highlighting (computed on the server) should be enabled. - * enableOccurrencesService = true {Boolean} - * Whether marking occurrences should be enabled. - * enableSaveAction = false {Boolean} - * Whether the save action should be bound to the standard keystroke ctrl+s / cmd+s. - * enableValidationService = true {Boolean} - * Whether validation should be enabled. - * loadFromServer = true {Boolean} - * Whether to load the editor content from the server. - * mouseHoverDelay = 500 {Number} - * The number of milliseconds to wait after a mouse hover before the information tooltip is displayed. - * parent = 'xtext-editor' {String | DOMElement} - * The parent element for the view; it can be either a DOM element or an ID for a DOM element. - * parentClass = 'xtext-editor' {String} - * If the 'parent' option is not given, this option is used to find elements that match the given class name. - * randomContentType = true {Boolean} - * Whether to generate a random content type to avoid clashes between multiple editor instances. - * resourceId {String} - * The identifier of the resource displayed in the text editor; this option is sent to the server to - * communicate required information on the respective resource. - * selectionUpdateDelay = 550 {Number} - * The number of milliseconds to wait after a selection change before Xtext services are invoked. - * sendFullText = false {Boolean} - * Whether the full text shall be sent to the server with each request; use this if you want - * the server to run in stateless mode. If the option is inactive, the server state is updated regularly. - * serviceUrl {String} - * The URL of the Xtext servlet; if no value is given, it is constructed using the baseUrl option in the form - * {location.protocol}//{location.host}{baseUrl}xtext-service - * showErrorDialogs = false {Boolean} - * Whether errors should be displayed in popup dialogs. - * syntaxDefinition {String} - * A path to a JS file defining an Orion syntax definition; if no path is given, it is built from - * the 'xtextLang' option in the form 'xtext-resources/{xtextLang}-syntax'. Set this option to 'none' to - * disable syntax highlighting. - * textUpdateDelay = 500 {Number} - * The number of milliseconds to wait after a text change before Xtext services are invoked. - * xtextLang {String} - * The language name (usually the file extension configured for the language). - */ -define([ - 'jquery', - 'orion/Deferred', - 'orion/keyBinding', - 'orion/editor/annotations', - 'embeddedEditor/builder/embeddedEditor', - 'xtext/compatibility', - 'xtext/ServiceBuilder', - 'xtext/OrionEditorContext' -], function(jQuery, OrionDeferred, mKeyBinding, mAnnotations, mEmbeddedEditor, compatibility, - ServiceBuilder, EditorContext) { - - var exports = {}; - - /** - * Create one or more Xtext editor instances configured with the given options. - * The return value is a Deferred object that eventually resolves to either an Orion - * editor viewer or an array of Orion editor viewers. - */ - exports.createEditor = function(options) { - if (!options) - options = {}; - - var query; - if (jQuery.type(options.parent) === 'string') { - query = jQuery('#' + options.parent, options.document); - } else if (options.parent) { - query = jQuery(options.parent); - } else if (jQuery.type(options.parentClass) === 'string') { - query = jQuery('.' + options.parentClass, options.document); - } else { - query = jQuery('#xtext-editor', options.document); - if (query.length == 0) - query = jQuery('.xtext-editor', options.document); - } - - var startupOptions = options.startupOptions; - if (!startupOptions) - startupOptions = { defaultPlugins: ['webToolsPlugin.html'] }; - var embeddedEditor = new mEmbeddedEditor(startupOptions); - var editorData = []; - query.each(function(index, parent) { - var editorOptions = ServiceBuilder.mergeParentOptions(parent, options); - var contentType = exports.registerContentType(embeddedEditor, editorOptions); - editorData.push({ - parent: parent, - options: editorOptions, - contentType: contentType - }); - }); - - var deferred = jQuery.Deferred(); - var editorViewers = []; - var finishedViewers = 0; - editorData.forEach(function(data, index) { - var contentType = data.contentType; - var content = jQuery(data.parent).text(); - var createResult = embeddedEditor.create({parent: data.parent, contentType: contentType}); - - function onEditorCreated(editorViewer) { - var xtextServices = exports.createServices(editorViewer, data.options, contentType); - if (!xtextServices.options.loadFromServer) - editorViewer.setContents(content, contentType); - editorViewers[index] = editorViewer; - finishedViewers++; - if (finishedViewers == query.length) { - if (finishedViewers == 1) - deferred.resolve(editorViewer); - else - deferred.resolve(editorViewers); - } - } - function onEditorFailed(error) { - deferred.reject(error); - } - - var syntaxDefinition = data.options.syntaxDefinition; - if (syntaxDefinition != 'none' && (jQuery.type(syntaxDefinition) === 'string' || !syntaxDefinition && data.options.xtextLang)) { - if (!syntaxDefinition) - syntaxDefinition = 'xtext-resources/' + data.options.xtextLang + '-syntax'; - require([syntaxDefinition], function(grammar) { - data.options.syntaxDefinition = grammar; - createResult.then(onEditorCreated, onEditorFailed); - }); - } else { - createResult.then(onEditorCreated, onEditorFailed); - } - }); - if (query.length == 0) - deferred.reject(); - return deferred.promise(); - } - - function OrionServiceBuilder(editorViewer, xtextServices) { - this.viewer = editorViewer; - ServiceBuilder.call(this, xtextServices); - } - OrionServiceBuilder.prototype = new ServiceBuilder(); - - /** - * Register the content type derived from the given editor options. This has to be done - * before the editor is created. - */ - exports.registerContentType = function(embeddedEditor, options) { - var extension = options.xtextLang; - if (!extension && options.resourceId) - extension = options.resourceId.split(/[?#]/)[0].split('.').pop(); - var contentType = options.contentType; - if (!contentType && options.xtextLang) - contentType = 'xtext/' + options.xtextLang; - else if (!contentType) - contentType = 'xtext'; - if (options.randomContentType === undefined || options.randomContentType) - contentType = contentType + '_' + Math.floor(Math.random() * 2147483648).toString(16); - embeddedEditor.serviceRegistry.registerService('orion.core.contenttype', {}, { - contentTypes: [{ - id: contentType, - extension: [extension], - name: 'Xtext Language', - 'extends': 'text/plain' - }] - }); - return contentType; - } - - /** - * Configure Xtext services for the given editor. The editor does not have to be created - * with createEditor(options). - */ - exports.createServices = function(editorViewer, options, contentType) { - if (!contentType && options.contentType) - contentType = options.contentType; - var xtextServices = { - options: options, - editorContext: new EditorContext(editorViewer, contentType), - contentType: contentType, - _highlightAnnotationTypes: [] - }; - var serviceBuilder = new OrionServiceBuilder(editorViewer, xtextServices); - serviceBuilder.createServices(); - xtextServices.serviceBuilder = serviceBuilder; - editorViewer.xtextServices = xtextServices; - return xtextServices; - } - - /** - * Remove all services and listeners that have been previously created with createServices(editor, options). - */ - exports.removeServices = function(editorViewer) { - if (!editorViewer.xtextServices) - return; - var services = editorViewer.xtextServices; - if (services.highlighterRegistration) - services.highlighterRegistration.unregister(); - if (services.modelRegistration) - services.modelRegistration.unregister(); - if (services.contentAssistRegistration) - services.contentAssistRegistration.unregister(); - if (services.hoverRegistration) - services.hoverRegistration.unregister(); - if (services.occurrencesRegistration) - services.occurrencesRegistration.unregister(); - if (services.formatCommandRegistration) - services.formatCommandRegistration.unregister(); - if (services.saveEventListener) - editorViewer.editor.removeEventListener('InputChanged', services.saveEventListener); - editorViewer.editor.showAnnotations([], services._highlightAnnotationTypes); - editorViewer.editor.showProblems([]); - delete editorViewer.xtextServices; - } - - /** - * Syntax highlighting (without semantic highlighting). - */ - OrionServiceBuilder.prototype.setupSyntaxHighlighting = function() { - var services = this.services; - var syntaxDefinition = services.options.syntaxDefinition; - if (jQuery.type(syntaxDefinition) !== 'string') { - var contentType = services.contentType; - if (!syntaxDefinition.contentTypes) - syntaxDefinition.contentTypes = [contentType]; - else if (jQuery.inArray(contentType, syntaxDefinition.contentTypes) < 0) - syntaxDefinition.contentTypes.push(contentType); - services.highlighterRegistration = this.viewer.serviceRegistry.registerService( - 'orion.edit.highlighter', {}, syntaxDefinition); - } - } - - /** - * Document update service. - */ - OrionServiceBuilder.prototype.setupUpdateService = function(refreshDocument) { - var services = this.services; - var editorContext = services.editorContext; - var textUpdateDelay = services.options.textUpdateDelay; - if (!textUpdateDelay) - textUpdateDelay = 500; - function modelChangeListener(event) { - // The first event is triggered by editorViewer.setContents(..) - if (editorContext._xtext_init) - editorContext._xtext_init = false; - else - editorContext.setDirty(true); - if (editorContext._modelChangeTimeout) - clearTimeout(editorContext._modelChangeTimeout); - editorContext._modelChangeTimeout = setTimeout(function() { - if (services.options.sendFullText) - refreshDocument(); - else - services.update(); - }, textUpdateDelay); - } - editorContext._xtext_init = true; - services.modelRegistration = this.viewer.serviceRegistry.registerService('orion.edit.model', - {onModelChanged: modelChangeListener}, {contentType: [services.contentType]}); - } - - /** - * Persistence services: load, save, and revert. - */ - OrionServiceBuilder.prototype.setupPersistenceServices = function() { - var services = this.services; - var editorViewer = this.viewer; - if (services.options.enableSaveAction) { - editorViewer.inputManager.setAutoSaveTimeout(-1); - services.saveEventListener = function(event) { - if (event.contentsSaved) { - services.saveResource(); - } - } - editorViewer.editor.addEventListener('InputChanged', services.saveEventListener); - } - } - - /** - * Content assist service. - */ - OrionServiceBuilder.prototype.setupContentAssistService = function() { - var services = this.services; - var options = services.options; - function computeContentAssist(orionContext, params) { - ServiceBuilder.mergeOptions(params, options); - var deferred = new OrionDeferred(); - services.contentAssistService.invoke(services.editorContext, params).done(function(entries) { - deferred.resolve(entries.map(function(entry) { - return { - proposal: entry.proposal, - prefix: entry.prefix, - overwrite: true, - name: (entry.label ? entry.label: entry.proposal), - description: entry.description, - additionalEdits: entry.textReplacements, - positions: entry.editPositions, - escapePosition: entry.escapePosition - }; - })); - }).fail(function() { - deferred.reject(); - }); - return deferred.promise; - } - var editorViewer = this.viewer; - var serviceInfo = { - name: 'Xtext content assist service', - contentType: [services.contentType] - }; - if (options.contentAssistCharTriggers) { - serviceInfo.charTriggers = options.contentAssistCharTriggers; - serviceInfo.excludedStyles = options.contentAssistExcludedStyles; - if (editorViewer.settings) - editorViewer.settings.contentAssistAutoTrigger = true; - } - services.contentAssistRegistration = editorViewer.serviceRegistry.registerService('orion.edit.contentAssist', - {computeContentAssist: computeContentAssist}, serviceInfo); - } - - /** - * On-demand registers and returns the annotation type with the given name. - */ - OrionServiceBuilder.prototype._getHighlightAnnotationType = function(typeName) { - var type = mAnnotations.AnnotationType.getType(typeName); - if (type) - return typeName; - var properties = { - title: typeName, - style: {styleClass: "annotation " + typeName}, - html: "
", - overviewStyle: {styleClass: "annotationOverview " + typeName} - }; - properties.rangeStyle = {styleClass: "annotationRange " + typeName}; - var newType = mAnnotations.AnnotationType.registerType(typeName, properties); - this.services._highlightAnnotationTypes.push(newType); - this.viewer.editor.getAnnotationStyler().addAnnotationType(newType); - return newType; - } - - /** - * Semantic highlighting service. - */ - OrionServiceBuilder.prototype.doHighlighting = function() { - var editorViewer = this.viewer; - var services = this.services; - var self = this; - services.computeHighlighting().done(function(result) { - var annotations = []; - for (var i = 0; i < result.regions.length; ++i) { - var region = result.regions[i]; - region.styleClasses.forEach(function(styleClass) { - annotations.push({ - description: '', - start: region.offset, - end: region.offset + region.length, - styleClass: styleClass - }); - }); - } - editorViewer.editor.showAnnotations(annotations, services._highlightAnnotationTypes, null, function(annotation) { - return self._getHighlightAnnotationType(annotation.styleClass, editorViewer, services); - }); - }); - } - - /** - * Validation service. - */ - OrionServiceBuilder.prototype.doValidation = function() { - var editorViewer = this.viewer; - var services = this.services; - services.validate().done(function(result) { - editorViewer.editor.getEditorContext().showMarkers(result.issues.map(function(entry) { - return { - description: entry.description, - start: entry.offset, - end: entry.offset + entry.length, - severity: entry.severity - }; - })); - }); - } - - /** - * Hover service. - */ - OrionServiceBuilder.prototype.setupHoverService = function() { - var services = this.services; - var options = services.options; - function computeHoverInfo(orionContext, params) { - var deferred = new OrionDeferred(); - ServiceBuilder.mergeOptions(params, options); - services.hoverService.invoke(services.editorContext, params).done(function(entry) { - deferred.resolve({ - content: entry.title + entry.content, - type: 'html' - }); - }).fail(function() { - deferred.resolve(null); - }); - return deferred.promise; - } - services.hoverRegistration = this.viewer.serviceRegistry.registerService('orion.edit.hover', - {computeHoverInfo: computeHoverInfo}, - {name: 'Xtext hover service', contentType: [services.contentType]}); - } - - /** - * Occurrences service. - */ - OrionServiceBuilder.prototype.setupOccurrencesService = function() { - var services = this.services; - var options = services.options; - function computeOccurrences(orionContext, params) { - var deferred = new OrionDeferred(); - ServiceBuilder.mergeOptions(params, options); - services.occurrencesService.invoke(services.editorContext, params).done(function(occurrencesResult) { - var readAnnotations = occurrencesResult.readRegions.map(function(region) { - return { - start: region.offset, - end: region.offset + region.length, - readAccess: true - }; - }); - var writeAnnotations = occurrencesResult.writeRegions.map(function(region) { - return { - start: region.offset, - end: region.offset + region.length, - readAccess: false - }; - }); - deferred.resolve(readAnnotations.concat(writeAnnotations)); - }).fail(function() { - deferred.resolve({}); - }); - return deferred.promise; - } - var editorViewer = this.viewer; - if (editorViewer.settings) - editorViewer.settings.showOccurrences = true; - services.occurrencesRegistration = editorViewer.serviceRegistry.registerService('orion.edit.occurrences', - {computeOccurrences: computeOccurrences}, {contentType: [services.contentType]}); - } - - /** - * Formatting service. - */ - OrionServiceBuilder.prototype.setupFormattingService = function() { - var services = this.services; - var options = services.options; - if (options.enableFormattingAction) { - function execute(orionContext, params) { - var deferred = new OrionDeferred(); - ServiceBuilder.mergeOptions(params, options); - services.formattingService.invoke(services.editorContext, params).done(function(result) { - deferred.resolve(); - }).fail(function() { - deferred.reject(); - }); - return deferred.promise; - } - services.formatCommandRegistration = this.viewer.serviceRegistry.registerService('orion.edit.command', - {execute: execute}, { - name: 'Xtext formatting service', - id: 'xtext.formatter', - key: ['f', true, true], - contentType: [services.contentType] - }); - } - } - - return exports; -}); - diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/AbstractWebServerTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/AbstractWebServerTest.java deleted file mode 100644 index 0900196a852..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/AbstractWebServerTest.java +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.nio.file.Files; -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.xtext.formatting.ILineSeparatorInformation; -import org.eclipse.xtext.util.DisposableRegistry; -import org.eclipse.xtext.util.Modules2; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.example.statemachine.StatemachineStandaloneSetup; -import org.eclipse.xtext.web.example.statemachine.ide.StatemachineIdeModule; -import org.eclipse.xtext.web.example.statemachine.tests.StatemachineInjectorProvider; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.web.server.test.languages.StatemachineWebModule; -import org.eclipse.xtext.xbase.lib.Exceptions; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; - -import com.google.inject.Guice; -import com.google.inject.Inject; -import com.google.inject.Injector; - -public abstract class AbstractWebServerTest { - public static class TestLineSeparatorInformation implements ILineSeparatorInformation { - @Override - public String getLineSeparator() { - return "\n"; - } - } - - public static class TestResourceBaseProvider implements IResourceBaseProvider { - private final Map testFiles = new HashMap(); - - @Override - public URI getFileURI(String resourceId) { - return testFiles.get(resourceId); - } - } - - protected String normalizeLineSeparator(String value) { - return value.replace("\r\n", "\n"); - } - - public void assertEquals(CharSequence expected, CharSequence actual) { - Assert.assertEquals(normalizeLineSeparator(expected.toString()), - normalizeLineSeparator(actual.toString().toString())); - } - - private final StatemachineInjectorProvider injectorProvider = new StatemachineInjectorProvider() { - @Override - protected Injector internalCreateInjector() { - return new StatemachineStandaloneSetup() { - @Override - public Injector createInjector() { - StatemachineWebModule webModule = getWebModule(); - webModule.setResourceBaseProvider(resourceBaseProvider); - return Guice.createInjector(Modules2.mixin(getRuntimeModule(), - getIdeModule(), webModule)); - } - }.createInjectorAndDoEMFRegistration(); - } - }; - - private AbstractWebServerTest.TestResourceBaseProvider resourceBaseProvider; - - @Inject - private DisposableRegistry disposableRegistry; - - @Inject - private XtextServiceDispatcher dispatcher; - - protected com.google.inject.Module getIdeModule() { - return new StatemachineIdeModule(); - } - - protected StatemachineWebModule getWebModule() { - return new StatemachineWebModule(); - } - - protected com.google.inject.Module getRuntimeModule() { - - return new StatemachineRuntimeModule() { - @SuppressWarnings("unused") - public Class bindILineSeparatorInformation() { - return AbstractWebServerTest.TestLineSeparatorInformation.class; - } - }; - } - - @Before - public void setup() { - resourceBaseProvider = new AbstractWebServerTest.TestResourceBaseProvider(); - Injector injector = injectorProvider.getInjector(); - injector.injectMembers(this); - injectorProvider.setupRegistry(); - } - - @After - public void teardown() { - disposableRegistry.dispose(); - resourceBaseProvider.testFiles.clear(); - injectorProvider.restoreRegistry(); - } - - protected File createFile(String content) { - try { - File file = Files.createTempFile("test", ".statemachine").toFile(); - resourceBaseProvider.testFiles.put(file.getName(), URI.createFileURI(file.getAbsolutePath())); - FileWriter writer = new FileWriter(file); - writer.write(content); - writer.close(); - file.deleteOnExit(); - return file; - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - protected XtextServiceDispatcher.ServiceDescriptor getService(Map parameters) { - return getService(parameters, new HashMapSession()); - } - - protected XtextServiceDispatcher.ServiceDescriptor getService(Map parameters, ISession session) { - MockServiceContext serviceContext = new MockServiceContext(parameters, session); - return dispatcher.getService(serviceContext); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Bug489571Test.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Bug489571Test.java deleted file mode 100644 index b96fd808a43..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Bug489571Test.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Copyright (c) 2016, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; - -import org.eclipse.xtext.formatting.IIndentationInformation; -import org.eclipse.xtext.formatting.ILineSeparatorInformation; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.formatting.FormattingResult; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class Bug489571Test extends AbstractWebServerTest { - public static class Bug489571IndentationInformation implements IIndentationInformation { - @Override - public String getIndentString() { - return " "; - } - } - - @Override - protected com.google.inject.Module getRuntimeModule() { - return new StatemachineRuntimeModule() { - @SuppressWarnings("unused") - public Class bindIIndentationInformation() { - return Bug489571IndentationInformation.class; - } - - @SuppressWarnings("unused") - public Class bindILineSeparatorInformation() { - return TestLineSeparatorInformation.class; - } - }; - } - - @Test - public void testFormatFile() { - File file = createFile("/* bla */ output signal x state foo set x = true end"); - XtextServiceDispatcher.ServiceDescriptor format = getService( - ImmutableMap.builder() - .put("serviceType", "format") - .put("resource", file.getName()) - .build()); - Assert.assertTrue(format.isHasSideEffects()); - FormattingResult result = (FormattingResult) format.getService().apply(); - String expectedResult = - "FormattingResult [\n" + - " stateId = \"-7fffffff\"\n" + - " formattedText = \"/* bla */ output signal x\\nstate foo\\n set x = true\\nend\\n\"\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testFormatSelection() { - File file = createFile("/* bla */ output signal x state foo set x = true end "); - XtextServiceDispatcher.ServiceDescriptor format = getService( - ImmutableMap.builder() - .put("serviceType", "format") - .put("selectionStart", "26") - .put("selectionEnd", "52") - .put("resource", file.getName()) - .build()); - Assert.assertTrue(format.isHasSideEffects()); - FormattingResult result = (FormattingResult) format.getService().apply(); - String expectedResult = - "FormattingResult [\n" + - " stateId = \"-7fffffff\"\n" + - " formattedText = \"state foo\\n set x = true\\nend\"\n replaceRegion = [26:26]\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ContentAssistTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ContentAssistTest.java deleted file mode 100644 index 2d4f17e20a1..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ContentAssistTest.java +++ /dev/null @@ -1,538 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; - -import org.eclipse.xtext.web.example.statemachine.ide.StatemachineIdeModule; -import org.eclipse.xtext.web.example.statemachine.ide.StatemachineTemplateProposalProvider; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.web.server.ServiceConflictResult; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.contentassist.ContentAssistResult; -import org.hamcrest.MatcherAssert; -import org.hamcrest.core.IsInstanceOf; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class ContentAssistTest extends AbstractWebServerTest { - public static class StatemachineTemplateProposalProvider2 extends StatemachineTemplateProposalProvider { - @Override - protected String getLineDelimiter() { - return "\n"; - } - } - - @Override - protected com.google.inject.Module getIdeModule() { - return new StatemachineIdeModule() { - @SuppressWarnings("unused") - public Class bindStatemachineTemplateProposalProvider() { - return ContentAssistTest.StatemachineTemplateProposalProvider2.class; - } - }; - } - - protected void assertContentAssistResult(CharSequence resourceContent, CharSequence expectedResult) { - String contentString = resourceContent.toString(); - int cursorOffset = contentString.indexOf("|"); - if (cursorOffset >= 0) { - contentString = contentString.substring(0, cursorOffset)+ contentString.substring(cursorOffset+ 1); - assertContentAssistResult(contentString, cursorOffset, expectedResult); - } else { - assertContentAssistResult(resourceContent, 0, expectedResult); - } - } - - protected void assertContentAssistResult(CharSequence resourceContent, int offset, CharSequence expectedResult) { - XtextServiceDispatcher.ServiceDescriptor contentAssist = getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("fullText", resourceContent.toString()) - .put("caretOffset", Integer.valueOf(offset).toString()) - .build()); - Assert.assertFalse(contentAssist.isHasSideEffects()); - ContentAssistResult result = (ContentAssistResult) contentAssist.getService().apply(); - assertEquals(expectedResult.toString(), result.toString()); - } - - @Test - public void testKeywords() { - String model = "state foo | end"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"state name\\n \\nend\\n\"\n" + - " label = \"state\"\n" + - " description = \"Create a new state\"\n" + - " escapePosition = 22\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList (\n" + - " [16:4]\n" + - " )\n" + - " kind = \"UNKNOWN\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"end\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"KEYWORD\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"if\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"KEYWORD\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"set\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"KEYWORD\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testKeywordWithPrefix() { - String model = "inp|"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"inp\"\n" + - " proposal = \"input\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"KEYWORD\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testTemplate() { - String model = "state foo end |"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"state name\\n \\nend\\n\"\n" + - " label = \"state\"\n" + - " description = \"Create a new state\"\n" + - " escapePosition = 26\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList (\n" + - " [20:4]\n" + - " )\n" + - " kind = \"UNKNOWN\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testIndentedTemplate() { - String model = - "state foo end\n" + - " |\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"state name\\n \\n end\\n\"\n" + - " label = \"state\"\n" + - " description = \"Create a new state\"\n" + - " escapePosition = 28\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList (\n" + - " [21:4]\n" + - " )\n" + - " kind = \"UNKNOWN\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testTerminal() { - String model = "state | end"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"name\"\n" + - " description = \"ID\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList (\n" + - " [6:4]\n" + - " )\n" + - " kind = \"VALUE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testCrossref() { - String model = - "input signal x\n" + - "state foo\n" + - "end\n" + - "state bar\n" + - " if x == true goto |\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"bar\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"foo\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testFqnCrossref() { - String model = - "input signal x\n" + - "state foo\n" + - " state inner1 end\n" + - " state inner2 end\n" + - "end\n" + - "state bar\n" + - " if x == true goto |\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"bar\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"foo\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"foo.inner1\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"foo.inner2\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testCustomTerminal() { - String model = - "output signal x\n" + - "state foo\n" + - " set x = |\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"false\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"UNKNOWN\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"true\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"UNKNOWN\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testCustomCrossref() { - String model = - "input signal x\n" + - "output signal z\n" + - "state foo\n" + - " if | == true goto foo\n" + - "end\n"; - assertContentAssistResult(model, - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"\"\n" + - " proposal = \"x\"\n" + - " description = \"input signal\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"UNKNOWN\"\n" + - " ]\n" + - " )\n]"); - } - - @Test - public void testCrossrefWithPrefix1() { - String model = - "input signal x\n" + - "state foo\n" + - " if x == true goto fo|\n" + - "end\n" + - "state bar\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"fo\"\n" + - " proposal = \"foo\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testCrossrefWithPrefix2() { - String model = - "input signal x\n" + - "state Foooo\n" + - " if x == true goto fOoO|\n" + - "end\n" + - "state Baaar\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"fOoO\"\n" + - " proposal = \"Foooo\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testFqnCrossrefWithPrefix1() { - String model = - "input signal x\n" + - "state foo\n" + - " state inner1 end\n" + - " state inner2 end\n" + - "end\n" + - "state bar\n" + - " if x == true goto foo.|\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"foo.\"\n" + - " proposal = \"foo.inner1\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"foo.\"\n" + - " proposal = \"foo.inner2\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testFqnCrossrefWithPrefix2() { - String model = - "input signal x\n" + - "state foo\n" + - " state inner1 end\n" + - " state inner2 end\n" + - "end\n" + - "state bar\n" + - " if x == true goto inner|\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"inner\"\n" + - " proposal = \"foo.inner1\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"inner\"\n" + - " proposal = \"foo.inner2\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testFqnCrossrefWithPrefix3() { - String model = - "input signal x\n" + - "state foo\n" + - " state inner1\n" + - " state inner2 end\n" + - " state inner3 end\n" + - " end\n" + - "end\n" + - "state bar\n" + - " if x == true goto f.i.i|\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"f.i.i\"\n" + - " proposal = \"foo.inner1.inner2\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"f.i.i\"\n" + - " proposal = \"foo.inner1.inner3\"\n" + - " description = \"State\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testTerminalWithPrefix() { - String model = "state foo|\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList ()\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testCustomTerminalWithPrefix() { - String model = - "output signal x\n" + - "state foo\n" + - " set x = f|\n" + - "end\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"f\"\n" + - " proposal = \"false\"\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"UNKNOWN\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testIncorrectStateId() { - File file = createFile("state foo end"); - XtextServiceDispatcher.ServiceDescriptor contentAssist = getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("resource", file.getName()) - .put("caretOffset", "3") - .put("requiredStateId", "totalerquatsch") - .build()); - Assert.assertTrue(contentAssist.isHasConflict()); - IServiceResult result = contentAssist.getService().apply(); - MatcherAssert.assertThat(result, IsInstanceOf.instanceOf(ServiceConflictResult.class)); - assertEquals(((ServiceConflictResult) result).getConflict(), "invalidStateId"); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Formatting1Test.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Formatting1Test.java deleted file mode 100644 index 2323ef619e2..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Formatting1Test.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; - -import org.eclipse.xtext.formatting.IFormatter; -import org.eclipse.xtext.formatting.ILineSeparatorInformation; -import org.eclipse.xtext.formatting2.IFormatter2; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.formatting.FormattingResult; -import org.eclipse.xtext.web.server.test.languages.formatting.StatemachineFormatter; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class Formatting1Test extends AbstractWebServerTest { - @Override - protected com.google.inject.Module getRuntimeModule() { - - return new StatemachineRuntimeModule() { - @Override - public Class bindIFormatter2() { - return null; - } - - @Override - public Class bindIFormatter() { - return StatemachineFormatter.class; - } - - @SuppressWarnings("unused") - public Class bindILineSeparatorInformation() { - return TestLineSeparatorInformation.class; - } - }; - } - - @Test - public void testFormatFile() { - File file = createFile("/* bla */ output signal x state foo set x = true end"); - XtextServiceDispatcher.ServiceDescriptor format = getService( - ImmutableMap.builder() - .put("serviceType", "format") - .put("resource", file.getName()) - .build()); - Assert.assertTrue(format.isHasSideEffects()); - FormattingResult result = (FormattingResult) format.getService().apply(); - String expectedResult = - "FormattingResult [\n" + - " stateId = \"-7fffffff\"\n" + - " formattedText = \"output signal x\\nstate foo\\n set x = true\\nend\"\n" + - " replaceRegion = [10:42]\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testFormatSelection() { - File file = createFile("/* bla */ output signal x state foo set x = true end"); - XtextServiceDispatcher.ServiceDescriptor format = getService( - ImmutableMap.builder().put("serviceType", "format") - .put("selectionStart", "26") - .put("selectionEnd", "52") - .put("resource", file.getName()) - .build()); - Assert.assertTrue(format.isHasSideEffects()); - FormattingResult result = (FormattingResult) format.getService().apply(); - String expectedResult = - "FormattingResult [\n" + - " stateId = \"-7fffffff\"\n" + - " formattedText = \"state foo\\n set x = true\\nend\"\n" + - " replaceRegion = [26:26]\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Formatting2Test.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Formatting2Test.java deleted file mode 100644 index 648eab2d972..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/Formatting2Test.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; - -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.formatting.FormattingResult; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class Formatting2Test extends AbstractWebServerTest { - @Test - public void testFormatFile() { - File file = createFile("/* bla */ output signal x state foo set x = true end"); - XtextServiceDispatcher.ServiceDescriptor format = getService( - ImmutableMap.builder() - .put("serviceType", "format") - .put("resource", file.getName()) - .build()); - Assert.assertTrue(format.isHasSideEffects()); - FormattingResult result = (FormattingResult) format.getService().apply(); - String expectedResult = - "FormattingResult [\n" + - " stateId = \"-7fffffff\"\n" + - " formattedText = \"/* bla */ output signal x\\nstate foo\\n set x = true\\nend\\n\"\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testFormatSelection() { - File file = createFile("/* bla */ output signal x state foo set x = true end "); - XtextServiceDispatcher.ServiceDescriptor format = getService( - ImmutableMap.builder() - .put("serviceType", "format") - .put("selectionStart", "26") - .put("selectionEnd", "52") - .put("resource", file.getName()) - .build()); - Assert.assertTrue(format.isHasSideEffects()); - FormattingResult result = (FormattingResult) format.getService().apply(); - String expectedResult = - "FormattingResult [\n" + - " stateId = \"-7fffffff\"\n" + - " formattedText = \"state foo\\n set x = true\\nend\"\n" + - " replaceRegion = [26:26]\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/GeneratorTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/GeneratorTest.java deleted file mode 100644 index 208e8fdc829..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/GeneratorTest.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Copyright (c) 2015, 2022 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; -import java.util.stream.Collectors; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtend2.lib.StringConcatenation; -import org.eclipse.xtext.formatting.ILineSeparatorInformation; -import org.eclipse.xtext.generator.AbstractGenerator; -import org.eclipse.xtext.generator.IFileSystemAccess2; -import org.eclipse.xtext.generator.IGenerator2; -import org.eclipse.xtext.generator.IGeneratorContext; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.example.statemachine.statemachine.State; -import org.eclipse.xtext.web.example.statemachine.statemachine.Statemachine; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.generator.GeneratorResult; -import org.eclipse.xtext.web.server.generator.GeneratorService.GeneratedArtifacts; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.Iterables; - -public class GeneratorTest extends AbstractWebServerTest { - public static class Generator extends AbstractGenerator { - private int invocationCount = 0; - - public Generator() { - generatorInstance = this; - } - - @Override - public void doGenerate(Resource input, IFileSystemAccess2 fsa, IGeneratorContext ctx) { - invocationCount++; - Statemachine statemachine = Iterables.getFirst(Iterables.filter(input.getContents(), Statemachine.class), null); - if (statemachine != null) { - StringConcatenation builder = new StringConcatenation(); - builder.append(statemachine.getStates().stream().map(State::getName).collect(Collectors.joining(","))); - builder.newLineIfNotEmpty(); - fsa.generateFile("/DEFAULT_ARTIFACT", builder); - fsa.generateFile("/test.txt", "hello, world!"); - } - } - } - - private static Generator generatorInstance; - - @Override - protected com.google.inject.Module getRuntimeModule() { - return new StatemachineRuntimeModule() { - @Override - public Class bindIGenerator2() { - return Generator.class; - } - - @SuppressWarnings("unused") - public Class bindILineSeparatorInformation() { - return TestLineSeparatorInformation.class; - } - }; - } - - @Test - public void testGenerateText() { - File file = createFile("state foo end state bar end"); - XtextServiceDispatcher.ServiceDescriptor generate = getService( - ImmutableMap.builder() - .put("serviceType", "generate") - .put("resource", file.getName()) - .build()); - Assert.assertFalse(generate.isHasSideEffects()); - GeneratorResult result = (GeneratorResult) generate.getService().apply(); - String expectedResult = - "GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/DEFAULT_ARTIFACT\"\n" + - " content = \"foo,bar\\n\"\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testGenerateAdditionalText() { - File file = createFile("state foo end state bar end"); - XtextServiceDispatcher.ServiceDescriptor generate = getService( - ImmutableMap.builder() - .put("serviceType", "generate") - .put("resource", file.getName()) - .put("artifact", "DEFAULT_OUTPUT/test.txt") - .build()); - Assert.assertFalse(generate.isHasSideEffects()); - GeneratorResult result = (GeneratorResult) generate.getService().apply(); - String expectedResult = - "GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/test.txt\"\n" + - " contentType = \"text/plain\"\n" + - " content = \"hello, world!\"\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testInvokedOnce() { - if (generatorInstance != null) { - generatorInstance.invocationCount = 0; - } - File file = createFile("state foo end state bar end"); - XtextServiceDispatcher.ServiceDescriptor generate = getService( - ImmutableMap.builder() - .put("serviceType", "generate") - .put("resource", file.getName()) - .build()); - generate.getService().apply(); - Assert.assertEquals(1, generatorInstance.invocationCount); - generate.getService().apply(); - Assert.assertEquals(1, generatorInstance.invocationCount); - } - - @Test - public void testGetResultWithoutContent() { - File file = createFile("state foo end state bar end"); - XtextServiceDispatcher.ServiceDescriptor generate = getService( - ImmutableMap.builder() - .put("serviceType", "generate") - .put("resource", file.getName()) - .put("artifact", "DEFAULT_OUTPUT/test.txt") - .put("includeContent", "false") - .build()); - GeneratorResult result = (GeneratorResult) generate.getService().apply(); - String expectedResult = - "GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/test.txt\"\n" + - " contentType = \"text/plain\"\n" + - "]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testGetAllResults() { - File file = createFile("state foo end state bar end"); - XtextServiceDispatcher.ServiceDescriptor generate = getService( - ImmutableMap.builder() - .put("serviceType", "generate") - .put("resource", file.getName()) - .put("allArtifacts", "true") - .build()); - GeneratedArtifacts result = (GeneratedArtifacts) generate.getService().apply(); - String expectedResult = - "GeneratedArtifacts [\n artifacts = ArrayList (\n" + - " GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/DEFAULT_ARTIFACT\"\n" + - " content = \"foo,bar\\n\"\n" + - " ],\n" + - " GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/test.txt\"\n" + - " contentType = \"text/plain\"\n" + - " content = \"hello, world!\"\n" + - " ]\n" + - " )\n]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testGetAllResultsWithoutContent() { - File file = createFile("state foo end state bar end"); - XtextServiceDispatcher.ServiceDescriptor generate = getService( - ImmutableMap.builder().put("serviceType", "generate").put("resource", file.getName()) - .put("allArtifacts", "true").put("includeContent", "false").build()); - GeneratedArtifacts result = (GeneratedArtifacts) generate.getService().apply(); - String expectedResult = - "GeneratedArtifacts [\n" + - " artifacts = ArrayList (\n" + - " GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/DEFAULT_ARTIFACT\"\n" + - " ],\n" + - " GeneratorResult [\n" + - " name = \"DEFAULT_OUTPUT/test.txt\"\n" + - " contentType = \"text/plain\"\n" + - " ]\n" + - " )\n]"; - assertEquals(expectedResult, result.toString()); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HashMapSession.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HashMapSession.java deleted file mode 100644 index 25bfce24a36..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HashMapSession.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.util.HashMap; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.xbase.lib.Functions.Function0; - -public class HashMapSession implements ISession { - private final HashMap map = new HashMap(); - - @SuppressWarnings("unchecked") - @Override - public T get(Object key) { - return (T) this.map.get(key); - } - - @Override - public T get(Object key, Function0 factory) { - synchronized (this.map) { - T sessionValue = this.get(key); - if (sessionValue != null) { - return sessionValue; - } else { - T factoryValue = factory.apply(); - put(key, factoryValue); - return factoryValue; - } - } - } - - @Override - public void put(Object key, Object value) { - map.put(key, value); - } - - @Override - public void remove(Object key) { - map.remove(key); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HighlightingTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HighlightingTest.java deleted file mode 100644 index d1cc1eb91c2..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HighlightingTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.hover.HoverResult; -import org.eclipse.xtext.web.server.syntaxcoloring.HighlightingResult; -import org.eclipse.xtext.web.server.syntaxcoloring.HighlightingResult.Region; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class HighlightingTest extends AbstractWebServerTest { - protected void assertHighlighting(CharSequence resourceContent, String... styleClasses) { - String content = resourceContent.toString(); - XtextServiceDispatcher.ServiceDescriptor highlighting = getService(ImmutableMap.builder() - .put("serviceType", "highlight").put("fullText", content.replace("#", "")).build()); - HighlightingResult result = (HighlightingResult) highlighting.getService().apply(); - Assert.assertEquals(styleClasses.length, result.getRegions().size()); - int offset = 0; - String[] snippets = content.split("#"); - for (int i = 0; i < styleClasses.length; i++) { - offset = offset + snippets[2 * i].length(); - int length = snippets[2 * i + 1].length(); - Region region = result.getRegions().get(i); - assertEquals(styleClasses[i], region.getStyleClasses()[0]); - Assert.assertEquals(offset, region.getOffset()); - Assert.assertEquals(length, region.getLength()); - offset = offset + length; - } - } - - protected HoverResult assertTitle(HoverResult result, String expectedTitle) { - assertEquals(expectedTitle, result.getTitle()); - return result; - } - - protected HoverResult assertContent(HoverResult result, String expectedContent) { - assertEquals(expectedContent, result.getContent()); - return result; - } - - @Test - public void testNoHighlightingOnEmptyFile() { - assertHighlighting("#"); - } - - @Test - public void testNoSignal() { - String model = - "state State\n" + - "end\n"; - assertHighlighting(model); - } - - @Test - public void testInputSignal() { - String model = - "input signal #in#\n" + - "\n" + - "state State\n" + - " if #in# == true goto State\n" + - "end\n"; - assertHighlighting(model, "InputSignal", - "InputSignal"); - } - - @Test - public void testOutputSignal() { - String model = - "output signal #out#\n" + - "\n" + - "state State\n" + - " set #out# = false\n" + - "end\n"; - assertHighlighting(model, "OutputSignal", "OutputSignal"); - } - - @Test - public void testMixed() { - String model = - "input signal #in#\n" + - "output signal #out#\n" + - "\n" + - "state State\n" + - " set #out# = false\n" + - " if #in# == true goto State\n" + - "end\n"; - assertHighlighting(model, "InputSignal", "OutputSignal", "OutputSignal", "InputSignal"); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HoverTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HoverTest.java deleted file mode 100644 index 4116b5c6445..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/HoverTest.java +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.hover.HoverResult; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class HoverTest extends AbstractWebServerTest { - protected HoverResult getHover(CharSequence resourceContent) { - String content = resourceContent.toString(); - int offset = content.indexOf("#"); - XtextServiceDispatcher.ServiceDescriptor hover = getService(ImmutableMap.builder() - .put("serviceType", "hover").put("fullText", content.replace("#", "")) - .put("caretOffset", Integer.toString(offset)).build()); - return (HoverResult) hover.getService().apply(); - } - - protected HoverResult getContentAssistHover(CharSequence resourceContent, String proposal) { - String content = resourceContent.toString(); - int offset = content.indexOf("|"); - XtextServiceDispatcher.ServiceDescriptor hover = getService(ImmutableMap.builder() - .put("serviceType", "hover").put("fullText", content.replace("|", "")) - .put("caretOffset", Integer.valueOf(offset).toString()).put("proposal", proposal).build()); - return (HoverResult) hover.getService().apply(); - } - - protected HoverResult assertTitle(HoverResult result, String expectedTitle) { - assertEquals(expectedTitle, result.getTitle()); - return result; - } - - protected HoverResult assertContent(HoverResult result, String expectedContent) { - assertEquals(expectedContent, result.getContent()); - return result; - } - - @Test - public void testNoHoverOnEmptyFile() { - Assert.assertNull(getHover("#").getContent()); - } - - @Test - public void testUndocumentedElement() { - String expectedContent = ""; - String expectedTitle = - "
\n" + - "
\n" + - "
\n" + - " foo\n" + - "
\n" + - "
\n" + - "
\n"; - assertTitle(assertContent(getHover("state #foo\n"), expectedContent), expectedTitle); - } - - @Test - public void testDocumentedElement() { - String model = - "/**\n" + - " * This is foo!\n" + - " */\n" + - "state #foo\n"; - String expectedContent = - "
\n" + - " This is foo!\n" + - "
\n"; - String expectedTitle = - "
\n" + - "
\n" + - "
\n" + - " foo\n" + - "
\n" + - "
\n" + - "
\n"; - assertTitle(assertContent(getHover(model), expectedContent), expectedTitle); - } - - @Test - public void testKeyword() { - String model = - "/**\n" + - " * This is foo!\n" + - " */\n" + - "#state foo\n"; - Assert.assertNull(getHover(model).getContent()); - } - - @Test - public void testSubClass() { - String model = "input signal #foo\n"; - String expectedTitle = - "
\n" + - "
\n" + - "
\n" + - " foo\n" + - "
\n" + - "
\n" + - "
\n"; - assertTitle(getHover(model), expectedTitle); - } - - @Test - public void testDecoratedIcon() { - String model = "output signal #foo\n"; - String expectedTitle = - "
\n" + - "
\n" + - "
\n" + - "
\n" + - " foo\n" + - "
\n" + - "
\n" + - "
\n" + - "
\n"; - assertTitle(getHover(model), expectedTitle); - } - - @Test - public void testNoHoverUnnamedElement() { - String model = - "input signal x\n" + - "\n" + - "state State1\n" + - " set z = fal#se\n" + - "end\n"; - Assert.assertNull(getHover(model).getContent()); - } - - @Test - public void testContentAssistCrossref1() { - String model = - "input signal x\n" + - "/* my nice state */\n" + - "state foo\n" + - "end\n" + - "state bar\n" + - " if x == true goto |\n" + - "end\n"; - String proposal = "foo"; - String expectedTitle = - "
\n" + - "
\n" + - "
\n" + - " foo\n" + - "
\n" + - "
\n" + - "
\n"; - String expectedContent = - "
\n" + - " my nice state\n" + - "
\n"; - assertContent(assertTitle(getContentAssistHover(model, proposal), expectedTitle), expectedContent); - } - - @Test - public void testContentAssistCrossref2() { - String model = - "input signal x\n" + - "/* my nice signal */\n" + - "input signal y\n" + - "state foo\n" + - " if | == true goto foo\n" + - "end\n"; - String expectedTitle = - "
\n" + - "
\n" + - "
\n" + - " y\n" + - "
\n" + - "
\n" + - "
\n"; - String expectedContent = - "
\n" + - " my nice signal\n" + - "
\n"; - String proposal = "y"; - assertContent(assertTitle(getContentAssistHover(model, proposal), expectedTitle), expectedContent); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/MockServiceContext.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/MockServiceContext.java deleted file mode 100644 index 09f685dc19e..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/MockServiceContext.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.util.Collections; -import java.util.Map; -import java.util.Set; - -import org.eclipse.xtend.lib.annotations.Accessors; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.xbase.lib.Pure; - -public class MockServiceContext implements IServiceContext { - private Map parameters; - - @Accessors - private ISession session; - - @Override - public Set getParameterKeys() { - return Collections.unmodifiableSet(parameters.keySet()); - } - - @Override - public String getParameter(String key) { - return parameters.get(key); - } - - public MockServiceContext(Map parameters, ISession session) { - this.parameters = parameters; - this.session = session; - } - - @Pure - public ISession getSession() { - return session; - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/OccurrenceTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/OccurrenceTest.java deleted file mode 100644 index 268b3845f0f..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/OccurrenceTest.java +++ /dev/null @@ -1,117 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.occurrences.OccurrencesResult; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class OccurrenceTest extends AbstractWebServerTest { - protected OccurrencesResult getOccurrences(CharSequence resourceContent) { - String content = resourceContent.toString(); - int offset = content.indexOf("#"); - XtextServiceDispatcher.ServiceDescriptor occurrences = this.getService(ImmutableMap.builder() - .put("serviceType", "occurrences").put("fullText", content.replace("#", "")) - .put("caretOffset", Integer.valueOf(offset).toString()).build()); - return (OccurrencesResult) occurrences.getService().apply(); - } - - protected void assertOccurrences(CharSequence resourceContent, CharSequence expectation) { - assertEquals(expectation.toString().trim(), - getOccurrences(normalizeLineSeparator(resourceContent.toString())).toString().trim()); - } - - @Test - public void testNoOccurrenceOnEmptyFile() { - OccurrencesResult result = getOccurrences("#"); - Assert.assertTrue(result.getReadRegions().isEmpty()); - Assert.assertTrue(result.getWriteRegions().isEmpty()); - } - - @Test - public void testNoOccurrencesOnKeyword() { - OccurrencesResult result = getOccurrences("#state foo\n"); - Assert.assertTrue(result.getReadRegions().isEmpty()); - Assert.assertTrue(result.getWriteRegions().isEmpty()); - } - - @Test - public void testSingleWriteOccurrence() { - String model = "state #foo\n"; - String expectation = - "OccurrencesResult [\n" + - " stateId = \"-80000000\"\n" + - " writeRegions = ArrayList (\n" + - " [6:3]\n" + - " )\n" + - " readRegions = ArrayList ()\n" + - "]\n"; - assertOccurrences(model, expectation); - } - - @Test - public void testReadAndWriteOccurrence() { - String model = - "input signal #foo\n" + - "state bar \n" + - " set foo == true\n" + - " set foo == true\n" + - "end\n"; - String expectation = - "OccurrencesResult [\n" + - " stateId = \"-80000000\"\n" + - " writeRegions = ArrayList (\n" + - " [13:3]\n" + - " )\n" + - " readRegions = ArrayList (\n" + - " [33:3],\n" + - " [50:3]\n" + - " )\n" + - "]\n"; - assertOccurrences(model, expectation); - } - - @Test - public void testReadAndWriteOccurrence_2() { - String model = "input signal foo\n" + - "state bar \n" + - " set #foo == true\n" + - " set foo == true\n" + - "end\n"; - String expectation = "OccurrencesResult [\n" + - " stateId = \"-80000000\"\n" + - " writeRegions = ArrayList (\n" + - " [13:3]\n" + - " )\n" + - " readRegions = ArrayList (\n" + - " [33:3],\n" + - " [50:3]\n" + - " )\n" + - "]\n"; - assertOccurrences(model, expectation); - } - - @Test - public void testSyntaxError() { - String model = "state foo\n" + - "end\n" + - "asdf#\n" + - "state bar \n" + - "end\n"; - String expectation = "OccurrencesResult [\n" + - " stateId = \"-80000000\"\n" + - " writeRegions = ArrayList ()\n" + - " readRegions = ArrayList ()\n" + - "]\n"; - assertOccurrences(model, expectation); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ResourcePersistenceTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ResourcePersistenceTest.java deleted file mode 100644 index 5c03db3056c..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ResourcePersistenceTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/** - * Copyright (c) 2015, 2024 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; -import java.nio.charset.StandardCharsets; - -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.persistence.ResourceContentResult; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableMap.Builder; -import com.google.common.io.Files; - -public class ResourcePersistenceTest extends AbstractWebServerTest { - @Test - public void testLoadFile() { - String resourceContent = "state foo end"; - File file = createFile(resourceContent); - XtextServiceDispatcher.ServiceDescriptor load = getService( - nb().put("serviceType", "load").put("resource", file.getName()).build()); - Assert.assertFalse(load.isHasSideEffects()); - ResourceContentResult result = (ResourceContentResult) load.getService().apply(); - assertEquals(resourceContent, result.getFullText()); - Assert.assertFalse(result.isDirty()); - } - - @Test - public void testLoadDummy() { - HashMapSession session = new HashMapSession(); - String resourceContent = "state foo end"; - XtextServiceDispatcher.ServiceDescriptor update = getService(nb().put("serviceType", "update") - .put("resource", "dummy.statemachine").put("fullText", resourceContent).build(), session); - update.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor load = getService( - nb().put("serviceType", "load").put("resource", "dummy.statemachine").build(), session); - ResourceContentResult result = (ResourceContentResult) load.getService().apply(); - assertEquals(resourceContent, result.getFullText()); - update = getService(nb().put("serviceType", "update").put("resource", "dummy.statemachine") - .put("deltaText", "bar").put("deltaOffset", "6").put("deltaReplaceLength", "3").build(), session); - update.getService().apply(); - load = getService(nb().put("serviceType", "load").put("resource", "dummy.statemachine").build(), session); - result = (ResourceContentResult) load.getService().apply(); - assertEquals("state bar end", result.getFullText()); - } - - @Test - public void testRevertFile() { - String resourceContent = "state foo end"; - File file = createFile(resourceContent); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor load = getService( - nb().put("serviceType", "load").put("resource", file.getName()).build(), session); - load.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor update = getService( - nb().put("serviceType", "update").put("resource", file.getName()).put("deltaText", "bar") - .put("deltaOffset", "6").put("deltaReplaceLength", "3").build(), - session); - update.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor revert = getService( - nb().put("serviceType", "revert").put("resource", file.getName()).build(), session); - Assert.assertTrue(revert.isHasSideEffects()); - ResourceContentResult result = (ResourceContentResult) revert.getService().apply(); - assertEquals(resourceContent, result.getFullText()); - } - - @Test - public void testSaveFile() throws Exception { - File file = createFile("state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor load = getService( - nb().put("serviceType", "load").put("resource", file.getName()).build(), session); - load.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor update = getService( - nb().put("serviceType", "update").put("resource", file.getName()).put("deltaText", "bar") - .put("deltaOffset", "6").put("deltaReplaceLength", "3").build(), - session); - update.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor save = getService( - nb().put("serviceType", "save").put("resource", file.getName()).build(), session); - Assert.assertTrue(save.isHasSideEffects()); - save.getService().apply(); - String resourceContent = Files.asCharSource(file, StandardCharsets.UTF_8).read(); - assertEquals("state bar end", resourceContent); - } - - private Builder nb() { - return ImmutableMap.builder(); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/UpdateDocumentTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/UpdateDocumentTest.java deleted file mode 100644 index 10f29c2cfa5..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/UpdateDocumentTest.java +++ /dev/null @@ -1,449 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; -import java.util.List; -import java.util.concurrent.ExecutorService; - -import org.eclipse.emf.ecore.resource.Resource; -import org.eclipse.xtext.util.CancelIndicator; -import org.eclipse.xtext.validation.CheckMode; -import org.eclipse.xtext.validation.IResourceValidator; -import org.eclipse.xtext.validation.Issue; -import org.eclipse.xtext.validation.ResourceValidatorImpl; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.web.server.ServiceConflictResult; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.model.DocumentStateResult; -import org.eclipse.xtext.web.server.model.XtextWebDocument; -import org.eclipse.xtext.web.server.persistence.ResourceContentResult; -import org.eclipse.xtext.xbase.lib.Exceptions; -import org.eclipse.xtext.xbase.lib.Functions.Function1; -import org.eclipse.xtext.xbase.lib.Pair; -import org.hamcrest.MatcherAssert; -import org.hamcrest.core.IsInstanceOf; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; -import com.google.inject.Inject; -import com.google.inject.Singleton; - -public class UpdateDocumentTest extends AbstractWebServerTest { - /** - * The resource validator is applied asynchronously after each update. - */ - @Singleton - public static class TestResourceValidator extends ResourceValidatorImpl { - private Thread workerThread; - - private long sleepTime; - - private volatile boolean canceled; - - private int entryCounter; - - private int exitCounter; - - @Override - public List validate(Resource resource, CheckMode mode, CancelIndicator mon) { - try { - workerThread = Thread.currentThread(); - synchronized (this) { - entryCounter++; - notifyAll(); - } - long startTime = System.currentTimeMillis(); - while (System.currentTimeMillis() - startTime < sleepTime && !mon.isCanceled() - && !workerThread.isInterrupted()) { - Thread.sleep(30); - } - if (mon.isCanceled()) { - canceled = true; - } - synchronized (this) { - exitCounter++; - notifyAll(); - } - return super.validate(resource, mode, mon); - } catch (InterruptedException e) { - throw Exceptions.sneakyThrow(e); - } - } - - public int reset(long sleepTime) { - if (workerThread != null) { - workerThread.interrupt(); - } - workerThread = null; - this.sleepTime = sleepTime; - canceled = false; - entryCounter = 0; - return exitCounter = 0; - } - - public synchronized void waitUntil( - Function1 condition) { - try { - long startTime = System.currentTimeMillis(); - while (!condition.apply(this).booleanValue()) { - Assert.assertTrue(System.currentTimeMillis() - startTime < 8000); - this.wait(3000); - } - } catch (InterruptedException e) { - throw Exceptions.sneakyThrow(e); - } - } - - public Thread getWorkerThread() { - return workerThread; - } - - public long getSleepTime() { - return sleepTime; - } - - public boolean isCanceled() { - return canceled; - } - - public int getEntryCounter() { - return entryCounter; - } - - public int getExitCounter() { - return exitCounter; - } - } - - @Inject - private UpdateDocumentTest.TestResourceValidator resourceValidator; - - @Inject - private ExecutorService executorService; - - @Override - protected com.google.inject.Module getRuntimeModule() { - return new StatemachineRuntimeModule() { - @SuppressWarnings("unused") - public Class bindIResourceValidator() { - return UpdateDocumentTest.TestResourceValidator.class; - } - }; - } - - @Test - public void testCorrectStateId() { - resourceValidator.reset(0); - File file = createFile("input signal x state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "21") - .put("deltaReplaceLength", "3") - .build(), - session); - Assert.assertTrue(update.isHasSideEffects()); - DocumentStateResult updateResult = (DocumentStateResult) update.getService().apply(); - update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", " set x = true") - .put("deltaOffset", "24") - .put("deltaReplaceLength", "0") - .put("requiredStateId", updateResult.getStateId()) - .build(), session); - update.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor load = getService( - ImmutableMap.builder() - .put("serviceType", "load") - .put("resource", file.getName()) - .build(), session); - ResourceContentResult loadResult = (ResourceContentResult) load.getService().apply(); - assertEquals("input signal x state bar set x = true end", loadResult.getFullText()); - } - - @Test - public void testIncorrectStateId1() { - resourceValidator.reset(0); - File file = createFile("state foo end"); - XtextServiceDispatcher.ServiceDescriptor update = this - .getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", " set x = true") - .put("deltaOffset", "10") - .put("deltaReplaceLength", "0") - .put("requiredStateId", "totalerquatsch") - .build()); - Assert.assertTrue(update.isHasConflict()); - IServiceResult result = update.getService().apply(); - MatcherAssert.assertThat(result, IsInstanceOf.instanceOf(ServiceConflictResult.class)); - assertEquals(((ServiceConflictResult) result).getConflict(), "invalidStateId"); - } - - @Test - public void testIncorrectStateId2() { - resourceValidator.reset(0); - File file = createFile("input signal x state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor update1 = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "21") - .put("deltaReplaceLength", "3") - .build(), - session); - DocumentStateResult updateResult = (DocumentStateResult) update1.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor update2 = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", " set x = true") - .put("deltaOffset", "24") - .put("deltaReplaceLength", "0") - .put("requiredStateId", updateResult.getStateId()) - .build(), - session); - XtextServiceDispatcher.ServiceDescriptor update3 = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "y") - .put("deltaOffset", "12") - .put("deltaReplaceLength", "1") - .put("requiredStateId", updateResult.getStateId()) - .build(), - session); - update2.getService().apply(); - IServiceResult result = update3.getService().apply(); - MatcherAssert.assertThat(result, IsInstanceOf.instanceOf(ServiceConflictResult.class)); - assertEquals(((ServiceConflictResult) result).getConflict(), "invalidStateId"); - } - - @Test - public void testNoBackgroundWorkWhenConflict() { - resourceValidator.reset(0); - File file = createFile("input signal x state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "21") - .put("deltaReplaceLength", "3") - .build(), - session); - Assert.assertTrue(update.isHasSideEffects()); - DocumentStateResult updateResult = (DocumentStateResult) update.getService().apply(); - update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", " set x = true") - .put("deltaOffset", "24") - .put("deltaReplaceLength", "0") - .put("requiredStateId", updateResult.getStateId()) - .build(), session); - XtextWebDocument document = session.get(Pair.of(XtextWebDocument.class, file.getName())); - document.getResource().setModificationStamp(1234); - IServiceResult result = update.getService().apply(); - MatcherAssert.assertThat(result, IsInstanceOf.instanceOf(ServiceConflictResult.class)); - XtextServiceDispatcher.ServiceDescriptor load = getService( - ImmutableMap.builder() - .put("serviceType", "load") - .put("resource", file.getName()) - .build(), session); - ResourceContentResult loadResult = (ResourceContentResult) load.getService().apply(); - assertEquals("input signal x state bar end", loadResult.getFullText()); - } - - @Test - public void testCancelBackgroundWork1() { - resourceValidator.reset(300); - File file = createFile("input signal x state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor update1 = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "21") - .put("deltaReplaceLength", "3") - .build(), - session); - DocumentStateResult updateResult = (DocumentStateResult) update1.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor update2 = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", " set x = true") - .put("deltaOffset", "24") - .put("deltaReplaceLength", "0") - .put("requiredStateId", updateResult.getStateId()) - .build(), - session); - resourceValidator.waitUntil(it -> it.entryCounter == 1); - executorService.submit(() -> update2.getService().apply()); - resourceValidator.waitUntil(it -> it.exitCounter == 1); - Assert.assertTrue(resourceValidator.canceled); - resourceValidator.waitUntil(it -> it.entryCounter == 2); - } - - @Test - public void testCancelBackgroundWork2() { - resourceValidator.reset(300); - File file = createFile("input signal x state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "21") - .put("deltaReplaceLength", "3") - .build(), - session); - DocumentStateResult updateResult = (DocumentStateResult) update.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor contentAssist = getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("resource", file.getName()) - .put("caretOffset", "15") - .put("requiredStateId", updateResult.getStateId()) - .build(), - session); - resourceValidator.waitUntil(it -> it.entryCounter == 1); - executorService.submit(() -> contentAssist.getService().apply()); - resourceValidator.waitUntil(it -> it.exitCounter == 1); - Assert.assertTrue(resourceValidator.canceled); - resourceValidator.waitUntil(it -> it.entryCounter == 2); - } - - @Test - public void testCancelLowPriorityService1() { - resourceValidator.reset(3000); - File file = createFile("state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor validate = getService( - ImmutableMap.builder() - .put("serviceType", "validate") - .put("resource", file.getName()) - .build(), session); - XtextServiceDispatcher.ServiceDescriptor update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "6") - .put("deltaReplaceLength", "3") - .build(), - session); - executorService.submit(() -> validate.getService().apply()); - resourceValidator.waitUntil(it -> it.entryCounter == 1); - update.getService().apply(); - resourceValidator.waitUntil(it -> it.exitCounter == 1); - Assert.assertTrue(resourceValidator.canceled); - resourceValidator.waitUntil(it -> it.entryCounter == 2); - } - - @Test - public void testCancelLowPriorityService2() { - resourceValidator.reset(3000); - File file = createFile("state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor validate = getService( - ImmutableMap.builder() - .put("serviceType", "validate") - .put("resource", file.getName()) - .build(), session); - XtextServiceDispatcher.ServiceDescriptor contentAssist = getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("resource", file.getName()) - .put("caretOffset", "0") - .build(), session); - executorService.submit(() -> validate.getService().apply()); - resourceValidator.waitUntil(it -> it.entryCounter == 1); - contentAssist.getService().apply(); - resourceValidator.waitUntil(it -> it.exitCounter == 1); - Assert.assertTrue(resourceValidator.canceled); - resourceValidator.waitUntil(it -> it.entryCounter == 2); - } - - @Test - public void testContentAssistWithUpdate() { - resourceValidator.reset(0); - File file = createFile("input signal x state foo end"); - HashMapSession session = new HashMapSession(); - XtextServiceDispatcher.ServiceDescriptor update = getService( - ImmutableMap.builder() - .put("serviceType", "update") - .put("resource", file.getName()) - .put("deltaText", "bar") - .put("deltaOffset", "21") - .put("deltaReplaceLength", "3") - .build(), - session); - DocumentStateResult updateResult = (DocumentStateResult) update.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor contentAssist = getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("resource", file.getName()) - .put("caretOffset", "34") - .put("deltaText", " set x = ") - .put("deltaOffset", "24") - .put("deltaReplaceLength", "0") - .put("requiredStateId", updateResult.getStateId()) - .build(), - session); - contentAssist.getService().apply(); - XtextServiceDispatcher.ServiceDescriptor load = getService( - ImmutableMap.builder() - .put("serviceType", "load") - .put("resource", file.getName()) - .build(), session); - ResourceContentResult loadResult = (ResourceContentResult) load.getService().apply(); - assertEquals("input signal x state bar set x = end", loadResult.getFullText()); - } - - @Test - public void testNoPrecomputationInStatelessMode() { - resourceValidator.reset(0); - File file = createFile(""); - HashMapSession session = new HashMapSession(); - getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("resource", file.getName()) - .put("caretOffset", "6") - .put("fullText", "input signal x state foo end") - .build(), session).getService() - .apply(); - getService( - ImmutableMap.builder() - .put("serviceType", "assist") - .put("resource", file.getName()) - .put("caretOffset", "6") - .put("fullText", "input signal x state foo end") - .build(), session).getService() - .apply(); - Assert.assertEquals(0, resourceValidator.entryCounter); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ValidationTest.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ValidationTest.java deleted file mode 100644 index 203dadb8bcc..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/ValidationTest.java +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test; - -import java.io.File; - -import org.eclipse.xtext.web.server.IServiceResult; -import org.eclipse.xtext.web.server.ServiceConflictResult; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.validation.ValidationResult; -import org.hamcrest.MatcherAssert; -import org.hamcrest.core.IsInstanceOf; -import org.junit.Assert; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class ValidationTest extends AbstractWebServerTest { - protected void assertValidationResult(String resourceContent, String expectedResult) { - XtextServiceDispatcher.ServiceDescriptor validate = getService(ImmutableMap.builder() - .put("serviceType", "validate").put("fullText", resourceContent).build()); - Assert.assertFalse(validate.isHasSideEffects()); - ValidationResult result = (ValidationResult) validate.getService().apply(); - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testSyntaxError() { - assertValidationResult("stat foo end", - "ValidationResult [\n" + - " issues = ArrayList (\n" + - " Issue [\n" + - " description = \"missing EOF at \'stat\'\"\n" + - " severity = \"error\"\n" + - " line = 1\n" + - " column = 1\n" + - " offset = 0\n" + - " length = 4\n" + - " ]\n" + - " )\n]"); - } - - @Test - public void testCrossRefError() { - assertValidationResult("state foo set x = true end", - "ValidationResult [\n" + - " issues = ArrayList (\n" + - " Issue [\n" + - " description = \"Couldn\'t resolve reference to Signal \'x\'.\"\n" + - " severity = \"error\"\n" + - " line = 1\n" + - " column = 15\n" + - " offset = 14\n" + - " length = 1\n" + - " ]\n" + - " )\n]"); - } - - @Test - public void testCustomValidationError() { - assertValidationResult("input signal x state foo set x = true end", - "ValidationResult [\n" + - " issues = ArrayList (\n" + - " Issue [\n" + - " description = \"Only output signals are allowed for write access.\"\n" + - " severity = \"error\"\n" + - " line = 1\n" + - " column = 30\n" + - " offset = 29\n" + - " length = 1\n" + - " ]\n" + - " )\n]"); - } - - @Test - public void testValidateFile() { - File file = createFile("stat foo end"); - XtextServiceDispatcher.ServiceDescriptor validate = getService(ImmutableMap.builder() - .put("serviceType", "validate").put("resource", file.getName()).build()); - Assert.assertFalse(validate.isHasSideEffects()); - ValidationResult result = (ValidationResult) validate.getService().apply(); - String expectedResult = "ValidationResult [\n" + - " issues = ArrayList (\n" + - " Issue [\n" + - " description = \"missing EOF at \'stat\'\"\n" + - " severity = \"error\"\n" + - " line = 1\n" + - " column = 1\n" + - " offset = 0\n" + - " length = 4\n" + - " ]\n" + - " )\n]"; - assertEquals(expectedResult, result.toString()); - } - - @Test - public void testIncorrectStateId() { - File file = createFile("state foo end"); - XtextServiceDispatcher.ServiceDescriptor validate = this - .getService(ImmutableMap.builder().put("serviceType", "validate") - .put("resource", file.getName()).put("requiredStateId", "totalerquatsch").build()); - Assert.assertTrue(validate.isHasConflict()); - IServiceResult result = validate.getService().apply(); - MatcherAssert.assertThat(result, - IsInstanceOf.instanceOf(ServiceConflictResult.class)); - assertEquals(((ServiceConflictResult) result).getConflict(), "invalidStateId"); - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/languages/StatemachineWebModule.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/languages/StatemachineWebModule.java deleted file mode 100644 index a605bed135d..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/languages/StatemachineWebModule.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test.languages; - -import org.eclipse.xtext.web.server.DefaultWebModule; -import org.eclipse.xtext.web.server.persistence.FileResourceHandler; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.web.server.persistence.IServerResourceHandler; - -import com.google.inject.Binder; - -public class StatemachineWebModule extends DefaultWebModule { - private IResourceBaseProvider resourceBaseProvider; - - public Class bindIServerResourceHandler() { - return FileResourceHandler.class; - } - - public void configureResourceBaseProvider(Binder binder) { - if (resourceBaseProvider != null) { - binder.bind(IResourceBaseProvider.class).toInstance(this.resourceBaseProvider); - } - } - - public IResourceBaseProvider getResourceBaseProvider() { - return resourceBaseProvider; - } - - public void setResourceBaseProvider(IResourceBaseProvider resourceBaseProvider) { - this.resourceBaseProvider = resourceBaseProvider; - } -} diff --git a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/languages/formatting/StatemachineFormatter.java b/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/languages/formatting/StatemachineFormatter.java deleted file mode 100644 index 02e2b8de31d..00000000000 --- a/org.eclipse.xtext.web/src/test/java/org/eclipse/xtext/web/server/test/languages/formatting/StatemachineFormatter.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.web.server.test.languages.formatting; - -import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter; -import org.eclipse.xtext.formatting.impl.FormattingConfig; -import org.eclipse.xtext.web.example.statemachine.services.StatemachineGrammarAccess; - -import com.google.inject.Inject; - -/** - * This class contains custom formatting declarations. - * - * See - * https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#formatting - * on how and when to use it. - * - * Also see {@link org.eclipse.xtext.xtext.XtextFormatter} as an - * example - */ -public class StatemachineFormatter extends AbstractDeclarativeFormatter { - @Inject - private StatemachineGrammarAccess statemachineGrammarAccess; - - @Override - protected void configureFormatting(FormattingConfig c) { - c.setLinewrap(0, 1, 2).before(statemachineGrammarAccess.getSL_COMMENTRule()); - c.setLinewrap(0, 1, 2).before(statemachineGrammarAccess.getML_COMMENTRule()); - c.setLinewrap(0, 1, 1).after(statemachineGrammarAccess.getML_COMMENTRule()); - c.setLinewrap().before(statemachineGrammarAccess.getInputSignalAccess().getInputKeyword_1()); - c.setLinewrap().before(statemachineGrammarAccess.getOutputSignalAccess().getOutputKeyword_1()); - c.setLinewrap(1, 1, 2).before(statemachineGrammarAccess.getStateAccess().getStateKeyword_0()); - c.setIndentationIncrement().after(statemachineGrammarAccess.getStateAccess().getNameAssignment_1()); - c.setLinewrap().before(statemachineGrammarAccess.getCommandAccess().getSetKeyword_0()); - c.setLinewrap().before(statemachineGrammarAccess.getTransitionAccess().getIfKeyword_0()); - c.setLinewrap().before(statemachineGrammarAccess.getStateAccess().getEndKeyword_5()); - c.setIndentationDecrement().before(statemachineGrammarAccess.getStateAccess().getEndKeyword_5()); - } -} diff --git a/org.eclipse.xtext.web/src/test/js/ServiceBuilderTest.js b/org.eclipse.xtext.web/src/test/js/ServiceBuilderTest.js deleted file mode 100644 index 10cc67137b6..00000000000 --- a/org.eclipse.xtext.web/src/test/js/ServiceBuilderTest.js +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('ServiceBuilder', function() { - - test('mergeOptions_01', function(done) { - requirejs(['assert', 'xtext/ServiceBuilder'], function(assert, ServiceBuilder) { - var defaultOptions = { - value: 'Foo' - }; - var mergedOptions = ServiceBuilder.mergeOptions(null, defaultOptions); - mergedOptions.value = 'Bar'; - assert.equal('Foo', defaultOptions.value); - done(); - }); - }); - -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/test/js/test-content-assist.js b/org.eclipse.xtext.web/src/test/js/test-content-assist.js deleted file mode 100644 index 753c7263dfb..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-content-assist.js +++ /dev/null @@ -1,164 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Content Assist', function() { - - test('should return the proposals sent by the server', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setCaretOffset(0) - .invokeService('assist') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('GET', settings.type); - assert.equal(0, settings.data.caretOffset); - }) - .respond({entries: [{proposal: 'bar'}]}) - .checkResult(function(editorContext, proposals) { - assert.equal('bar', proposals[0].proposal); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .setCaretOffset(3) - .invokeService('assist') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.fullText); - assert.equal(3, settings.data.caretOffset); - }) - .done(); - }); - }); - - test('should send a delta text when necessary', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .setCaretOffset(3) - .invokeService('assist') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.deltaText); - assert.equal(3, settings.data.caretOffset); - }) - .done(); - }); - }); - - test('should trigger server state listeners after an update', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor() - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - var serverState = editorContext.getServerState(); - assert.equal('1', serverState.stateId); - assert.equal('foo', serverState.text); - done(); - }); - editorContext.setText('foo'); - }) - .invokeService('assist') - .respond({stateId: '1', entries: []}); - }); - }); - - test('should try again when a conflict occurs', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('assist') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('foo', settings.data.deltaText); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({entries: [{proposal: 'bar'}]}) - .checkResult(function(editorContext, proposals) { - assert.equal('bar', proposals[0].proposal); - }) - .done(); - }); - }); - - test('should try again when resource is not found', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('assist') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - }) - .httpError('Resource not found', {status: 404}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({entries: [{proposal: 'bar'}]}) - .checkResult(function(editorContext, proposals) { - assert.equal('bar', proposals[0].proposal); - }) - .done(); - }); - }); - - test('should wait until pending update completes', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - }) - .invokeService('assist') - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/assist', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({entries: [{proposal: 'bar'}]}) - .checkResult(function(editorContext, proposals) { - assert.equal('bar', proposals[0].proposal); - }) - .done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-formatting.js b/org.eclipse.xtext.web/src/test/js/test-formatting.js deleted file mode 100644 index a16405390af..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-formatting.js +++ /dev/null @@ -1,154 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Formatting', function() { - - test('should return the formatted document', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('f o o') - .invokeService('format') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - assert.equal('POST', settings.type); - }) - .respond({stateId: '1', formattedText: 'f o o'}) - .checkResult(function(editorContext, result) { - assert.equal('1', result.stateId); - assert.equal('f o o', result.formattedText); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('f o o') - .invokeService('format') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - assert.equal('POST', settings.type); - assert.equal('f o o', settings.data.fullText); - }) - .done(); - }); - }); - - test('should update the known server state', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor() - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - assert.equal('f o o', editorContext.getText()); - var knownServerState = editorContext.getServerState(); - assert.equal('f o o', knownServerState.text); - assert.equal('1', knownServerState.stateId); - done(); - }); - }) - .setText('f o o') - .invokeService('format') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - assert.equal('0', settings.data.requiredStateId); - }) - .respond({stateId: '1', formattedText: 'f o o'}) - }); - }); - - test('should wait until pending update completes', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - }) - .invokeService('format') - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({stateId: '1', formattedText: 'f o o'}) - .checkResult(function(editorContext, result) { - assert.equal('f o o', result.formattedText); - }) - .done(); - }); - }); - - test('should try again when a conflict occurs with full text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('f o o') - .invokeService('format') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - }) - .done(); - }); - }); - - test('should try again when a conflict occurs with update', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('f o o') - .invokeService('format') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('f o o', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - assert.equal('1', settings.data.requiredStateId); - }) - .done(); - }); - }); - - test('should stop after 10 times', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - var tester = xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('f o o') - .invokeService('format'); - for (var i = 0; i < 10; i++) { - tester.checkRequest(function(url, settings) { - assert.equal('test://xtext-service/format', url); - }) - .respond({conflict: 'invalidStateId'}); - } - tester.checkError(function(serviceType, severity, message, requestData) { - assert.equal('format', serviceType); - assert.equal('warning', severity); - }).done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-generator.js b/org.eclipse.xtext.web/src/test/js/test-generator.js deleted file mode 100644 index 632275d0ff1..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-generator.js +++ /dev/null @@ -1,134 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Generator', function() { - - test('should return the generated document', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .invokeService('generate') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - assert.equal('GET', settings.type); - }) - .respond('Foo') - .checkResult(function(editorContext, result) { - assert.equal('Foo', result); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('generate') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.fullText); - }) - .done(); - }); - }); - - test('should wait until pending update completes', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - }) - .invokeService('generate') - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond('Foo') - .checkResult(function(editorContext, result) { - assert.equal('Foo', result); - }) - .done(); - }); - }); - - test('should try again when a conflict occurs with full text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('generate') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - }) - .respond('Foo') - .checkResult(function(editorContext, result) { - assert.equal('Foo', result); - }) - .done(); - }); - }); - - test('should try again when a conflict occurs with update', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('generate') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - assert.equal('1', settings.data.requiredStateId); - }) - .done(); - }); - }); - - test('should stop after 10 times', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - var tester = xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('generate'); - for (var i = 0; i < 10; i++) { - tester.checkRequest(function(url, settings) { - assert.equal('test://xtext-service/generate', url); - }) - .respond({conflict: 'invalidStateId'}); - } - tester.checkError(function(serviceType, severity, message, requestData) { - assert.equal('generate', serviceType); - assert.equal('warning', severity); - }).done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-highlighting.js b/org.eclipse.xtext.web/src/test/js/test-highlighting.js deleted file mode 100644 index 41e9a4ebc62..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-highlighting.js +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Highlighting', function() { - - test('should return the highlighting regions sent by the server', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('highlight') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/highlight', url); - assert.equal('GET', settings.type); - }) - .respond({regions: [{offset: 0, length: 3, styleClasses: ['bar']}]}) - .checkResult(function(editorContext, result) { - assert.equal('bar', result.regions[0].styleClasses[0]); - assert.equal(3, result.regions[0].length); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('highlight') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/highlight', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.fullText); - }) - .done(); - }); - }); - - test('should try again when a conflict occurs', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('highlight') - .respond({conflict: 'invalidStateId'}) - .respond({regions: [{offset: 0, length: 3, styleClasses: ['bar']}]}) - .checkResult(function(editorContext, result) { - assert.equal('bar', result.regions[0].styleClasses[0]); - assert.equal(3, result.regions[0].length); - }) - .done(); - }); - }); - - test('should stop after 10 times', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - var tester = xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('highlight'); - for (var i = 0; i < 10; i++) { - tester.checkRequest(function(url, settings) { - assert.equal('test://xtext-service/highlight', url); - }) - .respond({conflict: 'invalidStateId'}); - } - tester.checkError(function(serviceType, severity, message, requestData) { - assert.equal('highlight', serviceType); - assert.equal('warning', severity); - }).done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-hover.js b/org.eclipse.xtext.web/src/test/js/test-hover.js deleted file mode 100644 index d9c692e2ea5..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-hover.js +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Hover', function() { - - test('should return the hover information sent by the server', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('hover') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/hover', url); - assert.equal('GET', settings.type); - }) - .respond({content: 'bar'}) - .checkResult(function(editorContext, result) { - assert.equal('bar', result.content); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('hover') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/hover', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.fullText); - }) - .done(); - }); - }); - - test('should wait until pending update completes', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - }) - .invokeService('hover') - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/hover', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({content: 'bar'}) - .checkResult(function(editorContext, result) { - assert.equal('bar', result.content); - }) - .done(); - }); - }); - - test('should try again when resource is not found', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('hover') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/hover', url); - }) - .httpError('Resource not found', {status: 404}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/hover', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({content: 'bar'}) - .checkResult(function(editorContext, result) { - assert.equal('bar', result.content); - }) - .done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-occurrences.js b/org.eclipse.xtext.web/src/test/js/test-occurrences.js deleted file mode 100644 index f54d31090b4..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-occurrences.js +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Occurrences', function() { - - test('should return the occurrences sent by the server', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('occurrences') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/occurrences', url); - assert.equal('GET', settings.type); - }) - .respond({readRegions: [{offset: 0, length: 3}]}) - .checkResult(function(editorContext, result) { - assert.equal(3, result.readRegions[0].length); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('occurrences') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/occurrences', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.fullText); - }) - .done(); - }); - }); - - test('should wait until pending update completes', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - }) - .invokeService('occurrences') - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/occurrences', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({readRegions: [{offset: 0, length: 3}]}) - .checkResult(function(editorContext, result) { - assert.equal(3, result.readRegions[0].length); - }) - .done(); - }); - }); - - test('should try again when resource is not found', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('occurrences') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/occurrences', url); - }) - .httpError('Resource not found', {status: 404}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/occurrences', url); - assert.equal('1', settings.data.requiredStateId); - }) - .respond({readRegions: [{offset: 0, length: 3}]}) - .checkResult(function(editorContext, result) { - assert.equal(3, result.readRegions[0].length); - }) - .done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-persistence.js b/org.eclipse.xtext.web/src/test/js/test-persistence.js deleted file mode 100644 index 736da96159a..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-persistence.js +++ /dev/null @@ -1,200 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Persistence', function() { - - test('[load] should return the client text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', doneCallback: done}) - .invokeService('load') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/load?resource=test.mydsl', url); - assert.equal('GET', settings.type); - }) - .respond({fullText: 'foo', dirty: false, stateId: '1'}) - .checkResult(function(editorContext, result) { - assert.equal('foo', result.fullText); - }) - .done(); - }); - }); - - test('[load] should update the client text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl'}) - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - assert.equal('foo', editorContext.getText()); - var knownServerState = editorContext.getServerState(); - assert.equal('foo', knownServerState.text); - assert.equal('1', knownServerState.stateId); - done(); - }); - }) - .invokeService('load') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/load?resource=test.mydsl', url); - assert.equal('GET', settings.type); - }) - .respond({fullText: 'foo', dirty: false, stateId: '1'}); - }); - }); - - test('[revert] should return the client text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', doneCallback: done}) - .invokeService('revert') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/revert?resource=test.mydsl', url); - assert.equal('POST', settings.type); - }) - .respond({fullText: 'foo', dirty: false, stateId: '1'}) - .checkResult(function(editorContext, result) { - assert.equal('foo', result.fullText); - }) - .done(); - }); - }); - - test('[revert] should update the client text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl'}) - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - assert.equal('foo', editorContext.getText()); - var knownServerState = editorContext.getServerState(); - assert.equal('foo', knownServerState.text); - assert.equal('1', knownServerState.stateId); - done(); - }); - }) - .invokeService('revert') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/revert?resource=test.mydsl', url); - assert.equal('POST', settings.type); - }) - .respond({fullText: 'foo', dirty: false, stateId: '1'}); - }); - }); - - test('[save] should set the editor to clean', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', doneCallback: done}) - .setDirty(true) - .invokeService('save') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - assert.equal('POST', settings.type); - }) - .respond({stateId: '1'}) - .checkResult(function(editorContext) { - assert(!editorContext.isDirty()); - }) - .done(); - }); - }); - - test('[save] should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('save') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - assert.equal('foo', settings.data.fullText); - }) - .done(); - }); - }); - - test('[save] should try again when a conflict occurs with full text', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('save') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - }) - .done(); - }); - }); - - test('[save] should try again when a conflict occurs with update', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', doneCallback: done}) - .setText('foo') - .invokeService('save') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - }) - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update?resource=test.mydsl', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - assert.equal('1', settings.data.requiredStateId); - }) - .done(); - }); - }); - - test('[save] should stop after 10 times', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - var tester = xtext.testEditor({resourceId: 'test.mydsl', sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('save'); - for (var i = 0; i < 10; i++) { - tester.checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - }) - .respond({conflict: 'invalidStateId'}); - } - tester.checkError(function(serviceType, severity, message, requestData) { - assert.equal('save', serviceType); - assert.equal('warning', severity); - }).done(); - }); - }); - - test('[save] should wait until pending update completes', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({resourceId: 'test.mydsl', doneCallback: done}) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update?resource=test.mydsl', url); - }) - .invokeService('save') - .respond({stateId: '1'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/save?resource=test.mydsl', url); - assert.equal('1', settings.data.requiredStateId); - }) - .done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-update.js b/org.eclipse.xtext.web/src/test/js/test-update.js deleted file mode 100644 index 7f30865eed9..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-update.js +++ /dev/null @@ -1,151 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Update', function() { - - test('should return the new state identifier', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('update') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('PUT', settings.type); - assert.equal('0', settings.data.requiredStateId); - }) - .respond({stateId: '1'}) - .checkResult(function(editorContext, result) { - assert.equal('1', result.stateId); - }) - .done(); - }); - }); - - test('should update the known server state', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({enableValidationService: false}) - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - var knownServerState = editorContext.getServerState(); - assert.equal('foo', knownServerState.text); - assert.equal('1', knownServerState.stateId); - done(); - }); - }) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('PUT', settings.type); - assert.equal('0', settings.data.requiredStateId); - }) - .respond({stateId: '1'}); - }); - }); - - test('should send the full text when the server state is unknown', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({enableHighlightingService: false, enableValidationService: false}) - .setup(function(editorContext) { - var knownServerState = editorContext.getServerState(); - editorContext.addServerStateListener(function() { - assert.equal('foo', knownServerState.text); - assert.equal('1', knownServerState.stateId); - done(); - }); - delete knownServerState.text; - delete knownServerState.stateId; - }) - .triggerModelChange('foo') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('PUT', settings.type); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}); - }); - }); - - test('should compute a delta from the previous known server state', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({enableHighlightingService: false, enableValidationService: false, doneCallback: done}) - .triggerModelChange('Foobar') - .checkRequest(function(url, settings) { - assert.equal('0', settings.data.requiredStateId); - assert.equal('Foobar', settings.data.deltaText); - assert.equal(0, settings.data.deltaOffset); - assert.equal(0, settings.data.deltaReplaceLength); - }) - .respond({stateId: '1'}) - .triggerModelChange('Foo and Bar') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('1', settings.data.requiredStateId); - assert.equal(' and B', settings.data.deltaText); - assert.equal(3, settings.data.deltaOffset); - assert.equal(1, settings.data.deltaReplaceLength); - }) - .respond({stateId: '2'}) - .done(); - }); - }); - - test('should try again when a conflict occurs', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({enableHighlightingService: false, enableValidationService: false}) - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - var knownServerState = editorContext.getServerState(); - assert.equal('foo', knownServerState.text); - assert.equal('2', knownServerState.stateId); - done(); - }); - }) - .triggerModelChange('foo') - .respond({conflict: 'invalidStateId'}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '2'}); - }); - }); - - test('should try again when resource is not found', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({enableHighlightingService: false, enableValidationService: false}) - .setup(function(editorContext) { - editorContext.addServerStateListener(function() { - var knownServerState = editorContext.getServerState(); - assert.equal('foo', knownServerState.text); - assert.equal('1', knownServerState.stateId); - done(); - }); - }) - .triggerModelChange('foo') - .httpError('Resource not found', {status: 404}) - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/update', url); - assert.equal('foo', settings.data.fullText); - }) - .respond({stateId: '1'}); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/test-validation.js b/org.eclipse.xtext.web/src/test/js/test-validation.js deleted file mode 100644 index d4643737e28..00000000000 --- a/org.eclipse.xtext.web/src/test/js/test-validation.js +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -var requirejs = require('requirejs'); -requirejs.config({ - baseUrl: 'src/main/js', - nodeRequire: require, - paths: { - 'xtext/xtext-test': '../../../src/test/js/xtext/xtext-test', - 'xtext/MockEditorContext': '../../../src/test/js/xtext/MockEditorContext', - 'jquery': '../../../src/test/js/xtext/mock-jquery' - } -}); - -suite('Validation', function() { - - test('should return the issues sent by the server', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('validate') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/validate', url); - assert.equal('GET', settings.type); - }) - .respond({issues: [{severity: 'error', startOffset: 3}]}) - .checkResult(function(editorContext, result) { - assert.equal('error', result.issues[0].severity); - assert.equal(3, result.issues[0].startOffset); - }) - .done(); - }); - }); - - test('should send the full text when requested', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({sendFullText: true, doneCallback: done}) - .setText('foo') - .invokeService('validate') - .checkRequest(function(url, settings) { - assert.equal('test://xtext-service/validate', url); - assert.equal('POST', settings.type); - assert.equal('foo', settings.data.fullText); - }) - .done(); - }); - }); - - test('should try again when a conflict occurs', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('validate') - .respond({conflict: 'invalidStateId'}) - .respond({issues: [{severity: 'error', startOffset: 3}]}) - .checkResult(function(editorContext, result) { - assert.equal('error', result.issues[0].severity); - assert.equal(3, result.issues[0].startOffset); - }) - .done(); - }); - }); - - test('should stop after 10 times', function(done) { - requirejs(['assert', 'xtext/xtext-test'], function(assert, xtext) { - var tester = xtext.testEditor({doneCallback: done}) - .setText('foo') - .invokeService('validate'); - for (var i = 0; i < 10; i++) { - tester.checkRequest(function(url, settings) { - assert.equal('test://xtext-service/validate', url); - }) - .respond({conflict: 'invalidStateId'}); - } - tester.checkError(function(serviceType, severity, message, requestData) { - assert.equal('validate', serviceType); - assert.equal('warning', severity); - }).done(); - }); - }); - -}); diff --git a/org.eclipse.xtext.web/src/test/js/xtext/MockEditorContext.js b/org.eclipse.xtext.web/src/test/js/xtext/MockEditorContext.js deleted file mode 100644 index 756b0e6a5a6..00000000000 --- a/org.eclipse.xtext.web/src/test/js/xtext/MockEditorContext.js +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(function() { - - function MockEditorContext(text, caretOffset) { - if (text) - this._text = text; - else - this._text = ''; - - if (caretOffset) - this._caretOffset = caretOffset; - else - this._caretOffset = 0; - - this._selection = { - start: 0, - end: 0 - }; - this._dirty = false; - this._dirtyStateListeners = []; - this._serverState = { - stateId: '0', - text: '' - }; - this._serverStateListeners = []; - this._modelChangeListeners = []; - }; - - MockEditorContext.prototype = { - - getServerState: function() { - return this._serverState; - }, - - updateServerState: function(currentText, currentStateId) { - this._serverState.text = currentText; - this._serverState.stateId = currentStateId; - return this._serverStateListeners; - }, - - addServerStateListener: function(listener) { - this._serverStateListeners.push(listener); - }, - - addModelChangeListener: function(listener) { - this._modelChangeListeners.push(listener); - }, - - getModelChangeListeners: function() { - return this._modelChangeListeners; - }, - - getCaretOffset: function() { - return this._caretOffset; - }, - - getLineStart: function(lineNumber) { - throw new Error('Not supported: getLineStart'); - }, - - getSelection: function() { - return this._selection; - }, - - getText: function(start, end) { - if (start && end) - return this._text.substring(start, end); - else - return this._text; - }, - - isDirty: function() { - return this._dirty; - }, - - setDirty: function(dirty) { - if (dirty != this._dirty) { - for (var i = 0; i < this._dirtyStateListeners.length; i++) { - this._dirtyStateListeners[i](dirty); - } - } - this._dirty = dirty; - }, - - addDirtyStateListener: function(listener) { - this._dirtyStateListeners.push(listener); - }, - - clearUndoStack: function() { - }, - - setCaretOffset: function(offset) { - this._caretOffset = offset; - }, - - setSelection: function(selection) { - this._selection = selection; - }, - - setText: function(text, start, end) { - if (start && end) - this._text = this._text.substring(0, start) + text + this._text.substring(end); - else - this._text = text; - } - - }; - - return MockEditorContext; -}); \ No newline at end of file diff --git a/org.eclipse.xtext.web/src/test/js/xtext/mock-jquery.js b/org.eclipse.xtext.web/src/test/js/xtext/mock-jquery.js deleted file mode 100644 index 84450d13f5a..00000000000 --- a/org.eclipse.xtext.web/src/test/js/xtext/mock-jquery.js +++ /dev/null @@ -1,110 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define(function() { - - function isFunction(object) { - return typeof object == 'function' - } - - function Deferred() { - var deferred = { - promise: function() { - var pr = { - done: function(callback) { - if (deferred._result) - callback(deferred._result); - deferred._done = callback; - return pr; - }, - fail: function(callback) { - if (deferred._error) - callback(deferred.error); - deferred._fail = callback; - return pr; - }, - always: function(callback) { - if (deferred._result || deferred._error) - callback(); - deferred._always = callback; - return pr; - } - }; - return pr; - }, - resolve: function(result) { - deferred._result = result; - if (deferred._done) - deferred._done(result); - if (deferred._always) - deferred._always(); - }, - reject: function(error) { - deferred._error = error; - if (deferred._fail) - deferred._fail(error); - if (deferred._always) - deferred._always(); - } - }; - return deferred; - } - - function invokeResponseCallbacks(request, response) { - var xhr = response.xhr ? response.xhr : {}; - if (response.success) - request.settings.success(response.result); - else - request.settings.error(xhr, 'error', response.errorThrown); - if (isFunction(request.settings.complete)) - request.settings.complete(xhr, response.success ? 'success' : 'error'); - } - - var requests; - - function reset() { - requests = []; - } - - function respond(result) { - var response = {success: true, result: result}; - if (requests.length == 0) - throw new Error('Response without matching request'); - var request = requests.shift(); - invokeResponseCallbacks(request, response); - } - - function httpError(errorThrown, xhr) { - var response = {success: false, errorThrown: errorThrown, xhr: xhr}; - if (requests.length == 0) - throw new Error('Response without matching request'); - var request = requests.shift(); - invokeResponseCallbacks(request, response); - } - - function getNextRequest() { - return requests[0]; - } - - function ajax(url, settings) { - var request = {url: url, settings: settings}; - requests.push(request); - } - - return { - isFunction: isFunction, - Deferred: Deferred, - reset: reset, - respond: respond, - httpError: httpError, - getNextRequest: getNextRequest, - ajax: ajax - }; -}); - diff --git a/org.eclipse.xtext.web/src/test/js/xtext/xtext-test.js b/org.eclipse.xtext.web/src/test/js/xtext/xtext-test.js deleted file mode 100644 index 95b4d1e7de7..00000000000 --- a/org.eclipse.xtext.web/src/test/js/xtext/xtext-test.js +++ /dev/null @@ -1,281 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ - -define([ - 'jquery', - 'assert', - 'xtext/compatibility', - 'xtext/ServiceBuilder', - 'xtext/MockEditorContext', -], function(mjQuery, assert, compatibility, ServiceBuilder, EditorContext) { - - function _copy(obj) { - var copy = {}; - for (var p in obj) { - if (obj.hasOwnProperty(p)) - copy[p] = obj[p]; - } - return copy; - } - - function Tester(editorContext, doneCallback) { - this._editorContext = editorContext; - this._doneCallback = doneCallback; - } - - Tester.prototype = { - - setup: function(setupAction) { - setupAction(this._editorContext); - return this; - }, - - setText: function(text, start, end) { - this._editorContext.setText(text, start, end); - return this; - }, - - setCaretOffset: function(offset) { - this._editorContext.setCaretOffset(offset); - return this; - }, - - setDirty: function(dirty) { - this._editorContext.setDirty(dirty); - return this; - }, - - invokeService: function(serviceType) { - var result = this._editorContext.xtextServices.invoke(serviceType); - if (result !== undefined) - this._lastResult = result; - return this; - }, - - triggerModelChange: function(text, start, end) { - this._editorContext.setText(text, start, end); - var listeners = this._editorContext.getModelChangeListeners(); - for (var i = 0; i < listeners.length; i++) { - var listener = listeners[i]; - listener(text); - } - return this; - }, - - checkResult: function(checker) { - var self = this; - if (self._lastResult) { - if (self._lastResult.done) - self._lastResult.done(function(result) { - checker(self._editorContext, result); - }); - else - checker(self._editorContext, self._lastResult); - } else - checker(self._editorContext); - return this; - }, - - checkRequest: function(checker) { - var request = mjQuery.getNextRequest(); - assert(request); - checker(request.url, request.settings); - return this; - }, - - checkSuccess: function(checker) { - var lastSuccess = this._lastSuccess; - assert(lastSuccess); - checker(lastSuccess.serviceType, lastSuccess.result); - return this; - }, - - checkError: function(checker) { - var lastError = this._lastError; - assert(lastError); - checker(lastError.serviceType, lastError.severity, lastError.message, lastError.requestData); - return this; - }, - - respond: function(result) { - mjQuery.respond(result); - return this; - }, - - httpError: function(errorThrown, xhr) { - mjQuery.httpError(errorThrown, xhr); - return this; - }, - - done: function() { - this._doneCallback(); - } - - } - - var exports = {}; - - exports.testEditor = function(options) { - if (!options) - options = {}; - var editorContext = exports.createEditor(options); - var tester = new Tester(editorContext, options.doneCallback); - editorContext.xtextServices.successListeners.push(function(serviceType, result) { - tester._lastSuccess = { - serviceType: serviceType, - result: result - }; - }); - editorContext.xtextServices.errorListeners.push(function(serviceType, severity, message, requestData) { - tester._lastError = { - serviceType: serviceType, - severity: severity, - message: message, - requestData: requestData - }; - }); - mjQuery.reset(); - return tester; - } - - exports.createEditor = function(options) { - if (!options) - options = {}; - var editorContext = new EditorContext(); - exports.createServices(editorContext, options); - return editorContext; - } - - function TestServiceBuilder(xtextServices) { - ServiceBuilder.call(this, xtextServices); - } - TestServiceBuilder.prototype = new ServiceBuilder(); - - exports.createServices = function(editorContext, options) { - options.serviceUrl = 'test://xtext-service'; - var xtextServices = { - options: options, - editorContext: editorContext, - serviceTypes: {} - }; - var serviceBuilder = new TestServiceBuilder(xtextServices); - serviceBuilder.createServices(); - xtextServices.serviceTypes.generate = function() { - return xtextServices.generate(); - } - xtextServices.invoke = function(serviceType) { - var invokeFunction = xtextServices.serviceTypes[serviceType]; - if (invokeFunction) - return invokeFunction(); - else - throw new Error('Service \'' + service + '\' is not available.'); - }; - xtextServices.errorListeners = []; - editorContext.xtextServices = xtextServices; - return xtextServices; - } - - /** - * Document update service. - */ - TestServiceBuilder.prototype.setupUpdateService = function(refreshDocument) { - var services = this.services; - var editorContext = services.editorContext; - services.editorContext.addModelChangeListener(function(event) { - if (!event._xtext_init) - editorContext.setDirty(true); - if (services.options.sendFullText) - refreshDocument(); - else - services.update(); - }); - services.serviceTypes.update = function() { - return services.update(); - } - services.serviceTypes.validate = function() { - return services.validate(); - } - services.serviceTypes.highlight = function() { - return services.computeHighlighting(); - } - } - - /** - * Persistence services: load, save, and revert. - */ - TestServiceBuilder.prototype.setupPersistenceServices = function() { - var services = this.services; - services.serviceTypes.load = function() { - return services.loadResource(); - } - services.serviceTypes.save = function() { - return services.saveResource(); - } - services.serviceTypes.revert = function() { - return services.revertResource(); - } - } - - /** - * Content assist service. - */ - TestServiceBuilder.prototype.setupContentAssistService = function() { - var services = this.services; - services.serviceTypes.assist = function() { - return services.getContentAssist(); - } - } - - /** - * Semantic highlighting service. - */ - TestServiceBuilder.prototype.doHighlighting = function() { - this.services.computeHighlighting(); - } - - /** - * Validation service. - */ - TestServiceBuilder.prototype.doValidation = function() { - this.services.validate(); - } - - /** - * Hover service. - */ - TestServiceBuilder.prototype.setupHoverService = function() { - var services = this.services; - services.serviceTypes.hover = function() { - return services.getHoverInfo(); - } - } - - /** - * Occurrences service. - */ - TestServiceBuilder.prototype.setupOccurrencesService = function() { - var services = this.services; - services.serviceTypes.occurrences = function() { - return services.getOccurrences(); - } - } - - /** - * Formatting service. - */ - TestServiceBuilder.prototype.setupFormattingService = function() { - var services = this.services; - services.serviceTypes.format = function() { - return services.format(); - } - } - - return exports; -}); - diff --git a/org.eclipse.xtext.web/src/test/xtext-gen/org/eclipse/xtext/web/example/statemachine/tests/StatemachineInjectorProvider.java b/org.eclipse.xtext.web/src/test/xtext-gen/org/eclipse/xtext/web/example/statemachine/tests/StatemachineInjectorProvider.java deleted file mode 100644 index 7d63dbd66f2..00000000000 --- a/org.eclipse.xtext.web/src/test/xtext-gen/org/eclipse/xtext/web/example/statemachine/tests/StatemachineInjectorProvider.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.statemachine.tests; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.xtext.testing.GlobalRegistries; -import org.eclipse.xtext.testing.GlobalRegistries.GlobalStateMemento; -import org.eclipse.xtext.testing.IInjectorProvider; -import org.eclipse.xtext.testing.IRegistryConfigurator; -import org.eclipse.xtext.web.example.statemachine.StatemachineRuntimeModule; -import org.eclipse.xtext.web.example.statemachine.StatemachineStandaloneSetup; - -public class StatemachineInjectorProvider implements IInjectorProvider, IRegistryConfigurator { - - protected GlobalStateMemento stateBeforeInjectorCreation; - protected GlobalStateMemento stateAfterInjectorCreation; - protected Injector injector; - - static { - GlobalRegistries.initializeDefaults(); - } - - @Override - public Injector getInjector() { - if (injector == null) { - this.injector = internalCreateInjector(); - stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); - } - return injector; - } - - protected Injector internalCreateInjector() { - return new StatemachineStandaloneSetup() { - @Override - public Injector createInjector() { - return Guice.createInjector(createRuntimeModule()); - } - }.createInjectorAndDoEMFRegistration(); - } - - protected StatemachineRuntimeModule createRuntimeModule() { - // make it work also with Maven/Tycho and OSGI - // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672 - // allows for bindClassLoaderToInstance to get the class loader of the bundle - // containing the instance of the injector provider (possibly inherited) - return new StatemachineRuntimeModule() { - @Override - public ClassLoader bindClassLoaderToInstance() { - return StatemachineInjectorProvider.this.getClass() - .getClassLoader(); - } - }; - } - - @Override - public void restoreRegistry() { - stateBeforeInjectorCreation.restoreGlobalState(); - stateBeforeInjectorCreation = null; - } - - @Override - public void setupRegistry() { - stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); - if (injector == null) { - getInjector(); - } - stateAfterInjectorCreation.restoreGlobalState(); - } -} diff --git a/org.eclipse.xtext.web/xtext.web.tests.launch b/org.eclipse.xtext.web/xtext.web.tests.launch deleted file mode 100644 index 94af74f5cb1..00000000000 --- a/org.eclipse.xtext.web/xtext.web.tests.launch +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.xbase.web/.classpath b/org.eclipse.xtext.xbase.web/.classpath deleted file mode 100644 index 4721713c21c..00000000000 --- a/org.eclipse.xtext.xbase.web/.classpath +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.xbase.web/.gitignore b/org.eclipse.xtext.xbase.web/.gitignore deleted file mode 100644 index 567609b1234..00000000000 --- a/org.eclipse.xtext.xbase.web/.gitignore +++ /dev/null @@ -1 +0,0 @@ -build/ diff --git a/org.eclipse.xtext.xbase.web/.project b/org.eclipse.xtext.xbase.web/.project deleted file mode 100644 index 32addaa95d3..00000000000 --- a/org.eclipse.xtext.xbase.web/.project +++ /dev/null @@ -1,29 +0,0 @@ - - - org.eclipse.xtext.xbase.web - - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.m2e.core.maven2Nature - org.eclipse.jdt.core.javanature - org.eclipse.xtext.ui.shared.xtextNature - - diff --git a/org.eclipse.xtext.xbase.web/.settings/org.eclipse.core.resources.prefs b/org.eclipse.xtext.xbase.web/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index ca5437e846f..00000000000 --- a/org.eclipse.xtext.xbase.web/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=ISO-8859-1 -encoding//src/test/java=ISO-8859-1 -encoding//src/test/xtext-gen=ISO-8859-1 -encoding/=ISO-8859-1 diff --git a/org.eclipse.xtext.xbase.web/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.xtext.xbase.web/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index 8855a971179..00000000000 --- a/org.eclipse.xtext.xbase.web/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,17 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate -org.eclipse.jdt.core.compiler.codegen.targetPlatform=21 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=21 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.problem.forbiddenReference=error -org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore -org.eclipse.jdt.core.compiler.release=disabled -org.eclipse.jdt.core.compiler.source=21 -org.eclipse.jdt.core.compiler.release=enabled diff --git a/org.eclipse.xtext.xbase.web/.settings/org.eclipse.m2e.core.prefs b/org.eclipse.xtext.xbase.web/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f1cb2..00000000000 --- a/org.eclipse.xtext.xbase.web/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/org.eclipse.xtext.xbase.web/pom.xml b/org.eclipse.xtext.xbase.web/pom.xml deleted file mode 100644 index 01ed81187a2..00000000000 --- a/org.eclipse.xtext.xbase.web/pom.xml +++ /dev/null @@ -1,109 +0,0 @@ - - 4.0.0 - - org.eclipse.xtext - xtext-parent - 2.44.0-SNAPSHOT - - org.eclipse.xtext.xbase.web - jar - - Xbase Web Integration - Additional services for the web integration of Xbase. - - - - - org.eclipse.platform - org.eclipse.core.runtime - test - - - org.eclipse.xtext - org.eclipse.xtext.web - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.xbase.ide - ${project.version} - - - org.eclipse.xtext - org.eclipse.xtext.testing - ${project.version} - test - - - org.eclipse.xtext - org.eclipse.xtext.web.example.entities - ${project.version} - test - - - org.eclipse.xtext - org.eclipse.xtext.web.example.entities.ide - ${project.version} - test - - - junit - junit - test - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-test-sources - initialize - - add-test-source - - - - src/test/xtext-gen - - - - - - - maven-jar-plugin - - - ${project.build.outputDirectory}/META-INF/MANIFEST.MF - - - - - org.apache.felix - maven-bundle-plugin - - - org.apache.maven.plugins - maven-surefire-plugin - - true - - - - - org.apache.maven.surefire - surefire-junit47 - ${maven-surefire-version} - - - - - - diff --git a/org.eclipse.xtext.xbase.web/src/main/java/org/eclipse/xtext/xbase/web/DefaultXbaseWebModule.java b/org.eclipse.xtext.xbase.web/src/main/java/org/eclipse/xtext/xbase/web/DefaultXbaseWebModule.java deleted file mode 100644 index 9acbee718c4..00000000000 --- a/org.eclipse.xtext.xbase.web/src/main/java/org/eclipse/xtext/xbase/web/DefaultXbaseWebModule.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.xbase.web; - -import org.eclipse.xtext.web.server.DefaultWebModule; - -/** - * Default Guice bindings for the web integration of Xbase languages. - */ -public class DefaultXbaseWebModule extends DefaultWebModule { - -} diff --git a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/AbstractXbaseWebTest.java b/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/AbstractXbaseWebTest.java deleted file mode 100644 index aafcee79c67..00000000000 --- a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/AbstractXbaseWebTest.java +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xbase.web.test; - -import java.io.File; -import java.io.FileWriter; -import java.io.IOException; -import java.nio.file.Files; -import java.util.HashMap; -import java.util.Map; - -import org.eclipse.emf.common.util.URI; -import org.eclipse.xtext.util.DisposableRegistry; -import org.eclipse.xtext.util.Modules2; -import org.eclipse.xtext.web.example.entities.EntitiesRuntimeModule; -import org.eclipse.xtext.web.example.entities.EntitiesStandaloneSetup; -import org.eclipse.xtext.web.example.entities.ide.EntitiesIdeModule; -import org.eclipse.xtext.web.example.entities.tests.EntitiesInjectorProvider; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.xbase.lib.Exceptions; -import org.eclipse.xtext.xbase.web.test.languages.EntitiesWebModule; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; - -import com.google.inject.Guice; -import com.google.inject.Inject; -import com.google.inject.Injector; - -public abstract class AbstractXbaseWebTest { - public static class TestResourceBaseProvider implements IResourceBaseProvider { - private final Map testFiles = new HashMap(); - - @Override - public URI getFileURI(String resourceId) { - return testFiles.get(resourceId); - } - } - - protected String normalizeLineSeparator(String value) { - return value.replace("\r\n", "\n"); - } - - public void assertEquals(CharSequence expected, CharSequence actual) { - Assert.assertEquals(normalizeLineSeparator(expected.toString()), - normalizeLineSeparator(actual.toString().toString())); - } - - private final EntitiesInjectorProvider injectorProvider = new EntitiesInjectorProvider() { - @Override - protected Injector internalCreateInjector() { - return new EntitiesStandaloneSetup() { - @Override - public Injector createInjector() { - EntitiesWebModule webModule = new EntitiesWebModule(); - EntitiesIdeModule ideModule = new EntitiesIdeModule(); - webModule.setResourceBaseProvider(resourceBaseProvider); - return Guice.createInjector( - Modules2.mixin(getRuntimeModule(), ideModule, webModule)); - } - }.createInjectorAndDoEMFRegistration(); - } - }; - - private AbstractXbaseWebTest.TestResourceBaseProvider resourceBaseProvider; - - @Inject - private DisposableRegistry disposableRegistry; - - @Inject - private XtextServiceDispatcher dispatcher; - - protected com.google.inject.Module getRuntimeModule() { - return new EntitiesRuntimeModule(); - } - - @Before - public void setup() { - AbstractXbaseWebTest.TestResourceBaseProvider _testResourceBaseProvider = new AbstractXbaseWebTest.TestResourceBaseProvider(); - resourceBaseProvider = _testResourceBaseProvider; - Injector injector = injectorProvider.getInjector(); - injector.injectMembers(this); - injectorProvider.setupRegistry(); - } - - @After - public void teardown() { - disposableRegistry.dispose(); - resourceBaseProvider.testFiles.clear(); - injectorProvider.restoreRegistry(); - } - - protected File createFile(String content) { - try { - File file = Files.createTempFile("test", ".entities").toFile(); - resourceBaseProvider.testFiles.put(file.getName(), URI.createFileURI(file.getAbsolutePath())); - FileWriter writer = new FileWriter(file); - writer.write(content); - writer.close(); - file.deleteOnExit(); - return file; - } catch (IOException e) { - throw Exceptions.sneakyThrow(e); - } - } - - protected XtextServiceDispatcher.ServiceDescriptor getService(Map parameters) { - return getService(parameters, new HashMapSession()); - } - - protected XtextServiceDispatcher.ServiceDescriptor getService(Map parameters, ISession session) { - MockServiceContext serviceContext = new MockServiceContext(parameters, session); - return dispatcher.getService(serviceContext); - } -} diff --git a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/ContentAssistTest.java b/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/ContentAssistTest.java deleted file mode 100644 index 5b409a81c49..00000000000 --- a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/ContentAssistTest.java +++ /dev/null @@ -1,357 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xbase.web.test; - -import org.eclipse.xtext.web.server.XtextServiceDispatcher; -import org.eclipse.xtext.web.server.contentassist.ContentAssistResult; -import org.junit.Test; - -import com.google.common.collect.ImmutableMap; - -public class ContentAssistTest extends AbstractXbaseWebTest { - protected void assertContentAssistResult(CharSequence resourceContent, CharSequence expectedResult) { - String contentString = normalizeLineSeparator(resourceContent.toString()); - int cursorOffset = contentString.indexOf("|"); - if (cursorOffset >= 0) { - contentString = contentString.substring(0, cursorOffset) + contentString.substring(cursorOffset + 1); - assertContentAssistResult(contentString, cursorOffset, expectedResult); - } else { - assertContentAssistResult(resourceContent, 0, expectedResult); - } - } - - protected void assertContentAssistResult(CharSequence resourceContent, int offset, CharSequence expectedResult) { - XtextServiceDispatcher.ServiceDescriptor contentAssist = getService(ImmutableMap.builder() - .put("serviceType", "assist").put("fullText", resourceContent.toString()) - .put("caretOffset", Integer.valueOf(offset).toString()).build()); - ContentAssistResult result = (ContentAssistResult) contentAssist.getService().apply(); - assertEquals(expectedResult.toString(), result.toString()); - } - - @Test - public void testExtendsType() { - String model = "entity Foo extends AbstractQu|"; - String expectedResult = "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"AbstractQu\"\n" + - " proposal = \"AbstractQueue\"\n" + - " description = \"java.util.AbstractQueue\"\n" + - " textReplacements = ArrayList (\n" + - " replace region [0 / length: 0] '\n" + - " import java.util.AbstractQueue'\n" + - " )\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"AbstractQu\"\n" + - " proposal = \"AbstractQueuedLongSynchronizer\"\n" + - " description = \"java.util.concurrent.locks.AbstractQueuedLongSynchronizer\"\n" + - " textReplacements = ArrayList (\n" + - " replace region [0 / length: 0] '\n" + - " import java.util.concurrent.locks.AbstractQueuedLongSynchronizer'\n" + - " )\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"AbstractQu\"\n" + - " proposal = \"AbstractQueuedSynchronizer\"\n" + - " description = \"java.util.concurrent.locks.AbstractQueuedSynchronizer\"\n" + - " textReplacements = ArrayList (\n" + - " replace region [0 / length: 0] '\n" + - " import java.util.concurrent.locks.AbstractQueuedSynchronizer'\n" + - " )\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testPropertyType() { - String model = "entity Foo { bar: AbstractQu| }"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"AbstractQu\"\n" + - " proposal = \"AbstractQueue\"\n" + - " description = \"java.util.AbstractQueue\"\n" + - " textReplacements = ArrayList (\n" + - " replace region [0 / length: 0] '\n" + - " import java.util.AbstractQueue'\n" + - " )\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"AbstractQu\"\n" + - " proposal = \"AbstractQueuedLongSynchronizer\"\n" + - " description = \"java.util.concurrent.locks.AbstractQueuedLongSynchronizer\"\n" + - " textReplacements = ArrayList (\n" + - " replace region [0 / length: 0] '\n" + - " import java.util.concurrent.locks.AbstractQueuedLongSynchronizer'\n" + - " )\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"AbstractQu\"\n" + - " proposal = \"AbstractQueuedSynchronizer\"\n" + - " description = \"java.util.concurrent.locks.AbstractQueuedSynchronizer\"\n" + - " textReplacements = ArrayList (\n" + - " replace region [0 / length: 0] '\n" + - " import java.util.concurrent.locks.AbstractQueuedSynchronizer'\n" + - " )\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testListMethods() { - String model = "entity Bar {\n" - + " op nop(String s) : void { }\n" - + " op add(String s) : boolean { false }\n" - + " op addAll(Iterable strings) : boolean { false }\n" - + " op addFirst(String s) : boolean { false }\n" - + "}\n" - + "entity Foo { op bar(): void { new Bar().add| } }"; - String expectedResult = - "ContentAssistResult [\n" - + " stateId = \"-80000000\"\n" - + " entries = ArrayList (\n" - + " ContentAssistEntry [\n" - + " prefix = \"add\"\n" - + " proposal = \"add()\"\n" - + " label = \"add(String s) : boolean\"\n" - + " description = \"Bar\"\n" - + " escapePosition = 232\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList (\n" - + " [231:0]\n" - + " )\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"add\"\n" - + " proposal = \"addAll()\"\n" - + " label = \"addAll(Iterable strings) : boolean\"\n" - + " description = \"Bar\"\n" - + " escapePosition = 235\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList (\n" - + " [234:0]\n" - + " )\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"add\"\n" - + " proposal = \"addFirst()\"\n" - + " label = \"addFirst(String s) : boolean\"\n" - + " description = \"Bar\"\n" - + " escapePosition = 237\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList (\n" - + " [236:0]\n" - + " )\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"!=\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"!==\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"&&\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"+\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"->\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"<\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"<=\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"<=>\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"==\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"===\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"=>\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \">\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \">=\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"?:\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"||\"\n" - + " description = \"JvmOperation\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList ()\n" - + " kind = \"REFERENCE\"\n" - + " ],\n" - + " ContentAssistEntry [\n" - + " prefix = \"\"\n" - + " proposal = \"\"value\"\"\n" - + " description = \"STRING\"\n" - + " textReplacements = ArrayList ()\n" - + " editPositions = ArrayList (\n" - + " [231:5]\n" - + " )\n" - + " kind = \"TEXT\"\n" - + " ]\n" - + " )\n" - + "]"; - assertContentAssistResult(model, expectedResult); - } - - @Test - public void testMembers() { - String model = - "entity Foo {\n" + - " foobar1: String\n" + - " op foobar2(): String {}\n" + - " op baz(): void {\n" + - " println(foob|)\n" + - " }\n" + - "}\n"; - String expectedResult = - "ContentAssistResult [\n" + - " stateId = \"-80000000\"\n" + - " entries = ArrayList (\n" + - " ContentAssistEntry [\n" + - " prefix = \"foob\"\n" + - " proposal = \"foobar1\"\n" + - " label = \"foobar1 : String\"\n" + - " description = \"Foo\"\n" + - " escapePosition = 90\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"foob\"\n" + - " proposal = \"foobar1 = value\"\n" + - " label = \"foobar1 = value : void\"\n" + - " description = \"Foo.setFoobar1()\"\n" + - " escapePosition = 98\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList (\n" + - " [93:5]\n" + - " )\n" + - " kind = \"REFERENCE\"\n" + - " ],\n" + - " ContentAssistEntry [\n" + - " prefix = \"foob\"\n" + - " proposal = \"foobar2\"\n" + - " label = \"foobar2 : String\"\n" + - " description = \"Foo.foobar2()\"\n" + - " escapePosition = 90\n" + - " textReplacements = ArrayList ()\n" + - " editPositions = ArrayList ()\n" + - " kind = \"REFERENCE\"\n" + - " ]\n" + - " )\n]"; - assertContentAssistResult(model, expectedResult); - } -} diff --git a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/HashMapSession.java b/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/HashMapSession.java deleted file mode 100644 index f84fe9229ca..00000000000 --- a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/HashMapSession.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xbase.web.test; - -import java.util.HashMap; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.xbase.lib.Functions.Function0; - -public class HashMapSession implements ISession { - private final HashMap map = new HashMap(); - - @SuppressWarnings("unchecked") - @Override - public T get(Object key) { - return (T) this.map.get(key); - } - - @Override - public T get(Object key, Function0 factory) { - synchronized (this.map) { - T sessionValue = this.get(key); - if (sessionValue != null) { - return sessionValue; - } else { - T factoryValue = factory.apply(); - put(key, factoryValue); - return factoryValue; - } - } - } - - @Override - public void put(Object key, Object value) { - map.put(key, value); - } - - @Override - public void remove(Object key) { - map.remove(key); - } -} diff --git a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/MockServiceContext.java b/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/MockServiceContext.java deleted file mode 100644 index 3790def3cc9..00000000000 --- a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/MockServiceContext.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xbase.web.test; - -import java.util.Collections; -import java.util.Map; -import java.util.Set; - -import org.eclipse.xtend.lib.annotations.Accessors; -import org.eclipse.xtext.web.server.IServiceContext; -import org.eclipse.xtext.web.server.ISession; -import org.eclipse.xtext.xbase.lib.Pure; - -public class MockServiceContext implements IServiceContext { - private Map parameters; - - @Accessors - private ISession session; - - @Override - public Set getParameterKeys() { - return Collections.unmodifiableSet(parameters.keySet()); - } - - @Override - public String getParameter(String key) { - return parameters.get(key); - } - - public MockServiceContext(Map parameters, ISession session) { - this.parameters = parameters; - this.session = session; - } - - @Pure - public ISession getSession() { - return session; - } -} diff --git a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/languages/EntitiesWebModule.java b/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/languages/EntitiesWebModule.java deleted file mode 100644 index 94516395ed4..00000000000 --- a/org.eclipse.xtext.xbase.web/src/test/java/org/eclipse/xtext/xbase/web/test/languages/EntitiesWebModule.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xbase.web.test.languages; - -import org.eclipse.xtext.web.server.persistence.FileResourceHandler; -import org.eclipse.xtext.web.server.persistence.IResourceBaseProvider; -import org.eclipse.xtext.web.server.persistence.IServerResourceHandler; -import org.eclipse.xtext.xbase.web.DefaultXbaseWebModule; - -import com.google.inject.Binder; - -public class EntitiesWebModule extends DefaultXbaseWebModule { - private IResourceBaseProvider resourceBaseProvider; - - public Class bindIServerResourceHandler() { - return FileResourceHandler.class; - } - - public void configureResourceBaseProvider(Binder binder) { - if (resourceBaseProvider != null) { - binder.bind(IResourceBaseProvider.class).toInstance(resourceBaseProvider); - } - } - - public IResourceBaseProvider getResourceBaseProvider() { - return resourceBaseProvider; - } - - public void setResourceBaseProvider(IResourceBaseProvider resourceBaseProvider) { - this.resourceBaseProvider = resourceBaseProvider; - } -} diff --git a/org.eclipse.xtext.xbase.web/src/test/xtext-gen/org/eclipse/xtext/web/example/entities/tests/EntitiesInjectorProvider.java b/org.eclipse.xtext.xbase.web/src/test/xtext-gen/org/eclipse/xtext/web/example/entities/tests/EntitiesInjectorProvider.java deleted file mode 100644 index a11162d18d3..00000000000 --- a/org.eclipse.xtext.xbase.web/src/test/xtext-gen/org/eclipse/xtext/web/example/entities/tests/EntitiesInjectorProvider.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2019 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.web.example.entities.tests; - -import com.google.inject.Guice; -import com.google.inject.Injector; -import org.eclipse.xtext.testing.GlobalRegistries; -import org.eclipse.xtext.testing.GlobalRegistries.GlobalStateMemento; -import org.eclipse.xtext.testing.IInjectorProvider; -import org.eclipse.xtext.testing.IRegistryConfigurator; -import org.eclipse.xtext.web.example.entities.EntitiesRuntimeModule; -import org.eclipse.xtext.web.example.entities.EntitiesStandaloneSetup; - -public class EntitiesInjectorProvider implements IInjectorProvider, IRegistryConfigurator { - - protected GlobalStateMemento stateBeforeInjectorCreation; - protected GlobalStateMemento stateAfterInjectorCreation; - protected Injector injector; - - static { - GlobalRegistries.initializeDefaults(); - } - - @Override - public Injector getInjector() { - if (injector == null) { - this.injector = internalCreateInjector(); - stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); - } - return injector; - } - - protected Injector internalCreateInjector() { - return new EntitiesStandaloneSetup() { - @Override - public Injector createInjector() { - return Guice.createInjector(createRuntimeModule()); - } - }.createInjectorAndDoEMFRegistration(); - } - - protected EntitiesRuntimeModule createRuntimeModule() { - // make it work also with Maven/Tycho and OSGI - // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493672 - // allows for bindClassLoaderToInstance to get the class loader of the bundle - // containing the instance of the injector provider (possibly inherited) - return new EntitiesRuntimeModule() { - @Override - public ClassLoader bindClassLoaderToInstance() { - return EntitiesInjectorProvider.this.getClass() - .getClassLoader(); - } - }; - } - - @Override - public void restoreRegistry() { - stateBeforeInjectorCreation.restoreGlobalState(); - stateBeforeInjectorCreation = null; - } - - @Override - public void setupRegistry() { - stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); - if (injector == null) { - getInjector(); - } - stateAfterInjectorCreation.restoreGlobalState(); - } -} diff --git a/org.eclipse.xtext.xbase.web/xtext.xbase.web.tests.launch b/org.eclipse.xtext.xbase.web/xtext.xbase.web.tests.launch deleted file mode 100644 index b386535e50a..00000000000 --- a/org.eclipse.xtext.xbase.web/xtext.xbase.web.tests.launch +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.eclipse.xtext.xtext.generator/META-INF/MANIFEST.MF b/org.eclipse.xtext.xtext.generator/META-INF/MANIFEST.MF index 82d50b2dc81..737ab556eac 100644 --- a/org.eclipse.xtext.xtext.generator/META-INF/MANIFEST.MF +++ b/org.eclipse.xtext.xtext.generator/META-INF/MANIFEST.MF @@ -63,7 +63,6 @@ Export-Package: org.eclipse.xtext.xtext.generator;version="2.44.0", org.eclipse.xtext.xtext.generator.ui.templates;version="2.44.0", org.eclipse.xtext.xtext.generator.util;version="2.44.0", org.eclipse.xtext.xtext.generator.validation;version="2.44.0", - org.eclipse.xtext.xtext.generator.web;version="2.44.0", org.eclipse.xtext.xtext.generator.xbase;version="2.44.0" Automatic-Module-Name: org.eclipse.xtext.xtext.generator Eclipse-SourceReferences: eclipseSourceReferences diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/IXtextGeneratorLanguage.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/IXtextGeneratorLanguage.java index 8ba55c8716e..8da41f7faad 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/IXtextGeneratorLanguage.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/IXtextGeneratorLanguage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -33,8 +33,6 @@ public interface IXtextGeneratorLanguage { GuiceModuleAccess getEclipsePluginGenModule(); - GuiceModuleAccess getWebGenModule(); - ResourceSet getResourceSet(); /** diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/StandardLanguage.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/StandardLanguage.java index db77ae042a2..04d0b371c4d 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/StandardLanguage.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/StandardLanguage.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -36,7 +36,6 @@ import org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2; import org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2; import org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2; -import org.eclipse.xtext.xtext.generator.web.WebIntegrationFragment; import org.eclipse.xtext.xtext.generator.xbase.XbaseGeneratorFragment2; import org.eclipse.xtext.xtext.generator.xbase.XtypeGeneratorFragment2; @@ -48,9 +47,7 @@ * eliminates the need to list all these fragments explicitly in the workflow * file. More fragments can be added as required, but the standard fragments * cannot be removed. However, most of these fragments disable themselves - * automatically if they are not applicable, e.g. the - * {@link WebIntegrationFragment} does not generate anything if the web project - * is disabled in the project configuration. + * automatically if they are not applicable. * *

* The configuration for individual fragments can be made with the corresponding @@ -126,8 +123,6 @@ public class StandardLanguage extends XtextGeneratorLanguage { private CompareFragment2 compareEditor = new CompareFragment2(); - private WebIntegrationFragment webSupport = new WebIntegrationFragment(); - @Deprecated private org.eclipse.xtext.xtext.generator.ui.projectWizard.SimpleProjectWizardFragment2 newProjectWizardForEclipse = new org.eclipse.xtext.xtext.generator.ui.projectWizard.SimpleProjectWizardFragment2(); @@ -152,18 +147,6 @@ public void initialize(Injector injector) { if (!commonTypesSupport.getOnlyEnabledIfGrammarIsUsed().isSet()) { commonTypesSupport.setOnlyEnabledIfGrammarIsUsed(true); } - if (!webSupport.getFramework().isSet()) { - webSupport.setFramework("Ace"); - } - if (!webSupport.getGenerateServlet().isSet()) { - webSupport.setGenerateServlet(true); - } - if (!webSupport.getGenerateJettyLauncher().isSet()) { - webSupport.setGenerateJettyLauncher(true); - } - if (!webSupport.getGenerateHtmlExample().isSet()) { - webSupport.setGenerateHtmlExample(true); - } super.initialize(injector); } @@ -197,7 +180,6 @@ protected List getImplicitFragments() { nullSafeAdd(fragments, xtypeSupport); nullSafeAdd(fragments, codeTemplates); nullSafeAdd(fragments, compareEditor); - nullSafeAdd(fragments, webSupport); nullSafeAdd(fragments, newProjectWizardForEclipse); nullSafeAdd(fragments, projectWizard); nullSafeAdd(fragments, fileWizard); @@ -430,14 +412,6 @@ public void setCompareEditor(CompareFragment2 compareEditor) { this.compareEditor = compareEditor; } - protected WebIntegrationFragment getWebSupport() { - return webSupport; - } - - public void setWebSupport(WebIntegrationFragment webSupport) { - this.webSupport = webSupport; - } - @SuppressWarnings("deprecation") protected org.eclipse.xtext.xtext.generator.ui.projectWizard.SimpleProjectWizardFragment2 getNewProjectWizardForEclipse() { return newProjectWizardForEclipse; diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGenerator.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGenerator.java index c670f305686..6a5ae11b6a4 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGenerator.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGenerator.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2021 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -255,7 +255,6 @@ protected void generateSetups(IXtextGeneratorLanguage language) { templates.createRuntimeGenSetup(language).writeTo(projectConfig.getRuntime().getSrcGen()); templates.createRuntimeSetup(language).writeTo(projectConfig.getRuntime().getSrc()); templates.createIdeSetup(language).writeTo(projectConfig.getGenericIde().getSrc()); - templates.createWebSetup(language).writeTo(projectConfig.getWeb().getSrc()); } protected void generateModules(IXtextGeneratorLanguage language) { @@ -265,8 +264,6 @@ protected void generateModules(IXtextGeneratorLanguage language) { templates.createIdeGenModule(language).writeTo(projectConfig.getGenericIde().getSrcGen()); templates.createEclipsePluginGenModule(language).writeTo(projectConfig.getEclipsePlugin().getSrcGen()); templates.createEclipsePluginModule(language).writeTo(projectConfig.getEclipsePlugin().getSrc()); - templates.createWebGenModule(language).writeTo(projectConfig.getWeb().getSrcGen()); - templates.createWebModule(language).writeTo(projectConfig.getWeb().getSrc()); } protected void generateExecutableExtensionFactory(IXtextGeneratorLanguage language) { diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorLanguage.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorLanguage.java index d754fa55e00..20c64b076d5 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorLanguage.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorLanguage.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -99,8 +99,6 @@ public class XtextGeneratorLanguage extends CompositeGeneratorFragment2 implemen private final GuiceModuleAccess eclipsePluginGenModule = new GuiceModuleAccess(); - private final GuiceModuleAccess webGenModule = new GuiceModuleAccess(); - @Inject private Provider resourceSetProvider; @@ -379,8 +377,4 @@ public GuiceModuleAccess getEclipsePluginGenModule() { return eclipsePluginGenModule; } - @Override - public GuiceModuleAccess getWebGenModule() { - return webGenModule; - } } diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorNaming.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorNaming.java index f68c643bf2c..ef762c81ae5 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorNaming.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorNaming.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -134,24 +134,4 @@ public TypeReference getEclipsePluginActivator() { return new TypeReference(pluginName + ".internal", activatorName); } - public String getWebBasePackage(Grammar grammar) { - return GrammarUtil.getNamespace(grammar) + ".web"; - } - - public TypeReference getWebModule(Grammar grammar) { - return new TypeReference(getWebBasePackage(grammar), GrammarUtil.getSimpleName(grammar) + "WebModule"); - } - - public TypeReference getWebDefaultModule(Grammar grammar) { - return new TypeReference("org.eclipse.xtext.web.server.DefaultWebModule"); - } - - public TypeReference getWebGenModule(Grammar grammar) { - return new TypeReference(getWebBasePackage(grammar), - "Abstract" + GrammarUtil.getSimpleName(grammar) + "WebModule"); - } - - public TypeReference getWebSetup(Grammar grammar) { - return new TypeReference(getWebBasePackage(grammar), GrammarUtil.getSimpleName(grammar) + "WebSetup"); - } } diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.xtend b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.xtend index 8633f0d80da..e633a249433 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.xtend +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.xtend @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015, 20201 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -376,83 +376,6 @@ class XtextGeneratorTemplates { file.markedAsGenerated = true return file } - - def JavaFileAccess createWebModule(IXtextGeneratorLanguage langConfig) { - val it = langConfig.grammar - if (codeConfig.preferXtendStubs) { - return fileAccessFactory.createXtendFile(webModule,''' - /** - * Use this class to register additional components to be used within the web application. - */ - class «webModule.simpleName» extends «webGenModule» { - } - ''') - } else { - return fileAccessFactory.createJavaFile(webModule,''' - /** - * Use this class to register additional components to be used within the web application. - */ - public class «webModule.simpleName» extends «webGenModule» { - } - ''') - } - } - - def JavaFileAccess createWebGenModule(IXtextGeneratorLanguage langConfig) { - val it = langConfig.grammar - val superClass = langConfig.webGenModule.superClass ?: webDefaultModule - val file = fileAccessFactory.createGeneratedJavaFile(webGenModule) - file.importNestedTypeThreshold = JavaFileAccess.DONT_IMPORT_NESTED_TYPES - file.typeComment = ''' - /** - * Manual modifications go to {@link «webModule.simpleName»}. - */ - ''' - file.annotations += new SuppressWarningsAnnotation - file.content = ''' - public abstract class «webGenModule.simpleName» extends «superClass» { - - «FOR binding : langConfig.webGenModule.bindings» - «binding.createBindingMethod» - - «ENDFOR» - } - ''' - file.markedAsGenerated = true - return file - } - - def JavaFileAccess createWebSetup(IXtextGeneratorLanguage langConfig) { - val it = langConfig.grammar - if (codeConfig.preferXtendStubs) { - return fileAccessFactory.createXtendFile(webSetup, ''' - /** - * Initialization support for running Xtext languages in web applications. - */ - class «webSetup.simpleName» extends «runtimeSetup» { - - override «Injector» createInjector() { - return «Guice».createInjector(«Modules2».mixin(new «runtimeModule», new «genericIdeModule», new «webModule»)) - } - - } - ''') - } else { - return fileAccessFactory.createJavaFile(webSetup, ''' - /** - * Initialization support for running Xtext languages in web applications. - */ - public class «webSetup.simpleName» extends «runtimeSetup» { - - @Override - public «Injector» createInjector() { - return «Guice».createInjector(«Modules2».mixin(new «runtimeModule»(), new «genericIdeModule»(), new «webModule»())); - } - - } - ''') - } - } def JavaFileAccess createEclipsePluginExecutableExtensionFactory(IXtextGeneratorLanguage langConfig, IXtextGeneratorLanguage activatorLanguage) { val grammar = langConfig.grammar diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IWebProjectConfig.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IWebProjectConfig.java deleted file mode 100644 index efc711c8411..00000000000 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IWebProjectConfig.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.xtext.generator.model.project; - -import org.eclipse.xtext.xtext.generator.model.IXtextGeneratorFileSystemAccess; - -/** - * Configuration of the web project. - * - * @noimplement This interface should not be implemented by clients. - */ -public interface IWebProjectConfig extends ISubProjectConfig { - - IXtextGeneratorFileSystemAccess getAssets(); - -} diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IXtextProjectConfig.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IXtextProjectConfig.java index e34c1474e21..6aa390b2e97 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IXtextProjectConfig.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/IXtextProjectConfig.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -28,8 +28,6 @@ public interface IXtextProjectConfig extends IGuiceAwareGeneratorComponent { IBundleProjectConfig getEclipsePluginTest(); - IWebProjectConfig getWeb(); - List getEnabledProjects(); List getTestProjects(); diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/StandardProjectConfig.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/StandardProjectConfig.java index e2b73f7d89b..2f6c8ce41d9 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/StandardProjectConfig.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/StandardProjectConfig.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -100,12 +100,6 @@ public void setDefaults() { runtimeProjectConfig.setEcoreModel(computeEcoreModel(runtimeProjectConfig)); } } - if (it instanceof WebProjectConfig) { - WebProjectConfig webProjectConfig = (WebProjectConfig) it; - if (webProjectConfig.getAssetsPath() == null) { - webProjectConfig.setAssets(computeAssets(webProjectConfig)); - } - } }; } @@ -128,8 +122,6 @@ protected String computeName(SubProjectConfig project) { } else { return baseName + ".ui"; } - } else if (Objects.equals(project, getWeb())) { - return baseName + ".web"; } return null; } @@ -177,14 +169,6 @@ protected String computeEcoreModel(RuntimeProjectConfig project) { return project.getRootPath() + "/" + "model/generated"; } - protected String computeAssets(WebProjectConfig project) { - if (mavenLayout) { - return project.getRootPath() + "/" + "src/"+ computeSourceSet(project) + "/webapp"; - } else { - return project.getRootPath() + "/" + "WebRoot"; - } - } - protected String computeSourceSet(SubProjectConfig project) { if (getTestProjects().contains(project)) { return "test"; diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/WebProjectConfig.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/WebProjectConfig.java deleted file mode 100644 index f93d1ab041e..00000000000 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/WebProjectConfig.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xtext.generator.model.project; - -import com.google.inject.Injector; -import org.eclipse.xtext.xtext.generator.model.IXtextGeneratorFileSystemAccess; - -/** - * Configuration of the web project. - * - * @noextend This class should not be extended by clients. - */ -public class WebProjectConfig extends SubProjectConfig implements IWebProjectConfig { - private String assetsPath; - - private IXtextGeneratorFileSystemAccess assets; - - public void setAssets(String path) { - this.assetsPath = path; - } - - @Override - public void initialize(Injector injector) { - super.initialize(injector); - if (this.assetsPath != null) { - assets = getOwner().newFileSystemAccess(assetsPath, true); - assets.initialize(injector); - } - } - - public String getAssetsPath() { - return assetsPath; - } - - public IXtextGeneratorFileSystemAccess getAssets() { - return assets; - } -} diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/XtextProjectConfig.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/XtextProjectConfig.java index 78b9973a41b..6c7aaffbba5 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/XtextProjectConfig.java +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/model/project/XtextProjectConfig.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2023 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -40,8 +40,6 @@ public class XtextProjectConfig implements IXtextProjectConfig { private BundleProjectConfig eclipsePluginTest = new BundleProjectConfig(); - private WebProjectConfig web = new WebProjectConfig(); - @Inject private CodeConfig codeConfig; @@ -52,7 +50,7 @@ public void checkConfiguration(Issues issues) { } public List getAllProjects() { - return Lists.newArrayList(runtime, runtimeTest, genericIde, eclipsePlugin, eclipsePluginTest, web); + return Lists.newArrayList(runtime, runtimeTest, genericIde, eclipsePlugin, eclipsePluginTest); } @Override @@ -78,7 +76,7 @@ public void initialize(Injector injector) { public void setDefaults() { runtime.setEnabled(true); - if (eclipsePlugin.isEnabled() || web.isEnabled()) { + if (eclipsePlugin.isEnabled()) { genericIde.setEnabled(true); } } @@ -137,14 +135,6 @@ public void setEclipsePluginTest(BundleProjectConfig eclipsePluginTest) { this.eclipsePluginTest = eclipsePluginTest; } - public WebProjectConfig getWeb() { - return web; - } - - public void setWeb(WebProjectConfig web) { - this.web = web; - } - public CodeConfig getCodeConfig() { return codeConfig; } diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/web/RegexpExtensions.java b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/web/RegexpExtensions.java deleted file mode 100644 index 08214ad3c82..00000000000 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/web/RegexpExtensions.java +++ /dev/null @@ -1,75 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.xtext.generator.web; - -import org.eclipse.xtext.util.Strings; - -public class RegexpExtensions { - - public static String toRegexpString(String string, boolean ignoreCase) { - int length = string.length(); - StringBuilder out = new StringBuilder(2 * length); - - for (int x = 0; x < length; x++) { - char c = string.charAt(x); - switch (c) { - case '\t': - out.append("\\\\t"); - break; - case '\n': - out.append("\\\\n"); - break; - case '\r': - out.append("\\\\r"); - break; - case '\f': - out.append("\\\\f"); - break; - case '\b': - out.append("[\\\\b]"); - break; - case '"': - case '.': - case '*': - case '+': - case '?': - case '^': - case '$': - case '{': - case '}': - case '(': - case ')': - case '|': - case '[': - case ']': - case '\\': - out.append("\\\\"); - out.append(c); - break; - default: - if (ignoreCase && Character.isLetter(c)) { - out.append('['); - out.append(Character.toLowerCase(c)); - out.append(Character.toUpperCase(c)); - out.append(']'); - } else if (c < 0x20 || c > 0x7e) { - out.append("\\\\u"); - out.append(Strings.toHex((c >> 12) & 0xf)); - out.append(Strings.toHex((c >> 8) & 0xf)); - out.append(Strings.toHex((c >> 4) & 0xf)); - out.append(Strings.toHex(c & 0xf)); - } else { - out.append(c); - } - } - } - return out.toString(); - } - -} diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/web/WebIntegrationFragment.xtend b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/web/WebIntegrationFragment.xtend deleted file mode 100644 index e26b67c67a8..00000000000 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/web/WebIntegrationFragment.xtend +++ /dev/null @@ -1,916 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2015, 2024 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - *******************************************************************************/ -package org.eclipse.xtext.xtext.generator.web - -import com.google.common.collect.LinkedHashMultimap -import com.google.common.collect.Multimap -import com.google.inject.Inject -import java.util.ArrayList -import java.util.Collection -import java.util.Collections -import java.util.HashSet -import java.util.List -import java.util.Set -import java.util.regex.Pattern -import org.eclipse.emf.mwe2.runtime.Mandatory -import org.eclipse.xtend.lib.annotations.Accessors -import org.eclipse.xtext.Grammar -import org.eclipse.xtext.GrammarUtil -import org.eclipse.xtext.util.DisposableRegistry -import org.eclipse.xtext.xtext.generator.AbstractXtextGeneratorFragment -import org.eclipse.xtext.xtext.generator.CodeConfig -import org.eclipse.xtext.xtext.generator.Issues -import org.eclipse.xtext.xtext.generator.XtextGeneratorNaming -import org.eclipse.xtext.xtext.generator.model.FileAccessFactory -import org.eclipse.xtext.xtext.generator.model.TypeReference -import org.eclipse.xtext.xtext.generator.util.BooleanGeneratorOption -import org.eclipse.xtext.xtext.generator.util.GeneratorOption -import org.eclipse.xtext.xtext.generator.xbase.XbaseUsageDetector - -import static extension org.eclipse.xtext.GrammarUtil.* -import static extension org.eclipse.xtext.xtext.generator.model.TypeReference.* -import static extension org.eclipse.xtext.xtext.generator.util.GrammarUtil2.* -import static extension org.eclipse.xtext.xtext.generator.web.RegexpExtensions.* - -/** - * Main generator fragment for web integration. - */ -class WebIntegrationFragment extends AbstractXtextGeneratorFragment { - - static enum Framework { - ORION, ACE, CODEMIRROR - } - - static val REQUIREJS_VERSION = '2.3.7' - static val REQUIREJS_TEXT_VERSION = '2.0.15' - static val JQUERY_VERSION = '3.6.0' - static val ACE_VERSION = '1.3.3' - static val CODEMIRROR_VERSION = '5.41.0' - - @Inject FileAccessFactory fileAccessFactory - @Inject CodeConfig codeConfig - @Inject extension XtextGeneratorNaming - @Inject extension XbaseUsageDetector - - val enabledPatterns = new HashSet - val suppressedPatterns = new HashSet - - @Accessors(PUBLIC_GETTER) - val framework = new GeneratorOption - - @Accessors(PUBLIC_GETTER) - val generateJsHighlighting = new BooleanGeneratorOption(true) - - @Accessors(PUBLIC_GETTER) - val generateServlet = new BooleanGeneratorOption(false) - - @Accessors(PUBLIC_GETTER) - val generateJettyLauncher = new BooleanGeneratorOption(false) - - @Accessors(PUBLIC_GETTER) - val generateWebXml = new BooleanGeneratorOption(false) - - @Accessors(PUBLIC_GETTER) - val generateHtmlExample = new BooleanGeneratorOption(false) - - String highlightingModuleName - String highlightingPath - String keywordsFilter = '\\w+' - boolean useServlet3Api = true - boolean ignoreCase = false - - @Accessors(PUBLIC_SETTER) - String requireJsVersion = REQUIREJS_VERSION - - @Accessors(PUBLIC_SETTER) - String requireJsTextVersion = REQUIREJS_TEXT_VERSION - - @Accessors(PUBLIC_SETTER) - String jQueryVersion = JQUERY_VERSION - - @Accessors(PUBLIC_SETTER) - String aceVersion = ACE_VERSION - - @Accessors(PUBLIC_SETTER) - String codeMirrorVersion = CODEMIRROR_VERSION - - /** - * Choose one of the supported frameworks: {@code "Orion"}, {@code "Ace"}, or {@code "CodeMirror"} - */ - @Mandatory - def void setFramework(String frameworkName) { - this.framework.set(Framework.valueOf(frameworkName.toUpperCase)) - } - - /** - * Whether JavaScript-based syntax highlighting should be generated. The default is {@code true}. - */ - def void setGenerateJsHighlighting(boolean generateJsHighlighting) { - this.generateJsHighlighting.set(generateJsHighlighting) - } - - /** - * Name of the syntax highlighting RequireJS module to be generated. - */ - def void setHighlightingModuleName(String moduleName) { - this.highlightingModuleName = moduleName - } - - /** - * The path of the syntax highlighting JavaScript file to be generated. The default is to - * derive the path from the {@code highlightingModuleName} property. - */ - def void setHighlightingPath(String path) { - this.highlightingPath = path - } - - /** - * Regular expression for filtering those language keywords that should be highlighted. The default - * is {@code \w+}, i.e. keywords consisting only of letters and digits. - */ - def void setKeywordsFilter(String keywordsFilter) { - this.keywordsFilter = keywordsFilter - } - - /** - * Whether a servlet for DSL-specific services should be generated. The default is {@code false}. - */ - def void setGenerateServlet(boolean generateServlet) { - this.generateServlet.set(generateServlet) - } - - /** - * Whether a web.xml file should be generated. The default is {@code false} (not necessary for Servlet 3 compatible containers). - */ - def void setGenerateWebXml(boolean generateWebXml) { - this.generateWebXml.set(generateWebXml) - } - - /** - * Whether the Servlet 3 API ({@code WebServlet} annotation) should be used for the generated servlet. - * The default is {@code true}. - */ - def void setUseServlet3Api(boolean useServlet3Api) { - this.useServlet3Api = useServlet3Api - } - - /** - * Whether the generated syntax highlighting should ignore case for language keywords. - */ - def void setIgnoreCase(boolean ignoreCase) { - this.ignoreCase = ignoreCase - } - - /** - * Whether a Java main-class for launching a local Jetty server should be generated. The default - * is {@code false}. - */ - def void setGenerateJettyLauncher(boolean generateJettyLauncher) { - this.generateJettyLauncher.set(generateJettyLauncher) - } - - /** - * Whether an example {@code index.html} file for testing the web-based editor should be generated. - * The default is {@code false}. - */ - def void setGenerateHtmlExample(boolean generateHtmlExample) { - this.generateHtmlExample.set(generateHtmlExample) - } - - /** - * Enable a default pattern for syntax highlighting. See the documentation of the chosen - * framework for details. - */ - def void addEnablePattern(String pattern) { - enabledPatterns += pattern - } - - /** - * Suppress a default pattern for syntax highlighting. See the documentation of the chosen - * framework for details. - */ - def void addSuppressPattern(String pattern) { - suppressedPatterns += pattern - } - - protected def TypeReference getServerLauncherClass(Grammar grammar) { - new TypeReference(grammar.webBasePackage + '.' + 'ServerLauncher') - } - - protected def TypeReference getServletClass(Grammar grammar) { - new TypeReference(grammar.webBasePackage + '.' + GrammarUtil.getSimpleName(grammar) + 'Servlet') - } - - override checkConfiguration(Issues issues) { - super.checkConfiguration(issues) - if (!framework.isSet) - issues.addError('The property \'framework\' is required.') - for (pattern : enabledPatterns.filter[suppressedPatterns.contains(it)]) { - issues.addError('The pattern \'' + pattern + '\' cannot be enabled and suppressed.') - } - } - - override generate() { - if (highlightingModuleName !== null && highlightingModuleName.endsWith('.js')) - highlightingModuleName = highlightingModuleName.substring(0, highlightingModuleName.length - 3) - val langId = language.fileExtensions.head - val hlModName = highlightingModuleName ?: switch framework.get { - case ORION: 'xtext-resources/generated/' + langId + '-syntax' - case ACE, case CODEMIRROR: 'xtext-resources/generated/mode-' + langId - } - if (generateJsHighlighting.get && projectConfig.web.assets !== null) { - if (highlightingPath.nullOrEmpty) - highlightingPath = hlModName + '.js' - generateJsHighlighting(langId) - } - - if (generateServlet.get && projectConfig.web.src !== null) { - generateServlet() - } - if (generateJettyLauncher.get && projectConfig.web.src !== null) { - generateServerLauncher() - } - if (generateHtmlExample.get && projectConfig.web.assets !== null) { - generateIndexDoc(hlModName) - generateStyleSheet() - } - if (generateWebXml.get && projectConfig.web.assets !== null) { - generateWebXml() - } - } - - static val DELIMITERS_PATTERN = '''[\\s.:;,!?+\\-*/&|<>()[\\]{}]''' - - protected def void generateJsHighlighting(String langId) { - val allKeywords = grammar.allKeywords - val wordKeywords = newArrayList - val nonWordKeywords = newArrayList - val keywordsFilterPattern = Pattern.compile(keywordsFilter) - val wordKeywordPattern = Pattern.compile('\\w(.*\\w)?') - allKeywords.filter[keywordsFilterPattern.matcher(it).matches].forEach[ - if (wordKeywordPattern.matcher(it).matches) - wordKeywords += it - else - nonWordKeywords += it - ] - Collections.sort(wordKeywords) - Collections.sort(nonWordKeywords) - val jsFile = fileAccessFactory.createTextFile() - jsFile.path = highlightingPath - switch framework.get { - - case ORION: { - val patterns = createOrionPatterns(langId, allKeywords) - if (!wordKeywords.empty) - patterns += '''{name: "keyword.«langId»", match: «generateKeywordsRegExp»}''' - if (!nonWordKeywords.empty) - patterns += '''{name: "keyword.extra.«langId»", match: «generateExtraKeywordsRegExp»}''' - jsFile.content = ''' - define(«IF !highlightingModuleName.nullOrEmpty»"«highlightingModuleName»", «ENDIF»[], function() { - «generateKeywords(wordKeywords, nonWordKeywords)» - return { - id: "xtext.«langId»", - contentTypes: ["xtext/«langId»"], - patterns: [ - «FOR pattern : patterns SEPARATOR ',\n'»«pattern»«ENDFOR» - ] - }; - }); - ''' - } - - case ACE: { - val patterns = createCodeMirrorPatterns(langId, allKeywords) - if (!wordKeywords.empty) - patterns.put('start', '''{token: "keyword", regex: «generateKeywordsRegExp»}''') - if (!nonWordKeywords.empty) - patterns.put('start', '''{token: "keyword", regex: «generateExtraKeywordsRegExp»}''') - jsFile.content = ''' - define(«IF !highlightingModuleName.nullOrEmpty»"«highlightingModuleName»", «ENDIF»["ace/lib/oop", "ace/mode/text", "ace/mode/text_highlight_rules"], function(oop, mText, mTextHighlightRules) { - var HighlightRules = function() { - «generateKeywords(wordKeywords, nonWordKeywords)» - this.$rules = { - «FOR state : patterns.keySet SEPARATOR ','» - "«state»": [ - «FOR rule : patterns.get(state) SEPARATOR ',\n'»«rule»«ENDFOR» - ] - «ENDFOR» - }; - }; - oop.inherits(HighlightRules, mTextHighlightRules.TextHighlightRules); - - var Mode = function() { - this.HighlightRules = HighlightRules; - }; - oop.inherits(Mode, mText.Mode); - Mode.prototype.$id = "xtext/«langId»"; - Mode.prototype.getCompletions = function(state, session, pos, prefix) { - return []; - } - - return { - Mode: Mode - }; - }); - ''' - } - - case CODEMIRROR: { - val patterns = createCodeMirrorPatterns(langId, allKeywords) - if (!wordKeywords.empty) - patterns.put('start', '''{token: "keyword", regex: «generateKeywordsRegExp»}''') - if (!nonWordKeywords.empty) - patterns.put('start', '''{token: "keyword", regex: «generateExtraKeywordsRegExp»}''') - jsFile.content = ''' - define(«IF !highlightingModuleName.nullOrEmpty»"«highlightingModuleName»", «ENDIF»["codemirror", "codemirror/addon/mode/simple"], function(CodeMirror, SimpleMode) { - «generateKeywords(wordKeywords, nonWordKeywords)» - CodeMirror.defineSimpleMode("xtext/«langId»", { - «FOR state : patterns.keySet SEPARATOR ','» - «state»: «IF state == 'meta'»{«ELSE»[«ENDIF» - «FOR rule : patterns.get(state) SEPARATOR ',\n'»«rule»«ENDFOR» - «IF state == 'meta'»}«ELSE»]«ENDIF» - «ENDFOR» - }); - }); - ''' - } - - } - jsFile.writeTo(projectConfig.web.assets) - } - - protected def CharSequence generateKeywords(List wordKeywords, List nonWordKeywords) ''' - «IF !wordKeywords.empty» - var keywords = "«FOR kw : wordKeywords SEPARATOR '|'»« - kw.toRegexpString(framework.get != Framework.CODEMIRROR && ignoreCase)»«ENDFOR»"; - «ENDIF» - «IF !nonWordKeywords.empty» - var extraKeywords = "«FOR kw : nonWordKeywords SEPARATOR '|'»« - kw.toRegexpString(framework.get != Framework.CODEMIRROR && ignoreCase)»«ENDFOR»"; - «ENDIF» - ''' - - protected def CharSequence generateKeywordsRegExp() { - if (framework.get == Framework.CODEMIRROR && ignoreCase) - '''new RegExp("\\b(?:" + keywords + ")\\b", "gi")''' - else - '''"\\b(?:" + keywords + ")\\b"''' - } - - protected def CharSequence generateExtraKeywordsRegExp() { - if (framework.get == Framework.CODEMIRROR && ignoreCase) - '''new RegExp("(?:^|\\s)(?:" + extraKeywords + ")(?=«DELIMITERS_PATTERN»|$)", "gi")''' - else - '''"(?:^|\\s)(?:" + extraKeywords + ")(?=«DELIMITERS_PATTERN»|$)"''' - } - - protected def Collection createOrionPatterns(String langId, Set keywords) { - val inheritsTerminals = grammar.inherits(TERMINALS) - val inheritsXbase = grammar.inheritsXbase - val patterns = new ArrayList - - if (enabledPatterns.contains('comment_singleLine') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('comment_singleLine')) - patterns += '{include: "orion.c-like#comment_singleLine"}' - - if (enabledPatterns.contains('comment_block') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('comment_block')) - patterns += '{include: "orion.c-like#comment_block"}' - - if (enabledPatterns.contains('string_doubleQuote') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('string_doubleQuote')) - patterns += '{include: "orion.lib#string_doubleQuote"}' - - if (enabledPatterns.contains('string_singleQuote') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('string_singleQuote')) - patterns += '{include: "orion.lib#string_singleQuote"}' - - if (enabledPatterns.contains('doc_block')) - patterns += '{include: "orion.lib#doc_block"}' - - if (enabledPatterns.contains('number_decimal') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('number_decimal')) - patterns += '{include: "orion.lib#number_decimal"}' - - if (enabledPatterns.contains('number_hex') - || inheritsXbase && !suppressedPatterns.contains('number_hex')) - patterns += '{include: "orion.lib#number_hex"}' - - if (enabledPatterns.contains('brace_open') - || keywords.contains('{') && !suppressedPatterns.contains('brace_open')) - patterns += '{include: "orion.lib#brace_open"}' - - if (enabledPatterns.contains('brace_close') - || keywords.contains('}') && !suppressedPatterns.contains('brace_close')) - patterns += '{include: "orion.lib#brace_close"}' - - if (enabledPatterns.contains('bracket_open') - || keywords.contains('[') && !suppressedPatterns.contains('bracket_open')) - patterns += '{include: "orion.lib#bracket_open"}' - - if (enabledPatterns.contains('bracket_close') - || keywords.contains(']') && !suppressedPatterns.contains('bracket_close')) - patterns += '{include: "orion.lib#bracket_close"}' - - if (enabledPatterns.contains('parenthesis_open') - || keywords.contains('(') && !suppressedPatterns.contains('parenthesis_open')) - patterns += '{include: "orion.lib#parenthesis_open"}' - - if (enabledPatterns.contains('parenthesis_close') - || keywords.contains(')') && !suppressedPatterns.contains('parenthesis_close')) - patterns += '{include: "orion.lib#parenthesis_close"}' - - return patterns - } - - protected def Multimap createCodeMirrorPatterns(String langId, Set keywords) { - val inheritsTerminals = grammar.inherits(TERMINALS) - val inheritsXbase = grammar.inheritsXbase - val patterns = LinkedHashMultimap.create - - val hasSingleLineComment = enabledPatterns.contains('comment_singleLine') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('comment_singleLine') - if (hasSingleLineComment) - patterns.put('start', '''{token: "comment", regex: "\\/\\/.*$"}''') - - if (enabledPatterns.contains('comment_block') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('comment_block')) { - patterns.put('start', '''{token: "comment", regex: "\\/\\*", next : "comment"}''') - patterns.put('comment', '''{token: "comment", regex: ".*?\\*\\/", next : "start"}''') - patterns.put('comment', '''{token: "comment", regex: ".+"}''') - } - - if (enabledPatterns.contains('string_doubleQuote') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('string_doubleQuote')) - patterns.put('start', '''{token: "string", regex: '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'}''') - - if (enabledPatterns.contains('string_singleQuote') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('string_singleQuote')) - patterns.put('start', '''{token: "string", regex: "['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"}''') - - if (enabledPatterns.contains('number_decimal') - || (inheritsTerminals || inheritsXbase) && !suppressedPatterns.contains('number_decimal')) - patterns.put('start', '''{token: "constant.numeric", regex: "[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"}''') - - if (enabledPatterns.contains('number_hex') - || inheritsXbase && !suppressedPatterns.contains('number_hex')) - patterns.put('start', '''{token: "constant.numeric", regex: "0[xX][0-9a-fA-F]+\\b"}''') - - val bracketOpen = enabledPatterns.contains('bracket_open') || keywords.contains('[') && !suppressedPatterns.contains('bracket_open') - val parenOpen = enabledPatterns.contains('parenthesis_open') || keywords.contains('(') && !suppressedPatterns.contains('parenthesis_open') - val braceOpen = enabledPatterns.contains('brace_open') || keywords.contains('{') && !suppressedPatterns.contains('brace_open') - if (bracketOpen || parenOpen || braceOpen) - patterns.put('start', '''{token: "lparen", regex: "[«IF bracketOpen»\\[«ENDIF»«IF parenOpen»(«ENDIF»«IF braceOpen»{«ENDIF»]"}''') - - val bracketClose = enabledPatterns.contains('bracket_close') || keywords.contains(']') && !suppressedPatterns.contains('bracket_close') - val parenClose = enabledPatterns.contains('parenthesis_close') || keywords.contains(')') && !suppressedPatterns.contains('parenthesis_close') - val braceClose = enabledPatterns.contains('brace_close') || keywords.contains('}') && !suppressedPatterns.contains('brace_close') - if (bracketClose || parenClose || braceClose) - patterns.put('start', '''{token: "rparen", regex: "[«IF bracketClose»\\]«ENDIF»«IF parenClose»)«ENDIF»«IF braceClose»}«ENDIF»]"}''') - - if (framework.get == Framework.CODEMIRROR && patterns.containsKey('comment')) - patterns.put('meta', '''dontIndentStates: ["comment"]''') - if (framework.get == Framework.CODEMIRROR && hasSingleLineComment) - patterns.put('meta', '''lineComment: "//"''') - - return patterns - } - - protected def void generateIndexDoc(String hlModName) { - if (projectConfig.web.assets.isFile('index.html')) { - // Don't overwrite an existing index document - return - } - val indexFile = fileAccessFactory.createTextFile - indexFile.path = 'index.html' - - indexFile.content = ''' - - - - - Example Web Editor - «IF framework.get == Framework.ORION» - - - «ELSEIF framework.get == Framework.ACE» - - «ELSEIF framework.get == Framework.CODEMIRROR» - - - - «ENDIF» - - - - - - -

-
-

Example «GrammarUtil.getSimpleName(grammar)» Web Editor

-
-
-
-
-
- - - - ''' - indexFile.writeTo(projectConfig.web.assets) - } - - protected def void generateStyleSheet() { - if (projectConfig.web.assets.isFile('style.css')) { - // Don't overwrite an existing style sheet - return - } - val styleFile = fileAccessFactory.createTextFile - styleFile.path = 'style.css' - - styleFile.content = ''' - body { - width: 100%; - height: 100%; - overflow: hidden; - font: 16px Helvetica,sans-serif; - } - - a { - color: #22a; - text-decoration: none; - } - - a:hover { - text-decoration: underline; - } - - .container { - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - margin: 20px; - } - - .header { - display: block; - position: absolute; - background-color: #e8e8e8; - top: 0; - left: 0; - right: 0; - height: 60px; - padding: 10px; - } - - .content { - display: block; - position: absolute; - top: 90px; - bottom: 0; - left: 0; - width: 640px; - } - - #xtext-editor { - display: block; - position: absolute; - top: 0; - bottom: 0; - left: 0; - right: 0; - padding: 4px; - border: 1px solid #aaa; - } - «IF framework.get == Framework.ORION» - - /************* Examples for custom icons *************/ - - /* For all elements of type Greeting or its subtypes */ - /* - .Greeting-icon { - background-image: url('images/Greeting.gif'); - } - */ - - /* Only in hovers */ - /* - .xtext-hover .Greeting-icon { - background-image: url('images/Greeting.gif'); - } - */ - «ENDIF» - ''' - styleFile.writeTo(projectConfig.web.assets) - } - - protected def void generateServerLauncher() { - if (codeConfig.isPreferXtendStubs) { - fileAccessFactory.createXtendFile(grammar.serverLauncherClass, ''' - /** - * This program starts an HTTP server for testing the web integration of your DSL. - * Just execute it and point a web browser to http://localhost:8080/ - */ - class «grammar.serverLauncherClass.simpleName» { - - static final «'org.slf4j.Logger'.typeRef» LOG = «'org.slf4j.LoggerFactory'.typeRef».getLogger(«grammar.serverLauncherClass.simpleName»); - - def static void main(String[] args) { - val server = new «'org.eclipse.jetty.server.Server'.typeRef»(new «'java.net.InetSocketAddress'.typeRef»('localhost', 8080)) - server.handler = new «'org.eclipse.jetty.ee10.webapp.WebAppContext'.typeRef» => [ - baseResource = «'org.eclipse.jetty.util.resource.ResourceFactory'.typeRef».of(it).newResource('«projectConfig.web.assets.path.replace(projectConfig.web.root.path + "/", "")»') - welcomeFiles = #["index.html"] - contextPath = "/" - configurations = #[ - new «'org.eclipse.jetty.ee10.annotations.AnnotationConfiguration'.typeRef», - new «'org.eclipse.jetty.ee10.webapp.WebXmlConfiguration'.typeRef», - new «'org.eclipse.jetty.ee10.webapp.WebInfConfiguration'.typeRef», - new «'org.eclipse.jetty.ee10.webapp.MetaInfConfiguration'.typeRef», - new «'org.eclipse.jetty.ee10.webapp.WebAppConfiguration'.typeRef» - ] - setAttribute(«'org.eclipse.jetty.ee10.webapp.MetaInfConfiguration'.typeRef».CONTAINER_JAR_PATTERN, '.*/«projectConfig.web.name.replace('.', '\\\\.')»/.*,.*\\.jar') - setInitParameter("org.eclipse.jetty.servlet.Default.useFileMappedBuffer", "false") - ] - try { - server.start - LOG.info('Server started ' + server.getURI + '...') - new Thread[ - LOG.info('Press enter to stop the server...') - val key = System.in.read - if (key != -1) { - server.stop - } else { - LOG.warn('Console input is not available. In order to stop the server, you need to cancel process manually.') - } - ].start - server.join - } catch (Exception exception) { - LOG.warn(exception.message) - System.exit(1) - } - } - } - ''').writeTo(projectConfig.web.src) - } else { - fileAccessFactory.createJavaFile(grammar.serverLauncherClass, ''' - /** - * This program starts an HTTP server for testing the web integration of your DSL. - * Just execute it and point a web browser to http://localhost:8080/ - */ - public class «grammar.serverLauncherClass.simpleName» { - - private static final «'org.slf4j.Logger'.typeRef» LOG = «'org.slf4j.LoggerFactory'.typeRef».getLogger(«grammar.serverLauncherClass.simpleName».class); - - public static void main(String[] args) { - «'org.eclipse.jetty.server.Server'.typeRef» server = new «'org.eclipse.jetty.server.Server'.typeRef»(new «'java.net.InetSocketAddress'.typeRef»("localhost", 8080)); - «'org.eclipse.jetty.ee10.webapp.WebAppContext'.typeRef» ctx = new «'org.eclipse.jetty.ee10.webapp.WebAppContext'.typeRef»(); - ctx.setBaseResource(«'org.eclipse.jetty.util.resource.ResourceFactory'.typeRef».of(ctx).newResource("WebRoot")); - ctx.setWelcomeFiles(new String[] {"index.html"}); - ctx.setContextPath("/"); - ctx.setConfigurations(new «'org.eclipse.jetty.ee10.webapp.Configuration'.typeRef»[] { - new «'org.eclipse.jetty.ee10.annotations.AnnotationConfiguration'.typeRef»(), - new «'org.eclipse.jetty.ee10.webapp.WebXmlConfiguration'.typeRef»(), - new «'org.eclipse.jetty.ee10.webapp.WebInfConfiguration'.typeRef»(), - new «'org.eclipse.jetty.ee10.webapp.MetaInfConfiguration'.typeRef»(), - new «'org.eclipse.jetty.ee10.webapp.WebAppConfiguration'.typeRef»() - }); - ctx.setAttribute(«'org.eclipse.jetty.ee10.webapp.MetaInfConfiguration'.typeRef».CONTAINER_JAR_PATTERN, - ".*/«projectConfig.web.name.replace('.', '\\\\.')»/.*,.*\\.jar"); - ctx.setInitParameter("org.eclipse.jetty.servlet.Default.useFileMappedBuffer", "false"); - server.setHandler(ctx); - try { - server.start(); - LOG.info("Server started " + server.getURI() + "..."); - new Thread() { - - public void run() { - try { - LOG.info("Press enter to stop the server..."); - int key = System.in.read(); - if (key != -1) { - server.stop(); - } else { - LOG.warn( - "Console input is not available. In order to stop the server, you need to cancel process manually."); - } - } catch (Exception e) { - LOG.warn(e.getMessage()); - } - } - - }.start(); - server.join(); - } catch (Exception exception) { - LOG.warn(exception.getMessage()); - System.exit(1); - } - } - } - ''').writeTo(projectConfig.web.src) - } - - } - - protected def void generateServlet() { - if (codeConfig.isPreferXtendStubs) { - fileAccessFactory.createXtendFile(grammar.servletClass, ''' - /** - * Deploy this class into a servlet container to enable DSL-specific services. - */ - «IF useServlet3Api» - @«new TypeReference("jakarta.servlet.annotation.WebServlet")»(name = 'XtextServices', urlPatterns = '/xtext-service/*') - «ENDIF» - class «grammar.servletClass.simpleName» extends «'org.eclipse.xtext.web.servlet.XtextServlet'.typeRef» { - - static final long serialVersionUID = 1L - - «DisposableRegistry» disposableRegistry - - override init() { - super.init() - val injector = new «grammar.webSetup»().createInjectorAndDoEMFRegistration() - disposableRegistry = injector.getInstance(«DisposableRegistry») - } - - override destroy() { - if (disposableRegistry !== null) { - disposableRegistry.dispose() - disposableRegistry = null - } - super.destroy() - } - - } - ''').writeTo(projectConfig.web.src) - - } else { - fileAccessFactory.createJavaFile(grammar.servletClass, ''' - /** - * Deploy this class into a servlet container to enable DSL-specific services. - */ - «IF useServlet3Api» - @«new TypeReference("jakarta.servlet.annotation.WebServlet")»(name = "XtextServices", urlPatterns = "/xtext-service/*") - «ENDIF» - public class «grammar.servletClass.simpleName» extends «'org.eclipse.xtext.web.servlet.XtextServlet'.typeRef» { - - private static final long serialVersionUID = 1L; - - «DisposableRegistry» disposableRegistry; - - public void init() throws «'jakarta.servlet.ServletException'.typeRef» { - super.init(); - «'com.google.inject.Injector'.typeRef» injector = new «grammar.webSetup»().createInjectorAndDoEMFRegistration(); - this.disposableRegistry = injector.getInstance(«DisposableRegistry».class); - } - - public void destroy() { - if (disposableRegistry != null) { - disposableRegistry.dispose(); - disposableRegistry = null; - } - super.destroy(); - } - - } - ''').writeTo(projectConfig.web.src) - } - } - - protected def void generateWebXml() { - if (projectConfig.web.assets.isFile('WEB-INF/web.xml')) { - // Don't overwrite an existing web.xml - return - } - val xmlFile = fileAccessFactory.createTextFile - xmlFile.path = 'WEB-INF/web.xml' - - xmlFile.content = ''' - - - Xtext Example Application - - This Example demonstrates the usage of Xtext with a servlet container. - - «IF generateServlet.get» - - - XtextServices - - Back-end for the DSL-specific services of Xtext. - - «grammar.servletClass» - - - - XtextServices - /xtext-service/* - - «ENDIF» - «IF !useServlet3Api» - - - XtextResourcesServlet - org.eclipse.xtext.web.servlet.XtextResourcesServlet - - - - XtextResourcesServlet - /xtext/* - - - - WebjarsServlet - org.webjars.servlet.WebjarsServlet - - - - WebjarsServlet - /webjars/* - - «ENDIF» - «IF generateHtmlExample.get» - - - index.html - - «ENDIF» - - - 30 - - - ''' - xmlFile.writeTo(projectConfig.web.assets) - } - -} diff --git a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.xtend b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.xtend index 93af16e127a..56fdd753151 100644 --- a/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.xtend +++ b/org.eclipse.xtext.xtext.generator/src/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.xtend @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -83,7 +83,6 @@ class XbaseGeneratorFragment2 extends AbstractXtextGeneratorFragment { } language.ideGenModule.superClass = 'org.eclipse.xtext.xbase.ide.DefaultXbaseIdeModule'.typeRef - language.webGenModule.superClass = 'org.eclipse.xtext.xbase.web.DefaultXbaseWebModule'.typeRef } protected def contributeEditorStub() { diff --git a/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.java b/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.java index 3d4dd49eb0c..1919f3d5336 100644 --- a/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.java +++ b/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/XtextGeneratorTemplates.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 20201 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -1115,245 +1115,6 @@ protected void appendTo(StringConcatenationClient.TargetStringConcatenation _bui return file; } - public JavaFileAccess createWebModule(final IXtextGeneratorLanguage langConfig) { - final Grammar it = langConfig.getGrammar(); - boolean _isPreferXtendStubs = this.codeConfig.isPreferXtendStubs(); - if (_isPreferXtendStubs) { - TypeReference _webModule = this.naming.getWebModule(it); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Use this class to register additional components to be used within the web application."); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.append("class "); - String _simpleName = XtextGeneratorTemplates.this.naming.getWebModule(it).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - TypeReference _webGenModule = XtextGeneratorTemplates.this.naming.getWebGenModule(it); - _builder.append(_webGenModule); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("}"); - _builder.newLine(); - } - }; - return this.fileAccessFactory.createXtendFile(_webModule, _client); - } else { - TypeReference _webModule_1 = this.naming.getWebModule(it); - StringConcatenationClient _client_1 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Use this class to register additional components to be used within the web application."); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.append("public class "); - String _simpleName = XtextGeneratorTemplates.this.naming.getWebModule(it).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - TypeReference _webGenModule = XtextGeneratorTemplates.this.naming.getWebGenModule(it); - _builder.append(_webGenModule); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("}"); - _builder.newLine(); - } - }; - return this.fileAccessFactory.createJavaFile(_webModule_1, _client_1); - } - } - - public JavaFileAccess createWebGenModule(final IXtextGeneratorLanguage langConfig) { - final Grammar it = langConfig.getGrammar(); - TypeReference _elvis = null; - TypeReference _superClass = langConfig.getWebGenModule().getSuperClass(); - if (_superClass != null) { - _elvis = _superClass; - } else { - TypeReference _webDefaultModule = this.naming.getWebDefaultModule(it); - _elvis = _webDefaultModule; - } - final TypeReference superClass = _elvis; - final GeneratedJavaFileAccess file = this.fileAccessFactory.createGeneratedJavaFile(this.naming.getWebGenModule(it)); - file.setImportNestedTypeThreshold(JavaFileAccess.DONT_IMPORT_NESTED_TYPES); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Manual modifications go to {@link "); - String _simpleName = XtextGeneratorTemplates.this.naming.getWebModule(it).getSimpleName(); - _builder.append(_simpleName, " "); - _builder.append("}."); - _builder.newLineIfNotEmpty(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - } - }; - file.setTypeComment(_client); - List _annotations = file.getAnnotations(); - SuppressWarningsAnnotation _suppressWarningsAnnotation = new SuppressWarningsAnnotation(); - _annotations.add(_suppressWarningsAnnotation); - StringConcatenationClient _client_1 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("public abstract class "); - String _simpleName = XtextGeneratorTemplates.this.naming.getWebGenModule(it).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - _builder.append(superClass); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.newLine(); - { - Set _bindings = langConfig.getWebGenModule().getBindings(); - for(final GuiceModuleAccess.Binding binding : _bindings) { - _builder.append("\t"); - StringConcatenationClient _createBindingMethod = XtextGeneratorTemplates.this.createBindingMethod(binding); - _builder.append(_createBindingMethod, "\t"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - } - } - _builder.append("}"); - _builder.newLine(); - } - }; - file.setContent(_client_1); - file.setMarkedAsGenerated(true); - return file; - } - - public JavaFileAccess createWebSetup(final IXtextGeneratorLanguage langConfig) { - final Grammar it = langConfig.getGrammar(); - boolean _isPreferXtendStubs = this.codeConfig.isPreferXtendStubs(); - if (_isPreferXtendStubs) { - TypeReference _webSetup = this.naming.getWebSetup(it); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Initialization support for running Xtext languages in web applications."); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.append("class "); - String _simpleName = XtextGeneratorTemplates.this.naming.getWebSetup(it).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - TypeReference _runtimeSetup = XtextGeneratorTemplates.this.naming.getRuntimeSetup(it); - _builder.append(_runtimeSetup); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("override "); - _builder.append(Injector.class, "\t"); - _builder.append(" createInjector() {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("return "); - _builder.append(Guice.class, "\t\t"); - _builder.append(".createInjector("); - _builder.append(Modules2.class, "\t\t"); - _builder.append(".mixin(new "); - TypeReference _runtimeModule = XtextGeneratorTemplates.this.naming.getRuntimeModule(it); - _builder.append(_runtimeModule, "\t\t"); - _builder.append(", new "); - TypeReference _genericIdeModule = XtextGeneratorTemplates.this.naming.getGenericIdeModule(it); - _builder.append(_genericIdeModule, "\t\t"); - _builder.append(", new "); - TypeReference _webModule = XtextGeneratorTemplates.this.naming.getWebModule(it); - _builder.append(_webModule, "\t\t"); - _builder.append("))"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - } - }; - return this.fileAccessFactory.createXtendFile(_webSetup, _client); - } else { - TypeReference _webSetup_1 = this.naming.getWebSetup(it); - StringConcatenationClient _client_1 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Initialization support for running Xtext languages in web applications."); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.append("public class "); - String _simpleName = XtextGeneratorTemplates.this.naming.getWebSetup(it).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - TypeReference _runtimeSetup = XtextGeneratorTemplates.this.naming.getRuntimeSetup(it); - _builder.append(_runtimeSetup); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("@Override"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("public "); - _builder.append(Injector.class, "\t"); - _builder.append(" createInjector() {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("return "); - _builder.append(Guice.class, "\t\t"); - _builder.append(".createInjector("); - _builder.append(Modules2.class, "\t\t"); - _builder.append(".mixin(new "); - TypeReference _runtimeModule = XtextGeneratorTemplates.this.naming.getRuntimeModule(it); - _builder.append(_runtimeModule, "\t\t"); - _builder.append("(), new "); - TypeReference _genericIdeModule = XtextGeneratorTemplates.this.naming.getGenericIdeModule(it); - _builder.append(_genericIdeModule, "\t\t"); - _builder.append("(), new "); - TypeReference _webModule = XtextGeneratorTemplates.this.naming.getWebModule(it); - _builder.append(_webModule, "\t\t"); - _builder.append("()));"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - } - }; - return this.fileAccessFactory.createJavaFile(_webSetup_1, _client_1); - } - } - public JavaFileAccess createEclipsePluginExecutableExtensionFactory(final IXtextGeneratorLanguage langConfig, final IXtextGeneratorLanguage activatorLanguage) { final Grammar grammar = langConfig.getGrammar(); final GeneratedJavaFileAccess file = this.fileAccessFactory.createGeneratedJavaFile(this.naming.getEclipsePluginExecutableExtensionFactory(grammar)); diff --git a/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/web/WebIntegrationFragment.java b/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/web/WebIntegrationFragment.java deleted file mode 100644 index da6f7fdc6ca..00000000000 --- a/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/web/WebIntegrationFragment.java +++ /dev/null @@ -1,2353 +0,0 @@ -/** - * Copyright (c) 2015, 2024 itemis AG (http://www.itemis.eu) and others. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License 2.0 which is available at - * http://www.eclipse.org/legal/epl-2.0. - * - * SPDX-License-Identifier: EPL-2.0 - */ -package org.eclipse.xtext.xtext.generator.web; - -import com.google.common.collect.LinkedHashMultimap; -import com.google.common.collect.Multimap; -import com.google.inject.Inject; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.List; -import java.util.Objects; -import java.util.Set; -import java.util.function.Consumer; -import java.util.regex.Pattern; -import org.eclipse.emf.mwe2.runtime.Mandatory; -import org.eclipse.xtend.lib.annotations.AccessorType; -import org.eclipse.xtend.lib.annotations.Accessors; -import org.eclipse.xtend2.lib.StringConcatenation; -import org.eclipse.xtend2.lib.StringConcatenationClient; -import org.eclipse.xtext.Grammar; -import org.eclipse.xtext.GrammarUtil; -import org.eclipse.xtext.util.DisposableRegistry; -import org.eclipse.xtext.util.XtextVersion; -import org.eclipse.xtext.xbase.lib.CollectionLiterals; -import org.eclipse.xtext.xbase.lib.Extension; -import org.eclipse.xtext.xbase.lib.Functions.Function0; -import org.eclipse.xtext.xbase.lib.Functions.Function1; -import org.eclipse.xtext.xbase.lib.IterableExtensions; -import org.eclipse.xtext.xbase.lib.Pure; -import org.eclipse.xtext.xbase.lib.StringExtensions; -import org.eclipse.xtext.xtext.generator.AbstractXtextGeneratorFragment; -import org.eclipse.xtext.xtext.generator.CodeConfig; -import org.eclipse.xtext.xtext.generator.Issues; -import org.eclipse.xtext.xtext.generator.XtextGeneratorNaming; -import org.eclipse.xtext.xtext.generator.model.FileAccessFactory; -import org.eclipse.xtext.xtext.generator.model.TextFileAccess; -import org.eclipse.xtext.xtext.generator.model.TypeReference; -import org.eclipse.xtext.xtext.generator.util.BooleanGeneratorOption; -import org.eclipse.xtext.xtext.generator.util.GeneratorOption; -import org.eclipse.xtext.xtext.generator.util.GrammarUtil2; -import org.eclipse.xtext.xtext.generator.xbase.XbaseUsageDetector; - -/** - * Main generator fragment for web integration. - */ -@SuppressWarnings("all") -public class WebIntegrationFragment extends AbstractXtextGeneratorFragment { - public enum Framework { - ORION, - - ACE, - - CODEMIRROR; - } - - private static final String REQUIREJS_VERSION = "2.3.7"; - - private static final String REQUIREJS_TEXT_VERSION = "2.0.15"; - - private static final String JQUERY_VERSION = "3.6.0"; - - private static final String ACE_VERSION = "1.3.3"; - - private static final String CODEMIRROR_VERSION = "5.41.0"; - - @Inject - private FileAccessFactory fileAccessFactory; - - @Inject - private CodeConfig codeConfig; - - @Inject - @Extension - private XtextGeneratorNaming _xtextGeneratorNaming; - - @Inject - @Extension - private XbaseUsageDetector _xbaseUsageDetector; - - private final HashSet enabledPatterns = new HashSet(); - - private final HashSet suppressedPatterns = new HashSet(); - - @Accessors(AccessorType.PUBLIC_GETTER) - private final GeneratorOption framework = new GeneratorOption(); - - @Accessors(AccessorType.PUBLIC_GETTER) - private final BooleanGeneratorOption generateJsHighlighting = new BooleanGeneratorOption(true); - - @Accessors(AccessorType.PUBLIC_GETTER) - private final BooleanGeneratorOption generateServlet = new BooleanGeneratorOption(false); - - @Accessors(AccessorType.PUBLIC_GETTER) - private final BooleanGeneratorOption generateJettyLauncher = new BooleanGeneratorOption(false); - - @Accessors(AccessorType.PUBLIC_GETTER) - private final BooleanGeneratorOption generateWebXml = new BooleanGeneratorOption(false); - - @Accessors(AccessorType.PUBLIC_GETTER) - private final BooleanGeneratorOption generateHtmlExample = new BooleanGeneratorOption(false); - - private String highlightingModuleName; - - private String highlightingPath; - - private String keywordsFilter = "\\w+"; - - private boolean useServlet3Api = true; - - private boolean ignoreCase = false; - - @Accessors(AccessorType.PUBLIC_SETTER) - private String requireJsVersion = WebIntegrationFragment.REQUIREJS_VERSION; - - @Accessors(AccessorType.PUBLIC_SETTER) - private String requireJsTextVersion = WebIntegrationFragment.REQUIREJS_TEXT_VERSION; - - @Accessors(AccessorType.PUBLIC_SETTER) - private String jQueryVersion = WebIntegrationFragment.JQUERY_VERSION; - - @Accessors(AccessorType.PUBLIC_SETTER) - private String aceVersion = WebIntegrationFragment.ACE_VERSION; - - @Accessors(AccessorType.PUBLIC_SETTER) - private String codeMirrorVersion = WebIntegrationFragment.CODEMIRROR_VERSION; - - /** - * Choose one of the supported frameworks: {@code "Orion"}, {@code "Ace"}, or {@code "CodeMirror"} - */ - @Mandatory - public void setFramework(final String frameworkName) { - this.framework.set(WebIntegrationFragment.Framework.valueOf(frameworkName.toUpperCase())); - } - - /** - * Whether JavaScript-based syntax highlighting should be generated. The default is {@code true}. - */ - public void setGenerateJsHighlighting(final boolean generateJsHighlighting) { - this.generateJsHighlighting.set(generateJsHighlighting); - } - - /** - * Name of the syntax highlighting RequireJS module to be generated. - */ - public void setHighlightingModuleName(final String moduleName) { - this.highlightingModuleName = moduleName; - } - - /** - * The path of the syntax highlighting JavaScript file to be generated. The default is to - * derive the path from the {@code highlightingModuleName} property. - */ - public void setHighlightingPath(final String path) { - this.highlightingPath = path; - } - - /** - * Regular expression for filtering those language keywords that should be highlighted. The default - * is {@code \w+}, i.e. keywords consisting only of letters and digits. - */ - public void setKeywordsFilter(final String keywordsFilter) { - this.keywordsFilter = keywordsFilter; - } - - /** - * Whether a servlet for DSL-specific services should be generated. The default is {@code false}. - */ - public void setGenerateServlet(final boolean generateServlet) { - this.generateServlet.set(generateServlet); - } - - /** - * Whether a web.xml file should be generated. The default is {@code false} (not necessary for Servlet 3 compatible containers). - */ - public void setGenerateWebXml(final boolean generateWebXml) { - this.generateWebXml.set(generateWebXml); - } - - /** - * Whether the Servlet 3 API ({@code WebServlet} annotation) should be used for the generated servlet. - * The default is {@code true}. - */ - public void setUseServlet3Api(final boolean useServlet3Api) { - this.useServlet3Api = useServlet3Api; - } - - /** - * Whether the generated syntax highlighting should ignore case for language keywords. - */ - public void setIgnoreCase(final boolean ignoreCase) { - this.ignoreCase = ignoreCase; - } - - /** - * Whether a Java main-class for launching a local Jetty server should be generated. The default - * is {@code false}. - */ - public void setGenerateJettyLauncher(final boolean generateJettyLauncher) { - this.generateJettyLauncher.set(generateJettyLauncher); - } - - /** - * Whether an example {@code index.html} file for testing the web-based editor should be generated. - * The default is {@code false}. - */ - public void setGenerateHtmlExample(final boolean generateHtmlExample) { - this.generateHtmlExample.set(generateHtmlExample); - } - - /** - * Enable a default pattern for syntax highlighting. See the documentation of the chosen - * framework for details. - */ - public void addEnablePattern(final String pattern) { - this.enabledPatterns.add(pattern); - } - - /** - * Suppress a default pattern for syntax highlighting. See the documentation of the chosen - * framework for details. - */ - public void addSuppressPattern(final String pattern) { - this.suppressedPatterns.add(pattern); - } - - protected TypeReference getServerLauncherClass(final Grammar grammar) { - String _webBasePackage = this._xtextGeneratorNaming.getWebBasePackage(grammar); - String _plus = (_webBasePackage + "."); - String _plus_1 = (_plus + "ServerLauncher"); - return new TypeReference(_plus_1); - } - - protected TypeReference getServletClass(final Grammar grammar) { - String _webBasePackage = this._xtextGeneratorNaming.getWebBasePackage(grammar); - String _plus = (_webBasePackage + "."); - String _simpleName = GrammarUtil.getSimpleName(grammar); - String _plus_1 = (_plus + _simpleName); - String _plus_2 = (_plus_1 + "Servlet"); - return new TypeReference(_plus_2); - } - - @Override - public void checkConfiguration(final Issues issues) { - super.checkConfiguration(issues); - boolean _isSet = this.framework.isSet(); - boolean _not = (!_isSet); - if (_not) { - issues.addError("The property \'framework\' is required."); - } - final Function1 _function = (String it) -> { - return Boolean.valueOf(this.suppressedPatterns.contains(it)); - }; - Iterable _filter = IterableExtensions.filter(this.enabledPatterns, _function); - for (final String pattern : _filter) { - issues.addError((("The pattern \'" + pattern) + "\' cannot be enabled and suppressed.")); - } - } - - @Override - public void generate() { - if (((this.highlightingModuleName != null) && this.highlightingModuleName.endsWith(".js"))) { - int _length = this.highlightingModuleName.length(); - int _minus = (_length - 3); - this.highlightingModuleName = this.highlightingModuleName.substring(0, _minus); - } - final String langId = IterableExtensions.head(this.getLanguage().getFileExtensions()); - String _elvis = null; - if (this.highlightingModuleName != null) { - _elvis = this.highlightingModuleName; - } else { - String _switchResult = null; - WebIntegrationFragment.Framework _get = this.framework.get(); - if (_get != null) { - switch (_get) { - case ORION: - _switchResult = (("xtext-resources/generated/" + langId) + "-syntax"); - break; - case ACE: - case CODEMIRROR: - _switchResult = ("xtext-resources/generated/mode-" + langId); - break; - default: - break; - } - } - _elvis = _switchResult; - } - final String hlModName = _elvis; - if ((this.generateJsHighlighting.get() && (this.getProjectConfig().getWeb().getAssets() != null))) { - boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(this.highlightingPath); - if (_isNullOrEmpty) { - this.highlightingPath = (hlModName + ".js"); - } - this.generateJsHighlighting(langId); - } - if ((this.generateServlet.get() && (this.getProjectConfig().getWeb().getSrc() != null))) { - this.generateServlet(); - } - if ((this.generateJettyLauncher.get() && (this.getProjectConfig().getWeb().getSrc() != null))) { - this.generateServerLauncher(); - } - if ((this.generateHtmlExample.get() && (this.getProjectConfig().getWeb().getAssets() != null))) { - this.generateIndexDoc(hlModName); - this.generateStyleSheet(); - } - if ((this.generateWebXml.get() && (this.getProjectConfig().getWeb().getAssets() != null))) { - this.generateWebXml(); - } - } - - private static final String DELIMITERS_PATTERN = new Function0() { - @Override - public String apply() { - StringConcatenation _builder = new StringConcatenation(); - _builder.append("[\\\\s.:;,!?+\\\\-*/&|<>()[\\\\]{}]"); - return _builder.toString(); - } - }.apply(); - - protected void generateJsHighlighting(final String langId) { - final Set allKeywords = GrammarUtil.getAllKeywords(this.getGrammar()); - final ArrayList wordKeywords = CollectionLiterals.newArrayList(); - final ArrayList nonWordKeywords = CollectionLiterals.newArrayList(); - final Pattern keywordsFilterPattern = Pattern.compile(this.keywordsFilter); - final Pattern wordKeywordPattern = Pattern.compile("\\w(.*\\w)?"); - final Function1 _function = (String it) -> { - return Boolean.valueOf(keywordsFilterPattern.matcher(it).matches()); - }; - final Consumer _function_1 = (String it) -> { - boolean _matches = wordKeywordPattern.matcher(it).matches(); - if (_matches) { - wordKeywords.add(it); - } else { - nonWordKeywords.add(it); - } - }; - IterableExtensions.filter(allKeywords, _function).forEach(_function_1); - Collections.sort(wordKeywords); - Collections.sort(nonWordKeywords); - final TextFileAccess jsFile = this.fileAccessFactory.createTextFile(); - jsFile.setPath(this.highlightingPath); - WebIntegrationFragment.Framework _get = this.framework.get(); - if (_get != null) { - switch (_get) { - case ORION: - final Collection patterns = this.createOrionPatterns(langId, allKeywords); - boolean _isEmpty = wordKeywords.isEmpty(); - boolean _not = (!_isEmpty); - if (_not) { - StringConcatenation _builder = new StringConcatenation(); - _builder.append("{name: \"keyword."); - _builder.append(langId); - _builder.append("\", match: "); - CharSequence _generateKeywordsRegExp = this.generateKeywordsRegExp(); - _builder.append(_generateKeywordsRegExp); - _builder.append("}"); - patterns.add(_builder.toString()); - } - boolean _isEmpty_1 = nonWordKeywords.isEmpty(); - boolean _not_1 = (!_isEmpty_1); - if (_not_1) { - StringConcatenation _builder_1 = new StringConcatenation(); - _builder_1.append("{name: \"keyword.extra."); - _builder_1.append(langId); - _builder_1.append("\", match: "); - CharSequence _generateExtraKeywordsRegExp = this.generateExtraKeywordsRegExp(); - _builder_1.append(_generateExtraKeywordsRegExp); - _builder_1.append("}"); - patterns.add(_builder_1.toString()); - } - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("define("); - { - boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(WebIntegrationFragment.this.highlightingModuleName); - boolean _not = (!_isNullOrEmpty); - if (_not) { - _builder.append("\""); - _builder.append(WebIntegrationFragment.this.highlightingModuleName); - _builder.append("\", "); - } - } - _builder.append("[], function() {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - CharSequence _generateKeywords = WebIntegrationFragment.this.generateKeywords(wordKeywords, nonWordKeywords); - _builder.append(_generateKeywords, "\t"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("return {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("id: \"xtext."); - _builder.append(langId, "\t\t"); - _builder.append("\","); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("contentTypes: [\"xtext/"); - _builder.append(langId, "\t\t"); - _builder.append("\"],"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("patterns: ["); - _builder.newLine(); - _builder.append("\t\t\t"); - { - boolean _hasElements = false; - for(final String pattern : patterns) { - if (!_hasElements) { - _hasElements = true; - } else { - _builder.appendImmediate(",\n", "\t\t\t"); - } - _builder.append(pattern, "\t\t\t"); - } - } - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("]"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("};"); - _builder.newLine(); - _builder.append("});"); - _builder.newLine(); - } - }; - jsFile.setContent(_client); - break; - case ACE: - final Multimap patterns_1 = this.createCodeMirrorPatterns(langId, allKeywords); - boolean _isEmpty_2 = wordKeywords.isEmpty(); - boolean _not_2 = (!_isEmpty_2); - if (_not_2) { - StringConcatenation _builder_2 = new StringConcatenation(); - _builder_2.append("{token: \"keyword\", regex: "); - CharSequence _generateKeywordsRegExp_1 = this.generateKeywordsRegExp(); - _builder_2.append(_generateKeywordsRegExp_1); - _builder_2.append("}"); - patterns_1.put("start", _builder_2.toString()); - } - boolean _isEmpty_3 = nonWordKeywords.isEmpty(); - boolean _not_3 = (!_isEmpty_3); - if (_not_3) { - StringConcatenation _builder_3 = new StringConcatenation(); - _builder_3.append("{token: \"keyword\", regex: "); - CharSequence _generateExtraKeywordsRegExp_1 = this.generateExtraKeywordsRegExp(); - _builder_3.append(_generateExtraKeywordsRegExp_1); - _builder_3.append("}"); - patterns_1.put("start", _builder_3.toString()); - } - StringConcatenationClient _client_1 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("define("); - { - boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(WebIntegrationFragment.this.highlightingModuleName); - boolean _not = (!_isNullOrEmpty); - if (_not) { - _builder.append("\""); - _builder.append(WebIntegrationFragment.this.highlightingModuleName); - _builder.append("\", "); - } - } - _builder.append("[\"ace/lib/oop\", \"ace/mode/text\", \"ace/mode/text_highlight_rules\"], function(oop, mText, mTextHighlightRules) {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("var HighlightRules = function() {"); - _builder.newLine(); - _builder.append("\t\t"); - CharSequence _generateKeywords = WebIntegrationFragment.this.generateKeywords(wordKeywords, nonWordKeywords); - _builder.append(_generateKeywords, "\t\t"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("this.$rules = {"); - _builder.newLine(); - { - Set _keySet = patterns_1.keySet(); - boolean _hasElements = false; - for(final String state : _keySet) { - if (!_hasElements) { - _hasElements = true; - } else { - _builder.appendImmediate(",", "\t\t\t"); - } - _builder.append("\t\t\t"); - _builder.append("\""); - _builder.append(state, "\t\t\t"); - _builder.append("\": ["); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("\t"); - { - Collection _get = patterns_1.get(state); - boolean _hasElements_1 = false; - for(final String rule : _get) { - if (!_hasElements_1) { - _hasElements_1 = true; - } else { - _builder.appendImmediate(",\n", "\t\t\t\t"); - } - _builder.append(rule, "\t\t\t\t"); - } - } - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("]"); - _builder.newLine(); - } - } - _builder.append("\t\t"); - _builder.append("};"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("};"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("oop.inherits(HighlightRules, mTextHighlightRules.TextHighlightRules);"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("var Mode = function() {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("this.HighlightRules = HighlightRules;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("};"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("oop.inherits(Mode, mText.Mode);"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("Mode.prototype.$id = \"xtext/"); - _builder.append(langId, "\t"); - _builder.append("\";"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("Mode.prototype.getCompletions = function(state, session, pos, prefix) {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("return [];"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("return {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("Mode: Mode"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("};"); - _builder.newLine(); - _builder.append("});"); - _builder.newLine(); - } - }; - jsFile.setContent(_client_1); - break; - case CODEMIRROR: - final Multimap patterns_2 = this.createCodeMirrorPatterns(langId, allKeywords); - boolean _isEmpty_4 = wordKeywords.isEmpty(); - boolean _not_4 = (!_isEmpty_4); - if (_not_4) { - StringConcatenation _builder_4 = new StringConcatenation(); - _builder_4.append("{token: \"keyword\", regex: "); - CharSequence _generateKeywordsRegExp_2 = this.generateKeywordsRegExp(); - _builder_4.append(_generateKeywordsRegExp_2); - _builder_4.append("}"); - patterns_2.put("start", _builder_4.toString()); - } - boolean _isEmpty_5 = nonWordKeywords.isEmpty(); - boolean _not_5 = (!_isEmpty_5); - if (_not_5) { - StringConcatenation _builder_5 = new StringConcatenation(); - _builder_5.append("{token: \"keyword\", regex: "); - CharSequence _generateExtraKeywordsRegExp_2 = this.generateExtraKeywordsRegExp(); - _builder_5.append(_generateExtraKeywordsRegExp_2); - _builder_5.append("}"); - patterns_2.put("start", _builder_5.toString()); - } - StringConcatenationClient _client_2 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("define("); - { - boolean _isNullOrEmpty = StringExtensions.isNullOrEmpty(WebIntegrationFragment.this.highlightingModuleName); - boolean _not = (!_isNullOrEmpty); - if (_not) { - _builder.append("\""); - _builder.append(WebIntegrationFragment.this.highlightingModuleName); - _builder.append("\", "); - } - } - _builder.append("[\"codemirror\", \"codemirror/addon/mode/simple\"], function(CodeMirror, SimpleMode) {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - CharSequence _generateKeywords = WebIntegrationFragment.this.generateKeywords(wordKeywords, nonWordKeywords); - _builder.append(_generateKeywords, "\t"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("CodeMirror.defineSimpleMode(\"xtext/"); - _builder.append(langId, "\t"); - _builder.append("\", {"); - _builder.newLineIfNotEmpty(); - { - Set _keySet = patterns_2.keySet(); - boolean _hasElements = false; - for(final String state : _keySet) { - if (!_hasElements) { - _hasElements = true; - } else { - _builder.appendImmediate(",", "\t\t"); - } - _builder.append("\t\t"); - _builder.append(state, "\t\t"); - _builder.append(": "); - { - boolean _equals = Objects.equals(state, "meta"); - if (_equals) { - _builder.append("{"); - } else { - _builder.append("["); - } - } - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("\t"); - { - Collection _get = patterns_2.get(state); - boolean _hasElements_1 = false; - for(final String rule : _get) { - if (!_hasElements_1) { - _hasElements_1 = true; - } else { - _builder.appendImmediate(",\n", "\t\t\t"); - } - _builder.append(rule, "\t\t\t"); - } - } - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - { - boolean _equals_1 = Objects.equals(state, "meta"); - if (_equals_1) { - _builder.append("}"); - } else { - _builder.append("]"); - } - } - _builder.newLineIfNotEmpty(); - } - } - _builder.append("\t"); - _builder.append("});"); - _builder.newLine(); - _builder.append("});"); - _builder.newLine(); - } - }; - jsFile.setContent(_client_2); - break; - default: - break; - } - } - jsFile.writeTo(this.getProjectConfig().getWeb().getAssets()); - } - - protected CharSequence generateKeywords(final List wordKeywords, final List nonWordKeywords) { - StringConcatenation _builder = new StringConcatenation(); - { - boolean _isEmpty = wordKeywords.isEmpty(); - boolean _not = (!_isEmpty); - if (_not) { - _builder.append("var keywords = \""); - { - boolean _hasElements = false; - for(final String kw : wordKeywords) { - if (!_hasElements) { - _hasElements = true; - } else { - _builder.appendImmediate("|", ""); - } - String _regexpString = RegexpExtensions.toRegexpString(kw, ((!Objects.equals(this.framework.get(), WebIntegrationFragment.Framework.CODEMIRROR)) && this.ignoreCase)); - _builder.append(_regexpString); - } - } - _builder.append("\";"); - _builder.newLineIfNotEmpty(); - } - } - { - boolean _isEmpty_1 = nonWordKeywords.isEmpty(); - boolean _not_1 = (!_isEmpty_1); - if (_not_1) { - _builder.append("var extraKeywords = \""); - { - boolean _hasElements_1 = false; - for(final String kw_1 : nonWordKeywords) { - if (!_hasElements_1) { - _hasElements_1 = true; - } else { - _builder.appendImmediate("|", ""); - } - String _regexpString_1 = RegexpExtensions.toRegexpString(kw_1, ((!Objects.equals(this.framework.get(), WebIntegrationFragment.Framework.CODEMIRROR)) && this.ignoreCase)); - _builder.append(_regexpString_1); - } - } - _builder.append("\";"); - _builder.newLineIfNotEmpty(); - } - } - return _builder; - } - - protected CharSequence generateKeywordsRegExp() { - CharSequence _xifexpression = null; - if ((Objects.equals(this.framework.get(), WebIntegrationFragment.Framework.CODEMIRROR) && this.ignoreCase)) { - StringConcatenation _builder = new StringConcatenation(); - _builder.append("new RegExp(\"\\\\b(?:\" + keywords + \")\\\\b\", \"gi\")"); - _xifexpression = _builder; - } else { - StringConcatenation _builder_1 = new StringConcatenation(); - _builder_1.append("\"\\\\b(?:\" + keywords + \")\\\\b\""); - _xifexpression = _builder_1; - } - return _xifexpression; - } - - protected CharSequence generateExtraKeywordsRegExp() { - CharSequence _xifexpression = null; - if ((Objects.equals(this.framework.get(), WebIntegrationFragment.Framework.CODEMIRROR) && this.ignoreCase)) { - StringConcatenation _builder = new StringConcatenation(); - _builder.append("new RegExp(\"(?:^|\\\\s)(?:\" + extraKeywords + \")(?="); - _builder.append(WebIntegrationFragment.DELIMITERS_PATTERN); - _builder.append("|$)\", \"gi\")"); - _xifexpression = _builder; - } else { - StringConcatenation _builder_1 = new StringConcatenation(); - _builder_1.append("\"(?:^|\\\\s)(?:\" + extraKeywords + \")(?="); - _builder_1.append(WebIntegrationFragment.DELIMITERS_PATTERN); - _builder_1.append("|$)\""); - _xifexpression = _builder_1; - } - return _xifexpression; - } - - protected Collection createOrionPatterns(final String langId, final Set keywords) { - final boolean inheritsTerminals = GrammarUtil2.inherits(this.getGrammar(), GrammarUtil2.TERMINALS); - final boolean inheritsXbase = this._xbaseUsageDetector.inheritsXbase(this.getGrammar()); - final ArrayList patterns = new ArrayList(); - if ((this.enabledPatterns.contains("comment_singleLine") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("comment_singleLine"))))) { - patterns.add("{include: \"orion.c-like#comment_singleLine\"}"); - } - if ((this.enabledPatterns.contains("comment_block") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("comment_block"))))) { - patterns.add("{include: \"orion.c-like#comment_block\"}"); - } - if ((this.enabledPatterns.contains("string_doubleQuote") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("string_doubleQuote"))))) { - patterns.add("{include: \"orion.lib#string_doubleQuote\"}"); - } - if ((this.enabledPatterns.contains("string_singleQuote") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("string_singleQuote"))))) { - patterns.add("{include: \"orion.lib#string_singleQuote\"}"); - } - boolean _contains = this.enabledPatterns.contains("doc_block"); - if (_contains) { - patterns.add("{include: \"orion.lib#doc_block\"}"); - } - if ((this.enabledPatterns.contains("number_decimal") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("number_decimal"))))) { - patterns.add("{include: \"orion.lib#number_decimal\"}"); - } - if ((this.enabledPatterns.contains("number_hex") || (inheritsXbase && (!this.suppressedPatterns.contains("number_hex"))))) { - patterns.add("{include: \"orion.lib#number_hex\"}"); - } - if ((this.enabledPatterns.contains("brace_open") || (keywords.contains("{") && (!this.suppressedPatterns.contains("brace_open"))))) { - patterns.add("{include: \"orion.lib#brace_open\"}"); - } - if ((this.enabledPatterns.contains("brace_close") || (keywords.contains("}") && (!this.suppressedPatterns.contains("brace_close"))))) { - patterns.add("{include: \"orion.lib#brace_close\"}"); - } - if ((this.enabledPatterns.contains("bracket_open") || (keywords.contains("[") && (!this.suppressedPatterns.contains("bracket_open"))))) { - patterns.add("{include: \"orion.lib#bracket_open\"}"); - } - if ((this.enabledPatterns.contains("bracket_close") || (keywords.contains("]") && (!this.suppressedPatterns.contains("bracket_close"))))) { - patterns.add("{include: \"orion.lib#bracket_close\"}"); - } - if ((this.enabledPatterns.contains("parenthesis_open") || (keywords.contains("(") && (!this.suppressedPatterns.contains("parenthesis_open"))))) { - patterns.add("{include: \"orion.lib#parenthesis_open\"}"); - } - if ((this.enabledPatterns.contains("parenthesis_close") || (keywords.contains(")") && (!this.suppressedPatterns.contains("parenthesis_close"))))) { - patterns.add("{include: \"orion.lib#parenthesis_close\"}"); - } - return patterns; - } - - protected Multimap createCodeMirrorPatterns(final String langId, final Set keywords) { - final boolean inheritsTerminals = GrammarUtil2.inherits(this.getGrammar(), GrammarUtil2.TERMINALS); - final boolean inheritsXbase = this._xbaseUsageDetector.inheritsXbase(this.getGrammar()); - final LinkedHashMultimap patterns = LinkedHashMultimap.create(); - final boolean hasSingleLineComment = (this.enabledPatterns.contains("comment_singleLine") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("comment_singleLine")))); - if (hasSingleLineComment) { - StringConcatenation _builder = new StringConcatenation(); - _builder.append("{token: \"comment\", regex: \"\\\\/\\\\/.*$\"}"); - patterns.put("start", _builder.toString()); - } - if ((this.enabledPatterns.contains("comment_block") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("comment_block"))))) { - StringConcatenation _builder_1 = new StringConcatenation(); - _builder_1.append("{token: \"comment\", regex: \"\\\\/\\\\*\", next : \"comment\"}"); - patterns.put("start", _builder_1.toString()); - StringConcatenation _builder_2 = new StringConcatenation(); - _builder_2.append("{token: \"comment\", regex: \".*?\\\\*\\\\/\", next : \"start\"}"); - patterns.put("comment", _builder_2.toString()); - StringConcatenation _builder_3 = new StringConcatenation(); - _builder_3.append("{token: \"comment\", regex: \".+\"}"); - patterns.put("comment", _builder_3.toString()); - } - if ((this.enabledPatterns.contains("string_doubleQuote") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("string_doubleQuote"))))) { - StringConcatenation _builder_4 = new StringConcatenation(); - _builder_4.append("{token: \"string\", regex: \'[\"](?:(?:\\\\\\\\.)|(?:[^\"\\\\\\\\]))*?[\"]\'}"); - patterns.put("start", _builder_4.toString()); - } - if ((this.enabledPatterns.contains("string_singleQuote") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("string_singleQuote"))))) { - StringConcatenation _builder_5 = new StringConcatenation(); - _builder_5.append("{token: \"string\", regex: \"[\'](?:(?:\\\\\\\\.)|(?:[^\'\\\\\\\\]))*?[\']\"}"); - patterns.put("start", _builder_5.toString()); - } - if ((this.enabledPatterns.contains("number_decimal") || ((inheritsTerminals || inheritsXbase) && (!this.suppressedPatterns.contains("number_decimal"))))) { - StringConcatenation _builder_6 = new StringConcatenation(); - _builder_6.append("{token: \"constant.numeric\", regex: \"[+-]?\\\\d+(?:(?:\\\\.\\\\d*)?(?:[eE][+-]?\\\\d+)?)?\\\\b\"}"); - patterns.put("start", _builder_6.toString()); - } - if ((this.enabledPatterns.contains("number_hex") || (inheritsXbase && (!this.suppressedPatterns.contains("number_hex"))))) { - StringConcatenation _builder_7 = new StringConcatenation(); - _builder_7.append("{token: \"constant.numeric\", regex: \"0[xX][0-9a-fA-F]+\\\\b\"}"); - patterns.put("start", _builder_7.toString()); - } - final boolean bracketOpen = (this.enabledPatterns.contains("bracket_open") || (keywords.contains("[") && (!this.suppressedPatterns.contains("bracket_open")))); - final boolean parenOpen = (this.enabledPatterns.contains("parenthesis_open") || (keywords.contains("(") && (!this.suppressedPatterns.contains("parenthesis_open")))); - final boolean braceOpen = (this.enabledPatterns.contains("brace_open") || (keywords.contains("{") && (!this.suppressedPatterns.contains("brace_open")))); - if (((bracketOpen || parenOpen) || braceOpen)) { - StringConcatenation _builder_8 = new StringConcatenation(); - _builder_8.append("{token: \"lparen\", regex: \"["); - { - if (bracketOpen) { - _builder_8.append("\\\\["); - } - } - { - if (parenOpen) { - _builder_8.append("("); - } - } - { - if (braceOpen) { - _builder_8.append("{"); - } - } - _builder_8.append("]\"}"); - patterns.put("start", _builder_8.toString()); - } - final boolean bracketClose = (this.enabledPatterns.contains("bracket_close") || (keywords.contains("]") && (!this.suppressedPatterns.contains("bracket_close")))); - final boolean parenClose = (this.enabledPatterns.contains("parenthesis_close") || (keywords.contains(")") && (!this.suppressedPatterns.contains("parenthesis_close")))); - final boolean braceClose = (this.enabledPatterns.contains("brace_close") || (keywords.contains("}") && (!this.suppressedPatterns.contains("brace_close")))); - if (((bracketClose || parenClose) || braceClose)) { - StringConcatenation _builder_9 = new StringConcatenation(); - _builder_9.append("{token: \"rparen\", regex: \"["); - { - if (bracketClose) { - _builder_9.append("\\\\]"); - } - } - { - if (parenClose) { - _builder_9.append(")"); - } - } - { - if (braceClose) { - _builder_9.append("}"); - } - } - _builder_9.append("]\"}"); - patterns.put("start", _builder_9.toString()); - } - if ((Objects.equals(this.framework.get(), WebIntegrationFragment.Framework.CODEMIRROR) && patterns.containsKey("comment"))) { - StringConcatenation _builder_10 = new StringConcatenation(); - _builder_10.append("dontIndentStates: [\"comment\"]"); - patterns.put("meta", _builder_10.toString()); - } - if ((Objects.equals(this.framework.get(), WebIntegrationFragment.Framework.CODEMIRROR) && hasSingleLineComment)) { - StringConcatenation _builder_11 = new StringConcatenation(); - _builder_11.append("lineComment: \"//\""); - patterns.put("meta", _builder_11.toString()); - } - return patterns; - } - - protected void generateIndexDoc(final String hlModName) { - boolean _isFile = this.getProjectConfig().getWeb().getAssets().isFile("index.html"); - if (_isFile) { - return; - } - final TextFileAccess indexFile = this.fileAccessFactory.createTextFile(); - indexFile.setPath("index.html"); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append(""); - _builder.newLine(); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("Example Web Editor"); - _builder.newLine(); - { - WebIntegrationFragment.Framework _get = WebIntegrationFragment.this.framework.get(); - boolean _equals = Objects.equals(_get, WebIntegrationFragment.Framework.ORION); - if (_equals) { - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - } else { - WebIntegrationFragment.Framework _get_1 = WebIntegrationFragment.this.framework.get(); - boolean _equals_1 = Objects.equals(_get_1, WebIntegrationFragment.Framework.ACE); - if (_equals_1) { - _builder.append("\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - } else { - WebIntegrationFragment.Framework _get_2 = WebIntegrationFragment.this.framework.get(); - boolean _equals_2 = Objects.equals(_get_2, WebIntegrationFragment.Framework.CODEMIRROR); - if (_equals_2) { - _builder.append("\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - } - } - } - } - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append(""); - _builder.newLine(); - _builder.append(""); - _builder.newLine(); - _builder.newLine(); - _builder.append("
"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("
"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("

Example "); - String _simpleName = GrammarUtil.getSimpleName(WebIntegrationFragment.this.getGrammar()); - _builder.append(_simpleName, "\t\t"); - _builder.append(" Web Editor

"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("
"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("
"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("
head(WebIntegrationFragment.this.getLanguage().getFileExtensions()); - _builder.append(_head, "\t\t"); - _builder.append("\">
"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("
"); - _builder.newLine(); - _builder.append("
"); - _builder.newLine(); - _builder.newLine(); - _builder.append(""); - _builder.newLine(); - _builder.append(""); - _builder.newLine(); - } - }; - indexFile.setContent(_client); - indexFile.writeTo(this.getProjectConfig().getWeb().getAssets()); - } - - protected void generateStyleSheet() { - boolean _isFile = this.getProjectConfig().getWeb().getAssets().isFile("style.css"); - if (_isFile) { - return; - } - final TextFileAccess styleFile = this.fileAccessFactory.createTextFile(); - styleFile.setPath("style.css"); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("body {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("width: 100%;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("height: 100%;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("overflow: hidden;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("font: 16px Helvetica,sans-serif;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append("a {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("color: #22a;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("text-decoration: none;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append("a:hover {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("text-decoration: underline;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append(".container {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("display: block;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("position: absolute;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("top: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("bottom: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("left: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("right: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("margin: 20px;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append(".header {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("display: block;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("position: absolute;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("background-color: #e8e8e8;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("top: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("left: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("right: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("height: 60px;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("padding: 10px;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append(".content {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("display: block;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("position: absolute;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("top: 90px;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("bottom: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("left: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("width: 640px;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append("#xtext-editor {"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("display: block;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("position: absolute;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("top: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("bottom: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("left: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("right: 0;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("padding: 4px;"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("border: 1px solid #aaa;"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - { - WebIntegrationFragment.Framework _get = WebIntegrationFragment.this.framework.get(); - boolean _equals = Objects.equals(_get, WebIntegrationFragment.Framework.ORION); - if (_equals) { - _builder.newLine(); - _builder.append("/************* Examples for custom icons *************/"); - _builder.newLine(); - _builder.newLine(); - _builder.append("/* For all elements of type Greeting or its subtypes */ "); - _builder.newLine(); - _builder.append("/*"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(".Greeting-icon {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("background-image: url(\'images/Greeting.gif\');"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.newLine(); - _builder.append("/* Only in hovers */ "); - _builder.newLine(); - _builder.append("/*"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(".xtext-hover .Greeting-icon {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("background-image: url(\'images/Greeting.gif\');"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - } - } - } - }; - styleFile.setContent(_client); - styleFile.writeTo(this.getProjectConfig().getWeb().getAssets()); - } - - protected void generateServerLauncher() { - boolean _isPreferXtendStubs = this.codeConfig.isPreferXtendStubs(); - if (_isPreferXtendStubs) { - TypeReference _serverLauncherClass = this.getServerLauncherClass(this.getGrammar()); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* This program starts an HTTP server for testing the web integration of your DSL."); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Just execute it and point a web browser to http://localhost:8080/"); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.append("class "); - String _simpleName = WebIntegrationFragment.this.getServerLauncherClass(WebIntegrationFragment.this.getGrammar()).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("static final "); - TypeReference _typeRef = TypeReference.typeRef("org.slf4j.Logger"); - _builder.append(_typeRef, "\t"); - _builder.append(" LOG = "); - TypeReference _typeRef_1 = TypeReference.typeRef("org.slf4j.LoggerFactory"); - _builder.append(_typeRef_1, "\t"); - _builder.append(".getLogger("); - String _simpleName_1 = WebIntegrationFragment.this.getServerLauncherClass(WebIntegrationFragment.this.getGrammar()).getSimpleName(); - _builder.append(_simpleName_1, "\t"); - _builder.append(");"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("def static void main(String[] args) {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("val server = new "); - TypeReference _typeRef_2 = TypeReference.typeRef("org.eclipse.jetty.server.Server"); - _builder.append(_typeRef_2, "\t\t"); - _builder.append("(new "); - TypeReference _typeRef_3 = TypeReference.typeRef("java.net.InetSocketAddress"); - _builder.append(_typeRef_3, "\t\t"); - _builder.append("(\'localhost\', 8080))"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("server.handler = new "); - TypeReference _typeRef_4 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebAppContext"); - _builder.append(_typeRef_4, "\t\t"); - _builder.append(" => ["); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("baseResource = "); - TypeReference _typeRef_5 = TypeReference.typeRef("org.eclipse.jetty.util.resource.ResourceFactory"); - _builder.append(_typeRef_5, "\t\t\t"); - _builder.append(".of(it).newResource(\'"); - String _path = WebIntegrationFragment.this.getProjectConfig().getWeb().getAssets().getPath(); - String _path_1 = WebIntegrationFragment.this.getProjectConfig().getWeb().getRoot().getPath(); - String _plus = (_path_1 + "/"); - String _replace = _path.replace(_plus, ""); - _builder.append(_replace, "\t\t\t"); - _builder.append("\')"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("welcomeFiles = #[\"index.html\"]"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("contextPath = \"/\""); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("configurations = #["); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_6 = TypeReference.typeRef("org.eclipse.jetty.ee10.annotations.AnnotationConfiguration"); - _builder.append(_typeRef_6, "\t\t\t\t"); - _builder.append(","); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_7 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebXmlConfiguration"); - _builder.append(_typeRef_7, "\t\t\t\t"); - _builder.append(","); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_8 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebInfConfiguration"); - _builder.append(_typeRef_8, "\t\t\t\t"); - _builder.append(","); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_9 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.MetaInfConfiguration"); - _builder.append(_typeRef_9, "\t\t\t\t"); - _builder.append(","); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_10 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebAppConfiguration"); - _builder.append(_typeRef_10, "\t\t\t\t"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("]"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("setAttribute("); - TypeReference _typeRef_11 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.MetaInfConfiguration"); - _builder.append(_typeRef_11, "\t\t\t"); - _builder.append(".CONTAINER_JAR_PATTERN, \'.*/"); - String _replace_1 = WebIntegrationFragment.this.getProjectConfig().getWeb().getName().replace(".", "\\\\."); - _builder.append(_replace_1, "\t\t\t"); - _builder.append("/.*,.*\\\\.jar\')"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("setInitParameter(\"org.eclipse.jetty.servlet.Default.useFileMappedBuffer\", \"false\")"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("]"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("try {"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("server.start"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("LOG.info(\'Server started \' + server.getURI + \'...\')"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("new Thread["); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("LOG.info(\'Press enter to stop the server...\')"); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("val key = System.in.read"); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("if (key != -1) {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t"); - _builder.append("server.stop"); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("} else {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t"); - _builder.append("LOG.warn(\'Console input is not available. In order to stop the server, you need to cancel process manually.\')"); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("].start"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("server.join"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("} catch (Exception exception) {"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("LOG.warn(exception.message)"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("System.exit(1)"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - } - }; - this.fileAccessFactory.createXtendFile(_serverLauncherClass, _client).writeTo(this.getProjectConfig().getWeb().getSrc()); - } else { - TypeReference _serverLauncherClass_1 = this.getServerLauncherClass(this.getGrammar()); - StringConcatenationClient _client_1 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* This program starts an HTTP server for testing the web integration of your DSL."); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Just execute it and point a web browser to http://localhost:8080/"); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - _builder.append("public class "); - String _simpleName = WebIntegrationFragment.this.getServerLauncherClass(WebIntegrationFragment.this.getGrammar()).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("private static final "); - TypeReference _typeRef = TypeReference.typeRef("org.slf4j.Logger"); - _builder.append(_typeRef, "\t"); - _builder.append(" LOG = "); - TypeReference _typeRef_1 = TypeReference.typeRef("org.slf4j.LoggerFactory"); - _builder.append(_typeRef_1, "\t"); - _builder.append(".getLogger("); - String _simpleName_1 = WebIntegrationFragment.this.getServerLauncherClass(WebIntegrationFragment.this.getGrammar()).getSimpleName(); - _builder.append(_simpleName_1, "\t"); - _builder.append(".class);"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("public static void main(String[] args) {"); - _builder.newLine(); - _builder.append("\t\t"); - TypeReference _typeRef_2 = TypeReference.typeRef("org.eclipse.jetty.server.Server"); - _builder.append(_typeRef_2, "\t\t"); - _builder.append(" server = new "); - TypeReference _typeRef_3 = TypeReference.typeRef("org.eclipse.jetty.server.Server"); - _builder.append(_typeRef_3, "\t\t"); - _builder.append("(new "); - TypeReference _typeRef_4 = TypeReference.typeRef("java.net.InetSocketAddress"); - _builder.append(_typeRef_4, "\t\t"); - _builder.append("(\"localhost\", 8080));"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - TypeReference _typeRef_5 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebAppContext"); - _builder.append(_typeRef_5, "\t\t"); - _builder.append(" ctx = new "); - TypeReference _typeRef_6 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebAppContext"); - _builder.append(_typeRef_6, "\t\t"); - _builder.append("();"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("ctx.setBaseResource("); - TypeReference _typeRef_7 = TypeReference.typeRef("org.eclipse.jetty.util.resource.ResourceFactory"); - _builder.append(_typeRef_7, "\t\t"); - _builder.append(".of(ctx).newResource(\"WebRoot\"));"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("ctx.setWelcomeFiles(new String[] {\"index.html\"});"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("ctx.setContextPath(\"/\");"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("ctx.setConfigurations(new "); - TypeReference _typeRef_8 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.Configuration"); - _builder.append(_typeRef_8, "\t\t"); - _builder.append("[] {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_9 = TypeReference.typeRef("org.eclipse.jetty.ee10.annotations.AnnotationConfiguration"); - _builder.append(_typeRef_9, "\t\t\t"); - _builder.append("(),"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_10 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebXmlConfiguration"); - _builder.append(_typeRef_10, "\t\t\t"); - _builder.append("(),"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_11 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebInfConfiguration"); - _builder.append(_typeRef_11, "\t\t\t"); - _builder.append("(),"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_12 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.MetaInfConfiguration"); - _builder.append(_typeRef_12, "\t\t\t"); - _builder.append("(),"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("new "); - TypeReference _typeRef_13 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.WebAppConfiguration"); - _builder.append(_typeRef_13, "\t\t\t"); - _builder.append("()"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("});"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("ctx.setAttribute("); - TypeReference _typeRef_14 = TypeReference.typeRef("org.eclipse.jetty.ee10.webapp.MetaInfConfiguration"); - _builder.append(_typeRef_14, "\t\t"); - _builder.append(".CONTAINER_JAR_PATTERN,"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t\t"); - _builder.append("\".*/"); - String _replace = WebIntegrationFragment.this.getProjectConfig().getWeb().getName().replace(".", "\\\\."); - _builder.append(_replace, "\t\t\t"); - _builder.append("/.*,.*\\\\.jar\");"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("ctx.setInitParameter(\"org.eclipse.jetty.servlet.Default.useFileMappedBuffer\", \"false\");"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("server.setHandler(ctx);"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("try {"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("server.start();"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("LOG.info(\"Server started \" + server.getURI() + \"...\");"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("new Thread() {"); - _builder.newLine(); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("public void run() {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t"); - _builder.append("try {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t"); - _builder.append("LOG.info(\"Press enter to stop the server...\");"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t"); - _builder.append("int key = System.in.read();"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t"); - _builder.append("if (key != -1) {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t\t"); - _builder.append("server.stop();"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t"); - _builder.append("} else {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t\t"); - _builder.append("LOG.warn("); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t\t\t\t"); - _builder.append("\"Console input is not available. In order to stop the server, you need to cancel process manually.\");"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t\t\t\t\t"); - _builder.append("} catch (Exception e) {"); - _builder.newLine(); - _builder.append("\t\t\t\t\t\t"); - _builder.append("LOG.warn(e.getMessage());"); - _builder.newLine(); - _builder.append("\t\t\t\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t\t\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("}.start();"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("server.join();"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("} catch (Exception exception) {"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("LOG.warn(exception.getMessage());"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("System.exit(1);"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - } - }; - this.fileAccessFactory.createJavaFile(_serverLauncherClass_1, _client_1).writeTo(this.getProjectConfig().getWeb().getSrc()); - } - } - - protected void generateServlet() { - boolean _isPreferXtendStubs = this.codeConfig.isPreferXtendStubs(); - if (_isPreferXtendStubs) { - TypeReference _servletClass = this.getServletClass(this.getGrammar()); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Deploy this class into a servlet container to enable DSL-specific services."); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - { - if (WebIntegrationFragment.this.useServlet3Api) { - _builder.append("@"); - TypeReference _typeReference = new TypeReference("jakarta.servlet.annotation.WebServlet"); - _builder.append(_typeReference); - _builder.append("(name = \'XtextServices\', urlPatterns = \'/xtext-service/*\')"); - _builder.newLineIfNotEmpty(); - } - } - _builder.append("class "); - String _simpleName = WebIntegrationFragment.this.getServletClass(WebIntegrationFragment.this.getGrammar()).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - TypeReference _typeRef = TypeReference.typeRef("org.eclipse.xtext.web.servlet.XtextServlet"); - _builder.append(_typeRef); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("static final long serialVersionUID = 1L"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(DisposableRegistry.class, "\t"); - _builder.append(" disposableRegistry"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("override init() {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("super.init()"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("val injector = new "); - TypeReference _webSetup = WebIntegrationFragment.this._xtextGeneratorNaming.getWebSetup(WebIntegrationFragment.this.getGrammar()); - _builder.append(_webSetup, "\t\t"); - _builder.append("().createInjectorAndDoEMFRegistration()"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("disposableRegistry = injector.getInstance("); - _builder.append(DisposableRegistry.class, "\t\t"); - _builder.append(")"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("override destroy() {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("if (disposableRegistry !== null) {"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("disposableRegistry.dispose()"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("disposableRegistry = null"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("super.destroy()"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - } - }; - this.fileAccessFactory.createXtendFile(_servletClass, _client).writeTo(this.getProjectConfig().getWeb().getSrc()); - } else { - TypeReference _servletClass_1 = this.getServletClass(this.getGrammar()); - StringConcatenationClient _client_1 = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append("/**"); - _builder.newLine(); - _builder.append(" "); - _builder.append("* Deploy this class into a servlet container to enable DSL-specific services."); - _builder.newLine(); - _builder.append(" "); - _builder.append("*/"); - _builder.newLine(); - { - if (WebIntegrationFragment.this.useServlet3Api) { - _builder.append("@"); - TypeReference _typeReference = new TypeReference("jakarta.servlet.annotation.WebServlet"); - _builder.append(_typeReference); - _builder.append("(name = \"XtextServices\", urlPatterns = \"/xtext-service/*\")"); - _builder.newLineIfNotEmpty(); - } - } - _builder.append("public class "); - String _simpleName = WebIntegrationFragment.this.getServletClass(WebIntegrationFragment.this.getGrammar()).getSimpleName(); - _builder.append(_simpleName); - _builder.append(" extends "); - TypeReference _typeRef = TypeReference.typeRef("org.eclipse.xtext.web.servlet.XtextServlet"); - _builder.append(_typeRef); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("private static final long serialVersionUID = 1L;"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(DisposableRegistry.class, "\t"); - _builder.append(" disposableRegistry;"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("public void init() throws "); - TypeReference _typeRef_1 = TypeReference.typeRef("jakarta.servlet.ServletException"); - _builder.append(_typeRef_1, "\t"); - _builder.append(" {"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("super.init();"); - _builder.newLine(); - _builder.append("\t\t"); - TypeReference _typeRef_2 = TypeReference.typeRef("com.google.inject.Injector"); - _builder.append(_typeRef_2, "\t\t"); - _builder.append(" injector = new "); - TypeReference _webSetup = WebIntegrationFragment.this._xtextGeneratorNaming.getWebSetup(WebIntegrationFragment.this.getGrammar()); - _builder.append(_webSetup, "\t\t"); - _builder.append("().createInjectorAndDoEMFRegistration();"); - _builder.newLineIfNotEmpty(); - _builder.append("\t\t"); - _builder.append("this.disposableRegistry = injector.getInstance("); - _builder.append(DisposableRegistry.class, "\t\t"); - _builder.append(".class);"); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("public void destroy() {"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("if (disposableRegistry != null) {"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("disposableRegistry.dispose();"); - _builder.newLine(); - _builder.append("\t\t\t"); - _builder.append("disposableRegistry = null;"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("super.destroy();"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("}"); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("}"); - _builder.newLine(); - } - }; - this.fileAccessFactory.createJavaFile(_servletClass_1, _client_1).writeTo(this.getProjectConfig().getWeb().getSrc()); - } - } - - protected void generateWebXml() { - boolean _isFile = this.getProjectConfig().getWeb().getAssets().isFile("WEB-INF/web.xml"); - if (_isFile) { - return; - } - final TextFileAccess xmlFile = this.fileAccessFactory.createTextFile(); - xmlFile.setPath("WEB-INF/web.xml"); - StringConcatenationClient _client = new StringConcatenationClient() { - @Override - protected void appendTo(StringConcatenationClient.TargetStringConcatenation _builder) { - _builder.append(""); - _builder.newLine(); - _builder.append(""); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append("Xtext Example Application"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("This Example demonstrates the usage of Xtext with a servlet container."); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - { - boolean _get = WebIntegrationFragment.this.generateServlet.get(); - if (_get) { - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("XtextServices"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t\t"); - _builder.append("Back-end for the DSL-specific services of Xtext."); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append(""); - TypeReference _servletClass = WebIntegrationFragment.this.getServletClass(WebIntegrationFragment.this.getGrammar()); - _builder.append(_servletClass, "\t\t"); - _builder.append(""); - _builder.newLineIfNotEmpty(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("XtextServices"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("/xtext-service/*"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - } - } - { - if ((!WebIntegrationFragment.this.useServlet3Api)) { - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("XtextResourcesServlet"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("org.eclipse.xtext.web.servlet.XtextResourcesServlet"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("XtextResourcesServlet"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("/xtext/*"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("WebjarsServlet"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("org.webjars.servlet.WebjarsServlet"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("WebjarsServlet"); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("/webjars/*"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - } - } - { - boolean _get_1 = WebIntegrationFragment.this.generateHtmlExample.get(); - if (_get_1) { - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t"); - _builder.append("\t"); - _builder.append("index.html"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - } - } - _builder.append("\t"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append("\t\t"); - _builder.append("30"); - _builder.newLine(); - _builder.append("\t"); - _builder.append(""); - _builder.newLine(); - _builder.append(""); - _builder.newLine(); - } - }; - xmlFile.setContent(_client); - xmlFile.writeTo(this.getProjectConfig().getWeb().getAssets()); - } - - @Pure - public GeneratorOption getFramework() { - return this.framework; - } - - @Pure - public BooleanGeneratorOption getGenerateJsHighlighting() { - return this.generateJsHighlighting; - } - - @Pure - public BooleanGeneratorOption getGenerateServlet() { - return this.generateServlet; - } - - @Pure - public BooleanGeneratorOption getGenerateJettyLauncher() { - return this.generateJettyLauncher; - } - - @Pure - public BooleanGeneratorOption getGenerateWebXml() { - return this.generateWebXml; - } - - @Pure - public BooleanGeneratorOption getGenerateHtmlExample() { - return this.generateHtmlExample; - } - - public void setRequireJsVersion(final String requireJsVersion) { - this.requireJsVersion = requireJsVersion; - } - - public void setRequireJsTextVersion(final String requireJsTextVersion) { - this.requireJsTextVersion = requireJsTextVersion; - } - - public void setJQueryVersion(final String jQueryVersion) { - this.jQueryVersion = jQueryVersion; - } - - public void setAceVersion(final String aceVersion) { - this.aceVersion = aceVersion; - } - - public void setCodeMirrorVersion(final String codeMirrorVersion) { - this.codeMirrorVersion = codeMirrorVersion; - } -} diff --git a/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.java b/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.java index 632f4cc428a..bddaa959bd2 100644 --- a/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.java +++ b/org.eclipse.xtext.xtext.generator/xtend-gen/org/eclipse/xtext/xtext/generator/xbase/XbaseGeneratorFragment2.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -119,8 +119,6 @@ public void generate() { } GuiceModuleAccess _ideGenModule = this.getLanguage().getIdeGenModule(); _ideGenModule.setSuperClass(TypeReference.typeRef("org.eclipse.xtext.xbase.ide.DefaultXbaseIdeModule")); - GuiceModuleAccess _webGenModule = this.getLanguage().getWebGenModule(); - _webGenModule.setSuperClass(TypeReference.typeRef("org.eclipse.xtext.xbase.web.DefaultXbaseWebModule")); } protected boolean contributeEditorStub() { diff --git a/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/wizard/project/AdvancedNewProjectPage.java b/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/wizard/project/AdvancedNewProjectPage.java index 8aaaebfe1e9..392b74da858 100644 --- a/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/wizard/project/AdvancedNewProjectPage.java +++ b/org.eclipse.xtext.xtext.ui/src/org/eclipse/xtext/xtext/ui/wizard/project/AdvancedNewProjectPage.java @@ -1,5 +1,5 @@ /** - * Copyright (c) 2015, 2020 itemis AG (http://www.itemis.eu) and others. + * Copyright (c) 2015, 2026 itemis AG (http://www.itemis.eu) and others. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. @@ -48,8 +48,6 @@ public class AdvancedNewProjectPage extends WizardPage { private Button createP2Project; - private Button createWebProject; - private Button createIdeProject; private Button createTestProject; @@ -91,10 +89,6 @@ public void createControl(Composite parent) { createSDKProject = CheckBox(subGroup, (button) -> button.setText(Messages.AdvancedNewProjectPage_projEclipseSDKFeature)); createP2Project = CheckBox(subGroup, (button) -> button.setText(Messages.AdvancedNewProjectPage_projEclipseP2)); }); - createWebProject = CheckBox(group, (button) -> { - button.setText(Messages.AdvancedNewProjectPage_projWeb); - button.setEnabled(true); - }); createIdeProject = CheckBox(group, (button) -> { button.setText(Messages.AdvancedNewProjectPage_projIde); button.setEnabled(false); @@ -157,7 +151,7 @@ public void createControl(Composite parent) { statusWidget = new StatusWidget(control, SWT.NONE); statusWidget.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false)); - List