diff --git a/com.avaloq.tools.ddk.feature/feature.xml b/com.avaloq.tools.ddk.feature/feature.xml index 4694aec2d9..e92053cf6c 100644 --- a/com.avaloq.tools.ddk.feature/feature.xml +++ b/com.avaloq.tools.ddk.feature/feature.xml @@ -69,27 +69,6 @@ version="0.0.0" unpack="false"/> - - - - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/.project b/com.avaloq.tools.ddk.xtext.valid.ide/.project deleted file mode 100644 index acb4841b6c..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/.project +++ /dev/null @@ -1,99 +0,0 @@ - - - com.avaloq.tools.ddk.xtext.valid.ide - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - net.sf.eclipsecs.core.CheckstyleBuilder - - - - - net.sourceforge.pmd.eclipse.plugin.pmdBuilder - - - - - edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.xtext.ui.shared.xtextNature - net.sourceforge.pmd.eclipse.plugin.pmdNature - net.sf.eclipsecs.core.CheckstyleNature - edu.umd.cs.findbugs.plugin.eclipse.findbugsNature - - - - .checkstyle - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.checkstyle - - - .fbprefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.fbprefs - - - .pmd - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.pmd - - - .settings/edu.umd.cs.findbugs.plugin.eclipse.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/edu.umd.cs.findbugs.plugin.eclipse.prefs - - - .settings/org.eclipse.core.resources.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.core.resources.prefs - - - .settings/org.eclipse.core.runtime.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.core.runtime.prefs - - - .settings/org.eclipse.jdt.core.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.jdt.core.prefs - - - .settings/org.eclipse.jdt.ui.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.jdt.ui.prefs - - - .settings/org.eclipse.pde.core.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.pde.core.prefs - - - diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/META-INF/MANIFEST.MF b/com.avaloq.tools.ddk.xtext.valid.ide/META-INF/MANIFEST.MF deleted file mode 100644 index a66706bd9c..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/META-INF/MANIFEST.MF +++ /dev/null @@ -1,14 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: com.avaloq.tools.ddk.xtext.valid.ide -Bundle-SymbolicName: com.avaloq.tools.ddk.xtext.valid.ide;singleton:=true -Bundle-Version: 17.3.2.qualifier -Bundle-Vendor: Avaloq Group AG -Bundle-RequiredExecutionEnvironment: JavaSE-21 -Bundle-ActivationPolicy: lazy -Export-Package: com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr, - com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr.internal -Require-Bundle: org.antlr.runtime, - org.eclipse.xtext.ide, - com.avaloq.tools.ddk.xtext.valid -Automatic-Module-Name: com.avaloq.tools.ddk.xtext.valid.ide diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/build.properties b/com.avaloq.tools.ddk.xtext.valid.ide/build.properties deleted file mode 100644 index ec65859a4c..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/build.properties +++ /dev/null @@ -1,4 +0,0 @@ -source.. = src/,\ - src-gen/ -bin.includes = META-INF/,\ - . diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/pom.xml b/com.avaloq.tools.ddk.xtext.valid.ide/pom.xml deleted file mode 100644 index 95e9841d9b..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - - ddk-parent - com.avaloq.tools.ddk - 18.0.1-SNAPSHOT - ../ddk-parent - - 17.3.2-SNAPSHOT - com.avaloq.tools.ddk - com.avaloq.tools.ddk.xtext.valid.ide - eclipse-plugin - \ No newline at end of file diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup deleted file mode 100644 index f9061cfb8f..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/META-INF/services/org.eclipse.xtext.ISetup +++ /dev/null @@ -1 +0,0 @@ -com.avaloq.tools.ddk.xtext.valid.ide.ValidIdeSetup diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/AbstractValidIdeModule.java b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/AbstractValidIdeModule.java deleted file mode 100644 index b18ba1066f..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/AbstractValidIdeModule.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.ide; - -import com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr.ValidParser; -import com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr.internal.InternalValidLexer; -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.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; - -/** - * Manual modifications go to {@link ValidIdeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractValidIdeModule 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(InternalValidLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIContentAssistParser() { - return ValidParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIProposalConflictHelper() { - return AntlrProposalConflictHelper.class; - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/ValidParser.java b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/ValidParser.java deleted file mode 100644 index ad892ebd41..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/ValidParser.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr; - -import com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr.internal.InternalValidParser; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -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; - -public class ValidParser extends AbstractContentAssistParser { - - @Singleton - public static final class NameMappings { - - private final Map mappings; - - @Inject - public NameMappings(ValidGrammarAccess 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, ValidGrammarAccess grammarAccess) { - builder.put(grammarAccess.getRuleAccess().getAlternatives(), "rule__Rule__Alternatives"); - builder.put(grammarAccess.getPredefinedRuleAccess().getAlternatives(), "rule__PredefinedRule__Alternatives"); - builder.put(grammarAccess.getContextAccess().getAlternatives(), "rule__Context__Alternatives"); - builder.put(grammarAccess.getCheckKindAccess().getAlternatives(), "rule__CheckKind__Alternatives"); - builder.put(grammarAccess.getSeverityKindAccess().getAlternatives(), "rule__SeverityKind__Alternatives"); - builder.put(grammarAccess.getQuickFixKindAccess().getAlternatives(), "rule__QuickFixKind__Alternatives"); - builder.put(grammarAccess.getValidModelAccess().getGroup(), "rule__ValidModel__Group__0"); - builder.put(grammarAccess.getImportAccess().getGroup(), "rule__Import__Group__0"); - builder.put(grammarAccess.getCategoryAccess().getGroup(), "rule__Category__Group__0"); - builder.put(grammarAccess.getCategoryAccess().getGroup_4(), "rule__Category__Group_4__0"); - builder.put(grammarAccess.getNativeRuleAccess().getGroup(), "rule__NativeRule__Group__0"); - builder.put(grammarAccess.getNativeRuleAccess().getGroup_5(), "rule__NativeRule__Group_5__0"); - builder.put(grammarAccess.getSizeRuleAccess().getGroup(), "rule__SizeRule__Group__0"); - builder.put(grammarAccess.getSizeRuleAccess().getGroup_6(), "rule__SizeRule__Group_6__0"); - builder.put(grammarAccess.getSizeRuleAccess().getGroup_7(), "rule__SizeRule__Group_7__0"); - builder.put(grammarAccess.getSizeRuleAccess().getGroup_9(), "rule__SizeRule__Group_9__0"); - builder.put(grammarAccess.getRangeRuleAccess().getGroup(), "rule__RangeRule__Group__0"); - builder.put(grammarAccess.getRangeRuleAccess().getGroup_6(), "rule__RangeRule__Group_6__0"); - builder.put(grammarAccess.getRangeRuleAccess().getGroup_7(), "rule__RangeRule__Group_7__0"); - builder.put(grammarAccess.getRangeRuleAccess().getGroup_9(), "rule__RangeRule__Group_9__0"); - builder.put(grammarAccess.getUniqueRuleAccess().getGroup(), "rule__UniqueRule__Group__0"); - builder.put(grammarAccess.getUniqueRuleAccess().getGroup_6(), "rule__UniqueRule__Group_6__0"); - builder.put(grammarAccess.getUniqueRuleAccess().getGroup_7(), "rule__UniqueRule__Group_7__0"); - builder.put(grammarAccess.getSimpleContextAccess().getGroup(), "rule__SimpleContext__Group__0"); - builder.put(grammarAccess.getSimpleContextAccess().getGroup_1(), "rule__SimpleContext__Group_1__0"); - builder.put(grammarAccess.getDuplicateContextAccess().getGroup(), "rule__DuplicateContext__Group__0"); - builder.put(grammarAccess.getDuplicateContextAccess().getGroup_1(), "rule__DuplicateContext__Group_1__0"); - builder.put(grammarAccess.getNativeContextAccess().getGroup(), "rule__NativeContext__Group__0"); - builder.put(grammarAccess.getNativeContextAccess().getGroup_1(), "rule__NativeContext__Group_1__0"); - builder.put(grammarAccess.getNativeContextAccess().getGroup_2(), "rule__NativeContext__Group_2__0"); - builder.put(grammarAccess.getNativeContextAccess().getGroup_3(), "rule__NativeContext__Group_3__0"); - builder.put(grammarAccess.getNativeContextAccess().getGroup_3_2(), "rule__NativeContext__Group_3_2__0"); - builder.put(grammarAccess.getNativeContextAccess().getGroup_4(), "rule__NativeContext__Group_4__0"); - builder.put(grammarAccess.getQuickFixAccess().getGroup(), "rule__QuickFix__Group__0"); - builder.put(grammarAccess.getQualifiedIDAccess().getGroup(), "rule__QualifiedID__Group__0"); - builder.put(grammarAccess.getQualifiedIDAccess().getGroup_0(), "rule__QualifiedID__Group_0__0"); - builder.put(grammarAccess.getValidModelAccess().getImportsAssignment_0(), "rule__ValidModel__ImportsAssignment_0"); - builder.put(grammarAccess.getValidModelAccess().getCategoriesAssignment_1(), "rule__ValidModel__CategoriesAssignment_1"); - builder.put(grammarAccess.getImportAccess().getPackageAssignment_1(), "rule__Import__PackageAssignment_1"); - builder.put(grammarAccess.getCategoryAccess().getNameAssignment_1(), "rule__Category__NameAssignment_1"); - builder.put(grammarAccess.getCategoryAccess().getLabelAssignment_3(), "rule__Category__LabelAssignment_3"); - builder.put(grammarAccess.getCategoryAccess().getDescriptionAssignment_4_1(), "rule__Category__DescriptionAssignment_4_1"); - builder.put(grammarAccess.getCategoryAccess().getRulesAssignment_6(), "rule__Category__RulesAssignment_6"); - builder.put(grammarAccess.getNativeRuleAccess().getOptionalAssignment_0_0(), "rule__NativeRule__OptionalAssignment_0_0"); - builder.put(grammarAccess.getNativeRuleAccess().getCheckKindAssignment_0_1(), "rule__NativeRule__CheckKindAssignment_0_1"); - builder.put(grammarAccess.getNativeRuleAccess().getSeverityAssignment_1(), "rule__NativeRule__SeverityAssignment_1"); - builder.put(grammarAccess.getNativeRuleAccess().getNameAssignment_2(), "rule__NativeRule__NameAssignment_2"); - builder.put(grammarAccess.getNativeRuleAccess().getLabelAssignment_4(), "rule__NativeRule__LabelAssignment_4"); - builder.put(grammarAccess.getNativeRuleAccess().getDescriptionAssignment_5_1(), "rule__NativeRule__DescriptionAssignment_5_1"); - builder.put(grammarAccess.getNativeRuleAccess().getMessageAssignment_7(), "rule__NativeRule__MessageAssignment_7"); - builder.put(grammarAccess.getNativeRuleAccess().getContextsAssignment_10(), "rule__NativeRule__ContextsAssignment_10"); - builder.put(grammarAccess.getSizeRuleAccess().getOptionalAssignment_0_0(), "rule__SizeRule__OptionalAssignment_0_0"); - builder.put(grammarAccess.getSizeRuleAccess().getCheckKindAssignment_0_1(), "rule__SizeRule__CheckKindAssignment_0_1"); - builder.put(grammarAccess.getSizeRuleAccess().getSeverityAssignment_2(), "rule__SizeRule__SeverityAssignment_2"); - builder.put(grammarAccess.getSizeRuleAccess().getNameAssignment_3(), "rule__SizeRule__NameAssignment_3"); - builder.put(grammarAccess.getSizeRuleAccess().getLabelAssignment_5(), "rule__SizeRule__LabelAssignment_5"); - builder.put(grammarAccess.getSizeRuleAccess().getDescriptionAssignment_6_1(), "rule__SizeRule__DescriptionAssignment_6_1"); - builder.put(grammarAccess.getSizeRuleAccess().getMessageAssignment_7_1(), "rule__SizeRule__MessageAssignment_7_1"); - builder.put(grammarAccess.getSizeRuleAccess().getMinAssignment_9_0(), "rule__SizeRule__MinAssignment_9_0"); - builder.put(grammarAccess.getSizeRuleAccess().getMaxAssignment_10(), "rule__SizeRule__MaxAssignment_10"); - builder.put(grammarAccess.getSizeRuleAccess().getContextsAssignment_13(), "rule__SizeRule__ContextsAssignment_13"); - builder.put(grammarAccess.getRangeRuleAccess().getOptionalAssignment_0_0(), "rule__RangeRule__OptionalAssignment_0_0"); - builder.put(grammarAccess.getRangeRuleAccess().getCheckKindAssignment_0_1(), "rule__RangeRule__CheckKindAssignment_0_1"); - builder.put(grammarAccess.getRangeRuleAccess().getSeverityAssignment_2(), "rule__RangeRule__SeverityAssignment_2"); - builder.put(grammarAccess.getRangeRuleAccess().getNameAssignment_3(), "rule__RangeRule__NameAssignment_3"); - builder.put(grammarAccess.getRangeRuleAccess().getLabelAssignment_5(), "rule__RangeRule__LabelAssignment_5"); - builder.put(grammarAccess.getRangeRuleAccess().getDescriptionAssignment_6_1(), "rule__RangeRule__DescriptionAssignment_6_1"); - builder.put(grammarAccess.getRangeRuleAccess().getMessageAssignment_7_1(), "rule__RangeRule__MessageAssignment_7_1"); - builder.put(grammarAccess.getRangeRuleAccess().getMinAssignment_9_0(), "rule__RangeRule__MinAssignment_9_0"); - builder.put(grammarAccess.getRangeRuleAccess().getMaxAssignment_10(), "rule__RangeRule__MaxAssignment_10"); - builder.put(grammarAccess.getRangeRuleAccess().getContextsAssignment_13(), "rule__RangeRule__ContextsAssignment_13"); - builder.put(grammarAccess.getUniqueRuleAccess().getOptionalAssignment_0_0(), "rule__UniqueRule__OptionalAssignment_0_0"); - builder.put(grammarAccess.getUniqueRuleAccess().getCheckKindAssignment_0_1(), "rule__UniqueRule__CheckKindAssignment_0_1"); - builder.put(grammarAccess.getUniqueRuleAccess().getSeverityAssignment_2(), "rule__UniqueRule__SeverityAssignment_2"); - builder.put(grammarAccess.getUniqueRuleAccess().getNameAssignment_3(), "rule__UniqueRule__NameAssignment_3"); - builder.put(grammarAccess.getUniqueRuleAccess().getLabelAssignment_5(), "rule__UniqueRule__LabelAssignment_5"); - builder.put(grammarAccess.getUniqueRuleAccess().getDescriptionAssignment_6_1(), "rule__UniqueRule__DescriptionAssignment_6_1"); - builder.put(grammarAccess.getUniqueRuleAccess().getMessageAssignment_7_1(), "rule__UniqueRule__MessageAssignment_7_1"); - builder.put(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10(), "rule__UniqueRule__ContextsAssignment_10"); - builder.put(grammarAccess.getSimpleContextAccess().getContextTypeAssignment_0(), "rule__SimpleContext__ContextTypeAssignment_0"); - builder.put(grammarAccess.getSimpleContextAccess().getContextFeatureAssignment_1_1(), "rule__SimpleContext__ContextFeatureAssignment_1_1"); - builder.put(grammarAccess.getDuplicateContextAccess().getContextTypeAssignment_0(), "rule__DuplicateContext__ContextTypeAssignment_0"); - builder.put(grammarAccess.getDuplicateContextAccess().getContextFeatureAssignment_1_1(), "rule__DuplicateContext__ContextFeatureAssignment_1_1"); - builder.put(grammarAccess.getDuplicateContextAccess().getMarkerTypeAssignment_3(), "rule__DuplicateContext__MarkerTypeAssignment_3"); - builder.put(grammarAccess.getDuplicateContextAccess().getMarkerFeatureAssignment_5(), "rule__DuplicateContext__MarkerFeatureAssignment_5"); - builder.put(grammarAccess.getNativeContextAccess().getContextTypeAssignment_0(), "rule__NativeContext__ContextTypeAssignment_0"); - builder.put(grammarAccess.getNativeContextAccess().getContextFeatureAssignment_1_1(), "rule__NativeContext__ContextFeatureAssignment_1_1"); - builder.put(grammarAccess.getNativeContextAccess().getNamedAssignment_2_0(), "rule__NativeContext__NamedAssignment_2_0"); - builder.put(grammarAccess.getNativeContextAccess().getGivenNameAssignment_2_1(), "rule__NativeContext__GivenNameAssignment_2_1"); - builder.put(grammarAccess.getNativeContextAccess().getMarkerTypeAssignment_3_1(), "rule__NativeContext__MarkerTypeAssignment_3_1"); - builder.put(grammarAccess.getNativeContextAccess().getMarkerFeatureAssignment_3_2_1(), "rule__NativeContext__MarkerFeatureAssignment_3_2_1"); - builder.put(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2(), "rule__NativeContext__QuickFixesAssignment_4_2"); - builder.put(grammarAccess.getQuickFixAccess().getQuickFixKindAssignment_0(), "rule__QuickFix__QuickFixKindAssignment_0"); - builder.put(grammarAccess.getQuickFixAccess().getNameAssignment_2(), "rule__QuickFix__NameAssignment_2"); - builder.put(grammarAccess.getQuickFixAccess().getLabelAssignment_4(), "rule__QuickFix__LabelAssignment_4"); - builder.put(grammarAccess.getQuickFixAccess().getMessageAssignment_6(), "rule__QuickFix__MessageAssignment_6"); - builder.put(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), "rule__NativeRule__UnorderedGroup_0"); - builder.put(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), "rule__SizeRule__UnorderedGroup_0"); - builder.put(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), "rule__RangeRule__UnorderedGroup_0"); - builder.put(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), "rule__UniqueRule__UnorderedGroup_0"); - } - } - - @Inject - private NameMappings nameMappings; - - @Inject - private ValidGrammarAccess grammarAccess; - - @Override - protected InternalValidParser createParser() { - InternalValidParser result = new InternalValidParser(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 ValidGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(ValidGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - public NameMappings getNameMappings() { - return nameMappings; - } - - public void setNameMappings(NameMappings nameMappings) { - this.nameMappings = nameMappings; - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValid.g b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValid.g deleted file mode 100644 index f14021dd6e..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValid.g +++ /dev/null @@ -1,5447 +0,0 @@ -/* - * generated by Xtext - */ -grammar InternalValid; - -options { - superClass=AbstractInternalContentAssistParser; -} - -@lexer::header { -package com.avaloq.tools.ddk.xtext.valid.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 com.avaloq.tools.ddk.xtext.valid.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 com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; - -} -@parser::members { - private ValidGrammarAccess grammarAccess; - - public void setGrammarAccess(ValidGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - @Override - protected Grammar getGrammar() { - return grammarAccess.getGrammar(); - } - - @Override - protected String getValueForTokenName(String tokenName) { - return tokenName; - } -} - -// Entry rule entryRuleValidModel -entryRuleValidModel -: -{ before(grammarAccess.getValidModelRule()); } - ruleValidModel -{ after(grammarAccess.getValidModelRule()); } - EOF -; - -// Rule ValidModel -ruleValidModel - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getValidModelAccess().getGroup()); } - (rule__ValidModel__Group__0) - { after(grammarAccess.getValidModelAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleImport -entryRuleImport -: -{ before(grammarAccess.getImportRule()); } - ruleImport -{ after(grammarAccess.getImportRule()); } - EOF -; - -// Rule Import -ruleImport - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getImportAccess().getGroup()); } - (rule__Import__Group__0) - { after(grammarAccess.getImportAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleCategory -entryRuleCategory -: -{ before(grammarAccess.getCategoryRule()); } - ruleCategory -{ after(grammarAccess.getCategoryRule()); } - EOF -; - -// Rule Category -ruleCategory - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getCategoryAccess().getGroup()); } - (rule__Category__Group__0) - { after(grammarAccess.getCategoryAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleRule -entryRuleRule -: -{ before(grammarAccess.getRuleRule()); } - ruleRule -{ after(grammarAccess.getRuleRule()); } - EOF -; - -// Rule Rule -ruleRule - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getRuleAccess().getAlternatives()); } - (rule__Rule__Alternatives) - { after(grammarAccess.getRuleAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRulePredefinedRule -entryRulePredefinedRule -: -{ before(grammarAccess.getPredefinedRuleRule()); } - rulePredefinedRule -{ after(grammarAccess.getPredefinedRuleRule()); } - EOF -; - -// Rule PredefinedRule -rulePredefinedRule - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getPredefinedRuleAccess().getAlternatives()); } - (rule__PredefinedRule__Alternatives) - { after(grammarAccess.getPredefinedRuleAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleNativeRule -entryRuleNativeRule -: -{ before(grammarAccess.getNativeRuleRule()); } - ruleNativeRule -{ after(grammarAccess.getNativeRuleRule()); } - EOF -; - -// Rule NativeRule -ruleNativeRule - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getNativeRuleAccess().getGroup()); } - (rule__NativeRule__Group__0) - { after(grammarAccess.getNativeRuleAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleSizeRule -entryRuleSizeRule -: -{ before(grammarAccess.getSizeRuleRule()); } - ruleSizeRule -{ after(grammarAccess.getSizeRuleRule()); } - EOF -; - -// Rule SizeRule -ruleSizeRule - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getSizeRuleAccess().getGroup()); } - (rule__SizeRule__Group__0) - { after(grammarAccess.getSizeRuleAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleRangeRule -entryRuleRangeRule -: -{ before(grammarAccess.getRangeRuleRule()); } - ruleRangeRule -{ after(grammarAccess.getRangeRuleRule()); } - EOF -; - -// Rule RangeRule -ruleRangeRule - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getRangeRuleAccess().getGroup()); } - (rule__RangeRule__Group__0) - { after(grammarAccess.getRangeRuleAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleUniqueRule -entryRuleUniqueRule -: -{ before(grammarAccess.getUniqueRuleRule()); } - ruleUniqueRule -{ after(grammarAccess.getUniqueRuleRule()); } - EOF -; - -// Rule UniqueRule -ruleUniqueRule - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getUniqueRuleAccess().getGroup()); } - (rule__UniqueRule__Group__0) - { after(grammarAccess.getUniqueRuleAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleSimpleContext -entryRuleSimpleContext -: -{ before(grammarAccess.getSimpleContextRule()); } - ruleSimpleContext -{ after(grammarAccess.getSimpleContextRule()); } - EOF -; - -// Rule SimpleContext -ruleSimpleContext - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getSimpleContextAccess().getGroup()); } - (rule__SimpleContext__Group__0) - { after(grammarAccess.getSimpleContextAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleDuplicateContext -entryRuleDuplicateContext -: -{ before(grammarAccess.getDuplicateContextRule()); } - ruleDuplicateContext -{ after(grammarAccess.getDuplicateContextRule()); } - EOF -; - -// Rule DuplicateContext -ruleDuplicateContext - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getDuplicateContextAccess().getGroup()); } - (rule__DuplicateContext__Group__0) - { after(grammarAccess.getDuplicateContextAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleNativeContext -entryRuleNativeContext -: -{ before(grammarAccess.getNativeContextRule()); } - ruleNativeContext -{ after(grammarAccess.getNativeContextRule()); } - EOF -; - -// Rule NativeContext -ruleNativeContext - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getNativeContextAccess().getGroup()); } - (rule__NativeContext__Group__0) - { after(grammarAccess.getNativeContextAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleQuickFix -entryRuleQuickFix -: -{ before(grammarAccess.getQuickFixRule()); } - ruleQuickFix -{ after(grammarAccess.getQuickFixRule()); } - EOF -; - -// Rule QuickFix -ruleQuickFix - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getQuickFixAccess().getGroup()); } - (rule__QuickFix__Group__0) - { after(grammarAccess.getQuickFixAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Entry rule entryRuleQualifiedID -entryRuleQualifiedID -: -{ before(grammarAccess.getQualifiedIDRule()); } - ruleQualifiedID -{ after(grammarAccess.getQualifiedIDRule()); } - EOF -; - -// Rule QualifiedID -ruleQualifiedID - @init { - int stackSize = keepStackSize(); - } - : - ( - { before(grammarAccess.getQualifiedIDAccess().getGroup()); } - (rule__QualifiedID__Group__0) - { after(grammarAccess.getQualifiedIDAccess().getGroup()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Rule CheckKind -ruleCheckKind - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCheckKindAccess().getAlternatives()); } - (rule__CheckKind__Alternatives) - { after(grammarAccess.getCheckKindAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Rule SeverityKind -ruleSeverityKind - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSeverityKindAccess().getAlternatives()); } - (rule__SeverityKind__Alternatives) - { after(grammarAccess.getSeverityKindAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -// Rule QuickFixKind -ruleQuickFixKind - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getQuickFixKindAccess().getAlternatives()); } - (rule__QuickFixKind__Alternatives) - { after(grammarAccess.getQuickFixKindAccess().getAlternatives()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Rule__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRuleAccess().getNativeRuleParserRuleCall_0()); } - ruleNativeRule - { after(grammarAccess.getRuleAccess().getNativeRuleParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getRuleAccess().getPredefinedRuleParserRuleCall_1()); } - rulePredefinedRule - { after(grammarAccess.getRuleAccess().getPredefinedRuleParserRuleCall_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__PredefinedRule__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getPredefinedRuleAccess().getSizeRuleParserRuleCall_0()); } - ruleSizeRule - { after(grammarAccess.getPredefinedRuleAccess().getSizeRuleParserRuleCall_0()); } - ) - | - ( - { before(grammarAccess.getPredefinedRuleAccess().getRangeRuleParserRuleCall_1()); } - ruleRangeRule - { after(grammarAccess.getPredefinedRuleAccess().getRangeRuleParserRuleCall_1()); } - ) - | - ( - { before(grammarAccess.getPredefinedRuleAccess().getUniqueRuleParserRuleCall_2()); } - ruleUniqueRule - { after(grammarAccess.getPredefinedRuleAccess().getUniqueRuleParserRuleCall_2()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__CheckKind__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0()); } - ('fast') - { after(grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0()); } - ) - | - ( - { before(grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1()); } - ('normal') - { after(grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1()); } - ) - | - ( - { before(grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2()); } - ('expensive') - { after(grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SeverityKind__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0()); } - ('error') - { after(grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0()); } - ) - | - ( - { before(grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1()); } - ('warning') - { after(grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFixKind__Alternatives - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0()); } - ('semantic') - { after(grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0()); } - ) - | - ( - { before(grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1()); } - ('textual') - { after(grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__ValidModel__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__ValidModel__Group__0__Impl - rule__ValidModel__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__ValidModel__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getValidModelAccess().getImportsAssignment_0()); } - (rule__ValidModel__ImportsAssignment_0)* - { after(grammarAccess.getValidModelAccess().getImportsAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__ValidModel__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__ValidModel__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__ValidModel__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getValidModelAccess().getCategoriesAssignment_1()); } - (rule__ValidModel__CategoriesAssignment_1)* - { after(grammarAccess.getValidModelAccess().getCategoriesAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Import__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Import__Group__0__Impl - rule__Import__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Import__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getImportAccess().getImportKeyword_0()); } - 'import' - { after(grammarAccess.getImportAccess().getImportKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Import__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Import__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Import__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getImportAccess().getPackageAssignment_1()); } - (rule__Import__PackageAssignment_1) - { after(grammarAccess.getImportAccess().getPackageAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Category__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__0__Impl - rule__Category__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getCategoryKeyword_0()); } - 'category' - { after(grammarAccess.getCategoryAccess().getCategoryKeyword_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__1__Impl - rule__Category__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getNameAssignment_1()); } - (rule__Category__NameAssignment_1) - { after(grammarAccess.getCategoryAccess().getNameAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__2__Impl - rule__Category__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getLabelKeyword_2()); } - 'label' - { after(grammarAccess.getCategoryAccess().getLabelKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__3__Impl - rule__Category__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getLabelAssignment_3()); } - (rule__Category__LabelAssignment_3) - { after(grammarAccess.getCategoryAccess().getLabelAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__4__Impl - rule__Category__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getGroup_4()); } - (rule__Category__Group_4__0)? - { after(grammarAccess.getCategoryAccess().getGroup_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__5__Impl - rule__Category__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getLeftCurlyBracketKeyword_5()); } - '{' - { after(grammarAccess.getCategoryAccess().getLeftCurlyBracketKeyword_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__6__Impl - rule__Category__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getRulesAssignment_6()); } - (rule__Category__RulesAssignment_6)* - { after(grammarAccess.getCategoryAccess().getRulesAssignment_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group__7__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getRightCurlyBracketKeyword_7()); } - '}' - { after(grammarAccess.getCategoryAccess().getRightCurlyBracketKeyword_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__Category__Group_4__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group_4__0__Impl - rule__Category__Group_4__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group_4__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getDescriptionKeyword_4_0()); } - 'description' - { after(grammarAccess.getCategoryAccess().getDescriptionKeyword_4_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group_4__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__Category__Group_4__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__Group_4__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getCategoryAccess().getDescriptionAssignment_4_1()); } - (rule__Category__DescriptionAssignment_4_1) - { after(grammarAccess.getCategoryAccess().getDescriptionAssignment_4_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeRule__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__0__Impl - rule__NativeRule__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); } - (rule__NativeRule__UnorderedGroup_0) - { after(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__1__Impl - rule__NativeRule__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getSeverityAssignment_1()); } - (rule__NativeRule__SeverityAssignment_1) - { after(grammarAccess.getNativeRuleAccess().getSeverityAssignment_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__2__Impl - rule__NativeRule__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getNameAssignment_2()); } - (rule__NativeRule__NameAssignment_2) - { after(grammarAccess.getNativeRuleAccess().getNameAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__3__Impl - rule__NativeRule__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getLabelKeyword_3()); } - 'label' - { after(grammarAccess.getNativeRuleAccess().getLabelKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__4__Impl - rule__NativeRule__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getLabelAssignment_4()); } - (rule__NativeRule__LabelAssignment_4) - { after(grammarAccess.getNativeRuleAccess().getLabelAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__5__Impl - rule__NativeRule__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getGroup_5()); } - (rule__NativeRule__Group_5__0)? - { after(grammarAccess.getNativeRuleAccess().getGroup_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__6__Impl - rule__NativeRule__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getMessageKeyword_6()); } - 'message' - { after(grammarAccess.getNativeRuleAccess().getMessageKeyword_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__7__Impl - rule__NativeRule__Group__8 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getMessageAssignment_7()); } - (rule__NativeRule__MessageAssignment_7) - { after(grammarAccess.getNativeRuleAccess().getMessageAssignment_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__8 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__8__Impl - rule__NativeRule__Group__9 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__8__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getContextKeyword_8()); } - 'context' - { after(grammarAccess.getNativeRuleAccess().getContextKeyword_8()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__9 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__9__Impl - rule__NativeRule__Group__10 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__9__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getLeftCurlyBracketKeyword_9()); } - '{' - { after(grammarAccess.getNativeRuleAccess().getLeftCurlyBracketKeyword_9()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__10 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__10__Impl - rule__NativeRule__Group__11 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__10__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - ( - { before(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); } - (rule__NativeRule__ContextsAssignment_10) - { after(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); } - ) - ( - { before(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); } - (rule__NativeRule__ContextsAssignment_10)* - { after(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); } - ) -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__11 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group__11__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group__11__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getRightCurlyBracketKeyword_11()); } - '}' - { after(grammarAccess.getNativeRuleAccess().getRightCurlyBracketKeyword_11()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeRule__Group_5__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group_5__0__Impl - rule__NativeRule__Group_5__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group_5__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getDescriptionKeyword_5_0()); } - 'description' - { after(grammarAccess.getNativeRuleAccess().getDescriptionKeyword_5_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group_5__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__Group_5__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__Group_5__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeRuleAccess().getDescriptionAssignment_5_1()); } - (rule__NativeRule__DescriptionAssignment_5_1) - { after(grammarAccess.getNativeRuleAccess().getDescriptionAssignment_5_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__SizeRule__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__0__Impl - rule__SizeRule__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); } - (rule__SizeRule__UnorderedGroup_0) - { after(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__1__Impl - rule__SizeRule__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getSizeKeyword_1()); } - 'size' - { after(grammarAccess.getSizeRuleAccess().getSizeKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__2__Impl - rule__SizeRule__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getSeverityAssignment_2()); } - (rule__SizeRule__SeverityAssignment_2) - { after(grammarAccess.getSizeRuleAccess().getSeverityAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__3__Impl - rule__SizeRule__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getNameAssignment_3()); } - (rule__SizeRule__NameAssignment_3) - { after(grammarAccess.getSizeRuleAccess().getNameAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__4__Impl - rule__SizeRule__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getLabelKeyword_4()); } - 'label' - { after(grammarAccess.getSizeRuleAccess().getLabelKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__5__Impl - rule__SizeRule__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getLabelAssignment_5()); } - (rule__SizeRule__LabelAssignment_5) - { after(grammarAccess.getSizeRuleAccess().getLabelAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__6__Impl - rule__SizeRule__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getGroup_6()); } - (rule__SizeRule__Group_6__0)? - { after(grammarAccess.getSizeRuleAccess().getGroup_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__7__Impl - rule__SizeRule__Group__8 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getGroup_7()); } - (rule__SizeRule__Group_7__0)? - { after(grammarAccess.getSizeRuleAccess().getGroup_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__8 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__8__Impl - rule__SizeRule__Group__9 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__8__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getSizeKeyword_8()); } - 'size' - { after(grammarAccess.getSizeRuleAccess().getSizeKeyword_8()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__9 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__9__Impl - rule__SizeRule__Group__10 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__9__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getGroup_9()); } - (rule__SizeRule__Group_9__0)? - { after(grammarAccess.getSizeRuleAccess().getGroup_9()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__10 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__10__Impl - rule__SizeRule__Group__11 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__10__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getMaxAssignment_10()); } - (rule__SizeRule__MaxAssignment_10) - { after(grammarAccess.getSizeRuleAccess().getMaxAssignment_10()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__11 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__11__Impl - rule__SizeRule__Group__12 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__11__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getContextKeyword_11()); } - 'context' - { after(grammarAccess.getSizeRuleAccess().getContextKeyword_11()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__12 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__12__Impl - rule__SizeRule__Group__13 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__12__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getLeftCurlyBracketKeyword_12()); } - '{' - { after(grammarAccess.getSizeRuleAccess().getLeftCurlyBracketKeyword_12()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__13 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__13__Impl - rule__SizeRule__Group__14 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__13__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - ( - { before(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); } - (rule__SizeRule__ContextsAssignment_13) - { after(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); } - ) - ( - { before(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); } - (rule__SizeRule__ContextsAssignment_13)* - { after(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); } - ) -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__14 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group__14__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group__14__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getRightCurlyBracketKeyword_14()); } - '}' - { after(grammarAccess.getSizeRuleAccess().getRightCurlyBracketKeyword_14()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__SizeRule__Group_6__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group_6__0__Impl - rule__SizeRule__Group_6__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_6__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getDescriptionKeyword_6_0()); } - 'description' - { after(grammarAccess.getSizeRuleAccess().getDescriptionKeyword_6_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_6__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group_6__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_6__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getDescriptionAssignment_6_1()); } - (rule__SizeRule__DescriptionAssignment_6_1) - { after(grammarAccess.getSizeRuleAccess().getDescriptionAssignment_6_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__SizeRule__Group_7__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group_7__0__Impl - rule__SizeRule__Group_7__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_7__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getMessageKeyword_7_0()); } - 'message' - { after(grammarAccess.getSizeRuleAccess().getMessageKeyword_7_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_7__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group_7__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_7__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getMessageAssignment_7_1()); } - (rule__SizeRule__MessageAssignment_7_1) - { after(grammarAccess.getSizeRuleAccess().getMessageAssignment_7_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__SizeRule__Group_9__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group_9__0__Impl - rule__SizeRule__Group_9__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_9__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getMinAssignment_9_0()); } - (rule__SizeRule__MinAssignment_9_0) - { after(grammarAccess.getSizeRuleAccess().getMinAssignment_9_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_9__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__Group_9__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__Group_9__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSizeRuleAccess().getFullStopFullStopKeyword_9_1()); } - '..' - { after(grammarAccess.getSizeRuleAccess().getFullStopFullStopKeyword_9_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__RangeRule__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__0__Impl - rule__RangeRule__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); } - (rule__RangeRule__UnorderedGroup_0) - { after(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__1__Impl - rule__RangeRule__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getRangeKeyword_1()); } - 'range' - { after(grammarAccess.getRangeRuleAccess().getRangeKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__2__Impl - rule__RangeRule__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getSeverityAssignment_2()); } - (rule__RangeRule__SeverityAssignment_2) - { after(grammarAccess.getRangeRuleAccess().getSeverityAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__3__Impl - rule__RangeRule__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getNameAssignment_3()); } - (rule__RangeRule__NameAssignment_3) - { after(grammarAccess.getRangeRuleAccess().getNameAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__4__Impl - rule__RangeRule__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getLabelKeyword_4()); } - 'label' - { after(grammarAccess.getRangeRuleAccess().getLabelKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__5__Impl - rule__RangeRule__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getLabelAssignment_5()); } - (rule__RangeRule__LabelAssignment_5) - { after(grammarAccess.getRangeRuleAccess().getLabelAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__6__Impl - rule__RangeRule__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getGroup_6()); } - (rule__RangeRule__Group_6__0)? - { after(grammarAccess.getRangeRuleAccess().getGroup_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__7__Impl - rule__RangeRule__Group__8 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getGroup_7()); } - (rule__RangeRule__Group_7__0)? - { after(grammarAccess.getRangeRuleAccess().getGroup_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__8 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__8__Impl - rule__RangeRule__Group__9 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__8__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getRangeKeyword_8()); } - 'range' - { after(grammarAccess.getRangeRuleAccess().getRangeKeyword_8()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__9 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__9__Impl - rule__RangeRule__Group__10 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__9__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getGroup_9()); } - (rule__RangeRule__Group_9__0)? - { after(grammarAccess.getRangeRuleAccess().getGroup_9()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__10 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__10__Impl - rule__RangeRule__Group__11 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__10__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getMaxAssignment_10()); } - (rule__RangeRule__MaxAssignment_10) - { after(grammarAccess.getRangeRuleAccess().getMaxAssignment_10()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__11 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__11__Impl - rule__RangeRule__Group__12 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__11__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getContextKeyword_11()); } - 'context' - { after(grammarAccess.getRangeRuleAccess().getContextKeyword_11()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__12 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__12__Impl - rule__RangeRule__Group__13 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__12__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getLeftCurlyBracketKeyword_12()); } - '{' - { after(grammarAccess.getRangeRuleAccess().getLeftCurlyBracketKeyword_12()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__13 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__13__Impl - rule__RangeRule__Group__14 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__13__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - ( - { before(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); } - (rule__RangeRule__ContextsAssignment_13) - { after(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); } - ) - ( - { before(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); } - (rule__RangeRule__ContextsAssignment_13)* - { after(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); } - ) -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__14 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group__14__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group__14__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getRightCurlyBracketKeyword_14()); } - '}' - { after(grammarAccess.getRangeRuleAccess().getRightCurlyBracketKeyword_14()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__RangeRule__Group_6__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group_6__0__Impl - rule__RangeRule__Group_6__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_6__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getDescriptionKeyword_6_0()); } - 'description' - { after(grammarAccess.getRangeRuleAccess().getDescriptionKeyword_6_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_6__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group_6__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_6__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getDescriptionAssignment_6_1()); } - (rule__RangeRule__DescriptionAssignment_6_1) - { after(grammarAccess.getRangeRuleAccess().getDescriptionAssignment_6_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__RangeRule__Group_7__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group_7__0__Impl - rule__RangeRule__Group_7__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_7__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getMessageKeyword_7_0()); } - 'message' - { after(grammarAccess.getRangeRuleAccess().getMessageKeyword_7_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_7__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group_7__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_7__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getMessageAssignment_7_1()); } - (rule__RangeRule__MessageAssignment_7_1) - { after(grammarAccess.getRangeRuleAccess().getMessageAssignment_7_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__RangeRule__Group_9__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group_9__0__Impl - rule__RangeRule__Group_9__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_9__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getMinAssignment_9_0()); } - (rule__RangeRule__MinAssignment_9_0) - { after(grammarAccess.getRangeRuleAccess().getMinAssignment_9_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_9__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__Group_9__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__Group_9__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getRangeRuleAccess().getFullStopFullStopKeyword_9_1()); } - '..' - { after(grammarAccess.getRangeRuleAccess().getFullStopFullStopKeyword_9_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__UniqueRule__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__0__Impl - rule__UniqueRule__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); } - (rule__UniqueRule__UnorderedGroup_0) - { after(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__1__Impl - rule__UniqueRule__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getUniqueKeyword_1()); } - 'unique' - { after(grammarAccess.getUniqueRuleAccess().getUniqueKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__2__Impl - rule__UniqueRule__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getSeverityAssignment_2()); } - (rule__UniqueRule__SeverityAssignment_2) - { after(grammarAccess.getUniqueRuleAccess().getSeverityAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__3__Impl - rule__UniqueRule__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getNameAssignment_3()); } - (rule__UniqueRule__NameAssignment_3) - { after(grammarAccess.getUniqueRuleAccess().getNameAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__4__Impl - rule__UniqueRule__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getLabelKeyword_4()); } - 'label' - { after(grammarAccess.getUniqueRuleAccess().getLabelKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__5__Impl - rule__UniqueRule__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getLabelAssignment_5()); } - (rule__UniqueRule__LabelAssignment_5) - { after(grammarAccess.getUniqueRuleAccess().getLabelAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__6__Impl - rule__UniqueRule__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getGroup_6()); } - (rule__UniqueRule__Group_6__0)? - { after(grammarAccess.getUniqueRuleAccess().getGroup_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__7__Impl - rule__UniqueRule__Group__8 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getGroup_7()); } - (rule__UniqueRule__Group_7__0)? - { after(grammarAccess.getUniqueRuleAccess().getGroup_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__8 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__8__Impl - rule__UniqueRule__Group__9 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__8__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getContextKeyword_8()); } - 'context' - { after(grammarAccess.getUniqueRuleAccess().getContextKeyword_8()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__9 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__9__Impl - rule__UniqueRule__Group__10 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__9__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getLeftCurlyBracketKeyword_9()); } - '{' - { after(grammarAccess.getUniqueRuleAccess().getLeftCurlyBracketKeyword_9()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__10 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__10__Impl - rule__UniqueRule__Group__11 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__10__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - ( - { before(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); } - (rule__UniqueRule__ContextsAssignment_10) - { after(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); } - ) - ( - { before(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); } - (rule__UniqueRule__ContextsAssignment_10)* - { after(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); } - ) -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__11 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group__11__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group__11__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getRightCurlyBracketKeyword_11()); } - '}' - { after(grammarAccess.getUniqueRuleAccess().getRightCurlyBracketKeyword_11()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__UniqueRule__Group_6__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group_6__0__Impl - rule__UniqueRule__Group_6__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group_6__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getDescriptionKeyword_6_0()); } - 'description' - { after(grammarAccess.getUniqueRuleAccess().getDescriptionKeyword_6_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group_6__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group_6__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group_6__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getDescriptionAssignment_6_1()); } - (rule__UniqueRule__DescriptionAssignment_6_1) - { after(grammarAccess.getUniqueRuleAccess().getDescriptionAssignment_6_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__UniqueRule__Group_7__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group_7__0__Impl - rule__UniqueRule__Group_7__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group_7__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getMessageKeyword_7_0()); } - 'message' - { after(grammarAccess.getUniqueRuleAccess().getMessageKeyword_7_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group_7__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__Group_7__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__Group_7__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getUniqueRuleAccess().getMessageAssignment_7_1()); } - (rule__UniqueRule__MessageAssignment_7_1) - { after(grammarAccess.getUniqueRuleAccess().getMessageAssignment_7_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__SimpleContext__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SimpleContext__Group__0__Impl - rule__SimpleContext__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSimpleContextAccess().getContextTypeAssignment_0()); } - (rule__SimpleContext__ContextTypeAssignment_0) - { after(grammarAccess.getSimpleContextAccess().getContextTypeAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SimpleContext__Group__1__Impl - rule__SimpleContext__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSimpleContextAccess().getGroup_1()); } - (rule__SimpleContext__Group_1__0)? - { after(grammarAccess.getSimpleContextAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__SimpleContext__Group__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSimpleContextAccess().getSemicolonKeyword_2()); } - ';' - { after(grammarAccess.getSimpleContextAccess().getSemicolonKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__SimpleContext__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SimpleContext__Group_1__0__Impl - rule__SimpleContext__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSimpleContextAccess().getNumberSignKeyword_1_0()); } - '#' - { after(grammarAccess.getSimpleContextAccess().getNumberSignKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SimpleContext__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getSimpleContextAccess().getContextFeatureAssignment_1_1()); } - (rule__SimpleContext__ContextFeatureAssignment_1_1) - { after(grammarAccess.getSimpleContextAccess().getContextFeatureAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__DuplicateContext__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__0__Impl - rule__DuplicateContext__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getContextTypeAssignment_0()); } - (rule__DuplicateContext__ContextTypeAssignment_0) - { after(grammarAccess.getDuplicateContextAccess().getContextTypeAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__1__Impl - rule__DuplicateContext__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getGroup_1()); } - (rule__DuplicateContext__Group_1__0)? - { after(grammarAccess.getDuplicateContextAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__2__Impl - rule__DuplicateContext__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getMarkerKeyword_2()); } - 'marker' - { after(grammarAccess.getDuplicateContextAccess().getMarkerKeyword_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__3__Impl - rule__DuplicateContext__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getMarkerTypeAssignment_3()); } - (rule__DuplicateContext__MarkerTypeAssignment_3) - { after(grammarAccess.getDuplicateContextAccess().getMarkerTypeAssignment_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__4__Impl - rule__DuplicateContext__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_4()); } - '#' - { after(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__5__Impl - rule__DuplicateContext__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getMarkerFeatureAssignment_5()); } - (rule__DuplicateContext__MarkerFeatureAssignment_5)? - { after(grammarAccess.getDuplicateContextAccess().getMarkerFeatureAssignment_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group__6__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getSemicolonKeyword_6()); } - ';' - { after(grammarAccess.getDuplicateContextAccess().getSemicolonKeyword_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__DuplicateContext__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group_1__0__Impl - rule__DuplicateContext__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_1_0()); } - '#' - { after(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__DuplicateContext__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getDuplicateContextAccess().getContextFeatureAssignment_1_1()); } - (rule__DuplicateContext__ContextFeatureAssignment_1_1) - { after(grammarAccess.getDuplicateContextAccess().getContextFeatureAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeContext__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group__0__Impl - rule__NativeContext__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getContextTypeAssignment_0()); } - (rule__NativeContext__ContextTypeAssignment_0) - { after(grammarAccess.getNativeContextAccess().getContextTypeAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group__1__Impl - rule__NativeContext__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getGroup_1()); } - (rule__NativeContext__Group_1__0)? - { after(grammarAccess.getNativeContextAccess().getGroup_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group__2__Impl - rule__NativeContext__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getGroup_2()); } - (rule__NativeContext__Group_2__0)? - { after(grammarAccess.getNativeContextAccess().getGroup_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group__3__Impl - rule__NativeContext__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getGroup_3()); } - (rule__NativeContext__Group_3__0)? - { after(grammarAccess.getNativeContextAccess().getGroup_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group__4__Impl - rule__NativeContext__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getGroup_4()); } - (rule__NativeContext__Group_4__0)? - { after(grammarAccess.getNativeContextAccess().getGroup_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group__5__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getSemicolonKeyword_5()); } - ';' - { after(grammarAccess.getNativeContextAccess().getSemicolonKeyword_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeContext__Group_1__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_1__0__Impl - rule__NativeContext__Group_1__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_1__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getNumberSignKeyword_1_0()); } - '#' - { after(grammarAccess.getNativeContextAccess().getNumberSignKeyword_1_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_1__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_1__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_1__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getContextFeatureAssignment_1_1()); } - (rule__NativeContext__ContextFeatureAssignment_1_1) - { after(grammarAccess.getNativeContextAccess().getContextFeatureAssignment_1_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeContext__Group_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_2__0__Impl - rule__NativeContext__Group_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getNamedAssignment_2_0()); } - (rule__NativeContext__NamedAssignment_2_0) - { after(grammarAccess.getNativeContextAccess().getNamedAssignment_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getGivenNameAssignment_2_1()); } - (rule__NativeContext__GivenNameAssignment_2_1) - { after(grammarAccess.getNativeContextAccess().getGivenNameAssignment_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeContext__Group_3__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_3__0__Impl - rule__NativeContext__Group_3__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getMarkerKeyword_3_0()); } - 'marker' - { after(grammarAccess.getNativeContextAccess().getMarkerKeyword_3_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_3__1__Impl - rule__NativeContext__Group_3__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getMarkerTypeAssignment_3_1()); } - (rule__NativeContext__MarkerTypeAssignment_3_1) - { after(grammarAccess.getNativeContextAccess().getMarkerTypeAssignment_3_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_3__2__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getGroup_3_2()); } - (rule__NativeContext__Group_3_2__0) - { after(grammarAccess.getNativeContextAccess().getGroup_3_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeContext__Group_3_2__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_3_2__0__Impl - rule__NativeContext__Group_3_2__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3_2__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getNumberSignKeyword_3_2_0()); } - '#' - { after(grammarAccess.getNativeContextAccess().getNumberSignKeyword_3_2_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3_2__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_3_2__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_3_2__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getMarkerFeatureAssignment_3_2_1()); } - (rule__NativeContext__MarkerFeatureAssignment_3_2_1) - { after(grammarAccess.getNativeContextAccess().getMarkerFeatureAssignment_3_2_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeContext__Group_4__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_4__0__Impl - rule__NativeContext__Group_4__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getQuickfixesKeyword_4_0()); } - 'quickfixes' - { after(grammarAccess.getNativeContextAccess().getQuickfixesKeyword_4_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_4__1__Impl - rule__NativeContext__Group_4__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getLeftCurlyBracketKeyword_4_1()); } - '{' - { after(grammarAccess.getNativeContextAccess().getLeftCurlyBracketKeyword_4_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_4__2__Impl - rule__NativeContext__Group_4__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - ( - { before(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); } - (rule__NativeContext__QuickFixesAssignment_4_2) - { after(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); } - ) - ( - { before(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); } - (rule__NativeContext__QuickFixesAssignment_4_2)* - { after(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); } - ) -) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeContext__Group_4__3__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__Group_4__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getNativeContextAccess().getRightCurlyBracketKeyword_4_3()); } - '}' - { after(grammarAccess.getNativeContextAccess().getRightCurlyBracketKeyword_4_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QuickFix__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__0__Impl - rule__QuickFix__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getQuickFixKindAssignment_0()); } - (rule__QuickFix__QuickFixKindAssignment_0)? - { after(grammarAccess.getQuickFixAccess().getQuickFixKindAssignment_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__1__Impl - rule__QuickFix__Group__2 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getFixKeyword_1()); } - 'fix' - { after(grammarAccess.getQuickFixAccess().getFixKeyword_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__2 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__2__Impl - rule__QuickFix__Group__3 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__2__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getNameAssignment_2()); } - (rule__QuickFix__NameAssignment_2) - { after(grammarAccess.getQuickFixAccess().getNameAssignment_2()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__3 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__3__Impl - rule__QuickFix__Group__4 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__3__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getLabelKeyword_3()); } - 'label' - { after(grammarAccess.getQuickFixAccess().getLabelKeyword_3()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__4 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__4__Impl - rule__QuickFix__Group__5 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__4__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getLabelAssignment_4()); } - (rule__QuickFix__LabelAssignment_4) - { after(grammarAccess.getQuickFixAccess().getLabelAssignment_4()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__5 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__5__Impl - rule__QuickFix__Group__6 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__5__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getMessageKeyword_5()); } - 'message' - { after(grammarAccess.getQuickFixAccess().getMessageKeyword_5()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__6 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__6__Impl - rule__QuickFix__Group__7 -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__6__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getMessageAssignment_6()); } - (rule__QuickFix__MessageAssignment_6) - { after(grammarAccess.getQuickFixAccess().getMessageAssignment_6()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__7 - @init { - int stackSize = keepStackSize(); - } -: - rule__QuickFix__Group__7__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__Group__7__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQuickFixAccess().getSemicolonKeyword_7()); } - ';' - { after(grammarAccess.getQuickFixAccess().getSemicolonKeyword_7()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedID__Group__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedID__Group__0__Impl - rule__QualifiedID__Group__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedID__Group__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedIDAccess().getGroup_0()); } - (rule__QualifiedID__Group_0__0)* - { after(grammarAccess.getQualifiedIDAccess().getGroup_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedID__Group__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedID__Group__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedID__Group__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_1()); } - RULE_ID - { after(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__QualifiedID__Group_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedID__Group_0__0__Impl - rule__QualifiedID__Group_0__1 -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedID__Group_0__0__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_0_0()); } - RULE_ID - { after(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_0_0()); } -) -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedID__Group_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__QualifiedID__Group_0__1__Impl -; -finally { - restoreStackSize(stackSize); -} - -rule__QualifiedID__Group_0__1__Impl - @init { - int stackSize = keepStackSize(); - } -: -( - { before(grammarAccess.getQualifiedIDAccess().getColonColonKeyword_0_1()); } - '::' - { after(grammarAccess.getQualifiedIDAccess().getColonColonKeyword_0_1()); } -) -; -finally { - restoreStackSize(stackSize); -} - - -rule__NativeRule__UnorderedGroup_0 - @init { - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - } -: - rule__NativeRule__UnorderedGroup_0__0 - ? -; -finally { - getUnorderedGroupHelper().leave(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__NativeRule__UnorderedGroup_0__Impl - @init { - int stackSize = keepStackSize(); - boolean selected = false; - } -: - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0); - } - { - selected = true; - } - ( - { before(grammarAccess.getNativeRuleAccess().getOptionalAssignment_0_0()); } - (rule__NativeRule__OptionalAssignment_0_0) - { after(grammarAccess.getNativeRuleAccess().getOptionalAssignment_0_0()); } - ) - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1); - } - { - selected = true; - } - ( - { before(grammarAccess.getNativeRuleAccess().getCheckKindAssignment_0_1()); } - (rule__NativeRule__CheckKindAssignment_0_1) - { after(grammarAccess.getNativeRuleAccess().getCheckKindAssignment_0_1()); } - ) - ) - ) - ) -; -finally { - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__NativeRule__UnorderedGroup_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__UnorderedGroup_0__Impl - rule__NativeRule__UnorderedGroup_0__1? -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__UnorderedGroup_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__NativeRule__UnorderedGroup_0__Impl -; -finally { - restoreStackSize(stackSize); -} - - -rule__SizeRule__UnorderedGroup_0 - @init { - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - } -: - rule__SizeRule__UnorderedGroup_0__0 - ? -; -finally { - getUnorderedGroupHelper().leave(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__SizeRule__UnorderedGroup_0__Impl - @init { - int stackSize = keepStackSize(); - boolean selected = false; - } -: - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0); - } - { - selected = true; - } - ( - { before(grammarAccess.getSizeRuleAccess().getOptionalAssignment_0_0()); } - (rule__SizeRule__OptionalAssignment_0_0) - { after(grammarAccess.getSizeRuleAccess().getOptionalAssignment_0_0()); } - ) - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1); - } - { - selected = true; - } - ( - { before(grammarAccess.getSizeRuleAccess().getCheckKindAssignment_0_1()); } - (rule__SizeRule__CheckKindAssignment_0_1) - { after(grammarAccess.getSizeRuleAccess().getCheckKindAssignment_0_1()); } - ) - ) - ) - ) -; -finally { - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__SizeRule__UnorderedGroup_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__UnorderedGroup_0__Impl - rule__SizeRule__UnorderedGroup_0__1? -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__UnorderedGroup_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__SizeRule__UnorderedGroup_0__Impl -; -finally { - restoreStackSize(stackSize); -} - - -rule__RangeRule__UnorderedGroup_0 - @init { - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - } -: - rule__RangeRule__UnorderedGroup_0__0 - ? -; -finally { - getUnorderedGroupHelper().leave(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__RangeRule__UnorderedGroup_0__Impl - @init { - int stackSize = keepStackSize(); - boolean selected = false; - } -: - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0); - } - { - selected = true; - } - ( - { before(grammarAccess.getRangeRuleAccess().getOptionalAssignment_0_0()); } - (rule__RangeRule__OptionalAssignment_0_0) - { after(grammarAccess.getRangeRuleAccess().getOptionalAssignment_0_0()); } - ) - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1); - } - { - selected = true; - } - ( - { before(grammarAccess.getRangeRuleAccess().getCheckKindAssignment_0_1()); } - (rule__RangeRule__CheckKindAssignment_0_1) - { after(grammarAccess.getRangeRuleAccess().getCheckKindAssignment_0_1()); } - ) - ) - ) - ) -; -finally { - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__RangeRule__UnorderedGroup_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__UnorderedGroup_0__Impl - rule__RangeRule__UnorderedGroup_0__1? -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__UnorderedGroup_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__RangeRule__UnorderedGroup_0__Impl -; -finally { - restoreStackSize(stackSize); -} - - -rule__UniqueRule__UnorderedGroup_0 - @init { - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - } -: - rule__UniqueRule__UnorderedGroup_0__0 - ? -; -finally { - getUnorderedGroupHelper().leave(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__UniqueRule__UnorderedGroup_0__Impl - @init { - int stackSize = keepStackSize(); - boolean selected = false; - } -: - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0); - } - { - selected = true; - } - ( - { before(grammarAccess.getUniqueRuleAccess().getOptionalAssignment_0_0()); } - (rule__UniqueRule__OptionalAssignment_0_0) - { after(grammarAccess.getUniqueRuleAccess().getOptionalAssignment_0_0()); } - ) - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1); - } - { - selected = true; - } - ( - { before(grammarAccess.getUniqueRuleAccess().getCheckKindAssignment_0_1()); } - (rule__UniqueRule__CheckKindAssignment_0_1) - { after(grammarAccess.getUniqueRuleAccess().getCheckKindAssignment_0_1()); } - ) - ) - ) - ) -; -finally { - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); -} - -rule__UniqueRule__UnorderedGroup_0__0 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__UnorderedGroup_0__Impl - rule__UniqueRule__UnorderedGroup_0__1? -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__UnorderedGroup_0__1 - @init { - int stackSize = keepStackSize(); - } -: - rule__UniqueRule__UnorderedGroup_0__Impl -; -finally { - restoreStackSize(stackSize); -} - - -rule__ValidModel__ImportsAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getValidModelAccess().getImportsImportParserRuleCall_0_0()); } - ruleImport - { after(grammarAccess.getValidModelAccess().getImportsImportParserRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__ValidModel__CategoriesAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getValidModelAccess().getCategoriesCategoryParserRuleCall_1_0()); } - ruleCategory - { after(grammarAccess.getValidModelAccess().getCategoriesCategoryParserRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Import__PackageAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getImportAccess().getPackageEPackageCrossReference_1_0()); } - ( - { before(grammarAccess.getImportAccess().getPackageEPackageSTRINGTerminalRuleCall_1_0_1()); } - RULE_STRING - { after(grammarAccess.getImportAccess().getPackageEPackageSTRINGTerminalRuleCall_1_0_1()); } - ) - { after(grammarAccess.getImportAccess().getPackageEPackageCrossReference_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__NameAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCategoryAccess().getNameIDTerminalRuleCall_1_0()); } - RULE_ID - { after(grammarAccess.getCategoryAccess().getNameIDTerminalRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__LabelAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCategoryAccess().getLabelSTRINGTerminalRuleCall_3_0()); } - RULE_STRING - { after(grammarAccess.getCategoryAccess().getLabelSTRINGTerminalRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__DescriptionAssignment_4_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCategoryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); } - RULE_STRING - { after(grammarAccess.getCategoryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__Category__RulesAssignment_6 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getCategoryAccess().getRulesRuleParserRuleCall_6_0()); } - ruleRule - { after(grammarAccess.getCategoryAccess().getRulesRuleParserRuleCall_6_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__OptionalAssignment_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ( - { before(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - 'optional' - { after(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) - { after(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__CheckKindAssignment_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ruleCheckKind - { after(grammarAccess.getNativeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__SeverityAssignment_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getSeveritySeverityKindEnumRuleCall_1_0()); } - ruleSeverityKind - { after(grammarAccess.getNativeRuleAccess().getSeveritySeverityKindEnumRuleCall_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__NameAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getNameIDTerminalRuleCall_2_0()); } - RULE_ID - { after(grammarAccess.getNativeRuleAccess().getNameIDTerminalRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__LabelAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getLabelSTRINGTerminalRuleCall_4_0()); } - RULE_STRING - { after(grammarAccess.getNativeRuleAccess().getLabelSTRINGTerminalRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__DescriptionAssignment_5_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getDescriptionSTRINGTerminalRuleCall_5_1_0()); } - RULE_STRING - { after(grammarAccess.getNativeRuleAccess().getDescriptionSTRINGTerminalRuleCall_5_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__MessageAssignment_7 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getMessageSTRINGTerminalRuleCall_7_0()); } - RULE_STRING - { after(grammarAccess.getNativeRuleAccess().getMessageSTRINGTerminalRuleCall_7_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeRule__ContextsAssignment_10 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeRuleAccess().getContextsNativeContextParserRuleCall_10_0()); } - ruleNativeContext - { after(grammarAccess.getNativeRuleAccess().getContextsNativeContextParserRuleCall_10_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__OptionalAssignment_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ( - { before(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - 'optional' - { after(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) - { after(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__CheckKindAssignment_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ruleCheckKind - { after(grammarAccess.getSizeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__SeverityAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); } - ruleSeverityKind - { after(grammarAccess.getSizeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__NameAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getNameIDTerminalRuleCall_3_0()); } - RULE_ID - { after(grammarAccess.getSizeRuleAccess().getNameIDTerminalRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__LabelAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); } - RULE_STRING - { after(grammarAccess.getSizeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__DescriptionAssignment_6_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); } - RULE_STRING - { after(grammarAccess.getSizeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__MessageAssignment_7_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); } - RULE_STRING - { after(grammarAccess.getSizeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__MinAssignment_9_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); } - RULE_INT - { after(grammarAccess.getSizeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__MaxAssignment_10 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getMaxINTTerminalRuleCall_10_0()); } - RULE_INT - { after(grammarAccess.getSizeRuleAccess().getMaxINTTerminalRuleCall_10_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SizeRule__ContextsAssignment_13 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSizeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); } - ruleSimpleContext - { after(grammarAccess.getSizeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__OptionalAssignment_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ( - { before(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - 'optional' - { after(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) - { after(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__CheckKindAssignment_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ruleCheckKind - { after(grammarAccess.getRangeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__SeverityAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); } - ruleSeverityKind - { after(grammarAccess.getRangeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__NameAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getNameIDTerminalRuleCall_3_0()); } - RULE_ID - { after(grammarAccess.getRangeRuleAccess().getNameIDTerminalRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__LabelAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); } - RULE_STRING - { after(grammarAccess.getRangeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__DescriptionAssignment_6_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); } - RULE_STRING - { after(grammarAccess.getRangeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__MessageAssignment_7_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); } - RULE_STRING - { after(grammarAccess.getRangeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__MinAssignment_9_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); } - RULE_INT - { after(grammarAccess.getRangeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__MaxAssignment_10 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getMaxINTTerminalRuleCall_10_0()); } - RULE_INT - { after(grammarAccess.getRangeRuleAccess().getMaxINTTerminalRuleCall_10_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__RangeRule__ContextsAssignment_13 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getRangeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); } - ruleSimpleContext - { after(grammarAccess.getRangeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__OptionalAssignment_0_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ( - { before(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - 'optional' - { after(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) - { after(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__CheckKindAssignment_0_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ruleCheckKind - { after(grammarAccess.getUniqueRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__SeverityAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); } - ruleSeverityKind - { after(grammarAccess.getUniqueRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__NameAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getNameIDTerminalRuleCall_3_0()); } - RULE_ID - { after(grammarAccess.getUniqueRuleAccess().getNameIDTerminalRuleCall_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__LabelAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); } - RULE_STRING - { after(grammarAccess.getUniqueRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__DescriptionAssignment_6_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); } - RULE_STRING - { after(grammarAccess.getUniqueRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__MessageAssignment_7_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); } - RULE_STRING - { after(grammarAccess.getUniqueRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__UniqueRule__ContextsAssignment_10 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getUniqueRuleAccess().getContextsDuplicateContextParserRuleCall_10_0()); } - ruleDuplicateContext - { after(grammarAccess.getUniqueRuleAccess().getContextsDuplicateContextParserRuleCall_10_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__ContextTypeAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSimpleContextAccess().getContextTypeEClassCrossReference_0_0()); } - ( - { before(grammarAccess.getSimpleContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); } - ruleQualifiedID - { after(grammarAccess.getSimpleContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); } - ) - { after(grammarAccess.getSimpleContextAccess().getContextTypeEClassCrossReference_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__SimpleContext__ContextFeatureAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); } - ( - { before(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); } - RULE_ID - { after(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); } - ) - { after(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__ContextTypeAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getDuplicateContextAccess().getContextTypeEClassCrossReference_0_0()); } - ( - { before(grammarAccess.getDuplicateContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); } - ruleQualifiedID - { after(grammarAccess.getDuplicateContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); } - ) - { after(grammarAccess.getDuplicateContextAccess().getContextTypeEClassCrossReference_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__ContextFeatureAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); } - ( - { before(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); } - RULE_ID - { after(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); } - ) - { after(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__MarkerTypeAssignment_3 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassCrossReference_3_0()); } - ( - { before(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1()); } - ruleQualifiedID - { after(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1()); } - ) - { after(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassCrossReference_3_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__DuplicateContext__MarkerFeatureAssignment_5 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_5_0()); } - ( - { before(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1()); } - RULE_ID - { after(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1()); } - ) - { after(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_5_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__ContextTypeAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getContextTypeEClassCrossReference_0_0()); } - ( - { before(grammarAccess.getNativeContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); } - ruleQualifiedID - { after(grammarAccess.getNativeContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); } - ) - { after(grammarAccess.getNativeContextAccess().getContextTypeEClassCrossReference_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__ContextFeatureAssignment_1_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); } - ( - { before(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); } - RULE_ID - { after(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); } - ) - { after(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__NamedAssignment_2_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); } - ( - { before(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); } - 'as' - { after(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); } - ) - { after(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__GivenNameAssignment_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getGivenNameIDTerminalRuleCall_2_1_0()); } - RULE_ID - { after(grammarAccess.getNativeContextAccess().getGivenNameIDTerminalRuleCall_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__MarkerTypeAssignment_3_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getMarkerTypeEClassCrossReference_3_1_0()); } - ( - { before(grammarAccess.getNativeContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1()); } - ruleQualifiedID - { after(grammarAccess.getNativeContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1()); } - ) - { after(grammarAccess.getNativeContextAccess().getMarkerTypeEClassCrossReference_3_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__MarkerFeatureAssignment_3_2_1 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0()); } - ( - { before(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1()); } - RULE_ID - { after(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1()); } - ) - { after(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__NativeContext__QuickFixesAssignment_4_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getNativeContextAccess().getQuickFixesQuickFixParserRuleCall_4_2_0()); } - ruleQuickFix - { after(grammarAccess.getNativeContextAccess().getQuickFixesQuickFixParserRuleCall_4_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__QuickFixKindAssignment_0 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getQuickFixAccess().getQuickFixKindQuickFixKindEnumRuleCall_0_0()); } - ruleQuickFixKind - { after(grammarAccess.getQuickFixAccess().getQuickFixKindQuickFixKindEnumRuleCall_0_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__NameAssignment_2 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getQuickFixAccess().getNameIDTerminalRuleCall_2_0()); } - RULE_ID - { after(grammarAccess.getQuickFixAccess().getNameIDTerminalRuleCall_2_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__LabelAssignment_4 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getQuickFixAccess().getLabelSTRINGTerminalRuleCall_4_0()); } - RULE_STRING - { after(grammarAccess.getQuickFixAccess().getLabelSTRINGTerminalRuleCall_4_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -rule__QuickFix__MessageAssignment_6 - @init { - int stackSize = keepStackSize(); - } -: - ( - { before(grammarAccess.getQuickFixAccess().getMessageSTRINGTerminalRuleCall_6_0()); } - RULE_STRING - { after(grammarAccess.getQuickFixAccess().getMessageSTRINGTerminalRuleCall_6_0()); } - ) -; -finally { - restoreStackSize(stackSize); -} - -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/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValid.tokens b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValid.tokens deleted file mode 100644 index 9f81093377..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValid.tokens +++ /dev/null @@ -1,61 +0,0 @@ -'#'=31 -'..'=27 -'::'=35 -';'=30 -'as'=37 -'category'=19 -'context'=25 -'description'=23 -'error'=14 -'expensive'=13 -'fast'=11 -'fix'=34 -'import'=18 -'label'=20 -'marker'=32 -'message'=24 -'normal'=12 -'optional'=36 -'quickfixes'=33 -'range'=28 -'semantic'=16 -'size'=26 -'textual'=17 -'unique'=29 -'warning'=15 -'{'=21 -'}'=22 -RULE_ANY_OTHER=10 -RULE_ID=4 -RULE_INT=6 -RULE_ML_COMMENT=7 -RULE_SL_COMMENT=8 -RULE_STRING=5 -RULE_WS=9 -T__11=11 -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 -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 diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValidLexer.java b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValidLexer.java deleted file mode 100644 index 45c0a4970a..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValidLexer.java +++ /dev/null @@ -1,1698 +0,0 @@ -package com.avaloq.tools.ddk.xtext.valid.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 InternalValidLexer extends Lexer { - public static final int RULE_STRING=5; - public static final int RULE_SL_COMMENT=8; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__37=37; - 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__11=11; - public static final int T__33=33; - public static final int T__12=12; - public static final int T__34=34; - public static final int T__13=13; - public static final int T__35=35; - public static final int T__14=14; - public static final int T__36=36; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_ID=4; - public static final int RULE_WS=9; - public static final int RULE_ANY_OTHER=10; - 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 RULE_ML_COMMENT=7; - public static final int T__23=23; - public static final int T__24=24; - public static final int T__25=25; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - public InternalValidLexer() {;} - public InternalValidLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalValidLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalValid.g"; } - - // $ANTLR start "T__11" - public final void mT__11() throws RecognitionException { - try { - int _type = T__11; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalValid.g:11:7: ( 'fast' ) - // InternalValid.g:11:9: 'fast' - { - match("fast"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__11" - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalValid.g:12:7: ( 'normal' ) - // InternalValid.g:12:9: 'normal' - { - match("normal"); - - - } - - 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; - // InternalValid.g:13:7: ( 'expensive' ) - // InternalValid.g:13:9: 'expensive' - { - match("expensive"); - - - } - - 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; - // InternalValid.g:14:7: ( 'error' ) - // InternalValid.g:14:9: 'error' - { - match("error"); - - - } - - 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; - // InternalValid.g:15:7: ( 'warning' ) - // InternalValid.g:15:9: 'warning' - { - match("warning"); - - - } - - 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; - // InternalValid.g:16:7: ( 'semantic' ) - // InternalValid.g:16:9: 'semantic' - { - match("semantic"); - - - } - - 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; - // InternalValid.g:17:7: ( 'textual' ) - // InternalValid.g:17:9: 'textual' - { - match("textual"); - - - } - - 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; - // InternalValid.g:18:7: ( 'import' ) - // InternalValid.g:18:9: 'import' - { - match("import"); - - - } - - 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; - // InternalValid.g:19:7: ( 'category' ) - // InternalValid.g:19:9: 'category' - { - match("category"); - - - } - - 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; - // InternalValid.g:20:7: ( 'label' ) - // InternalValid.g:20:9: 'label' - { - match("label"); - - - } - - 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; - // InternalValid.g:21:7: ( '{' ) - // InternalValid.g:21: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; - // InternalValid.g:22:7: ( '}' ) - // InternalValid.g:22: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; - // InternalValid.g:23:7: ( 'description' ) - // InternalValid.g:23:9: 'description' - { - match("description"); - - - } - - 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; - // InternalValid.g:24:7: ( 'message' ) - // InternalValid.g:24:9: 'message' - { - match("message"); - - - } - - 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; - // InternalValid.g:25:7: ( 'context' ) - // InternalValid.g:25:9: 'context' - { - match("context"); - - - } - - 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; - // InternalValid.g:26:7: ( 'size' ) - // InternalValid.g:26:9: 'size' - { - match("size"); - - - } - - 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; - // InternalValid.g:27:7: ( '..' ) - // InternalValid.g:27: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; - // InternalValid.g:28:7: ( 'range' ) - // InternalValid.g:28:9: 'range' - { - match("range"); - - - } - - 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; - // InternalValid.g:29:7: ( 'unique' ) - // InternalValid.g:29:9: 'unique' - { - match("unique"); - - - } - - 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; - // InternalValid.g:30:7: ( ';' ) - // InternalValid.g:30: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; - // InternalValid.g:31:7: ( '#' ) - // InternalValid.g:31: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; - // InternalValid.g:32:7: ( 'marker' ) - // InternalValid.g:32:9: 'marker' - { - match("marker"); - - - } - - 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; - // InternalValid.g:33:7: ( 'quickfixes' ) - // InternalValid.g:33:9: 'quickfixes' - { - match("quickfixes"); - - - } - - 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; - // InternalValid.g:34:7: ( 'fix' ) - // InternalValid.g:34:9: 'fix' - { - match("fix"); - - - } - - 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; - // InternalValid.g:35:7: ( '::' ) - // InternalValid.g:35: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; - // InternalValid.g:36:7: ( 'optional' ) - // InternalValid.g:36:9: 'optional' - { - match("optional"); - - - } - - 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; - // InternalValid.g:37:7: ( 'as' ) - // InternalValid.g:37:9: 'as' - { - match("as"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__37" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalValid.g:5435:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalValid.g:5435:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - // InternalValid.g:5435:11: ( '^' )? - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0=='^') ) { - alt1=1; - } - switch (alt1) { - case 1 : - // InternalValid.g:5435: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;} - - // InternalValid.g:5435:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalValid.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 loop2; - } - } 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; - // InternalValid.g:5437:10: ( ( '0' .. '9' )+ ) - // InternalValid.g:5437:12: ( '0' .. '9' )+ - { - // InternalValid.g:5437:12: ( '0' .. '9' )+ - int cnt3=0; - loop3: - do { - int alt3=2; - int LA3_0 = input.LA(1); - - if ( ((LA3_0>='0' && LA3_0<='9')) ) { - alt3=1; - } - - - switch (alt3) { - case 1 : - // InternalValid.g:5437:13: '0' .. '9' - { - matchRange('0','9'); - - } - break; - - default : - if ( cnt3 >= 1 ) break loop3; - EarlyExitException eee = - new EarlyExitException(3, input); - throw eee; - } - cnt3++; - } 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; - // InternalValid.g:5439:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) - // InternalValid.g:5439:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - { - // InternalValid.g:5439:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0=='\"') ) { - alt6=1; - } - else if ( (LA6_0=='\'') ) { - alt6=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 6, 0, input); - - throw nvae; - } - switch (alt6) { - case 1 : - // InternalValid.g:5439:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' - { - match('\"'); - // InternalValid.g:5439:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop4: - do { - int alt4=3; - int LA4_0 = input.LA(1); - - if ( (LA4_0=='\\') ) { - alt4=1; - } - else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { - alt4=2; - } - - - switch (alt4) { - case 1 : - // InternalValid.g:5439:21: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalValid.g:5439: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 loop4; - } - } while (true); - - match('\"'); - - } - break; - case 2 : - // InternalValid.g:5439:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' - { - match('\''); - // InternalValid.g:5439:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - 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 : - // InternalValid.g:5439:54: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalValid.g:5439: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 loop5; - } - } 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; - // InternalValid.g:5441:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalValid.g:5441:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalValid.g:5441:24: ( options {greedy=false; } : . )* - loop7: - do { - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='*') ) { - int LA7_1 = input.LA(2); - - if ( (LA7_1=='/') ) { - alt7=2; - } - else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { - alt7=1; - } - - - } - else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { - alt7=1; - } - - - switch (alt7) { - case 1 : - // InternalValid.g:5441:52: . - { - matchAny(); - - } - break; - - default : - break loop7; - } - } 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; - // InternalValid.g:5443:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalValid.g:5443:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // InternalValid.g:5443:24: (~ ( ( '\\n' | '\\r' ) ) )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalValid.g:5443: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 loop8; - } - } while (true); - - // InternalValid.g:5443:40: ( ( '\\r' )? '\\n' )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='\n'||LA10_0=='\r') ) { - alt10=1; - } - switch (alt10) { - case 1 : - // InternalValid.g:5443:41: ( '\\r' )? '\\n' - { - // InternalValid.g:5443:41: ( '\\r' )? - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0=='\r') ) { - alt9=1; - } - switch (alt9) { - case 1 : - // InternalValid.g:5443: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; - // InternalValid.g:5445:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalValid.g:5445:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalValid.g:5445:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt11=0; - loop11: - do { - int alt11=2; - int LA11_0 = input.LA(1); - - if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { - alt11=1; - } - - - switch (alt11) { - case 1 : - // InternalValid.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 ( cnt11 >= 1 ) break loop11; - EarlyExitException eee = - new EarlyExitException(11, input); - throw eee; - } - cnt11++; - } 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; - // InternalValid.g:5447:16: ( . ) - // InternalValid.g:5447:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalValid.g:1:8: ( T__11 | T__12 | 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 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt12=34; - alt12 = dfa12.predict(input); - switch (alt12) { - case 1 : - // InternalValid.g:1:10: T__11 - { - mT__11(); - - } - break; - case 2 : - // InternalValid.g:1:16: T__12 - { - mT__12(); - - } - break; - case 3 : - // InternalValid.g:1:22: T__13 - { - mT__13(); - - } - break; - case 4 : - // InternalValid.g:1:28: T__14 - { - mT__14(); - - } - break; - case 5 : - // InternalValid.g:1:34: T__15 - { - mT__15(); - - } - break; - case 6 : - // InternalValid.g:1:40: T__16 - { - mT__16(); - - } - break; - case 7 : - // InternalValid.g:1:46: T__17 - { - mT__17(); - - } - break; - case 8 : - // InternalValid.g:1:52: T__18 - { - mT__18(); - - } - break; - case 9 : - // InternalValid.g:1:58: T__19 - { - mT__19(); - - } - break; - case 10 : - // InternalValid.g:1:64: T__20 - { - mT__20(); - - } - break; - case 11 : - // InternalValid.g:1:70: T__21 - { - mT__21(); - - } - break; - case 12 : - // InternalValid.g:1:76: T__22 - { - mT__22(); - - } - break; - case 13 : - // InternalValid.g:1:82: T__23 - { - mT__23(); - - } - break; - case 14 : - // InternalValid.g:1:88: T__24 - { - mT__24(); - - } - break; - case 15 : - // InternalValid.g:1:94: T__25 - { - mT__25(); - - } - break; - case 16 : - // InternalValid.g:1:100: T__26 - { - mT__26(); - - } - break; - case 17 : - // InternalValid.g:1:106: T__27 - { - mT__27(); - - } - break; - case 18 : - // InternalValid.g:1:112: T__28 - { - mT__28(); - - } - break; - case 19 : - // InternalValid.g:1:118: T__29 - { - mT__29(); - - } - break; - case 20 : - // InternalValid.g:1:124: T__30 - { - mT__30(); - - } - break; - case 21 : - // InternalValid.g:1:130: T__31 - { - mT__31(); - - } - break; - case 22 : - // InternalValid.g:1:136: T__32 - { - mT__32(); - - } - break; - case 23 : - // InternalValid.g:1:142: T__33 - { - mT__33(); - - } - break; - case 24 : - // InternalValid.g:1:148: T__34 - { - mT__34(); - - } - break; - case 25 : - // InternalValid.g:1:154: T__35 - { - mT__35(); - - } - break; - case 26 : - // InternalValid.g:1:160: T__36 - { - mT__36(); - - } - break; - case 27 : - // InternalValid.g:1:166: T__37 - { - mT__37(); - - } - break; - case 28 : - // InternalValid.g:1:172: RULE_ID - { - mRULE_ID(); - - } - break; - case 29 : - // InternalValid.g:1:180: RULE_INT - { - mRULE_INT(); - - } - break; - case 30 : - // InternalValid.g:1:189: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 31 : - // InternalValid.g:1:201: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 32 : - // InternalValid.g:1:217: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 33 : - // InternalValid.g:1:233: RULE_WS - { - mRULE_WS(); - - } - break; - case 34 : - // InternalValid.g:1:241: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA12 dfa12 = new DFA12(this); - static final String DFA12_eotS = - "\1\uffff\11\41\2\uffff\2\41\1\36\2\41\2\uffff\1\41\1\36\2\41\1\36\2\uffff\3\36\2\uffff\2\41\1\uffff\13\41\2\uffff\3\41\1\uffff\2\41\2\uffff\1\41\1\uffff\1\41\1\124\5\uffff\1\41\1\126\22\41\1\uffff\1\151\1\uffff\5\41\1\157\14\41\1\uffff\2\41\1\176\2\41\1\uffff\4\41\1\u0085\3\41\1\u0089\3\41\1\u008d\1\41\1\uffff\3\41\1\u0092\2\41\1\uffff\2\41\1\u0097\1\uffff\1\u0098\2\41\1\uffff\1\41\1\u009c\1\41\1\u009e\1\uffff\1\41\1\u00a0\1\41\1\u00a2\2\uffff\3\41\1\uffff\1\u00a6\1\uffff\1\u00a7\1\uffff\1\41\1\uffff\1\41\1\u00aa\1\u00ab\2\uffff\2\41\2\uffff\1\41\1\u00af\1\u00b0\2\uffff"; - static final String DFA12_eofS = - "\u00b1\uffff"; - static final String DFA12_minS = - "\1\0\1\141\1\157\1\162\1\141\2\145\1\155\2\141\2\uffff\1\145\1\141\1\56\1\141\1\156\2\uffff\1\165\1\72\1\160\1\163\1\101\2\uffff\2\0\1\52\2\uffff\1\163\1\170\1\uffff\1\162\1\160\2\162\1\155\1\172\1\170\1\160\1\164\1\156\1\142\2\uffff\2\163\1\162\1\uffff\1\156\1\151\2\uffff\1\151\1\uffff\1\164\1\60\5\uffff\1\164\1\60\1\155\1\145\1\157\1\156\1\141\1\145\1\164\1\157\1\145\1\164\1\145\1\143\1\163\1\153\1\147\1\161\1\143\1\151\1\uffff\1\60\1\uffff\1\141\1\156\1\162\1\151\1\156\1\60\1\165\1\162\1\147\1\145\1\154\1\162\1\141\2\145\1\165\1\153\1\157\1\uffff\1\154\1\163\1\60\1\156\1\164\1\uffff\1\141\1\164\1\157\1\170\1\60\1\151\1\147\1\162\1\60\1\145\1\146\1\156\1\60\1\151\1\uffff\1\147\1\151\1\154\1\60\1\162\1\164\1\uffff\1\160\1\145\1\60\1\uffff\1\60\1\151\1\141\1\uffff\1\166\1\60\1\143\1\60\1\uffff\1\171\1\60\1\164\1\60\2\uffff\1\170\1\154\1\145\1\uffff\1\60\1\uffff\1\60\1\uffff\1\151\1\uffff\1\145\2\60\2\uffff\1\157\1\163\2\uffff\1\156\2\60\2\uffff"; - static final String DFA12_maxS = - "\1\uffff\1\151\1\157\1\170\1\141\1\151\1\145\1\155\1\157\1\141\2\uffff\2\145\1\56\1\141\1\156\2\uffff\1\165\1\72\1\160\1\163\1\172\2\uffff\2\uffff\1\57\2\uffff\1\163\1\170\1\uffff\1\162\1\160\2\162\1\155\1\172\1\170\1\160\1\164\1\156\1\142\2\uffff\2\163\1\162\1\uffff\1\156\1\151\2\uffff\1\151\1\uffff\1\164\1\172\5\uffff\1\164\1\172\1\155\1\145\1\157\1\156\1\141\1\145\1\164\1\157\1\145\1\164\1\145\1\143\1\163\1\153\1\147\1\161\1\143\1\151\1\uffff\1\172\1\uffff\1\141\1\156\1\162\1\151\1\156\1\172\1\165\1\162\1\147\1\145\1\154\1\162\1\141\2\145\1\165\1\153\1\157\1\uffff\1\154\1\163\1\172\1\156\1\164\1\uffff\1\141\1\164\1\157\1\170\1\172\1\151\1\147\1\162\1\172\1\145\1\146\1\156\1\172\1\151\1\uffff\1\147\1\151\1\154\1\172\1\162\1\164\1\uffff\1\160\1\145\1\172\1\uffff\1\172\1\151\1\141\1\uffff\1\166\1\172\1\143\1\172\1\uffff\1\171\1\172\1\164\1\172\2\uffff\1\170\1\154\1\145\1\uffff\1\172\1\uffff\1\172\1\uffff\1\151\1\uffff\1\145\2\172\2\uffff\1\157\1\163\2\uffff\1\156\2\172\2\uffff"; - static final String DFA12_acceptS = - "\12\uffff\1\13\1\14\5\uffff\1\24\1\25\5\uffff\1\34\1\35\3\uffff\1\41\1\42\2\uffff\1\34\13\uffff\1\13\1\14\3\uffff\1\21\2\uffff\1\24\1\25\1\uffff\1\31\2\uffff\1\35\1\36\1\37\1\40\1\41\24\uffff\1\33\1\uffff\1\30\22\uffff\1\1\5\uffff\1\20\16\uffff\1\4\6\uffff\1\12\3\uffff\1\22\3\uffff\1\2\4\uffff\1\10\4\uffff\1\26\1\23\3\uffff\1\5\1\uffff\1\7\1\uffff\1\17\1\uffff\1\16\3\uffff\1\6\1\11\2\uffff\1\32\1\3\3\uffff\1\27\1\15"; - static final String DFA12_specialS = - "\1\1\31\uffff\1\0\1\2\u0095\uffff}>"; - static final String[] DFA12_transitionS = { - "\11\36\2\35\2\36\1\35\22\36\1\35\1\36\1\32\1\22\3\36\1\33\6\36\1\16\1\34\12\31\1\24\1\21\5\36\32\30\3\36\1\27\1\30\1\36\1\26\1\30\1\10\1\14\1\3\1\1\2\30\1\7\2\30\1\11\1\15\1\2\1\25\1\30\1\23\1\17\1\5\1\6\1\20\1\30\1\4\3\30\1\12\1\36\1\13\uff82\36", - "\1\37\7\uffff\1\40", - "\1\42", - "\1\44\5\uffff\1\43", - "\1\45", - "\1\46\3\uffff\1\47", - "\1\50", - "\1\51", - "\1\52\15\uffff\1\53", - "\1\54", - "", - "", - "\1\57", - "\1\61\3\uffff\1\60", - "\1\62", - "\1\63", - "\1\64", - "", - "", - "\1\67", - "\1\70", - "\1\71", - "\1\72", - "\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "", - "\0\74", - "\0\74", - "\1\75\4\uffff\1\76", - "", - "", - "\1\100", - "\1\101", - "", - "\1\102", - "\1\103", - "\1\104", - "\1\105", - "\1\106", - "\1\107", - "\1\110", - "\1\111", - "\1\112", - "\1\113", - "\1\114", - "", - "", - "\1\115", - "\1\116", - "\1\117", - "", - "\1\120", - "\1\121", - "", - "", - "\1\122", - "", - "\1\123", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "", - "", - "", - "", - "\1\125", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\127", - "\1\130", - "\1\131", - "\1\132", - "\1\133", - "\1\134", - "\1\135", - "\1\136", - "\1\137", - "\1\140", - "\1\141", - "\1\142", - "\1\143", - "\1\144", - "\1\145", - "\1\146", - "\1\147", - "\1\150", - "", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "\1\152", - "\1\153", - "\1\154", - "\1\155", - "\1\156", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\160", - "\1\161", - "\1\162", - "\1\163", - "\1\164", - "\1\165", - "\1\166", - "\1\167", - "\1\170", - "\1\171", - "\1\172", - "\1\173", - "", - "\1\174", - "\1\175", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\177", - "\1\u0080", - "", - "\1\u0081", - "\1\u0082", - "\1\u0083", - "\1\u0084", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u0086", - "\1\u0087", - "\1\u0088", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u008a", - "\1\u008b", - "\1\u008c", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u008e", - "", - "\1\u008f", - "\1\u0090", - "\1\u0091", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u0093", - "\1\u0094", - "", - "\1\u0095", - "\1\u0096", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u0099", - "\1\u009a", - "", - "\1\u009b", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u009d", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "\1\u009f", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\1\u00a1", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "", - "\1\u00a3", - "\1\u00a4", - "\1\u00a5", - "", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "\1\u00a8", - "", - "\1\u00a9", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "", - "\1\u00ac", - "\1\u00ad", - "", - "", - "\1\u00ae", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "\12\41\7\uffff\32\41\4\uffff\1\41\1\uffff\32\41", - "", - "" - }; - - static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); - static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); - static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); - static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); - static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); - static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); - static final short[][] DFA12_transition; - - static { - int numStates = DFA12_transitionS.length; - DFA12_transition = new short[numStates][]; - for (int i=0; i='\u0000' && LA12_26<='\uFFFF')) ) {s = 60;} - - else s = 30; - - if ( s>=0 ) return s; - break; - case 1 : - int LA12_0 = input.LA(1); - - s = -1; - if ( (LA12_0=='f') ) {s = 1;} - - else if ( (LA12_0=='n') ) {s = 2;} - - else if ( (LA12_0=='e') ) {s = 3;} - - else if ( (LA12_0=='w') ) {s = 4;} - - else if ( (LA12_0=='s') ) {s = 5;} - - else if ( (LA12_0=='t') ) {s = 6;} - - else if ( (LA12_0=='i') ) {s = 7;} - - else if ( (LA12_0=='c') ) {s = 8;} - - else if ( (LA12_0=='l') ) {s = 9;} - - else if ( (LA12_0=='{') ) {s = 10;} - - else if ( (LA12_0=='}') ) {s = 11;} - - else if ( (LA12_0=='d') ) {s = 12;} - - else if ( (LA12_0=='m') ) {s = 13;} - - else if ( (LA12_0=='.') ) {s = 14;} - - else if ( (LA12_0=='r') ) {s = 15;} - - else if ( (LA12_0=='u') ) {s = 16;} - - else if ( (LA12_0==';') ) {s = 17;} - - else if ( (LA12_0=='#') ) {s = 18;} - - else if ( (LA12_0=='q') ) {s = 19;} - - else if ( (LA12_0==':') ) {s = 20;} - - else if ( (LA12_0=='o') ) {s = 21;} - - else if ( (LA12_0=='a') ) {s = 22;} - - else if ( (LA12_0=='^') ) {s = 23;} - - else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||LA12_0=='b'||(LA12_0>='g' && LA12_0<='h')||(LA12_0>='j' && LA12_0<='k')||LA12_0=='p'||LA12_0=='v'||(LA12_0>='x' && LA12_0<='z')) ) {s = 24;} - - else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 25;} - - else if ( (LA12_0=='\"') ) {s = 26;} - - else if ( (LA12_0=='\'') ) {s = 27;} - - else if ( (LA12_0=='/') ) {s = 28;} - - else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 29;} - - else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='$' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='-')||(LA12_0>='<' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||LA12_0=='|'||(LA12_0>='~' && LA12_0<='\uFFFF')) ) {s = 30;} - - if ( s>=0 ) return s; - break; - case 2 : - int LA12_27 = input.LA(1); - - s = -1; - if ( ((LA12_27>='\u0000' && LA12_27<='\uFFFF')) ) {s = 60;} - - else s = 30; - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 12, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValidParser.java b/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValidParser.java deleted file mode 100644 index 3cf5af76e9..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src-gen/com/avaloq/tools/ddk/xtext/valid/ide/contentassist/antlr/internal/InternalValidParser.java +++ /dev/null @@ -1,16382 +0,0 @@ -package com.avaloq.tools.ddk.xtext.valid.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 com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalValidParser extends AbstractInternalContentAssistParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_ID", "RULE_STRING", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'fast'", "'normal'", "'expensive'", "'error'", "'warning'", "'semantic'", "'textual'", "'import'", "'category'", "'label'", "'{'", "'}'", "'description'", "'message'", "'context'", "'size'", "'..'", "'range'", "'unique'", "';'", "'#'", "'marker'", "'quickfixes'", "'fix'", "'::'", "'optional'", "'as'" - }; - public static final int RULE_STRING=5; - public static final int RULE_SL_COMMENT=8; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__37=37; - 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__11=11; - public static final int T__33=33; - public static final int T__12=12; - public static final int T__34=34; - public static final int T__13=13; - public static final int T__35=35; - public static final int T__14=14; - public static final int T__36=36; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_ID=4; - public static final int RULE_WS=9; - public static final int RULE_ANY_OTHER=10; - 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 RULE_ML_COMMENT=7; - public static final int T__23=23; - public static final int T__24=24; - public static final int T__25=25; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - - public InternalValidParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalValidParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalValidParser.tokenNames; } - public String getGrammarFileName() { return "InternalValid.g"; } - - - private ValidGrammarAccess grammarAccess; - - public void setGrammarAccess(ValidGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } - - @Override - protected Grammar getGrammar() { - return grammarAccess.getGrammar(); - } - - @Override - protected String getValueForTokenName(String tokenName) { - return tokenName; - } - - - - // $ANTLR start "entryRuleValidModel" - // InternalValid.g:53:1: entryRuleValidModel : ruleValidModel EOF ; - public final void entryRuleValidModel() throws RecognitionException { - try { - // InternalValid.g:54:1: ( ruleValidModel EOF ) - // InternalValid.g:55:1: ruleValidModel EOF - { - before(grammarAccess.getValidModelRule()); - pushFollow(FOLLOW_1); - ruleValidModel(); - - state._fsp--; - - after(grammarAccess.getValidModelRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleValidModel" - - - // $ANTLR start "ruleValidModel" - // InternalValid.g:62:1: ruleValidModel : ( ( rule__ValidModel__Group__0 ) ) ; - public final void ruleValidModel() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:66:2: ( ( ( rule__ValidModel__Group__0 ) ) ) - // InternalValid.g:67:2: ( ( rule__ValidModel__Group__0 ) ) - { - // InternalValid.g:67:2: ( ( rule__ValidModel__Group__0 ) ) - // InternalValid.g:68:3: ( rule__ValidModel__Group__0 ) - { - before(grammarAccess.getValidModelAccess().getGroup()); - // InternalValid.g:69:3: ( rule__ValidModel__Group__0 ) - // InternalValid.g:69:4: rule__ValidModel__Group__0 - { - pushFollow(FOLLOW_2); - rule__ValidModel__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getValidModelAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleValidModel" - - - // $ANTLR start "entryRuleImport" - // InternalValid.g:78:1: entryRuleImport : ruleImport EOF ; - public final void entryRuleImport() throws RecognitionException { - try { - // InternalValid.g:79:1: ( ruleImport EOF ) - // InternalValid.g:80:1: ruleImport EOF - { - before(grammarAccess.getImportRule()); - pushFollow(FOLLOW_1); - ruleImport(); - - state._fsp--; - - after(grammarAccess.getImportRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleImport" - - - // $ANTLR start "ruleImport" - // InternalValid.g:87:1: ruleImport : ( ( rule__Import__Group__0 ) ) ; - public final void ruleImport() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:91:2: ( ( ( rule__Import__Group__0 ) ) ) - // InternalValid.g:92:2: ( ( rule__Import__Group__0 ) ) - { - // InternalValid.g:92:2: ( ( rule__Import__Group__0 ) ) - // InternalValid.g:93:3: ( rule__Import__Group__0 ) - { - before(grammarAccess.getImportAccess().getGroup()); - // InternalValid.g:94:3: ( rule__Import__Group__0 ) - // InternalValid.g:94:4: rule__Import__Group__0 - { - pushFollow(FOLLOW_2); - rule__Import__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getImportAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleImport" - - - // $ANTLR start "entryRuleCategory" - // InternalValid.g:103:1: entryRuleCategory : ruleCategory EOF ; - public final void entryRuleCategory() throws RecognitionException { - try { - // InternalValid.g:104:1: ( ruleCategory EOF ) - // InternalValid.g:105:1: ruleCategory EOF - { - before(grammarAccess.getCategoryRule()); - pushFollow(FOLLOW_1); - ruleCategory(); - - state._fsp--; - - after(grammarAccess.getCategoryRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleCategory" - - - // $ANTLR start "ruleCategory" - // InternalValid.g:112:1: ruleCategory : ( ( rule__Category__Group__0 ) ) ; - public final void ruleCategory() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:116:2: ( ( ( rule__Category__Group__0 ) ) ) - // InternalValid.g:117:2: ( ( rule__Category__Group__0 ) ) - { - // InternalValid.g:117:2: ( ( rule__Category__Group__0 ) ) - // InternalValid.g:118:3: ( rule__Category__Group__0 ) - { - before(grammarAccess.getCategoryAccess().getGroup()); - // InternalValid.g:119:3: ( rule__Category__Group__0 ) - // InternalValid.g:119:4: rule__Category__Group__0 - { - pushFollow(FOLLOW_2); - rule__Category__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getCategoryAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleCategory" - - - // $ANTLR start "entryRuleRule" - // InternalValid.g:128:1: entryRuleRule : ruleRule EOF ; - public final void entryRuleRule() throws RecognitionException { - try { - // InternalValid.g:129:1: ( ruleRule EOF ) - // InternalValid.g:130:1: ruleRule EOF - { - before(grammarAccess.getRuleRule()); - pushFollow(FOLLOW_1); - ruleRule(); - - state._fsp--; - - after(grammarAccess.getRuleRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleRule" - - - // $ANTLR start "ruleRule" - // InternalValid.g:137:1: ruleRule : ( ( rule__Rule__Alternatives ) ) ; - public final void ruleRule() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:141:2: ( ( ( rule__Rule__Alternatives ) ) ) - // InternalValid.g:142:2: ( ( rule__Rule__Alternatives ) ) - { - // InternalValid.g:142:2: ( ( rule__Rule__Alternatives ) ) - // InternalValid.g:143:3: ( rule__Rule__Alternatives ) - { - before(grammarAccess.getRuleAccess().getAlternatives()); - // InternalValid.g:144:3: ( rule__Rule__Alternatives ) - // InternalValid.g:144:4: rule__Rule__Alternatives - { - pushFollow(FOLLOW_2); - rule__Rule__Alternatives(); - - state._fsp--; - - - } - - after(grammarAccess.getRuleAccess().getAlternatives()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleRule" - - - // $ANTLR start "entryRulePredefinedRule" - // InternalValid.g:153:1: entryRulePredefinedRule : rulePredefinedRule EOF ; - public final void entryRulePredefinedRule() throws RecognitionException { - try { - // InternalValid.g:154:1: ( rulePredefinedRule EOF ) - // InternalValid.g:155:1: rulePredefinedRule EOF - { - before(grammarAccess.getPredefinedRuleRule()); - pushFollow(FOLLOW_1); - rulePredefinedRule(); - - state._fsp--; - - after(grammarAccess.getPredefinedRuleRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRulePredefinedRule" - - - // $ANTLR start "rulePredefinedRule" - // InternalValid.g:162:1: rulePredefinedRule : ( ( rule__PredefinedRule__Alternatives ) ) ; - public final void rulePredefinedRule() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:166:2: ( ( ( rule__PredefinedRule__Alternatives ) ) ) - // InternalValid.g:167:2: ( ( rule__PredefinedRule__Alternatives ) ) - { - // InternalValid.g:167:2: ( ( rule__PredefinedRule__Alternatives ) ) - // InternalValid.g:168:3: ( rule__PredefinedRule__Alternatives ) - { - before(grammarAccess.getPredefinedRuleAccess().getAlternatives()); - // InternalValid.g:169:3: ( rule__PredefinedRule__Alternatives ) - // InternalValid.g:169:4: rule__PredefinedRule__Alternatives - { - pushFollow(FOLLOW_2); - rule__PredefinedRule__Alternatives(); - - state._fsp--; - - - } - - after(grammarAccess.getPredefinedRuleAccess().getAlternatives()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rulePredefinedRule" - - - // $ANTLR start "entryRuleNativeRule" - // InternalValid.g:178:1: entryRuleNativeRule : ruleNativeRule EOF ; - public final void entryRuleNativeRule() throws RecognitionException { - try { - // InternalValid.g:179:1: ( ruleNativeRule EOF ) - // InternalValid.g:180:1: ruleNativeRule EOF - { - before(grammarAccess.getNativeRuleRule()); - pushFollow(FOLLOW_1); - ruleNativeRule(); - - state._fsp--; - - after(grammarAccess.getNativeRuleRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleNativeRule" - - - // $ANTLR start "ruleNativeRule" - // InternalValid.g:187:1: ruleNativeRule : ( ( rule__NativeRule__Group__0 ) ) ; - public final void ruleNativeRule() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:191:2: ( ( ( rule__NativeRule__Group__0 ) ) ) - // InternalValid.g:192:2: ( ( rule__NativeRule__Group__0 ) ) - { - // InternalValid.g:192:2: ( ( rule__NativeRule__Group__0 ) ) - // InternalValid.g:193:3: ( rule__NativeRule__Group__0 ) - { - before(grammarAccess.getNativeRuleAccess().getGroup()); - // InternalValid.g:194:3: ( rule__NativeRule__Group__0 ) - // InternalValid.g:194:4: rule__NativeRule__Group__0 - { - pushFollow(FOLLOW_2); - rule__NativeRule__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleNativeRule" - - - // $ANTLR start "entryRuleSizeRule" - // InternalValid.g:203:1: entryRuleSizeRule : ruleSizeRule EOF ; - public final void entryRuleSizeRule() throws RecognitionException { - try { - // InternalValid.g:204:1: ( ruleSizeRule EOF ) - // InternalValid.g:205:1: ruleSizeRule EOF - { - before(grammarAccess.getSizeRuleRule()); - pushFollow(FOLLOW_1); - ruleSizeRule(); - - state._fsp--; - - after(grammarAccess.getSizeRuleRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleSizeRule" - - - // $ANTLR start "ruleSizeRule" - // InternalValid.g:212:1: ruleSizeRule : ( ( rule__SizeRule__Group__0 ) ) ; - public final void ruleSizeRule() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:216:2: ( ( ( rule__SizeRule__Group__0 ) ) ) - // InternalValid.g:217:2: ( ( rule__SizeRule__Group__0 ) ) - { - // InternalValid.g:217:2: ( ( rule__SizeRule__Group__0 ) ) - // InternalValid.g:218:3: ( rule__SizeRule__Group__0 ) - { - before(grammarAccess.getSizeRuleAccess().getGroup()); - // InternalValid.g:219:3: ( rule__SizeRule__Group__0 ) - // InternalValid.g:219:4: rule__SizeRule__Group__0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleSizeRule" - - - // $ANTLR start "entryRuleRangeRule" - // InternalValid.g:228:1: entryRuleRangeRule : ruleRangeRule EOF ; - public final void entryRuleRangeRule() throws RecognitionException { - try { - // InternalValid.g:229:1: ( ruleRangeRule EOF ) - // InternalValid.g:230:1: ruleRangeRule EOF - { - before(grammarAccess.getRangeRuleRule()); - pushFollow(FOLLOW_1); - ruleRangeRule(); - - state._fsp--; - - after(grammarAccess.getRangeRuleRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleRangeRule" - - - // $ANTLR start "ruleRangeRule" - // InternalValid.g:237:1: ruleRangeRule : ( ( rule__RangeRule__Group__0 ) ) ; - public final void ruleRangeRule() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:241:2: ( ( ( rule__RangeRule__Group__0 ) ) ) - // InternalValid.g:242:2: ( ( rule__RangeRule__Group__0 ) ) - { - // InternalValid.g:242:2: ( ( rule__RangeRule__Group__0 ) ) - // InternalValid.g:243:3: ( rule__RangeRule__Group__0 ) - { - before(grammarAccess.getRangeRuleAccess().getGroup()); - // InternalValid.g:244:3: ( rule__RangeRule__Group__0 ) - // InternalValid.g:244:4: rule__RangeRule__Group__0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleRangeRule" - - - // $ANTLR start "entryRuleUniqueRule" - // InternalValid.g:253:1: entryRuleUniqueRule : ruleUniqueRule EOF ; - public final void entryRuleUniqueRule() throws RecognitionException { - try { - // InternalValid.g:254:1: ( ruleUniqueRule EOF ) - // InternalValid.g:255:1: ruleUniqueRule EOF - { - before(grammarAccess.getUniqueRuleRule()); - pushFollow(FOLLOW_1); - ruleUniqueRule(); - - state._fsp--; - - after(grammarAccess.getUniqueRuleRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleUniqueRule" - - - // $ANTLR start "ruleUniqueRule" - // InternalValid.g:262:1: ruleUniqueRule : ( ( rule__UniqueRule__Group__0 ) ) ; - public final void ruleUniqueRule() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:266:2: ( ( ( rule__UniqueRule__Group__0 ) ) ) - // InternalValid.g:267:2: ( ( rule__UniqueRule__Group__0 ) ) - { - // InternalValid.g:267:2: ( ( rule__UniqueRule__Group__0 ) ) - // InternalValid.g:268:3: ( rule__UniqueRule__Group__0 ) - { - before(grammarAccess.getUniqueRuleAccess().getGroup()); - // InternalValid.g:269:3: ( rule__UniqueRule__Group__0 ) - // InternalValid.g:269:4: rule__UniqueRule__Group__0 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleUniqueRule" - - - // $ANTLR start "entryRuleSimpleContext" - // InternalValid.g:278:1: entryRuleSimpleContext : ruleSimpleContext EOF ; - public final void entryRuleSimpleContext() throws RecognitionException { - try { - // InternalValid.g:279:1: ( ruleSimpleContext EOF ) - // InternalValid.g:280:1: ruleSimpleContext EOF - { - before(grammarAccess.getSimpleContextRule()); - pushFollow(FOLLOW_1); - ruleSimpleContext(); - - state._fsp--; - - after(grammarAccess.getSimpleContextRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleSimpleContext" - - - // $ANTLR start "ruleSimpleContext" - // InternalValid.g:287:1: ruleSimpleContext : ( ( rule__SimpleContext__Group__0 ) ) ; - public final void ruleSimpleContext() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:291:2: ( ( ( rule__SimpleContext__Group__0 ) ) ) - // InternalValid.g:292:2: ( ( rule__SimpleContext__Group__0 ) ) - { - // InternalValid.g:292:2: ( ( rule__SimpleContext__Group__0 ) ) - // InternalValid.g:293:3: ( rule__SimpleContext__Group__0 ) - { - before(grammarAccess.getSimpleContextAccess().getGroup()); - // InternalValid.g:294:3: ( rule__SimpleContext__Group__0 ) - // InternalValid.g:294:4: rule__SimpleContext__Group__0 - { - pushFollow(FOLLOW_2); - rule__SimpleContext__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getSimpleContextAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleSimpleContext" - - - // $ANTLR start "entryRuleDuplicateContext" - // InternalValid.g:303:1: entryRuleDuplicateContext : ruleDuplicateContext EOF ; - public final void entryRuleDuplicateContext() throws RecognitionException { - try { - // InternalValid.g:304:1: ( ruleDuplicateContext EOF ) - // InternalValid.g:305:1: ruleDuplicateContext EOF - { - before(grammarAccess.getDuplicateContextRule()); - pushFollow(FOLLOW_1); - ruleDuplicateContext(); - - state._fsp--; - - after(grammarAccess.getDuplicateContextRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleDuplicateContext" - - - // $ANTLR start "ruleDuplicateContext" - // InternalValid.g:312:1: ruleDuplicateContext : ( ( rule__DuplicateContext__Group__0 ) ) ; - public final void ruleDuplicateContext() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:316:2: ( ( ( rule__DuplicateContext__Group__0 ) ) ) - // InternalValid.g:317:2: ( ( rule__DuplicateContext__Group__0 ) ) - { - // InternalValid.g:317:2: ( ( rule__DuplicateContext__Group__0 ) ) - // InternalValid.g:318:3: ( rule__DuplicateContext__Group__0 ) - { - before(grammarAccess.getDuplicateContextAccess().getGroup()); - // InternalValid.g:319:3: ( rule__DuplicateContext__Group__0 ) - // InternalValid.g:319:4: rule__DuplicateContext__Group__0 - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getDuplicateContextAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleDuplicateContext" - - - // $ANTLR start "entryRuleNativeContext" - // InternalValid.g:328:1: entryRuleNativeContext : ruleNativeContext EOF ; - public final void entryRuleNativeContext() throws RecognitionException { - try { - // InternalValid.g:329:1: ( ruleNativeContext EOF ) - // InternalValid.g:330:1: ruleNativeContext EOF - { - before(grammarAccess.getNativeContextRule()); - pushFollow(FOLLOW_1); - ruleNativeContext(); - - state._fsp--; - - after(grammarAccess.getNativeContextRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleNativeContext" - - - // $ANTLR start "ruleNativeContext" - // InternalValid.g:337:1: ruleNativeContext : ( ( rule__NativeContext__Group__0 ) ) ; - public final void ruleNativeContext() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:341:2: ( ( ( rule__NativeContext__Group__0 ) ) ) - // InternalValid.g:342:2: ( ( rule__NativeContext__Group__0 ) ) - { - // InternalValid.g:342:2: ( ( rule__NativeContext__Group__0 ) ) - // InternalValid.g:343:3: ( rule__NativeContext__Group__0 ) - { - before(grammarAccess.getNativeContextAccess().getGroup()); - // InternalValid.g:344:3: ( rule__NativeContext__Group__0 ) - // InternalValid.g:344:4: rule__NativeContext__Group__0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleNativeContext" - - - // $ANTLR start "entryRuleQuickFix" - // InternalValid.g:353:1: entryRuleQuickFix : ruleQuickFix EOF ; - public final void entryRuleQuickFix() throws RecognitionException { - try { - // InternalValid.g:354:1: ( ruleQuickFix EOF ) - // InternalValid.g:355:1: ruleQuickFix EOF - { - before(grammarAccess.getQuickFixRule()); - pushFollow(FOLLOW_1); - ruleQuickFix(); - - state._fsp--; - - after(grammarAccess.getQuickFixRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleQuickFix" - - - // $ANTLR start "ruleQuickFix" - // InternalValid.g:362:1: ruleQuickFix : ( ( rule__QuickFix__Group__0 ) ) ; - public final void ruleQuickFix() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:366:2: ( ( ( rule__QuickFix__Group__0 ) ) ) - // InternalValid.g:367:2: ( ( rule__QuickFix__Group__0 ) ) - { - // InternalValid.g:367:2: ( ( rule__QuickFix__Group__0 ) ) - // InternalValid.g:368:3: ( rule__QuickFix__Group__0 ) - { - before(grammarAccess.getQuickFixAccess().getGroup()); - // InternalValid.g:369:3: ( rule__QuickFix__Group__0 ) - // InternalValid.g:369:4: rule__QuickFix__Group__0 - { - pushFollow(FOLLOW_2); - rule__QuickFix__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getQuickFixAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQuickFix" - - - // $ANTLR start "entryRuleQualifiedID" - // InternalValid.g:378:1: entryRuleQualifiedID : ruleQualifiedID EOF ; - public final void entryRuleQualifiedID() throws RecognitionException { - try { - // InternalValid.g:379:1: ( ruleQualifiedID EOF ) - // InternalValid.g:380:1: ruleQualifiedID EOF - { - before(grammarAccess.getQualifiedIDRule()); - pushFollow(FOLLOW_1); - ruleQualifiedID(); - - state._fsp--; - - after(grammarAccess.getQualifiedIDRule()); - match(input,EOF,FOLLOW_2); - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - } - return ; - } - // $ANTLR end "entryRuleQualifiedID" - - - // $ANTLR start "ruleQualifiedID" - // InternalValid.g:387:1: ruleQualifiedID : ( ( rule__QualifiedID__Group__0 ) ) ; - public final void ruleQualifiedID() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:391:2: ( ( ( rule__QualifiedID__Group__0 ) ) ) - // InternalValid.g:392:2: ( ( rule__QualifiedID__Group__0 ) ) - { - // InternalValid.g:392:2: ( ( rule__QualifiedID__Group__0 ) ) - // InternalValid.g:393:3: ( rule__QualifiedID__Group__0 ) - { - before(grammarAccess.getQualifiedIDAccess().getGroup()); - // InternalValid.g:394:3: ( rule__QualifiedID__Group__0 ) - // InternalValid.g:394:4: rule__QualifiedID__Group__0 - { - pushFollow(FOLLOW_2); - rule__QualifiedID__Group__0(); - - state._fsp--; - - - } - - after(grammarAccess.getQualifiedIDAccess().getGroup()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQualifiedID" - - - // $ANTLR start "ruleCheckKind" - // InternalValid.g:403:1: ruleCheckKind : ( ( rule__CheckKind__Alternatives ) ) ; - public final void ruleCheckKind() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:407:1: ( ( ( rule__CheckKind__Alternatives ) ) ) - // InternalValid.g:408:2: ( ( rule__CheckKind__Alternatives ) ) - { - // InternalValid.g:408:2: ( ( rule__CheckKind__Alternatives ) ) - // InternalValid.g:409:3: ( rule__CheckKind__Alternatives ) - { - before(grammarAccess.getCheckKindAccess().getAlternatives()); - // InternalValid.g:410:3: ( rule__CheckKind__Alternatives ) - // InternalValid.g:410:4: rule__CheckKind__Alternatives - { - pushFollow(FOLLOW_2); - rule__CheckKind__Alternatives(); - - state._fsp--; - - - } - - after(grammarAccess.getCheckKindAccess().getAlternatives()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleCheckKind" - - - // $ANTLR start "ruleSeverityKind" - // InternalValid.g:419:1: ruleSeverityKind : ( ( rule__SeverityKind__Alternatives ) ) ; - public final void ruleSeverityKind() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:423:1: ( ( ( rule__SeverityKind__Alternatives ) ) ) - // InternalValid.g:424:2: ( ( rule__SeverityKind__Alternatives ) ) - { - // InternalValid.g:424:2: ( ( rule__SeverityKind__Alternatives ) ) - // InternalValid.g:425:3: ( rule__SeverityKind__Alternatives ) - { - before(grammarAccess.getSeverityKindAccess().getAlternatives()); - // InternalValid.g:426:3: ( rule__SeverityKind__Alternatives ) - // InternalValid.g:426:4: rule__SeverityKind__Alternatives - { - pushFollow(FOLLOW_2); - rule__SeverityKind__Alternatives(); - - state._fsp--; - - - } - - after(grammarAccess.getSeverityKindAccess().getAlternatives()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleSeverityKind" - - - // $ANTLR start "ruleQuickFixKind" - // InternalValid.g:435:1: ruleQuickFixKind : ( ( rule__QuickFixKind__Alternatives ) ) ; - public final void ruleQuickFixKind() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:439:1: ( ( ( rule__QuickFixKind__Alternatives ) ) ) - // InternalValid.g:440:2: ( ( rule__QuickFixKind__Alternatives ) ) - { - // InternalValid.g:440:2: ( ( rule__QuickFixKind__Alternatives ) ) - // InternalValid.g:441:3: ( rule__QuickFixKind__Alternatives ) - { - before(grammarAccess.getQuickFixKindAccess().getAlternatives()); - // InternalValid.g:442:3: ( rule__QuickFixKind__Alternatives ) - // InternalValid.g:442:4: rule__QuickFixKind__Alternatives - { - pushFollow(FOLLOW_2); - rule__QuickFixKind__Alternatives(); - - state._fsp--; - - - } - - after(grammarAccess.getQuickFixKindAccess().getAlternatives()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "ruleQuickFixKind" - - - // $ANTLR start "rule__Rule__Alternatives" - // InternalValid.g:450:1: rule__Rule__Alternatives : ( ( ruleNativeRule ) | ( rulePredefinedRule ) ); - public final void rule__Rule__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:454:1: ( ( ruleNativeRule ) | ( rulePredefinedRule ) ) - int alt1=2; - alt1 = dfa1.predict(input); - switch (alt1) { - case 1 : - // InternalValid.g:455:2: ( ruleNativeRule ) - { - // InternalValid.g:455:2: ( ruleNativeRule ) - // InternalValid.g:456:3: ruleNativeRule - { - before(grammarAccess.getRuleAccess().getNativeRuleParserRuleCall_0()); - pushFollow(FOLLOW_2); - ruleNativeRule(); - - state._fsp--; - - after(grammarAccess.getRuleAccess().getNativeRuleParserRuleCall_0()); - - } - - - } - break; - case 2 : - // InternalValid.g:461:2: ( rulePredefinedRule ) - { - // InternalValid.g:461:2: ( rulePredefinedRule ) - // InternalValid.g:462:3: rulePredefinedRule - { - before(grammarAccess.getRuleAccess().getPredefinedRuleParserRuleCall_1()); - pushFollow(FOLLOW_2); - rulePredefinedRule(); - - state._fsp--; - - after(grammarAccess.getRuleAccess().getPredefinedRuleParserRuleCall_1()); - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Rule__Alternatives" - - - // $ANTLR start "rule__PredefinedRule__Alternatives" - // InternalValid.g:471:1: rule__PredefinedRule__Alternatives : ( ( ruleSizeRule ) | ( ruleRangeRule ) | ( ruleUniqueRule ) ); - public final void rule__PredefinedRule__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:475:1: ( ( ruleSizeRule ) | ( ruleRangeRule ) | ( ruleUniqueRule ) ) - int alt2=3; - alt2 = dfa2.predict(input); - switch (alt2) { - case 1 : - // InternalValid.g:476:2: ( ruleSizeRule ) - { - // InternalValid.g:476:2: ( ruleSizeRule ) - // InternalValid.g:477:3: ruleSizeRule - { - before(grammarAccess.getPredefinedRuleAccess().getSizeRuleParserRuleCall_0()); - pushFollow(FOLLOW_2); - ruleSizeRule(); - - state._fsp--; - - after(grammarAccess.getPredefinedRuleAccess().getSizeRuleParserRuleCall_0()); - - } - - - } - break; - case 2 : - // InternalValid.g:482:2: ( ruleRangeRule ) - { - // InternalValid.g:482:2: ( ruleRangeRule ) - // InternalValid.g:483:3: ruleRangeRule - { - before(grammarAccess.getPredefinedRuleAccess().getRangeRuleParserRuleCall_1()); - pushFollow(FOLLOW_2); - ruleRangeRule(); - - state._fsp--; - - after(grammarAccess.getPredefinedRuleAccess().getRangeRuleParserRuleCall_1()); - - } - - - } - break; - case 3 : - // InternalValid.g:488:2: ( ruleUniqueRule ) - { - // InternalValid.g:488:2: ( ruleUniqueRule ) - // InternalValid.g:489:3: ruleUniqueRule - { - before(grammarAccess.getPredefinedRuleAccess().getUniqueRuleParserRuleCall_2()); - pushFollow(FOLLOW_2); - ruleUniqueRule(); - - state._fsp--; - - after(grammarAccess.getPredefinedRuleAccess().getUniqueRuleParserRuleCall_2()); - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__PredefinedRule__Alternatives" - - - // $ANTLR start "rule__CheckKind__Alternatives" - // InternalValid.g:498:1: rule__CheckKind__Alternatives : ( ( ( 'fast' ) ) | ( ( 'normal' ) ) | ( ( 'expensive' ) ) ); - public final void rule__CheckKind__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:502:1: ( ( ( 'fast' ) ) | ( ( 'normal' ) ) | ( ( 'expensive' ) ) ) - int alt3=3; - switch ( input.LA(1) ) { - case 11: - { - alt3=1; - } - break; - case 12: - { - alt3=2; - } - break; - case 13: - { - alt3=3; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 3, 0, input); - - throw nvae; - } - - switch (alt3) { - case 1 : - // InternalValid.g:503:2: ( ( 'fast' ) ) - { - // InternalValid.g:503:2: ( ( 'fast' ) ) - // InternalValid.g:504:3: ( 'fast' ) - { - before(grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0()); - // InternalValid.g:505:3: ( 'fast' ) - // InternalValid.g:505:4: 'fast' - { - match(input,11,FOLLOW_2); - - } - - after(grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0()); - - } - - - } - break; - case 2 : - // InternalValid.g:509:2: ( ( 'normal' ) ) - { - // InternalValid.g:509:2: ( ( 'normal' ) ) - // InternalValid.g:510:3: ( 'normal' ) - { - before(grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1()); - // InternalValid.g:511:3: ( 'normal' ) - // InternalValid.g:511:4: 'normal' - { - match(input,12,FOLLOW_2); - - } - - after(grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1()); - - } - - - } - break; - case 3 : - // InternalValid.g:515:2: ( ( 'expensive' ) ) - { - // InternalValid.g:515:2: ( ( 'expensive' ) ) - // InternalValid.g:516:3: ( 'expensive' ) - { - before(grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2()); - // InternalValid.g:517:3: ( 'expensive' ) - // InternalValid.g:517:4: 'expensive' - { - match(input,13,FOLLOW_2); - - } - - after(grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2()); - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__CheckKind__Alternatives" - - - // $ANTLR start "rule__SeverityKind__Alternatives" - // InternalValid.g:525:1: rule__SeverityKind__Alternatives : ( ( ( 'error' ) ) | ( ( 'warning' ) ) ); - public final void rule__SeverityKind__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:529:1: ( ( ( 'error' ) ) | ( ( 'warning' ) ) ) - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==14) ) { - alt4=1; - } - else if ( (LA4_0==15) ) { - alt4=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 4, 0, input); - - throw nvae; - } - switch (alt4) { - case 1 : - // InternalValid.g:530:2: ( ( 'error' ) ) - { - // InternalValid.g:530:2: ( ( 'error' ) ) - // InternalValid.g:531:3: ( 'error' ) - { - before(grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0()); - // InternalValid.g:532:3: ( 'error' ) - // InternalValid.g:532:4: 'error' - { - match(input,14,FOLLOW_2); - - } - - after(grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0()); - - } - - - } - break; - case 2 : - // InternalValid.g:536:2: ( ( 'warning' ) ) - { - // InternalValid.g:536:2: ( ( 'warning' ) ) - // InternalValid.g:537:3: ( 'warning' ) - { - before(grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1()); - // InternalValid.g:538:3: ( 'warning' ) - // InternalValid.g:538:4: 'warning' - { - match(input,15,FOLLOW_2); - - } - - after(grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1()); - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SeverityKind__Alternatives" - - - // $ANTLR start "rule__QuickFixKind__Alternatives" - // InternalValid.g:546:1: rule__QuickFixKind__Alternatives : ( ( ( 'semantic' ) ) | ( ( 'textual' ) ) ); - public final void rule__QuickFixKind__Alternatives() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:550:1: ( ( ( 'semantic' ) ) | ( ( 'textual' ) ) ) - int alt5=2; - int LA5_0 = input.LA(1); - - if ( (LA5_0==16) ) { - alt5=1; - } - else if ( (LA5_0==17) ) { - alt5=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 5, 0, input); - - throw nvae; - } - switch (alt5) { - case 1 : - // InternalValid.g:551:2: ( ( 'semantic' ) ) - { - // InternalValid.g:551:2: ( ( 'semantic' ) ) - // InternalValid.g:552:3: ( 'semantic' ) - { - before(grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0()); - // InternalValid.g:553:3: ( 'semantic' ) - // InternalValid.g:553:4: 'semantic' - { - match(input,16,FOLLOW_2); - - } - - after(grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0()); - - } - - - } - break; - case 2 : - // InternalValid.g:557:2: ( ( 'textual' ) ) - { - // InternalValid.g:557:2: ( ( 'textual' ) ) - // InternalValid.g:558:3: ( 'textual' ) - { - before(grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1()); - // InternalValid.g:559:3: ( 'textual' ) - // InternalValid.g:559:4: 'textual' - { - match(input,17,FOLLOW_2); - - } - - after(grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1()); - - } - - - } - break; - - } - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFixKind__Alternatives" - - - // $ANTLR start "rule__ValidModel__Group__0" - // InternalValid.g:567:1: rule__ValidModel__Group__0 : rule__ValidModel__Group__0__Impl rule__ValidModel__Group__1 ; - public final void rule__ValidModel__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:571:1: ( rule__ValidModel__Group__0__Impl rule__ValidModel__Group__1 ) - // InternalValid.g:572:2: rule__ValidModel__Group__0__Impl rule__ValidModel__Group__1 - { - pushFollow(FOLLOW_3); - rule__ValidModel__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__ValidModel__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ValidModel__Group__0" - - - // $ANTLR start "rule__ValidModel__Group__0__Impl" - // InternalValid.g:579:1: rule__ValidModel__Group__0__Impl : ( ( rule__ValidModel__ImportsAssignment_0 )* ) ; - public final void rule__ValidModel__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:583:1: ( ( ( rule__ValidModel__ImportsAssignment_0 )* ) ) - // InternalValid.g:584:1: ( ( rule__ValidModel__ImportsAssignment_0 )* ) - { - // InternalValid.g:584:1: ( ( rule__ValidModel__ImportsAssignment_0 )* ) - // InternalValid.g:585:2: ( rule__ValidModel__ImportsAssignment_0 )* - { - before(grammarAccess.getValidModelAccess().getImportsAssignment_0()); - // InternalValid.g:586:2: ( rule__ValidModel__ImportsAssignment_0 )* - loop6: - do { - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0==18) ) { - alt6=1; - } - - - switch (alt6) { - case 1 : - // InternalValid.g:586:3: rule__ValidModel__ImportsAssignment_0 - { - pushFollow(FOLLOW_4); - rule__ValidModel__ImportsAssignment_0(); - - state._fsp--; - - - } - break; - - default : - break loop6; - } - } while (true); - - after(grammarAccess.getValidModelAccess().getImportsAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ValidModel__Group__0__Impl" - - - // $ANTLR start "rule__ValidModel__Group__1" - // InternalValid.g:594:1: rule__ValidModel__Group__1 : rule__ValidModel__Group__1__Impl ; - public final void rule__ValidModel__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:598:1: ( rule__ValidModel__Group__1__Impl ) - // InternalValid.g:599:2: rule__ValidModel__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__ValidModel__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ValidModel__Group__1" - - - // $ANTLR start "rule__ValidModel__Group__1__Impl" - // InternalValid.g:605:1: rule__ValidModel__Group__1__Impl : ( ( rule__ValidModel__CategoriesAssignment_1 )* ) ; - public final void rule__ValidModel__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:609:1: ( ( ( rule__ValidModel__CategoriesAssignment_1 )* ) ) - // InternalValid.g:610:1: ( ( rule__ValidModel__CategoriesAssignment_1 )* ) - { - // InternalValid.g:610:1: ( ( rule__ValidModel__CategoriesAssignment_1 )* ) - // InternalValid.g:611:2: ( rule__ValidModel__CategoriesAssignment_1 )* - { - before(grammarAccess.getValidModelAccess().getCategoriesAssignment_1()); - // InternalValid.g:612:2: ( rule__ValidModel__CategoriesAssignment_1 )* - loop7: - do { - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0==19) ) { - alt7=1; - } - - - switch (alt7) { - case 1 : - // InternalValid.g:612:3: rule__ValidModel__CategoriesAssignment_1 - { - pushFollow(FOLLOW_5); - rule__ValidModel__CategoriesAssignment_1(); - - state._fsp--; - - - } - break; - - default : - break loop7; - } - } while (true); - - after(grammarAccess.getValidModelAccess().getCategoriesAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ValidModel__Group__1__Impl" - - - // $ANTLR start "rule__Import__Group__0" - // InternalValid.g:621:1: rule__Import__Group__0 : rule__Import__Group__0__Impl rule__Import__Group__1 ; - public final void rule__Import__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:625:1: ( rule__Import__Group__0__Impl rule__Import__Group__1 ) - // InternalValid.g:626:2: rule__Import__Group__0__Impl rule__Import__Group__1 - { - pushFollow(FOLLOW_6); - rule__Import__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Import__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Import__Group__0" - - - // $ANTLR start "rule__Import__Group__0__Impl" - // InternalValid.g:633:1: rule__Import__Group__0__Impl : ( 'import' ) ; - public final void rule__Import__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:637:1: ( ( 'import' ) ) - // InternalValid.g:638:1: ( 'import' ) - { - // InternalValid.g:638:1: ( 'import' ) - // InternalValid.g:639:2: 'import' - { - before(grammarAccess.getImportAccess().getImportKeyword_0()); - match(input,18,FOLLOW_2); - after(grammarAccess.getImportAccess().getImportKeyword_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Import__Group__0__Impl" - - - // $ANTLR start "rule__Import__Group__1" - // InternalValid.g:648:1: rule__Import__Group__1 : rule__Import__Group__1__Impl ; - public final void rule__Import__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:652:1: ( rule__Import__Group__1__Impl ) - // InternalValid.g:653:2: rule__Import__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__Import__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Import__Group__1" - - - // $ANTLR start "rule__Import__Group__1__Impl" - // InternalValid.g:659:1: rule__Import__Group__1__Impl : ( ( rule__Import__PackageAssignment_1 ) ) ; - public final void rule__Import__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:663:1: ( ( ( rule__Import__PackageAssignment_1 ) ) ) - // InternalValid.g:664:1: ( ( rule__Import__PackageAssignment_1 ) ) - { - // InternalValid.g:664:1: ( ( rule__Import__PackageAssignment_1 ) ) - // InternalValid.g:665:2: ( rule__Import__PackageAssignment_1 ) - { - before(grammarAccess.getImportAccess().getPackageAssignment_1()); - // InternalValid.g:666:2: ( rule__Import__PackageAssignment_1 ) - // InternalValid.g:666:3: rule__Import__PackageAssignment_1 - { - pushFollow(FOLLOW_2); - rule__Import__PackageAssignment_1(); - - state._fsp--; - - - } - - after(grammarAccess.getImportAccess().getPackageAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Import__Group__1__Impl" - - - // $ANTLR start "rule__Category__Group__0" - // InternalValid.g:675:1: rule__Category__Group__0 : rule__Category__Group__0__Impl rule__Category__Group__1 ; - public final void rule__Category__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:679:1: ( rule__Category__Group__0__Impl rule__Category__Group__1 ) - // InternalValid.g:680:2: rule__Category__Group__0__Impl rule__Category__Group__1 - { - pushFollow(FOLLOW_7); - rule__Category__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__0" - - - // $ANTLR start "rule__Category__Group__0__Impl" - // InternalValid.g:687:1: rule__Category__Group__0__Impl : ( 'category' ) ; - public final void rule__Category__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:691:1: ( ( 'category' ) ) - // InternalValid.g:692:1: ( 'category' ) - { - // InternalValid.g:692:1: ( 'category' ) - // InternalValid.g:693:2: 'category' - { - before(grammarAccess.getCategoryAccess().getCategoryKeyword_0()); - match(input,19,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getCategoryKeyword_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__0__Impl" - - - // $ANTLR start "rule__Category__Group__1" - // InternalValid.g:702:1: rule__Category__Group__1 : rule__Category__Group__1__Impl rule__Category__Group__2 ; - public final void rule__Category__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:706:1: ( rule__Category__Group__1__Impl rule__Category__Group__2 ) - // InternalValid.g:707:2: rule__Category__Group__1__Impl rule__Category__Group__2 - { - pushFollow(FOLLOW_8); - rule__Category__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__1" - - - // $ANTLR start "rule__Category__Group__1__Impl" - // InternalValid.g:714:1: rule__Category__Group__1__Impl : ( ( rule__Category__NameAssignment_1 ) ) ; - public final void rule__Category__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:718:1: ( ( ( rule__Category__NameAssignment_1 ) ) ) - // InternalValid.g:719:1: ( ( rule__Category__NameAssignment_1 ) ) - { - // InternalValid.g:719:1: ( ( rule__Category__NameAssignment_1 ) ) - // InternalValid.g:720:2: ( rule__Category__NameAssignment_1 ) - { - before(grammarAccess.getCategoryAccess().getNameAssignment_1()); - // InternalValid.g:721:2: ( rule__Category__NameAssignment_1 ) - // InternalValid.g:721:3: rule__Category__NameAssignment_1 - { - pushFollow(FOLLOW_2); - rule__Category__NameAssignment_1(); - - state._fsp--; - - - } - - after(grammarAccess.getCategoryAccess().getNameAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__1__Impl" - - - // $ANTLR start "rule__Category__Group__2" - // InternalValid.g:729:1: rule__Category__Group__2 : rule__Category__Group__2__Impl rule__Category__Group__3 ; - public final void rule__Category__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:733:1: ( rule__Category__Group__2__Impl rule__Category__Group__3 ) - // InternalValid.g:734:2: rule__Category__Group__2__Impl rule__Category__Group__3 - { - pushFollow(FOLLOW_6); - rule__Category__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__2" - - - // $ANTLR start "rule__Category__Group__2__Impl" - // InternalValid.g:741:1: rule__Category__Group__2__Impl : ( 'label' ) ; - public final void rule__Category__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:745:1: ( ( 'label' ) ) - // InternalValid.g:746:1: ( 'label' ) - { - // InternalValid.g:746:1: ( 'label' ) - // InternalValid.g:747:2: 'label' - { - before(grammarAccess.getCategoryAccess().getLabelKeyword_2()); - match(input,20,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getLabelKeyword_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__2__Impl" - - - // $ANTLR start "rule__Category__Group__3" - // InternalValid.g:756:1: rule__Category__Group__3 : rule__Category__Group__3__Impl rule__Category__Group__4 ; - public final void rule__Category__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:760:1: ( rule__Category__Group__3__Impl rule__Category__Group__4 ) - // InternalValid.g:761:2: rule__Category__Group__3__Impl rule__Category__Group__4 - { - pushFollow(FOLLOW_9); - rule__Category__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__3" - - - // $ANTLR start "rule__Category__Group__3__Impl" - // InternalValid.g:768:1: rule__Category__Group__3__Impl : ( ( rule__Category__LabelAssignment_3 ) ) ; - public final void rule__Category__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:772:1: ( ( ( rule__Category__LabelAssignment_3 ) ) ) - // InternalValid.g:773:1: ( ( rule__Category__LabelAssignment_3 ) ) - { - // InternalValid.g:773:1: ( ( rule__Category__LabelAssignment_3 ) ) - // InternalValid.g:774:2: ( rule__Category__LabelAssignment_3 ) - { - before(grammarAccess.getCategoryAccess().getLabelAssignment_3()); - // InternalValid.g:775:2: ( rule__Category__LabelAssignment_3 ) - // InternalValid.g:775:3: rule__Category__LabelAssignment_3 - { - pushFollow(FOLLOW_2); - rule__Category__LabelAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getCategoryAccess().getLabelAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__3__Impl" - - - // $ANTLR start "rule__Category__Group__4" - // InternalValid.g:783:1: rule__Category__Group__4 : rule__Category__Group__4__Impl rule__Category__Group__5 ; - public final void rule__Category__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:787:1: ( rule__Category__Group__4__Impl rule__Category__Group__5 ) - // InternalValid.g:788:2: rule__Category__Group__4__Impl rule__Category__Group__5 - { - pushFollow(FOLLOW_9); - rule__Category__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__4" - - - // $ANTLR start "rule__Category__Group__4__Impl" - // InternalValid.g:795:1: rule__Category__Group__4__Impl : ( ( rule__Category__Group_4__0 )? ) ; - public final void rule__Category__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:799:1: ( ( ( rule__Category__Group_4__0 )? ) ) - // InternalValid.g:800:1: ( ( rule__Category__Group_4__0 )? ) - { - // InternalValid.g:800:1: ( ( rule__Category__Group_4__0 )? ) - // InternalValid.g:801:2: ( rule__Category__Group_4__0 )? - { - before(grammarAccess.getCategoryAccess().getGroup_4()); - // InternalValid.g:802:2: ( rule__Category__Group_4__0 )? - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==23) ) { - alt8=1; - } - switch (alt8) { - case 1 : - // InternalValid.g:802:3: rule__Category__Group_4__0 - { - pushFollow(FOLLOW_2); - rule__Category__Group_4__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getCategoryAccess().getGroup_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__4__Impl" - - - // $ANTLR start "rule__Category__Group__5" - // InternalValid.g:810:1: rule__Category__Group__5 : rule__Category__Group__5__Impl rule__Category__Group__6 ; - public final void rule__Category__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:814:1: ( rule__Category__Group__5__Impl rule__Category__Group__6 ) - // InternalValid.g:815:2: rule__Category__Group__5__Impl rule__Category__Group__6 - { - pushFollow(FOLLOW_10); - rule__Category__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__5" - - - // $ANTLR start "rule__Category__Group__5__Impl" - // InternalValid.g:822:1: rule__Category__Group__5__Impl : ( '{' ) ; - public final void rule__Category__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:826:1: ( ( '{' ) ) - // InternalValid.g:827:1: ( '{' ) - { - // InternalValid.g:827:1: ( '{' ) - // InternalValid.g:828:2: '{' - { - before(grammarAccess.getCategoryAccess().getLeftCurlyBracketKeyword_5()); - match(input,21,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getLeftCurlyBracketKeyword_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__5__Impl" - - - // $ANTLR start "rule__Category__Group__6" - // InternalValid.g:837:1: rule__Category__Group__6 : rule__Category__Group__6__Impl rule__Category__Group__7 ; - public final void rule__Category__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:841:1: ( rule__Category__Group__6__Impl rule__Category__Group__7 ) - // InternalValid.g:842:2: rule__Category__Group__6__Impl rule__Category__Group__7 - { - pushFollow(FOLLOW_10); - rule__Category__Group__6__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group__7(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__6" - - - // $ANTLR start "rule__Category__Group__6__Impl" - // InternalValid.g:849:1: rule__Category__Group__6__Impl : ( ( rule__Category__RulesAssignment_6 )* ) ; - public final void rule__Category__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:853:1: ( ( ( rule__Category__RulesAssignment_6 )* ) ) - // InternalValid.g:854:1: ( ( rule__Category__RulesAssignment_6 )* ) - { - // InternalValid.g:854:1: ( ( rule__Category__RulesAssignment_6 )* ) - // InternalValid.g:855:2: ( rule__Category__RulesAssignment_6 )* - { - before(grammarAccess.getCategoryAccess().getRulesAssignment_6()); - // InternalValid.g:856:2: ( rule__Category__RulesAssignment_6 )* - loop9: - do { - int alt9=2; - int LA9_0 = input.LA(1); - - if ( ((LA9_0>=11 && LA9_0<=15)||LA9_0==26||(LA9_0>=28 && LA9_0<=29)||LA9_0==36) ) { - alt9=1; - } - - - switch (alt9) { - case 1 : - // InternalValid.g:856:3: rule__Category__RulesAssignment_6 - { - pushFollow(FOLLOW_11); - rule__Category__RulesAssignment_6(); - - state._fsp--; - - - } - break; - - default : - break loop9; - } - } while (true); - - after(grammarAccess.getCategoryAccess().getRulesAssignment_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__6__Impl" - - - // $ANTLR start "rule__Category__Group__7" - // InternalValid.g:864:1: rule__Category__Group__7 : rule__Category__Group__7__Impl ; - public final void rule__Category__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:868:1: ( rule__Category__Group__7__Impl ) - // InternalValid.g:869:2: rule__Category__Group__7__Impl - { - pushFollow(FOLLOW_2); - rule__Category__Group__7__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__7" - - - // $ANTLR start "rule__Category__Group__7__Impl" - // InternalValid.g:875:1: rule__Category__Group__7__Impl : ( '}' ) ; - public final void rule__Category__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:879:1: ( ( '}' ) ) - // InternalValid.g:880:1: ( '}' ) - { - // InternalValid.g:880:1: ( '}' ) - // InternalValid.g:881:2: '}' - { - before(grammarAccess.getCategoryAccess().getRightCurlyBracketKeyword_7()); - match(input,22,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getRightCurlyBracketKeyword_7()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group__7__Impl" - - - // $ANTLR start "rule__Category__Group_4__0" - // InternalValid.g:891:1: rule__Category__Group_4__0 : rule__Category__Group_4__0__Impl rule__Category__Group_4__1 ; - public final void rule__Category__Group_4__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:895:1: ( rule__Category__Group_4__0__Impl rule__Category__Group_4__1 ) - // InternalValid.g:896:2: rule__Category__Group_4__0__Impl rule__Category__Group_4__1 - { - pushFollow(FOLLOW_6); - rule__Category__Group_4__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__Category__Group_4__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group_4__0" - - - // $ANTLR start "rule__Category__Group_4__0__Impl" - // InternalValid.g:903:1: rule__Category__Group_4__0__Impl : ( 'description' ) ; - public final void rule__Category__Group_4__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:907:1: ( ( 'description' ) ) - // InternalValid.g:908:1: ( 'description' ) - { - // InternalValid.g:908:1: ( 'description' ) - // InternalValid.g:909:2: 'description' - { - before(grammarAccess.getCategoryAccess().getDescriptionKeyword_4_0()); - match(input,23,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getDescriptionKeyword_4_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group_4__0__Impl" - - - // $ANTLR start "rule__Category__Group_4__1" - // InternalValid.g:918:1: rule__Category__Group_4__1 : rule__Category__Group_4__1__Impl ; - public final void rule__Category__Group_4__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:922:1: ( rule__Category__Group_4__1__Impl ) - // InternalValid.g:923:2: rule__Category__Group_4__1__Impl - { - pushFollow(FOLLOW_2); - rule__Category__Group_4__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group_4__1" - - - // $ANTLR start "rule__Category__Group_4__1__Impl" - // InternalValid.g:929:1: rule__Category__Group_4__1__Impl : ( ( rule__Category__DescriptionAssignment_4_1 ) ) ; - public final void rule__Category__Group_4__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:933:1: ( ( ( rule__Category__DescriptionAssignment_4_1 ) ) ) - // InternalValid.g:934:1: ( ( rule__Category__DescriptionAssignment_4_1 ) ) - { - // InternalValid.g:934:1: ( ( rule__Category__DescriptionAssignment_4_1 ) ) - // InternalValid.g:935:2: ( rule__Category__DescriptionAssignment_4_1 ) - { - before(grammarAccess.getCategoryAccess().getDescriptionAssignment_4_1()); - // InternalValid.g:936:2: ( rule__Category__DescriptionAssignment_4_1 ) - // InternalValid.g:936:3: rule__Category__DescriptionAssignment_4_1 - { - pushFollow(FOLLOW_2); - rule__Category__DescriptionAssignment_4_1(); - - state._fsp--; - - - } - - after(grammarAccess.getCategoryAccess().getDescriptionAssignment_4_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__Group_4__1__Impl" - - - // $ANTLR start "rule__NativeRule__Group__0" - // InternalValid.g:945:1: rule__NativeRule__Group__0 : rule__NativeRule__Group__0__Impl rule__NativeRule__Group__1 ; - public final void rule__NativeRule__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:949:1: ( rule__NativeRule__Group__0__Impl rule__NativeRule__Group__1 ) - // InternalValid.g:950:2: rule__NativeRule__Group__0__Impl rule__NativeRule__Group__1 - { - pushFollow(FOLLOW_12); - rule__NativeRule__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__0" - - - // $ANTLR start "rule__NativeRule__Group__0__Impl" - // InternalValid.g:957:1: rule__NativeRule__Group__0__Impl : ( ( rule__NativeRule__UnorderedGroup_0 ) ) ; - public final void rule__NativeRule__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:961:1: ( ( ( rule__NativeRule__UnorderedGroup_0 ) ) ) - // InternalValid.g:962:1: ( ( rule__NativeRule__UnorderedGroup_0 ) ) - { - // InternalValid.g:962:1: ( ( rule__NativeRule__UnorderedGroup_0 ) ) - // InternalValid.g:963:2: ( rule__NativeRule__UnorderedGroup_0 ) - { - before(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - // InternalValid.g:964:2: ( rule__NativeRule__UnorderedGroup_0 ) - // InternalValid.g:964:3: rule__NativeRule__UnorderedGroup_0 - { - pushFollow(FOLLOW_2); - rule__NativeRule__UnorderedGroup_0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__0__Impl" - - - // $ANTLR start "rule__NativeRule__Group__1" - // InternalValid.g:972:1: rule__NativeRule__Group__1 : rule__NativeRule__Group__1__Impl rule__NativeRule__Group__2 ; - public final void rule__NativeRule__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:976:1: ( rule__NativeRule__Group__1__Impl rule__NativeRule__Group__2 ) - // InternalValid.g:977:2: rule__NativeRule__Group__1__Impl rule__NativeRule__Group__2 - { - pushFollow(FOLLOW_7); - rule__NativeRule__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__1" - - - // $ANTLR start "rule__NativeRule__Group__1__Impl" - // InternalValid.g:984:1: rule__NativeRule__Group__1__Impl : ( ( rule__NativeRule__SeverityAssignment_1 ) ) ; - public final void rule__NativeRule__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:988:1: ( ( ( rule__NativeRule__SeverityAssignment_1 ) ) ) - // InternalValid.g:989:1: ( ( rule__NativeRule__SeverityAssignment_1 ) ) - { - // InternalValid.g:989:1: ( ( rule__NativeRule__SeverityAssignment_1 ) ) - // InternalValid.g:990:2: ( rule__NativeRule__SeverityAssignment_1 ) - { - before(grammarAccess.getNativeRuleAccess().getSeverityAssignment_1()); - // InternalValid.g:991:2: ( rule__NativeRule__SeverityAssignment_1 ) - // InternalValid.g:991:3: rule__NativeRule__SeverityAssignment_1 - { - pushFollow(FOLLOW_2); - rule__NativeRule__SeverityAssignment_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getSeverityAssignment_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__1__Impl" - - - // $ANTLR start "rule__NativeRule__Group__2" - // InternalValid.g:999:1: rule__NativeRule__Group__2 : rule__NativeRule__Group__2__Impl rule__NativeRule__Group__3 ; - public final void rule__NativeRule__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1003:1: ( rule__NativeRule__Group__2__Impl rule__NativeRule__Group__3 ) - // InternalValid.g:1004:2: rule__NativeRule__Group__2__Impl rule__NativeRule__Group__3 - { - pushFollow(FOLLOW_8); - rule__NativeRule__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__2" - - - // $ANTLR start "rule__NativeRule__Group__2__Impl" - // InternalValid.g:1011:1: rule__NativeRule__Group__2__Impl : ( ( rule__NativeRule__NameAssignment_2 ) ) ; - public final void rule__NativeRule__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1015:1: ( ( ( rule__NativeRule__NameAssignment_2 ) ) ) - // InternalValid.g:1016:1: ( ( rule__NativeRule__NameAssignment_2 ) ) - { - // InternalValid.g:1016:1: ( ( rule__NativeRule__NameAssignment_2 ) ) - // InternalValid.g:1017:2: ( rule__NativeRule__NameAssignment_2 ) - { - before(grammarAccess.getNativeRuleAccess().getNameAssignment_2()); - // InternalValid.g:1018:2: ( rule__NativeRule__NameAssignment_2 ) - // InternalValid.g:1018:3: rule__NativeRule__NameAssignment_2 - { - pushFollow(FOLLOW_2); - rule__NativeRule__NameAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getNameAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__2__Impl" - - - // $ANTLR start "rule__NativeRule__Group__3" - // InternalValid.g:1026:1: rule__NativeRule__Group__3 : rule__NativeRule__Group__3__Impl rule__NativeRule__Group__4 ; - public final void rule__NativeRule__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1030:1: ( rule__NativeRule__Group__3__Impl rule__NativeRule__Group__4 ) - // InternalValid.g:1031:2: rule__NativeRule__Group__3__Impl rule__NativeRule__Group__4 - { - pushFollow(FOLLOW_6); - rule__NativeRule__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__3" - - - // $ANTLR start "rule__NativeRule__Group__3__Impl" - // InternalValid.g:1038:1: rule__NativeRule__Group__3__Impl : ( 'label' ) ; - public final void rule__NativeRule__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1042:1: ( ( 'label' ) ) - // InternalValid.g:1043:1: ( 'label' ) - { - // InternalValid.g:1043:1: ( 'label' ) - // InternalValid.g:1044:2: 'label' - { - before(grammarAccess.getNativeRuleAccess().getLabelKeyword_3()); - match(input,20,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getLabelKeyword_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__3__Impl" - - - // $ANTLR start "rule__NativeRule__Group__4" - // InternalValid.g:1053:1: rule__NativeRule__Group__4 : rule__NativeRule__Group__4__Impl rule__NativeRule__Group__5 ; - public final void rule__NativeRule__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1057:1: ( rule__NativeRule__Group__4__Impl rule__NativeRule__Group__5 ) - // InternalValid.g:1058:2: rule__NativeRule__Group__4__Impl rule__NativeRule__Group__5 - { - pushFollow(FOLLOW_13); - rule__NativeRule__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__4" - - - // $ANTLR start "rule__NativeRule__Group__4__Impl" - // InternalValid.g:1065:1: rule__NativeRule__Group__4__Impl : ( ( rule__NativeRule__LabelAssignment_4 ) ) ; - public final void rule__NativeRule__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1069:1: ( ( ( rule__NativeRule__LabelAssignment_4 ) ) ) - // InternalValid.g:1070:1: ( ( rule__NativeRule__LabelAssignment_4 ) ) - { - // InternalValid.g:1070:1: ( ( rule__NativeRule__LabelAssignment_4 ) ) - // InternalValid.g:1071:2: ( rule__NativeRule__LabelAssignment_4 ) - { - before(grammarAccess.getNativeRuleAccess().getLabelAssignment_4()); - // InternalValid.g:1072:2: ( rule__NativeRule__LabelAssignment_4 ) - // InternalValid.g:1072:3: rule__NativeRule__LabelAssignment_4 - { - pushFollow(FOLLOW_2); - rule__NativeRule__LabelAssignment_4(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getLabelAssignment_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__4__Impl" - - - // $ANTLR start "rule__NativeRule__Group__5" - // InternalValid.g:1080:1: rule__NativeRule__Group__5 : rule__NativeRule__Group__5__Impl rule__NativeRule__Group__6 ; - public final void rule__NativeRule__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1084:1: ( rule__NativeRule__Group__5__Impl rule__NativeRule__Group__6 ) - // InternalValid.g:1085:2: rule__NativeRule__Group__5__Impl rule__NativeRule__Group__6 - { - pushFollow(FOLLOW_13); - rule__NativeRule__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__5" - - - // $ANTLR start "rule__NativeRule__Group__5__Impl" - // InternalValid.g:1092:1: rule__NativeRule__Group__5__Impl : ( ( rule__NativeRule__Group_5__0 )? ) ; - public final void rule__NativeRule__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1096:1: ( ( ( rule__NativeRule__Group_5__0 )? ) ) - // InternalValid.g:1097:1: ( ( rule__NativeRule__Group_5__0 )? ) - { - // InternalValid.g:1097:1: ( ( rule__NativeRule__Group_5__0 )? ) - // InternalValid.g:1098:2: ( rule__NativeRule__Group_5__0 )? - { - before(grammarAccess.getNativeRuleAccess().getGroup_5()); - // InternalValid.g:1099:2: ( rule__NativeRule__Group_5__0 )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0==23) ) { - alt10=1; - } - switch (alt10) { - case 1 : - // InternalValid.g:1099:3: rule__NativeRule__Group_5__0 - { - pushFollow(FOLLOW_2); - rule__NativeRule__Group_5__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getNativeRuleAccess().getGroup_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__5__Impl" - - - // $ANTLR start "rule__NativeRule__Group__6" - // InternalValid.g:1107:1: rule__NativeRule__Group__6 : rule__NativeRule__Group__6__Impl rule__NativeRule__Group__7 ; - public final void rule__NativeRule__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1111:1: ( rule__NativeRule__Group__6__Impl rule__NativeRule__Group__7 ) - // InternalValid.g:1112:2: rule__NativeRule__Group__6__Impl rule__NativeRule__Group__7 - { - pushFollow(FOLLOW_6); - rule__NativeRule__Group__6__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__7(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__6" - - - // $ANTLR start "rule__NativeRule__Group__6__Impl" - // InternalValid.g:1119:1: rule__NativeRule__Group__6__Impl : ( 'message' ) ; - public final void rule__NativeRule__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1123:1: ( ( 'message' ) ) - // InternalValid.g:1124:1: ( 'message' ) - { - // InternalValid.g:1124:1: ( 'message' ) - // InternalValid.g:1125:2: 'message' - { - before(grammarAccess.getNativeRuleAccess().getMessageKeyword_6()); - match(input,24,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getMessageKeyword_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__6__Impl" - - - // $ANTLR start "rule__NativeRule__Group__7" - // InternalValid.g:1134:1: rule__NativeRule__Group__7 : rule__NativeRule__Group__7__Impl rule__NativeRule__Group__8 ; - public final void rule__NativeRule__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1138:1: ( rule__NativeRule__Group__7__Impl rule__NativeRule__Group__8 ) - // InternalValid.g:1139:2: rule__NativeRule__Group__7__Impl rule__NativeRule__Group__8 - { - pushFollow(FOLLOW_14); - rule__NativeRule__Group__7__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__8(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__7" - - - // $ANTLR start "rule__NativeRule__Group__7__Impl" - // InternalValid.g:1146:1: rule__NativeRule__Group__7__Impl : ( ( rule__NativeRule__MessageAssignment_7 ) ) ; - public final void rule__NativeRule__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1150:1: ( ( ( rule__NativeRule__MessageAssignment_7 ) ) ) - // InternalValid.g:1151:1: ( ( rule__NativeRule__MessageAssignment_7 ) ) - { - // InternalValid.g:1151:1: ( ( rule__NativeRule__MessageAssignment_7 ) ) - // InternalValid.g:1152:2: ( rule__NativeRule__MessageAssignment_7 ) - { - before(grammarAccess.getNativeRuleAccess().getMessageAssignment_7()); - // InternalValid.g:1153:2: ( rule__NativeRule__MessageAssignment_7 ) - // InternalValid.g:1153:3: rule__NativeRule__MessageAssignment_7 - { - pushFollow(FOLLOW_2); - rule__NativeRule__MessageAssignment_7(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getMessageAssignment_7()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__7__Impl" - - - // $ANTLR start "rule__NativeRule__Group__8" - // InternalValid.g:1161:1: rule__NativeRule__Group__8 : rule__NativeRule__Group__8__Impl rule__NativeRule__Group__9 ; - public final void rule__NativeRule__Group__8() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1165:1: ( rule__NativeRule__Group__8__Impl rule__NativeRule__Group__9 ) - // InternalValid.g:1166:2: rule__NativeRule__Group__8__Impl rule__NativeRule__Group__9 - { - pushFollow(FOLLOW_15); - rule__NativeRule__Group__8__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__9(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__8" - - - // $ANTLR start "rule__NativeRule__Group__8__Impl" - // InternalValid.g:1173:1: rule__NativeRule__Group__8__Impl : ( 'context' ) ; - public final void rule__NativeRule__Group__8__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1177:1: ( ( 'context' ) ) - // InternalValid.g:1178:1: ( 'context' ) - { - // InternalValid.g:1178:1: ( 'context' ) - // InternalValid.g:1179:2: 'context' - { - before(grammarAccess.getNativeRuleAccess().getContextKeyword_8()); - match(input,25,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getContextKeyword_8()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__8__Impl" - - - // $ANTLR start "rule__NativeRule__Group__9" - // InternalValid.g:1188:1: rule__NativeRule__Group__9 : rule__NativeRule__Group__9__Impl rule__NativeRule__Group__10 ; - public final void rule__NativeRule__Group__9() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1192:1: ( rule__NativeRule__Group__9__Impl rule__NativeRule__Group__10 ) - // InternalValid.g:1193:2: rule__NativeRule__Group__9__Impl rule__NativeRule__Group__10 - { - pushFollow(FOLLOW_7); - rule__NativeRule__Group__9__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__10(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__9" - - - // $ANTLR start "rule__NativeRule__Group__9__Impl" - // InternalValid.g:1200:1: rule__NativeRule__Group__9__Impl : ( '{' ) ; - public final void rule__NativeRule__Group__9__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1204:1: ( ( '{' ) ) - // InternalValid.g:1205:1: ( '{' ) - { - // InternalValid.g:1205:1: ( '{' ) - // InternalValid.g:1206:2: '{' - { - before(grammarAccess.getNativeRuleAccess().getLeftCurlyBracketKeyword_9()); - match(input,21,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getLeftCurlyBracketKeyword_9()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__9__Impl" - - - // $ANTLR start "rule__NativeRule__Group__10" - // InternalValid.g:1215:1: rule__NativeRule__Group__10 : rule__NativeRule__Group__10__Impl rule__NativeRule__Group__11 ; - public final void rule__NativeRule__Group__10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1219:1: ( rule__NativeRule__Group__10__Impl rule__NativeRule__Group__11 ) - // InternalValid.g:1220:2: rule__NativeRule__Group__10__Impl rule__NativeRule__Group__11 - { - pushFollow(FOLLOW_16); - rule__NativeRule__Group__10__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group__11(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__10" - - - // $ANTLR start "rule__NativeRule__Group__10__Impl" - // InternalValid.g:1227:1: rule__NativeRule__Group__10__Impl : ( ( ( rule__NativeRule__ContextsAssignment_10 ) ) ( ( rule__NativeRule__ContextsAssignment_10 )* ) ) ; - public final void rule__NativeRule__Group__10__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1231:1: ( ( ( ( rule__NativeRule__ContextsAssignment_10 ) ) ( ( rule__NativeRule__ContextsAssignment_10 )* ) ) ) - // InternalValid.g:1232:1: ( ( ( rule__NativeRule__ContextsAssignment_10 ) ) ( ( rule__NativeRule__ContextsAssignment_10 )* ) ) - { - // InternalValid.g:1232:1: ( ( ( rule__NativeRule__ContextsAssignment_10 ) ) ( ( rule__NativeRule__ContextsAssignment_10 )* ) ) - // InternalValid.g:1233:2: ( ( rule__NativeRule__ContextsAssignment_10 ) ) ( ( rule__NativeRule__ContextsAssignment_10 )* ) - { - // InternalValid.g:1233:2: ( ( rule__NativeRule__ContextsAssignment_10 ) ) - // InternalValid.g:1234:3: ( rule__NativeRule__ContextsAssignment_10 ) - { - before(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); - // InternalValid.g:1235:3: ( rule__NativeRule__ContextsAssignment_10 ) - // InternalValid.g:1235:4: rule__NativeRule__ContextsAssignment_10 - { - pushFollow(FOLLOW_17); - rule__NativeRule__ContextsAssignment_10(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); - - } - - // InternalValid.g:1238:2: ( ( rule__NativeRule__ContextsAssignment_10 )* ) - // InternalValid.g:1239:3: ( rule__NativeRule__ContextsAssignment_10 )* - { - before(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); - // InternalValid.g:1240:3: ( rule__NativeRule__ContextsAssignment_10 )* - loop11: - do { - int alt11=2; - int LA11_0 = input.LA(1); - - if ( (LA11_0==RULE_ID) ) { - alt11=1; - } - - - switch (alt11) { - case 1 : - // InternalValid.g:1240:4: rule__NativeRule__ContextsAssignment_10 - { - pushFollow(FOLLOW_17); - rule__NativeRule__ContextsAssignment_10(); - - state._fsp--; - - - } - break; - - default : - break loop11; - } - } while (true); - - after(grammarAccess.getNativeRuleAccess().getContextsAssignment_10()); - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__10__Impl" - - - // $ANTLR start "rule__NativeRule__Group__11" - // InternalValid.g:1249:1: rule__NativeRule__Group__11 : rule__NativeRule__Group__11__Impl ; - public final void rule__NativeRule__Group__11() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1253:1: ( rule__NativeRule__Group__11__Impl ) - // InternalValid.g:1254:2: rule__NativeRule__Group__11__Impl - { - pushFollow(FOLLOW_2); - rule__NativeRule__Group__11__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__11" - - - // $ANTLR start "rule__NativeRule__Group__11__Impl" - // InternalValid.g:1260:1: rule__NativeRule__Group__11__Impl : ( '}' ) ; - public final void rule__NativeRule__Group__11__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1264:1: ( ( '}' ) ) - // InternalValid.g:1265:1: ( '}' ) - { - // InternalValid.g:1265:1: ( '}' ) - // InternalValid.g:1266:2: '}' - { - before(grammarAccess.getNativeRuleAccess().getRightCurlyBracketKeyword_11()); - match(input,22,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getRightCurlyBracketKeyword_11()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group__11__Impl" - - - // $ANTLR start "rule__NativeRule__Group_5__0" - // InternalValid.g:1276:1: rule__NativeRule__Group_5__0 : rule__NativeRule__Group_5__0__Impl rule__NativeRule__Group_5__1 ; - public final void rule__NativeRule__Group_5__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1280:1: ( rule__NativeRule__Group_5__0__Impl rule__NativeRule__Group_5__1 ) - // InternalValid.g:1281:2: rule__NativeRule__Group_5__0__Impl rule__NativeRule__Group_5__1 - { - pushFollow(FOLLOW_6); - rule__NativeRule__Group_5__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeRule__Group_5__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group_5__0" - - - // $ANTLR start "rule__NativeRule__Group_5__0__Impl" - // InternalValid.g:1288:1: rule__NativeRule__Group_5__0__Impl : ( 'description' ) ; - public final void rule__NativeRule__Group_5__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1292:1: ( ( 'description' ) ) - // InternalValid.g:1293:1: ( 'description' ) - { - // InternalValid.g:1293:1: ( 'description' ) - // InternalValid.g:1294:2: 'description' - { - before(grammarAccess.getNativeRuleAccess().getDescriptionKeyword_5_0()); - match(input,23,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getDescriptionKeyword_5_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group_5__0__Impl" - - - // $ANTLR start "rule__NativeRule__Group_5__1" - // InternalValid.g:1303:1: rule__NativeRule__Group_5__1 : rule__NativeRule__Group_5__1__Impl ; - public final void rule__NativeRule__Group_5__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1307:1: ( rule__NativeRule__Group_5__1__Impl ) - // InternalValid.g:1308:2: rule__NativeRule__Group_5__1__Impl - { - pushFollow(FOLLOW_2); - rule__NativeRule__Group_5__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group_5__1" - - - // $ANTLR start "rule__NativeRule__Group_5__1__Impl" - // InternalValid.g:1314:1: rule__NativeRule__Group_5__1__Impl : ( ( rule__NativeRule__DescriptionAssignment_5_1 ) ) ; - public final void rule__NativeRule__Group_5__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1318:1: ( ( ( rule__NativeRule__DescriptionAssignment_5_1 ) ) ) - // InternalValid.g:1319:1: ( ( rule__NativeRule__DescriptionAssignment_5_1 ) ) - { - // InternalValid.g:1319:1: ( ( rule__NativeRule__DescriptionAssignment_5_1 ) ) - // InternalValid.g:1320:2: ( rule__NativeRule__DescriptionAssignment_5_1 ) - { - before(grammarAccess.getNativeRuleAccess().getDescriptionAssignment_5_1()); - // InternalValid.g:1321:2: ( rule__NativeRule__DescriptionAssignment_5_1 ) - // InternalValid.g:1321:3: rule__NativeRule__DescriptionAssignment_5_1 - { - pushFollow(FOLLOW_2); - rule__NativeRule__DescriptionAssignment_5_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getDescriptionAssignment_5_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__Group_5__1__Impl" - - - // $ANTLR start "rule__SizeRule__Group__0" - // InternalValid.g:1330:1: rule__SizeRule__Group__0 : rule__SizeRule__Group__0__Impl rule__SizeRule__Group__1 ; - public final void rule__SizeRule__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1334:1: ( rule__SizeRule__Group__0__Impl rule__SizeRule__Group__1 ) - // InternalValid.g:1335:2: rule__SizeRule__Group__0__Impl rule__SizeRule__Group__1 - { - pushFollow(FOLLOW_18); - rule__SizeRule__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__0" - - - // $ANTLR start "rule__SizeRule__Group__0__Impl" - // InternalValid.g:1342:1: rule__SizeRule__Group__0__Impl : ( ( rule__SizeRule__UnorderedGroup_0 ) ) ; - public final void rule__SizeRule__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1346:1: ( ( ( rule__SizeRule__UnorderedGroup_0 ) ) ) - // InternalValid.g:1347:1: ( ( rule__SizeRule__UnorderedGroup_0 ) ) - { - // InternalValid.g:1347:1: ( ( rule__SizeRule__UnorderedGroup_0 ) ) - // InternalValid.g:1348:2: ( rule__SizeRule__UnorderedGroup_0 ) - { - before(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - // InternalValid.g:1349:2: ( rule__SizeRule__UnorderedGroup_0 ) - // InternalValid.g:1349:3: rule__SizeRule__UnorderedGroup_0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__UnorderedGroup_0(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__0__Impl" - - - // $ANTLR start "rule__SizeRule__Group__1" - // InternalValid.g:1357:1: rule__SizeRule__Group__1 : rule__SizeRule__Group__1__Impl rule__SizeRule__Group__2 ; - public final void rule__SizeRule__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1361:1: ( rule__SizeRule__Group__1__Impl rule__SizeRule__Group__2 ) - // InternalValid.g:1362:2: rule__SizeRule__Group__1__Impl rule__SizeRule__Group__2 - { - pushFollow(FOLLOW_12); - rule__SizeRule__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__1" - - - // $ANTLR start "rule__SizeRule__Group__1__Impl" - // InternalValid.g:1369:1: rule__SizeRule__Group__1__Impl : ( 'size' ) ; - public final void rule__SizeRule__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1373:1: ( ( 'size' ) ) - // InternalValid.g:1374:1: ( 'size' ) - { - // InternalValid.g:1374:1: ( 'size' ) - // InternalValid.g:1375:2: 'size' - { - before(grammarAccess.getSizeRuleAccess().getSizeKeyword_1()); - match(input,26,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getSizeKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__1__Impl" - - - // $ANTLR start "rule__SizeRule__Group__2" - // InternalValid.g:1384:1: rule__SizeRule__Group__2 : rule__SizeRule__Group__2__Impl rule__SizeRule__Group__3 ; - public final void rule__SizeRule__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1388:1: ( rule__SizeRule__Group__2__Impl rule__SizeRule__Group__3 ) - // InternalValid.g:1389:2: rule__SizeRule__Group__2__Impl rule__SizeRule__Group__3 - { - pushFollow(FOLLOW_7); - rule__SizeRule__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__2" - - - // $ANTLR start "rule__SizeRule__Group__2__Impl" - // InternalValid.g:1396:1: rule__SizeRule__Group__2__Impl : ( ( rule__SizeRule__SeverityAssignment_2 ) ) ; - public final void rule__SizeRule__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1400:1: ( ( ( rule__SizeRule__SeverityAssignment_2 ) ) ) - // InternalValid.g:1401:1: ( ( rule__SizeRule__SeverityAssignment_2 ) ) - { - // InternalValid.g:1401:1: ( ( rule__SizeRule__SeverityAssignment_2 ) ) - // InternalValid.g:1402:2: ( rule__SizeRule__SeverityAssignment_2 ) - { - before(grammarAccess.getSizeRuleAccess().getSeverityAssignment_2()); - // InternalValid.g:1403:2: ( rule__SizeRule__SeverityAssignment_2 ) - // InternalValid.g:1403:3: rule__SizeRule__SeverityAssignment_2 - { - pushFollow(FOLLOW_2); - rule__SizeRule__SeverityAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getSeverityAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__2__Impl" - - - // $ANTLR start "rule__SizeRule__Group__3" - // InternalValid.g:1411:1: rule__SizeRule__Group__3 : rule__SizeRule__Group__3__Impl rule__SizeRule__Group__4 ; - public final void rule__SizeRule__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1415:1: ( rule__SizeRule__Group__3__Impl rule__SizeRule__Group__4 ) - // InternalValid.g:1416:2: rule__SizeRule__Group__3__Impl rule__SizeRule__Group__4 - { - pushFollow(FOLLOW_8); - rule__SizeRule__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__3" - - - // $ANTLR start "rule__SizeRule__Group__3__Impl" - // InternalValid.g:1423:1: rule__SizeRule__Group__3__Impl : ( ( rule__SizeRule__NameAssignment_3 ) ) ; - public final void rule__SizeRule__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1427:1: ( ( ( rule__SizeRule__NameAssignment_3 ) ) ) - // InternalValid.g:1428:1: ( ( rule__SizeRule__NameAssignment_3 ) ) - { - // InternalValid.g:1428:1: ( ( rule__SizeRule__NameAssignment_3 ) ) - // InternalValid.g:1429:2: ( rule__SizeRule__NameAssignment_3 ) - { - before(grammarAccess.getSizeRuleAccess().getNameAssignment_3()); - // InternalValid.g:1430:2: ( rule__SizeRule__NameAssignment_3 ) - // InternalValid.g:1430:3: rule__SizeRule__NameAssignment_3 - { - pushFollow(FOLLOW_2); - rule__SizeRule__NameAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getNameAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__3__Impl" - - - // $ANTLR start "rule__SizeRule__Group__4" - // InternalValid.g:1438:1: rule__SizeRule__Group__4 : rule__SizeRule__Group__4__Impl rule__SizeRule__Group__5 ; - public final void rule__SizeRule__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1442:1: ( rule__SizeRule__Group__4__Impl rule__SizeRule__Group__5 ) - // InternalValid.g:1443:2: rule__SizeRule__Group__4__Impl rule__SizeRule__Group__5 - { - pushFollow(FOLLOW_6); - rule__SizeRule__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__4" - - - // $ANTLR start "rule__SizeRule__Group__4__Impl" - // InternalValid.g:1450:1: rule__SizeRule__Group__4__Impl : ( 'label' ) ; - public final void rule__SizeRule__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1454:1: ( ( 'label' ) ) - // InternalValid.g:1455:1: ( 'label' ) - { - // InternalValid.g:1455:1: ( 'label' ) - // InternalValid.g:1456:2: 'label' - { - before(grammarAccess.getSizeRuleAccess().getLabelKeyword_4()); - match(input,20,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getLabelKeyword_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__4__Impl" - - - // $ANTLR start "rule__SizeRule__Group__5" - // InternalValid.g:1465:1: rule__SizeRule__Group__5 : rule__SizeRule__Group__5__Impl rule__SizeRule__Group__6 ; - public final void rule__SizeRule__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1469:1: ( rule__SizeRule__Group__5__Impl rule__SizeRule__Group__6 ) - // InternalValid.g:1470:2: rule__SizeRule__Group__5__Impl rule__SizeRule__Group__6 - { - pushFollow(FOLLOW_19); - rule__SizeRule__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__5" - - - // $ANTLR start "rule__SizeRule__Group__5__Impl" - // InternalValid.g:1477:1: rule__SizeRule__Group__5__Impl : ( ( rule__SizeRule__LabelAssignment_5 ) ) ; - public final void rule__SizeRule__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1481:1: ( ( ( rule__SizeRule__LabelAssignment_5 ) ) ) - // InternalValid.g:1482:1: ( ( rule__SizeRule__LabelAssignment_5 ) ) - { - // InternalValid.g:1482:1: ( ( rule__SizeRule__LabelAssignment_5 ) ) - // InternalValid.g:1483:2: ( rule__SizeRule__LabelAssignment_5 ) - { - before(grammarAccess.getSizeRuleAccess().getLabelAssignment_5()); - // InternalValid.g:1484:2: ( rule__SizeRule__LabelAssignment_5 ) - // InternalValid.g:1484:3: rule__SizeRule__LabelAssignment_5 - { - pushFollow(FOLLOW_2); - rule__SizeRule__LabelAssignment_5(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getLabelAssignment_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__5__Impl" - - - // $ANTLR start "rule__SizeRule__Group__6" - // InternalValid.g:1492:1: rule__SizeRule__Group__6 : rule__SizeRule__Group__6__Impl rule__SizeRule__Group__7 ; - public final void rule__SizeRule__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1496:1: ( rule__SizeRule__Group__6__Impl rule__SizeRule__Group__7 ) - // InternalValid.g:1497:2: rule__SizeRule__Group__6__Impl rule__SizeRule__Group__7 - { - pushFollow(FOLLOW_19); - rule__SizeRule__Group__6__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__7(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__6" - - - // $ANTLR start "rule__SizeRule__Group__6__Impl" - // InternalValid.g:1504:1: rule__SizeRule__Group__6__Impl : ( ( rule__SizeRule__Group_6__0 )? ) ; - public final void rule__SizeRule__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1508:1: ( ( ( rule__SizeRule__Group_6__0 )? ) ) - // InternalValid.g:1509:1: ( ( rule__SizeRule__Group_6__0 )? ) - { - // InternalValid.g:1509:1: ( ( rule__SizeRule__Group_6__0 )? ) - // InternalValid.g:1510:2: ( rule__SizeRule__Group_6__0 )? - { - before(grammarAccess.getSizeRuleAccess().getGroup_6()); - // InternalValid.g:1511:2: ( rule__SizeRule__Group_6__0 )? - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0==23) ) { - alt12=1; - } - switch (alt12) { - case 1 : - // InternalValid.g:1511:3: rule__SizeRule__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group_6__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getSizeRuleAccess().getGroup_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__6__Impl" - - - // $ANTLR start "rule__SizeRule__Group__7" - // InternalValid.g:1519:1: rule__SizeRule__Group__7 : rule__SizeRule__Group__7__Impl rule__SizeRule__Group__8 ; - public final void rule__SizeRule__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1523:1: ( rule__SizeRule__Group__7__Impl rule__SizeRule__Group__8 ) - // InternalValid.g:1524:2: rule__SizeRule__Group__7__Impl rule__SizeRule__Group__8 - { - pushFollow(FOLLOW_19); - rule__SizeRule__Group__7__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__8(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__7" - - - // $ANTLR start "rule__SizeRule__Group__7__Impl" - // InternalValid.g:1531:1: rule__SizeRule__Group__7__Impl : ( ( rule__SizeRule__Group_7__0 )? ) ; - public final void rule__SizeRule__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1535:1: ( ( ( rule__SizeRule__Group_7__0 )? ) ) - // InternalValid.g:1536:1: ( ( rule__SizeRule__Group_7__0 )? ) - { - // InternalValid.g:1536:1: ( ( rule__SizeRule__Group_7__0 )? ) - // InternalValid.g:1537:2: ( rule__SizeRule__Group_7__0 )? - { - before(grammarAccess.getSizeRuleAccess().getGroup_7()); - // InternalValid.g:1538:2: ( rule__SizeRule__Group_7__0 )? - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0==24) ) { - alt13=1; - } - switch (alt13) { - case 1 : - // InternalValid.g:1538:3: rule__SizeRule__Group_7__0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group_7__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getSizeRuleAccess().getGroup_7()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__7__Impl" - - - // $ANTLR start "rule__SizeRule__Group__8" - // InternalValid.g:1546:1: rule__SizeRule__Group__8 : rule__SizeRule__Group__8__Impl rule__SizeRule__Group__9 ; - public final void rule__SizeRule__Group__8() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1550:1: ( rule__SizeRule__Group__8__Impl rule__SizeRule__Group__9 ) - // InternalValid.g:1551:2: rule__SizeRule__Group__8__Impl rule__SizeRule__Group__9 - { - pushFollow(FOLLOW_20); - rule__SizeRule__Group__8__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__9(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__8" - - - // $ANTLR start "rule__SizeRule__Group__8__Impl" - // InternalValid.g:1558:1: rule__SizeRule__Group__8__Impl : ( 'size' ) ; - public final void rule__SizeRule__Group__8__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1562:1: ( ( 'size' ) ) - // InternalValid.g:1563:1: ( 'size' ) - { - // InternalValid.g:1563:1: ( 'size' ) - // InternalValid.g:1564:2: 'size' - { - before(grammarAccess.getSizeRuleAccess().getSizeKeyword_8()); - match(input,26,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getSizeKeyword_8()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__8__Impl" - - - // $ANTLR start "rule__SizeRule__Group__9" - // InternalValid.g:1573:1: rule__SizeRule__Group__9 : rule__SizeRule__Group__9__Impl rule__SizeRule__Group__10 ; - public final void rule__SizeRule__Group__9() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1577:1: ( rule__SizeRule__Group__9__Impl rule__SizeRule__Group__10 ) - // InternalValid.g:1578:2: rule__SizeRule__Group__9__Impl rule__SizeRule__Group__10 - { - pushFollow(FOLLOW_20); - rule__SizeRule__Group__9__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__10(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__9" - - - // $ANTLR start "rule__SizeRule__Group__9__Impl" - // InternalValid.g:1585:1: rule__SizeRule__Group__9__Impl : ( ( rule__SizeRule__Group_9__0 )? ) ; - public final void rule__SizeRule__Group__9__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1589:1: ( ( ( rule__SizeRule__Group_9__0 )? ) ) - // InternalValid.g:1590:1: ( ( rule__SizeRule__Group_9__0 )? ) - { - // InternalValid.g:1590:1: ( ( rule__SizeRule__Group_9__0 )? ) - // InternalValid.g:1591:2: ( rule__SizeRule__Group_9__0 )? - { - before(grammarAccess.getSizeRuleAccess().getGroup_9()); - // InternalValid.g:1592:2: ( rule__SizeRule__Group_9__0 )? - int alt14=2; - int LA14_0 = input.LA(1); - - if ( (LA14_0==RULE_INT) ) { - int LA14_1 = input.LA(2); - - if ( (LA14_1==27) ) { - alt14=1; - } - } - switch (alt14) { - case 1 : - // InternalValid.g:1592:3: rule__SizeRule__Group_9__0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group_9__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getSizeRuleAccess().getGroup_9()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__9__Impl" - - - // $ANTLR start "rule__SizeRule__Group__10" - // InternalValid.g:1600:1: rule__SizeRule__Group__10 : rule__SizeRule__Group__10__Impl rule__SizeRule__Group__11 ; - public final void rule__SizeRule__Group__10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1604:1: ( rule__SizeRule__Group__10__Impl rule__SizeRule__Group__11 ) - // InternalValid.g:1605:2: rule__SizeRule__Group__10__Impl rule__SizeRule__Group__11 - { - pushFollow(FOLLOW_14); - rule__SizeRule__Group__10__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__11(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__10" - - - // $ANTLR start "rule__SizeRule__Group__10__Impl" - // InternalValid.g:1612:1: rule__SizeRule__Group__10__Impl : ( ( rule__SizeRule__MaxAssignment_10 ) ) ; - public final void rule__SizeRule__Group__10__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1616:1: ( ( ( rule__SizeRule__MaxAssignment_10 ) ) ) - // InternalValid.g:1617:1: ( ( rule__SizeRule__MaxAssignment_10 ) ) - { - // InternalValid.g:1617:1: ( ( rule__SizeRule__MaxAssignment_10 ) ) - // InternalValid.g:1618:2: ( rule__SizeRule__MaxAssignment_10 ) - { - before(grammarAccess.getSizeRuleAccess().getMaxAssignment_10()); - // InternalValid.g:1619:2: ( rule__SizeRule__MaxAssignment_10 ) - // InternalValid.g:1619:3: rule__SizeRule__MaxAssignment_10 - { - pushFollow(FOLLOW_2); - rule__SizeRule__MaxAssignment_10(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getMaxAssignment_10()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__10__Impl" - - - // $ANTLR start "rule__SizeRule__Group__11" - // InternalValid.g:1627:1: rule__SizeRule__Group__11 : rule__SizeRule__Group__11__Impl rule__SizeRule__Group__12 ; - public final void rule__SizeRule__Group__11() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1631:1: ( rule__SizeRule__Group__11__Impl rule__SizeRule__Group__12 ) - // InternalValid.g:1632:2: rule__SizeRule__Group__11__Impl rule__SizeRule__Group__12 - { - pushFollow(FOLLOW_15); - rule__SizeRule__Group__11__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__12(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__11" - - - // $ANTLR start "rule__SizeRule__Group__11__Impl" - // InternalValid.g:1639:1: rule__SizeRule__Group__11__Impl : ( 'context' ) ; - public final void rule__SizeRule__Group__11__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1643:1: ( ( 'context' ) ) - // InternalValid.g:1644:1: ( 'context' ) - { - // InternalValid.g:1644:1: ( 'context' ) - // InternalValid.g:1645:2: 'context' - { - before(grammarAccess.getSizeRuleAccess().getContextKeyword_11()); - match(input,25,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getContextKeyword_11()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__11__Impl" - - - // $ANTLR start "rule__SizeRule__Group__12" - // InternalValid.g:1654:1: rule__SizeRule__Group__12 : rule__SizeRule__Group__12__Impl rule__SizeRule__Group__13 ; - public final void rule__SizeRule__Group__12() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1658:1: ( rule__SizeRule__Group__12__Impl rule__SizeRule__Group__13 ) - // InternalValid.g:1659:2: rule__SizeRule__Group__12__Impl rule__SizeRule__Group__13 - { - pushFollow(FOLLOW_7); - rule__SizeRule__Group__12__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__13(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__12" - - - // $ANTLR start "rule__SizeRule__Group__12__Impl" - // InternalValid.g:1666:1: rule__SizeRule__Group__12__Impl : ( '{' ) ; - public final void rule__SizeRule__Group__12__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1670:1: ( ( '{' ) ) - // InternalValid.g:1671:1: ( '{' ) - { - // InternalValid.g:1671:1: ( '{' ) - // InternalValid.g:1672:2: '{' - { - before(grammarAccess.getSizeRuleAccess().getLeftCurlyBracketKeyword_12()); - match(input,21,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getLeftCurlyBracketKeyword_12()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__12__Impl" - - - // $ANTLR start "rule__SizeRule__Group__13" - // InternalValid.g:1681:1: rule__SizeRule__Group__13 : rule__SizeRule__Group__13__Impl rule__SizeRule__Group__14 ; - public final void rule__SizeRule__Group__13() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1685:1: ( rule__SizeRule__Group__13__Impl rule__SizeRule__Group__14 ) - // InternalValid.g:1686:2: rule__SizeRule__Group__13__Impl rule__SizeRule__Group__14 - { - pushFollow(FOLLOW_16); - rule__SizeRule__Group__13__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group__14(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__13" - - - // $ANTLR start "rule__SizeRule__Group__13__Impl" - // InternalValid.g:1693:1: rule__SizeRule__Group__13__Impl : ( ( ( rule__SizeRule__ContextsAssignment_13 ) ) ( ( rule__SizeRule__ContextsAssignment_13 )* ) ) ; - public final void rule__SizeRule__Group__13__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1697:1: ( ( ( ( rule__SizeRule__ContextsAssignment_13 ) ) ( ( rule__SizeRule__ContextsAssignment_13 )* ) ) ) - // InternalValid.g:1698:1: ( ( ( rule__SizeRule__ContextsAssignment_13 ) ) ( ( rule__SizeRule__ContextsAssignment_13 )* ) ) - { - // InternalValid.g:1698:1: ( ( ( rule__SizeRule__ContextsAssignment_13 ) ) ( ( rule__SizeRule__ContextsAssignment_13 )* ) ) - // InternalValid.g:1699:2: ( ( rule__SizeRule__ContextsAssignment_13 ) ) ( ( rule__SizeRule__ContextsAssignment_13 )* ) - { - // InternalValid.g:1699:2: ( ( rule__SizeRule__ContextsAssignment_13 ) ) - // InternalValid.g:1700:3: ( rule__SizeRule__ContextsAssignment_13 ) - { - before(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); - // InternalValid.g:1701:3: ( rule__SizeRule__ContextsAssignment_13 ) - // InternalValid.g:1701:4: rule__SizeRule__ContextsAssignment_13 - { - pushFollow(FOLLOW_17); - rule__SizeRule__ContextsAssignment_13(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); - - } - - // InternalValid.g:1704:2: ( ( rule__SizeRule__ContextsAssignment_13 )* ) - // InternalValid.g:1705:3: ( rule__SizeRule__ContextsAssignment_13 )* - { - before(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); - // InternalValid.g:1706:3: ( rule__SizeRule__ContextsAssignment_13 )* - loop15: - do { - int alt15=2; - int LA15_0 = input.LA(1); - - if ( (LA15_0==RULE_ID) ) { - alt15=1; - } - - - switch (alt15) { - case 1 : - // InternalValid.g:1706:4: rule__SizeRule__ContextsAssignment_13 - { - pushFollow(FOLLOW_17); - rule__SizeRule__ContextsAssignment_13(); - - state._fsp--; - - - } - break; - - default : - break loop15; - } - } while (true); - - after(grammarAccess.getSizeRuleAccess().getContextsAssignment_13()); - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__13__Impl" - - - // $ANTLR start "rule__SizeRule__Group__14" - // InternalValid.g:1715:1: rule__SizeRule__Group__14 : rule__SizeRule__Group__14__Impl ; - public final void rule__SizeRule__Group__14() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1719:1: ( rule__SizeRule__Group__14__Impl ) - // InternalValid.g:1720:2: rule__SizeRule__Group__14__Impl - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group__14__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__14" - - - // $ANTLR start "rule__SizeRule__Group__14__Impl" - // InternalValid.g:1726:1: rule__SizeRule__Group__14__Impl : ( '}' ) ; - public final void rule__SizeRule__Group__14__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1730:1: ( ( '}' ) ) - // InternalValid.g:1731:1: ( '}' ) - { - // InternalValid.g:1731:1: ( '}' ) - // InternalValid.g:1732:2: '}' - { - before(grammarAccess.getSizeRuleAccess().getRightCurlyBracketKeyword_14()); - match(input,22,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getRightCurlyBracketKeyword_14()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group__14__Impl" - - - // $ANTLR start "rule__SizeRule__Group_6__0" - // InternalValid.g:1742:1: rule__SizeRule__Group_6__0 : rule__SizeRule__Group_6__0__Impl rule__SizeRule__Group_6__1 ; - public final void rule__SizeRule__Group_6__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1746:1: ( rule__SizeRule__Group_6__0__Impl rule__SizeRule__Group_6__1 ) - // InternalValid.g:1747:2: rule__SizeRule__Group_6__0__Impl rule__SizeRule__Group_6__1 - { - pushFollow(FOLLOW_6); - rule__SizeRule__Group_6__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group_6__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_6__0" - - - // $ANTLR start "rule__SizeRule__Group_6__0__Impl" - // InternalValid.g:1754:1: rule__SizeRule__Group_6__0__Impl : ( 'description' ) ; - public final void rule__SizeRule__Group_6__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1758:1: ( ( 'description' ) ) - // InternalValid.g:1759:1: ( 'description' ) - { - // InternalValid.g:1759:1: ( 'description' ) - // InternalValid.g:1760:2: 'description' - { - before(grammarAccess.getSizeRuleAccess().getDescriptionKeyword_6_0()); - match(input,23,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getDescriptionKeyword_6_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_6__0__Impl" - - - // $ANTLR start "rule__SizeRule__Group_6__1" - // InternalValid.g:1769:1: rule__SizeRule__Group_6__1 : rule__SizeRule__Group_6__1__Impl ; - public final void rule__SizeRule__Group_6__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1773:1: ( rule__SizeRule__Group_6__1__Impl ) - // InternalValid.g:1774:2: rule__SizeRule__Group_6__1__Impl - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group_6__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_6__1" - - - // $ANTLR start "rule__SizeRule__Group_6__1__Impl" - // InternalValid.g:1780:1: rule__SizeRule__Group_6__1__Impl : ( ( rule__SizeRule__DescriptionAssignment_6_1 ) ) ; - public final void rule__SizeRule__Group_6__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1784:1: ( ( ( rule__SizeRule__DescriptionAssignment_6_1 ) ) ) - // InternalValid.g:1785:1: ( ( rule__SizeRule__DescriptionAssignment_6_1 ) ) - { - // InternalValid.g:1785:1: ( ( rule__SizeRule__DescriptionAssignment_6_1 ) ) - // InternalValid.g:1786:2: ( rule__SizeRule__DescriptionAssignment_6_1 ) - { - before(grammarAccess.getSizeRuleAccess().getDescriptionAssignment_6_1()); - // InternalValid.g:1787:2: ( rule__SizeRule__DescriptionAssignment_6_1 ) - // InternalValid.g:1787:3: rule__SizeRule__DescriptionAssignment_6_1 - { - pushFollow(FOLLOW_2); - rule__SizeRule__DescriptionAssignment_6_1(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getDescriptionAssignment_6_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_6__1__Impl" - - - // $ANTLR start "rule__SizeRule__Group_7__0" - // InternalValid.g:1796:1: rule__SizeRule__Group_7__0 : rule__SizeRule__Group_7__0__Impl rule__SizeRule__Group_7__1 ; - public final void rule__SizeRule__Group_7__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1800:1: ( rule__SizeRule__Group_7__0__Impl rule__SizeRule__Group_7__1 ) - // InternalValid.g:1801:2: rule__SizeRule__Group_7__0__Impl rule__SizeRule__Group_7__1 - { - pushFollow(FOLLOW_6); - rule__SizeRule__Group_7__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group_7__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_7__0" - - - // $ANTLR start "rule__SizeRule__Group_7__0__Impl" - // InternalValid.g:1808:1: rule__SizeRule__Group_7__0__Impl : ( 'message' ) ; - public final void rule__SizeRule__Group_7__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1812:1: ( ( 'message' ) ) - // InternalValid.g:1813:1: ( 'message' ) - { - // InternalValid.g:1813:1: ( 'message' ) - // InternalValid.g:1814:2: 'message' - { - before(grammarAccess.getSizeRuleAccess().getMessageKeyword_7_0()); - match(input,24,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getMessageKeyword_7_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_7__0__Impl" - - - // $ANTLR start "rule__SizeRule__Group_7__1" - // InternalValid.g:1823:1: rule__SizeRule__Group_7__1 : rule__SizeRule__Group_7__1__Impl ; - public final void rule__SizeRule__Group_7__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1827:1: ( rule__SizeRule__Group_7__1__Impl ) - // InternalValid.g:1828:2: rule__SizeRule__Group_7__1__Impl - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group_7__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_7__1" - - - // $ANTLR start "rule__SizeRule__Group_7__1__Impl" - // InternalValid.g:1834:1: rule__SizeRule__Group_7__1__Impl : ( ( rule__SizeRule__MessageAssignment_7_1 ) ) ; - public final void rule__SizeRule__Group_7__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1838:1: ( ( ( rule__SizeRule__MessageAssignment_7_1 ) ) ) - // InternalValid.g:1839:1: ( ( rule__SizeRule__MessageAssignment_7_1 ) ) - { - // InternalValid.g:1839:1: ( ( rule__SizeRule__MessageAssignment_7_1 ) ) - // InternalValid.g:1840:2: ( rule__SizeRule__MessageAssignment_7_1 ) - { - before(grammarAccess.getSizeRuleAccess().getMessageAssignment_7_1()); - // InternalValid.g:1841:2: ( rule__SizeRule__MessageAssignment_7_1 ) - // InternalValid.g:1841:3: rule__SizeRule__MessageAssignment_7_1 - { - pushFollow(FOLLOW_2); - rule__SizeRule__MessageAssignment_7_1(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getMessageAssignment_7_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_7__1__Impl" - - - // $ANTLR start "rule__SizeRule__Group_9__0" - // InternalValid.g:1850:1: rule__SizeRule__Group_9__0 : rule__SizeRule__Group_9__0__Impl rule__SizeRule__Group_9__1 ; - public final void rule__SizeRule__Group_9__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1854:1: ( rule__SizeRule__Group_9__0__Impl rule__SizeRule__Group_9__1 ) - // InternalValid.g:1855:2: rule__SizeRule__Group_9__0__Impl rule__SizeRule__Group_9__1 - { - pushFollow(FOLLOW_21); - rule__SizeRule__Group_9__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SizeRule__Group_9__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_9__0" - - - // $ANTLR start "rule__SizeRule__Group_9__0__Impl" - // InternalValid.g:1862:1: rule__SizeRule__Group_9__0__Impl : ( ( rule__SizeRule__MinAssignment_9_0 ) ) ; - public final void rule__SizeRule__Group_9__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1866:1: ( ( ( rule__SizeRule__MinAssignment_9_0 ) ) ) - // InternalValid.g:1867:1: ( ( rule__SizeRule__MinAssignment_9_0 ) ) - { - // InternalValid.g:1867:1: ( ( rule__SizeRule__MinAssignment_9_0 ) ) - // InternalValid.g:1868:2: ( rule__SizeRule__MinAssignment_9_0 ) - { - before(grammarAccess.getSizeRuleAccess().getMinAssignment_9_0()); - // InternalValid.g:1869:2: ( rule__SizeRule__MinAssignment_9_0 ) - // InternalValid.g:1869:3: rule__SizeRule__MinAssignment_9_0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__MinAssignment_9_0(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getMinAssignment_9_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_9__0__Impl" - - - // $ANTLR start "rule__SizeRule__Group_9__1" - // InternalValid.g:1877:1: rule__SizeRule__Group_9__1 : rule__SizeRule__Group_9__1__Impl ; - public final void rule__SizeRule__Group_9__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1881:1: ( rule__SizeRule__Group_9__1__Impl ) - // InternalValid.g:1882:2: rule__SizeRule__Group_9__1__Impl - { - pushFollow(FOLLOW_2); - rule__SizeRule__Group_9__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_9__1" - - - // $ANTLR start "rule__SizeRule__Group_9__1__Impl" - // InternalValid.g:1888:1: rule__SizeRule__Group_9__1__Impl : ( '..' ) ; - public final void rule__SizeRule__Group_9__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1892:1: ( ( '..' ) ) - // InternalValid.g:1893:1: ( '..' ) - { - // InternalValid.g:1893:1: ( '..' ) - // InternalValid.g:1894:2: '..' - { - before(grammarAccess.getSizeRuleAccess().getFullStopFullStopKeyword_9_1()); - match(input,27,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getFullStopFullStopKeyword_9_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__Group_9__1__Impl" - - - // $ANTLR start "rule__RangeRule__Group__0" - // InternalValid.g:1904:1: rule__RangeRule__Group__0 : rule__RangeRule__Group__0__Impl rule__RangeRule__Group__1 ; - public final void rule__RangeRule__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1908:1: ( rule__RangeRule__Group__0__Impl rule__RangeRule__Group__1 ) - // InternalValid.g:1909:2: rule__RangeRule__Group__0__Impl rule__RangeRule__Group__1 - { - pushFollow(FOLLOW_22); - rule__RangeRule__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__0" - - - // $ANTLR start "rule__RangeRule__Group__0__Impl" - // InternalValid.g:1916:1: rule__RangeRule__Group__0__Impl : ( ( rule__RangeRule__UnorderedGroup_0 ) ) ; - public final void rule__RangeRule__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1920:1: ( ( ( rule__RangeRule__UnorderedGroup_0 ) ) ) - // InternalValid.g:1921:1: ( ( rule__RangeRule__UnorderedGroup_0 ) ) - { - // InternalValid.g:1921:1: ( ( rule__RangeRule__UnorderedGroup_0 ) ) - // InternalValid.g:1922:2: ( rule__RangeRule__UnorderedGroup_0 ) - { - before(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - // InternalValid.g:1923:2: ( rule__RangeRule__UnorderedGroup_0 ) - // InternalValid.g:1923:3: rule__RangeRule__UnorderedGroup_0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__UnorderedGroup_0(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__0__Impl" - - - // $ANTLR start "rule__RangeRule__Group__1" - // InternalValid.g:1931:1: rule__RangeRule__Group__1 : rule__RangeRule__Group__1__Impl rule__RangeRule__Group__2 ; - public final void rule__RangeRule__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1935:1: ( rule__RangeRule__Group__1__Impl rule__RangeRule__Group__2 ) - // InternalValid.g:1936:2: rule__RangeRule__Group__1__Impl rule__RangeRule__Group__2 - { - pushFollow(FOLLOW_12); - rule__RangeRule__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__1" - - - // $ANTLR start "rule__RangeRule__Group__1__Impl" - // InternalValid.g:1943:1: rule__RangeRule__Group__1__Impl : ( 'range' ) ; - public final void rule__RangeRule__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1947:1: ( ( 'range' ) ) - // InternalValid.g:1948:1: ( 'range' ) - { - // InternalValid.g:1948:1: ( 'range' ) - // InternalValid.g:1949:2: 'range' - { - before(grammarAccess.getRangeRuleAccess().getRangeKeyword_1()); - match(input,28,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getRangeKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__1__Impl" - - - // $ANTLR start "rule__RangeRule__Group__2" - // InternalValid.g:1958:1: rule__RangeRule__Group__2 : rule__RangeRule__Group__2__Impl rule__RangeRule__Group__3 ; - public final void rule__RangeRule__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1962:1: ( rule__RangeRule__Group__2__Impl rule__RangeRule__Group__3 ) - // InternalValid.g:1963:2: rule__RangeRule__Group__2__Impl rule__RangeRule__Group__3 - { - pushFollow(FOLLOW_7); - rule__RangeRule__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__2" - - - // $ANTLR start "rule__RangeRule__Group__2__Impl" - // InternalValid.g:1970:1: rule__RangeRule__Group__2__Impl : ( ( rule__RangeRule__SeverityAssignment_2 ) ) ; - public final void rule__RangeRule__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1974:1: ( ( ( rule__RangeRule__SeverityAssignment_2 ) ) ) - // InternalValid.g:1975:1: ( ( rule__RangeRule__SeverityAssignment_2 ) ) - { - // InternalValid.g:1975:1: ( ( rule__RangeRule__SeverityAssignment_2 ) ) - // InternalValid.g:1976:2: ( rule__RangeRule__SeverityAssignment_2 ) - { - before(grammarAccess.getRangeRuleAccess().getSeverityAssignment_2()); - // InternalValid.g:1977:2: ( rule__RangeRule__SeverityAssignment_2 ) - // InternalValid.g:1977:3: rule__RangeRule__SeverityAssignment_2 - { - pushFollow(FOLLOW_2); - rule__RangeRule__SeverityAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getSeverityAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__2__Impl" - - - // $ANTLR start "rule__RangeRule__Group__3" - // InternalValid.g:1985:1: rule__RangeRule__Group__3 : rule__RangeRule__Group__3__Impl rule__RangeRule__Group__4 ; - public final void rule__RangeRule__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:1989:1: ( rule__RangeRule__Group__3__Impl rule__RangeRule__Group__4 ) - // InternalValid.g:1990:2: rule__RangeRule__Group__3__Impl rule__RangeRule__Group__4 - { - pushFollow(FOLLOW_8); - rule__RangeRule__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__3" - - - // $ANTLR start "rule__RangeRule__Group__3__Impl" - // InternalValid.g:1997:1: rule__RangeRule__Group__3__Impl : ( ( rule__RangeRule__NameAssignment_3 ) ) ; - public final void rule__RangeRule__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2001:1: ( ( ( rule__RangeRule__NameAssignment_3 ) ) ) - // InternalValid.g:2002:1: ( ( rule__RangeRule__NameAssignment_3 ) ) - { - // InternalValid.g:2002:1: ( ( rule__RangeRule__NameAssignment_3 ) ) - // InternalValid.g:2003:2: ( rule__RangeRule__NameAssignment_3 ) - { - before(grammarAccess.getRangeRuleAccess().getNameAssignment_3()); - // InternalValid.g:2004:2: ( rule__RangeRule__NameAssignment_3 ) - // InternalValid.g:2004:3: rule__RangeRule__NameAssignment_3 - { - pushFollow(FOLLOW_2); - rule__RangeRule__NameAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getNameAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__3__Impl" - - - // $ANTLR start "rule__RangeRule__Group__4" - // InternalValid.g:2012:1: rule__RangeRule__Group__4 : rule__RangeRule__Group__4__Impl rule__RangeRule__Group__5 ; - public final void rule__RangeRule__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2016:1: ( rule__RangeRule__Group__4__Impl rule__RangeRule__Group__5 ) - // InternalValid.g:2017:2: rule__RangeRule__Group__4__Impl rule__RangeRule__Group__5 - { - pushFollow(FOLLOW_6); - rule__RangeRule__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__4" - - - // $ANTLR start "rule__RangeRule__Group__4__Impl" - // InternalValid.g:2024:1: rule__RangeRule__Group__4__Impl : ( 'label' ) ; - public final void rule__RangeRule__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2028:1: ( ( 'label' ) ) - // InternalValid.g:2029:1: ( 'label' ) - { - // InternalValid.g:2029:1: ( 'label' ) - // InternalValid.g:2030:2: 'label' - { - before(grammarAccess.getRangeRuleAccess().getLabelKeyword_4()); - match(input,20,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getLabelKeyword_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__4__Impl" - - - // $ANTLR start "rule__RangeRule__Group__5" - // InternalValid.g:2039:1: rule__RangeRule__Group__5 : rule__RangeRule__Group__5__Impl rule__RangeRule__Group__6 ; - public final void rule__RangeRule__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2043:1: ( rule__RangeRule__Group__5__Impl rule__RangeRule__Group__6 ) - // InternalValid.g:2044:2: rule__RangeRule__Group__5__Impl rule__RangeRule__Group__6 - { - pushFollow(FOLLOW_23); - rule__RangeRule__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__5" - - - // $ANTLR start "rule__RangeRule__Group__5__Impl" - // InternalValid.g:2051:1: rule__RangeRule__Group__5__Impl : ( ( rule__RangeRule__LabelAssignment_5 ) ) ; - public final void rule__RangeRule__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2055:1: ( ( ( rule__RangeRule__LabelAssignment_5 ) ) ) - // InternalValid.g:2056:1: ( ( rule__RangeRule__LabelAssignment_5 ) ) - { - // InternalValid.g:2056:1: ( ( rule__RangeRule__LabelAssignment_5 ) ) - // InternalValid.g:2057:2: ( rule__RangeRule__LabelAssignment_5 ) - { - before(grammarAccess.getRangeRuleAccess().getLabelAssignment_5()); - // InternalValid.g:2058:2: ( rule__RangeRule__LabelAssignment_5 ) - // InternalValid.g:2058:3: rule__RangeRule__LabelAssignment_5 - { - pushFollow(FOLLOW_2); - rule__RangeRule__LabelAssignment_5(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getLabelAssignment_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__5__Impl" - - - // $ANTLR start "rule__RangeRule__Group__6" - // InternalValid.g:2066:1: rule__RangeRule__Group__6 : rule__RangeRule__Group__6__Impl rule__RangeRule__Group__7 ; - public final void rule__RangeRule__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2070:1: ( rule__RangeRule__Group__6__Impl rule__RangeRule__Group__7 ) - // InternalValid.g:2071:2: rule__RangeRule__Group__6__Impl rule__RangeRule__Group__7 - { - pushFollow(FOLLOW_23); - rule__RangeRule__Group__6__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__7(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__6" - - - // $ANTLR start "rule__RangeRule__Group__6__Impl" - // InternalValid.g:2078:1: rule__RangeRule__Group__6__Impl : ( ( rule__RangeRule__Group_6__0 )? ) ; - public final void rule__RangeRule__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2082:1: ( ( ( rule__RangeRule__Group_6__0 )? ) ) - // InternalValid.g:2083:1: ( ( rule__RangeRule__Group_6__0 )? ) - { - // InternalValid.g:2083:1: ( ( rule__RangeRule__Group_6__0 )? ) - // InternalValid.g:2084:2: ( rule__RangeRule__Group_6__0 )? - { - before(grammarAccess.getRangeRuleAccess().getGroup_6()); - // InternalValid.g:2085:2: ( rule__RangeRule__Group_6__0 )? - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0==23) ) { - alt16=1; - } - switch (alt16) { - case 1 : - // InternalValid.g:2085:3: rule__RangeRule__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group_6__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getRangeRuleAccess().getGroup_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__6__Impl" - - - // $ANTLR start "rule__RangeRule__Group__7" - // InternalValid.g:2093:1: rule__RangeRule__Group__7 : rule__RangeRule__Group__7__Impl rule__RangeRule__Group__8 ; - public final void rule__RangeRule__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2097:1: ( rule__RangeRule__Group__7__Impl rule__RangeRule__Group__8 ) - // InternalValid.g:2098:2: rule__RangeRule__Group__7__Impl rule__RangeRule__Group__8 - { - pushFollow(FOLLOW_23); - rule__RangeRule__Group__7__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__8(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__7" - - - // $ANTLR start "rule__RangeRule__Group__7__Impl" - // InternalValid.g:2105:1: rule__RangeRule__Group__7__Impl : ( ( rule__RangeRule__Group_7__0 )? ) ; - public final void rule__RangeRule__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2109:1: ( ( ( rule__RangeRule__Group_7__0 )? ) ) - // InternalValid.g:2110:1: ( ( rule__RangeRule__Group_7__0 )? ) - { - // InternalValid.g:2110:1: ( ( rule__RangeRule__Group_7__0 )? ) - // InternalValid.g:2111:2: ( rule__RangeRule__Group_7__0 )? - { - before(grammarAccess.getRangeRuleAccess().getGroup_7()); - // InternalValid.g:2112:2: ( rule__RangeRule__Group_7__0 )? - int alt17=2; - int LA17_0 = input.LA(1); - - if ( (LA17_0==24) ) { - alt17=1; - } - switch (alt17) { - case 1 : - // InternalValid.g:2112:3: rule__RangeRule__Group_7__0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group_7__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getRangeRuleAccess().getGroup_7()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__7__Impl" - - - // $ANTLR start "rule__RangeRule__Group__8" - // InternalValid.g:2120:1: rule__RangeRule__Group__8 : rule__RangeRule__Group__8__Impl rule__RangeRule__Group__9 ; - public final void rule__RangeRule__Group__8() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2124:1: ( rule__RangeRule__Group__8__Impl rule__RangeRule__Group__9 ) - // InternalValid.g:2125:2: rule__RangeRule__Group__8__Impl rule__RangeRule__Group__9 - { - pushFollow(FOLLOW_20); - rule__RangeRule__Group__8__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__9(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__8" - - - // $ANTLR start "rule__RangeRule__Group__8__Impl" - // InternalValid.g:2132:1: rule__RangeRule__Group__8__Impl : ( 'range' ) ; - public final void rule__RangeRule__Group__8__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2136:1: ( ( 'range' ) ) - // InternalValid.g:2137:1: ( 'range' ) - { - // InternalValid.g:2137:1: ( 'range' ) - // InternalValid.g:2138:2: 'range' - { - before(grammarAccess.getRangeRuleAccess().getRangeKeyword_8()); - match(input,28,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getRangeKeyword_8()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__8__Impl" - - - // $ANTLR start "rule__RangeRule__Group__9" - // InternalValid.g:2147:1: rule__RangeRule__Group__9 : rule__RangeRule__Group__9__Impl rule__RangeRule__Group__10 ; - public final void rule__RangeRule__Group__9() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2151:1: ( rule__RangeRule__Group__9__Impl rule__RangeRule__Group__10 ) - // InternalValid.g:2152:2: rule__RangeRule__Group__9__Impl rule__RangeRule__Group__10 - { - pushFollow(FOLLOW_20); - rule__RangeRule__Group__9__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__10(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__9" - - - // $ANTLR start "rule__RangeRule__Group__9__Impl" - // InternalValid.g:2159:1: rule__RangeRule__Group__9__Impl : ( ( rule__RangeRule__Group_9__0 )? ) ; - public final void rule__RangeRule__Group__9__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2163:1: ( ( ( rule__RangeRule__Group_9__0 )? ) ) - // InternalValid.g:2164:1: ( ( rule__RangeRule__Group_9__0 )? ) - { - // InternalValid.g:2164:1: ( ( rule__RangeRule__Group_9__0 )? ) - // InternalValid.g:2165:2: ( rule__RangeRule__Group_9__0 )? - { - before(grammarAccess.getRangeRuleAccess().getGroup_9()); - // InternalValid.g:2166:2: ( rule__RangeRule__Group_9__0 )? - int alt18=2; - int LA18_0 = input.LA(1); - - if ( (LA18_0==RULE_INT) ) { - int LA18_1 = input.LA(2); - - if ( (LA18_1==27) ) { - alt18=1; - } - } - switch (alt18) { - case 1 : - // InternalValid.g:2166:3: rule__RangeRule__Group_9__0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group_9__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getRangeRuleAccess().getGroup_9()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__9__Impl" - - - // $ANTLR start "rule__RangeRule__Group__10" - // InternalValid.g:2174:1: rule__RangeRule__Group__10 : rule__RangeRule__Group__10__Impl rule__RangeRule__Group__11 ; - public final void rule__RangeRule__Group__10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2178:1: ( rule__RangeRule__Group__10__Impl rule__RangeRule__Group__11 ) - // InternalValid.g:2179:2: rule__RangeRule__Group__10__Impl rule__RangeRule__Group__11 - { - pushFollow(FOLLOW_14); - rule__RangeRule__Group__10__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__11(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__10" - - - // $ANTLR start "rule__RangeRule__Group__10__Impl" - // InternalValid.g:2186:1: rule__RangeRule__Group__10__Impl : ( ( rule__RangeRule__MaxAssignment_10 ) ) ; - public final void rule__RangeRule__Group__10__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2190:1: ( ( ( rule__RangeRule__MaxAssignment_10 ) ) ) - // InternalValid.g:2191:1: ( ( rule__RangeRule__MaxAssignment_10 ) ) - { - // InternalValid.g:2191:1: ( ( rule__RangeRule__MaxAssignment_10 ) ) - // InternalValid.g:2192:2: ( rule__RangeRule__MaxAssignment_10 ) - { - before(grammarAccess.getRangeRuleAccess().getMaxAssignment_10()); - // InternalValid.g:2193:2: ( rule__RangeRule__MaxAssignment_10 ) - // InternalValid.g:2193:3: rule__RangeRule__MaxAssignment_10 - { - pushFollow(FOLLOW_2); - rule__RangeRule__MaxAssignment_10(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getMaxAssignment_10()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__10__Impl" - - - // $ANTLR start "rule__RangeRule__Group__11" - // InternalValid.g:2201:1: rule__RangeRule__Group__11 : rule__RangeRule__Group__11__Impl rule__RangeRule__Group__12 ; - public final void rule__RangeRule__Group__11() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2205:1: ( rule__RangeRule__Group__11__Impl rule__RangeRule__Group__12 ) - // InternalValid.g:2206:2: rule__RangeRule__Group__11__Impl rule__RangeRule__Group__12 - { - pushFollow(FOLLOW_15); - rule__RangeRule__Group__11__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__12(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__11" - - - // $ANTLR start "rule__RangeRule__Group__11__Impl" - // InternalValid.g:2213:1: rule__RangeRule__Group__11__Impl : ( 'context' ) ; - public final void rule__RangeRule__Group__11__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2217:1: ( ( 'context' ) ) - // InternalValid.g:2218:1: ( 'context' ) - { - // InternalValid.g:2218:1: ( 'context' ) - // InternalValid.g:2219:2: 'context' - { - before(grammarAccess.getRangeRuleAccess().getContextKeyword_11()); - match(input,25,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getContextKeyword_11()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__11__Impl" - - - // $ANTLR start "rule__RangeRule__Group__12" - // InternalValid.g:2228:1: rule__RangeRule__Group__12 : rule__RangeRule__Group__12__Impl rule__RangeRule__Group__13 ; - public final void rule__RangeRule__Group__12() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2232:1: ( rule__RangeRule__Group__12__Impl rule__RangeRule__Group__13 ) - // InternalValid.g:2233:2: rule__RangeRule__Group__12__Impl rule__RangeRule__Group__13 - { - pushFollow(FOLLOW_7); - rule__RangeRule__Group__12__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__13(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__12" - - - // $ANTLR start "rule__RangeRule__Group__12__Impl" - // InternalValid.g:2240:1: rule__RangeRule__Group__12__Impl : ( '{' ) ; - public final void rule__RangeRule__Group__12__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2244:1: ( ( '{' ) ) - // InternalValid.g:2245:1: ( '{' ) - { - // InternalValid.g:2245:1: ( '{' ) - // InternalValid.g:2246:2: '{' - { - before(grammarAccess.getRangeRuleAccess().getLeftCurlyBracketKeyword_12()); - match(input,21,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getLeftCurlyBracketKeyword_12()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__12__Impl" - - - // $ANTLR start "rule__RangeRule__Group__13" - // InternalValid.g:2255:1: rule__RangeRule__Group__13 : rule__RangeRule__Group__13__Impl rule__RangeRule__Group__14 ; - public final void rule__RangeRule__Group__13() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2259:1: ( rule__RangeRule__Group__13__Impl rule__RangeRule__Group__14 ) - // InternalValid.g:2260:2: rule__RangeRule__Group__13__Impl rule__RangeRule__Group__14 - { - pushFollow(FOLLOW_16); - rule__RangeRule__Group__13__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group__14(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__13" - - - // $ANTLR start "rule__RangeRule__Group__13__Impl" - // InternalValid.g:2267:1: rule__RangeRule__Group__13__Impl : ( ( ( rule__RangeRule__ContextsAssignment_13 ) ) ( ( rule__RangeRule__ContextsAssignment_13 )* ) ) ; - public final void rule__RangeRule__Group__13__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2271:1: ( ( ( ( rule__RangeRule__ContextsAssignment_13 ) ) ( ( rule__RangeRule__ContextsAssignment_13 )* ) ) ) - // InternalValid.g:2272:1: ( ( ( rule__RangeRule__ContextsAssignment_13 ) ) ( ( rule__RangeRule__ContextsAssignment_13 )* ) ) - { - // InternalValid.g:2272:1: ( ( ( rule__RangeRule__ContextsAssignment_13 ) ) ( ( rule__RangeRule__ContextsAssignment_13 )* ) ) - // InternalValid.g:2273:2: ( ( rule__RangeRule__ContextsAssignment_13 ) ) ( ( rule__RangeRule__ContextsAssignment_13 )* ) - { - // InternalValid.g:2273:2: ( ( rule__RangeRule__ContextsAssignment_13 ) ) - // InternalValid.g:2274:3: ( rule__RangeRule__ContextsAssignment_13 ) - { - before(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); - // InternalValid.g:2275:3: ( rule__RangeRule__ContextsAssignment_13 ) - // InternalValid.g:2275:4: rule__RangeRule__ContextsAssignment_13 - { - pushFollow(FOLLOW_17); - rule__RangeRule__ContextsAssignment_13(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); - - } - - // InternalValid.g:2278:2: ( ( rule__RangeRule__ContextsAssignment_13 )* ) - // InternalValid.g:2279:3: ( rule__RangeRule__ContextsAssignment_13 )* - { - before(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); - // InternalValid.g:2280:3: ( rule__RangeRule__ContextsAssignment_13 )* - loop19: - do { - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0==RULE_ID) ) { - alt19=1; - } - - - switch (alt19) { - case 1 : - // InternalValid.g:2280:4: rule__RangeRule__ContextsAssignment_13 - { - pushFollow(FOLLOW_17); - rule__RangeRule__ContextsAssignment_13(); - - state._fsp--; - - - } - break; - - default : - break loop19; - } - } while (true); - - after(grammarAccess.getRangeRuleAccess().getContextsAssignment_13()); - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__13__Impl" - - - // $ANTLR start "rule__RangeRule__Group__14" - // InternalValid.g:2289:1: rule__RangeRule__Group__14 : rule__RangeRule__Group__14__Impl ; - public final void rule__RangeRule__Group__14() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2293:1: ( rule__RangeRule__Group__14__Impl ) - // InternalValid.g:2294:2: rule__RangeRule__Group__14__Impl - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group__14__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__14" - - - // $ANTLR start "rule__RangeRule__Group__14__Impl" - // InternalValid.g:2300:1: rule__RangeRule__Group__14__Impl : ( '}' ) ; - public final void rule__RangeRule__Group__14__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2304:1: ( ( '}' ) ) - // InternalValid.g:2305:1: ( '}' ) - { - // InternalValid.g:2305:1: ( '}' ) - // InternalValid.g:2306:2: '}' - { - before(grammarAccess.getRangeRuleAccess().getRightCurlyBracketKeyword_14()); - match(input,22,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getRightCurlyBracketKeyword_14()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group__14__Impl" - - - // $ANTLR start "rule__RangeRule__Group_6__0" - // InternalValid.g:2316:1: rule__RangeRule__Group_6__0 : rule__RangeRule__Group_6__0__Impl rule__RangeRule__Group_6__1 ; - public final void rule__RangeRule__Group_6__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2320:1: ( rule__RangeRule__Group_6__0__Impl rule__RangeRule__Group_6__1 ) - // InternalValid.g:2321:2: rule__RangeRule__Group_6__0__Impl rule__RangeRule__Group_6__1 - { - pushFollow(FOLLOW_6); - rule__RangeRule__Group_6__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group_6__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_6__0" - - - // $ANTLR start "rule__RangeRule__Group_6__0__Impl" - // InternalValid.g:2328:1: rule__RangeRule__Group_6__0__Impl : ( 'description' ) ; - public final void rule__RangeRule__Group_6__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2332:1: ( ( 'description' ) ) - // InternalValid.g:2333:1: ( 'description' ) - { - // InternalValid.g:2333:1: ( 'description' ) - // InternalValid.g:2334:2: 'description' - { - before(grammarAccess.getRangeRuleAccess().getDescriptionKeyword_6_0()); - match(input,23,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getDescriptionKeyword_6_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_6__0__Impl" - - - // $ANTLR start "rule__RangeRule__Group_6__1" - // InternalValid.g:2343:1: rule__RangeRule__Group_6__1 : rule__RangeRule__Group_6__1__Impl ; - public final void rule__RangeRule__Group_6__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2347:1: ( rule__RangeRule__Group_6__1__Impl ) - // InternalValid.g:2348:2: rule__RangeRule__Group_6__1__Impl - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group_6__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_6__1" - - - // $ANTLR start "rule__RangeRule__Group_6__1__Impl" - // InternalValid.g:2354:1: rule__RangeRule__Group_6__1__Impl : ( ( rule__RangeRule__DescriptionAssignment_6_1 ) ) ; - public final void rule__RangeRule__Group_6__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2358:1: ( ( ( rule__RangeRule__DescriptionAssignment_6_1 ) ) ) - // InternalValid.g:2359:1: ( ( rule__RangeRule__DescriptionAssignment_6_1 ) ) - { - // InternalValid.g:2359:1: ( ( rule__RangeRule__DescriptionAssignment_6_1 ) ) - // InternalValid.g:2360:2: ( rule__RangeRule__DescriptionAssignment_6_1 ) - { - before(grammarAccess.getRangeRuleAccess().getDescriptionAssignment_6_1()); - // InternalValid.g:2361:2: ( rule__RangeRule__DescriptionAssignment_6_1 ) - // InternalValid.g:2361:3: rule__RangeRule__DescriptionAssignment_6_1 - { - pushFollow(FOLLOW_2); - rule__RangeRule__DescriptionAssignment_6_1(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getDescriptionAssignment_6_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_6__1__Impl" - - - // $ANTLR start "rule__RangeRule__Group_7__0" - // InternalValid.g:2370:1: rule__RangeRule__Group_7__0 : rule__RangeRule__Group_7__0__Impl rule__RangeRule__Group_7__1 ; - public final void rule__RangeRule__Group_7__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2374:1: ( rule__RangeRule__Group_7__0__Impl rule__RangeRule__Group_7__1 ) - // InternalValid.g:2375:2: rule__RangeRule__Group_7__0__Impl rule__RangeRule__Group_7__1 - { - pushFollow(FOLLOW_6); - rule__RangeRule__Group_7__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group_7__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_7__0" - - - // $ANTLR start "rule__RangeRule__Group_7__0__Impl" - // InternalValid.g:2382:1: rule__RangeRule__Group_7__0__Impl : ( 'message' ) ; - public final void rule__RangeRule__Group_7__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2386:1: ( ( 'message' ) ) - // InternalValid.g:2387:1: ( 'message' ) - { - // InternalValid.g:2387:1: ( 'message' ) - // InternalValid.g:2388:2: 'message' - { - before(grammarAccess.getRangeRuleAccess().getMessageKeyword_7_0()); - match(input,24,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getMessageKeyword_7_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_7__0__Impl" - - - // $ANTLR start "rule__RangeRule__Group_7__1" - // InternalValid.g:2397:1: rule__RangeRule__Group_7__1 : rule__RangeRule__Group_7__1__Impl ; - public final void rule__RangeRule__Group_7__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2401:1: ( rule__RangeRule__Group_7__1__Impl ) - // InternalValid.g:2402:2: rule__RangeRule__Group_7__1__Impl - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group_7__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_7__1" - - - // $ANTLR start "rule__RangeRule__Group_7__1__Impl" - // InternalValid.g:2408:1: rule__RangeRule__Group_7__1__Impl : ( ( rule__RangeRule__MessageAssignment_7_1 ) ) ; - public final void rule__RangeRule__Group_7__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2412:1: ( ( ( rule__RangeRule__MessageAssignment_7_1 ) ) ) - // InternalValid.g:2413:1: ( ( rule__RangeRule__MessageAssignment_7_1 ) ) - { - // InternalValid.g:2413:1: ( ( rule__RangeRule__MessageAssignment_7_1 ) ) - // InternalValid.g:2414:2: ( rule__RangeRule__MessageAssignment_7_1 ) - { - before(grammarAccess.getRangeRuleAccess().getMessageAssignment_7_1()); - // InternalValid.g:2415:2: ( rule__RangeRule__MessageAssignment_7_1 ) - // InternalValid.g:2415:3: rule__RangeRule__MessageAssignment_7_1 - { - pushFollow(FOLLOW_2); - rule__RangeRule__MessageAssignment_7_1(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getMessageAssignment_7_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_7__1__Impl" - - - // $ANTLR start "rule__RangeRule__Group_9__0" - // InternalValid.g:2424:1: rule__RangeRule__Group_9__0 : rule__RangeRule__Group_9__0__Impl rule__RangeRule__Group_9__1 ; - public final void rule__RangeRule__Group_9__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2428:1: ( rule__RangeRule__Group_9__0__Impl rule__RangeRule__Group_9__1 ) - // InternalValid.g:2429:2: rule__RangeRule__Group_9__0__Impl rule__RangeRule__Group_9__1 - { - pushFollow(FOLLOW_21); - rule__RangeRule__Group_9__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__RangeRule__Group_9__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_9__0" - - - // $ANTLR start "rule__RangeRule__Group_9__0__Impl" - // InternalValid.g:2436:1: rule__RangeRule__Group_9__0__Impl : ( ( rule__RangeRule__MinAssignment_9_0 ) ) ; - public final void rule__RangeRule__Group_9__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2440:1: ( ( ( rule__RangeRule__MinAssignment_9_0 ) ) ) - // InternalValid.g:2441:1: ( ( rule__RangeRule__MinAssignment_9_0 ) ) - { - // InternalValid.g:2441:1: ( ( rule__RangeRule__MinAssignment_9_0 ) ) - // InternalValid.g:2442:2: ( rule__RangeRule__MinAssignment_9_0 ) - { - before(grammarAccess.getRangeRuleAccess().getMinAssignment_9_0()); - // InternalValid.g:2443:2: ( rule__RangeRule__MinAssignment_9_0 ) - // InternalValid.g:2443:3: rule__RangeRule__MinAssignment_9_0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__MinAssignment_9_0(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getMinAssignment_9_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_9__0__Impl" - - - // $ANTLR start "rule__RangeRule__Group_9__1" - // InternalValid.g:2451:1: rule__RangeRule__Group_9__1 : rule__RangeRule__Group_9__1__Impl ; - public final void rule__RangeRule__Group_9__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2455:1: ( rule__RangeRule__Group_9__1__Impl ) - // InternalValid.g:2456:2: rule__RangeRule__Group_9__1__Impl - { - pushFollow(FOLLOW_2); - rule__RangeRule__Group_9__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_9__1" - - - // $ANTLR start "rule__RangeRule__Group_9__1__Impl" - // InternalValid.g:2462:1: rule__RangeRule__Group_9__1__Impl : ( '..' ) ; - public final void rule__RangeRule__Group_9__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2466:1: ( ( '..' ) ) - // InternalValid.g:2467:1: ( '..' ) - { - // InternalValid.g:2467:1: ( '..' ) - // InternalValid.g:2468:2: '..' - { - before(grammarAccess.getRangeRuleAccess().getFullStopFullStopKeyword_9_1()); - match(input,27,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getFullStopFullStopKeyword_9_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__Group_9__1__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__0" - // InternalValid.g:2478:1: rule__UniqueRule__Group__0 : rule__UniqueRule__Group__0__Impl rule__UniqueRule__Group__1 ; - public final void rule__UniqueRule__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2482:1: ( rule__UniqueRule__Group__0__Impl rule__UniqueRule__Group__1 ) - // InternalValid.g:2483:2: rule__UniqueRule__Group__0__Impl rule__UniqueRule__Group__1 - { - pushFollow(FOLLOW_24); - rule__UniqueRule__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__0" - - - // $ANTLR start "rule__UniqueRule__Group__0__Impl" - // InternalValid.g:2490:1: rule__UniqueRule__Group__0__Impl : ( ( rule__UniqueRule__UnorderedGroup_0 ) ) ; - public final void rule__UniqueRule__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2494:1: ( ( ( rule__UniqueRule__UnorderedGroup_0 ) ) ) - // InternalValid.g:2495:1: ( ( rule__UniqueRule__UnorderedGroup_0 ) ) - { - // InternalValid.g:2495:1: ( ( rule__UniqueRule__UnorderedGroup_0 ) ) - // InternalValid.g:2496:2: ( rule__UniqueRule__UnorderedGroup_0 ) - { - before(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - // InternalValid.g:2497:2: ( rule__UniqueRule__UnorderedGroup_0 ) - // InternalValid.g:2497:3: rule__UniqueRule__UnorderedGroup_0 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__UnorderedGroup_0(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__0__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__1" - // InternalValid.g:2505:1: rule__UniqueRule__Group__1 : rule__UniqueRule__Group__1__Impl rule__UniqueRule__Group__2 ; - public final void rule__UniqueRule__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2509:1: ( rule__UniqueRule__Group__1__Impl rule__UniqueRule__Group__2 ) - // InternalValid.g:2510:2: rule__UniqueRule__Group__1__Impl rule__UniqueRule__Group__2 - { - pushFollow(FOLLOW_12); - rule__UniqueRule__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__1" - - - // $ANTLR start "rule__UniqueRule__Group__1__Impl" - // InternalValid.g:2517:1: rule__UniqueRule__Group__1__Impl : ( 'unique' ) ; - public final void rule__UniqueRule__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2521:1: ( ( 'unique' ) ) - // InternalValid.g:2522:1: ( 'unique' ) - { - // InternalValid.g:2522:1: ( 'unique' ) - // InternalValid.g:2523:2: 'unique' - { - before(grammarAccess.getUniqueRuleAccess().getUniqueKeyword_1()); - match(input,29,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getUniqueKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__1__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__2" - // InternalValid.g:2532:1: rule__UniqueRule__Group__2 : rule__UniqueRule__Group__2__Impl rule__UniqueRule__Group__3 ; - public final void rule__UniqueRule__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2536:1: ( rule__UniqueRule__Group__2__Impl rule__UniqueRule__Group__3 ) - // InternalValid.g:2537:2: rule__UniqueRule__Group__2__Impl rule__UniqueRule__Group__3 - { - pushFollow(FOLLOW_7); - rule__UniqueRule__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__2" - - - // $ANTLR start "rule__UniqueRule__Group__2__Impl" - // InternalValid.g:2544:1: rule__UniqueRule__Group__2__Impl : ( ( rule__UniqueRule__SeverityAssignment_2 ) ) ; - public final void rule__UniqueRule__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2548:1: ( ( ( rule__UniqueRule__SeverityAssignment_2 ) ) ) - // InternalValid.g:2549:1: ( ( rule__UniqueRule__SeverityAssignment_2 ) ) - { - // InternalValid.g:2549:1: ( ( rule__UniqueRule__SeverityAssignment_2 ) ) - // InternalValid.g:2550:2: ( rule__UniqueRule__SeverityAssignment_2 ) - { - before(grammarAccess.getUniqueRuleAccess().getSeverityAssignment_2()); - // InternalValid.g:2551:2: ( rule__UniqueRule__SeverityAssignment_2 ) - // InternalValid.g:2551:3: rule__UniqueRule__SeverityAssignment_2 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__SeverityAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getSeverityAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__2__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__3" - // InternalValid.g:2559:1: rule__UniqueRule__Group__3 : rule__UniqueRule__Group__3__Impl rule__UniqueRule__Group__4 ; - public final void rule__UniqueRule__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2563:1: ( rule__UniqueRule__Group__3__Impl rule__UniqueRule__Group__4 ) - // InternalValid.g:2564:2: rule__UniqueRule__Group__3__Impl rule__UniqueRule__Group__4 - { - pushFollow(FOLLOW_8); - rule__UniqueRule__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__3" - - - // $ANTLR start "rule__UniqueRule__Group__3__Impl" - // InternalValid.g:2571:1: rule__UniqueRule__Group__3__Impl : ( ( rule__UniqueRule__NameAssignment_3 ) ) ; - public final void rule__UniqueRule__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2575:1: ( ( ( rule__UniqueRule__NameAssignment_3 ) ) ) - // InternalValid.g:2576:1: ( ( rule__UniqueRule__NameAssignment_3 ) ) - { - // InternalValid.g:2576:1: ( ( rule__UniqueRule__NameAssignment_3 ) ) - // InternalValid.g:2577:2: ( rule__UniqueRule__NameAssignment_3 ) - { - before(grammarAccess.getUniqueRuleAccess().getNameAssignment_3()); - // InternalValid.g:2578:2: ( rule__UniqueRule__NameAssignment_3 ) - // InternalValid.g:2578:3: rule__UniqueRule__NameAssignment_3 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__NameAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getNameAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__3__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__4" - // InternalValid.g:2586:1: rule__UniqueRule__Group__4 : rule__UniqueRule__Group__4__Impl rule__UniqueRule__Group__5 ; - public final void rule__UniqueRule__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2590:1: ( rule__UniqueRule__Group__4__Impl rule__UniqueRule__Group__5 ) - // InternalValid.g:2591:2: rule__UniqueRule__Group__4__Impl rule__UniqueRule__Group__5 - { - pushFollow(FOLLOW_6); - rule__UniqueRule__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__4" - - - // $ANTLR start "rule__UniqueRule__Group__4__Impl" - // InternalValid.g:2598:1: rule__UniqueRule__Group__4__Impl : ( 'label' ) ; - public final void rule__UniqueRule__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2602:1: ( ( 'label' ) ) - // InternalValid.g:2603:1: ( 'label' ) - { - // InternalValid.g:2603:1: ( 'label' ) - // InternalValid.g:2604:2: 'label' - { - before(grammarAccess.getUniqueRuleAccess().getLabelKeyword_4()); - match(input,20,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getLabelKeyword_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__4__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__5" - // InternalValid.g:2613:1: rule__UniqueRule__Group__5 : rule__UniqueRule__Group__5__Impl rule__UniqueRule__Group__6 ; - public final void rule__UniqueRule__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2617:1: ( rule__UniqueRule__Group__5__Impl rule__UniqueRule__Group__6 ) - // InternalValid.g:2618:2: rule__UniqueRule__Group__5__Impl rule__UniqueRule__Group__6 - { - pushFollow(FOLLOW_25); - rule__UniqueRule__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__5" - - - // $ANTLR start "rule__UniqueRule__Group__5__Impl" - // InternalValid.g:2625:1: rule__UniqueRule__Group__5__Impl : ( ( rule__UniqueRule__LabelAssignment_5 ) ) ; - public final void rule__UniqueRule__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2629:1: ( ( ( rule__UniqueRule__LabelAssignment_5 ) ) ) - // InternalValid.g:2630:1: ( ( rule__UniqueRule__LabelAssignment_5 ) ) - { - // InternalValid.g:2630:1: ( ( rule__UniqueRule__LabelAssignment_5 ) ) - // InternalValid.g:2631:2: ( rule__UniqueRule__LabelAssignment_5 ) - { - before(grammarAccess.getUniqueRuleAccess().getLabelAssignment_5()); - // InternalValid.g:2632:2: ( rule__UniqueRule__LabelAssignment_5 ) - // InternalValid.g:2632:3: rule__UniqueRule__LabelAssignment_5 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__LabelAssignment_5(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getLabelAssignment_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__5__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__6" - // InternalValid.g:2640:1: rule__UniqueRule__Group__6 : rule__UniqueRule__Group__6__Impl rule__UniqueRule__Group__7 ; - public final void rule__UniqueRule__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2644:1: ( rule__UniqueRule__Group__6__Impl rule__UniqueRule__Group__7 ) - // InternalValid.g:2645:2: rule__UniqueRule__Group__6__Impl rule__UniqueRule__Group__7 - { - pushFollow(FOLLOW_25); - rule__UniqueRule__Group__6__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__7(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__6" - - - // $ANTLR start "rule__UniqueRule__Group__6__Impl" - // InternalValid.g:2652:1: rule__UniqueRule__Group__6__Impl : ( ( rule__UniqueRule__Group_6__0 )? ) ; - public final void rule__UniqueRule__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2656:1: ( ( ( rule__UniqueRule__Group_6__0 )? ) ) - // InternalValid.g:2657:1: ( ( rule__UniqueRule__Group_6__0 )? ) - { - // InternalValid.g:2657:1: ( ( rule__UniqueRule__Group_6__0 )? ) - // InternalValid.g:2658:2: ( rule__UniqueRule__Group_6__0 )? - { - before(grammarAccess.getUniqueRuleAccess().getGroup_6()); - // InternalValid.g:2659:2: ( rule__UniqueRule__Group_6__0 )? - int alt20=2; - int LA20_0 = input.LA(1); - - if ( (LA20_0==23) ) { - alt20=1; - } - switch (alt20) { - case 1 : - // InternalValid.g:2659:3: rule__UniqueRule__Group_6__0 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__Group_6__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getUniqueRuleAccess().getGroup_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__6__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__7" - // InternalValid.g:2667:1: rule__UniqueRule__Group__7 : rule__UniqueRule__Group__7__Impl rule__UniqueRule__Group__8 ; - public final void rule__UniqueRule__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2671:1: ( rule__UniqueRule__Group__7__Impl rule__UniqueRule__Group__8 ) - // InternalValid.g:2672:2: rule__UniqueRule__Group__7__Impl rule__UniqueRule__Group__8 - { - pushFollow(FOLLOW_25); - rule__UniqueRule__Group__7__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__8(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__7" - - - // $ANTLR start "rule__UniqueRule__Group__7__Impl" - // InternalValid.g:2679:1: rule__UniqueRule__Group__7__Impl : ( ( rule__UniqueRule__Group_7__0 )? ) ; - public final void rule__UniqueRule__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2683:1: ( ( ( rule__UniqueRule__Group_7__0 )? ) ) - // InternalValid.g:2684:1: ( ( rule__UniqueRule__Group_7__0 )? ) - { - // InternalValid.g:2684:1: ( ( rule__UniqueRule__Group_7__0 )? ) - // InternalValid.g:2685:2: ( rule__UniqueRule__Group_7__0 )? - { - before(grammarAccess.getUniqueRuleAccess().getGroup_7()); - // InternalValid.g:2686:2: ( rule__UniqueRule__Group_7__0 )? - int alt21=2; - int LA21_0 = input.LA(1); - - if ( (LA21_0==24) ) { - alt21=1; - } - switch (alt21) { - case 1 : - // InternalValid.g:2686:3: rule__UniqueRule__Group_7__0 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__Group_7__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getUniqueRuleAccess().getGroup_7()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__7__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__8" - // InternalValid.g:2694:1: rule__UniqueRule__Group__8 : rule__UniqueRule__Group__8__Impl rule__UniqueRule__Group__9 ; - public final void rule__UniqueRule__Group__8() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2698:1: ( rule__UniqueRule__Group__8__Impl rule__UniqueRule__Group__9 ) - // InternalValid.g:2699:2: rule__UniqueRule__Group__8__Impl rule__UniqueRule__Group__9 - { - pushFollow(FOLLOW_15); - rule__UniqueRule__Group__8__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__9(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__8" - - - // $ANTLR start "rule__UniqueRule__Group__8__Impl" - // InternalValid.g:2706:1: rule__UniqueRule__Group__8__Impl : ( 'context' ) ; - public final void rule__UniqueRule__Group__8__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2710:1: ( ( 'context' ) ) - // InternalValid.g:2711:1: ( 'context' ) - { - // InternalValid.g:2711:1: ( 'context' ) - // InternalValid.g:2712:2: 'context' - { - before(grammarAccess.getUniqueRuleAccess().getContextKeyword_8()); - match(input,25,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getContextKeyword_8()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__8__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__9" - // InternalValid.g:2721:1: rule__UniqueRule__Group__9 : rule__UniqueRule__Group__9__Impl rule__UniqueRule__Group__10 ; - public final void rule__UniqueRule__Group__9() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2725:1: ( rule__UniqueRule__Group__9__Impl rule__UniqueRule__Group__10 ) - // InternalValid.g:2726:2: rule__UniqueRule__Group__9__Impl rule__UniqueRule__Group__10 - { - pushFollow(FOLLOW_7); - rule__UniqueRule__Group__9__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__10(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__9" - - - // $ANTLR start "rule__UniqueRule__Group__9__Impl" - // InternalValid.g:2733:1: rule__UniqueRule__Group__9__Impl : ( '{' ) ; - public final void rule__UniqueRule__Group__9__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2737:1: ( ( '{' ) ) - // InternalValid.g:2738:1: ( '{' ) - { - // InternalValid.g:2738:1: ( '{' ) - // InternalValid.g:2739:2: '{' - { - before(grammarAccess.getUniqueRuleAccess().getLeftCurlyBracketKeyword_9()); - match(input,21,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getLeftCurlyBracketKeyword_9()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__9__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__10" - // InternalValid.g:2748:1: rule__UniqueRule__Group__10 : rule__UniqueRule__Group__10__Impl rule__UniqueRule__Group__11 ; - public final void rule__UniqueRule__Group__10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2752:1: ( rule__UniqueRule__Group__10__Impl rule__UniqueRule__Group__11 ) - // InternalValid.g:2753:2: rule__UniqueRule__Group__10__Impl rule__UniqueRule__Group__11 - { - pushFollow(FOLLOW_16); - rule__UniqueRule__Group__10__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__11(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__10" - - - // $ANTLR start "rule__UniqueRule__Group__10__Impl" - // InternalValid.g:2760:1: rule__UniqueRule__Group__10__Impl : ( ( ( rule__UniqueRule__ContextsAssignment_10 ) ) ( ( rule__UniqueRule__ContextsAssignment_10 )* ) ) ; - public final void rule__UniqueRule__Group__10__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2764:1: ( ( ( ( rule__UniqueRule__ContextsAssignment_10 ) ) ( ( rule__UniqueRule__ContextsAssignment_10 )* ) ) ) - // InternalValid.g:2765:1: ( ( ( rule__UniqueRule__ContextsAssignment_10 ) ) ( ( rule__UniqueRule__ContextsAssignment_10 )* ) ) - { - // InternalValid.g:2765:1: ( ( ( rule__UniqueRule__ContextsAssignment_10 ) ) ( ( rule__UniqueRule__ContextsAssignment_10 )* ) ) - // InternalValid.g:2766:2: ( ( rule__UniqueRule__ContextsAssignment_10 ) ) ( ( rule__UniqueRule__ContextsAssignment_10 )* ) - { - // InternalValid.g:2766:2: ( ( rule__UniqueRule__ContextsAssignment_10 ) ) - // InternalValid.g:2767:3: ( rule__UniqueRule__ContextsAssignment_10 ) - { - before(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); - // InternalValid.g:2768:3: ( rule__UniqueRule__ContextsAssignment_10 ) - // InternalValid.g:2768:4: rule__UniqueRule__ContextsAssignment_10 - { - pushFollow(FOLLOW_17); - rule__UniqueRule__ContextsAssignment_10(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); - - } - - // InternalValid.g:2771:2: ( ( rule__UniqueRule__ContextsAssignment_10 )* ) - // InternalValid.g:2772:3: ( rule__UniqueRule__ContextsAssignment_10 )* - { - before(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); - // InternalValid.g:2773:3: ( rule__UniqueRule__ContextsAssignment_10 )* - loop22: - do { - int alt22=2; - int LA22_0 = input.LA(1); - - if ( (LA22_0==RULE_ID) ) { - alt22=1; - } - - - switch (alt22) { - case 1 : - // InternalValid.g:2773:4: rule__UniqueRule__ContextsAssignment_10 - { - pushFollow(FOLLOW_17); - rule__UniqueRule__ContextsAssignment_10(); - - state._fsp--; - - - } - break; - - default : - break loop22; - } - } while (true); - - after(grammarAccess.getUniqueRuleAccess().getContextsAssignment_10()); - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__10__Impl" - - - // $ANTLR start "rule__UniqueRule__Group__11" - // InternalValid.g:2782:1: rule__UniqueRule__Group__11 : rule__UniqueRule__Group__11__Impl ; - public final void rule__UniqueRule__Group__11() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2786:1: ( rule__UniqueRule__Group__11__Impl ) - // InternalValid.g:2787:2: rule__UniqueRule__Group__11__Impl - { - pushFollow(FOLLOW_2); - rule__UniqueRule__Group__11__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__11" - - - // $ANTLR start "rule__UniqueRule__Group__11__Impl" - // InternalValid.g:2793:1: rule__UniqueRule__Group__11__Impl : ( '}' ) ; - public final void rule__UniqueRule__Group__11__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2797:1: ( ( '}' ) ) - // InternalValid.g:2798:1: ( '}' ) - { - // InternalValid.g:2798:1: ( '}' ) - // InternalValid.g:2799:2: '}' - { - before(grammarAccess.getUniqueRuleAccess().getRightCurlyBracketKeyword_11()); - match(input,22,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getRightCurlyBracketKeyword_11()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group__11__Impl" - - - // $ANTLR start "rule__UniqueRule__Group_6__0" - // InternalValid.g:2809:1: rule__UniqueRule__Group_6__0 : rule__UniqueRule__Group_6__0__Impl rule__UniqueRule__Group_6__1 ; - public final void rule__UniqueRule__Group_6__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2813:1: ( rule__UniqueRule__Group_6__0__Impl rule__UniqueRule__Group_6__1 ) - // InternalValid.g:2814:2: rule__UniqueRule__Group_6__0__Impl rule__UniqueRule__Group_6__1 - { - pushFollow(FOLLOW_6); - rule__UniqueRule__Group_6__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group_6__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_6__0" - - - // $ANTLR start "rule__UniqueRule__Group_6__0__Impl" - // InternalValid.g:2821:1: rule__UniqueRule__Group_6__0__Impl : ( 'description' ) ; - public final void rule__UniqueRule__Group_6__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2825:1: ( ( 'description' ) ) - // InternalValid.g:2826:1: ( 'description' ) - { - // InternalValid.g:2826:1: ( 'description' ) - // InternalValid.g:2827:2: 'description' - { - before(grammarAccess.getUniqueRuleAccess().getDescriptionKeyword_6_0()); - match(input,23,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getDescriptionKeyword_6_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_6__0__Impl" - - - // $ANTLR start "rule__UniqueRule__Group_6__1" - // InternalValid.g:2836:1: rule__UniqueRule__Group_6__1 : rule__UniqueRule__Group_6__1__Impl ; - public final void rule__UniqueRule__Group_6__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2840:1: ( rule__UniqueRule__Group_6__1__Impl ) - // InternalValid.g:2841:2: rule__UniqueRule__Group_6__1__Impl - { - pushFollow(FOLLOW_2); - rule__UniqueRule__Group_6__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_6__1" - - - // $ANTLR start "rule__UniqueRule__Group_6__1__Impl" - // InternalValid.g:2847:1: rule__UniqueRule__Group_6__1__Impl : ( ( rule__UniqueRule__DescriptionAssignment_6_1 ) ) ; - public final void rule__UniqueRule__Group_6__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2851:1: ( ( ( rule__UniqueRule__DescriptionAssignment_6_1 ) ) ) - // InternalValid.g:2852:1: ( ( rule__UniqueRule__DescriptionAssignment_6_1 ) ) - { - // InternalValid.g:2852:1: ( ( rule__UniqueRule__DescriptionAssignment_6_1 ) ) - // InternalValid.g:2853:2: ( rule__UniqueRule__DescriptionAssignment_6_1 ) - { - before(grammarAccess.getUniqueRuleAccess().getDescriptionAssignment_6_1()); - // InternalValid.g:2854:2: ( rule__UniqueRule__DescriptionAssignment_6_1 ) - // InternalValid.g:2854:3: rule__UniqueRule__DescriptionAssignment_6_1 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__DescriptionAssignment_6_1(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getDescriptionAssignment_6_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_6__1__Impl" - - - // $ANTLR start "rule__UniqueRule__Group_7__0" - // InternalValid.g:2863:1: rule__UniqueRule__Group_7__0 : rule__UniqueRule__Group_7__0__Impl rule__UniqueRule__Group_7__1 ; - public final void rule__UniqueRule__Group_7__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2867:1: ( rule__UniqueRule__Group_7__0__Impl rule__UniqueRule__Group_7__1 ) - // InternalValid.g:2868:2: rule__UniqueRule__Group_7__0__Impl rule__UniqueRule__Group_7__1 - { - pushFollow(FOLLOW_6); - rule__UniqueRule__Group_7__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__UniqueRule__Group_7__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_7__0" - - - // $ANTLR start "rule__UniqueRule__Group_7__0__Impl" - // InternalValid.g:2875:1: rule__UniqueRule__Group_7__0__Impl : ( 'message' ) ; - public final void rule__UniqueRule__Group_7__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2879:1: ( ( 'message' ) ) - // InternalValid.g:2880:1: ( 'message' ) - { - // InternalValid.g:2880:1: ( 'message' ) - // InternalValid.g:2881:2: 'message' - { - before(grammarAccess.getUniqueRuleAccess().getMessageKeyword_7_0()); - match(input,24,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getMessageKeyword_7_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_7__0__Impl" - - - // $ANTLR start "rule__UniqueRule__Group_7__1" - // InternalValid.g:2890:1: rule__UniqueRule__Group_7__1 : rule__UniqueRule__Group_7__1__Impl ; - public final void rule__UniqueRule__Group_7__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2894:1: ( rule__UniqueRule__Group_7__1__Impl ) - // InternalValid.g:2895:2: rule__UniqueRule__Group_7__1__Impl - { - pushFollow(FOLLOW_2); - rule__UniqueRule__Group_7__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_7__1" - - - // $ANTLR start "rule__UniqueRule__Group_7__1__Impl" - // InternalValid.g:2901:1: rule__UniqueRule__Group_7__1__Impl : ( ( rule__UniqueRule__MessageAssignment_7_1 ) ) ; - public final void rule__UniqueRule__Group_7__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2905:1: ( ( ( rule__UniqueRule__MessageAssignment_7_1 ) ) ) - // InternalValid.g:2906:1: ( ( rule__UniqueRule__MessageAssignment_7_1 ) ) - { - // InternalValid.g:2906:1: ( ( rule__UniqueRule__MessageAssignment_7_1 ) ) - // InternalValid.g:2907:2: ( rule__UniqueRule__MessageAssignment_7_1 ) - { - before(grammarAccess.getUniqueRuleAccess().getMessageAssignment_7_1()); - // InternalValid.g:2908:2: ( rule__UniqueRule__MessageAssignment_7_1 ) - // InternalValid.g:2908:3: rule__UniqueRule__MessageAssignment_7_1 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__MessageAssignment_7_1(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getMessageAssignment_7_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__Group_7__1__Impl" - - - // $ANTLR start "rule__SimpleContext__Group__0" - // InternalValid.g:2917:1: rule__SimpleContext__Group__0 : rule__SimpleContext__Group__0__Impl rule__SimpleContext__Group__1 ; - public final void rule__SimpleContext__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2921:1: ( rule__SimpleContext__Group__0__Impl rule__SimpleContext__Group__1 ) - // InternalValid.g:2922:2: rule__SimpleContext__Group__0__Impl rule__SimpleContext__Group__1 - { - pushFollow(FOLLOW_26); - rule__SimpleContext__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SimpleContext__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group__0" - - - // $ANTLR start "rule__SimpleContext__Group__0__Impl" - // InternalValid.g:2929:1: rule__SimpleContext__Group__0__Impl : ( ( rule__SimpleContext__ContextTypeAssignment_0 ) ) ; - public final void rule__SimpleContext__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2933:1: ( ( ( rule__SimpleContext__ContextTypeAssignment_0 ) ) ) - // InternalValid.g:2934:1: ( ( rule__SimpleContext__ContextTypeAssignment_0 ) ) - { - // InternalValid.g:2934:1: ( ( rule__SimpleContext__ContextTypeAssignment_0 ) ) - // InternalValid.g:2935:2: ( rule__SimpleContext__ContextTypeAssignment_0 ) - { - before(grammarAccess.getSimpleContextAccess().getContextTypeAssignment_0()); - // InternalValid.g:2936:2: ( rule__SimpleContext__ContextTypeAssignment_0 ) - // InternalValid.g:2936:3: rule__SimpleContext__ContextTypeAssignment_0 - { - pushFollow(FOLLOW_2); - rule__SimpleContext__ContextTypeAssignment_0(); - - state._fsp--; - - - } - - after(grammarAccess.getSimpleContextAccess().getContextTypeAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group__0__Impl" - - - // $ANTLR start "rule__SimpleContext__Group__1" - // InternalValid.g:2944:1: rule__SimpleContext__Group__1 : rule__SimpleContext__Group__1__Impl rule__SimpleContext__Group__2 ; - public final void rule__SimpleContext__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2948:1: ( rule__SimpleContext__Group__1__Impl rule__SimpleContext__Group__2 ) - // InternalValid.g:2949:2: rule__SimpleContext__Group__1__Impl rule__SimpleContext__Group__2 - { - pushFollow(FOLLOW_26); - rule__SimpleContext__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SimpleContext__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group__1" - - - // $ANTLR start "rule__SimpleContext__Group__1__Impl" - // InternalValid.g:2956:1: rule__SimpleContext__Group__1__Impl : ( ( rule__SimpleContext__Group_1__0 )? ) ; - public final void rule__SimpleContext__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2960:1: ( ( ( rule__SimpleContext__Group_1__0 )? ) ) - // InternalValid.g:2961:1: ( ( rule__SimpleContext__Group_1__0 )? ) - { - // InternalValid.g:2961:1: ( ( rule__SimpleContext__Group_1__0 )? ) - // InternalValid.g:2962:2: ( rule__SimpleContext__Group_1__0 )? - { - before(grammarAccess.getSimpleContextAccess().getGroup_1()); - // InternalValid.g:2963:2: ( rule__SimpleContext__Group_1__0 )? - int alt23=2; - int LA23_0 = input.LA(1); - - if ( (LA23_0==31) ) { - alt23=1; - } - switch (alt23) { - case 1 : - // InternalValid.g:2963:3: rule__SimpleContext__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__SimpleContext__Group_1__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getSimpleContextAccess().getGroup_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group__1__Impl" - - - // $ANTLR start "rule__SimpleContext__Group__2" - // InternalValid.g:2971:1: rule__SimpleContext__Group__2 : rule__SimpleContext__Group__2__Impl ; - public final void rule__SimpleContext__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2975:1: ( rule__SimpleContext__Group__2__Impl ) - // InternalValid.g:2976:2: rule__SimpleContext__Group__2__Impl - { - pushFollow(FOLLOW_2); - rule__SimpleContext__Group__2__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group__2" - - - // $ANTLR start "rule__SimpleContext__Group__2__Impl" - // InternalValid.g:2982:1: rule__SimpleContext__Group__2__Impl : ( ';' ) ; - public final void rule__SimpleContext__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:2986:1: ( ( ';' ) ) - // InternalValid.g:2987:1: ( ';' ) - { - // InternalValid.g:2987:1: ( ';' ) - // InternalValid.g:2988:2: ';' - { - before(grammarAccess.getSimpleContextAccess().getSemicolonKeyword_2()); - match(input,30,FOLLOW_2); - after(grammarAccess.getSimpleContextAccess().getSemicolonKeyword_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group__2__Impl" - - - // $ANTLR start "rule__SimpleContext__Group_1__0" - // InternalValid.g:2998:1: rule__SimpleContext__Group_1__0 : rule__SimpleContext__Group_1__0__Impl rule__SimpleContext__Group_1__1 ; - public final void rule__SimpleContext__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3002:1: ( rule__SimpleContext__Group_1__0__Impl rule__SimpleContext__Group_1__1 ) - // InternalValid.g:3003:2: rule__SimpleContext__Group_1__0__Impl rule__SimpleContext__Group_1__1 - { - pushFollow(FOLLOW_7); - rule__SimpleContext__Group_1__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__SimpleContext__Group_1__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group_1__0" - - - // $ANTLR start "rule__SimpleContext__Group_1__0__Impl" - // InternalValid.g:3010:1: rule__SimpleContext__Group_1__0__Impl : ( '#' ) ; - public final void rule__SimpleContext__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3014:1: ( ( '#' ) ) - // InternalValid.g:3015:1: ( '#' ) - { - // InternalValid.g:3015:1: ( '#' ) - // InternalValid.g:3016:2: '#' - { - before(grammarAccess.getSimpleContextAccess().getNumberSignKeyword_1_0()); - match(input,31,FOLLOW_2); - after(grammarAccess.getSimpleContextAccess().getNumberSignKeyword_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group_1__0__Impl" - - - // $ANTLR start "rule__SimpleContext__Group_1__1" - // InternalValid.g:3025:1: rule__SimpleContext__Group_1__1 : rule__SimpleContext__Group_1__1__Impl ; - public final void rule__SimpleContext__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3029:1: ( rule__SimpleContext__Group_1__1__Impl ) - // InternalValid.g:3030:2: rule__SimpleContext__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__SimpleContext__Group_1__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group_1__1" - - - // $ANTLR start "rule__SimpleContext__Group_1__1__Impl" - // InternalValid.g:3036:1: rule__SimpleContext__Group_1__1__Impl : ( ( rule__SimpleContext__ContextFeatureAssignment_1_1 ) ) ; - public final void rule__SimpleContext__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3040:1: ( ( ( rule__SimpleContext__ContextFeatureAssignment_1_1 ) ) ) - // InternalValid.g:3041:1: ( ( rule__SimpleContext__ContextFeatureAssignment_1_1 ) ) - { - // InternalValid.g:3041:1: ( ( rule__SimpleContext__ContextFeatureAssignment_1_1 ) ) - // InternalValid.g:3042:2: ( rule__SimpleContext__ContextFeatureAssignment_1_1 ) - { - before(grammarAccess.getSimpleContextAccess().getContextFeatureAssignment_1_1()); - // InternalValid.g:3043:2: ( rule__SimpleContext__ContextFeatureAssignment_1_1 ) - // InternalValid.g:3043:3: rule__SimpleContext__ContextFeatureAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__SimpleContext__ContextFeatureAssignment_1_1(); - - state._fsp--; - - - } - - after(grammarAccess.getSimpleContextAccess().getContextFeatureAssignment_1_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__Group_1__1__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__0" - // InternalValid.g:3052:1: rule__DuplicateContext__Group__0 : rule__DuplicateContext__Group__0__Impl rule__DuplicateContext__Group__1 ; - public final void rule__DuplicateContext__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3056:1: ( rule__DuplicateContext__Group__0__Impl rule__DuplicateContext__Group__1 ) - // InternalValid.g:3057:2: rule__DuplicateContext__Group__0__Impl rule__DuplicateContext__Group__1 - { - pushFollow(FOLLOW_27); - rule__DuplicateContext__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__0" - - - // $ANTLR start "rule__DuplicateContext__Group__0__Impl" - // InternalValid.g:3064:1: rule__DuplicateContext__Group__0__Impl : ( ( rule__DuplicateContext__ContextTypeAssignment_0 ) ) ; - public final void rule__DuplicateContext__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3068:1: ( ( ( rule__DuplicateContext__ContextTypeAssignment_0 ) ) ) - // InternalValid.g:3069:1: ( ( rule__DuplicateContext__ContextTypeAssignment_0 ) ) - { - // InternalValid.g:3069:1: ( ( rule__DuplicateContext__ContextTypeAssignment_0 ) ) - // InternalValid.g:3070:2: ( rule__DuplicateContext__ContextTypeAssignment_0 ) - { - before(grammarAccess.getDuplicateContextAccess().getContextTypeAssignment_0()); - // InternalValid.g:3071:2: ( rule__DuplicateContext__ContextTypeAssignment_0 ) - // InternalValid.g:3071:3: rule__DuplicateContext__ContextTypeAssignment_0 - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__ContextTypeAssignment_0(); - - state._fsp--; - - - } - - after(grammarAccess.getDuplicateContextAccess().getContextTypeAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__0__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__1" - // InternalValid.g:3079:1: rule__DuplicateContext__Group__1 : rule__DuplicateContext__Group__1__Impl rule__DuplicateContext__Group__2 ; - public final void rule__DuplicateContext__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3083:1: ( rule__DuplicateContext__Group__1__Impl rule__DuplicateContext__Group__2 ) - // InternalValid.g:3084:2: rule__DuplicateContext__Group__1__Impl rule__DuplicateContext__Group__2 - { - pushFollow(FOLLOW_27); - rule__DuplicateContext__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__1" - - - // $ANTLR start "rule__DuplicateContext__Group__1__Impl" - // InternalValid.g:3091:1: rule__DuplicateContext__Group__1__Impl : ( ( rule__DuplicateContext__Group_1__0 )? ) ; - public final void rule__DuplicateContext__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3095:1: ( ( ( rule__DuplicateContext__Group_1__0 )? ) ) - // InternalValid.g:3096:1: ( ( rule__DuplicateContext__Group_1__0 )? ) - { - // InternalValid.g:3096:1: ( ( rule__DuplicateContext__Group_1__0 )? ) - // InternalValid.g:3097:2: ( rule__DuplicateContext__Group_1__0 )? - { - before(grammarAccess.getDuplicateContextAccess().getGroup_1()); - // InternalValid.g:3098:2: ( rule__DuplicateContext__Group_1__0 )? - int alt24=2; - int LA24_0 = input.LA(1); - - if ( (LA24_0==31) ) { - alt24=1; - } - switch (alt24) { - case 1 : - // InternalValid.g:3098:3: rule__DuplicateContext__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group_1__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getDuplicateContextAccess().getGroup_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__1__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__2" - // InternalValid.g:3106:1: rule__DuplicateContext__Group__2 : rule__DuplicateContext__Group__2__Impl rule__DuplicateContext__Group__3 ; - public final void rule__DuplicateContext__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3110:1: ( rule__DuplicateContext__Group__2__Impl rule__DuplicateContext__Group__3 ) - // InternalValid.g:3111:2: rule__DuplicateContext__Group__2__Impl rule__DuplicateContext__Group__3 - { - pushFollow(FOLLOW_7); - rule__DuplicateContext__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__2" - - - // $ANTLR start "rule__DuplicateContext__Group__2__Impl" - // InternalValid.g:3118:1: rule__DuplicateContext__Group__2__Impl : ( 'marker' ) ; - public final void rule__DuplicateContext__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3122:1: ( ( 'marker' ) ) - // InternalValid.g:3123:1: ( 'marker' ) - { - // InternalValid.g:3123:1: ( 'marker' ) - // InternalValid.g:3124:2: 'marker' - { - before(grammarAccess.getDuplicateContextAccess().getMarkerKeyword_2()); - match(input,32,FOLLOW_2); - after(grammarAccess.getDuplicateContextAccess().getMarkerKeyword_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__2__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__3" - // InternalValid.g:3133:1: rule__DuplicateContext__Group__3 : rule__DuplicateContext__Group__3__Impl rule__DuplicateContext__Group__4 ; - public final void rule__DuplicateContext__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3137:1: ( rule__DuplicateContext__Group__3__Impl rule__DuplicateContext__Group__4 ) - // InternalValid.g:3138:2: rule__DuplicateContext__Group__3__Impl rule__DuplicateContext__Group__4 - { - pushFollow(FOLLOW_28); - rule__DuplicateContext__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__3" - - - // $ANTLR start "rule__DuplicateContext__Group__3__Impl" - // InternalValid.g:3145:1: rule__DuplicateContext__Group__3__Impl : ( ( rule__DuplicateContext__MarkerTypeAssignment_3 ) ) ; - public final void rule__DuplicateContext__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3149:1: ( ( ( rule__DuplicateContext__MarkerTypeAssignment_3 ) ) ) - // InternalValid.g:3150:1: ( ( rule__DuplicateContext__MarkerTypeAssignment_3 ) ) - { - // InternalValid.g:3150:1: ( ( rule__DuplicateContext__MarkerTypeAssignment_3 ) ) - // InternalValid.g:3151:2: ( rule__DuplicateContext__MarkerTypeAssignment_3 ) - { - before(grammarAccess.getDuplicateContextAccess().getMarkerTypeAssignment_3()); - // InternalValid.g:3152:2: ( rule__DuplicateContext__MarkerTypeAssignment_3 ) - // InternalValid.g:3152:3: rule__DuplicateContext__MarkerTypeAssignment_3 - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__MarkerTypeAssignment_3(); - - state._fsp--; - - - } - - after(grammarAccess.getDuplicateContextAccess().getMarkerTypeAssignment_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__3__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__4" - // InternalValid.g:3160:1: rule__DuplicateContext__Group__4 : rule__DuplicateContext__Group__4__Impl rule__DuplicateContext__Group__5 ; - public final void rule__DuplicateContext__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3164:1: ( rule__DuplicateContext__Group__4__Impl rule__DuplicateContext__Group__5 ) - // InternalValid.g:3165:2: rule__DuplicateContext__Group__4__Impl rule__DuplicateContext__Group__5 - { - pushFollow(FOLLOW_29); - rule__DuplicateContext__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__4" - - - // $ANTLR start "rule__DuplicateContext__Group__4__Impl" - // InternalValid.g:3172:1: rule__DuplicateContext__Group__4__Impl : ( '#' ) ; - public final void rule__DuplicateContext__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3176:1: ( ( '#' ) ) - // InternalValid.g:3177:1: ( '#' ) - { - // InternalValid.g:3177:1: ( '#' ) - // InternalValid.g:3178:2: '#' - { - before(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_4()); - match(input,31,FOLLOW_2); - after(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__4__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__5" - // InternalValid.g:3187:1: rule__DuplicateContext__Group__5 : rule__DuplicateContext__Group__5__Impl rule__DuplicateContext__Group__6 ; - public final void rule__DuplicateContext__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3191:1: ( rule__DuplicateContext__Group__5__Impl rule__DuplicateContext__Group__6 ) - // InternalValid.g:3192:2: rule__DuplicateContext__Group__5__Impl rule__DuplicateContext__Group__6 - { - pushFollow(FOLLOW_29); - rule__DuplicateContext__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__5" - - - // $ANTLR start "rule__DuplicateContext__Group__5__Impl" - // InternalValid.g:3199:1: rule__DuplicateContext__Group__5__Impl : ( ( rule__DuplicateContext__MarkerFeatureAssignment_5 )? ) ; - public final void rule__DuplicateContext__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3203:1: ( ( ( rule__DuplicateContext__MarkerFeatureAssignment_5 )? ) ) - // InternalValid.g:3204:1: ( ( rule__DuplicateContext__MarkerFeatureAssignment_5 )? ) - { - // InternalValid.g:3204:1: ( ( rule__DuplicateContext__MarkerFeatureAssignment_5 )? ) - // InternalValid.g:3205:2: ( rule__DuplicateContext__MarkerFeatureAssignment_5 )? - { - before(grammarAccess.getDuplicateContextAccess().getMarkerFeatureAssignment_5()); - // InternalValid.g:3206:2: ( rule__DuplicateContext__MarkerFeatureAssignment_5 )? - int alt25=2; - int LA25_0 = input.LA(1); - - if ( (LA25_0==RULE_ID) ) { - alt25=1; - } - switch (alt25) { - case 1 : - // InternalValid.g:3206:3: rule__DuplicateContext__MarkerFeatureAssignment_5 - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__MarkerFeatureAssignment_5(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getDuplicateContextAccess().getMarkerFeatureAssignment_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__5__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group__6" - // InternalValid.g:3214:1: rule__DuplicateContext__Group__6 : rule__DuplicateContext__Group__6__Impl ; - public final void rule__DuplicateContext__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3218:1: ( rule__DuplicateContext__Group__6__Impl ) - // InternalValid.g:3219:2: rule__DuplicateContext__Group__6__Impl - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group__6__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__6" - - - // $ANTLR start "rule__DuplicateContext__Group__6__Impl" - // InternalValid.g:3225:1: rule__DuplicateContext__Group__6__Impl : ( ';' ) ; - public final void rule__DuplicateContext__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3229:1: ( ( ';' ) ) - // InternalValid.g:3230:1: ( ';' ) - { - // InternalValid.g:3230:1: ( ';' ) - // InternalValid.g:3231:2: ';' - { - before(grammarAccess.getDuplicateContextAccess().getSemicolonKeyword_6()); - match(input,30,FOLLOW_2); - after(grammarAccess.getDuplicateContextAccess().getSemicolonKeyword_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group__6__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group_1__0" - // InternalValid.g:3241:1: rule__DuplicateContext__Group_1__0 : rule__DuplicateContext__Group_1__0__Impl rule__DuplicateContext__Group_1__1 ; - public final void rule__DuplicateContext__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3245:1: ( rule__DuplicateContext__Group_1__0__Impl rule__DuplicateContext__Group_1__1 ) - // InternalValid.g:3246:2: rule__DuplicateContext__Group_1__0__Impl rule__DuplicateContext__Group_1__1 - { - pushFollow(FOLLOW_7); - rule__DuplicateContext__Group_1__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group_1__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group_1__0" - - - // $ANTLR start "rule__DuplicateContext__Group_1__0__Impl" - // InternalValid.g:3253:1: rule__DuplicateContext__Group_1__0__Impl : ( '#' ) ; - public final void rule__DuplicateContext__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3257:1: ( ( '#' ) ) - // InternalValid.g:3258:1: ( '#' ) - { - // InternalValid.g:3258:1: ( '#' ) - // InternalValid.g:3259:2: '#' - { - before(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_1_0()); - match(input,31,FOLLOW_2); - after(grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group_1__0__Impl" - - - // $ANTLR start "rule__DuplicateContext__Group_1__1" - // InternalValid.g:3268:1: rule__DuplicateContext__Group_1__1 : rule__DuplicateContext__Group_1__1__Impl ; - public final void rule__DuplicateContext__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3272:1: ( rule__DuplicateContext__Group_1__1__Impl ) - // InternalValid.g:3273:2: rule__DuplicateContext__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__Group_1__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group_1__1" - - - // $ANTLR start "rule__DuplicateContext__Group_1__1__Impl" - // InternalValid.g:3279:1: rule__DuplicateContext__Group_1__1__Impl : ( ( rule__DuplicateContext__ContextFeatureAssignment_1_1 ) ) ; - public final void rule__DuplicateContext__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3283:1: ( ( ( rule__DuplicateContext__ContextFeatureAssignment_1_1 ) ) ) - // InternalValid.g:3284:1: ( ( rule__DuplicateContext__ContextFeatureAssignment_1_1 ) ) - { - // InternalValid.g:3284:1: ( ( rule__DuplicateContext__ContextFeatureAssignment_1_1 ) ) - // InternalValid.g:3285:2: ( rule__DuplicateContext__ContextFeatureAssignment_1_1 ) - { - before(grammarAccess.getDuplicateContextAccess().getContextFeatureAssignment_1_1()); - // InternalValid.g:3286:2: ( rule__DuplicateContext__ContextFeatureAssignment_1_1 ) - // InternalValid.g:3286:3: rule__DuplicateContext__ContextFeatureAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__DuplicateContext__ContextFeatureAssignment_1_1(); - - state._fsp--; - - - } - - after(grammarAccess.getDuplicateContextAccess().getContextFeatureAssignment_1_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__Group_1__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group__0" - // InternalValid.g:3295:1: rule__NativeContext__Group__0 : rule__NativeContext__Group__0__Impl rule__NativeContext__Group__1 ; - public final void rule__NativeContext__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3299:1: ( rule__NativeContext__Group__0__Impl rule__NativeContext__Group__1 ) - // InternalValid.g:3300:2: rule__NativeContext__Group__0__Impl rule__NativeContext__Group__1 - { - pushFollow(FOLLOW_30); - rule__NativeContext__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__0" - - - // $ANTLR start "rule__NativeContext__Group__0__Impl" - // InternalValid.g:3307:1: rule__NativeContext__Group__0__Impl : ( ( rule__NativeContext__ContextTypeAssignment_0 ) ) ; - public final void rule__NativeContext__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3311:1: ( ( ( rule__NativeContext__ContextTypeAssignment_0 ) ) ) - // InternalValid.g:3312:1: ( ( rule__NativeContext__ContextTypeAssignment_0 ) ) - { - // InternalValid.g:3312:1: ( ( rule__NativeContext__ContextTypeAssignment_0 ) ) - // InternalValid.g:3313:2: ( rule__NativeContext__ContextTypeAssignment_0 ) - { - before(grammarAccess.getNativeContextAccess().getContextTypeAssignment_0()); - // InternalValid.g:3314:2: ( rule__NativeContext__ContextTypeAssignment_0 ) - // InternalValid.g:3314:3: rule__NativeContext__ContextTypeAssignment_0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__ContextTypeAssignment_0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getContextTypeAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__0__Impl" - - - // $ANTLR start "rule__NativeContext__Group__1" - // InternalValid.g:3322:1: rule__NativeContext__Group__1 : rule__NativeContext__Group__1__Impl rule__NativeContext__Group__2 ; - public final void rule__NativeContext__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3326:1: ( rule__NativeContext__Group__1__Impl rule__NativeContext__Group__2 ) - // InternalValid.g:3327:2: rule__NativeContext__Group__1__Impl rule__NativeContext__Group__2 - { - pushFollow(FOLLOW_30); - rule__NativeContext__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__1" - - - // $ANTLR start "rule__NativeContext__Group__1__Impl" - // InternalValid.g:3334:1: rule__NativeContext__Group__1__Impl : ( ( rule__NativeContext__Group_1__0 )? ) ; - public final void rule__NativeContext__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3338:1: ( ( ( rule__NativeContext__Group_1__0 )? ) ) - // InternalValid.g:3339:1: ( ( rule__NativeContext__Group_1__0 )? ) - { - // InternalValid.g:3339:1: ( ( rule__NativeContext__Group_1__0 )? ) - // InternalValid.g:3340:2: ( rule__NativeContext__Group_1__0 )? - { - before(grammarAccess.getNativeContextAccess().getGroup_1()); - // InternalValid.g:3341:2: ( rule__NativeContext__Group_1__0 )? - int alt26=2; - int LA26_0 = input.LA(1); - - if ( (LA26_0==31) ) { - alt26=1; - } - switch (alt26) { - case 1 : - // InternalValid.g:3341:3: rule__NativeContext__Group_1__0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_1__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getNativeContextAccess().getGroup_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group__2" - // InternalValid.g:3349:1: rule__NativeContext__Group__2 : rule__NativeContext__Group__2__Impl rule__NativeContext__Group__3 ; - public final void rule__NativeContext__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3353:1: ( rule__NativeContext__Group__2__Impl rule__NativeContext__Group__3 ) - // InternalValid.g:3354:2: rule__NativeContext__Group__2__Impl rule__NativeContext__Group__3 - { - pushFollow(FOLLOW_30); - rule__NativeContext__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__2" - - - // $ANTLR start "rule__NativeContext__Group__2__Impl" - // InternalValid.g:3361:1: rule__NativeContext__Group__2__Impl : ( ( rule__NativeContext__Group_2__0 )? ) ; - public final void rule__NativeContext__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3365:1: ( ( ( rule__NativeContext__Group_2__0 )? ) ) - // InternalValid.g:3366:1: ( ( rule__NativeContext__Group_2__0 )? ) - { - // InternalValid.g:3366:1: ( ( rule__NativeContext__Group_2__0 )? ) - // InternalValid.g:3367:2: ( rule__NativeContext__Group_2__0 )? - { - before(grammarAccess.getNativeContextAccess().getGroup_2()); - // InternalValid.g:3368:2: ( rule__NativeContext__Group_2__0 )? - int alt27=2; - int LA27_0 = input.LA(1); - - if ( (LA27_0==37) ) { - alt27=1; - } - switch (alt27) { - case 1 : - // InternalValid.g:3368:3: rule__NativeContext__Group_2__0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_2__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getNativeContextAccess().getGroup_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__2__Impl" - - - // $ANTLR start "rule__NativeContext__Group__3" - // InternalValid.g:3376:1: rule__NativeContext__Group__3 : rule__NativeContext__Group__3__Impl rule__NativeContext__Group__4 ; - public final void rule__NativeContext__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3380:1: ( rule__NativeContext__Group__3__Impl rule__NativeContext__Group__4 ) - // InternalValid.g:3381:2: rule__NativeContext__Group__3__Impl rule__NativeContext__Group__4 - { - pushFollow(FOLLOW_30); - rule__NativeContext__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__3" - - - // $ANTLR start "rule__NativeContext__Group__3__Impl" - // InternalValid.g:3388:1: rule__NativeContext__Group__3__Impl : ( ( rule__NativeContext__Group_3__0 )? ) ; - public final void rule__NativeContext__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3392:1: ( ( ( rule__NativeContext__Group_3__0 )? ) ) - // InternalValid.g:3393:1: ( ( rule__NativeContext__Group_3__0 )? ) - { - // InternalValid.g:3393:1: ( ( rule__NativeContext__Group_3__0 )? ) - // InternalValid.g:3394:2: ( rule__NativeContext__Group_3__0 )? - { - before(grammarAccess.getNativeContextAccess().getGroup_3()); - // InternalValid.g:3395:2: ( rule__NativeContext__Group_3__0 )? - int alt28=2; - int LA28_0 = input.LA(1); - - if ( (LA28_0==32) ) { - alt28=1; - } - switch (alt28) { - case 1 : - // InternalValid.g:3395:3: rule__NativeContext__Group_3__0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getNativeContextAccess().getGroup_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__3__Impl" - - - // $ANTLR start "rule__NativeContext__Group__4" - // InternalValid.g:3403:1: rule__NativeContext__Group__4 : rule__NativeContext__Group__4__Impl rule__NativeContext__Group__5 ; - public final void rule__NativeContext__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3407:1: ( rule__NativeContext__Group__4__Impl rule__NativeContext__Group__5 ) - // InternalValid.g:3408:2: rule__NativeContext__Group__4__Impl rule__NativeContext__Group__5 - { - pushFollow(FOLLOW_30); - rule__NativeContext__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__4" - - - // $ANTLR start "rule__NativeContext__Group__4__Impl" - // InternalValid.g:3415:1: rule__NativeContext__Group__4__Impl : ( ( rule__NativeContext__Group_4__0 )? ) ; - public final void rule__NativeContext__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3419:1: ( ( ( rule__NativeContext__Group_4__0 )? ) ) - // InternalValid.g:3420:1: ( ( rule__NativeContext__Group_4__0 )? ) - { - // InternalValid.g:3420:1: ( ( rule__NativeContext__Group_4__0 )? ) - // InternalValid.g:3421:2: ( rule__NativeContext__Group_4__0 )? - { - before(grammarAccess.getNativeContextAccess().getGroup_4()); - // InternalValid.g:3422:2: ( rule__NativeContext__Group_4__0 )? - int alt29=2; - int LA29_0 = input.LA(1); - - if ( (LA29_0==33) ) { - alt29=1; - } - switch (alt29) { - case 1 : - // InternalValid.g:3422:3: rule__NativeContext__Group_4__0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_4__0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getNativeContextAccess().getGroup_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__4__Impl" - - - // $ANTLR start "rule__NativeContext__Group__5" - // InternalValid.g:3430:1: rule__NativeContext__Group__5 : rule__NativeContext__Group__5__Impl ; - public final void rule__NativeContext__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3434:1: ( rule__NativeContext__Group__5__Impl ) - // InternalValid.g:3435:2: rule__NativeContext__Group__5__Impl - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group__5__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__5" - - - // $ANTLR start "rule__NativeContext__Group__5__Impl" - // InternalValid.g:3441:1: rule__NativeContext__Group__5__Impl : ( ';' ) ; - public final void rule__NativeContext__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3445:1: ( ( ';' ) ) - // InternalValid.g:3446:1: ( ';' ) - { - // InternalValid.g:3446:1: ( ';' ) - // InternalValid.g:3447:2: ';' - { - before(grammarAccess.getNativeContextAccess().getSemicolonKeyword_5()); - match(input,30,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getSemicolonKeyword_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group__5__Impl" - - - // $ANTLR start "rule__NativeContext__Group_1__0" - // InternalValid.g:3457:1: rule__NativeContext__Group_1__0 : rule__NativeContext__Group_1__0__Impl rule__NativeContext__Group_1__1 ; - public final void rule__NativeContext__Group_1__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3461:1: ( rule__NativeContext__Group_1__0__Impl rule__NativeContext__Group_1__1 ) - // InternalValid.g:3462:2: rule__NativeContext__Group_1__0__Impl rule__NativeContext__Group_1__1 - { - pushFollow(FOLLOW_7); - rule__NativeContext__Group_1__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_1__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_1__0" - - - // $ANTLR start "rule__NativeContext__Group_1__0__Impl" - // InternalValid.g:3469:1: rule__NativeContext__Group_1__0__Impl : ( '#' ) ; - public final void rule__NativeContext__Group_1__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3473:1: ( ( '#' ) ) - // InternalValid.g:3474:1: ( '#' ) - { - // InternalValid.g:3474:1: ( '#' ) - // InternalValid.g:3475:2: '#' - { - before(grammarAccess.getNativeContextAccess().getNumberSignKeyword_1_0()); - match(input,31,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getNumberSignKeyword_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_1__0__Impl" - - - // $ANTLR start "rule__NativeContext__Group_1__1" - // InternalValid.g:3484:1: rule__NativeContext__Group_1__1 : rule__NativeContext__Group_1__1__Impl ; - public final void rule__NativeContext__Group_1__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3488:1: ( rule__NativeContext__Group_1__1__Impl ) - // InternalValid.g:3489:2: rule__NativeContext__Group_1__1__Impl - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_1__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_1__1" - - - // $ANTLR start "rule__NativeContext__Group_1__1__Impl" - // InternalValid.g:3495:1: rule__NativeContext__Group_1__1__Impl : ( ( rule__NativeContext__ContextFeatureAssignment_1_1 ) ) ; - public final void rule__NativeContext__Group_1__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3499:1: ( ( ( rule__NativeContext__ContextFeatureAssignment_1_1 ) ) ) - // InternalValid.g:3500:1: ( ( rule__NativeContext__ContextFeatureAssignment_1_1 ) ) - { - // InternalValid.g:3500:1: ( ( rule__NativeContext__ContextFeatureAssignment_1_1 ) ) - // InternalValid.g:3501:2: ( rule__NativeContext__ContextFeatureAssignment_1_1 ) - { - before(grammarAccess.getNativeContextAccess().getContextFeatureAssignment_1_1()); - // InternalValid.g:3502:2: ( rule__NativeContext__ContextFeatureAssignment_1_1 ) - // InternalValid.g:3502:3: rule__NativeContext__ContextFeatureAssignment_1_1 - { - pushFollow(FOLLOW_2); - rule__NativeContext__ContextFeatureAssignment_1_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getContextFeatureAssignment_1_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_1__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group_2__0" - // InternalValid.g:3511:1: rule__NativeContext__Group_2__0 : rule__NativeContext__Group_2__0__Impl rule__NativeContext__Group_2__1 ; - public final void rule__NativeContext__Group_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3515:1: ( rule__NativeContext__Group_2__0__Impl rule__NativeContext__Group_2__1 ) - // InternalValid.g:3516:2: rule__NativeContext__Group_2__0__Impl rule__NativeContext__Group_2__1 - { - pushFollow(FOLLOW_7); - rule__NativeContext__Group_2__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_2__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_2__0" - - - // $ANTLR start "rule__NativeContext__Group_2__0__Impl" - // InternalValid.g:3523:1: rule__NativeContext__Group_2__0__Impl : ( ( rule__NativeContext__NamedAssignment_2_0 ) ) ; - public final void rule__NativeContext__Group_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3527:1: ( ( ( rule__NativeContext__NamedAssignment_2_0 ) ) ) - // InternalValid.g:3528:1: ( ( rule__NativeContext__NamedAssignment_2_0 ) ) - { - // InternalValid.g:3528:1: ( ( rule__NativeContext__NamedAssignment_2_0 ) ) - // InternalValid.g:3529:2: ( rule__NativeContext__NamedAssignment_2_0 ) - { - before(grammarAccess.getNativeContextAccess().getNamedAssignment_2_0()); - // InternalValid.g:3530:2: ( rule__NativeContext__NamedAssignment_2_0 ) - // InternalValid.g:3530:3: rule__NativeContext__NamedAssignment_2_0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__NamedAssignment_2_0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getNamedAssignment_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_2__0__Impl" - - - // $ANTLR start "rule__NativeContext__Group_2__1" - // InternalValid.g:3538:1: rule__NativeContext__Group_2__1 : rule__NativeContext__Group_2__1__Impl ; - public final void rule__NativeContext__Group_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3542:1: ( rule__NativeContext__Group_2__1__Impl ) - // InternalValid.g:3543:2: rule__NativeContext__Group_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_2__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_2__1" - - - // $ANTLR start "rule__NativeContext__Group_2__1__Impl" - // InternalValid.g:3549:1: rule__NativeContext__Group_2__1__Impl : ( ( rule__NativeContext__GivenNameAssignment_2_1 ) ) ; - public final void rule__NativeContext__Group_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3553:1: ( ( ( rule__NativeContext__GivenNameAssignment_2_1 ) ) ) - // InternalValid.g:3554:1: ( ( rule__NativeContext__GivenNameAssignment_2_1 ) ) - { - // InternalValid.g:3554:1: ( ( rule__NativeContext__GivenNameAssignment_2_1 ) ) - // InternalValid.g:3555:2: ( rule__NativeContext__GivenNameAssignment_2_1 ) - { - before(grammarAccess.getNativeContextAccess().getGivenNameAssignment_2_1()); - // InternalValid.g:3556:2: ( rule__NativeContext__GivenNameAssignment_2_1 ) - // InternalValid.g:3556:3: rule__NativeContext__GivenNameAssignment_2_1 - { - pushFollow(FOLLOW_2); - rule__NativeContext__GivenNameAssignment_2_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getGivenNameAssignment_2_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_2__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group_3__0" - // InternalValid.g:3565:1: rule__NativeContext__Group_3__0 : rule__NativeContext__Group_3__0__Impl rule__NativeContext__Group_3__1 ; - public final void rule__NativeContext__Group_3__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3569:1: ( rule__NativeContext__Group_3__0__Impl rule__NativeContext__Group_3__1 ) - // InternalValid.g:3570:2: rule__NativeContext__Group_3__0__Impl rule__NativeContext__Group_3__1 - { - pushFollow(FOLLOW_7); - rule__NativeContext__Group_3__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3__0" - - - // $ANTLR start "rule__NativeContext__Group_3__0__Impl" - // InternalValid.g:3577:1: rule__NativeContext__Group_3__0__Impl : ( 'marker' ) ; - public final void rule__NativeContext__Group_3__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3581:1: ( ( 'marker' ) ) - // InternalValid.g:3582:1: ( 'marker' ) - { - // InternalValid.g:3582:1: ( 'marker' ) - // InternalValid.g:3583:2: 'marker' - { - before(grammarAccess.getNativeContextAccess().getMarkerKeyword_3_0()); - match(input,32,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getMarkerKeyword_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3__0__Impl" - - - // $ANTLR start "rule__NativeContext__Group_3__1" - // InternalValid.g:3592:1: rule__NativeContext__Group_3__1 : rule__NativeContext__Group_3__1__Impl rule__NativeContext__Group_3__2 ; - public final void rule__NativeContext__Group_3__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3596:1: ( rule__NativeContext__Group_3__1__Impl rule__NativeContext__Group_3__2 ) - // InternalValid.g:3597:2: rule__NativeContext__Group_3__1__Impl rule__NativeContext__Group_3__2 - { - pushFollow(FOLLOW_28); - rule__NativeContext__Group_3__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3__1" - - - // $ANTLR start "rule__NativeContext__Group_3__1__Impl" - // InternalValid.g:3604:1: rule__NativeContext__Group_3__1__Impl : ( ( rule__NativeContext__MarkerTypeAssignment_3_1 ) ) ; - public final void rule__NativeContext__Group_3__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3608:1: ( ( ( rule__NativeContext__MarkerTypeAssignment_3_1 ) ) ) - // InternalValid.g:3609:1: ( ( rule__NativeContext__MarkerTypeAssignment_3_1 ) ) - { - // InternalValid.g:3609:1: ( ( rule__NativeContext__MarkerTypeAssignment_3_1 ) ) - // InternalValid.g:3610:2: ( rule__NativeContext__MarkerTypeAssignment_3_1 ) - { - before(grammarAccess.getNativeContextAccess().getMarkerTypeAssignment_3_1()); - // InternalValid.g:3611:2: ( rule__NativeContext__MarkerTypeAssignment_3_1 ) - // InternalValid.g:3611:3: rule__NativeContext__MarkerTypeAssignment_3_1 - { - pushFollow(FOLLOW_2); - rule__NativeContext__MarkerTypeAssignment_3_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getMarkerTypeAssignment_3_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group_3__2" - // InternalValid.g:3619:1: rule__NativeContext__Group_3__2 : rule__NativeContext__Group_3__2__Impl ; - public final void rule__NativeContext__Group_3__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3623:1: ( rule__NativeContext__Group_3__2__Impl ) - // InternalValid.g:3624:2: rule__NativeContext__Group_3__2__Impl - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3__2__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3__2" - - - // $ANTLR start "rule__NativeContext__Group_3__2__Impl" - // InternalValid.g:3630:1: rule__NativeContext__Group_3__2__Impl : ( ( rule__NativeContext__Group_3_2__0 ) ) ; - public final void rule__NativeContext__Group_3__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3634:1: ( ( ( rule__NativeContext__Group_3_2__0 ) ) ) - // InternalValid.g:3635:1: ( ( rule__NativeContext__Group_3_2__0 ) ) - { - // InternalValid.g:3635:1: ( ( rule__NativeContext__Group_3_2__0 ) ) - // InternalValid.g:3636:2: ( rule__NativeContext__Group_3_2__0 ) - { - before(grammarAccess.getNativeContextAccess().getGroup_3_2()); - // InternalValid.g:3637:2: ( rule__NativeContext__Group_3_2__0 ) - // InternalValid.g:3637:3: rule__NativeContext__Group_3_2__0 - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3_2__0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getGroup_3_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3__2__Impl" - - - // $ANTLR start "rule__NativeContext__Group_3_2__0" - // InternalValid.g:3646:1: rule__NativeContext__Group_3_2__0 : rule__NativeContext__Group_3_2__0__Impl rule__NativeContext__Group_3_2__1 ; - public final void rule__NativeContext__Group_3_2__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3650:1: ( rule__NativeContext__Group_3_2__0__Impl rule__NativeContext__Group_3_2__1 ) - // InternalValid.g:3651:2: rule__NativeContext__Group_3_2__0__Impl rule__NativeContext__Group_3_2__1 - { - pushFollow(FOLLOW_7); - rule__NativeContext__Group_3_2__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3_2__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3_2__0" - - - // $ANTLR start "rule__NativeContext__Group_3_2__0__Impl" - // InternalValid.g:3658:1: rule__NativeContext__Group_3_2__0__Impl : ( '#' ) ; - public final void rule__NativeContext__Group_3_2__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3662:1: ( ( '#' ) ) - // InternalValid.g:3663:1: ( '#' ) - { - // InternalValid.g:3663:1: ( '#' ) - // InternalValid.g:3664:2: '#' - { - before(grammarAccess.getNativeContextAccess().getNumberSignKeyword_3_2_0()); - match(input,31,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getNumberSignKeyword_3_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3_2__0__Impl" - - - // $ANTLR start "rule__NativeContext__Group_3_2__1" - // InternalValid.g:3673:1: rule__NativeContext__Group_3_2__1 : rule__NativeContext__Group_3_2__1__Impl ; - public final void rule__NativeContext__Group_3_2__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3677:1: ( rule__NativeContext__Group_3_2__1__Impl ) - // InternalValid.g:3678:2: rule__NativeContext__Group_3_2__1__Impl - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_3_2__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3_2__1" - - - // $ANTLR start "rule__NativeContext__Group_3_2__1__Impl" - // InternalValid.g:3684:1: rule__NativeContext__Group_3_2__1__Impl : ( ( rule__NativeContext__MarkerFeatureAssignment_3_2_1 ) ) ; - public final void rule__NativeContext__Group_3_2__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3688:1: ( ( ( rule__NativeContext__MarkerFeatureAssignment_3_2_1 ) ) ) - // InternalValid.g:3689:1: ( ( rule__NativeContext__MarkerFeatureAssignment_3_2_1 ) ) - { - // InternalValid.g:3689:1: ( ( rule__NativeContext__MarkerFeatureAssignment_3_2_1 ) ) - // InternalValid.g:3690:2: ( rule__NativeContext__MarkerFeatureAssignment_3_2_1 ) - { - before(grammarAccess.getNativeContextAccess().getMarkerFeatureAssignment_3_2_1()); - // InternalValid.g:3691:2: ( rule__NativeContext__MarkerFeatureAssignment_3_2_1 ) - // InternalValid.g:3691:3: rule__NativeContext__MarkerFeatureAssignment_3_2_1 - { - pushFollow(FOLLOW_2); - rule__NativeContext__MarkerFeatureAssignment_3_2_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getMarkerFeatureAssignment_3_2_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_3_2__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group_4__0" - // InternalValid.g:3700:1: rule__NativeContext__Group_4__0 : rule__NativeContext__Group_4__0__Impl rule__NativeContext__Group_4__1 ; - public final void rule__NativeContext__Group_4__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3704:1: ( rule__NativeContext__Group_4__0__Impl rule__NativeContext__Group_4__1 ) - // InternalValid.g:3705:2: rule__NativeContext__Group_4__0__Impl rule__NativeContext__Group_4__1 - { - pushFollow(FOLLOW_15); - rule__NativeContext__Group_4__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_4__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__0" - - - // $ANTLR start "rule__NativeContext__Group_4__0__Impl" - // InternalValid.g:3712:1: rule__NativeContext__Group_4__0__Impl : ( 'quickfixes' ) ; - public final void rule__NativeContext__Group_4__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3716:1: ( ( 'quickfixes' ) ) - // InternalValid.g:3717:1: ( 'quickfixes' ) - { - // InternalValid.g:3717:1: ( 'quickfixes' ) - // InternalValid.g:3718:2: 'quickfixes' - { - before(grammarAccess.getNativeContextAccess().getQuickfixesKeyword_4_0()); - match(input,33,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getQuickfixesKeyword_4_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__0__Impl" - - - // $ANTLR start "rule__NativeContext__Group_4__1" - // InternalValid.g:3727:1: rule__NativeContext__Group_4__1 : rule__NativeContext__Group_4__1__Impl rule__NativeContext__Group_4__2 ; - public final void rule__NativeContext__Group_4__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3731:1: ( rule__NativeContext__Group_4__1__Impl rule__NativeContext__Group_4__2 ) - // InternalValid.g:3732:2: rule__NativeContext__Group_4__1__Impl rule__NativeContext__Group_4__2 - { - pushFollow(FOLLOW_31); - rule__NativeContext__Group_4__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_4__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__1" - - - // $ANTLR start "rule__NativeContext__Group_4__1__Impl" - // InternalValid.g:3739:1: rule__NativeContext__Group_4__1__Impl : ( '{' ) ; - public final void rule__NativeContext__Group_4__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3743:1: ( ( '{' ) ) - // InternalValid.g:3744:1: ( '{' ) - { - // InternalValid.g:3744:1: ( '{' ) - // InternalValid.g:3745:2: '{' - { - before(grammarAccess.getNativeContextAccess().getLeftCurlyBracketKeyword_4_1()); - match(input,21,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getLeftCurlyBracketKeyword_4_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__1__Impl" - - - // $ANTLR start "rule__NativeContext__Group_4__2" - // InternalValid.g:3754:1: rule__NativeContext__Group_4__2 : rule__NativeContext__Group_4__2__Impl rule__NativeContext__Group_4__3 ; - public final void rule__NativeContext__Group_4__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3758:1: ( rule__NativeContext__Group_4__2__Impl rule__NativeContext__Group_4__3 ) - // InternalValid.g:3759:2: rule__NativeContext__Group_4__2__Impl rule__NativeContext__Group_4__3 - { - pushFollow(FOLLOW_16); - rule__NativeContext__Group_4__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__NativeContext__Group_4__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__2" - - - // $ANTLR start "rule__NativeContext__Group_4__2__Impl" - // InternalValid.g:3766:1: rule__NativeContext__Group_4__2__Impl : ( ( ( rule__NativeContext__QuickFixesAssignment_4_2 ) ) ( ( rule__NativeContext__QuickFixesAssignment_4_2 )* ) ) ; - public final void rule__NativeContext__Group_4__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3770:1: ( ( ( ( rule__NativeContext__QuickFixesAssignment_4_2 ) ) ( ( rule__NativeContext__QuickFixesAssignment_4_2 )* ) ) ) - // InternalValid.g:3771:1: ( ( ( rule__NativeContext__QuickFixesAssignment_4_2 ) ) ( ( rule__NativeContext__QuickFixesAssignment_4_2 )* ) ) - { - // InternalValid.g:3771:1: ( ( ( rule__NativeContext__QuickFixesAssignment_4_2 ) ) ( ( rule__NativeContext__QuickFixesAssignment_4_2 )* ) ) - // InternalValid.g:3772:2: ( ( rule__NativeContext__QuickFixesAssignment_4_2 ) ) ( ( rule__NativeContext__QuickFixesAssignment_4_2 )* ) - { - // InternalValid.g:3772:2: ( ( rule__NativeContext__QuickFixesAssignment_4_2 ) ) - // InternalValid.g:3773:3: ( rule__NativeContext__QuickFixesAssignment_4_2 ) - { - before(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); - // InternalValid.g:3774:3: ( rule__NativeContext__QuickFixesAssignment_4_2 ) - // InternalValid.g:3774:4: rule__NativeContext__QuickFixesAssignment_4_2 - { - pushFollow(FOLLOW_32); - rule__NativeContext__QuickFixesAssignment_4_2(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); - - } - - // InternalValid.g:3777:2: ( ( rule__NativeContext__QuickFixesAssignment_4_2 )* ) - // InternalValid.g:3778:3: ( rule__NativeContext__QuickFixesAssignment_4_2 )* - { - before(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); - // InternalValid.g:3779:3: ( rule__NativeContext__QuickFixesAssignment_4_2 )* - loop30: - do { - int alt30=2; - int LA30_0 = input.LA(1); - - if ( ((LA30_0>=16 && LA30_0<=17)||LA30_0==34) ) { - alt30=1; - } - - - switch (alt30) { - case 1 : - // InternalValid.g:3779:4: rule__NativeContext__QuickFixesAssignment_4_2 - { - pushFollow(FOLLOW_32); - rule__NativeContext__QuickFixesAssignment_4_2(); - - state._fsp--; - - - } - break; - - default : - break loop30; - } - } while (true); - - after(grammarAccess.getNativeContextAccess().getQuickFixesAssignment_4_2()); - - } - - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__2__Impl" - - - // $ANTLR start "rule__NativeContext__Group_4__3" - // InternalValid.g:3788:1: rule__NativeContext__Group_4__3 : rule__NativeContext__Group_4__3__Impl ; - public final void rule__NativeContext__Group_4__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3792:1: ( rule__NativeContext__Group_4__3__Impl ) - // InternalValid.g:3793:2: rule__NativeContext__Group_4__3__Impl - { - pushFollow(FOLLOW_2); - rule__NativeContext__Group_4__3__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__3" - - - // $ANTLR start "rule__NativeContext__Group_4__3__Impl" - // InternalValid.g:3799:1: rule__NativeContext__Group_4__3__Impl : ( '}' ) ; - public final void rule__NativeContext__Group_4__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3803:1: ( ( '}' ) ) - // InternalValid.g:3804:1: ( '}' ) - { - // InternalValid.g:3804:1: ( '}' ) - // InternalValid.g:3805:2: '}' - { - before(grammarAccess.getNativeContextAccess().getRightCurlyBracketKeyword_4_3()); - match(input,22,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getRightCurlyBracketKeyword_4_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__Group_4__3__Impl" - - - // $ANTLR start "rule__QuickFix__Group__0" - // InternalValid.g:3815:1: rule__QuickFix__Group__0 : rule__QuickFix__Group__0__Impl rule__QuickFix__Group__1 ; - public final void rule__QuickFix__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3819:1: ( rule__QuickFix__Group__0__Impl rule__QuickFix__Group__1 ) - // InternalValid.g:3820:2: rule__QuickFix__Group__0__Impl rule__QuickFix__Group__1 - { - pushFollow(FOLLOW_31); - rule__QuickFix__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__0" - - - // $ANTLR start "rule__QuickFix__Group__0__Impl" - // InternalValid.g:3827:1: rule__QuickFix__Group__0__Impl : ( ( rule__QuickFix__QuickFixKindAssignment_0 )? ) ; - public final void rule__QuickFix__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3831:1: ( ( ( rule__QuickFix__QuickFixKindAssignment_0 )? ) ) - // InternalValid.g:3832:1: ( ( rule__QuickFix__QuickFixKindAssignment_0 )? ) - { - // InternalValid.g:3832:1: ( ( rule__QuickFix__QuickFixKindAssignment_0 )? ) - // InternalValid.g:3833:2: ( rule__QuickFix__QuickFixKindAssignment_0 )? - { - before(grammarAccess.getQuickFixAccess().getQuickFixKindAssignment_0()); - // InternalValid.g:3834:2: ( rule__QuickFix__QuickFixKindAssignment_0 )? - int alt31=2; - int LA31_0 = input.LA(1); - - if ( ((LA31_0>=16 && LA31_0<=17)) ) { - alt31=1; - } - switch (alt31) { - case 1 : - // InternalValid.g:3834:3: rule__QuickFix__QuickFixKindAssignment_0 - { - pushFollow(FOLLOW_2); - rule__QuickFix__QuickFixKindAssignment_0(); - - state._fsp--; - - - } - break; - - } - - after(grammarAccess.getQuickFixAccess().getQuickFixKindAssignment_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__0__Impl" - - - // $ANTLR start "rule__QuickFix__Group__1" - // InternalValid.g:3842:1: rule__QuickFix__Group__1 : rule__QuickFix__Group__1__Impl rule__QuickFix__Group__2 ; - public final void rule__QuickFix__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3846:1: ( rule__QuickFix__Group__1__Impl rule__QuickFix__Group__2 ) - // InternalValid.g:3847:2: rule__QuickFix__Group__1__Impl rule__QuickFix__Group__2 - { - pushFollow(FOLLOW_7); - rule__QuickFix__Group__1__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__2(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__1" - - - // $ANTLR start "rule__QuickFix__Group__1__Impl" - // InternalValid.g:3854:1: rule__QuickFix__Group__1__Impl : ( 'fix' ) ; - public final void rule__QuickFix__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3858:1: ( ( 'fix' ) ) - // InternalValid.g:3859:1: ( 'fix' ) - { - // InternalValid.g:3859:1: ( 'fix' ) - // InternalValid.g:3860:2: 'fix' - { - before(grammarAccess.getQuickFixAccess().getFixKeyword_1()); - match(input,34,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getFixKeyword_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__1__Impl" - - - // $ANTLR start "rule__QuickFix__Group__2" - // InternalValid.g:3869:1: rule__QuickFix__Group__2 : rule__QuickFix__Group__2__Impl rule__QuickFix__Group__3 ; - public final void rule__QuickFix__Group__2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3873:1: ( rule__QuickFix__Group__2__Impl rule__QuickFix__Group__3 ) - // InternalValid.g:3874:2: rule__QuickFix__Group__2__Impl rule__QuickFix__Group__3 - { - pushFollow(FOLLOW_8); - rule__QuickFix__Group__2__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__3(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__2" - - - // $ANTLR start "rule__QuickFix__Group__2__Impl" - // InternalValid.g:3881:1: rule__QuickFix__Group__2__Impl : ( ( rule__QuickFix__NameAssignment_2 ) ) ; - public final void rule__QuickFix__Group__2__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3885:1: ( ( ( rule__QuickFix__NameAssignment_2 ) ) ) - // InternalValid.g:3886:1: ( ( rule__QuickFix__NameAssignment_2 ) ) - { - // InternalValid.g:3886:1: ( ( rule__QuickFix__NameAssignment_2 ) ) - // InternalValid.g:3887:2: ( rule__QuickFix__NameAssignment_2 ) - { - before(grammarAccess.getQuickFixAccess().getNameAssignment_2()); - // InternalValid.g:3888:2: ( rule__QuickFix__NameAssignment_2 ) - // InternalValid.g:3888:3: rule__QuickFix__NameAssignment_2 - { - pushFollow(FOLLOW_2); - rule__QuickFix__NameAssignment_2(); - - state._fsp--; - - - } - - after(grammarAccess.getQuickFixAccess().getNameAssignment_2()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__2__Impl" - - - // $ANTLR start "rule__QuickFix__Group__3" - // InternalValid.g:3896:1: rule__QuickFix__Group__3 : rule__QuickFix__Group__3__Impl rule__QuickFix__Group__4 ; - public final void rule__QuickFix__Group__3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3900:1: ( rule__QuickFix__Group__3__Impl rule__QuickFix__Group__4 ) - // InternalValid.g:3901:2: rule__QuickFix__Group__3__Impl rule__QuickFix__Group__4 - { - pushFollow(FOLLOW_6); - rule__QuickFix__Group__3__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__4(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__3" - - - // $ANTLR start "rule__QuickFix__Group__3__Impl" - // InternalValid.g:3908:1: rule__QuickFix__Group__3__Impl : ( 'label' ) ; - public final void rule__QuickFix__Group__3__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3912:1: ( ( 'label' ) ) - // InternalValid.g:3913:1: ( 'label' ) - { - // InternalValid.g:3913:1: ( 'label' ) - // InternalValid.g:3914:2: 'label' - { - before(grammarAccess.getQuickFixAccess().getLabelKeyword_3()); - match(input,20,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getLabelKeyword_3()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__3__Impl" - - - // $ANTLR start "rule__QuickFix__Group__4" - // InternalValid.g:3923:1: rule__QuickFix__Group__4 : rule__QuickFix__Group__4__Impl rule__QuickFix__Group__5 ; - public final void rule__QuickFix__Group__4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3927:1: ( rule__QuickFix__Group__4__Impl rule__QuickFix__Group__5 ) - // InternalValid.g:3928:2: rule__QuickFix__Group__4__Impl rule__QuickFix__Group__5 - { - pushFollow(FOLLOW_33); - rule__QuickFix__Group__4__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__5(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__4" - - - // $ANTLR start "rule__QuickFix__Group__4__Impl" - // InternalValid.g:3935:1: rule__QuickFix__Group__4__Impl : ( ( rule__QuickFix__LabelAssignment_4 ) ) ; - public final void rule__QuickFix__Group__4__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3939:1: ( ( ( rule__QuickFix__LabelAssignment_4 ) ) ) - // InternalValid.g:3940:1: ( ( rule__QuickFix__LabelAssignment_4 ) ) - { - // InternalValid.g:3940:1: ( ( rule__QuickFix__LabelAssignment_4 ) ) - // InternalValid.g:3941:2: ( rule__QuickFix__LabelAssignment_4 ) - { - before(grammarAccess.getQuickFixAccess().getLabelAssignment_4()); - // InternalValid.g:3942:2: ( rule__QuickFix__LabelAssignment_4 ) - // InternalValid.g:3942:3: rule__QuickFix__LabelAssignment_4 - { - pushFollow(FOLLOW_2); - rule__QuickFix__LabelAssignment_4(); - - state._fsp--; - - - } - - after(grammarAccess.getQuickFixAccess().getLabelAssignment_4()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__4__Impl" - - - // $ANTLR start "rule__QuickFix__Group__5" - // InternalValid.g:3950:1: rule__QuickFix__Group__5 : rule__QuickFix__Group__5__Impl rule__QuickFix__Group__6 ; - public final void rule__QuickFix__Group__5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3954:1: ( rule__QuickFix__Group__5__Impl rule__QuickFix__Group__6 ) - // InternalValid.g:3955:2: rule__QuickFix__Group__5__Impl rule__QuickFix__Group__6 - { - pushFollow(FOLLOW_6); - rule__QuickFix__Group__5__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__6(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__5" - - - // $ANTLR start "rule__QuickFix__Group__5__Impl" - // InternalValid.g:3962:1: rule__QuickFix__Group__5__Impl : ( 'message' ) ; - public final void rule__QuickFix__Group__5__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3966:1: ( ( 'message' ) ) - // InternalValid.g:3967:1: ( 'message' ) - { - // InternalValid.g:3967:1: ( 'message' ) - // InternalValid.g:3968:2: 'message' - { - before(grammarAccess.getQuickFixAccess().getMessageKeyword_5()); - match(input,24,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getMessageKeyword_5()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__5__Impl" - - - // $ANTLR start "rule__QuickFix__Group__6" - // InternalValid.g:3977:1: rule__QuickFix__Group__6 : rule__QuickFix__Group__6__Impl rule__QuickFix__Group__7 ; - public final void rule__QuickFix__Group__6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3981:1: ( rule__QuickFix__Group__6__Impl rule__QuickFix__Group__7 ) - // InternalValid.g:3982:2: rule__QuickFix__Group__6__Impl rule__QuickFix__Group__7 - { - pushFollow(FOLLOW_34); - rule__QuickFix__Group__6__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QuickFix__Group__7(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__6" - - - // $ANTLR start "rule__QuickFix__Group__6__Impl" - // InternalValid.g:3989:1: rule__QuickFix__Group__6__Impl : ( ( rule__QuickFix__MessageAssignment_6 ) ) ; - public final void rule__QuickFix__Group__6__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:3993:1: ( ( ( rule__QuickFix__MessageAssignment_6 ) ) ) - // InternalValid.g:3994:1: ( ( rule__QuickFix__MessageAssignment_6 ) ) - { - // InternalValid.g:3994:1: ( ( rule__QuickFix__MessageAssignment_6 ) ) - // InternalValid.g:3995:2: ( rule__QuickFix__MessageAssignment_6 ) - { - before(grammarAccess.getQuickFixAccess().getMessageAssignment_6()); - // InternalValid.g:3996:2: ( rule__QuickFix__MessageAssignment_6 ) - // InternalValid.g:3996:3: rule__QuickFix__MessageAssignment_6 - { - pushFollow(FOLLOW_2); - rule__QuickFix__MessageAssignment_6(); - - state._fsp--; - - - } - - after(grammarAccess.getQuickFixAccess().getMessageAssignment_6()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__6__Impl" - - - // $ANTLR start "rule__QuickFix__Group__7" - // InternalValid.g:4004:1: rule__QuickFix__Group__7 : rule__QuickFix__Group__7__Impl ; - public final void rule__QuickFix__Group__7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4008:1: ( rule__QuickFix__Group__7__Impl ) - // InternalValid.g:4009:2: rule__QuickFix__Group__7__Impl - { - pushFollow(FOLLOW_2); - rule__QuickFix__Group__7__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__7" - - - // $ANTLR start "rule__QuickFix__Group__7__Impl" - // InternalValid.g:4015:1: rule__QuickFix__Group__7__Impl : ( ';' ) ; - public final void rule__QuickFix__Group__7__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4019:1: ( ( ';' ) ) - // InternalValid.g:4020:1: ( ';' ) - { - // InternalValid.g:4020:1: ( ';' ) - // InternalValid.g:4021:2: ';' - { - before(grammarAccess.getQuickFixAccess().getSemicolonKeyword_7()); - match(input,30,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getSemicolonKeyword_7()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__Group__7__Impl" - - - // $ANTLR start "rule__QualifiedID__Group__0" - // InternalValid.g:4031:1: rule__QualifiedID__Group__0 : rule__QualifiedID__Group__0__Impl rule__QualifiedID__Group__1 ; - public final void rule__QualifiedID__Group__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4035:1: ( rule__QualifiedID__Group__0__Impl rule__QualifiedID__Group__1 ) - // InternalValid.g:4036:2: rule__QualifiedID__Group__0__Impl rule__QualifiedID__Group__1 - { - pushFollow(FOLLOW_7); - rule__QualifiedID__Group__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QualifiedID__Group__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group__0" - - - // $ANTLR start "rule__QualifiedID__Group__0__Impl" - // InternalValid.g:4043:1: rule__QualifiedID__Group__0__Impl : ( ( rule__QualifiedID__Group_0__0 )* ) ; - public final void rule__QualifiedID__Group__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4047:1: ( ( ( rule__QualifiedID__Group_0__0 )* ) ) - // InternalValid.g:4048:1: ( ( rule__QualifiedID__Group_0__0 )* ) - { - // InternalValid.g:4048:1: ( ( rule__QualifiedID__Group_0__0 )* ) - // InternalValid.g:4049:2: ( rule__QualifiedID__Group_0__0 )* - { - before(grammarAccess.getQualifiedIDAccess().getGroup_0()); - // InternalValid.g:4050:2: ( rule__QualifiedID__Group_0__0 )* - loop32: - do { - int alt32=2; - int LA32_0 = input.LA(1); - - if ( (LA32_0==RULE_ID) ) { - int LA32_1 = input.LA(2); - - if ( (LA32_1==35) ) { - alt32=1; - } - - - } - - - switch (alt32) { - case 1 : - // InternalValid.g:4050:3: rule__QualifiedID__Group_0__0 - { - pushFollow(FOLLOW_17); - rule__QualifiedID__Group_0__0(); - - state._fsp--; - - - } - break; - - default : - break loop32; - } - } while (true); - - after(grammarAccess.getQualifiedIDAccess().getGroup_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group__0__Impl" - - - // $ANTLR start "rule__QualifiedID__Group__1" - // InternalValid.g:4058:1: rule__QualifiedID__Group__1 : rule__QualifiedID__Group__1__Impl ; - public final void rule__QualifiedID__Group__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4062:1: ( rule__QualifiedID__Group__1__Impl ) - // InternalValid.g:4063:2: rule__QualifiedID__Group__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedID__Group__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group__1" - - - // $ANTLR start "rule__QualifiedID__Group__1__Impl" - // InternalValid.g:4069:1: rule__QualifiedID__Group__1__Impl : ( RULE_ID ) ; - public final void rule__QualifiedID__Group__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4073:1: ( ( RULE_ID ) ) - // InternalValid.g:4074:1: ( RULE_ID ) - { - // InternalValid.g:4074:1: ( RULE_ID ) - // InternalValid.g:4075:2: RULE_ID - { - before(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group__1__Impl" - - - // $ANTLR start "rule__QualifiedID__Group_0__0" - // InternalValid.g:4085:1: rule__QualifiedID__Group_0__0 : rule__QualifiedID__Group_0__0__Impl rule__QualifiedID__Group_0__1 ; - public final void rule__QualifiedID__Group_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4089:1: ( rule__QualifiedID__Group_0__0__Impl rule__QualifiedID__Group_0__1 ) - // InternalValid.g:4090:2: rule__QualifiedID__Group_0__0__Impl rule__QualifiedID__Group_0__1 - { - pushFollow(FOLLOW_35); - rule__QualifiedID__Group_0__0__Impl(); - - state._fsp--; - - pushFollow(FOLLOW_2); - rule__QualifiedID__Group_0__1(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group_0__0" - - - // $ANTLR start "rule__QualifiedID__Group_0__0__Impl" - // InternalValid.g:4097:1: rule__QualifiedID__Group_0__0__Impl : ( RULE_ID ) ; - public final void rule__QualifiedID__Group_0__0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4101:1: ( ( RULE_ID ) ) - // InternalValid.g:4102:1: ( RULE_ID ) - { - // InternalValid.g:4102:1: ( RULE_ID ) - // InternalValid.g:4103:2: RULE_ID - { - before(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_0_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group_0__0__Impl" - - - // $ANTLR start "rule__QualifiedID__Group_0__1" - // InternalValid.g:4112:1: rule__QualifiedID__Group_0__1 : rule__QualifiedID__Group_0__1__Impl ; - public final void rule__QualifiedID__Group_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4116:1: ( rule__QualifiedID__Group_0__1__Impl ) - // InternalValid.g:4117:2: rule__QualifiedID__Group_0__1__Impl - { - pushFollow(FOLLOW_2); - rule__QualifiedID__Group_0__1__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group_0__1" - - - // $ANTLR start "rule__QualifiedID__Group_0__1__Impl" - // InternalValid.g:4123:1: rule__QualifiedID__Group_0__1__Impl : ( '::' ) ; - public final void rule__QualifiedID__Group_0__1__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4127:1: ( ( '::' ) ) - // InternalValid.g:4128:1: ( '::' ) - { - // InternalValid.g:4128:1: ( '::' ) - // InternalValid.g:4129:2: '::' - { - before(grammarAccess.getQualifiedIDAccess().getColonColonKeyword_0_1()); - match(input,35,FOLLOW_2); - after(grammarAccess.getQualifiedIDAccess().getColonColonKeyword_0_1()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QualifiedID__Group_0__1__Impl" - - - // $ANTLR start "rule__NativeRule__UnorderedGroup_0" - // InternalValid.g:4139:1: rule__NativeRule__UnorderedGroup_0 : ( rule__NativeRule__UnorderedGroup_0__0 )? ; - public final void rule__NativeRule__UnorderedGroup_0() throws RecognitionException { - - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - - try { - // InternalValid.g:4144:1: ( ( rule__NativeRule__UnorderedGroup_0__0 )? ) - // InternalValid.g:4145:2: ( rule__NativeRule__UnorderedGroup_0__0 )? - { - // InternalValid.g:4145:2: ( rule__NativeRule__UnorderedGroup_0__0 )? - int alt33=2; - int LA33_0 = input.LA(1); - - if ( LA33_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt33=1; - } - else if ( LA33_0 >= 11 && LA33_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt33=1; - } - switch (alt33) { - case 1 : - // InternalValid.g:4145:2: rule__NativeRule__UnorderedGroup_0__0 - { - pushFollow(FOLLOW_2); - rule__NativeRule__UnorderedGroup_0__0(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - getUnorderedGroupHelper().leave(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__UnorderedGroup_0" - - - // $ANTLR start "rule__NativeRule__UnorderedGroup_0__Impl" - // InternalValid.g:4153:1: rule__NativeRule__UnorderedGroup_0__Impl : ( ({...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) ) ) ; - public final void rule__NativeRule__UnorderedGroup_0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - boolean selected = false; - - try { - // InternalValid.g:4158:1: ( ( ({...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) ) ) ) - // InternalValid.g:4159:3: ( ({...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) ) ) - { - // InternalValid.g:4159:3: ( ({...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) ) ) - int alt34=2; - int LA34_0 = input.LA(1); - - if ( LA34_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt34=1; - } - else if ( LA34_0 >= 11 && LA34_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt34=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 34, 0, input); - - throw nvae; - } - switch (alt34) { - case 1 : - // InternalValid.g:4160:3: ({...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) ) - { - // InternalValid.g:4160:3: ({...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) ) - // InternalValid.g:4161:4: {...}? => ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "rule__NativeRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:4161:106: ( ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) ) - // InternalValid.g:4162:5: ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0); - - - selected = true; - - // InternalValid.g:4168:5: ( ( rule__NativeRule__OptionalAssignment_0_0 ) ) - // InternalValid.g:4169:6: ( rule__NativeRule__OptionalAssignment_0_0 ) - { - before(grammarAccess.getNativeRuleAccess().getOptionalAssignment_0_0()); - // InternalValid.g:4170:6: ( rule__NativeRule__OptionalAssignment_0_0 ) - // InternalValid.g:4170:7: rule__NativeRule__OptionalAssignment_0_0 - { - pushFollow(FOLLOW_2); - rule__NativeRule__OptionalAssignment_0_0(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getOptionalAssignment_0_0()); - - } - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:4175:3: ({...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) ) - { - // InternalValid.g:4175:3: ({...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) ) - // InternalValid.g:4176:4: {...}? => ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "rule__NativeRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:4176:106: ( ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) ) - // InternalValid.g:4177:5: ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1); - - - selected = true; - - // InternalValid.g:4183:5: ( ( rule__NativeRule__CheckKindAssignment_0_1 ) ) - // InternalValid.g:4184:6: ( rule__NativeRule__CheckKindAssignment_0_1 ) - { - before(grammarAccess.getNativeRuleAccess().getCheckKindAssignment_0_1()); - // InternalValid.g:4185:6: ( rule__NativeRule__CheckKindAssignment_0_1 ) - // InternalValid.g:4185:7: rule__NativeRule__CheckKindAssignment_0_1 - { - pushFollow(FOLLOW_2); - rule__NativeRule__CheckKindAssignment_0_1(); - - state._fsp--; - - - } - - after(grammarAccess.getNativeRuleAccess().getCheckKindAssignment_0_1()); - - } - - - } - - - } - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__UnorderedGroup_0__Impl" - - - // $ANTLR start "rule__NativeRule__UnorderedGroup_0__0" - // InternalValid.g:4198:1: rule__NativeRule__UnorderedGroup_0__0 : rule__NativeRule__UnorderedGroup_0__Impl ( rule__NativeRule__UnorderedGroup_0__1 )? ; - public final void rule__NativeRule__UnorderedGroup_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4202:1: ( rule__NativeRule__UnorderedGroup_0__Impl ( rule__NativeRule__UnorderedGroup_0__1 )? ) - // InternalValid.g:4203:2: rule__NativeRule__UnorderedGroup_0__Impl ( rule__NativeRule__UnorderedGroup_0__1 )? - { - pushFollow(FOLLOW_11); - rule__NativeRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - // InternalValid.g:4204:2: ( rule__NativeRule__UnorderedGroup_0__1 )? - int alt35=2; - int LA35_0 = input.LA(1); - - if ( LA35_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt35=1; - } - else if ( LA35_0 >= 11 && LA35_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt35=1; - } - switch (alt35) { - case 1 : - // InternalValid.g:4204:2: rule__NativeRule__UnorderedGroup_0__1 - { - pushFollow(FOLLOW_2); - rule__NativeRule__UnorderedGroup_0__1(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__UnorderedGroup_0__0" - - - // $ANTLR start "rule__NativeRule__UnorderedGroup_0__1" - // InternalValid.g:4210:1: rule__NativeRule__UnorderedGroup_0__1 : rule__NativeRule__UnorderedGroup_0__Impl ; - public final void rule__NativeRule__UnorderedGroup_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4214:1: ( rule__NativeRule__UnorderedGroup_0__Impl ) - // InternalValid.g:4215:2: rule__NativeRule__UnorderedGroup_0__Impl - { - pushFollow(FOLLOW_2); - rule__NativeRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__UnorderedGroup_0__1" - - - // $ANTLR start "rule__SizeRule__UnorderedGroup_0" - // InternalValid.g:4222:1: rule__SizeRule__UnorderedGroup_0 : ( rule__SizeRule__UnorderedGroup_0__0 )? ; - public final void rule__SizeRule__UnorderedGroup_0() throws RecognitionException { - - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - - try { - // InternalValid.g:4227:1: ( ( rule__SizeRule__UnorderedGroup_0__0 )? ) - // InternalValid.g:4228:2: ( rule__SizeRule__UnorderedGroup_0__0 )? - { - // InternalValid.g:4228:2: ( rule__SizeRule__UnorderedGroup_0__0 )? - int alt36=2; - int LA36_0 = input.LA(1); - - if ( LA36_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt36=1; - } - else if ( LA36_0 >= 11 && LA36_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt36=1; - } - switch (alt36) { - case 1 : - // InternalValid.g:4228:2: rule__SizeRule__UnorderedGroup_0__0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__UnorderedGroup_0__0(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - getUnorderedGroupHelper().leave(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__UnorderedGroup_0" - - - // $ANTLR start "rule__SizeRule__UnorderedGroup_0__Impl" - // InternalValid.g:4236:1: rule__SizeRule__UnorderedGroup_0__Impl : ( ({...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) ) ) ; - public final void rule__SizeRule__UnorderedGroup_0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - boolean selected = false; - - try { - // InternalValid.g:4241:1: ( ( ({...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) ) ) ) - // InternalValid.g:4242:3: ( ({...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) ) ) - { - // InternalValid.g:4242:3: ( ({...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) ) ) - int alt37=2; - int LA37_0 = input.LA(1); - - if ( LA37_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt37=1; - } - else if ( LA37_0 >= 11 && LA37_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt37=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 37, 0, input); - - throw nvae; - } - switch (alt37) { - case 1 : - // InternalValid.g:4243:3: ({...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) ) - { - // InternalValid.g:4243:3: ({...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) ) - // InternalValid.g:4244:4: {...}? => ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "rule__SizeRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:4244:104: ( ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) ) - // InternalValid.g:4245:5: ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0); - - - selected = true; - - // InternalValid.g:4251:5: ( ( rule__SizeRule__OptionalAssignment_0_0 ) ) - // InternalValid.g:4252:6: ( rule__SizeRule__OptionalAssignment_0_0 ) - { - before(grammarAccess.getSizeRuleAccess().getOptionalAssignment_0_0()); - // InternalValid.g:4253:6: ( rule__SizeRule__OptionalAssignment_0_0 ) - // InternalValid.g:4253:7: rule__SizeRule__OptionalAssignment_0_0 - { - pushFollow(FOLLOW_2); - rule__SizeRule__OptionalAssignment_0_0(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getOptionalAssignment_0_0()); - - } - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:4258:3: ({...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) ) - { - // InternalValid.g:4258:3: ({...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) ) - // InternalValid.g:4259:4: {...}? => ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "rule__SizeRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:4259:104: ( ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) ) - // InternalValid.g:4260:5: ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1); - - - selected = true; - - // InternalValid.g:4266:5: ( ( rule__SizeRule__CheckKindAssignment_0_1 ) ) - // InternalValid.g:4267:6: ( rule__SizeRule__CheckKindAssignment_0_1 ) - { - before(grammarAccess.getSizeRuleAccess().getCheckKindAssignment_0_1()); - // InternalValid.g:4268:6: ( rule__SizeRule__CheckKindAssignment_0_1 ) - // InternalValid.g:4268:7: rule__SizeRule__CheckKindAssignment_0_1 - { - pushFollow(FOLLOW_2); - rule__SizeRule__CheckKindAssignment_0_1(); - - state._fsp--; - - - } - - after(grammarAccess.getSizeRuleAccess().getCheckKindAssignment_0_1()); - - } - - - } - - - } - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__UnorderedGroup_0__Impl" - - - // $ANTLR start "rule__SizeRule__UnorderedGroup_0__0" - // InternalValid.g:4281:1: rule__SizeRule__UnorderedGroup_0__0 : rule__SizeRule__UnorderedGroup_0__Impl ( rule__SizeRule__UnorderedGroup_0__1 )? ; - public final void rule__SizeRule__UnorderedGroup_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4285:1: ( rule__SizeRule__UnorderedGroup_0__Impl ( rule__SizeRule__UnorderedGroup_0__1 )? ) - // InternalValid.g:4286:2: rule__SizeRule__UnorderedGroup_0__Impl ( rule__SizeRule__UnorderedGroup_0__1 )? - { - pushFollow(FOLLOW_11); - rule__SizeRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - // InternalValid.g:4287:2: ( rule__SizeRule__UnorderedGroup_0__1 )? - int alt38=2; - int LA38_0 = input.LA(1); - - if ( LA38_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt38=1; - } - else if ( LA38_0 >= 11 && LA38_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt38=1; - } - switch (alt38) { - case 1 : - // InternalValid.g:4287:2: rule__SizeRule__UnorderedGroup_0__1 - { - pushFollow(FOLLOW_2); - rule__SizeRule__UnorderedGroup_0__1(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__UnorderedGroup_0__0" - - - // $ANTLR start "rule__SizeRule__UnorderedGroup_0__1" - // InternalValid.g:4293:1: rule__SizeRule__UnorderedGroup_0__1 : rule__SizeRule__UnorderedGroup_0__Impl ; - public final void rule__SizeRule__UnorderedGroup_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4297:1: ( rule__SizeRule__UnorderedGroup_0__Impl ) - // InternalValid.g:4298:2: rule__SizeRule__UnorderedGroup_0__Impl - { - pushFollow(FOLLOW_2); - rule__SizeRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__UnorderedGroup_0__1" - - - // $ANTLR start "rule__RangeRule__UnorderedGroup_0" - // InternalValid.g:4305:1: rule__RangeRule__UnorderedGroup_0 : ( rule__RangeRule__UnorderedGroup_0__0 )? ; - public final void rule__RangeRule__UnorderedGroup_0() throws RecognitionException { - - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - - try { - // InternalValid.g:4310:1: ( ( rule__RangeRule__UnorderedGroup_0__0 )? ) - // InternalValid.g:4311:2: ( rule__RangeRule__UnorderedGroup_0__0 )? - { - // InternalValid.g:4311:2: ( rule__RangeRule__UnorderedGroup_0__0 )? - int alt39=2; - int LA39_0 = input.LA(1); - - if ( LA39_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt39=1; - } - else if ( LA39_0 >= 11 && LA39_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt39=1; - } - switch (alt39) { - case 1 : - // InternalValid.g:4311:2: rule__RangeRule__UnorderedGroup_0__0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__UnorderedGroup_0__0(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - getUnorderedGroupHelper().leave(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__UnorderedGroup_0" - - - // $ANTLR start "rule__RangeRule__UnorderedGroup_0__Impl" - // InternalValid.g:4319:1: rule__RangeRule__UnorderedGroup_0__Impl : ( ({...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) ) ) ; - public final void rule__RangeRule__UnorderedGroup_0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - boolean selected = false; - - try { - // InternalValid.g:4324:1: ( ( ({...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) ) ) ) - // InternalValid.g:4325:3: ( ({...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) ) ) - { - // InternalValid.g:4325:3: ( ({...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) ) ) - int alt40=2; - int LA40_0 = input.LA(1); - - if ( LA40_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt40=1; - } - else if ( LA40_0 >= 11 && LA40_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt40=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 40, 0, input); - - throw nvae; - } - switch (alt40) { - case 1 : - // InternalValid.g:4326:3: ({...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) ) - { - // InternalValid.g:4326:3: ({...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) ) - // InternalValid.g:4327:4: {...}? => ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "rule__RangeRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:4327:105: ( ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) ) - // InternalValid.g:4328:5: ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0); - - - selected = true; - - // InternalValid.g:4334:5: ( ( rule__RangeRule__OptionalAssignment_0_0 ) ) - // InternalValid.g:4335:6: ( rule__RangeRule__OptionalAssignment_0_0 ) - { - before(grammarAccess.getRangeRuleAccess().getOptionalAssignment_0_0()); - // InternalValid.g:4336:6: ( rule__RangeRule__OptionalAssignment_0_0 ) - // InternalValid.g:4336:7: rule__RangeRule__OptionalAssignment_0_0 - { - pushFollow(FOLLOW_2); - rule__RangeRule__OptionalAssignment_0_0(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getOptionalAssignment_0_0()); - - } - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:4341:3: ({...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) ) - { - // InternalValid.g:4341:3: ({...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) ) - // InternalValid.g:4342:4: {...}? => ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "rule__RangeRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:4342:105: ( ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) ) - // InternalValid.g:4343:5: ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1); - - - selected = true; - - // InternalValid.g:4349:5: ( ( rule__RangeRule__CheckKindAssignment_0_1 ) ) - // InternalValid.g:4350:6: ( rule__RangeRule__CheckKindAssignment_0_1 ) - { - before(grammarAccess.getRangeRuleAccess().getCheckKindAssignment_0_1()); - // InternalValid.g:4351:6: ( rule__RangeRule__CheckKindAssignment_0_1 ) - // InternalValid.g:4351:7: rule__RangeRule__CheckKindAssignment_0_1 - { - pushFollow(FOLLOW_2); - rule__RangeRule__CheckKindAssignment_0_1(); - - state._fsp--; - - - } - - after(grammarAccess.getRangeRuleAccess().getCheckKindAssignment_0_1()); - - } - - - } - - - } - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__UnorderedGroup_0__Impl" - - - // $ANTLR start "rule__RangeRule__UnorderedGroup_0__0" - // InternalValid.g:4364:1: rule__RangeRule__UnorderedGroup_0__0 : rule__RangeRule__UnorderedGroup_0__Impl ( rule__RangeRule__UnorderedGroup_0__1 )? ; - public final void rule__RangeRule__UnorderedGroup_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4368:1: ( rule__RangeRule__UnorderedGroup_0__Impl ( rule__RangeRule__UnorderedGroup_0__1 )? ) - // InternalValid.g:4369:2: rule__RangeRule__UnorderedGroup_0__Impl ( rule__RangeRule__UnorderedGroup_0__1 )? - { - pushFollow(FOLLOW_11); - rule__RangeRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - // InternalValid.g:4370:2: ( rule__RangeRule__UnorderedGroup_0__1 )? - int alt41=2; - int LA41_0 = input.LA(1); - - if ( LA41_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt41=1; - } - else if ( LA41_0 >= 11 && LA41_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt41=1; - } - switch (alt41) { - case 1 : - // InternalValid.g:4370:2: rule__RangeRule__UnorderedGroup_0__1 - { - pushFollow(FOLLOW_2); - rule__RangeRule__UnorderedGroup_0__1(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__UnorderedGroup_0__0" - - - // $ANTLR start "rule__RangeRule__UnorderedGroup_0__1" - // InternalValid.g:4376:1: rule__RangeRule__UnorderedGroup_0__1 : rule__RangeRule__UnorderedGroup_0__Impl ; - public final void rule__RangeRule__UnorderedGroup_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4380:1: ( rule__RangeRule__UnorderedGroup_0__Impl ) - // InternalValid.g:4381:2: rule__RangeRule__UnorderedGroup_0__Impl - { - pushFollow(FOLLOW_2); - rule__RangeRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__UnorderedGroup_0__1" - - - // $ANTLR start "rule__UniqueRule__UnorderedGroup_0" - // InternalValid.g:4388:1: rule__UniqueRule__UnorderedGroup_0 : ( rule__UniqueRule__UnorderedGroup_0__0 )? ; - public final void rule__UniqueRule__UnorderedGroup_0() throws RecognitionException { - - int stackSize = keepStackSize(); - getUnorderedGroupHelper().enter(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - - try { - // InternalValid.g:4393:1: ( ( rule__UniqueRule__UnorderedGroup_0__0 )? ) - // InternalValid.g:4394:2: ( rule__UniqueRule__UnorderedGroup_0__0 )? - { - // InternalValid.g:4394:2: ( rule__UniqueRule__UnorderedGroup_0__0 )? - int alt42=2; - int LA42_0 = input.LA(1); - - if ( LA42_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0) ) { - alt42=1; - } - else if ( LA42_0 >= 11 && LA42_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1) ) { - alt42=1; - } - switch (alt42) { - case 1 : - // InternalValid.g:4394:2: rule__UniqueRule__UnorderedGroup_0__0 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__UnorderedGroup_0__0(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - getUnorderedGroupHelper().leave(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__UnorderedGroup_0" - - - // $ANTLR start "rule__UniqueRule__UnorderedGroup_0__Impl" - // InternalValid.g:4402:1: rule__UniqueRule__UnorderedGroup_0__Impl : ( ({...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) ) ) ; - public final void rule__UniqueRule__UnorderedGroup_0__Impl() throws RecognitionException { - - int stackSize = keepStackSize(); - boolean selected = false; - - try { - // InternalValid.g:4407:1: ( ( ({...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) ) ) ) - // InternalValid.g:4408:3: ( ({...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) ) ) - { - // InternalValid.g:4408:3: ( ({...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) ) | ({...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) ) ) - int alt43=2; - int LA43_0 = input.LA(1); - - if ( LA43_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0) ) { - alt43=1; - } - else if ( LA43_0 >= 11 && LA43_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1) ) { - alt43=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 43, 0, input); - - throw nvae; - } - switch (alt43) { - case 1 : - // InternalValid.g:4409:3: ({...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) ) - { - // InternalValid.g:4409:3: ({...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) ) - // InternalValid.g:4410:4: {...}? => ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "rule__UniqueRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:4410:106: ( ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) ) - // InternalValid.g:4411:5: ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0); - - - selected = true; - - // InternalValid.g:4417:5: ( ( rule__UniqueRule__OptionalAssignment_0_0 ) ) - // InternalValid.g:4418:6: ( rule__UniqueRule__OptionalAssignment_0_0 ) - { - before(grammarAccess.getUniqueRuleAccess().getOptionalAssignment_0_0()); - // InternalValid.g:4419:6: ( rule__UniqueRule__OptionalAssignment_0_0 ) - // InternalValid.g:4419:7: rule__UniqueRule__OptionalAssignment_0_0 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__OptionalAssignment_0_0(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getOptionalAssignment_0_0()); - - } - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:4424:3: ({...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) ) - { - // InternalValid.g:4424:3: ({...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) ) - // InternalValid.g:4425:4: {...}? => ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "rule__UniqueRule__UnorderedGroup_0__Impl", "getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:4425:106: ( ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) ) - // InternalValid.g:4426:5: ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1); - - - selected = true; - - // InternalValid.g:4432:5: ( ( rule__UniqueRule__CheckKindAssignment_0_1 ) ) - // InternalValid.g:4433:6: ( rule__UniqueRule__CheckKindAssignment_0_1 ) - { - before(grammarAccess.getUniqueRuleAccess().getCheckKindAssignment_0_1()); - // InternalValid.g:4434:6: ( rule__UniqueRule__CheckKindAssignment_0_1 ) - // InternalValid.g:4434:7: rule__UniqueRule__CheckKindAssignment_0_1 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__CheckKindAssignment_0_1(); - - state._fsp--; - - - } - - after(grammarAccess.getUniqueRuleAccess().getCheckKindAssignment_0_1()); - - } - - - } - - - } - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - if (selected) - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__UnorderedGroup_0__Impl" - - - // $ANTLR start "rule__UniqueRule__UnorderedGroup_0__0" - // InternalValid.g:4447:1: rule__UniqueRule__UnorderedGroup_0__0 : rule__UniqueRule__UnorderedGroup_0__Impl ( rule__UniqueRule__UnorderedGroup_0__1 )? ; - public final void rule__UniqueRule__UnorderedGroup_0__0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4451:1: ( rule__UniqueRule__UnorderedGroup_0__Impl ( rule__UniqueRule__UnorderedGroup_0__1 )? ) - // InternalValid.g:4452:2: rule__UniqueRule__UnorderedGroup_0__Impl ( rule__UniqueRule__UnorderedGroup_0__1 )? - { - pushFollow(FOLLOW_11); - rule__UniqueRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - // InternalValid.g:4453:2: ( rule__UniqueRule__UnorderedGroup_0__1 )? - int alt44=2; - int LA44_0 = input.LA(1); - - if ( LA44_0 == 36 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0) ) { - alt44=1; - } - else if ( LA44_0 >= 11 && LA44_0 <= 13 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1) ) { - alt44=1; - } - switch (alt44) { - case 1 : - // InternalValid.g:4453:2: rule__UniqueRule__UnorderedGroup_0__1 - { - pushFollow(FOLLOW_2); - rule__UniqueRule__UnorderedGroup_0__1(); - - state._fsp--; - - - } - break; - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__UnorderedGroup_0__0" - - - // $ANTLR start "rule__UniqueRule__UnorderedGroup_0__1" - // InternalValid.g:4459:1: rule__UniqueRule__UnorderedGroup_0__1 : rule__UniqueRule__UnorderedGroup_0__Impl ; - public final void rule__UniqueRule__UnorderedGroup_0__1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4463:1: ( rule__UniqueRule__UnorderedGroup_0__Impl ) - // InternalValid.g:4464:2: rule__UniqueRule__UnorderedGroup_0__Impl - { - pushFollow(FOLLOW_2); - rule__UniqueRule__UnorderedGroup_0__Impl(); - - state._fsp--; - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__UnorderedGroup_0__1" - - - // $ANTLR start "rule__ValidModel__ImportsAssignment_0" - // InternalValid.g:4471:1: rule__ValidModel__ImportsAssignment_0 : ( ruleImport ) ; - public final void rule__ValidModel__ImportsAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4475:1: ( ( ruleImport ) ) - // InternalValid.g:4476:2: ( ruleImport ) - { - // InternalValid.g:4476:2: ( ruleImport ) - // InternalValid.g:4477:3: ruleImport - { - before(grammarAccess.getValidModelAccess().getImportsImportParserRuleCall_0_0()); - pushFollow(FOLLOW_2); - ruleImport(); - - state._fsp--; - - after(grammarAccess.getValidModelAccess().getImportsImportParserRuleCall_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ValidModel__ImportsAssignment_0" - - - // $ANTLR start "rule__ValidModel__CategoriesAssignment_1" - // InternalValid.g:4486:1: rule__ValidModel__CategoriesAssignment_1 : ( ruleCategory ) ; - public final void rule__ValidModel__CategoriesAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4490:1: ( ( ruleCategory ) ) - // InternalValid.g:4491:2: ( ruleCategory ) - { - // InternalValid.g:4491:2: ( ruleCategory ) - // InternalValid.g:4492:3: ruleCategory - { - before(grammarAccess.getValidModelAccess().getCategoriesCategoryParserRuleCall_1_0()); - pushFollow(FOLLOW_2); - ruleCategory(); - - state._fsp--; - - after(grammarAccess.getValidModelAccess().getCategoriesCategoryParserRuleCall_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__ValidModel__CategoriesAssignment_1" - - - // $ANTLR start "rule__Import__PackageAssignment_1" - // InternalValid.g:4501:1: rule__Import__PackageAssignment_1 : ( ( RULE_STRING ) ) ; - public final void rule__Import__PackageAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4505:1: ( ( ( RULE_STRING ) ) ) - // InternalValid.g:4506:2: ( ( RULE_STRING ) ) - { - // InternalValid.g:4506:2: ( ( RULE_STRING ) ) - // InternalValid.g:4507:3: ( RULE_STRING ) - { - before(grammarAccess.getImportAccess().getPackageEPackageCrossReference_1_0()); - // InternalValid.g:4508:3: ( RULE_STRING ) - // InternalValid.g:4509:4: RULE_STRING - { - before(grammarAccess.getImportAccess().getPackageEPackageSTRINGTerminalRuleCall_1_0_1()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getImportAccess().getPackageEPackageSTRINGTerminalRuleCall_1_0_1()); - - } - - after(grammarAccess.getImportAccess().getPackageEPackageCrossReference_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Import__PackageAssignment_1" - - - // $ANTLR start "rule__Category__NameAssignment_1" - // InternalValid.g:4520:1: rule__Category__NameAssignment_1 : ( RULE_ID ) ; - public final void rule__Category__NameAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4524:1: ( ( RULE_ID ) ) - // InternalValid.g:4525:2: ( RULE_ID ) - { - // InternalValid.g:4525:2: ( RULE_ID ) - // InternalValid.g:4526:3: RULE_ID - { - before(grammarAccess.getCategoryAccess().getNameIDTerminalRuleCall_1_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getNameIDTerminalRuleCall_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__NameAssignment_1" - - - // $ANTLR start "rule__Category__LabelAssignment_3" - // InternalValid.g:4535:1: rule__Category__LabelAssignment_3 : ( RULE_STRING ) ; - public final void rule__Category__LabelAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4539:1: ( ( RULE_STRING ) ) - // InternalValid.g:4540:2: ( RULE_STRING ) - { - // InternalValid.g:4540:2: ( RULE_STRING ) - // InternalValid.g:4541:3: RULE_STRING - { - before(grammarAccess.getCategoryAccess().getLabelSTRINGTerminalRuleCall_3_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getLabelSTRINGTerminalRuleCall_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__LabelAssignment_3" - - - // $ANTLR start "rule__Category__DescriptionAssignment_4_1" - // InternalValid.g:4550:1: rule__Category__DescriptionAssignment_4_1 : ( RULE_STRING ) ; - public final void rule__Category__DescriptionAssignment_4_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4554:1: ( ( RULE_STRING ) ) - // InternalValid.g:4555:2: ( RULE_STRING ) - { - // InternalValid.g:4555:2: ( RULE_STRING ) - // InternalValid.g:4556:3: RULE_STRING - { - before(grammarAccess.getCategoryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getCategoryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__DescriptionAssignment_4_1" - - - // $ANTLR start "rule__Category__RulesAssignment_6" - // InternalValid.g:4565:1: rule__Category__RulesAssignment_6 : ( ruleRule ) ; - public final void rule__Category__RulesAssignment_6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4569:1: ( ( ruleRule ) ) - // InternalValid.g:4570:2: ( ruleRule ) - { - // InternalValid.g:4570:2: ( ruleRule ) - // InternalValid.g:4571:3: ruleRule - { - before(grammarAccess.getCategoryAccess().getRulesRuleParserRuleCall_6_0()); - pushFollow(FOLLOW_2); - ruleRule(); - - state._fsp--; - - after(grammarAccess.getCategoryAccess().getRulesRuleParserRuleCall_6_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__Category__RulesAssignment_6" - - - // $ANTLR start "rule__NativeRule__OptionalAssignment_0_0" - // InternalValid.g:4580:1: rule__NativeRule__OptionalAssignment_0_0 : ( ( 'optional' ) ) ; - public final void rule__NativeRule__OptionalAssignment_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4584:1: ( ( ( 'optional' ) ) ) - // InternalValid.g:4585:2: ( ( 'optional' ) ) - { - // InternalValid.g:4585:2: ( ( 'optional' ) ) - // InternalValid.g:4586:3: ( 'optional' ) - { - before(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - // InternalValid.g:4587:3: ( 'optional' ) - // InternalValid.g:4588:4: 'optional' - { - before(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - match(input,36,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - after(grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__OptionalAssignment_0_0" - - - // $ANTLR start "rule__NativeRule__CheckKindAssignment_0_1" - // InternalValid.g:4599:1: rule__NativeRule__CheckKindAssignment_0_1 : ( ruleCheckKind ) ; - public final void rule__NativeRule__CheckKindAssignment_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4603:1: ( ( ruleCheckKind ) ) - // InternalValid.g:4604:2: ( ruleCheckKind ) - { - // InternalValid.g:4604:2: ( ruleCheckKind ) - // InternalValid.g:4605:3: ruleCheckKind - { - before(grammarAccess.getNativeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - pushFollow(FOLLOW_2); - ruleCheckKind(); - - state._fsp--; - - after(grammarAccess.getNativeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__CheckKindAssignment_0_1" - - - // $ANTLR start "rule__NativeRule__SeverityAssignment_1" - // InternalValid.g:4614:1: rule__NativeRule__SeverityAssignment_1 : ( ruleSeverityKind ) ; - public final void rule__NativeRule__SeverityAssignment_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4618:1: ( ( ruleSeverityKind ) ) - // InternalValid.g:4619:2: ( ruleSeverityKind ) - { - // InternalValid.g:4619:2: ( ruleSeverityKind ) - // InternalValid.g:4620:3: ruleSeverityKind - { - before(grammarAccess.getNativeRuleAccess().getSeveritySeverityKindEnumRuleCall_1_0()); - pushFollow(FOLLOW_2); - ruleSeverityKind(); - - state._fsp--; - - after(grammarAccess.getNativeRuleAccess().getSeveritySeverityKindEnumRuleCall_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__SeverityAssignment_1" - - - // $ANTLR start "rule__NativeRule__NameAssignment_2" - // InternalValid.g:4629:1: rule__NativeRule__NameAssignment_2 : ( RULE_ID ) ; - public final void rule__NativeRule__NameAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4633:1: ( ( RULE_ID ) ) - // InternalValid.g:4634:2: ( RULE_ID ) - { - // InternalValid.g:4634:2: ( RULE_ID ) - // InternalValid.g:4635:3: RULE_ID - { - before(grammarAccess.getNativeRuleAccess().getNameIDTerminalRuleCall_2_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getNameIDTerminalRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__NameAssignment_2" - - - // $ANTLR start "rule__NativeRule__LabelAssignment_4" - // InternalValid.g:4644:1: rule__NativeRule__LabelAssignment_4 : ( RULE_STRING ) ; - public final void rule__NativeRule__LabelAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4648:1: ( ( RULE_STRING ) ) - // InternalValid.g:4649:2: ( RULE_STRING ) - { - // InternalValid.g:4649:2: ( RULE_STRING ) - // InternalValid.g:4650:3: RULE_STRING - { - before(grammarAccess.getNativeRuleAccess().getLabelSTRINGTerminalRuleCall_4_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getLabelSTRINGTerminalRuleCall_4_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__LabelAssignment_4" - - - // $ANTLR start "rule__NativeRule__DescriptionAssignment_5_1" - // InternalValid.g:4659:1: rule__NativeRule__DescriptionAssignment_5_1 : ( RULE_STRING ) ; - public final void rule__NativeRule__DescriptionAssignment_5_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4663:1: ( ( RULE_STRING ) ) - // InternalValid.g:4664:2: ( RULE_STRING ) - { - // InternalValid.g:4664:2: ( RULE_STRING ) - // InternalValid.g:4665:3: RULE_STRING - { - before(grammarAccess.getNativeRuleAccess().getDescriptionSTRINGTerminalRuleCall_5_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getDescriptionSTRINGTerminalRuleCall_5_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__DescriptionAssignment_5_1" - - - // $ANTLR start "rule__NativeRule__MessageAssignment_7" - // InternalValid.g:4674:1: rule__NativeRule__MessageAssignment_7 : ( RULE_STRING ) ; - public final void rule__NativeRule__MessageAssignment_7() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4678:1: ( ( RULE_STRING ) ) - // InternalValid.g:4679:2: ( RULE_STRING ) - { - // InternalValid.g:4679:2: ( RULE_STRING ) - // InternalValid.g:4680:3: RULE_STRING - { - before(grammarAccess.getNativeRuleAccess().getMessageSTRINGTerminalRuleCall_7_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getNativeRuleAccess().getMessageSTRINGTerminalRuleCall_7_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__MessageAssignment_7" - - - // $ANTLR start "rule__NativeRule__ContextsAssignment_10" - // InternalValid.g:4689:1: rule__NativeRule__ContextsAssignment_10 : ( ruleNativeContext ) ; - public final void rule__NativeRule__ContextsAssignment_10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4693:1: ( ( ruleNativeContext ) ) - // InternalValid.g:4694:2: ( ruleNativeContext ) - { - // InternalValid.g:4694:2: ( ruleNativeContext ) - // InternalValid.g:4695:3: ruleNativeContext - { - before(grammarAccess.getNativeRuleAccess().getContextsNativeContextParserRuleCall_10_0()); - pushFollow(FOLLOW_2); - ruleNativeContext(); - - state._fsp--; - - after(grammarAccess.getNativeRuleAccess().getContextsNativeContextParserRuleCall_10_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeRule__ContextsAssignment_10" - - - // $ANTLR start "rule__SizeRule__OptionalAssignment_0_0" - // InternalValid.g:4704:1: rule__SizeRule__OptionalAssignment_0_0 : ( ( 'optional' ) ) ; - public final void rule__SizeRule__OptionalAssignment_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4708:1: ( ( ( 'optional' ) ) ) - // InternalValid.g:4709:2: ( ( 'optional' ) ) - { - // InternalValid.g:4709:2: ( ( 'optional' ) ) - // InternalValid.g:4710:3: ( 'optional' ) - { - before(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - // InternalValid.g:4711:3: ( 'optional' ) - // InternalValid.g:4712:4: 'optional' - { - before(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - match(input,36,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - after(grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__OptionalAssignment_0_0" - - - // $ANTLR start "rule__SizeRule__CheckKindAssignment_0_1" - // InternalValid.g:4723:1: rule__SizeRule__CheckKindAssignment_0_1 : ( ruleCheckKind ) ; - public final void rule__SizeRule__CheckKindAssignment_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4727:1: ( ( ruleCheckKind ) ) - // InternalValid.g:4728:2: ( ruleCheckKind ) - { - // InternalValid.g:4728:2: ( ruleCheckKind ) - // InternalValid.g:4729:3: ruleCheckKind - { - before(grammarAccess.getSizeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - pushFollow(FOLLOW_2); - ruleCheckKind(); - - state._fsp--; - - after(grammarAccess.getSizeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__CheckKindAssignment_0_1" - - - // $ANTLR start "rule__SizeRule__SeverityAssignment_2" - // InternalValid.g:4738:1: rule__SizeRule__SeverityAssignment_2 : ( ruleSeverityKind ) ; - public final void rule__SizeRule__SeverityAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4742:1: ( ( ruleSeverityKind ) ) - // InternalValid.g:4743:2: ( ruleSeverityKind ) - { - // InternalValid.g:4743:2: ( ruleSeverityKind ) - // InternalValid.g:4744:3: ruleSeverityKind - { - before(grammarAccess.getSizeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - pushFollow(FOLLOW_2); - ruleSeverityKind(); - - state._fsp--; - - after(grammarAccess.getSizeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__SeverityAssignment_2" - - - // $ANTLR start "rule__SizeRule__NameAssignment_3" - // InternalValid.g:4753:1: rule__SizeRule__NameAssignment_3 : ( RULE_ID ) ; - public final void rule__SizeRule__NameAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4757:1: ( ( RULE_ID ) ) - // InternalValid.g:4758:2: ( RULE_ID ) - { - // InternalValid.g:4758:2: ( RULE_ID ) - // InternalValid.g:4759:3: RULE_ID - { - before(grammarAccess.getSizeRuleAccess().getNameIDTerminalRuleCall_3_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getNameIDTerminalRuleCall_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__NameAssignment_3" - - - // $ANTLR start "rule__SizeRule__LabelAssignment_5" - // InternalValid.g:4768:1: rule__SizeRule__LabelAssignment_5 : ( RULE_STRING ) ; - public final void rule__SizeRule__LabelAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4772:1: ( ( RULE_STRING ) ) - // InternalValid.g:4773:2: ( RULE_STRING ) - { - // InternalValid.g:4773:2: ( RULE_STRING ) - // InternalValid.g:4774:3: RULE_STRING - { - before(grammarAccess.getSizeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__LabelAssignment_5" - - - // $ANTLR start "rule__SizeRule__DescriptionAssignment_6_1" - // InternalValid.g:4783:1: rule__SizeRule__DescriptionAssignment_6_1 : ( RULE_STRING ) ; - public final void rule__SizeRule__DescriptionAssignment_6_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4787:1: ( ( RULE_STRING ) ) - // InternalValid.g:4788:2: ( RULE_STRING ) - { - // InternalValid.g:4788:2: ( RULE_STRING ) - // InternalValid.g:4789:3: RULE_STRING - { - before(grammarAccess.getSizeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__DescriptionAssignment_6_1" - - - // $ANTLR start "rule__SizeRule__MessageAssignment_7_1" - // InternalValid.g:4798:1: rule__SizeRule__MessageAssignment_7_1 : ( RULE_STRING ) ; - public final void rule__SizeRule__MessageAssignment_7_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4802:1: ( ( RULE_STRING ) ) - // InternalValid.g:4803:2: ( RULE_STRING ) - { - // InternalValid.g:4803:2: ( RULE_STRING ) - // InternalValid.g:4804:3: RULE_STRING - { - before(grammarAccess.getSizeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__MessageAssignment_7_1" - - - // $ANTLR start "rule__SizeRule__MinAssignment_9_0" - // InternalValid.g:4813:1: rule__SizeRule__MinAssignment_9_0 : ( RULE_INT ) ; - public final void rule__SizeRule__MinAssignment_9_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4817:1: ( ( RULE_INT ) ) - // InternalValid.g:4818:2: ( RULE_INT ) - { - // InternalValid.g:4818:2: ( RULE_INT ) - // InternalValid.g:4819:3: RULE_INT - { - before(grammarAccess.getSizeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - match(input,RULE_INT,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__MinAssignment_9_0" - - - // $ANTLR start "rule__SizeRule__MaxAssignment_10" - // InternalValid.g:4828:1: rule__SizeRule__MaxAssignment_10 : ( RULE_INT ) ; - public final void rule__SizeRule__MaxAssignment_10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4832:1: ( ( RULE_INT ) ) - // InternalValid.g:4833:2: ( RULE_INT ) - { - // InternalValid.g:4833:2: ( RULE_INT ) - // InternalValid.g:4834:3: RULE_INT - { - before(grammarAccess.getSizeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - match(input,RULE_INT,FOLLOW_2); - after(grammarAccess.getSizeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__MaxAssignment_10" - - - // $ANTLR start "rule__SizeRule__ContextsAssignment_13" - // InternalValid.g:4843:1: rule__SizeRule__ContextsAssignment_13 : ( ruleSimpleContext ) ; - public final void rule__SizeRule__ContextsAssignment_13() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4847:1: ( ( ruleSimpleContext ) ) - // InternalValid.g:4848:2: ( ruleSimpleContext ) - { - // InternalValid.g:4848:2: ( ruleSimpleContext ) - // InternalValid.g:4849:3: ruleSimpleContext - { - before(grammarAccess.getSizeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - pushFollow(FOLLOW_2); - ruleSimpleContext(); - - state._fsp--; - - after(grammarAccess.getSizeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SizeRule__ContextsAssignment_13" - - - // $ANTLR start "rule__RangeRule__OptionalAssignment_0_0" - // InternalValid.g:4858:1: rule__RangeRule__OptionalAssignment_0_0 : ( ( 'optional' ) ) ; - public final void rule__RangeRule__OptionalAssignment_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4862:1: ( ( ( 'optional' ) ) ) - // InternalValid.g:4863:2: ( ( 'optional' ) ) - { - // InternalValid.g:4863:2: ( ( 'optional' ) ) - // InternalValid.g:4864:3: ( 'optional' ) - { - before(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - // InternalValid.g:4865:3: ( 'optional' ) - // InternalValid.g:4866:4: 'optional' - { - before(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - match(input,36,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - after(grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__OptionalAssignment_0_0" - - - // $ANTLR start "rule__RangeRule__CheckKindAssignment_0_1" - // InternalValid.g:4877:1: rule__RangeRule__CheckKindAssignment_0_1 : ( ruleCheckKind ) ; - public final void rule__RangeRule__CheckKindAssignment_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4881:1: ( ( ruleCheckKind ) ) - // InternalValid.g:4882:2: ( ruleCheckKind ) - { - // InternalValid.g:4882:2: ( ruleCheckKind ) - // InternalValid.g:4883:3: ruleCheckKind - { - before(grammarAccess.getRangeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - pushFollow(FOLLOW_2); - ruleCheckKind(); - - state._fsp--; - - after(grammarAccess.getRangeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__CheckKindAssignment_0_1" - - - // $ANTLR start "rule__RangeRule__SeverityAssignment_2" - // InternalValid.g:4892:1: rule__RangeRule__SeverityAssignment_2 : ( ruleSeverityKind ) ; - public final void rule__RangeRule__SeverityAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4896:1: ( ( ruleSeverityKind ) ) - // InternalValid.g:4897:2: ( ruleSeverityKind ) - { - // InternalValid.g:4897:2: ( ruleSeverityKind ) - // InternalValid.g:4898:3: ruleSeverityKind - { - before(grammarAccess.getRangeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - pushFollow(FOLLOW_2); - ruleSeverityKind(); - - state._fsp--; - - after(grammarAccess.getRangeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__SeverityAssignment_2" - - - // $ANTLR start "rule__RangeRule__NameAssignment_3" - // InternalValid.g:4907:1: rule__RangeRule__NameAssignment_3 : ( RULE_ID ) ; - public final void rule__RangeRule__NameAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4911:1: ( ( RULE_ID ) ) - // InternalValid.g:4912:2: ( RULE_ID ) - { - // InternalValid.g:4912:2: ( RULE_ID ) - // InternalValid.g:4913:3: RULE_ID - { - before(grammarAccess.getRangeRuleAccess().getNameIDTerminalRuleCall_3_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getNameIDTerminalRuleCall_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__NameAssignment_3" - - - // $ANTLR start "rule__RangeRule__LabelAssignment_5" - // InternalValid.g:4922:1: rule__RangeRule__LabelAssignment_5 : ( RULE_STRING ) ; - public final void rule__RangeRule__LabelAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4926:1: ( ( RULE_STRING ) ) - // InternalValid.g:4927:2: ( RULE_STRING ) - { - // InternalValid.g:4927:2: ( RULE_STRING ) - // InternalValid.g:4928:3: RULE_STRING - { - before(grammarAccess.getRangeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__LabelAssignment_5" - - - // $ANTLR start "rule__RangeRule__DescriptionAssignment_6_1" - // InternalValid.g:4937:1: rule__RangeRule__DescriptionAssignment_6_1 : ( RULE_STRING ) ; - public final void rule__RangeRule__DescriptionAssignment_6_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4941:1: ( ( RULE_STRING ) ) - // InternalValid.g:4942:2: ( RULE_STRING ) - { - // InternalValid.g:4942:2: ( RULE_STRING ) - // InternalValid.g:4943:3: RULE_STRING - { - before(grammarAccess.getRangeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__DescriptionAssignment_6_1" - - - // $ANTLR start "rule__RangeRule__MessageAssignment_7_1" - // InternalValid.g:4952:1: rule__RangeRule__MessageAssignment_7_1 : ( RULE_STRING ) ; - public final void rule__RangeRule__MessageAssignment_7_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4956:1: ( ( RULE_STRING ) ) - // InternalValid.g:4957:2: ( RULE_STRING ) - { - // InternalValid.g:4957:2: ( RULE_STRING ) - // InternalValid.g:4958:3: RULE_STRING - { - before(grammarAccess.getRangeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__MessageAssignment_7_1" - - - // $ANTLR start "rule__RangeRule__MinAssignment_9_0" - // InternalValid.g:4967:1: rule__RangeRule__MinAssignment_9_0 : ( RULE_INT ) ; - public final void rule__RangeRule__MinAssignment_9_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4971:1: ( ( RULE_INT ) ) - // InternalValid.g:4972:2: ( RULE_INT ) - { - // InternalValid.g:4972:2: ( RULE_INT ) - // InternalValid.g:4973:3: RULE_INT - { - before(grammarAccess.getRangeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - match(input,RULE_INT,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__MinAssignment_9_0" - - - // $ANTLR start "rule__RangeRule__MaxAssignment_10" - // InternalValid.g:4982:1: rule__RangeRule__MaxAssignment_10 : ( RULE_INT ) ; - public final void rule__RangeRule__MaxAssignment_10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:4986:1: ( ( RULE_INT ) ) - // InternalValid.g:4987:2: ( RULE_INT ) - { - // InternalValid.g:4987:2: ( RULE_INT ) - // InternalValid.g:4988:3: RULE_INT - { - before(grammarAccess.getRangeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - match(input,RULE_INT,FOLLOW_2); - after(grammarAccess.getRangeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__MaxAssignment_10" - - - // $ANTLR start "rule__RangeRule__ContextsAssignment_13" - // InternalValid.g:4997:1: rule__RangeRule__ContextsAssignment_13 : ( ruleSimpleContext ) ; - public final void rule__RangeRule__ContextsAssignment_13() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5001:1: ( ( ruleSimpleContext ) ) - // InternalValid.g:5002:2: ( ruleSimpleContext ) - { - // InternalValid.g:5002:2: ( ruleSimpleContext ) - // InternalValid.g:5003:3: ruleSimpleContext - { - before(grammarAccess.getRangeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - pushFollow(FOLLOW_2); - ruleSimpleContext(); - - state._fsp--; - - after(grammarAccess.getRangeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__RangeRule__ContextsAssignment_13" - - - // $ANTLR start "rule__UniqueRule__OptionalAssignment_0_0" - // InternalValid.g:5012:1: rule__UniqueRule__OptionalAssignment_0_0 : ( ( 'optional' ) ) ; - public final void rule__UniqueRule__OptionalAssignment_0_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5016:1: ( ( ( 'optional' ) ) ) - // InternalValid.g:5017:2: ( ( 'optional' ) ) - { - // InternalValid.g:5017:2: ( ( 'optional' ) ) - // InternalValid.g:5018:3: ( 'optional' ) - { - before(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); - // InternalValid.g:5019:3: ( 'optional' ) - // InternalValid.g:5020:4: 'optional' - { - before(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); - match(input,36,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - after(grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__OptionalAssignment_0_0" - - - // $ANTLR start "rule__UniqueRule__CheckKindAssignment_0_1" - // InternalValid.g:5031:1: rule__UniqueRule__CheckKindAssignment_0_1 : ( ruleCheckKind ) ; - public final void rule__UniqueRule__CheckKindAssignment_0_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5035:1: ( ( ruleCheckKind ) ) - // InternalValid.g:5036:2: ( ruleCheckKind ) - { - // InternalValid.g:5036:2: ( ruleCheckKind ) - // InternalValid.g:5037:3: ruleCheckKind - { - before(grammarAccess.getUniqueRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - pushFollow(FOLLOW_2); - ruleCheckKind(); - - state._fsp--; - - after(grammarAccess.getUniqueRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__CheckKindAssignment_0_1" - - - // $ANTLR start "rule__UniqueRule__SeverityAssignment_2" - // InternalValid.g:5046:1: rule__UniqueRule__SeverityAssignment_2 : ( ruleSeverityKind ) ; - public final void rule__UniqueRule__SeverityAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5050:1: ( ( ruleSeverityKind ) ) - // InternalValid.g:5051:2: ( ruleSeverityKind ) - { - // InternalValid.g:5051:2: ( ruleSeverityKind ) - // InternalValid.g:5052:3: ruleSeverityKind - { - before(grammarAccess.getUniqueRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - pushFollow(FOLLOW_2); - ruleSeverityKind(); - - state._fsp--; - - after(grammarAccess.getUniqueRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__SeverityAssignment_2" - - - // $ANTLR start "rule__UniqueRule__NameAssignment_3" - // InternalValid.g:5061:1: rule__UniqueRule__NameAssignment_3 : ( RULE_ID ) ; - public final void rule__UniqueRule__NameAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5065:1: ( ( RULE_ID ) ) - // InternalValid.g:5066:2: ( RULE_ID ) - { - // InternalValid.g:5066:2: ( RULE_ID ) - // InternalValid.g:5067:3: RULE_ID - { - before(grammarAccess.getUniqueRuleAccess().getNameIDTerminalRuleCall_3_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getNameIDTerminalRuleCall_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__NameAssignment_3" - - - // $ANTLR start "rule__UniqueRule__LabelAssignment_5" - // InternalValid.g:5076:1: rule__UniqueRule__LabelAssignment_5 : ( RULE_STRING ) ; - public final void rule__UniqueRule__LabelAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5080:1: ( ( RULE_STRING ) ) - // InternalValid.g:5081:2: ( RULE_STRING ) - { - // InternalValid.g:5081:2: ( RULE_STRING ) - // InternalValid.g:5082:3: RULE_STRING - { - before(grammarAccess.getUniqueRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__LabelAssignment_5" - - - // $ANTLR start "rule__UniqueRule__DescriptionAssignment_6_1" - // InternalValid.g:5091:1: rule__UniqueRule__DescriptionAssignment_6_1 : ( RULE_STRING ) ; - public final void rule__UniqueRule__DescriptionAssignment_6_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5095:1: ( ( RULE_STRING ) ) - // InternalValid.g:5096:2: ( RULE_STRING ) - { - // InternalValid.g:5096:2: ( RULE_STRING ) - // InternalValid.g:5097:3: RULE_STRING - { - before(grammarAccess.getUniqueRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__DescriptionAssignment_6_1" - - - // $ANTLR start "rule__UniqueRule__MessageAssignment_7_1" - // InternalValid.g:5106:1: rule__UniqueRule__MessageAssignment_7_1 : ( RULE_STRING ) ; - public final void rule__UniqueRule__MessageAssignment_7_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5110:1: ( ( RULE_STRING ) ) - // InternalValid.g:5111:2: ( RULE_STRING ) - { - // InternalValid.g:5111:2: ( RULE_STRING ) - // InternalValid.g:5112:3: RULE_STRING - { - before(grammarAccess.getUniqueRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getUniqueRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__MessageAssignment_7_1" - - - // $ANTLR start "rule__UniqueRule__ContextsAssignment_10" - // InternalValid.g:5121:1: rule__UniqueRule__ContextsAssignment_10 : ( ruleDuplicateContext ) ; - public final void rule__UniqueRule__ContextsAssignment_10() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5125:1: ( ( ruleDuplicateContext ) ) - // InternalValid.g:5126:2: ( ruleDuplicateContext ) - { - // InternalValid.g:5126:2: ( ruleDuplicateContext ) - // InternalValid.g:5127:3: ruleDuplicateContext - { - before(grammarAccess.getUniqueRuleAccess().getContextsDuplicateContextParserRuleCall_10_0()); - pushFollow(FOLLOW_2); - ruleDuplicateContext(); - - state._fsp--; - - after(grammarAccess.getUniqueRuleAccess().getContextsDuplicateContextParserRuleCall_10_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__UniqueRule__ContextsAssignment_10" - - - // $ANTLR start "rule__SimpleContext__ContextTypeAssignment_0" - // InternalValid.g:5136:1: rule__SimpleContext__ContextTypeAssignment_0 : ( ( ruleQualifiedID ) ) ; - public final void rule__SimpleContext__ContextTypeAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5140:1: ( ( ( ruleQualifiedID ) ) ) - // InternalValid.g:5141:2: ( ( ruleQualifiedID ) ) - { - // InternalValid.g:5141:2: ( ( ruleQualifiedID ) ) - // InternalValid.g:5142:3: ( ruleQualifiedID ) - { - before(grammarAccess.getSimpleContextAccess().getContextTypeEClassCrossReference_0_0()); - // InternalValid.g:5143:3: ( ruleQualifiedID ) - // InternalValid.g:5144:4: ruleQualifiedID - { - before(grammarAccess.getSimpleContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); - pushFollow(FOLLOW_2); - ruleQualifiedID(); - - state._fsp--; - - after(grammarAccess.getSimpleContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); - - } - - after(grammarAccess.getSimpleContextAccess().getContextTypeEClassCrossReference_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__ContextTypeAssignment_0" - - - // $ANTLR start "rule__SimpleContext__ContextFeatureAssignment_1_1" - // InternalValid.g:5155:1: rule__SimpleContext__ContextFeatureAssignment_1_1 : ( ( RULE_ID ) ) ; - public final void rule__SimpleContext__ContextFeatureAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5159:1: ( ( ( RULE_ID ) ) ) - // InternalValid.g:5160:2: ( ( RULE_ID ) ) - { - // InternalValid.g:5160:2: ( ( RULE_ID ) ) - // InternalValid.g:5161:3: ( RULE_ID ) - { - before(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - // InternalValid.g:5162:3: ( RULE_ID ) - // InternalValid.g:5163:4: RULE_ID - { - before(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); - - } - - after(grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__SimpleContext__ContextFeatureAssignment_1_1" - - - // $ANTLR start "rule__DuplicateContext__ContextTypeAssignment_0" - // InternalValid.g:5174:1: rule__DuplicateContext__ContextTypeAssignment_0 : ( ( ruleQualifiedID ) ) ; - public final void rule__DuplicateContext__ContextTypeAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5178:1: ( ( ( ruleQualifiedID ) ) ) - // InternalValid.g:5179:2: ( ( ruleQualifiedID ) ) - { - // InternalValid.g:5179:2: ( ( ruleQualifiedID ) ) - // InternalValid.g:5180:3: ( ruleQualifiedID ) - { - before(grammarAccess.getDuplicateContextAccess().getContextTypeEClassCrossReference_0_0()); - // InternalValid.g:5181:3: ( ruleQualifiedID ) - // InternalValid.g:5182:4: ruleQualifiedID - { - before(grammarAccess.getDuplicateContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); - pushFollow(FOLLOW_2); - ruleQualifiedID(); - - state._fsp--; - - after(grammarAccess.getDuplicateContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); - - } - - after(grammarAccess.getDuplicateContextAccess().getContextTypeEClassCrossReference_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__ContextTypeAssignment_0" - - - // $ANTLR start "rule__DuplicateContext__ContextFeatureAssignment_1_1" - // InternalValid.g:5193:1: rule__DuplicateContext__ContextFeatureAssignment_1_1 : ( ( RULE_ID ) ) ; - public final void rule__DuplicateContext__ContextFeatureAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5197:1: ( ( ( RULE_ID ) ) ) - // InternalValid.g:5198:2: ( ( RULE_ID ) ) - { - // InternalValid.g:5198:2: ( ( RULE_ID ) ) - // InternalValid.g:5199:3: ( RULE_ID ) - { - before(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - // InternalValid.g:5200:3: ( RULE_ID ) - // InternalValid.g:5201:4: RULE_ID - { - before(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); - - } - - after(grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__ContextFeatureAssignment_1_1" - - - // $ANTLR start "rule__DuplicateContext__MarkerTypeAssignment_3" - // InternalValid.g:5212:1: rule__DuplicateContext__MarkerTypeAssignment_3 : ( ( ruleQualifiedID ) ) ; - public final void rule__DuplicateContext__MarkerTypeAssignment_3() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5216:1: ( ( ( ruleQualifiedID ) ) ) - // InternalValid.g:5217:2: ( ( ruleQualifiedID ) ) - { - // InternalValid.g:5217:2: ( ( ruleQualifiedID ) ) - // InternalValid.g:5218:3: ( ruleQualifiedID ) - { - before(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassCrossReference_3_0()); - // InternalValid.g:5219:3: ( ruleQualifiedID ) - // InternalValid.g:5220:4: ruleQualifiedID - { - before(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1()); - pushFollow(FOLLOW_2); - ruleQualifiedID(); - - state._fsp--; - - after(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1()); - - } - - after(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassCrossReference_3_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__MarkerTypeAssignment_3" - - - // $ANTLR start "rule__DuplicateContext__MarkerFeatureAssignment_5" - // InternalValid.g:5231:1: rule__DuplicateContext__MarkerFeatureAssignment_5 : ( ( RULE_ID ) ) ; - public final void rule__DuplicateContext__MarkerFeatureAssignment_5() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5235:1: ( ( ( RULE_ID ) ) ) - // InternalValid.g:5236:2: ( ( RULE_ID ) ) - { - // InternalValid.g:5236:2: ( ( RULE_ID ) ) - // InternalValid.g:5237:3: ( RULE_ID ) - { - before(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_5_0()); - // InternalValid.g:5238:3: ( RULE_ID ) - // InternalValid.g:5239:4: RULE_ID - { - before(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1()); - - } - - after(grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_5_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__DuplicateContext__MarkerFeatureAssignment_5" - - - // $ANTLR start "rule__NativeContext__ContextTypeAssignment_0" - // InternalValid.g:5250:1: rule__NativeContext__ContextTypeAssignment_0 : ( ( ruleQualifiedID ) ) ; - public final void rule__NativeContext__ContextTypeAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5254:1: ( ( ( ruleQualifiedID ) ) ) - // InternalValid.g:5255:2: ( ( ruleQualifiedID ) ) - { - // InternalValid.g:5255:2: ( ( ruleQualifiedID ) ) - // InternalValid.g:5256:3: ( ruleQualifiedID ) - { - before(grammarAccess.getNativeContextAccess().getContextTypeEClassCrossReference_0_0()); - // InternalValid.g:5257:3: ( ruleQualifiedID ) - // InternalValid.g:5258:4: ruleQualifiedID - { - before(grammarAccess.getNativeContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); - pushFollow(FOLLOW_2); - ruleQualifiedID(); - - state._fsp--; - - after(grammarAccess.getNativeContextAccess().getContextTypeEClassQualifiedIDParserRuleCall_0_0_1()); - - } - - after(grammarAccess.getNativeContextAccess().getContextTypeEClassCrossReference_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__ContextTypeAssignment_0" - - - // $ANTLR start "rule__NativeContext__ContextFeatureAssignment_1_1" - // InternalValid.g:5269:1: rule__NativeContext__ContextFeatureAssignment_1_1 : ( ( RULE_ID ) ) ; - public final void rule__NativeContext__ContextFeatureAssignment_1_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5273:1: ( ( ( RULE_ID ) ) ) - // InternalValid.g:5274:2: ( ( RULE_ID ) ) - { - // InternalValid.g:5274:2: ( ( RULE_ID ) ) - // InternalValid.g:5275:3: ( RULE_ID ) - { - before(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - // InternalValid.g:5276:3: ( RULE_ID ) - // InternalValid.g:5277:4: RULE_ID - { - before(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1()); - - } - - after(grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__ContextFeatureAssignment_1_1" - - - // $ANTLR start "rule__NativeContext__NamedAssignment_2_0" - // InternalValid.g:5288:1: rule__NativeContext__NamedAssignment_2_0 : ( ( 'as' ) ) ; - public final void rule__NativeContext__NamedAssignment_2_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5292:1: ( ( ( 'as' ) ) ) - // InternalValid.g:5293:2: ( ( 'as' ) ) - { - // InternalValid.g:5293:2: ( ( 'as' ) ) - // InternalValid.g:5294:3: ( 'as' ) - { - before(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); - // InternalValid.g:5295:3: ( 'as' ) - // InternalValid.g:5296:4: 'as' - { - before(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); - match(input,37,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); - - } - - after(grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__NamedAssignment_2_0" - - - // $ANTLR start "rule__NativeContext__GivenNameAssignment_2_1" - // InternalValid.g:5307:1: rule__NativeContext__GivenNameAssignment_2_1 : ( RULE_ID ) ; - public final void rule__NativeContext__GivenNameAssignment_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5311:1: ( ( RULE_ID ) ) - // InternalValid.g:5312:2: ( RULE_ID ) - { - // InternalValid.g:5312:2: ( RULE_ID ) - // InternalValid.g:5313:3: RULE_ID - { - before(grammarAccess.getNativeContextAccess().getGivenNameIDTerminalRuleCall_2_1_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getGivenNameIDTerminalRuleCall_2_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__GivenNameAssignment_2_1" - - - // $ANTLR start "rule__NativeContext__MarkerTypeAssignment_3_1" - // InternalValid.g:5322:1: rule__NativeContext__MarkerTypeAssignment_3_1 : ( ( ruleQualifiedID ) ) ; - public final void rule__NativeContext__MarkerTypeAssignment_3_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5326:1: ( ( ( ruleQualifiedID ) ) ) - // InternalValid.g:5327:2: ( ( ruleQualifiedID ) ) - { - // InternalValid.g:5327:2: ( ( ruleQualifiedID ) ) - // InternalValid.g:5328:3: ( ruleQualifiedID ) - { - before(grammarAccess.getNativeContextAccess().getMarkerTypeEClassCrossReference_3_1_0()); - // InternalValid.g:5329:3: ( ruleQualifiedID ) - // InternalValid.g:5330:4: ruleQualifiedID - { - before(grammarAccess.getNativeContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1()); - pushFollow(FOLLOW_2); - ruleQualifiedID(); - - state._fsp--; - - after(grammarAccess.getNativeContextAccess().getMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1()); - - } - - after(grammarAccess.getNativeContextAccess().getMarkerTypeEClassCrossReference_3_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__MarkerTypeAssignment_3_1" - - - // $ANTLR start "rule__NativeContext__MarkerFeatureAssignment_3_2_1" - // InternalValid.g:5341:1: rule__NativeContext__MarkerFeatureAssignment_3_2_1 : ( ( RULE_ID ) ) ; - public final void rule__NativeContext__MarkerFeatureAssignment_3_2_1() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5345:1: ( ( ( RULE_ID ) ) ) - // InternalValid.g:5346:2: ( ( RULE_ID ) ) - { - // InternalValid.g:5346:2: ( ( RULE_ID ) ) - // InternalValid.g:5347:3: ( RULE_ID ) - { - before(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0()); - // InternalValid.g:5348:3: ( RULE_ID ) - // InternalValid.g:5349:4: RULE_ID - { - before(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1()); - - } - - after(grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__MarkerFeatureAssignment_3_2_1" - - - // $ANTLR start "rule__NativeContext__QuickFixesAssignment_4_2" - // InternalValid.g:5360:1: rule__NativeContext__QuickFixesAssignment_4_2 : ( ruleQuickFix ) ; - public final void rule__NativeContext__QuickFixesAssignment_4_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5364:1: ( ( ruleQuickFix ) ) - // InternalValid.g:5365:2: ( ruleQuickFix ) - { - // InternalValid.g:5365:2: ( ruleQuickFix ) - // InternalValid.g:5366:3: ruleQuickFix - { - before(grammarAccess.getNativeContextAccess().getQuickFixesQuickFixParserRuleCall_4_2_0()); - pushFollow(FOLLOW_2); - ruleQuickFix(); - - state._fsp--; - - after(grammarAccess.getNativeContextAccess().getQuickFixesQuickFixParserRuleCall_4_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__NativeContext__QuickFixesAssignment_4_2" - - - // $ANTLR start "rule__QuickFix__QuickFixKindAssignment_0" - // InternalValid.g:5375:1: rule__QuickFix__QuickFixKindAssignment_0 : ( ruleQuickFixKind ) ; - public final void rule__QuickFix__QuickFixKindAssignment_0() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5379:1: ( ( ruleQuickFixKind ) ) - // InternalValid.g:5380:2: ( ruleQuickFixKind ) - { - // InternalValid.g:5380:2: ( ruleQuickFixKind ) - // InternalValid.g:5381:3: ruleQuickFixKind - { - before(grammarAccess.getQuickFixAccess().getQuickFixKindQuickFixKindEnumRuleCall_0_0()); - pushFollow(FOLLOW_2); - ruleQuickFixKind(); - - state._fsp--; - - after(grammarAccess.getQuickFixAccess().getQuickFixKindQuickFixKindEnumRuleCall_0_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__QuickFixKindAssignment_0" - - - // $ANTLR start "rule__QuickFix__NameAssignment_2" - // InternalValid.g:5390:1: rule__QuickFix__NameAssignment_2 : ( RULE_ID ) ; - public final void rule__QuickFix__NameAssignment_2() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5394:1: ( ( RULE_ID ) ) - // InternalValid.g:5395:2: ( RULE_ID ) - { - // InternalValid.g:5395:2: ( RULE_ID ) - // InternalValid.g:5396:3: RULE_ID - { - before(grammarAccess.getQuickFixAccess().getNameIDTerminalRuleCall_2_0()); - match(input,RULE_ID,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getNameIDTerminalRuleCall_2_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__NameAssignment_2" - - - // $ANTLR start "rule__QuickFix__LabelAssignment_4" - // InternalValid.g:5405:1: rule__QuickFix__LabelAssignment_4 : ( RULE_STRING ) ; - public final void rule__QuickFix__LabelAssignment_4() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5409:1: ( ( RULE_STRING ) ) - // InternalValid.g:5410:2: ( RULE_STRING ) - { - // InternalValid.g:5410:2: ( RULE_STRING ) - // InternalValid.g:5411:3: RULE_STRING - { - before(grammarAccess.getQuickFixAccess().getLabelSTRINGTerminalRuleCall_4_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getLabelSTRINGTerminalRuleCall_4_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__LabelAssignment_4" - - - // $ANTLR start "rule__QuickFix__MessageAssignment_6" - // InternalValid.g:5420:1: rule__QuickFix__MessageAssignment_6 : ( RULE_STRING ) ; - public final void rule__QuickFix__MessageAssignment_6() throws RecognitionException { - - int stackSize = keepStackSize(); - - try { - // InternalValid.g:5424:1: ( ( RULE_STRING ) ) - // InternalValid.g:5425:2: ( RULE_STRING ) - { - // InternalValid.g:5425:2: ( RULE_STRING ) - // InternalValid.g:5426:3: RULE_STRING - { - before(grammarAccess.getQuickFixAccess().getMessageSTRINGTerminalRuleCall_6_0()); - match(input,RULE_STRING,FOLLOW_2); - after(grammarAccess.getQuickFixAccess().getMessageSTRINGTerminalRuleCall_6_0()); - - } - - - } - - } - catch (RecognitionException re) { - reportError(re); - recover(input,re); - } - finally { - - restoreStackSize(stackSize); - - } - return ; - } - // $ANTLR end "rule__QuickFix__MessageAssignment_6" - - // Delegated rules - - - protected DFA1 dfa1 = new DFA1(this); - protected DFA2 dfa2 = new DFA2(this); - static final String dfa_1s = "\13\uffff"; - static final String dfa_2s = "\5\13\2\uffff\4\16"; - static final String dfa_3s = "\5\44\2\uffff\4\35"; - static final String dfa_4s = "\5\uffff\1\1\1\2\4\uffff"; - static final String dfa_5s = "\13\uffff}>"; - static final String[] dfa_6s = { - "\1\2\1\3\1\4\2\5\12\uffff\1\6\1\uffff\2\6\6\uffff\1\1", - "\1\10\1\11\1\12\2\5\12\uffff\1\6\1\uffff\2\6\6\uffff\1\7", - "\1\10\1\11\1\12\2\5\12\uffff\1\6\1\uffff\2\6\6\uffff\1\7", - "\1\10\1\11\1\12\2\5\12\uffff\1\6\1\uffff\2\6\6\uffff\1\7", - "\1\10\1\11\1\12\2\5\12\uffff\1\6\1\uffff\2\6\6\uffff\1\7", - "", - "", - "\2\5\12\uffff\1\6\1\uffff\2\6", - "\2\5\12\uffff\1\6\1\uffff\2\6", - "\2\5\12\uffff\1\6\1\uffff\2\6", - "\2\5\12\uffff\1\6\1\uffff\2\6" - }; - - 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 DFA1 extends DFA { - - public DFA1(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 1; - 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 "450:1: rule__Rule__Alternatives : ( ( ruleNativeRule ) | ( rulePredefinedRule ) );"; - } - } - static final String dfa_7s = "\14\uffff"; - static final String dfa_8s = "\5\13\3\uffff\4\32"; - static final String dfa_9s = "\5\44\3\uffff\4\35"; - static final String dfa_10s = "\5\uffff\1\1\1\2\1\3\4\uffff"; - static final String dfa_11s = "\14\uffff}>"; - static final String[] dfa_12s = { - "\1\2\1\3\1\4\14\uffff\1\5\1\uffff\1\6\1\7\6\uffff\1\1", - "\1\11\1\12\1\13\14\uffff\1\5\1\uffff\1\6\1\7\6\uffff\1\10", - "\1\11\1\12\1\13\14\uffff\1\5\1\uffff\1\6\1\7\6\uffff\1\10", - "\1\11\1\12\1\13\14\uffff\1\5\1\uffff\1\6\1\7\6\uffff\1\10", - "\1\11\1\12\1\13\14\uffff\1\5\1\uffff\1\6\1\7\6\uffff\1\10", - "", - "", - "", - "\1\5\1\uffff\1\6\1\7", - "\1\5\1\uffff\1\6\1\7", - "\1\5\1\uffff\1\6\1\7", - "\1\5\1\uffff\1\6\1\7" - }; - - static final short[] dfa_7 = DFA.unpackEncodedString(dfa_7s); - static final char[] dfa_8 = DFA.unpackEncodedStringToUnsignedChars(dfa_8s); - static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); - static final short[] dfa_10 = DFA.unpackEncodedString(dfa_10s); - static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); - static final short[][] dfa_12 = unpackEncodedStringArray(dfa_12s); - - class DFA2 extends DFA { - - public DFA2(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 2; - this.eot = dfa_7; - this.eof = dfa_7; - this.min = dfa_8; - this.max = dfa_9; - this.accept = dfa_10; - this.special = dfa_11; - this.transition = dfa_12; - } - public String getDescription() { - return "471:1: rule__PredefinedRule__Alternatives : ( ( ruleSizeRule ) | ( ruleRangeRule ) | ( ruleUniqueRule ) );"; - } - } - - - 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[]{0x0000000000080000L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000040002L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000080002L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000100000L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000A00000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000001000403800L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000001000003802L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x000000000000C000L}); - public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000001800000L}); - public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000002000000L}); - public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000200000L}); - public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000400000L}); - public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000000012L}); - public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000004000000L}); - public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000005800000L}); - public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000040L}); - public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000008000000L}); - public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000010000000L}); - public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000011800000L}); - public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000020000000L}); - public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000003800000L}); - public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x00000000C0000000L}); - public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x0000000180000000L}); - public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x0000000080000000L}); - public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000040000010L}); - public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x00000023C0000000L}); - public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000400030000L}); - public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000400030002L}); - public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000001000000L}); - public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000040000000L}); - public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000000800000000L}); - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src/com/avaloq/tools/ddk/xtext/valid/ide/ValidIdeModule.java b/com.avaloq.tools.ddk.xtext.valid.ide/src/com/avaloq/tools/ddk/xtext/valid/ide/ValidIdeModule.java deleted file mode 100644 index d56484dddf..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src/com/avaloq/tools/ddk/xtext/valid/ide/ValidIdeModule.java +++ /dev/null @@ -1,10 +0,0 @@ -/* - * generated by Xtext 2.25.0 - */ -package com.avaloq.tools.ddk.xtext.valid.ide; - -/** - * Use this class to register ide components. - */ -public class ValidIdeModule extends AbstractValidIdeModule { -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ide/src/com/avaloq/tools/ddk/xtext/valid/ide/ValidIdeSetup.java b/com.avaloq.tools.ddk.xtext.valid.ide/src/com/avaloq/tools/ddk/xtext/valid/ide/ValidIdeSetup.java deleted file mode 100644 index 90e48ca169..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ide/src/com/avaloq/tools/ddk/xtext/valid/ide/ValidIdeSetup.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * generated by Xtext 2.25.0 - */ -package com.avaloq.tools.ddk.xtext.valid.ide; - -import org.eclipse.xtext.util.Modules2; - -import com.avaloq.tools.ddk.xtext.valid.ValidRuntimeModule; -import com.avaloq.tools.ddk.xtext.valid.ValidStandaloneSetup; -import com.google.inject.Guice; -import com.google.inject.Injector; - - -/** - * Initialization support for running Xtext languages as language servers. - */ -public class ValidIdeSetup extends ValidStandaloneSetup { - - @Override - public Injector createInjector() { - return Guice.createInjector(Modules2.mixin(new ValidRuntimeModule(), new ValidIdeModule())); - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/.classpath b/com.avaloq.tools.ddk.xtext.valid.ui/.classpath deleted file mode 100644 index bd17204a15..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/.classpath +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/.project b/com.avaloq.tools.ddk.xtext.valid.ui/.project deleted file mode 100644 index 4e106cc9de..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/.project +++ /dev/null @@ -1,99 +0,0 @@ - - - com.avaloq.tools.ddk.xtext.valid.ui - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - net.sf.eclipsecs.core.CheckstyleBuilder - - - - - net.sourceforge.pmd.eclipse.plugin.pmdBuilder - - - - - edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.xtext.ui.shared.xtextNature - net.sourceforge.pmd.eclipse.plugin.pmdNature - net.sf.eclipsecs.core.CheckstyleNature - edu.umd.cs.findbugs.plugin.eclipse.findbugsNature - - - - .checkstyle - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.checkstyle - - - .fbprefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.fbprefs - - - .pmd - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.pmd - - - .settings/edu.umd.cs.findbugs.plugin.eclipse.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/edu.umd.cs.findbugs.plugin.eclipse.prefs - - - .settings/org.eclipse.core.resources.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.core.resources.prefs - - - .settings/org.eclipse.core.runtime.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.core.runtime.prefs - - - .settings/org.eclipse.jdt.core.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.jdt.core.prefs - - - .settings/org.eclipse.jdt.ui.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.jdt.ui.prefs - - - .settings/org.eclipse.pde.core.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.pde.core.prefs - - - diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/.settings/.gitignore b/com.avaloq.tools.ddk.xtext.valid.ui/.settings/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/META-INF/MANIFEST.MF b/com.avaloq.tools.ddk.xtext.valid.ui/META-INF/MANIFEST.MF deleted file mode 100644 index 8697f987b8..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/META-INF/MANIFEST.MF +++ /dev/null @@ -1,26 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: com.avaloq.tools.ddk.xtext.valid.ui -Bundle-SymbolicName: com.avaloq.tools.ddk.xtext.valid.ui;singleton:=true -Bundle-Version: 17.3.1.qualifier -Bundle-Vendor: Avaloq Group AG -Bundle-RequiredExecutionEnvironment: JavaSE-21 -Bundle-ActivationPolicy: lazy -Require-Bundle: com.avaloq.tools.ddk.xtext.ui, - com.avaloq.tools.ddk.xtext.valid.ide;visibility:=reexport, - com.avaloq.tools.ddk.xtext.valid;visibility:=reexport, - org.eclipse.xtext.ui, - org.eclipse.xtext.ui.shared, - org.eclipse.ui, - org.antlr.runtime, - org.eclipse.xtext.builder, - org.eclipse.ui.editors, - org.eclipse.compare, - org.eclipse.jdt.ui -Export-Package: com.avaloq.tools.ddk.xtext.valid.ui.internal, - com.avaloq.tools.ddk.xtext.valid.ui.contentassist, - com.avaloq.tools.ddk.xtext.valid.ui.quickfix -Import-Package: org.apache.log4j -Bundle-Activator: com.avaloq.tools.ddk.xtext.valid.ui.internal.ValidActivator -Eclipse-ExtensibleAPI: true -Automatic-Module-Name: com.avaloq.tools.ddk.xtext.valid.ui diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/build.properties b/com.avaloq.tools.ddk.xtext.valid.ui/build.properties deleted file mode 100644 index 1a43e17639..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/build.properties +++ /dev/null @@ -1,6 +0,0 @@ -source.. = src/,\ - src-gen/ -bin.includes = META-INF/,\ - icons/,\ - .,\ - plugin.xml diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/category.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/category.gif deleted file mode 100644 index b6096e27c9..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/category.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/eclass.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/eclass.gif deleted file mode 100644 index 2b8da630d8..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/eclass.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/editor.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/editor.gif deleted file mode 100644 index 3476ebeb0b..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/editor.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/error.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/error.gif deleted file mode 100644 index 0bc60689c6..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/error.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/extension.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/extension.gif deleted file mode 100644 index fdde5fbb95..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/extension.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/import.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/import.gif deleted file mode 100644 index d38085ad9c..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/import.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/quickfix.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/quickfix.gif deleted file mode 100644 index 542dddca3f..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/quickfix.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/icons/warning.gif b/com.avaloq.tools.ddk.xtext.valid.ui/icons/warning.gif deleted file mode 100644 index 2b2e50fe7c..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid.ui/icons/warning.gif and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/plugin.xml b/com.avaloq.tools.ddk.xtext.valid.ui/plugin.xml deleted file mode 100644 index 09f52dc3b5..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/plugin.xml +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/plugin.xml_gen b/com.avaloq.tools.ddk.xtext.valid.ui/plugin.xml_gen deleted file mode 100644 index 1c8cb4760e..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/plugin.xml_gen +++ /dev/null @@ -1,343 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/pom.xml b/com.avaloq.tools.ddk.xtext.valid.ui/pom.xml deleted file mode 100644 index 46fda82b4c..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - - ddk-parent - com.avaloq.tools.ddk - 18.0.1-SNAPSHOT - ../ddk-parent - - 17.3.1-SNAPSHOT - - com.avaloq.tools.ddk.xtext.valid.ui - eclipse-plugin - \ No newline at end of file diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/AbstractValidUiModule.java b/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/AbstractValidUiModule.java deleted file mode 100644 index 1d77291549..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/AbstractValidUiModule.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.ui; - -import com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr.ValidParser; -import com.avaloq.tools.ddk.xtext.valid.ide.contentassist.antlr.internal.InternalValidLexer; -import com.avaloq.tools.ddk.xtext.valid.ui.contentassist.ValidProposalProvider; -import com.avaloq.tools.ddk.xtext.valid.ui.labeling.ValidDescriptionLabelProvider; -import com.avaloq.tools.ddk.xtext.valid.ui.labeling.ValidLabelProvider; -import com.avaloq.tools.ddk.xtext.valid.ui.outline.ValidOutlineTreeProvider; -import com.avaloq.tools.ddk.xtext.valid.ui.quickfix.ValidQuickfixProvider; -import com.google.inject.Binder; -import com.google.inject.Provider; -import com.google.inject.name.Names; -import org.eclipse.compare.IViewerCreator; -import org.eclipse.jface.viewers.ILabelProvider; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.eclipse.xtext.builder.EclipseOutputConfigurationProvider; -import org.eclipse.xtext.builder.builderState.IBuilderState; -import org.eclipse.xtext.builder.clustering.CurrentDescriptions; -import org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource; -import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback; -import org.eclipse.xtext.generator.IContextualOutputConfigurationProvider; -import org.eclipse.xtext.ide.LexerIdeBindings; -import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; -import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; -import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; -import org.eclipse.xtext.parser.antlr.ITokenDefProvider; -import org.eclipse.xtext.parser.antlr.LexerProvider; -import org.eclipse.xtext.resource.IResourceDescriptions; -import org.eclipse.xtext.resource.containers.IAllContainersState; -import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; -import org.eclipse.xtext.ui.DefaultUiModule; -import org.eclipse.xtext.ui.UIBindings; -import org.eclipse.xtext.ui.compare.DefaultViewerCreator; -import org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource; -import org.eclipse.xtext.ui.editor.IXtextEditorCallback; -import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; -import org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider; -import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper; -import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper; -import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory; -import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; -import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider; -import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; -import org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator; -import org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator; -import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider; -import org.eclipse.xtext.ui.shared.Access; - -/** - * Manual modifications go to {@link ValidUiModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractValidUiModule extends DefaultUiModule { - - public AbstractValidUiModule(AbstractUIPlugin plugin) { - super(plugin); - } - - // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment - public Provider provideIAllContainersState() { - return Access.getJavaProjectsState(); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIProposalConflictHelper() { - return AntlrProposalConflictHelper.class; - } - - // 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(InternalValidLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureHighlightingLexer(Binder binder) { - binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) - .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) - .to(com.avaloq.tools.ddk.xtext.valid.parser.antlr.internal.InternalValidLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureHighlightingTokenDefProvider(Binder binder) { - binder.bind(ITokenDefProvider.class) - .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) - .to(AntlrTokenDefProvider.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindContentAssistContext$Factory() { - return DelegatingContentAssistContextFactory.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIContentAssistParser() { - return ValidParser.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public void configureContentAssistLexerProvider(Binder binder) { - binder.bind(InternalValidLexer.class).toProvider(LexerProvider.create(InternalValidLexer.class)); - } - - // contributed by org.eclipse.xtext.xtext.generator.exporting.SimpleNamesFragment2 - public Class bindIDependentElementsCalculator() { - return DefaultDependentElementsCalculator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public void configureIResourceDescriptionsBuilderScope(Binder binder) { - binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(CurrentDescriptions.ResourceSetAware.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindIXtextEditorCallback() { - return NatureAddingEditorCallback.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindIContextualOutputConfigurationProvider() { - return EclipseOutputConfigurationProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public void configureIResourceDescriptionsPersisted(Binder binder) { - binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindDocumentBasedDirtyResource() { - return PersistentDataAwareDirtyResource.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 - public Class bindILabelProvider() { - return ValidLabelProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 - public void configureResourceUIServiceLabelProvider(Binder binder) { - binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(ValidDescriptionLabelProvider.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 - public Class bindIOutlineTreeProvider() { - return ValidOutlineTreeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 - public Class bindIOutlineTreeStructureProvider() { - return ValidOutlineTreeProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2 - public Class bindIssueResolutionProvider() { - return ValidQuickfixProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2 - public Class bindIContentProposalProvider() { - return ValidProposalProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 - public Class bindIViewerCreator() { - return DefaultViewerCreator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 - public void configureCompareViewerTitle(Binder binder) { - binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("Valid Compare"); - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/ValidExecutableExtensionFactory.java b/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/ValidExecutableExtensionFactory.java deleted file mode 100644 index e12b5d7590..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/ValidExecutableExtensionFactory.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.ui; - -import com.avaloq.tools.ddk.xtext.valid.ui.internal.ValidActivator; -import com.google.inject.Injector; -import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory; -import org.osgi.framework.Bundle; -import org.osgi.framework.FrameworkUtil; - -/** - * This class was generated. Customizations should only happen in a newly - * introduced subclass. - */ -public class ValidExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory { - - @Override - protected Bundle getBundle() { - return FrameworkUtil.getBundle(ValidActivator.class); - } - - @Override - protected Injector getInjector() { - ValidActivator activator = ValidActivator.getInstance(); - return activator != null ? activator.getInjector(ValidActivator.COM_AVALOQ_TOOLS_DDK_XTEXT_VALID_VALID) : null; - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/contentassist/AbstractValidProposalProvider.java b/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/contentassist/AbstractValidProposalProvider.java deleted file mode 100644 index c534e79a85..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/contentassist/AbstractValidProposalProvider.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.ui.contentassist; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.xtext.Assignment; -import org.eclipse.xtext.CrossReference; -import org.eclipse.xtext.RuleCall; -import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider; -import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; -import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; - -/** - * Represents a generated, default implementation of superclass {@link TerminalsProposalProvider}. - * Methods are dynamically dispatched on the first parameter, i.e., you can override them - * with a more concrete subtype. - */ -public abstract class AbstractValidProposalProvider extends TerminalsProposalProvider { - - public void completeValidModel_Imports(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeValidModel_Categories(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeImport_Package(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeCategory_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeCategory_Label(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeCategory_Description(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeCategory_Rules(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Optional(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void completeNativeRule_CheckKind(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Severity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Label(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Description(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Message(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeRule_Contexts(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Optional(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void completeSizeRule_CheckKind(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Severity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Label(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Description(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Message(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Min(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Max(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSizeRule_Contexts(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Optional(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void completeRangeRule_CheckKind(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Severity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Label(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Description(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Message(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Min(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Max(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeRangeRule_Contexts(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Optional(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void completeUniqueRule_CheckKind(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Severity(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Label(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Description(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Message(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeUniqueRule_Contexts(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeSimpleContext_ContextType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeSimpleContext_ContextFeature(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeDuplicateContext_ContextType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeDuplicateContext_ContextFeature(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeDuplicateContext_MarkerType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeDuplicateContext_MarkerFeature(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeNativeContext_ContextType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeNativeContext_ContextFeature(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeNativeContext_Named(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void completeNativeContext_GivenName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeNativeContext_MarkerType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeNativeContext_MarkerFeature(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); - } - public void completeNativeContext_QuickFixes(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeQuickFix_QuickFixKind(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeQuickFix_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeQuickFix_Label(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - public void completeQuickFix_Message(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); - } - - public void complete_ValidModel(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_Import(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_Category(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_Rule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_PredefinedRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_NativeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_SizeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_RangeRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_UniqueRule(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_Context(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_SimpleContext(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_DuplicateContext(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_NativeContext(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_QuickFix(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_CheckKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_SeverityKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_QuickFixKind(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } - public void complete_QualifiedID(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { - // subclasses may override - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/internal/ValidActivator.java b/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/internal/ValidActivator.java deleted file mode 100644 index 3c86138421..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src-gen/com/avaloq/tools/ddk/xtext/valid/ui/internal/ValidActivator.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.ui.internal; - -import com.avaloq.tools.ddk.xtext.valid.ValidRuntimeModule; -import com.avaloq.tools.ddk.xtext.valid.ui.ValidUiModule; -import com.google.common.collect.Maps; -import com.google.inject.Guice; -import com.google.inject.Injector; -import java.util.Collections; -import java.util.Map; -import org.apache.log4j.Logger; -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.eclipse.xtext.ui.shared.SharedStateModule; -import org.eclipse.xtext.util.Modules2; -import org.osgi.framework.BundleContext; - -/** - * This class was generated. Customizations should only happen in a newly - * introduced subclass. - */ -public class ValidActivator extends AbstractUIPlugin { - - public static final String PLUGIN_ID = "com.avaloq.tools.ddk.xtext.valid.ui"; - public static final String COM_AVALOQ_TOOLS_DDK_XTEXT_VALID_VALID = "com.avaloq.tools.ddk.xtext.valid.Valid"; - - private static final Logger logger = Logger.getLogger(ValidActivator.class); - - private static ValidActivator INSTANCE; - - private Map injectors = Collections.synchronizedMap(Maps. newHashMapWithExpectedSize(1)); - - @Override - public void start(BundleContext context) throws Exception { - super.start(context); - INSTANCE = this; - } - - @Override - public void stop(BundleContext context) throws Exception { - injectors.clear(); - INSTANCE = null; - super.stop(context); - } - - public static ValidActivator getInstance() { - return INSTANCE; - } - - public Injector getInjector(String language) { - synchronized (injectors) { - Injector injector = injectors.get(language); - if (injector == null) { - injectors.put(language, injector = createInjector(language)); - } - return injector; - } - } - - protected Injector createInjector(String language) { - try { - com.google.inject.Module runtimeModule = getRuntimeModule(language); - com.google.inject.Module sharedStateModule = getSharedStateModule(); - com.google.inject.Module uiModule = getUiModule(language); - com.google.inject.Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule); - return Guice.createInjector(mergedModule); - } catch (Exception e) { - logger.error("Failed to create injector for " + language); - logger.error(e.getMessage(), e); - throw new RuntimeException("Failed to create injector for " + language, e); - } - } - - protected com.google.inject.Module getRuntimeModule(String grammar) { - if (COM_AVALOQ_TOOLS_DDK_XTEXT_VALID_VALID.equals(grammar)) { - return new ValidRuntimeModule(); - } - throw new IllegalArgumentException(grammar); - } - - protected com.google.inject.Module getUiModule(String grammar) { - if (COM_AVALOQ_TOOLS_DDK_XTEXT_VALID_VALID.equals(grammar)) { - return new ValidUiModule(this); - } - throw new IllegalArgumentException(grammar); - } - - protected com.google.inject.Module getSharedStateModule() { - return new SharedStateModule(); - } - - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/ValidUiModule.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/ValidUiModule.java deleted file mode 100644 index a88ccf3a6c..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/ValidUiModule.java +++ /dev/null @@ -1,45 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui; - -import org.eclipse.ui.plugin.AbstractUIPlugin; -import org.eclipse.xtext.ui.editor.outline.impl.OutlineFilterAndSorter.IComparator; -import org.eclipse.xtext.ui.editor.templates.CrossReferenceTemplateVariableResolver; - -import com.avaloq.tools.ddk.xtext.ui.templates.KeywordAwareCrossReferenceTemplateVariableResolver; -import com.avaloq.tools.ddk.xtext.valid.ui.outline.ValidOutlineNodeComparator; - - -/** - * Use this class to register components to be used within the IDE. - */ -public class ValidUiModule extends com.avaloq.tools.ddk.xtext.valid.ui.AbstractValidUiModule { - public ValidUiModule(final AbstractUIPlugin plugin) { - super(plugin); - } - - /** - * Binds a {@link CrossReferenceTemplateVariableResolver} which prefixes keywords with escape characters. - * - * @return {@link KeywordAwareCrossReferenceTemplateVariableResolver} - */ - public Class bindCrossReferenceTemplateVariableResolver() { - return KeywordAwareCrossReferenceTemplateVariableResolver.class; - } - - @Override - // CHECKSTYLE:OFF - public Class bindOutlineFilterAndSorter$IComparator() { // NOPMD - // CHECKSTYLE:ON - return ValidOutlineNodeComparator.class; - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/contentassist/ValidProposalProvider.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/contentassist/ValidProposalProvider.java deleted file mode 100644 index 5b28e1040b..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/contentassist/ValidProposalProvider.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui.contentassist; - -/** - * The Class ValidProposalProvider. - */ -public class ValidProposalProvider extends com.avaloq.tools.ddk.xtext.valid.ui.contentassist.AbstractValidProposalProvider { - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/labeling/ValidDescriptionLabelProvider.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/labeling/ValidDescriptionLabelProvider.java deleted file mode 100644 index a8bcd1da55..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/labeling/ValidDescriptionLabelProvider.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui.labeling; - -import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider; - - -/** - * Provides labels for a IEObjectDescriptions and IResourceDescriptions. - * see http://www.eclipse.org/Xtext/documentation/latest/xtext.html#labelProvider - */ -public class ValidDescriptionLabelProvider extends DefaultDescriptionLabelProvider { - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/labeling/ValidLabelProvider.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/labeling/ValidLabelProvider.java deleted file mode 100644 index 566e02ee4d..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/labeling/ValidLabelProvider.java +++ /dev/null @@ -1,115 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui.labeling; - -import org.eclipse.jdt.internal.ui.JavaPlugin; -import org.eclipse.jdt.internal.ui.JavaPluginImages; -import org.eclipse.swt.graphics.Image; -import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider; - -import com.avaloq.tools.ddk.xtext.valid.valid.Category; -import com.avaloq.tools.ddk.xtext.valid.valid.Import; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFix; -import com.avaloq.tools.ddk.xtext.valid.valid.Rule; -import com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind; - - -/** - * Label Provider for the Valid Language (mostly used in outline). - */ -@SuppressWarnings("restriction") -public class ValidLabelProvider extends DefaultEObjectLabelProvider { - - /** - * Name of the image for Category. - * - * @param category - * the category - * @return name of the image file - */ - @SuppressWarnings("PMD.UnusedFormalParameter") - String image(final Category category) { - return "category.gif"; //$NON-NLS-1$ - } - - /** - * Name of the image for Rule. - * - * @param rule - * the rule - * @return name of the image file - */ - String image(final Rule rule) { - return rule.getSeverity() == SeverityKind.ERROR ? "error.gif" : "warning.gif"; //$NON-NLS-1$ //$NON-NLS-2$ - } - - /** - * Name of the image for QuickFix. - * - * @param quickFix - * the quick fix - * @return name of the image file - */ - @SuppressWarnings("PMD.UnusedFormalParameter") - String image(final QuickFix quickFix) { - return "quickfix.gif"; //$NON-NLS-1$ - } - - /** - * The image for Import. - * - * @param impaurt - * :-) - * the import - * @return the import image - */ - @SuppressWarnings("PMD.UnusedFormalParameter") - Image image(final Import impaurt) { - return JavaPlugin.getImageDescriptorRegistry().get(JavaPluginImages.DESC_OBJS_IMPDECL); - } - - /** - * Text label for Import. - * - * @param impaurt - * the import - * @return the label, evtl. "unresolved ..." if the reference is not found - */ - String text(final Import impaurt) { - return (impaurt.getPackage() != null) ? impaurt.getPackage().getName() : ""; //$NON-NLS-1$ - } - - /** - * Name of the image for NativeContext. - * - * @param nativeContext - * the native context - * @return name of the image file - */ - @SuppressWarnings("PMD.UnusedFormalParameter") - String image(final NativeContext nativeContext) { - return "eclass.gif"; //$NON-NLS-1$ - } - - /** - * Text label for NativeContext. - * - * @param nativeContext - * the native context - * @return the label, evtl. "unresolved ..." if the reference is not found - */ - - String text(final NativeContext nativeContext) { - return (nativeContext.getContextType() != null) ? nativeContext.getContextType().getName() : ""; //$NON-NLS-1$ - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/outline/ValidOutlineNodeComparator.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/outline/ValidOutlineNodeComparator.java deleted file mode 100644 index e0e5026bea..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/outline/ValidOutlineNodeComparator.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui.outline; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.xtext.ui.editor.outline.IOutlineNode; -import org.eclipse.xtext.ui.editor.outline.actions.SortOutlineContribution; -import org.eclipse.xtext.ui.editor.outline.impl.EStructuralFeatureNode; - -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - - -/** - * Comparator used to sort imports group first in outline. - */ -public class ValidOutlineNodeComparator extends SortOutlineContribution.DefaultComparator { - - private static final int IMPORTS_ORDER = -10; - - @Override - public int getCategory(final IOutlineNode node) { - if (node instanceof EStructuralFeatureNode) { - EStructuralFeature eStructuralFeature = ((EStructuralFeatureNode) node).getEStructuralFeature(); - if (eStructuralFeature == ValidPackage.Literals.VALID_MODEL__IMPORTS) { - return IMPORTS_ORDER; - } - } - return 0; - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/outline/ValidOutlineTreeProvider.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/outline/ValidOutlineTreeProvider.java deleted file mode 100644 index bccaff1130..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/outline/ValidOutlineTreeProvider.java +++ /dev/null @@ -1,88 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui.outline; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.jdt.internal.ui.JavaPlugin; -import org.eclipse.jdt.internal.ui.JavaPluginImages; -import org.eclipse.swt.graphics.Image; -import org.eclipse.xtext.ui.editor.outline.IOutlineNode; -import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider; -import org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode; - -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidModel; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - - -/** - * Customization of the default outline structure. - */ -@SuppressWarnings("restriction") -public class ValidOutlineTreeProvider extends DefaultOutlineTreeProvider { - - /** - * Do not create Model nodes in the outline. When the valid model is processed it is not - * added to the outline but its children are. - * - * @param parentNode - * the parent node, this should be the tree root - * @param modelElement - * a valid model - */ - // CHECKSTYLE:OFF - protected void _createChildren(final DocumentRootNode parentNode, final ValidModel modelElement) { - // CHECKSTYLE:ON - - Image importContainerImage = JavaPlugin.getImageDescriptorRegistry().get(JavaPluginImages.DESC_OBJS_IMPCONT); - - if (!modelElement.getImports().isEmpty()) { - createEStructuralFeatureNode(parentNode, modelElement, ValidPackage.Literals.VALID_MODEL__IMPORTS, importContainerImage, "import declarations", false); //$NON-NLS-1$ - } - for (EObject content : modelElement.getCategories()) { - createNode(parentNode, content); - } - } - - /** - * Create the child nodes for a given native Context. We only show quick fixes. - * - * @param parentNode - * the parent node - * @param modelElement - * the native context - */ - // CHECKSTYLE:OFF - protected void _createChildren(final IOutlineNode parentNode, final NativeContext modelElement) { - // CHECKSTYLE:ON - for (EObject content : modelElement.getQuickFixes()) { - createNode(parentNode, content); - } - } - - /** - * Create the child nodes for a given native native rule: its contexts. - * - * @param parentNode - * the parent node - * @param modelElement - * the native rule - */ - // CHECKSTYLE:OFF - protected void _createChildren(final IOutlineNode parentNode, final NativeRule modelElement) { - // CHECKSTYLE:ON - for (EObject content : modelElement.getContexts()) { - createNode(parentNode, content); - } - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/quickfix/ValidQuickfixProvider.java b/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/quickfix/ValidQuickfixProvider.java deleted file mode 100644 index 123144d106..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid.ui/src/com/avaloq/tools/ddk/xtext/valid/ui/quickfix/ValidQuickfixProvider.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.ui.quickfix; - -import org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider; - - -/** - * ValidQuickfixProvider is the superclass of all Valid-generated - * quick fix providers. - * It is empty, bugt can be used to easily enhance functionality. - */ -public class ValidQuickfixProvider extends DefaultQuickfixProvider { - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/.classpath b/com.avaloq.tools.ddk.xtext.valid/.classpath deleted file mode 100644 index bd17204a15..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/.classpath +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/.project b/com.avaloq.tools.ddk.xtext.valid/.project deleted file mode 100644 index c39d1650f0..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/.project +++ /dev/null @@ -1,99 +0,0 @@ - - - com.avaloq.tools.ddk.xtext.valid - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.pde.ManifestBuilder - - - - - org.eclipse.pde.SchemaBuilder - - - - - org.eclipse.xtext.ui.shared.xtextBuilder - - - - - net.sf.eclipsecs.core.CheckstyleBuilder - - - - - net.sourceforge.pmd.eclipse.plugin.pmdBuilder - - - - - edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - org.eclipse.xtext.ui.shared.xtextNature - net.sourceforge.pmd.eclipse.plugin.pmdNature - net.sf.eclipsecs.core.CheckstyleNature - edu.umd.cs.findbugs.plugin.eclipse.findbugsNature - - - - .checkstyle - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.checkstyle - - - .fbprefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.fbprefs - - - .pmd - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.pmd - - - .settings/edu.umd.cs.findbugs.plugin.eclipse.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/edu.umd.cs.findbugs.plugin.eclipse.prefs - - - .settings/org.eclipse.core.resources.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.core.resources.prefs - - - .settings/org.eclipse.core.runtime.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.core.runtime.prefs - - - .settings/org.eclipse.jdt.core.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.jdt.core.prefs - - - .settings/org.eclipse.jdt.ui.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.jdt.ui.prefs - - - .settings/org.eclipse.pde.core.prefs - 1 - PARENT-1-PROJECT_LOC/ddk-configuration/.settings/org.eclipse.pde.core.prefs - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/.settings/.gitignore b/com.avaloq.tools.ddk.xtext.valid/.settings/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/com.avaloq.tools.ddk.xtext.valid/META-INF/MANIFEST.MF b/com.avaloq.tools.ddk.xtext.valid/META-INF/MANIFEST.MF deleted file mode 100644 index a528c33a2b..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/META-INF/MANIFEST.MF +++ /dev/null @@ -1,34 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: com.avaloq.tools.ddk.xtext.valid -Bundle-SymbolicName: com.avaloq.tools.ddk.xtext.valid;singleton:=true -Bundle-Version: 17.3.1.qualifier -Bundle-Vendor: Avaloq Group AG -Bundle-RequiredExecutionEnvironment: JavaSE-21 -Bundle-ActivationPolicy: lazy -Require-Bundle: org.eclipse.xtext, - org.eclipse.xtext.xtext.generator;resolution:=optional, - org.apache.commons.logging;resolution:=optional, - org.eclipse.emf.codegen.ecore;resolution:=optional, - org.eclipse.emf.mwe.utils;resolution:=optional, - org.eclipse.emf.mwe2.launch;resolution:=optional, - com.ibm.icu;resolution:=optional, - org.eclipse.xtext.util, - org.eclipse.emf.ecore, - org.eclipse.emf.common, - org.antlr.runtime, - com.avaloq.tools.ddk.xtext, - com.avaloq.tools.ddk.xtext.generator;resolution:=optional, - org.eclipse.xtext.xbase.lib -Export-Package: com.avaloq.tools.ddk.xtext.valid, - com.avaloq.tools.ddk.xtext.valid.parser.antlr, - com.avaloq.tools.ddk.xtext.valid.parser.antlr.internal, - com.avaloq.tools.ddk.xtext.valid.scoping, - com.avaloq.tools.ddk.xtext.valid.services, - com.avaloq.tools.ddk.xtext.valid.valid, - com.avaloq.tools.ddk.xtext.valid.valid.impl, - com.avaloq.tools.ddk.xtext.valid.valid.util, - com.avaloq.tools.ddk.xtext.valid.validation, - com.avaloq.tools.ddk.xtext.valid.formatting, - com.avaloq.tools.ddk.xtext.valid.serializer -Automatic-Module-Name: com.avaloq.tools.ddk.xtext.valid diff --git a/com.avaloq.tools.ddk.xtext.valid/build.properties b/com.avaloq.tools.ddk.xtext.valid/build.properties deleted file mode 100644 index d69df83aa0..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/build.properties +++ /dev/null @@ -1,6 +0,0 @@ -source.. = src/,\ - src-gen/ -bin.includes = META-INF/,\ - .,\ - plugin.xml,\ - metamodel/ diff --git a/com.avaloq.tools.ddk.xtext.valid/metamodel/com/avaloq/tools/ddk/xtext/valid/Valid.ecore b/com.avaloq.tools.ddk.xtext.valid/metamodel/com/avaloq/tools/ddk/xtext/valid/Valid.ecore deleted file mode 100644 index fccceba95c..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/metamodel/com/avaloq/tools/ddk/xtext/valid/Valid.ecore +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/metamodel/com/avaloq/tools/ddk/xtext/valid/Valid.genmodel b/com.avaloq.tools.ddk.xtext.valid/metamodel/com/avaloq/tools/ddk/xtext/valid/Valid.genmodel deleted file mode 100644 index 884a444363..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/metamodel/com/avaloq/tools/ddk/xtext/valid/Valid.genmodel +++ /dev/null @@ -1,87 +0,0 @@ - - - Valid.ecore - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/plugin.properties b/com.avaloq.tools.ddk.xtext.valid/plugin.properties deleted file mode 100644 index 4e1c346125..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/plugin.properties +++ /dev/null @@ -1,4 +0,0 @@ -# - -pluginName = com.avaloq.tools.ddk.xtext.valid -providerName = Avaloq Group AG diff --git a/com.avaloq.tools.ddk.xtext.valid/plugin.xml b/com.avaloq.tools.ddk.xtext.valid/plugin.xml deleted file mode 100644 index edd95585da..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/plugin.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/plugin.xml_gen b/com.avaloq.tools.ddk.xtext.valid/plugin.xml_gen deleted file mode 100644 index 1a89b67e09..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/plugin.xml_gen +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/pom.xml b/com.avaloq.tools.ddk.xtext.valid/pom.xml deleted file mode 100644 index 37e67a350f..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/pom.xml +++ /dev/null @@ -1,13 +0,0 @@ - - 4.0.0 - - ddk-parent - com.avaloq.tools.ddk - 18.0.1-SNAPSHOT - ../ddk-parent - - 17.3.1-SNAPSHOT - - com.avaloq.tools.ddk.xtext.valid - eclipse-plugin - \ No newline at end of file diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/AbstractValidRuntimeModule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/AbstractValidRuntimeModule.java deleted file mode 100644 index 6aeb1b0043..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/AbstractValidRuntimeModule.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid; - -import com.avaloq.tools.ddk.xtext.valid.parser.antlr.ValidAntlrTokenFileProvider; -import com.avaloq.tools.ddk.xtext.valid.parser.antlr.ValidParser; -import com.avaloq.tools.ddk.xtext.valid.parser.antlr.internal.InternalValidLexer; -import com.avaloq.tools.ddk.xtext.valid.scoping.ValidScopeProvider; -import com.avaloq.tools.ddk.xtext.valid.serializer.ValidSemanticSequencer; -import com.avaloq.tools.ddk.xtext.valid.serializer.ValidSyntacticSequencer; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -import com.avaloq.tools.ddk.xtext.valid.validation.ValidValidator; -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.naming.IQualifiedNameProvider; -import org.eclipse.xtext.naming.SimpleNameProvider; -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.IUnorderedGroupHelper; -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.parser.antlr.UnorderedGroupHelper; -import org.eclipse.xtext.resource.IContainer; -import org.eclipse.xtext.resource.IResourceDescriptions; -import org.eclipse.xtext.resource.containers.IAllContainersState; -import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; -import org.eclipse.xtext.resource.containers.StateBasedContainerManager; -import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; -import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; -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; - -/** - * Manual modifications go to {@link ValidRuntimeModule}. - */ -@SuppressWarnings("all") -public abstract class AbstractValidRuntimeModule extends DefaultRuntimeModule { - - protected Properties properties = null; - - @Override - public void configure(Binder binder) { - properties = tryBindProperties(binder, "com/avaloq/tools/ddk/xtext/valid/Valid.properties"); - super.configure(binder); - } - - public void configureLanguageName(Binder binder) { - binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("com.avaloq.tools.ddk.xtext.valid.Valid"); - } - - 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("valid"); - } - - // 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 ValidGrammarAccess.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISemanticSequencer() { - return ValidSemanticSequencer.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 - public Class bindISyntacticSequencer() { - return ValidSyntacticSequencer.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 ValidParser.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 ValidAntlrTokenFileProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindLexer() { - return InternalValidLexer.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 provideInternalValidLexer() { - return LexerProvider.create(InternalValidLexer.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(InternalValidLexer.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 - public Class bindIUnorderedGroupHelper() { - return UnorderedGroupHelper.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 - @SingletonBinding(eager=true) - public Class bindValidValidator() { - return ValidValidator.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 - public Class bindIScopeProvider() { - return ValidScopeProvider.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.SimpleNamesFragment2 - public Class bindIQualifiedNameProvider() { - return SimpleNameProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindIContainer$Manager() { - return StateBasedContainerManager.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public Class bindIAllContainersState$Provider() { - return ResourceSetBasedAllContainersStateProvider.class; - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public void configureIResourceDescriptions(Binder binder) { - binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); - } - - // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 - public void configureIResourceDescriptionsPersisted(Binder binder) { - binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/Valid.xtextbin b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/Valid.xtextbin deleted file mode 100644 index d9edb03411..0000000000 Binary files a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/Valid.xtextbin and /dev/null differ diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/ValidStandaloneSetupGenerated.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/ValidStandaloneSetupGenerated.java deleted file mode 100644 index 1570a12d55..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/ValidStandaloneSetupGenerated.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid; - -import com.google.inject.Guice; -import com.google.inject.Injector; -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; - -@SuppressWarnings("all") -public class ValidStandaloneSetupGenerated implements ISetup { - - @Override - public Injector createInjectorAndDoEMFRegistration() { - TerminalsStandaloneSetup.doSetup(); - - Injector injector = createInjector(); - register(injector); - return injector; - } - - public Injector createInjector() { - return Guice.createInjector(new ValidRuntimeModule()); - } - - public void register(Injector injector) { - IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); - IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); - - Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("valid", resourceFactory); - IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("valid", serviceProvider); - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/ValidAntlrTokenFileProvider.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/ValidAntlrTokenFileProvider.java deleted file mode 100644 index c590115300..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/ValidAntlrTokenFileProvider.java +++ /dev/null @@ -1,16 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.parser.antlr; - -import java.io.InputStream; -import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; - -public class ValidAntlrTokenFileProvider implements IAntlrTokenFileProvider { - - @Override - public InputStream getAntlrTokenFile() { - ClassLoader classLoader = getClass().getClassLoader(); - return classLoader.getResourceAsStream("com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.tokens"); - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/ValidParser.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/ValidParser.java deleted file mode 100644 index 9a63611c50..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/ValidParser.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.parser.antlr; - -import com.avaloq.tools.ddk.xtext.valid.parser.antlr.internal.InternalValidParser; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -import com.google.inject.Inject; -import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; -import org.eclipse.xtext.parser.antlr.XtextTokenStream; - -public class ValidParser extends AbstractAntlrParser { - - @Inject - private ValidGrammarAccess grammarAccess; - - @Override - protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { - tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); - } - - - @Override - protected InternalValidParser createParser(XtextTokenStream stream) { - return new InternalValidParser(stream, getGrammarAccess()); - } - - @Override - protected String getDefaultRuleName() { - return "ValidModel"; - } - - public ValidGrammarAccess getGrammarAccess() { - return this.grammarAccess; - } - - public void setGrammarAccess(ValidGrammarAccess grammarAccess) { - this.grammarAccess = grammarAccess; - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.g b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.g deleted file mode 100644 index 1f7ad5c646..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.g +++ /dev/null @@ -1,1910 +0,0 @@ -/* - * generated by Xtext - */ -grammar InternalValid; - -options { - superClass=AbstractInternalAntlrParser; -} - -@lexer::header { -package com.avaloq.tools.ddk.xtext.valid.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 com.avaloq.tools.ddk.xtext.valid.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.emf.common.util.Enumerator; -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 com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; - -} - -@parser::members { - - private ValidGrammarAccess grammarAccess; - - public InternalValidParser(TokenStream input, ValidGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "ValidModel"; - } - - @Override - protected ValidGrammarAccess getGrammarAccess() { - return grammarAccess; - } - -} - -@rulecatch { - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } -} - -// Entry rule entryRuleValidModel -entryRuleValidModel returns [EObject current=null]: - { newCompositeNode(grammarAccess.getValidModelRule()); } - iv_ruleValidModel=ruleValidModel - { $current=$iv_ruleValidModel.current; } - EOF; - -// Rule ValidModel -ruleValidModel returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getValidModelAccess().getImportsImportParserRuleCall_0_0()); - } - lv_imports_0_0=ruleImport - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getValidModelRule()); - } - add( - $current, - "imports", - lv_imports_0_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.Import"); - afterParserOrEnumRuleCall(); - } - ) - )* - ( - ( - { - newCompositeNode(grammarAccess.getValidModelAccess().getCategoriesCategoryParserRuleCall_1_0()); - } - lv_categories_1_0=ruleCategory - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getValidModelRule()); - } - add( - $current, - "categories", - lv_categories_1_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.Category"); - afterParserOrEnumRuleCall(); - } - ) - )* - ) -; - -// Entry rule entryRuleImport -entryRuleImport returns [EObject current=null]: - { newCompositeNode(grammarAccess.getImportRule()); } - iv_ruleImport=ruleImport - { $current=$iv_ruleImport.current; } - EOF; - -// Rule Import -ruleImport returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='import' - { - newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getImportRule()); - } - } - otherlv_1=RULE_STRING - { - newLeafNode(otherlv_1, grammarAccess.getImportAccess().getPackageEPackageCrossReference_1_0()); - } - ) - ) - ) -; - -// Entry rule entryRuleCategory -entryRuleCategory returns [EObject current=null]: - { newCompositeNode(grammarAccess.getCategoryRule()); } - iv_ruleCategory=ruleCategory - { $current=$iv_ruleCategory.current; } - EOF; - -// Rule Category -ruleCategory returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - otherlv_0='category' - { - newLeafNode(otherlv_0, grammarAccess.getCategoryAccess().getCategoryKeyword_0()); - } - ( - ( - lv_name_1_0=RULE_ID - { - newLeafNode(lv_name_1_0, grammarAccess.getCategoryAccess().getNameIDTerminalRuleCall_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCategoryRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_2='label' - { - newLeafNode(otherlv_2, grammarAccess.getCategoryAccess().getLabelKeyword_2()); - } - ( - ( - lv_label_3_0=RULE_STRING - { - newLeafNode(lv_label_3_0, grammarAccess.getCategoryAccess().getLabelSTRINGTerminalRuleCall_3_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCategoryRule()); - } - setWithLastConsumed( - $current, - "label", - lv_label_3_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ( - otherlv_4='description' - { - newLeafNode(otherlv_4, grammarAccess.getCategoryAccess().getDescriptionKeyword_4_0()); - } - ( - ( - lv_description_5_0=RULE_STRING - { - newLeafNode(lv_description_5_0, grammarAccess.getCategoryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getCategoryRule()); - } - setWithLastConsumed( - $current, - "description", - lv_description_5_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - otherlv_6='{' - { - newLeafNode(otherlv_6, grammarAccess.getCategoryAccess().getLeftCurlyBracketKeyword_5()); - } - ( - ( - { - newCompositeNode(grammarAccess.getCategoryAccess().getRulesRuleParserRuleCall_6_0()); - } - lv_rules_7_0=ruleRule - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getCategoryRule()); - } - add( - $current, - "rules", - lv_rules_7_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.Rule"); - afterParserOrEnumRuleCall(); - } - ) - )* - otherlv_8='}' - { - newLeafNode(otherlv_8, grammarAccess.getCategoryAccess().getRightCurlyBracketKeyword_7()); - } - ) -; - -// Entry rule entryRuleRule -entryRuleRule returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRuleRule()); } - iv_ruleRule=ruleRule - { $current=$iv_ruleRule.current; } - EOF; - -// Rule Rule -ruleRule returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getRuleAccess().getNativeRuleParserRuleCall_0()); - } - this_NativeRule_0=ruleNativeRule - { - $current = $this_NativeRule_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getRuleAccess().getPredefinedRuleParserRuleCall_1()); - } - this_PredefinedRule_1=rulePredefinedRule - { - $current = $this_PredefinedRule_1.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRulePredefinedRule -entryRulePredefinedRule returns [EObject current=null]: - { newCompositeNode(grammarAccess.getPredefinedRuleRule()); } - iv_rulePredefinedRule=rulePredefinedRule - { $current=$iv_rulePredefinedRule.current; } - EOF; - -// Rule PredefinedRule -rulePredefinedRule returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - { - newCompositeNode(grammarAccess.getPredefinedRuleAccess().getSizeRuleParserRuleCall_0()); - } - this_SizeRule_0=ruleSizeRule - { - $current = $this_SizeRule_0.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getPredefinedRuleAccess().getRangeRuleParserRuleCall_1()); - } - this_RangeRule_1=ruleRangeRule - { - $current = $this_RangeRule_1.current; - afterParserOrEnumRuleCall(); - } - | - { - newCompositeNode(grammarAccess.getPredefinedRuleAccess().getUniqueRuleParserRuleCall_2()); - } - this_UniqueRule_2=ruleUniqueRule - { - $current = $this_UniqueRule_2.current; - afterParserOrEnumRuleCall(); - } - ) -; - -// Entry rule entryRuleNativeRule -entryRuleNativeRule returns [EObject current=null]: - { newCompositeNode(grammarAccess.getNativeRuleRule()); } - iv_ruleNativeRule=ruleNativeRule - { $current=$iv_ruleNativeRule.current; } - EOF; - -// Rule NativeRule -ruleNativeRule returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - getUnorderedGroupHelper().enter(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - } - ( - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0); - } - ({true}?=>(( - lv_optional_1_0='optional' - { - newLeafNode(lv_optional_1_0, grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed($current, "optional", lv_optional_1_0 != null, "optional"); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1); - } - ({true}?=>(( - { - newCompositeNode(grammarAccess.getNativeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - } - lv_checkKind_2_0=ruleCheckKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getNativeRuleRule()); - } - set( - $current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - } - ) - ) - )* - ) - ) - { - getUnorderedGroupHelper().leave(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - } - ) - ( - ( - { - newCompositeNode(grammarAccess.getNativeRuleAccess().getSeveritySeverityKindEnumRuleCall_1_0()); - } - lv_severity_3_0=ruleSeverityKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getNativeRuleRule()); - } - set( - $current, - "severity", - lv_severity_3_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - lv_name_4_0=RULE_ID - { - newLeafNode(lv_name_4_0, grammarAccess.getNativeRuleAccess().getNameIDTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_4_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_5='label' - { - newLeafNode(otherlv_5, grammarAccess.getNativeRuleAccess().getLabelKeyword_3()); - } - ( - ( - lv_label_6_0=RULE_STRING - { - newLeafNode(lv_label_6_0, grammarAccess.getNativeRuleAccess().getLabelSTRINGTerminalRuleCall_4_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - $current, - "label", - lv_label_6_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ( - otherlv_7='description' - { - newLeafNode(otherlv_7, grammarAccess.getNativeRuleAccess().getDescriptionKeyword_5_0()); - } - ( - ( - lv_description_8_0=RULE_STRING - { - newLeafNode(lv_description_8_0, grammarAccess.getNativeRuleAccess().getDescriptionSTRINGTerminalRuleCall_5_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - $current, - "description", - lv_description_8_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - otherlv_9='message' - { - newLeafNode(otherlv_9, grammarAccess.getNativeRuleAccess().getMessageKeyword_6()); - } - ( - ( - lv_message_10_0=RULE_STRING - { - newLeafNode(lv_message_10_0, grammarAccess.getNativeRuleAccess().getMessageSTRINGTerminalRuleCall_7_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - $current, - "message", - lv_message_10_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - otherlv_11='context' - { - newLeafNode(otherlv_11, grammarAccess.getNativeRuleAccess().getContextKeyword_8()); - } - otherlv_12='{' - { - newLeafNode(otherlv_12, grammarAccess.getNativeRuleAccess().getLeftCurlyBracketKeyword_9()); - } - ( - ( - { - newCompositeNode(grammarAccess.getNativeRuleAccess().getContextsNativeContextParserRuleCall_10_0()); - } - lv_contexts_13_0=ruleNativeContext - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getNativeRuleRule()); - } - add( - $current, - "contexts", - lv_contexts_13_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.NativeContext"); - afterParserOrEnumRuleCall(); - } - ) - )+ - otherlv_14='}' - { - newLeafNode(otherlv_14, grammarAccess.getNativeRuleAccess().getRightCurlyBracketKeyword_11()); - } - ) -; - -// Entry rule entryRuleSizeRule -entryRuleSizeRule returns [EObject current=null]: - { newCompositeNode(grammarAccess.getSizeRuleRule()); } - iv_ruleSizeRule=ruleSizeRule - { $current=$iv_ruleSizeRule.current; } - EOF; - -// Rule SizeRule -ruleSizeRule returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - getUnorderedGroupHelper().enter(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - } - ( - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0); - } - ({true}?=>(( - lv_optional_1_0='optional' - { - newLeafNode(lv_optional_1_0, grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed($current, "optional", lv_optional_1_0 != null, "optional"); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1); - } - ({true}?=>(( - { - newCompositeNode(grammarAccess.getSizeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - } - lv_checkKind_2_0=ruleCheckKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getSizeRuleRule()); - } - set( - $current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - } - ) - ) - )* - ) - ) - { - getUnorderedGroupHelper().leave(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - } - ) - otherlv_3='size' - { - newLeafNode(otherlv_3, grammarAccess.getSizeRuleAccess().getSizeKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getSizeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - } - lv_severity_4_0=ruleSeverityKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getSizeRuleRule()); - } - set( - $current, - "severity", - lv_severity_4_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - lv_name_5_0=RULE_ID - { - newLeafNode(lv_name_5_0, grammarAccess.getSizeRuleAccess().getNameIDTerminalRuleCall_3_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_5_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_6='label' - { - newLeafNode(otherlv_6, grammarAccess.getSizeRuleAccess().getLabelKeyword_4()); - } - ( - ( - lv_label_7_0=RULE_STRING - { - newLeafNode(lv_label_7_0, grammarAccess.getSizeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - $current, - "label", - lv_label_7_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ( - otherlv_8='description' - { - newLeafNode(otherlv_8, grammarAccess.getSizeRuleAccess().getDescriptionKeyword_6_0()); - } - ( - ( - lv_description_9_0=RULE_STRING - { - newLeafNode(lv_description_9_0, grammarAccess.getSizeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - $current, - "description", - lv_description_9_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - ( - otherlv_10='message' - { - newLeafNode(otherlv_10, grammarAccess.getSizeRuleAccess().getMessageKeyword_7_0()); - } - ( - ( - lv_message_11_0=RULE_STRING - { - newLeafNode(lv_message_11_0, grammarAccess.getSizeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - $current, - "message", - lv_message_11_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - otherlv_12='size' - { - newLeafNode(otherlv_12, grammarAccess.getSizeRuleAccess().getSizeKeyword_8()); - } - ( - ( - ( - lv_min_13_0=RULE_INT - { - newLeafNode(lv_min_13_0, grammarAccess.getSizeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - $current, - "min", - lv_min_13_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - otherlv_14='..' - { - newLeafNode(otherlv_14, grammarAccess.getSizeRuleAccess().getFullStopFullStopKeyword_9_1()); - } - )? - ( - ( - lv_max_15_0=RULE_INT - { - newLeafNode(lv_max_15_0, grammarAccess.getSizeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - $current, - "max", - lv_max_15_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - otherlv_16='context' - { - newLeafNode(otherlv_16, grammarAccess.getSizeRuleAccess().getContextKeyword_11()); - } - otherlv_17='{' - { - newLeafNode(otherlv_17, grammarAccess.getSizeRuleAccess().getLeftCurlyBracketKeyword_12()); - } - ( - ( - { - newCompositeNode(grammarAccess.getSizeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - } - lv_contexts_18_0=ruleSimpleContext - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getSizeRuleRule()); - } - add( - $current, - "contexts", - lv_contexts_18_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SimpleContext"); - afterParserOrEnumRuleCall(); - } - ) - )+ - otherlv_19='}' - { - newLeafNode(otherlv_19, grammarAccess.getSizeRuleAccess().getRightCurlyBracketKeyword_14()); - } - ) -; - -// Entry rule entryRuleRangeRule -entryRuleRangeRule returns [EObject current=null]: - { newCompositeNode(grammarAccess.getRangeRuleRule()); } - iv_ruleRangeRule=ruleRangeRule - { $current=$iv_ruleRangeRule.current; } - EOF; - -// Rule RangeRule -ruleRangeRule returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - getUnorderedGroupHelper().enter(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - } - ( - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0); - } - ({true}?=>(( - lv_optional_1_0='optional' - { - newLeafNode(lv_optional_1_0, grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed($current, "optional", lv_optional_1_0 != null, "optional"); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1); - } - ({true}?=>(( - { - newCompositeNode(grammarAccess.getRangeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - } - lv_checkKind_2_0=ruleCheckKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRangeRuleRule()); - } - set( - $current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - } - ) - ) - )* - ) - ) - { - getUnorderedGroupHelper().leave(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - } - ) - otherlv_3='range' - { - newLeafNode(otherlv_3, grammarAccess.getRangeRuleAccess().getRangeKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getRangeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - } - lv_severity_4_0=ruleSeverityKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRangeRuleRule()); - } - set( - $current, - "severity", - lv_severity_4_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - lv_name_5_0=RULE_ID - { - newLeafNode(lv_name_5_0, grammarAccess.getRangeRuleAccess().getNameIDTerminalRuleCall_3_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_5_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_6='label' - { - newLeafNode(otherlv_6, grammarAccess.getRangeRuleAccess().getLabelKeyword_4()); - } - ( - ( - lv_label_7_0=RULE_STRING - { - newLeafNode(lv_label_7_0, grammarAccess.getRangeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - $current, - "label", - lv_label_7_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ( - otherlv_8='description' - { - newLeafNode(otherlv_8, grammarAccess.getRangeRuleAccess().getDescriptionKeyword_6_0()); - } - ( - ( - lv_description_9_0=RULE_STRING - { - newLeafNode(lv_description_9_0, grammarAccess.getRangeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - $current, - "description", - lv_description_9_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - ( - otherlv_10='message' - { - newLeafNode(otherlv_10, grammarAccess.getRangeRuleAccess().getMessageKeyword_7_0()); - } - ( - ( - lv_message_11_0=RULE_STRING - { - newLeafNode(lv_message_11_0, grammarAccess.getRangeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - $current, - "message", - lv_message_11_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - otherlv_12='range' - { - newLeafNode(otherlv_12, grammarAccess.getRangeRuleAccess().getRangeKeyword_8()); - } - ( - ( - ( - lv_min_13_0=RULE_INT - { - newLeafNode(lv_min_13_0, grammarAccess.getRangeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - $current, - "min", - lv_min_13_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - otherlv_14='..' - { - newLeafNode(otherlv_14, grammarAccess.getRangeRuleAccess().getFullStopFullStopKeyword_9_1()); - } - )? - ( - ( - lv_max_15_0=RULE_INT - { - newLeafNode(lv_max_15_0, grammarAccess.getRangeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - $current, - "max", - lv_max_15_0, - "org.eclipse.xtext.common.Terminals.INT"); - } - ) - ) - otherlv_16='context' - { - newLeafNode(otherlv_16, grammarAccess.getRangeRuleAccess().getContextKeyword_11()); - } - otherlv_17='{' - { - newLeafNode(otherlv_17, grammarAccess.getRangeRuleAccess().getLeftCurlyBracketKeyword_12()); - } - ( - ( - { - newCompositeNode(grammarAccess.getRangeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - } - lv_contexts_18_0=ruleSimpleContext - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getRangeRuleRule()); - } - add( - $current, - "contexts", - lv_contexts_18_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SimpleContext"); - afterParserOrEnumRuleCall(); - } - ) - )+ - otherlv_19='}' - { - newLeafNode(otherlv_19, grammarAccess.getRangeRuleAccess().getRightCurlyBracketKeyword_14()); - } - ) -; - -// Entry rule entryRuleUniqueRule -entryRuleUniqueRule returns [EObject current=null]: - { newCompositeNode(grammarAccess.getUniqueRuleRule()); } - iv_ruleUniqueRule=ruleUniqueRule - { $current=$iv_ruleUniqueRule.current; } - EOF; - -// Rule UniqueRule -ruleUniqueRule returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - getUnorderedGroupHelper().enter(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - } - ( - ( - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0); - } - ({true}?=>(( - lv_optional_1_0='optional' - { - newLeafNode(lv_optional_1_0, grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed($current, "optional", lv_optional_1_0 != null, "optional"); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - } - ) - )| - ( - {getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1)}?=>( - { - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1); - } - ({true}?=>(( - { - newCompositeNode(grammarAccess.getUniqueRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - } - lv_checkKind_2_0=ruleCheckKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getUniqueRuleRule()); - } - set( - $current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - } - ) - )) - { - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - } - ) - ) - )* - ) - ) - { - getUnorderedGroupHelper().leave(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - } - ) - otherlv_3='unique' - { - newLeafNode(otherlv_3, grammarAccess.getUniqueRuleAccess().getUniqueKeyword_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getUniqueRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - } - lv_severity_4_0=ruleSeverityKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getUniqueRuleRule()); - } - set( - $current, - "severity", - lv_severity_4_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - } - ) - ) - ( - ( - lv_name_5_0=RULE_ID - { - newLeafNode(lv_name_5_0, grammarAccess.getUniqueRuleAccess().getNameIDTerminalRuleCall_3_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_5_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_6='label' - { - newLeafNode(otherlv_6, grammarAccess.getUniqueRuleAccess().getLabelKeyword_4()); - } - ( - ( - lv_label_7_0=RULE_STRING - { - newLeafNode(lv_label_7_0, grammarAccess.getUniqueRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - $current, - "label", - lv_label_7_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - ( - otherlv_8='description' - { - newLeafNode(otherlv_8, grammarAccess.getUniqueRuleAccess().getDescriptionKeyword_6_0()); - } - ( - ( - lv_description_9_0=RULE_STRING - { - newLeafNode(lv_description_9_0, grammarAccess.getUniqueRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - $current, - "description", - lv_description_9_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - ( - otherlv_10='message' - { - newLeafNode(otherlv_10, grammarAccess.getUniqueRuleAccess().getMessageKeyword_7_0()); - } - ( - ( - lv_message_11_0=RULE_STRING - { - newLeafNode(lv_message_11_0, grammarAccess.getUniqueRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - $current, - "message", - lv_message_11_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - )? - otherlv_12='context' - { - newLeafNode(otherlv_12, grammarAccess.getUniqueRuleAccess().getContextKeyword_8()); - } - otherlv_13='{' - { - newLeafNode(otherlv_13, grammarAccess.getUniqueRuleAccess().getLeftCurlyBracketKeyword_9()); - } - ( - ( - { - newCompositeNode(grammarAccess.getUniqueRuleAccess().getContextsDuplicateContextParserRuleCall_10_0()); - } - lv_contexts_14_0=ruleDuplicateContext - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getUniqueRuleRule()); - } - add( - $current, - "contexts", - lv_contexts_14_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.DuplicateContext"); - afterParserOrEnumRuleCall(); - } - ) - )+ - otherlv_15='}' - { - newLeafNode(otherlv_15, grammarAccess.getUniqueRuleAccess().getRightCurlyBracketKeyword_11()); - } - ) -; - -// Entry rule entryRuleSimpleContext -entryRuleSimpleContext returns [EObject current=null]: - { newCompositeNode(grammarAccess.getSimpleContextRule()); } - iv_ruleSimpleContext=ruleSimpleContext - { $current=$iv_ruleSimpleContext.current; } - EOF; - -// Rule SimpleContext -ruleSimpleContext returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSimpleContextRule()); - } - } - { - newCompositeNode(grammarAccess.getSimpleContextAccess().getContextTypeEClassCrossReference_0_0()); - } - ruleQualifiedID - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_1='#' - { - newLeafNode(otherlv_1, grammarAccess.getSimpleContextAccess().getNumberSignKeyword_1_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getSimpleContextRule()); - } - } - otherlv_2=RULE_ID - { - newLeafNode(otherlv_2, grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - } - ) - ) - )? - otherlv_3=';' - { - newLeafNode(otherlv_3, grammarAccess.getSimpleContextAccess().getSemicolonKeyword_2()); - } - ) -; - -// Entry rule entryRuleDuplicateContext -entryRuleDuplicateContext returns [EObject current=null]: - { newCompositeNode(grammarAccess.getDuplicateContextRule()); } - iv_ruleDuplicateContext=ruleDuplicateContext - { $current=$iv_ruleDuplicateContext.current; } - EOF; - -// Rule DuplicateContext -ruleDuplicateContext returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - } - { - newCompositeNode(grammarAccess.getDuplicateContextAccess().getContextTypeEClassCrossReference_0_0()); - } - ruleQualifiedID - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_1='#' - { - newLeafNode(otherlv_1, grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_1_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - } - otherlv_2=RULE_ID - { - newLeafNode(otherlv_2, grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - } - ) - ) - )? - otherlv_3='marker' - { - newLeafNode(otherlv_3, grammarAccess.getDuplicateContextAccess().getMarkerKeyword_2()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - } - { - newCompositeNode(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassCrossReference_3_0()); - } - ruleQualifiedID - { - afterParserOrEnumRuleCall(); - } - ) - ) - otherlv_5='#' - { - newLeafNode(otherlv_5, grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_4()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - } - otherlv_6=RULE_ID - { - newLeafNode(otherlv_6, grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_5_0()); - } - ) - )? - otherlv_7=';' - { - newLeafNode(otherlv_7, grammarAccess.getDuplicateContextAccess().getSemicolonKeyword_6()); - } - ) -; - -// Entry rule entryRuleNativeContext -entryRuleNativeContext returns [EObject current=null]: - { newCompositeNode(grammarAccess.getNativeContextRule()); } - iv_ruleNativeContext=ruleNativeContext - { $current=$iv_ruleNativeContext.current; } - EOF; - -// Rule NativeContext -ruleNativeContext returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeContextRule()); - } - } - { - newCompositeNode(grammarAccess.getNativeContextAccess().getContextTypeEClassCrossReference_0_0()); - } - ruleQualifiedID - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_1='#' - { - newLeafNode(otherlv_1, grammarAccess.getNativeContextAccess().getNumberSignKeyword_1_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeContextRule()); - } - } - otherlv_2=RULE_ID - { - newLeafNode(otherlv_2, grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - } - ) - ) - )? - ( - ( - ( - lv_named_3_0='as' - { - newLeafNode(lv_named_3_0, grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeContextRule()); - } - setWithLastConsumed($current, "named", lv_named_3_0 != null, "as"); - } - ) - ) - ( - ( - lv_givenName_4_0=RULE_ID - { - newLeafNode(lv_givenName_4_0, grammarAccess.getNativeContextAccess().getGivenNameIDTerminalRuleCall_2_1_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeContextRule()); - } - setWithLastConsumed( - $current, - "givenName", - lv_givenName_4_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - )? - ( - otherlv_5='marker' - { - newLeafNode(otherlv_5, grammarAccess.getNativeContextAccess().getMarkerKeyword_3_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeContextRule()); - } - } - { - newCompositeNode(grammarAccess.getNativeContextAccess().getMarkerTypeEClassCrossReference_3_1_0()); - } - ruleQualifiedID - { - afterParserOrEnumRuleCall(); - } - ) - ) - ( - otherlv_7='#' - { - newLeafNode(otherlv_7, grammarAccess.getNativeContextAccess().getNumberSignKeyword_3_2_0()); - } - ( - ( - { - if ($current==null) { - $current = createModelElement(grammarAccess.getNativeContextRule()); - } - } - otherlv_8=RULE_ID - { - newLeafNode(otherlv_8, grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0()); - } - ) - ) - ) - )? - ( - otherlv_9='quickfixes' - { - newLeafNode(otherlv_9, grammarAccess.getNativeContextAccess().getQuickfixesKeyword_4_0()); - } - otherlv_10='{' - { - newLeafNode(otherlv_10, grammarAccess.getNativeContextAccess().getLeftCurlyBracketKeyword_4_1()); - } - ( - ( - { - newCompositeNode(grammarAccess.getNativeContextAccess().getQuickFixesQuickFixParserRuleCall_4_2_0()); - } - lv_quickFixes_11_0=ruleQuickFix - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getNativeContextRule()); - } - add( - $current, - "quickFixes", - lv_quickFixes_11_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.QuickFix"); - afterParserOrEnumRuleCall(); - } - ) - )+ - otherlv_12='}' - { - newLeafNode(otherlv_12, grammarAccess.getNativeContextAccess().getRightCurlyBracketKeyword_4_3()); - } - )? - otherlv_13=';' - { - newLeafNode(otherlv_13, grammarAccess.getNativeContextAccess().getSemicolonKeyword_5()); - } - ) -; - -// Entry rule entryRuleQuickFix -entryRuleQuickFix returns [EObject current=null]: - { newCompositeNode(grammarAccess.getQuickFixRule()); } - iv_ruleQuickFix=ruleQuickFix - { $current=$iv_ruleQuickFix.current; } - EOF; - -// Rule QuickFix -ruleQuickFix returns [EObject current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - ( - { - newCompositeNode(grammarAccess.getQuickFixAccess().getQuickFixKindQuickFixKindEnumRuleCall_0_0()); - } - lv_quickFixKind_0_0=ruleQuickFixKind - { - if ($current==null) { - $current = createModelElementForParent(grammarAccess.getQuickFixRule()); - } - set( - $current, - "quickFixKind", - lv_quickFixKind_0_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.QuickFixKind"); - afterParserOrEnumRuleCall(); - } - ) - )? - otherlv_1='fix' - { - newLeafNode(otherlv_1, grammarAccess.getQuickFixAccess().getFixKeyword_1()); - } - ( - ( - lv_name_2_0=RULE_ID - { - newLeafNode(lv_name_2_0, grammarAccess.getQuickFixAccess().getNameIDTerminalRuleCall_2_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getQuickFixRule()); - } - setWithLastConsumed( - $current, - "name", - lv_name_2_0, - "org.eclipse.xtext.common.Terminals.ID"); - } - ) - ) - otherlv_3='label' - { - newLeafNode(otherlv_3, grammarAccess.getQuickFixAccess().getLabelKeyword_3()); - } - ( - ( - lv_label_4_0=RULE_STRING - { - newLeafNode(lv_label_4_0, grammarAccess.getQuickFixAccess().getLabelSTRINGTerminalRuleCall_4_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getQuickFixRule()); - } - setWithLastConsumed( - $current, - "label", - lv_label_4_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - otherlv_5='message' - { - newLeafNode(otherlv_5, grammarAccess.getQuickFixAccess().getMessageKeyword_5()); - } - ( - ( - lv_message_6_0=RULE_STRING - { - newLeafNode(lv_message_6_0, grammarAccess.getQuickFixAccess().getMessageSTRINGTerminalRuleCall_6_0()); - } - { - if ($current==null) { - $current = createModelElement(grammarAccess.getQuickFixRule()); - } - setWithLastConsumed( - $current, - "message", - lv_message_6_0, - "org.eclipse.xtext.common.Terminals.STRING"); - } - ) - ) - otherlv_7=';' - { - newLeafNode(otherlv_7, grammarAccess.getQuickFixAccess().getSemicolonKeyword_7()); - } - ) -; - -// Entry rule entryRuleQualifiedID -entryRuleQualifiedID returns [String current=null]: - { newCompositeNode(grammarAccess.getQualifiedIDRule()); } - iv_ruleQualifiedID=ruleQualifiedID - { $current=$iv_ruleQualifiedID.current.getText(); } - EOF; - -// Rule QualifiedID -ruleQualifiedID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - this_ID_0=RULE_ID - { - $current.merge(this_ID_0); - } - { - newLeafNode(this_ID_0, grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_0_0()); - } - kw='::' - { - $current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedIDAccess().getColonColonKeyword_0_1()); - } - )* - this_ID_2=RULE_ID - { - $current.merge(this_ID_2); - } - { - newLeafNode(this_ID_2, grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_1()); - } - ) -; - -// Rule CheckKind -ruleCheckKind returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='fast' - { - $current = grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='normal' - { - $current = grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1()); - } - ) - | - ( - enumLiteral_2='expensive' - { - $current = grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2()); - } - ) - ) -; - -// Rule SeverityKind -ruleSeverityKind returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='error' - { - $current = grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='warning' - { - $current = grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1()); - } - ) - ) -; - -// Rule QuickFixKind -ruleQuickFixKind returns [Enumerator current=null] -@init { - enterRule(); -} -@after { - leaveRule(); -}: - ( - ( - enumLiteral_0='semantic' - { - $current = grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0()); - } - ) - | - ( - enumLiteral_1='textual' - { - $current = grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1()); - } - ) - ) -; - -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/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.tokens b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.tokens deleted file mode 100644 index e2ba11b5ae..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValid.tokens +++ /dev/null @@ -1,61 +0,0 @@ -'#'=24 -'..'=21 -'::'=30 -';'=25 -'as'=27 -'category'=12 -'context'=19 -'description'=14 -'error'=34 -'expensive'=33 -'fast'=31 -'fix'=29 -'import'=11 -'label'=13 -'marker'=26 -'message'=18 -'normal'=32 -'optional'=17 -'quickfixes'=28 -'range'=22 -'semantic'=36 -'size'=20 -'textual'=37 -'unique'=23 -'warning'=35 -'{'=15 -'}'=16 -RULE_ANY_OTHER=10 -RULE_ID=5 -RULE_INT=6 -RULE_ML_COMMENT=7 -RULE_SL_COMMENT=8 -RULE_STRING=4 -RULE_WS=9 -T__11=11 -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 -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 diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValidLexer.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValidLexer.java deleted file mode 100644 index 8838e4b9b4..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValidLexer.java +++ /dev/null @@ -1,1698 +0,0 @@ -package com.avaloq.tools.ddk.xtext.valid.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 InternalValidLexer extends Lexer { - public static final int RULE_STRING=4; - public static final int RULE_SL_COMMENT=8; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__37=37; - 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__11=11; - public static final int T__33=33; - public static final int T__12=12; - public static final int T__34=34; - public static final int T__13=13; - public static final int T__35=35; - public static final int T__14=14; - public static final int T__36=36; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_ID=5; - public static final int RULE_WS=9; - public static final int RULE_ANY_OTHER=10; - 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 RULE_ML_COMMENT=7; - public static final int T__23=23; - public static final int T__24=24; - public static final int T__25=25; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - public InternalValidLexer() {;} - public InternalValidLexer(CharStream input) { - this(input, new RecognizerSharedState()); - } - public InternalValidLexer(CharStream input, RecognizerSharedState state) { - super(input,state); - - } - public String getGrammarFileName() { return "InternalValid.g"; } - - // $ANTLR start "T__11" - public final void mT__11() throws RecognitionException { - try { - int _type = T__11; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalValid.g:11:7: ( 'import' ) - // InternalValid.g:11:9: 'import' - { - match("import"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__11" - - // $ANTLR start "T__12" - public final void mT__12() throws RecognitionException { - try { - int _type = T__12; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalValid.g:12:7: ( 'category' ) - // InternalValid.g:12:9: 'category' - { - match("category"); - - - } - - 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; - // InternalValid.g:13:7: ( 'label' ) - // InternalValid.g:13:9: 'label' - { - match("label"); - - - } - - 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; - // InternalValid.g:14:7: ( 'description' ) - // InternalValid.g:14:9: 'description' - { - match("description"); - - - } - - 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; - // InternalValid.g:15:7: ( '{' ) - // InternalValid.g:15: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; - // InternalValid.g:16:7: ( '}' ) - // InternalValid.g:16: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; - // InternalValid.g:17:7: ( 'optional' ) - // InternalValid.g:17:9: 'optional' - { - match("optional"); - - - } - - 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; - // InternalValid.g:18:7: ( 'message' ) - // InternalValid.g:18:9: 'message' - { - match("message"); - - - } - - 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; - // InternalValid.g:19:7: ( 'context' ) - // InternalValid.g:19:9: 'context' - { - match("context"); - - - } - - 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; - // InternalValid.g:20:7: ( 'size' ) - // InternalValid.g:20:9: 'size' - { - match("size"); - - - } - - 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; - // InternalValid.g:21:7: ( '..' ) - // InternalValid.g:21: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; - // InternalValid.g:22:7: ( 'range' ) - // InternalValid.g:22:9: 'range' - { - match("range"); - - - } - - 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; - // InternalValid.g:23:7: ( 'unique' ) - // InternalValid.g:23:9: 'unique' - { - match("unique"); - - - } - - 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; - // InternalValid.g:24:7: ( '#' ) - // InternalValid.g:24: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; - // InternalValid.g:25:7: ( ';' ) - // InternalValid.g:25: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; - // InternalValid.g:26:7: ( 'marker' ) - // InternalValid.g:26:9: 'marker' - { - match("marker"); - - - } - - 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; - // InternalValid.g:27:7: ( 'as' ) - // InternalValid.g:27:9: 'as' - { - match("as"); - - - } - - 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; - // InternalValid.g:28:7: ( 'quickfixes' ) - // InternalValid.g:28:9: 'quickfixes' - { - match("quickfixes"); - - - } - - 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; - // InternalValid.g:29:7: ( 'fix' ) - // InternalValid.g:29:9: 'fix' - { - match("fix"); - - - } - - 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; - // InternalValid.g:30:7: ( '::' ) - // InternalValid.g:30: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; - // InternalValid.g:31:7: ( 'fast' ) - // InternalValid.g:31:9: 'fast' - { - match("fast"); - - - } - - 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; - // InternalValid.g:32:7: ( 'normal' ) - // InternalValid.g:32:9: 'normal' - { - match("normal"); - - - } - - 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; - // InternalValid.g:33:7: ( 'expensive' ) - // InternalValid.g:33:9: 'expensive' - { - match("expensive"); - - - } - - 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; - // InternalValid.g:34:7: ( 'error' ) - // InternalValid.g:34:9: 'error' - { - match("error"); - - - } - - 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; - // InternalValid.g:35:7: ( 'warning' ) - // InternalValid.g:35:9: 'warning' - { - match("warning"); - - - } - - 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; - // InternalValid.g:36:7: ( 'semantic' ) - // InternalValid.g:36:9: 'semantic' - { - match("semantic"); - - - } - - 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; - // InternalValid.g:37:7: ( 'textual' ) - // InternalValid.g:37:9: 'textual' - { - match("textual"); - - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "T__37" - - // $ANTLR start "RULE_ID" - public final void mRULE_ID() throws RecognitionException { - try { - int _type = RULE_ID; - int _channel = DEFAULT_TOKEN_CHANNEL; - // InternalValid.g:1898:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) - // InternalValid.g:1898:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - { - // InternalValid.g:1898:11: ( '^' )? - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0=='^') ) { - alt1=1; - } - switch (alt1) { - case 1 : - // InternalValid.g:1898: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;} - - // InternalValid.g:1898:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalValid.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 loop2; - } - } 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; - // InternalValid.g:1900:10: ( ( '0' .. '9' )+ ) - // InternalValid.g:1900:12: ( '0' .. '9' )+ - { - // InternalValid.g:1900:12: ( '0' .. '9' )+ - int cnt3=0; - loop3: - do { - int alt3=2; - int LA3_0 = input.LA(1); - - if ( ((LA3_0>='0' && LA3_0<='9')) ) { - alt3=1; - } - - - switch (alt3) { - case 1 : - // InternalValid.g:1900:13: '0' .. '9' - { - matchRange('0','9'); - - } - break; - - default : - if ( cnt3 >= 1 ) break loop3; - EarlyExitException eee = - new EarlyExitException(3, input); - throw eee; - } - cnt3++; - } 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; - // InternalValid.g:1902:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) - // InternalValid.g:1902:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - { - // InternalValid.g:1902:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) - int alt6=2; - int LA6_0 = input.LA(1); - - if ( (LA6_0=='\"') ) { - alt6=1; - } - else if ( (LA6_0=='\'') ) { - alt6=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 6, 0, input); - - throw nvae; - } - switch (alt6) { - case 1 : - // InternalValid.g:1902:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' - { - match('\"'); - // InternalValid.g:1902:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* - loop4: - do { - int alt4=3; - int LA4_0 = input.LA(1); - - if ( (LA4_0=='\\') ) { - alt4=1; - } - else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { - alt4=2; - } - - - switch (alt4) { - case 1 : - // InternalValid.g:1902:21: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalValid.g:1902: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 loop4; - } - } while (true); - - match('\"'); - - } - break; - case 2 : - // InternalValid.g:1902:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' - { - match('\''); - // InternalValid.g:1902:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* - 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 : - // InternalValid.g:1902:54: '\\\\' . - { - match('\\'); - matchAny(); - - } - break; - case 2 : - // InternalValid.g:1902: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 loop5; - } - } 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; - // InternalValid.g:1904:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) - // InternalValid.g:1904:19: '/*' ( options {greedy=false; } : . )* '*/' - { - match("/*"); - - // InternalValid.g:1904:24: ( options {greedy=false; } : . )* - loop7: - do { - int alt7=2; - int LA7_0 = input.LA(1); - - if ( (LA7_0=='*') ) { - int LA7_1 = input.LA(2); - - if ( (LA7_1=='/') ) { - alt7=2; - } - else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { - alt7=1; - } - - - } - else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { - alt7=1; - } - - - switch (alt7) { - case 1 : - // InternalValid.g:1904:52: . - { - matchAny(); - - } - break; - - default : - break loop7; - } - } 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; - // InternalValid.g:1906:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) - // InternalValid.g:1906:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? - { - match("//"); - - // InternalValid.g:1906:24: (~ ( ( '\\n' | '\\r' ) ) )* - loop8: - do { - int alt8=2; - int LA8_0 = input.LA(1); - - if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { - alt8=1; - } - - - switch (alt8) { - case 1 : - // InternalValid.g:1906: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 loop8; - } - } while (true); - - // InternalValid.g:1906:40: ( ( '\\r' )? '\\n' )? - int alt10=2; - int LA10_0 = input.LA(1); - - if ( (LA10_0=='\n'||LA10_0=='\r') ) { - alt10=1; - } - switch (alt10) { - case 1 : - // InternalValid.g:1906:41: ( '\\r' )? '\\n' - { - // InternalValid.g:1906:41: ( '\\r' )? - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0=='\r') ) { - alt9=1; - } - switch (alt9) { - case 1 : - // InternalValid.g:1906: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; - // InternalValid.g:1908:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) - // InternalValid.g:1908:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - { - // InternalValid.g:1908:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ - int cnt11=0; - loop11: - do { - int alt11=2; - int LA11_0 = input.LA(1); - - if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { - alt11=1; - } - - - switch (alt11) { - case 1 : - // InternalValid.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 ( cnt11 >= 1 ) break loop11; - EarlyExitException eee = - new EarlyExitException(11, input); - throw eee; - } - cnt11++; - } 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; - // InternalValid.g:1910:16: ( . ) - // InternalValid.g:1910:18: . - { - matchAny(); - - } - - state.type = _type; - state.channel = _channel; - } - finally { - } - } - // $ANTLR end "RULE_ANY_OTHER" - - public void mTokens() throws RecognitionException { - // InternalValid.g:1:8: ( T__11 | T__12 | 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 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) - int alt12=34; - alt12 = dfa12.predict(input); - switch (alt12) { - case 1 : - // InternalValid.g:1:10: T__11 - { - mT__11(); - - } - break; - case 2 : - // InternalValid.g:1:16: T__12 - { - mT__12(); - - } - break; - case 3 : - // InternalValid.g:1:22: T__13 - { - mT__13(); - - } - break; - case 4 : - // InternalValid.g:1:28: T__14 - { - mT__14(); - - } - break; - case 5 : - // InternalValid.g:1:34: T__15 - { - mT__15(); - - } - break; - case 6 : - // InternalValid.g:1:40: T__16 - { - mT__16(); - - } - break; - case 7 : - // InternalValid.g:1:46: T__17 - { - mT__17(); - - } - break; - case 8 : - // InternalValid.g:1:52: T__18 - { - mT__18(); - - } - break; - case 9 : - // InternalValid.g:1:58: T__19 - { - mT__19(); - - } - break; - case 10 : - // InternalValid.g:1:64: T__20 - { - mT__20(); - - } - break; - case 11 : - // InternalValid.g:1:70: T__21 - { - mT__21(); - - } - break; - case 12 : - // InternalValid.g:1:76: T__22 - { - mT__22(); - - } - break; - case 13 : - // InternalValid.g:1:82: T__23 - { - mT__23(); - - } - break; - case 14 : - // InternalValid.g:1:88: T__24 - { - mT__24(); - - } - break; - case 15 : - // InternalValid.g:1:94: T__25 - { - mT__25(); - - } - break; - case 16 : - // InternalValid.g:1:100: T__26 - { - mT__26(); - - } - break; - case 17 : - // InternalValid.g:1:106: T__27 - { - mT__27(); - - } - break; - case 18 : - // InternalValid.g:1:112: T__28 - { - mT__28(); - - } - break; - case 19 : - // InternalValid.g:1:118: T__29 - { - mT__29(); - - } - break; - case 20 : - // InternalValid.g:1:124: T__30 - { - mT__30(); - - } - break; - case 21 : - // InternalValid.g:1:130: T__31 - { - mT__31(); - - } - break; - case 22 : - // InternalValid.g:1:136: T__32 - { - mT__32(); - - } - break; - case 23 : - // InternalValid.g:1:142: T__33 - { - mT__33(); - - } - break; - case 24 : - // InternalValid.g:1:148: T__34 - { - mT__34(); - - } - break; - case 25 : - // InternalValid.g:1:154: T__35 - { - mT__35(); - - } - break; - case 26 : - // InternalValid.g:1:160: T__36 - { - mT__36(); - - } - break; - case 27 : - // InternalValid.g:1:166: T__37 - { - mT__37(); - - } - break; - case 28 : - // InternalValid.g:1:172: RULE_ID - { - mRULE_ID(); - - } - break; - case 29 : - // InternalValid.g:1:180: RULE_INT - { - mRULE_INT(); - - } - break; - case 30 : - // InternalValid.g:1:189: RULE_STRING - { - mRULE_STRING(); - - } - break; - case 31 : - // InternalValid.g:1:201: RULE_ML_COMMENT - { - mRULE_ML_COMMENT(); - - } - break; - case 32 : - // InternalValid.g:1:217: RULE_SL_COMMENT - { - mRULE_SL_COMMENT(); - - } - break; - case 33 : - // InternalValid.g:1:233: RULE_WS - { - mRULE_WS(); - - } - break; - case 34 : - // InternalValid.g:1:241: RULE_ANY_OTHER - { - mRULE_ANY_OTHER(); - - } - break; - - } - - } - - - protected DFA12 dfa12 = new DFA12(this); - static final String DFA12_eotS = - "\1\uffff\4\40\2\uffff\3\40\1\36\2\40\2\uffff\3\40\1\36\4\40\1\36\2\uffff\3\36\2\uffff\1\40\1\uffff\4\40\2\uffff\5\40\1\uffff\2\40\2\uffff\1\114\3\40\1\uffff\5\40\5\uffff\14\40\1\uffff\1\40\1\142\16\40\1\161\4\40\1\uffff\1\166\10\40\1\177\4\40\1\uffff\1\40\1\u0085\2\40\1\uffff\2\40\1\u008a\2\40\1\u008d\2\40\1\uffff\3\40\1\u0093\1\40\1\uffff\1\u0095\1\40\1\u0097\1\40\1\uffff\2\40\1\uffff\1\40\1\u009c\2\40\1\u009f\1\uffff\1\40\1\uffff\1\40\1\uffff\1\40\1\u00a3\1\u00a4\1\u00a5\1\uffff\1\40\1\u00a7\1\uffff\1\u00a8\2\40\3\uffff\1\40\2\uffff\1\40\1\u00ad\1\40\1\u00af\1\uffff\1\u00b0\2\uffff"; - static final String DFA12_eofS = - "\u00b1\uffff"; - static final String DFA12_minS = - "\1\0\1\155\2\141\1\145\2\uffff\1\160\1\141\1\145\1\56\1\141\1\156\2\uffff\1\163\1\165\1\141\1\72\1\157\1\162\1\141\1\145\1\101\2\uffff\2\0\1\52\2\uffff\1\160\1\uffff\1\164\1\156\1\142\1\163\2\uffff\1\164\1\163\1\162\1\172\1\155\1\uffff\1\156\1\151\2\uffff\1\60\1\151\1\170\1\163\1\uffff\1\162\1\160\2\162\1\170\5\uffff\1\157\1\145\1\164\1\145\1\143\1\151\1\163\1\153\1\145\1\141\1\147\1\161\1\uffff\1\143\1\60\1\164\1\155\1\145\1\157\1\156\1\164\1\162\1\147\1\145\1\154\1\162\1\157\1\141\1\145\1\60\1\156\1\145\1\165\1\153\1\uffff\1\60\1\141\1\156\1\162\1\151\1\165\1\164\1\157\1\170\1\60\1\151\1\156\1\147\1\162\1\uffff\1\164\1\60\1\145\1\146\1\uffff\1\154\1\163\1\60\1\156\1\141\1\60\1\162\1\164\1\uffff\1\160\1\141\1\145\1\60\1\151\1\uffff\1\60\1\151\1\60\1\151\1\uffff\1\147\1\154\1\uffff\1\171\1\60\1\164\1\154\1\60\1\uffff\1\143\1\uffff\1\170\1\uffff\1\166\3\60\1\uffff\1\151\1\60\1\uffff\1\60\2\145\3\uffff\1\157\2\uffff\1\163\1\60\1\156\1\60\1\uffff\1\60\2\uffff"; - static final String DFA12_maxS = - "\1\uffff\1\155\1\157\1\141\1\145\2\uffff\1\160\1\145\1\151\1\56\1\141\1\156\2\uffff\1\163\1\165\1\151\1\72\1\157\1\170\1\141\1\145\1\172\2\uffff\2\uffff\1\57\2\uffff\1\160\1\uffff\1\164\1\156\1\142\1\163\2\uffff\1\164\1\163\1\162\1\172\1\155\1\uffff\1\156\1\151\2\uffff\1\172\1\151\1\170\1\163\1\uffff\1\162\1\160\2\162\1\170\5\uffff\1\157\1\145\1\164\1\145\1\143\1\151\1\163\1\153\1\145\1\141\1\147\1\161\1\uffff\1\143\1\172\1\164\1\155\1\145\1\157\1\156\1\164\1\162\1\147\1\145\1\154\1\162\1\157\1\141\1\145\1\172\1\156\1\145\1\165\1\153\1\uffff\1\172\1\141\1\156\1\162\1\151\1\165\1\164\1\157\1\170\1\172\1\151\1\156\1\147\1\162\1\uffff\1\164\1\172\1\145\1\146\1\uffff\1\154\1\163\1\172\1\156\1\141\1\172\1\162\1\164\1\uffff\1\160\1\141\1\145\1\172\1\151\1\uffff\1\172\1\151\1\172\1\151\1\uffff\1\147\1\154\1\uffff\1\171\1\172\1\164\1\154\1\172\1\uffff\1\143\1\uffff\1\170\1\uffff\1\166\3\172\1\uffff\1\151\1\172\1\uffff\1\172\2\145\3\uffff\1\157\2\uffff\1\163\1\172\1\156\1\172\1\uffff\1\172\2\uffff"; - static final String DFA12_acceptS = - "\5\uffff\1\5\1\6\6\uffff\1\16\1\17\11\uffff\1\34\1\35\3\uffff\1\41\1\42\1\uffff\1\34\4\uffff\1\5\1\6\5\uffff\1\13\2\uffff\1\16\1\17\4\uffff\1\24\5\uffff\1\35\1\36\1\37\1\40\1\41\14\uffff\1\21\25\uffff\1\23\16\uffff\1\12\4\uffff\1\25\10\uffff\1\3\5\uffff\1\14\4\uffff\1\30\2\uffff\1\1\5\uffff\1\20\1\uffff\1\15\1\uffff\1\26\4\uffff\1\11\2\uffff\1\10\3\uffff\1\31\1\33\1\2\1\uffff\1\7\1\32\4\uffff\1\27\1\uffff\1\22\1\4"; - static final String DFA12_specialS = - "\1\0\31\uffff\1\1\1\2\u0095\uffff}>"; - static final String[] DFA12_transitionS = { - "\11\36\2\35\2\36\1\35\22\36\1\35\1\36\1\32\1\15\3\36\1\33\6\36\1\12\1\34\12\31\1\22\1\16\5\36\32\30\3\36\1\27\1\30\1\36\1\17\1\30\1\2\1\4\1\24\1\21\2\30\1\1\2\30\1\3\1\10\1\23\1\7\1\30\1\20\1\13\1\11\1\26\1\14\1\30\1\25\3\30\1\5\1\36\1\6\uff82\36", - "\1\37", - "\1\41\15\uffff\1\42", - "\1\43", - "\1\44", - "", - "", - "\1\47", - "\1\51\3\uffff\1\50", - "\1\53\3\uffff\1\52", - "\1\54", - "\1\55", - "\1\56", - "", - "", - "\1\61", - "\1\62", - "\1\64\7\uffff\1\63", - "\1\65", - "\1\66", - "\1\70\5\uffff\1\67", - "\1\71", - "\1\72", - "\32\40\4\uffff\1\40\1\uffff\32\40", - "", - "", - "\0\74", - "\0\74", - "\1\75\4\uffff\1\76", - "", - "", - "\1\100", - "", - "\1\101", - "\1\102", - "\1\103", - "\1\104", - "", - "", - "\1\105", - "\1\106", - "\1\107", - "\1\110", - "\1\111", - "", - "\1\112", - "\1\113", - "", - "", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\115", - "\1\116", - "\1\117", - "", - "\1\120", - "\1\121", - "\1\122", - "\1\123", - "\1\124", - "", - "", - "", - "", - "", - "\1\125", - "\1\126", - "\1\127", - "\1\130", - "\1\131", - "\1\132", - "\1\133", - "\1\134", - "\1\135", - "\1\136", - "\1\137", - "\1\140", - "", - "\1\141", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\143", - "\1\144", - "\1\145", - "\1\146", - "\1\147", - "\1\150", - "\1\151", - "\1\152", - "\1\153", - "\1\154", - "\1\155", - "\1\156", - "\1\157", - "\1\160", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\162", - "\1\163", - "\1\164", - "\1\165", - "", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\167", - "\1\170", - "\1\171", - "\1\172", - "\1\173", - "\1\174", - "\1\175", - "\1\176", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u0080", - "\1\u0081", - "\1\u0082", - "\1\u0083", - "", - "\1\u0084", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u0086", - "\1\u0087", - "", - "\1\u0088", - "\1\u0089", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u008b", - "\1\u008c", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u008e", - "\1\u008f", - "", - "\1\u0090", - "\1\u0091", - "\1\u0092", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u0094", - "", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u0096", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u0098", - "", - "\1\u0099", - "\1\u009a", - "", - "\1\u009b", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u009d", - "\1\u009e", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "", - "\1\u00a0", - "", - "\1\u00a1", - "", - "\1\u00a2", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "", - "\1\u00a6", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u00a9", - "\1\u00aa", - "", - "", - "", - "\1\u00ab", - "", - "", - "\1\u00ac", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "\1\u00ae", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "", - "\12\40\7\uffff\32\40\4\uffff\1\40\1\uffff\32\40", - "", - "" - }; - - static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); - static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); - static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); - static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); - static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); - static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); - static final short[][] DFA12_transition; - - static { - int numStates = DFA12_transitionS.length; - DFA12_transition = new short[numStates][]; - for (int i=0; i='A' && LA12_0<='Z')||LA12_0=='_'||LA12_0=='b'||(LA12_0>='g' && LA12_0<='h')||(LA12_0>='j' && LA12_0<='k')||LA12_0=='p'||LA12_0=='v'||(LA12_0>='x' && LA12_0<='z')) ) {s = 24;} - - else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 25;} - - else if ( (LA12_0=='\"') ) {s = 26;} - - else if ( (LA12_0=='\'') ) {s = 27;} - - else if ( (LA12_0=='/') ) {s = 28;} - - else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 29;} - - else if ( ((LA12_0>='\u0000' && LA12_0<='\b')||(LA12_0>='\u000B' && LA12_0<='\f')||(LA12_0>='\u000E' && LA12_0<='\u001F')||LA12_0=='!'||(LA12_0>='$' && LA12_0<='&')||(LA12_0>='(' && LA12_0<='-')||(LA12_0>='<' && LA12_0<='@')||(LA12_0>='[' && LA12_0<=']')||LA12_0=='`'||LA12_0=='|'||(LA12_0>='~' && LA12_0<='\uFFFF')) ) {s = 30;} - - if ( s>=0 ) return s; - break; - case 1 : - int LA12_26 = input.LA(1); - - s = -1; - if ( ((LA12_26>='\u0000' && LA12_26<='\uFFFF')) ) {s = 60;} - - else s = 30; - - if ( s>=0 ) return s; - break; - case 2 : - int LA12_27 = input.LA(1); - - s = -1; - if ( ((LA12_27>='\u0000' && LA12_27<='\uFFFF')) ) {s = 60;} - - else s = 30; - - if ( s>=0 ) return s; - break; - } - NoViableAltException nvae = - new NoViableAltException(getDescription(), 12, _s, input); - error(nvae); - throw nvae; - } - } - - -} \ No newline at end of file diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValidParser.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValidParser.java deleted file mode 100644 index 2a7a2bfab6..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/parser/antlr/internal/InternalValidParser.java +++ /dev/null @@ -1,4603 +0,0 @@ -package com.avaloq.tools.ddk.xtext.valid.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.emf.common.util.Enumerator; -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 com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; - - - -import org.antlr.runtime.*; -import java.util.Stack; -import java.util.List; -import java.util.ArrayList; - -@SuppressWarnings("all") -public class InternalValidParser extends AbstractInternalAntlrParser { - public static final String[] tokenNames = new String[] { - "", "", "", "", "RULE_STRING", "RULE_ID", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'import'", "'category'", "'label'", "'description'", "'{'", "'}'", "'optional'", "'message'", "'context'", "'size'", "'..'", "'range'", "'unique'", "'#'", "';'", "'marker'", "'as'", "'quickfixes'", "'fix'", "'::'", "'fast'", "'normal'", "'expensive'", "'error'", "'warning'", "'semantic'", "'textual'" - }; - public static final int RULE_STRING=4; - public static final int RULE_SL_COMMENT=8; - public static final int T__19=19; - public static final int T__15=15; - public static final int T__37=37; - 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__11=11; - public static final int T__33=33; - public static final int T__12=12; - public static final int T__34=34; - public static final int T__13=13; - public static final int T__35=35; - public static final int T__14=14; - public static final int T__36=36; - public static final int EOF=-1; - public static final int T__30=30; - public static final int T__31=31; - public static final int T__32=32; - public static final int RULE_ID=5; - public static final int RULE_WS=9; - public static final int RULE_ANY_OTHER=10; - 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 RULE_ML_COMMENT=7; - public static final int T__23=23; - public static final int T__24=24; - public static final int T__25=25; - public static final int T__20=20; - public static final int T__21=21; - - // delegates - // delegators - - - public InternalValidParser(TokenStream input) { - this(input, new RecognizerSharedState()); - } - public InternalValidParser(TokenStream input, RecognizerSharedState state) { - super(input, state); - - } - - - public String[] getTokenNames() { return InternalValidParser.tokenNames; } - public String getGrammarFileName() { return "InternalValid.g"; } - - - - private ValidGrammarAccess grammarAccess; - - public InternalValidParser(TokenStream input, ValidGrammarAccess grammarAccess) { - this(input); - this.grammarAccess = grammarAccess; - registerRules(grammarAccess.getGrammar()); - } - - @Override - protected String getFirstRuleName() { - return "ValidModel"; - } - - @Override - protected ValidGrammarAccess getGrammarAccess() { - return grammarAccess; - } - - - - - // $ANTLR start "entryRuleValidModel" - // InternalValid.g:65:1: entryRuleValidModel returns [EObject current=null] : iv_ruleValidModel= ruleValidModel EOF ; - public final EObject entryRuleValidModel() throws RecognitionException { - EObject current = null; - - EObject iv_ruleValidModel = null; - - - try { - // InternalValid.g:65:51: (iv_ruleValidModel= ruleValidModel EOF ) - // InternalValid.g:66:2: iv_ruleValidModel= ruleValidModel EOF - { - newCompositeNode(grammarAccess.getValidModelRule()); - pushFollow(FOLLOW_1); - iv_ruleValidModel=ruleValidModel(); - - state._fsp--; - - current =iv_ruleValidModel; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleValidModel" - - - // $ANTLR start "ruleValidModel" - // InternalValid.g:72:1: ruleValidModel returns [EObject current=null] : ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_categories_1_0= ruleCategory ) )* ) ; - public final EObject ruleValidModel() throws RecognitionException { - EObject current = null; - - EObject lv_imports_0_0 = null; - - EObject lv_categories_1_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:78:2: ( ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_categories_1_0= ruleCategory ) )* ) ) - // InternalValid.g:79:2: ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_categories_1_0= ruleCategory ) )* ) - { - // InternalValid.g:79:2: ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_categories_1_0= ruleCategory ) )* ) - // InternalValid.g:80:3: ( (lv_imports_0_0= ruleImport ) )* ( (lv_categories_1_0= ruleCategory ) )* - { - // InternalValid.g:80:3: ( (lv_imports_0_0= ruleImport ) )* - loop1: - do { - int alt1=2; - int LA1_0 = input.LA(1); - - if ( (LA1_0==11) ) { - alt1=1; - } - - - switch (alt1) { - case 1 : - // InternalValid.g:81:4: (lv_imports_0_0= ruleImport ) - { - // InternalValid.g:81:4: (lv_imports_0_0= ruleImport ) - // InternalValid.g:82:5: lv_imports_0_0= ruleImport - { - - newCompositeNode(grammarAccess.getValidModelAccess().getImportsImportParserRuleCall_0_0()); - - pushFollow(FOLLOW_3); - lv_imports_0_0=ruleImport(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getValidModelRule()); - } - add( - current, - "imports", - lv_imports_0_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.Import"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop1; - } - } while (true); - - // InternalValid.g:99:3: ( (lv_categories_1_0= ruleCategory ) )* - loop2: - do { - int alt2=2; - int LA2_0 = input.LA(1); - - if ( (LA2_0==12) ) { - alt2=1; - } - - - switch (alt2) { - case 1 : - // InternalValid.g:100:4: (lv_categories_1_0= ruleCategory ) - { - // InternalValid.g:100:4: (lv_categories_1_0= ruleCategory ) - // InternalValid.g:101:5: lv_categories_1_0= ruleCategory - { - - newCompositeNode(grammarAccess.getValidModelAccess().getCategoriesCategoryParserRuleCall_1_0()); - - pushFollow(FOLLOW_4); - lv_categories_1_0=ruleCategory(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getValidModelRule()); - } - add( - current, - "categories", - lv_categories_1_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.Category"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop2; - } - } while (true); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleValidModel" - - - // $ANTLR start "entryRuleImport" - // InternalValid.g:122:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ; - public final EObject entryRuleImport() throws RecognitionException { - EObject current = null; - - EObject iv_ruleImport = null; - - - try { - // InternalValid.g:122:47: (iv_ruleImport= ruleImport EOF ) - // InternalValid.g:123:2: iv_ruleImport= ruleImport EOF - { - newCompositeNode(grammarAccess.getImportRule()); - pushFollow(FOLLOW_1); - iv_ruleImport=ruleImport(); - - state._fsp--; - - current =iv_ruleImport; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleImport" - - - // $ANTLR start "ruleImport" - // InternalValid.g:129:1: ruleImport returns [EObject current=null] : (otherlv_0= 'import' ( (otherlv_1= RULE_STRING ) ) ) ; - public final EObject ruleImport() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token otherlv_1=null; - - - enterRule(); - - try { - // InternalValid.g:135:2: ( (otherlv_0= 'import' ( (otherlv_1= RULE_STRING ) ) ) ) - // InternalValid.g:136:2: (otherlv_0= 'import' ( (otherlv_1= RULE_STRING ) ) ) - { - // InternalValid.g:136:2: (otherlv_0= 'import' ( (otherlv_1= RULE_STRING ) ) ) - // InternalValid.g:137:3: otherlv_0= 'import' ( (otherlv_1= RULE_STRING ) ) - { - otherlv_0=(Token)match(input,11,FOLLOW_5); - - newLeafNode(otherlv_0, grammarAccess.getImportAccess().getImportKeyword_0()); - - // InternalValid.g:141:3: ( (otherlv_1= RULE_STRING ) ) - // InternalValid.g:142:4: (otherlv_1= RULE_STRING ) - { - // InternalValid.g:142:4: (otherlv_1= RULE_STRING ) - // InternalValid.g:143:5: otherlv_1= RULE_STRING - { - - if (current==null) { - current = createModelElement(grammarAccess.getImportRule()); - } - - otherlv_1=(Token)match(input,RULE_STRING,FOLLOW_2); - - newLeafNode(otherlv_1, grammarAccess.getImportAccess().getPackageEPackageCrossReference_1_0()); - - - } - - - } - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleImport" - - - // $ANTLR start "entryRuleCategory" - // InternalValid.g:158:1: entryRuleCategory returns [EObject current=null] : iv_ruleCategory= ruleCategory EOF ; - public final EObject entryRuleCategory() throws RecognitionException { - EObject current = null; - - EObject iv_ruleCategory = null; - - - try { - // InternalValid.g:158:49: (iv_ruleCategory= ruleCategory EOF ) - // InternalValid.g:159:2: iv_ruleCategory= ruleCategory EOF - { - newCompositeNode(grammarAccess.getCategoryRule()); - pushFollow(FOLLOW_1); - iv_ruleCategory=ruleCategory(); - - state._fsp--; - - current =iv_ruleCategory; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleCategory" - - - // $ANTLR start "ruleCategory" - // InternalValid.g:165:1: ruleCategory returns [EObject current=null] : (otherlv_0= 'category' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'label' ( (lv_label_3_0= RULE_STRING ) ) (otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) )? otherlv_6= '{' ( (lv_rules_7_0= ruleRule ) )* otherlv_8= '}' ) ; - public final EObject ruleCategory() throws RecognitionException { - EObject current = null; - - Token otherlv_0=null; - Token lv_name_1_0=null; - Token otherlv_2=null; - Token lv_label_3_0=null; - Token otherlv_4=null; - Token lv_description_5_0=null; - Token otherlv_6=null; - Token otherlv_8=null; - EObject lv_rules_7_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:171:2: ( (otherlv_0= 'category' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'label' ( (lv_label_3_0= RULE_STRING ) ) (otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) )? otherlv_6= '{' ( (lv_rules_7_0= ruleRule ) )* otherlv_8= '}' ) ) - // InternalValid.g:172:2: (otherlv_0= 'category' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'label' ( (lv_label_3_0= RULE_STRING ) ) (otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) )? otherlv_6= '{' ( (lv_rules_7_0= ruleRule ) )* otherlv_8= '}' ) - { - // InternalValid.g:172:2: (otherlv_0= 'category' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'label' ( (lv_label_3_0= RULE_STRING ) ) (otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) )? otherlv_6= '{' ( (lv_rules_7_0= ruleRule ) )* otherlv_8= '}' ) - // InternalValid.g:173:3: otherlv_0= 'category' ( (lv_name_1_0= RULE_ID ) ) otherlv_2= 'label' ( (lv_label_3_0= RULE_STRING ) ) (otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) )? otherlv_6= '{' ( (lv_rules_7_0= ruleRule ) )* otherlv_8= '}' - { - otherlv_0=(Token)match(input,12,FOLLOW_6); - - newLeafNode(otherlv_0, grammarAccess.getCategoryAccess().getCategoryKeyword_0()); - - // InternalValid.g:177:3: ( (lv_name_1_0= RULE_ID ) ) - // InternalValid.g:178:4: (lv_name_1_0= RULE_ID ) - { - // InternalValid.g:178:4: (lv_name_1_0= RULE_ID ) - // InternalValid.g:179:5: lv_name_1_0= RULE_ID - { - lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_1_0, grammarAccess.getCategoryAccess().getNameIDTerminalRuleCall_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getCategoryRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_1_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - otherlv_2=(Token)match(input,13,FOLLOW_5); - - newLeafNode(otherlv_2, grammarAccess.getCategoryAccess().getLabelKeyword_2()); - - // InternalValid.g:199:3: ( (lv_label_3_0= RULE_STRING ) ) - // InternalValid.g:200:4: (lv_label_3_0= RULE_STRING ) - { - // InternalValid.g:200:4: (lv_label_3_0= RULE_STRING ) - // InternalValid.g:201:5: lv_label_3_0= RULE_STRING - { - lv_label_3_0=(Token)match(input,RULE_STRING,FOLLOW_8); - - newLeafNode(lv_label_3_0, grammarAccess.getCategoryAccess().getLabelSTRINGTerminalRuleCall_3_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getCategoryRule()); - } - setWithLastConsumed( - current, - "label", - lv_label_3_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - // InternalValid.g:217:3: (otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) )? - int alt3=2; - int LA3_0 = input.LA(1); - - if ( (LA3_0==14) ) { - alt3=1; - } - switch (alt3) { - case 1 : - // InternalValid.g:218:4: otherlv_4= 'description' ( (lv_description_5_0= RULE_STRING ) ) - { - otherlv_4=(Token)match(input,14,FOLLOW_5); - - newLeafNode(otherlv_4, grammarAccess.getCategoryAccess().getDescriptionKeyword_4_0()); - - // InternalValid.g:222:4: ( (lv_description_5_0= RULE_STRING ) ) - // InternalValid.g:223:5: (lv_description_5_0= RULE_STRING ) - { - // InternalValid.g:223:5: (lv_description_5_0= RULE_STRING ) - // InternalValid.g:224:6: lv_description_5_0= RULE_STRING - { - lv_description_5_0=(Token)match(input,RULE_STRING,FOLLOW_9); - - newLeafNode(lv_description_5_0, grammarAccess.getCategoryAccess().getDescriptionSTRINGTerminalRuleCall_4_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getCategoryRule()); - } - setWithLastConsumed( - current, - "description", - lv_description_5_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - otherlv_6=(Token)match(input,15,FOLLOW_10); - - newLeafNode(otherlv_6, grammarAccess.getCategoryAccess().getLeftCurlyBracketKeyword_5()); - - // InternalValid.g:245:3: ( (lv_rules_7_0= ruleRule ) )* - loop4: - do { - int alt4=2; - int LA4_0 = input.LA(1); - - if ( (LA4_0==17||LA4_0==20||(LA4_0>=22 && LA4_0<=23)||(LA4_0>=31 && LA4_0<=35)) ) { - alt4=1; - } - - - switch (alt4) { - case 1 : - // InternalValid.g:246:4: (lv_rules_7_0= ruleRule ) - { - // InternalValid.g:246:4: (lv_rules_7_0= ruleRule ) - // InternalValid.g:247:5: lv_rules_7_0= ruleRule - { - - newCompositeNode(grammarAccess.getCategoryAccess().getRulesRuleParserRuleCall_6_0()); - - pushFollow(FOLLOW_10); - lv_rules_7_0=ruleRule(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getCategoryRule()); - } - add( - current, - "rules", - lv_rules_7_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.Rule"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - break loop4; - } - } while (true); - - otherlv_8=(Token)match(input,16,FOLLOW_2); - - newLeafNode(otherlv_8, grammarAccess.getCategoryAccess().getRightCurlyBracketKeyword_7()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleCategory" - - - // $ANTLR start "entryRuleRule" - // InternalValid.g:272:1: entryRuleRule returns [EObject current=null] : iv_ruleRule= ruleRule EOF ; - public final EObject entryRuleRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleRule = null; - - - try { - // InternalValid.g:272:45: (iv_ruleRule= ruleRule EOF ) - // InternalValid.g:273:2: iv_ruleRule= ruleRule EOF - { - newCompositeNode(grammarAccess.getRuleRule()); - pushFollow(FOLLOW_1); - iv_ruleRule=ruleRule(); - - state._fsp--; - - current =iv_ruleRule; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleRule" - - - // $ANTLR start "ruleRule" - // InternalValid.g:279:1: ruleRule returns [EObject current=null] : (this_NativeRule_0= ruleNativeRule | this_PredefinedRule_1= rulePredefinedRule ) ; - public final EObject ruleRule() throws RecognitionException { - EObject current = null; - - EObject this_NativeRule_0 = null; - - EObject this_PredefinedRule_1 = null; - - - - enterRule(); - - try { - // InternalValid.g:285:2: ( (this_NativeRule_0= ruleNativeRule | this_PredefinedRule_1= rulePredefinedRule ) ) - // InternalValid.g:286:2: (this_NativeRule_0= ruleNativeRule | this_PredefinedRule_1= rulePredefinedRule ) - { - // InternalValid.g:286:2: (this_NativeRule_0= ruleNativeRule | this_PredefinedRule_1= rulePredefinedRule ) - int alt5=2; - alt5 = dfa5.predict(input); - switch (alt5) { - case 1 : - // InternalValid.g:287:3: this_NativeRule_0= ruleNativeRule - { - - newCompositeNode(grammarAccess.getRuleAccess().getNativeRuleParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_NativeRule_0=ruleNativeRule(); - - state._fsp--; - - - current = this_NativeRule_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalValid.g:296:3: this_PredefinedRule_1= rulePredefinedRule - { - - newCompositeNode(grammarAccess.getRuleAccess().getPredefinedRuleParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_PredefinedRule_1=rulePredefinedRule(); - - state._fsp--; - - - current = this_PredefinedRule_1; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleRule" - - - // $ANTLR start "entryRulePredefinedRule" - // InternalValid.g:308:1: entryRulePredefinedRule returns [EObject current=null] : iv_rulePredefinedRule= rulePredefinedRule EOF ; - public final EObject entryRulePredefinedRule() throws RecognitionException { - EObject current = null; - - EObject iv_rulePredefinedRule = null; - - - try { - // InternalValid.g:308:55: (iv_rulePredefinedRule= rulePredefinedRule EOF ) - // InternalValid.g:309:2: iv_rulePredefinedRule= rulePredefinedRule EOF - { - newCompositeNode(grammarAccess.getPredefinedRuleRule()); - pushFollow(FOLLOW_1); - iv_rulePredefinedRule=rulePredefinedRule(); - - state._fsp--; - - current =iv_rulePredefinedRule; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRulePredefinedRule" - - - // $ANTLR start "rulePredefinedRule" - // InternalValid.g:315:1: rulePredefinedRule returns [EObject current=null] : (this_SizeRule_0= ruleSizeRule | this_RangeRule_1= ruleRangeRule | this_UniqueRule_2= ruleUniqueRule ) ; - public final EObject rulePredefinedRule() throws RecognitionException { - EObject current = null; - - EObject this_SizeRule_0 = null; - - EObject this_RangeRule_1 = null; - - EObject this_UniqueRule_2 = null; - - - - enterRule(); - - try { - // InternalValid.g:321:2: ( (this_SizeRule_0= ruleSizeRule | this_RangeRule_1= ruleRangeRule | this_UniqueRule_2= ruleUniqueRule ) ) - // InternalValid.g:322:2: (this_SizeRule_0= ruleSizeRule | this_RangeRule_1= ruleRangeRule | this_UniqueRule_2= ruleUniqueRule ) - { - // InternalValid.g:322:2: (this_SizeRule_0= ruleSizeRule | this_RangeRule_1= ruleRangeRule | this_UniqueRule_2= ruleUniqueRule ) - int alt6=3; - alt6 = dfa6.predict(input); - switch (alt6) { - case 1 : - // InternalValid.g:323:3: this_SizeRule_0= ruleSizeRule - { - - newCompositeNode(grammarAccess.getPredefinedRuleAccess().getSizeRuleParserRuleCall_0()); - - pushFollow(FOLLOW_2); - this_SizeRule_0=ruleSizeRule(); - - state._fsp--; - - - current = this_SizeRule_0; - afterParserOrEnumRuleCall(); - - - } - break; - case 2 : - // InternalValid.g:332:3: this_RangeRule_1= ruleRangeRule - { - - newCompositeNode(grammarAccess.getPredefinedRuleAccess().getRangeRuleParserRuleCall_1()); - - pushFollow(FOLLOW_2); - this_RangeRule_1=ruleRangeRule(); - - state._fsp--; - - - current = this_RangeRule_1; - afterParserOrEnumRuleCall(); - - - } - break; - case 3 : - // InternalValid.g:341:3: this_UniqueRule_2= ruleUniqueRule - { - - newCompositeNode(grammarAccess.getPredefinedRuleAccess().getUniqueRuleParserRuleCall_2()); - - pushFollow(FOLLOW_2); - this_UniqueRule_2=ruleUniqueRule(); - - state._fsp--; - - - current = this_UniqueRule_2; - afterParserOrEnumRuleCall(); - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "rulePredefinedRule" - - - // $ANTLR start "entryRuleNativeRule" - // InternalValid.g:353:1: entryRuleNativeRule returns [EObject current=null] : iv_ruleNativeRule= ruleNativeRule EOF ; - public final EObject entryRuleNativeRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleNativeRule = null; - - - try { - // InternalValid.g:353:51: (iv_ruleNativeRule= ruleNativeRule EOF ) - // InternalValid.g:354:2: iv_ruleNativeRule= ruleNativeRule EOF - { - newCompositeNode(grammarAccess.getNativeRuleRule()); - pushFollow(FOLLOW_1); - iv_ruleNativeRule=ruleNativeRule(); - - state._fsp--; - - current =iv_ruleNativeRule; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNativeRule" - - - // $ANTLR start "ruleNativeRule" - // InternalValid.g:360:1: ruleNativeRule returns [EObject current=null] : ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) ( (lv_severity_3_0= ruleSeverityKind ) ) ( (lv_name_4_0= RULE_ID ) ) otherlv_5= 'label' ( (lv_label_6_0= RULE_STRING ) ) (otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) )? otherlv_9= 'message' ( (lv_message_10_0= RULE_STRING ) ) otherlv_11= 'context' otherlv_12= '{' ( (lv_contexts_13_0= ruleNativeContext ) )+ otherlv_14= '}' ) ; - public final EObject ruleNativeRule() throws RecognitionException { - EObject current = null; - - Token lv_optional_1_0=null; - Token lv_name_4_0=null; - Token otherlv_5=null; - Token lv_label_6_0=null; - Token otherlv_7=null; - Token lv_description_8_0=null; - Token otherlv_9=null; - Token lv_message_10_0=null; - Token otherlv_11=null; - Token otherlv_12=null; - Token otherlv_14=null; - Enumerator lv_checkKind_2_0 = null; - - Enumerator lv_severity_3_0 = null; - - EObject lv_contexts_13_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:366:2: ( ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) ( (lv_severity_3_0= ruleSeverityKind ) ) ( (lv_name_4_0= RULE_ID ) ) otherlv_5= 'label' ( (lv_label_6_0= RULE_STRING ) ) (otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) )? otherlv_9= 'message' ( (lv_message_10_0= RULE_STRING ) ) otherlv_11= 'context' otherlv_12= '{' ( (lv_contexts_13_0= ruleNativeContext ) )+ otherlv_14= '}' ) ) - // InternalValid.g:367:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) ( (lv_severity_3_0= ruleSeverityKind ) ) ( (lv_name_4_0= RULE_ID ) ) otherlv_5= 'label' ( (lv_label_6_0= RULE_STRING ) ) (otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) )? otherlv_9= 'message' ( (lv_message_10_0= RULE_STRING ) ) otherlv_11= 'context' otherlv_12= '{' ( (lv_contexts_13_0= ruleNativeContext ) )+ otherlv_14= '}' ) - { - // InternalValid.g:367:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) ( (lv_severity_3_0= ruleSeverityKind ) ) ( (lv_name_4_0= RULE_ID ) ) otherlv_5= 'label' ( (lv_label_6_0= RULE_STRING ) ) (otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) )? otherlv_9= 'message' ( (lv_message_10_0= RULE_STRING ) ) otherlv_11= 'context' otherlv_12= '{' ( (lv_contexts_13_0= ruleNativeContext ) )+ otherlv_14= '}' ) - // InternalValid.g:368:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) ( (lv_severity_3_0= ruleSeverityKind ) ) ( (lv_name_4_0= RULE_ID ) ) otherlv_5= 'label' ( (lv_label_6_0= RULE_STRING ) ) (otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) )? otherlv_9= 'message' ( (lv_message_10_0= RULE_STRING ) ) otherlv_11= 'context' otherlv_12= '{' ( (lv_contexts_13_0= ruleNativeContext ) )+ otherlv_14= '}' - { - // InternalValid.g:368:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) - // InternalValid.g:369:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - { - // InternalValid.g:369:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - // InternalValid.g:370:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - { - - getUnorderedGroupHelper().enter(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - - // InternalValid.g:373:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - // InternalValid.g:374:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - { - // InternalValid.g:374:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - loop7: - do { - int alt7=3; - int LA7_0 = input.LA(1); - - if ( LA7_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt7=1; - } - else if ( LA7_0 >= 31 && LA7_0 <= 33 && getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt7=2; - } - - - switch (alt7) { - case 1 : - // InternalValid.g:375:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - { - // InternalValid.g:375:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - // InternalValid.g:376:5: {...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "ruleNativeRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:376:107: ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - // InternalValid.g:377:6: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 0); - - // InternalValid.g:380:9: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - // InternalValid.g:380:10: {...}? => ( (lv_optional_1_0= 'optional' ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleNativeRule", "true"); - } - // InternalValid.g:380:19: ( (lv_optional_1_0= 'optional' ) ) - // InternalValid.g:380:20: (lv_optional_1_0= 'optional' ) - { - // InternalValid.g:380:20: (lv_optional_1_0= 'optional' ) - // InternalValid.g:381:10: lv_optional_1_0= 'optional' - { - lv_optional_1_0=(Token)match(input,17,FOLLOW_11); - - newLeafNode(lv_optional_1_0, grammarAccess.getNativeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed(current, "optional", lv_optional_1_0 != null, "optional"); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:398:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - { - // InternalValid.g:398:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - // InternalValid.g:399:5: {...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "ruleNativeRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:399:107: ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - // InternalValid.g:400:6: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0(), 1); - - // InternalValid.g:403:9: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - // InternalValid.g:403:10: {...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleNativeRule", "true"); - } - // InternalValid.g:403:19: ( (lv_checkKind_2_0= ruleCheckKind ) ) - // InternalValid.g:403:20: (lv_checkKind_2_0= ruleCheckKind ) - { - // InternalValid.g:403:20: (lv_checkKind_2_0= ruleCheckKind ) - // InternalValid.g:404:10: lv_checkKind_2_0= ruleCheckKind - { - - newCompositeNode(grammarAccess.getNativeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - pushFollow(FOLLOW_11); - lv_checkKind_2_0=ruleCheckKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getNativeRuleRule()); - } - set( - current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - - default : - break loop7; - } - } while (true); - - - } - - - } - - - getUnorderedGroupHelper().leave(grammarAccess.getNativeRuleAccess().getUnorderedGroup_0()); - - - } - - // InternalValid.g:433:3: ( (lv_severity_3_0= ruleSeverityKind ) ) - // InternalValid.g:434:4: (lv_severity_3_0= ruleSeverityKind ) - { - // InternalValid.g:434:4: (lv_severity_3_0= ruleSeverityKind ) - // InternalValid.g:435:5: lv_severity_3_0= ruleSeverityKind - { - - newCompositeNode(grammarAccess.getNativeRuleAccess().getSeveritySeverityKindEnumRuleCall_1_0()); - - pushFollow(FOLLOW_6); - lv_severity_3_0=ruleSeverityKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getNativeRuleRule()); - } - set( - current, - "severity", - lv_severity_3_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:452:3: ( (lv_name_4_0= RULE_ID ) ) - // InternalValid.g:453:4: (lv_name_4_0= RULE_ID ) - { - // InternalValid.g:453:4: (lv_name_4_0= RULE_ID ) - // InternalValid.g:454:5: lv_name_4_0= RULE_ID - { - lv_name_4_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_4_0, grammarAccess.getNativeRuleAccess().getNameIDTerminalRuleCall_2_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_4_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - otherlv_5=(Token)match(input,13,FOLLOW_5); - - newLeafNode(otherlv_5, grammarAccess.getNativeRuleAccess().getLabelKeyword_3()); - - // InternalValid.g:474:3: ( (lv_label_6_0= RULE_STRING ) ) - // InternalValid.g:475:4: (lv_label_6_0= RULE_STRING ) - { - // InternalValid.g:475:4: (lv_label_6_0= RULE_STRING ) - // InternalValid.g:476:5: lv_label_6_0= RULE_STRING - { - lv_label_6_0=(Token)match(input,RULE_STRING,FOLLOW_12); - - newLeafNode(lv_label_6_0, grammarAccess.getNativeRuleAccess().getLabelSTRINGTerminalRuleCall_4_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - current, - "label", - lv_label_6_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - // InternalValid.g:492:3: (otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) )? - int alt8=2; - int LA8_0 = input.LA(1); - - if ( (LA8_0==14) ) { - alt8=1; - } - switch (alt8) { - case 1 : - // InternalValid.g:493:4: otherlv_7= 'description' ( (lv_description_8_0= RULE_STRING ) ) - { - otherlv_7=(Token)match(input,14,FOLLOW_5); - - newLeafNode(otherlv_7, grammarAccess.getNativeRuleAccess().getDescriptionKeyword_5_0()); - - // InternalValid.g:497:4: ( (lv_description_8_0= RULE_STRING ) ) - // InternalValid.g:498:5: (lv_description_8_0= RULE_STRING ) - { - // InternalValid.g:498:5: (lv_description_8_0= RULE_STRING ) - // InternalValid.g:499:6: lv_description_8_0= RULE_STRING - { - lv_description_8_0=(Token)match(input,RULE_STRING,FOLLOW_13); - - newLeafNode(lv_description_8_0, grammarAccess.getNativeRuleAccess().getDescriptionSTRINGTerminalRuleCall_5_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - current, - "description", - lv_description_8_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - otherlv_9=(Token)match(input,18,FOLLOW_5); - - newLeafNode(otherlv_9, grammarAccess.getNativeRuleAccess().getMessageKeyword_6()); - - // InternalValid.g:520:3: ( (lv_message_10_0= RULE_STRING ) ) - // InternalValid.g:521:4: (lv_message_10_0= RULE_STRING ) - { - // InternalValid.g:521:4: (lv_message_10_0= RULE_STRING ) - // InternalValid.g:522:5: lv_message_10_0= RULE_STRING - { - lv_message_10_0=(Token)match(input,RULE_STRING,FOLLOW_14); - - newLeafNode(lv_message_10_0, grammarAccess.getNativeRuleAccess().getMessageSTRINGTerminalRuleCall_7_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeRuleRule()); - } - setWithLastConsumed( - current, - "message", - lv_message_10_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - otherlv_11=(Token)match(input,19,FOLLOW_9); - - newLeafNode(otherlv_11, grammarAccess.getNativeRuleAccess().getContextKeyword_8()); - - otherlv_12=(Token)match(input,15,FOLLOW_6); - - newLeafNode(otherlv_12, grammarAccess.getNativeRuleAccess().getLeftCurlyBracketKeyword_9()); - - // InternalValid.g:546:3: ( (lv_contexts_13_0= ruleNativeContext ) )+ - int cnt9=0; - loop9: - do { - int alt9=2; - int LA9_0 = input.LA(1); - - if ( (LA9_0==RULE_ID) ) { - alt9=1; - } - - - switch (alt9) { - case 1 : - // InternalValid.g:547:4: (lv_contexts_13_0= ruleNativeContext ) - { - // InternalValid.g:547:4: (lv_contexts_13_0= ruleNativeContext ) - // InternalValid.g:548:5: lv_contexts_13_0= ruleNativeContext - { - - newCompositeNode(grammarAccess.getNativeRuleAccess().getContextsNativeContextParserRuleCall_10_0()); - - pushFollow(FOLLOW_15); - lv_contexts_13_0=ruleNativeContext(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getNativeRuleRule()); - } - add( - current, - "contexts", - lv_contexts_13_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.NativeContext"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - if ( cnt9 >= 1 ) break loop9; - EarlyExitException eee = - new EarlyExitException(9, input); - throw eee; - } - cnt9++; - } while (true); - - otherlv_14=(Token)match(input,16,FOLLOW_2); - - newLeafNode(otherlv_14, grammarAccess.getNativeRuleAccess().getRightCurlyBracketKeyword_11()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNativeRule" - - - // $ANTLR start "entryRuleSizeRule" - // InternalValid.g:573:1: entryRuleSizeRule returns [EObject current=null] : iv_ruleSizeRule= ruleSizeRule EOF ; - public final EObject entryRuleSizeRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleSizeRule = null; - - - try { - // InternalValid.g:573:49: (iv_ruleSizeRule= ruleSizeRule EOF ) - // InternalValid.g:574:2: iv_ruleSizeRule= ruleSizeRule EOF - { - newCompositeNode(grammarAccess.getSizeRuleRule()); - pushFollow(FOLLOW_1); - iv_ruleSizeRule=ruleSizeRule(); - - state._fsp--; - - current =iv_ruleSizeRule; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleSizeRule" - - - // $ANTLR start "ruleSizeRule" - // InternalValid.g:580:1: ruleSizeRule returns [EObject current=null] : ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'size' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'size' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) ; - public final EObject ruleSizeRule() throws RecognitionException { - EObject current = null; - - Token lv_optional_1_0=null; - Token otherlv_3=null; - Token lv_name_5_0=null; - Token otherlv_6=null; - Token lv_label_7_0=null; - Token otherlv_8=null; - Token lv_description_9_0=null; - Token otherlv_10=null; - Token lv_message_11_0=null; - Token otherlv_12=null; - Token lv_min_13_0=null; - Token otherlv_14=null; - Token lv_max_15_0=null; - Token otherlv_16=null; - Token otherlv_17=null; - Token otherlv_19=null; - Enumerator lv_checkKind_2_0 = null; - - Enumerator lv_severity_4_0 = null; - - EObject lv_contexts_18_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:586:2: ( ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'size' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'size' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) ) - // InternalValid.g:587:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'size' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'size' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) - { - // InternalValid.g:587:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'size' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'size' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) - // InternalValid.g:588:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'size' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'size' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' - { - // InternalValid.g:588:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) - // InternalValid.g:589:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - { - // InternalValid.g:589:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - // InternalValid.g:590:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - { - - getUnorderedGroupHelper().enter(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - - // InternalValid.g:593:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - // InternalValid.g:594:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - { - // InternalValid.g:594:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - loop10: - do { - int alt10=3; - int LA10_0 = input.LA(1); - - if ( LA10_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt10=1; - } - else if ( LA10_0 >= 31 && LA10_0 <= 33 && getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt10=2; - } - - - switch (alt10) { - case 1 : - // InternalValid.g:595:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - { - // InternalValid.g:595:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - // InternalValid.g:596:5: {...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "ruleSizeRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:596:105: ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - // InternalValid.g:597:6: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 0); - - // InternalValid.g:600:9: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - // InternalValid.g:600:10: {...}? => ( (lv_optional_1_0= 'optional' ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleSizeRule", "true"); - } - // InternalValid.g:600:19: ( (lv_optional_1_0= 'optional' ) ) - // InternalValid.g:600:20: (lv_optional_1_0= 'optional' ) - { - // InternalValid.g:600:20: (lv_optional_1_0= 'optional' ) - // InternalValid.g:601:10: lv_optional_1_0= 'optional' - { - lv_optional_1_0=(Token)match(input,17,FOLLOW_16); - - newLeafNode(lv_optional_1_0, grammarAccess.getSizeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed(current, "optional", lv_optional_1_0 != null, "optional"); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:618:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - { - // InternalValid.g:618:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - // InternalValid.g:619:5: {...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "ruleSizeRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:619:105: ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - // InternalValid.g:620:6: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0(), 1); - - // InternalValid.g:623:9: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - // InternalValid.g:623:10: {...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleSizeRule", "true"); - } - // InternalValid.g:623:19: ( (lv_checkKind_2_0= ruleCheckKind ) ) - // InternalValid.g:623:20: (lv_checkKind_2_0= ruleCheckKind ) - { - // InternalValid.g:623:20: (lv_checkKind_2_0= ruleCheckKind ) - // InternalValid.g:624:10: lv_checkKind_2_0= ruleCheckKind - { - - newCompositeNode(grammarAccess.getSizeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - pushFollow(FOLLOW_16); - lv_checkKind_2_0=ruleCheckKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getSizeRuleRule()); - } - set( - current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - - default : - break loop10; - } - } while (true); - - - } - - - } - - - getUnorderedGroupHelper().leave(grammarAccess.getSizeRuleAccess().getUnorderedGroup_0()); - - - } - - otherlv_3=(Token)match(input,20,FOLLOW_11); - - newLeafNode(otherlv_3, grammarAccess.getSizeRuleAccess().getSizeKeyword_1()); - - // InternalValid.g:657:3: ( (lv_severity_4_0= ruleSeverityKind ) ) - // InternalValid.g:658:4: (lv_severity_4_0= ruleSeverityKind ) - { - // InternalValid.g:658:4: (lv_severity_4_0= ruleSeverityKind ) - // InternalValid.g:659:5: lv_severity_4_0= ruleSeverityKind - { - - newCompositeNode(grammarAccess.getSizeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - - pushFollow(FOLLOW_6); - lv_severity_4_0=ruleSeverityKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getSizeRuleRule()); - } - set( - current, - "severity", - lv_severity_4_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:676:3: ( (lv_name_5_0= RULE_ID ) ) - // InternalValid.g:677:4: (lv_name_5_0= RULE_ID ) - { - // InternalValid.g:677:4: (lv_name_5_0= RULE_ID ) - // InternalValid.g:678:5: lv_name_5_0= RULE_ID - { - lv_name_5_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_5_0, grammarAccess.getSizeRuleAccess().getNameIDTerminalRuleCall_3_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_5_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - otherlv_6=(Token)match(input,13,FOLLOW_5); - - newLeafNode(otherlv_6, grammarAccess.getSizeRuleAccess().getLabelKeyword_4()); - - // InternalValid.g:698:3: ( (lv_label_7_0= RULE_STRING ) ) - // InternalValid.g:699:4: (lv_label_7_0= RULE_STRING ) - { - // InternalValid.g:699:4: (lv_label_7_0= RULE_STRING ) - // InternalValid.g:700:5: lv_label_7_0= RULE_STRING - { - lv_label_7_0=(Token)match(input,RULE_STRING,FOLLOW_17); - - newLeafNode(lv_label_7_0, grammarAccess.getSizeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - current, - "label", - lv_label_7_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - // InternalValid.g:716:3: (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? - int alt11=2; - int LA11_0 = input.LA(1); - - if ( (LA11_0==14) ) { - alt11=1; - } - switch (alt11) { - case 1 : - // InternalValid.g:717:4: otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) - { - otherlv_8=(Token)match(input,14,FOLLOW_5); - - newLeafNode(otherlv_8, grammarAccess.getSizeRuleAccess().getDescriptionKeyword_6_0()); - - // InternalValid.g:721:4: ( (lv_description_9_0= RULE_STRING ) ) - // InternalValid.g:722:5: (lv_description_9_0= RULE_STRING ) - { - // InternalValid.g:722:5: (lv_description_9_0= RULE_STRING ) - // InternalValid.g:723:6: lv_description_9_0= RULE_STRING - { - lv_description_9_0=(Token)match(input,RULE_STRING,FOLLOW_18); - - newLeafNode(lv_description_9_0, grammarAccess.getSizeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - current, - "description", - lv_description_9_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - // InternalValid.g:740:3: (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? - int alt12=2; - int LA12_0 = input.LA(1); - - if ( (LA12_0==18) ) { - alt12=1; - } - switch (alt12) { - case 1 : - // InternalValid.g:741:4: otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) - { - otherlv_10=(Token)match(input,18,FOLLOW_5); - - newLeafNode(otherlv_10, grammarAccess.getSizeRuleAccess().getMessageKeyword_7_0()); - - // InternalValid.g:745:4: ( (lv_message_11_0= RULE_STRING ) ) - // InternalValid.g:746:5: (lv_message_11_0= RULE_STRING ) - { - // InternalValid.g:746:5: (lv_message_11_0= RULE_STRING ) - // InternalValid.g:747:6: lv_message_11_0= RULE_STRING - { - lv_message_11_0=(Token)match(input,RULE_STRING,FOLLOW_19); - - newLeafNode(lv_message_11_0, grammarAccess.getSizeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - current, - "message", - lv_message_11_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - otherlv_12=(Token)match(input,20,FOLLOW_20); - - newLeafNode(otherlv_12, grammarAccess.getSizeRuleAccess().getSizeKeyword_8()); - - // InternalValid.g:768:3: ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? - int alt13=2; - int LA13_0 = input.LA(1); - - if ( (LA13_0==RULE_INT) ) { - int LA13_1 = input.LA(2); - - if ( (LA13_1==21) ) { - alt13=1; - } - } - switch (alt13) { - case 1 : - // InternalValid.g:769:4: ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' - { - // InternalValid.g:769:4: ( (lv_min_13_0= RULE_INT ) ) - // InternalValid.g:770:5: (lv_min_13_0= RULE_INT ) - { - // InternalValid.g:770:5: (lv_min_13_0= RULE_INT ) - // InternalValid.g:771:6: lv_min_13_0= RULE_INT - { - lv_min_13_0=(Token)match(input,RULE_INT,FOLLOW_21); - - newLeafNode(lv_min_13_0, grammarAccess.getSizeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - current, - "min", - lv_min_13_0, - "org.eclipse.xtext.common.Terminals.INT"); - - - } - - - } - - otherlv_14=(Token)match(input,21,FOLLOW_20); - - newLeafNode(otherlv_14, grammarAccess.getSizeRuleAccess().getFullStopFullStopKeyword_9_1()); - - - } - break; - - } - - // InternalValid.g:792:3: ( (lv_max_15_0= RULE_INT ) ) - // InternalValid.g:793:4: (lv_max_15_0= RULE_INT ) - { - // InternalValid.g:793:4: (lv_max_15_0= RULE_INT ) - // InternalValid.g:794:5: lv_max_15_0= RULE_INT - { - lv_max_15_0=(Token)match(input,RULE_INT,FOLLOW_14); - - newLeafNode(lv_max_15_0, grammarAccess.getSizeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getSizeRuleRule()); - } - setWithLastConsumed( - current, - "max", - lv_max_15_0, - "org.eclipse.xtext.common.Terminals.INT"); - - - } - - - } - - otherlv_16=(Token)match(input,19,FOLLOW_9); - - newLeafNode(otherlv_16, grammarAccess.getSizeRuleAccess().getContextKeyword_11()); - - otherlv_17=(Token)match(input,15,FOLLOW_6); - - newLeafNode(otherlv_17, grammarAccess.getSizeRuleAccess().getLeftCurlyBracketKeyword_12()); - - // InternalValid.g:818:3: ( (lv_contexts_18_0= ruleSimpleContext ) )+ - int cnt14=0; - loop14: - do { - int alt14=2; - int LA14_0 = input.LA(1); - - if ( (LA14_0==RULE_ID) ) { - alt14=1; - } - - - switch (alt14) { - case 1 : - // InternalValid.g:819:4: (lv_contexts_18_0= ruleSimpleContext ) - { - // InternalValid.g:819:4: (lv_contexts_18_0= ruleSimpleContext ) - // InternalValid.g:820:5: lv_contexts_18_0= ruleSimpleContext - { - - newCompositeNode(grammarAccess.getSizeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - - pushFollow(FOLLOW_15); - lv_contexts_18_0=ruleSimpleContext(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getSizeRuleRule()); - } - add( - current, - "contexts", - lv_contexts_18_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SimpleContext"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - if ( cnt14 >= 1 ) break loop14; - EarlyExitException eee = - new EarlyExitException(14, input); - throw eee; - } - cnt14++; - } while (true); - - otherlv_19=(Token)match(input,16,FOLLOW_2); - - newLeafNode(otherlv_19, grammarAccess.getSizeRuleAccess().getRightCurlyBracketKeyword_14()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleSizeRule" - - - // $ANTLR start "entryRuleRangeRule" - // InternalValid.g:845:1: entryRuleRangeRule returns [EObject current=null] : iv_ruleRangeRule= ruleRangeRule EOF ; - public final EObject entryRuleRangeRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleRangeRule = null; - - - try { - // InternalValid.g:845:50: (iv_ruleRangeRule= ruleRangeRule EOF ) - // InternalValid.g:846:2: iv_ruleRangeRule= ruleRangeRule EOF - { - newCompositeNode(grammarAccess.getRangeRuleRule()); - pushFollow(FOLLOW_1); - iv_ruleRangeRule=ruleRangeRule(); - - state._fsp--; - - current =iv_ruleRangeRule; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleRangeRule" - - - // $ANTLR start "ruleRangeRule" - // InternalValid.g:852:1: ruleRangeRule returns [EObject current=null] : ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'range' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'range' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) ; - public final EObject ruleRangeRule() throws RecognitionException { - EObject current = null; - - Token lv_optional_1_0=null; - Token otherlv_3=null; - Token lv_name_5_0=null; - Token otherlv_6=null; - Token lv_label_7_0=null; - Token otherlv_8=null; - Token lv_description_9_0=null; - Token otherlv_10=null; - Token lv_message_11_0=null; - Token otherlv_12=null; - Token lv_min_13_0=null; - Token otherlv_14=null; - Token lv_max_15_0=null; - Token otherlv_16=null; - Token otherlv_17=null; - Token otherlv_19=null; - Enumerator lv_checkKind_2_0 = null; - - Enumerator lv_severity_4_0 = null; - - EObject lv_contexts_18_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:858:2: ( ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'range' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'range' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) ) - // InternalValid.g:859:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'range' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'range' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) - { - // InternalValid.g:859:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'range' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'range' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' ) - // InternalValid.g:860:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'range' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'range' ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? ( (lv_max_15_0= RULE_INT ) ) otherlv_16= 'context' otherlv_17= '{' ( (lv_contexts_18_0= ruleSimpleContext ) )+ otherlv_19= '}' - { - // InternalValid.g:860:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) - // InternalValid.g:861:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - { - // InternalValid.g:861:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - // InternalValid.g:862:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - { - - getUnorderedGroupHelper().enter(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - - // InternalValid.g:865:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - // InternalValid.g:866:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - { - // InternalValid.g:866:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - loop15: - do { - int alt15=3; - int LA15_0 = input.LA(1); - - if ( LA15_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0) ) { - alt15=1; - } - else if ( LA15_0 >= 31 && LA15_0 <= 33 && getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1) ) { - alt15=2; - } - - - switch (alt15) { - case 1 : - // InternalValid.g:867:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - { - // InternalValid.g:867:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - // InternalValid.g:868:5: {...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "ruleRangeRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:868:106: ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - // InternalValid.g:869:6: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 0); - - // InternalValid.g:872:9: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - // InternalValid.g:872:10: {...}? => ( (lv_optional_1_0= 'optional' ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleRangeRule", "true"); - } - // InternalValid.g:872:19: ( (lv_optional_1_0= 'optional' ) ) - // InternalValid.g:872:20: (lv_optional_1_0= 'optional' ) - { - // InternalValid.g:872:20: (lv_optional_1_0= 'optional' ) - // InternalValid.g:873:10: lv_optional_1_0= 'optional' - { - lv_optional_1_0=(Token)match(input,17,FOLLOW_22); - - newLeafNode(lv_optional_1_0, grammarAccess.getRangeRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed(current, "optional", lv_optional_1_0 != null, "optional"); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:890:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - { - // InternalValid.g:890:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - // InternalValid.g:891:5: {...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "ruleRangeRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:891:106: ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - // InternalValid.g:892:6: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0(), 1); - - // InternalValid.g:895:9: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - // InternalValid.g:895:10: {...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleRangeRule", "true"); - } - // InternalValid.g:895:19: ( (lv_checkKind_2_0= ruleCheckKind ) ) - // InternalValid.g:895:20: (lv_checkKind_2_0= ruleCheckKind ) - { - // InternalValid.g:895:20: (lv_checkKind_2_0= ruleCheckKind ) - // InternalValid.g:896:10: lv_checkKind_2_0= ruleCheckKind - { - - newCompositeNode(grammarAccess.getRangeRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - pushFollow(FOLLOW_22); - lv_checkKind_2_0=ruleCheckKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getRangeRuleRule()); - } - set( - current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - - default : - break loop15; - } - } while (true); - - - } - - - } - - - getUnorderedGroupHelper().leave(grammarAccess.getRangeRuleAccess().getUnorderedGroup_0()); - - - } - - otherlv_3=(Token)match(input,22,FOLLOW_11); - - newLeafNode(otherlv_3, grammarAccess.getRangeRuleAccess().getRangeKeyword_1()); - - // InternalValid.g:929:3: ( (lv_severity_4_0= ruleSeverityKind ) ) - // InternalValid.g:930:4: (lv_severity_4_0= ruleSeverityKind ) - { - // InternalValid.g:930:4: (lv_severity_4_0= ruleSeverityKind ) - // InternalValid.g:931:5: lv_severity_4_0= ruleSeverityKind - { - - newCompositeNode(grammarAccess.getRangeRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - - pushFollow(FOLLOW_6); - lv_severity_4_0=ruleSeverityKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getRangeRuleRule()); - } - set( - current, - "severity", - lv_severity_4_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:948:3: ( (lv_name_5_0= RULE_ID ) ) - // InternalValid.g:949:4: (lv_name_5_0= RULE_ID ) - { - // InternalValid.g:949:4: (lv_name_5_0= RULE_ID ) - // InternalValid.g:950:5: lv_name_5_0= RULE_ID - { - lv_name_5_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_5_0, grammarAccess.getRangeRuleAccess().getNameIDTerminalRuleCall_3_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_5_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - otherlv_6=(Token)match(input,13,FOLLOW_5); - - newLeafNode(otherlv_6, grammarAccess.getRangeRuleAccess().getLabelKeyword_4()); - - // InternalValid.g:970:3: ( (lv_label_7_0= RULE_STRING ) ) - // InternalValid.g:971:4: (lv_label_7_0= RULE_STRING ) - { - // InternalValid.g:971:4: (lv_label_7_0= RULE_STRING ) - // InternalValid.g:972:5: lv_label_7_0= RULE_STRING - { - lv_label_7_0=(Token)match(input,RULE_STRING,FOLLOW_23); - - newLeafNode(lv_label_7_0, grammarAccess.getRangeRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - current, - "label", - lv_label_7_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - // InternalValid.g:988:3: (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? - int alt16=2; - int LA16_0 = input.LA(1); - - if ( (LA16_0==14) ) { - alt16=1; - } - switch (alt16) { - case 1 : - // InternalValid.g:989:4: otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) - { - otherlv_8=(Token)match(input,14,FOLLOW_5); - - newLeafNode(otherlv_8, grammarAccess.getRangeRuleAccess().getDescriptionKeyword_6_0()); - - // InternalValid.g:993:4: ( (lv_description_9_0= RULE_STRING ) ) - // InternalValid.g:994:5: (lv_description_9_0= RULE_STRING ) - { - // InternalValid.g:994:5: (lv_description_9_0= RULE_STRING ) - // InternalValid.g:995:6: lv_description_9_0= RULE_STRING - { - lv_description_9_0=(Token)match(input,RULE_STRING,FOLLOW_24); - - newLeafNode(lv_description_9_0, grammarAccess.getRangeRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - current, - "description", - lv_description_9_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - // InternalValid.g:1012:3: (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? - int alt17=2; - int LA17_0 = input.LA(1); - - if ( (LA17_0==18) ) { - alt17=1; - } - switch (alt17) { - case 1 : - // InternalValid.g:1013:4: otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) - { - otherlv_10=(Token)match(input,18,FOLLOW_5); - - newLeafNode(otherlv_10, grammarAccess.getRangeRuleAccess().getMessageKeyword_7_0()); - - // InternalValid.g:1017:4: ( (lv_message_11_0= RULE_STRING ) ) - // InternalValid.g:1018:5: (lv_message_11_0= RULE_STRING ) - { - // InternalValid.g:1018:5: (lv_message_11_0= RULE_STRING ) - // InternalValid.g:1019:6: lv_message_11_0= RULE_STRING - { - lv_message_11_0=(Token)match(input,RULE_STRING,FOLLOW_25); - - newLeafNode(lv_message_11_0, grammarAccess.getRangeRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - current, - "message", - lv_message_11_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - otherlv_12=(Token)match(input,22,FOLLOW_20); - - newLeafNode(otherlv_12, grammarAccess.getRangeRuleAccess().getRangeKeyword_8()); - - // InternalValid.g:1040:3: ( ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' )? - int alt18=2; - int LA18_0 = input.LA(1); - - if ( (LA18_0==RULE_INT) ) { - int LA18_1 = input.LA(2); - - if ( (LA18_1==21) ) { - alt18=1; - } - } - switch (alt18) { - case 1 : - // InternalValid.g:1041:4: ( (lv_min_13_0= RULE_INT ) ) otherlv_14= '..' - { - // InternalValid.g:1041:4: ( (lv_min_13_0= RULE_INT ) ) - // InternalValid.g:1042:5: (lv_min_13_0= RULE_INT ) - { - // InternalValid.g:1042:5: (lv_min_13_0= RULE_INT ) - // InternalValid.g:1043:6: lv_min_13_0= RULE_INT - { - lv_min_13_0=(Token)match(input,RULE_INT,FOLLOW_21); - - newLeafNode(lv_min_13_0, grammarAccess.getRangeRuleAccess().getMinINTTerminalRuleCall_9_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - current, - "min", - lv_min_13_0, - "org.eclipse.xtext.common.Terminals.INT"); - - - } - - - } - - otherlv_14=(Token)match(input,21,FOLLOW_20); - - newLeafNode(otherlv_14, grammarAccess.getRangeRuleAccess().getFullStopFullStopKeyword_9_1()); - - - } - break; - - } - - // InternalValid.g:1064:3: ( (lv_max_15_0= RULE_INT ) ) - // InternalValid.g:1065:4: (lv_max_15_0= RULE_INT ) - { - // InternalValid.g:1065:4: (lv_max_15_0= RULE_INT ) - // InternalValid.g:1066:5: lv_max_15_0= RULE_INT - { - lv_max_15_0=(Token)match(input,RULE_INT,FOLLOW_14); - - newLeafNode(lv_max_15_0, grammarAccess.getRangeRuleAccess().getMaxINTTerminalRuleCall_10_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getRangeRuleRule()); - } - setWithLastConsumed( - current, - "max", - lv_max_15_0, - "org.eclipse.xtext.common.Terminals.INT"); - - - } - - - } - - otherlv_16=(Token)match(input,19,FOLLOW_9); - - newLeafNode(otherlv_16, grammarAccess.getRangeRuleAccess().getContextKeyword_11()); - - otherlv_17=(Token)match(input,15,FOLLOW_6); - - newLeafNode(otherlv_17, grammarAccess.getRangeRuleAccess().getLeftCurlyBracketKeyword_12()); - - // InternalValid.g:1090:3: ( (lv_contexts_18_0= ruleSimpleContext ) )+ - int cnt19=0; - loop19: - do { - int alt19=2; - int LA19_0 = input.LA(1); - - if ( (LA19_0==RULE_ID) ) { - alt19=1; - } - - - switch (alt19) { - case 1 : - // InternalValid.g:1091:4: (lv_contexts_18_0= ruleSimpleContext ) - { - // InternalValid.g:1091:4: (lv_contexts_18_0= ruleSimpleContext ) - // InternalValid.g:1092:5: lv_contexts_18_0= ruleSimpleContext - { - - newCompositeNode(grammarAccess.getRangeRuleAccess().getContextsSimpleContextParserRuleCall_13_0()); - - pushFollow(FOLLOW_15); - lv_contexts_18_0=ruleSimpleContext(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getRangeRuleRule()); - } - add( - current, - "contexts", - lv_contexts_18_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SimpleContext"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - if ( cnt19 >= 1 ) break loop19; - EarlyExitException eee = - new EarlyExitException(19, input); - throw eee; - } - cnt19++; - } while (true); - - otherlv_19=(Token)match(input,16,FOLLOW_2); - - newLeafNode(otherlv_19, grammarAccess.getRangeRuleAccess().getRightCurlyBracketKeyword_14()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleRangeRule" - - - // $ANTLR start "entryRuleUniqueRule" - // InternalValid.g:1117:1: entryRuleUniqueRule returns [EObject current=null] : iv_ruleUniqueRule= ruleUniqueRule EOF ; - public final EObject entryRuleUniqueRule() throws RecognitionException { - EObject current = null; - - EObject iv_ruleUniqueRule = null; - - - try { - // InternalValid.g:1117:51: (iv_ruleUniqueRule= ruleUniqueRule EOF ) - // InternalValid.g:1118:2: iv_ruleUniqueRule= ruleUniqueRule EOF - { - newCompositeNode(grammarAccess.getUniqueRuleRule()); - pushFollow(FOLLOW_1); - iv_ruleUniqueRule=ruleUniqueRule(); - - state._fsp--; - - current =iv_ruleUniqueRule; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleUniqueRule" - - - // $ANTLR start "ruleUniqueRule" - // InternalValid.g:1124:1: ruleUniqueRule returns [EObject current=null] : ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'unique' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'context' otherlv_13= '{' ( (lv_contexts_14_0= ruleDuplicateContext ) )+ otherlv_15= '}' ) ; - public final EObject ruleUniqueRule() throws RecognitionException { - EObject current = null; - - Token lv_optional_1_0=null; - Token otherlv_3=null; - Token lv_name_5_0=null; - Token otherlv_6=null; - Token lv_label_7_0=null; - Token otherlv_8=null; - Token lv_description_9_0=null; - Token otherlv_10=null; - Token lv_message_11_0=null; - Token otherlv_12=null; - Token otherlv_13=null; - Token otherlv_15=null; - Enumerator lv_checkKind_2_0 = null; - - Enumerator lv_severity_4_0 = null; - - EObject lv_contexts_14_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:1130:2: ( ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'unique' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'context' otherlv_13= '{' ( (lv_contexts_14_0= ruleDuplicateContext ) )+ otherlv_15= '}' ) ) - // InternalValid.g:1131:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'unique' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'context' otherlv_13= '{' ( (lv_contexts_14_0= ruleDuplicateContext ) )+ otherlv_15= '}' ) - { - // InternalValid.g:1131:2: ( ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'unique' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'context' otherlv_13= '{' ( (lv_contexts_14_0= ruleDuplicateContext ) )+ otherlv_15= '}' ) - // InternalValid.g:1132:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) otherlv_3= 'unique' ( (lv_severity_4_0= ruleSeverityKind ) ) ( (lv_name_5_0= RULE_ID ) ) otherlv_6= 'label' ( (lv_label_7_0= RULE_STRING ) ) (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? otherlv_12= 'context' otherlv_13= '{' ( (lv_contexts_14_0= ruleDuplicateContext ) )+ otherlv_15= '}' - { - // InternalValid.g:1132:3: ( ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) ) - // InternalValid.g:1133:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - { - // InternalValid.g:1133:4: ( ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) ) - // InternalValid.g:1134:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - { - - getUnorderedGroupHelper().enter(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - - // InternalValid.g:1137:5: ( ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* ) - // InternalValid.g:1138:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - { - // InternalValid.g:1138:6: ( ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) | ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) )* - loop20: - do { - int alt20=3; - int LA20_0 = input.LA(1); - - if ( LA20_0 == 17 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0) ) { - alt20=1; - } - else if ( LA20_0 >= 31 && LA20_0 <= 33 && getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1) ) { - alt20=2; - } - - - switch (alt20) { - case 1 : - // InternalValid.g:1139:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - { - // InternalValid.g:1139:4: ({...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) ) - // InternalValid.g:1140:5: {...}? => ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0) ) { - throw new FailedPredicateException(input, "ruleUniqueRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0)"); - } - // InternalValid.g:1140:107: ( ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) ) - // InternalValid.g:1141:6: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 0); - - // InternalValid.g:1144:9: ({...}? => ( (lv_optional_1_0= 'optional' ) ) ) - // InternalValid.g:1144:10: {...}? => ( (lv_optional_1_0= 'optional' ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleUniqueRule", "true"); - } - // InternalValid.g:1144:19: ( (lv_optional_1_0= 'optional' ) ) - // InternalValid.g:1144:20: (lv_optional_1_0= 'optional' ) - { - // InternalValid.g:1144:20: (lv_optional_1_0= 'optional' ) - // InternalValid.g:1145:10: lv_optional_1_0= 'optional' - { - lv_optional_1_0=(Token)match(input,17,FOLLOW_26); - - newLeafNode(lv_optional_1_0, grammarAccess.getUniqueRuleAccess().getOptionalOptionalKeyword_0_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed(current, "optional", lv_optional_1_0 != null, "optional"); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - case 2 : - // InternalValid.g:1162:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - { - // InternalValid.g:1162:4: ({...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) ) - // InternalValid.g:1163:5: {...}? => ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - { - if ( ! getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1) ) { - throw new FailedPredicateException(input, "ruleUniqueRule", "getUnorderedGroupHelper().canSelect(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1)"); - } - // InternalValid.g:1163:107: ( ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) ) - // InternalValid.g:1164:6: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - { - - getUnorderedGroupHelper().select(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0(), 1); - - // InternalValid.g:1167:9: ({...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) ) - // InternalValid.g:1167:10: {...}? => ( (lv_checkKind_2_0= ruleCheckKind ) ) - { - if ( !((true)) ) { - throw new FailedPredicateException(input, "ruleUniqueRule", "true"); - } - // InternalValid.g:1167:19: ( (lv_checkKind_2_0= ruleCheckKind ) ) - // InternalValid.g:1167:20: (lv_checkKind_2_0= ruleCheckKind ) - { - // InternalValid.g:1167:20: (lv_checkKind_2_0= ruleCheckKind ) - // InternalValid.g:1168:10: lv_checkKind_2_0= ruleCheckKind - { - - newCompositeNode(grammarAccess.getUniqueRuleAccess().getCheckKindCheckKindEnumRuleCall_0_1_0()); - - pushFollow(FOLLOW_26); - lv_checkKind_2_0=ruleCheckKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getUniqueRuleRule()); - } - set( - current, - "checkKind", - lv_checkKind_2_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - - } - - - getUnorderedGroupHelper().returnFromSelection(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - - - } - - - } - - - } - break; - - default : - break loop20; - } - } while (true); - - - } - - - } - - - getUnorderedGroupHelper().leave(grammarAccess.getUniqueRuleAccess().getUnorderedGroup_0()); - - - } - - otherlv_3=(Token)match(input,23,FOLLOW_11); - - newLeafNode(otherlv_3, grammarAccess.getUniqueRuleAccess().getUniqueKeyword_1()); - - // InternalValid.g:1201:3: ( (lv_severity_4_0= ruleSeverityKind ) ) - // InternalValid.g:1202:4: (lv_severity_4_0= ruleSeverityKind ) - { - // InternalValid.g:1202:4: (lv_severity_4_0= ruleSeverityKind ) - // InternalValid.g:1203:5: lv_severity_4_0= ruleSeverityKind - { - - newCompositeNode(grammarAccess.getUniqueRuleAccess().getSeveritySeverityKindEnumRuleCall_2_0()); - - pushFollow(FOLLOW_6); - lv_severity_4_0=ruleSeverityKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getUniqueRuleRule()); - } - set( - current, - "severity", - lv_severity_4_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:1220:3: ( (lv_name_5_0= RULE_ID ) ) - // InternalValid.g:1221:4: (lv_name_5_0= RULE_ID ) - { - // InternalValid.g:1221:4: (lv_name_5_0= RULE_ID ) - // InternalValid.g:1222:5: lv_name_5_0= RULE_ID - { - lv_name_5_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_5_0, grammarAccess.getUniqueRuleAccess().getNameIDTerminalRuleCall_3_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_5_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - otherlv_6=(Token)match(input,13,FOLLOW_5); - - newLeafNode(otherlv_6, grammarAccess.getUniqueRuleAccess().getLabelKeyword_4()); - - // InternalValid.g:1242:3: ( (lv_label_7_0= RULE_STRING ) ) - // InternalValid.g:1243:4: (lv_label_7_0= RULE_STRING ) - { - // InternalValid.g:1243:4: (lv_label_7_0= RULE_STRING ) - // InternalValid.g:1244:5: lv_label_7_0= RULE_STRING - { - lv_label_7_0=(Token)match(input,RULE_STRING,FOLLOW_27); - - newLeafNode(lv_label_7_0, grammarAccess.getUniqueRuleAccess().getLabelSTRINGTerminalRuleCall_5_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - current, - "label", - lv_label_7_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - // InternalValid.g:1260:3: (otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) )? - int alt21=2; - int LA21_0 = input.LA(1); - - if ( (LA21_0==14) ) { - alt21=1; - } - switch (alt21) { - case 1 : - // InternalValid.g:1261:4: otherlv_8= 'description' ( (lv_description_9_0= RULE_STRING ) ) - { - otherlv_8=(Token)match(input,14,FOLLOW_5); - - newLeafNode(otherlv_8, grammarAccess.getUniqueRuleAccess().getDescriptionKeyword_6_0()); - - // InternalValid.g:1265:4: ( (lv_description_9_0= RULE_STRING ) ) - // InternalValid.g:1266:5: (lv_description_9_0= RULE_STRING ) - { - // InternalValid.g:1266:5: (lv_description_9_0= RULE_STRING ) - // InternalValid.g:1267:6: lv_description_9_0= RULE_STRING - { - lv_description_9_0=(Token)match(input,RULE_STRING,FOLLOW_28); - - newLeafNode(lv_description_9_0, grammarAccess.getUniqueRuleAccess().getDescriptionSTRINGTerminalRuleCall_6_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - current, - "description", - lv_description_9_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - // InternalValid.g:1284:3: (otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) )? - int alt22=2; - int LA22_0 = input.LA(1); - - if ( (LA22_0==18) ) { - alt22=1; - } - switch (alt22) { - case 1 : - // InternalValid.g:1285:4: otherlv_10= 'message' ( (lv_message_11_0= RULE_STRING ) ) - { - otherlv_10=(Token)match(input,18,FOLLOW_5); - - newLeafNode(otherlv_10, grammarAccess.getUniqueRuleAccess().getMessageKeyword_7_0()); - - // InternalValid.g:1289:4: ( (lv_message_11_0= RULE_STRING ) ) - // InternalValid.g:1290:5: (lv_message_11_0= RULE_STRING ) - { - // InternalValid.g:1290:5: (lv_message_11_0= RULE_STRING ) - // InternalValid.g:1291:6: lv_message_11_0= RULE_STRING - { - lv_message_11_0=(Token)match(input,RULE_STRING,FOLLOW_14); - - newLeafNode(lv_message_11_0, grammarAccess.getUniqueRuleAccess().getMessageSTRINGTerminalRuleCall_7_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getUniqueRuleRule()); - } - setWithLastConsumed( - current, - "message", - lv_message_11_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - - } - break; - - } - - otherlv_12=(Token)match(input,19,FOLLOW_9); - - newLeafNode(otherlv_12, grammarAccess.getUniqueRuleAccess().getContextKeyword_8()); - - otherlv_13=(Token)match(input,15,FOLLOW_6); - - newLeafNode(otherlv_13, grammarAccess.getUniqueRuleAccess().getLeftCurlyBracketKeyword_9()); - - // InternalValid.g:1316:3: ( (lv_contexts_14_0= ruleDuplicateContext ) )+ - int cnt23=0; - loop23: - do { - int alt23=2; - int LA23_0 = input.LA(1); - - if ( (LA23_0==RULE_ID) ) { - alt23=1; - } - - - switch (alt23) { - case 1 : - // InternalValid.g:1317:4: (lv_contexts_14_0= ruleDuplicateContext ) - { - // InternalValid.g:1317:4: (lv_contexts_14_0= ruleDuplicateContext ) - // InternalValid.g:1318:5: lv_contexts_14_0= ruleDuplicateContext - { - - newCompositeNode(grammarAccess.getUniqueRuleAccess().getContextsDuplicateContextParserRuleCall_10_0()); - - pushFollow(FOLLOW_15); - lv_contexts_14_0=ruleDuplicateContext(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getUniqueRuleRule()); - } - add( - current, - "contexts", - lv_contexts_14_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.DuplicateContext"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - if ( cnt23 >= 1 ) break loop23; - EarlyExitException eee = - new EarlyExitException(23, input); - throw eee; - } - cnt23++; - } while (true); - - otherlv_15=(Token)match(input,16,FOLLOW_2); - - newLeafNode(otherlv_15, grammarAccess.getUniqueRuleAccess().getRightCurlyBracketKeyword_11()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleUniqueRule" - - - // $ANTLR start "entryRuleSimpleContext" - // InternalValid.g:1343:1: entryRuleSimpleContext returns [EObject current=null] : iv_ruleSimpleContext= ruleSimpleContext EOF ; - public final EObject entryRuleSimpleContext() throws RecognitionException { - EObject current = null; - - EObject iv_ruleSimpleContext = null; - - - try { - // InternalValid.g:1343:54: (iv_ruleSimpleContext= ruleSimpleContext EOF ) - // InternalValid.g:1344:2: iv_ruleSimpleContext= ruleSimpleContext EOF - { - newCompositeNode(grammarAccess.getSimpleContextRule()); - pushFollow(FOLLOW_1); - iv_ruleSimpleContext=ruleSimpleContext(); - - state._fsp--; - - current =iv_ruleSimpleContext; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleSimpleContext" - - - // $ANTLR start "ruleSimpleContext" - // InternalValid.g:1350:1: ruleSimpleContext returns [EObject current=null] : ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= ';' ) ; - public final EObject ruleSimpleContext() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_3=null; - - - enterRule(); - - try { - // InternalValid.g:1356:2: ( ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= ';' ) ) - // InternalValid.g:1357:2: ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= ';' ) - { - // InternalValid.g:1357:2: ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= ';' ) - // InternalValid.g:1358:3: ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= ';' - { - // InternalValid.g:1358:3: ( ( ruleQualifiedID ) ) - // InternalValid.g:1359:4: ( ruleQualifiedID ) - { - // InternalValid.g:1359:4: ( ruleQualifiedID ) - // InternalValid.g:1360:5: ruleQualifiedID - { - - if (current==null) { - current = createModelElement(grammarAccess.getSimpleContextRule()); - } - - - newCompositeNode(grammarAccess.getSimpleContextAccess().getContextTypeEClassCrossReference_0_0()); - - pushFollow(FOLLOW_29); - ruleQualifiedID(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:1374:3: (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? - int alt24=2; - int LA24_0 = input.LA(1); - - if ( (LA24_0==24) ) { - alt24=1; - } - switch (alt24) { - case 1 : - // InternalValid.g:1375:4: otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) - { - otherlv_1=(Token)match(input,24,FOLLOW_6); - - newLeafNode(otherlv_1, grammarAccess.getSimpleContextAccess().getNumberSignKeyword_1_0()); - - // InternalValid.g:1379:4: ( (otherlv_2= RULE_ID ) ) - // InternalValid.g:1380:5: (otherlv_2= RULE_ID ) - { - // InternalValid.g:1380:5: (otherlv_2= RULE_ID ) - // InternalValid.g:1381:6: otherlv_2= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getSimpleContextRule()); - } - - otherlv_2=(Token)match(input,RULE_ID,FOLLOW_30); - - newLeafNode(otherlv_2, grammarAccess.getSimpleContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - - - } - - - } - - - } - break; - - } - - otherlv_3=(Token)match(input,25,FOLLOW_2); - - newLeafNode(otherlv_3, grammarAccess.getSimpleContextAccess().getSemicolonKeyword_2()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleSimpleContext" - - - // $ANTLR start "entryRuleDuplicateContext" - // InternalValid.g:1401:1: entryRuleDuplicateContext returns [EObject current=null] : iv_ruleDuplicateContext= ruleDuplicateContext EOF ; - public final EObject entryRuleDuplicateContext() throws RecognitionException { - EObject current = null; - - EObject iv_ruleDuplicateContext = null; - - - try { - // InternalValid.g:1401:57: (iv_ruleDuplicateContext= ruleDuplicateContext EOF ) - // InternalValid.g:1402:2: iv_ruleDuplicateContext= ruleDuplicateContext EOF - { - newCompositeNode(grammarAccess.getDuplicateContextRule()); - pushFollow(FOLLOW_1); - iv_ruleDuplicateContext=ruleDuplicateContext(); - - state._fsp--; - - current =iv_ruleDuplicateContext; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleDuplicateContext" - - - // $ANTLR start "ruleDuplicateContext" - // InternalValid.g:1408:1: ruleDuplicateContext returns [EObject current=null] : ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= 'marker' ( ( ruleQualifiedID ) ) otherlv_5= '#' ( (otherlv_6= RULE_ID ) )? otherlv_7= ';' ) ; - public final EObject ruleDuplicateContext() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token otherlv_3=null; - Token otherlv_5=null; - Token otherlv_6=null; - Token otherlv_7=null; - - - enterRule(); - - try { - // InternalValid.g:1414:2: ( ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= 'marker' ( ( ruleQualifiedID ) ) otherlv_5= '#' ( (otherlv_6= RULE_ID ) )? otherlv_7= ';' ) ) - // InternalValid.g:1415:2: ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= 'marker' ( ( ruleQualifiedID ) ) otherlv_5= '#' ( (otherlv_6= RULE_ID ) )? otherlv_7= ';' ) - { - // InternalValid.g:1415:2: ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= 'marker' ( ( ruleQualifiedID ) ) otherlv_5= '#' ( (otherlv_6= RULE_ID ) )? otherlv_7= ';' ) - // InternalValid.g:1416:3: ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? otherlv_3= 'marker' ( ( ruleQualifiedID ) ) otherlv_5= '#' ( (otherlv_6= RULE_ID ) )? otherlv_7= ';' - { - // InternalValid.g:1416:3: ( ( ruleQualifiedID ) ) - // InternalValid.g:1417:4: ( ruleQualifiedID ) - { - // InternalValid.g:1417:4: ( ruleQualifiedID ) - // InternalValid.g:1418:5: ruleQualifiedID - { - - if (current==null) { - current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - - - newCompositeNode(grammarAccess.getDuplicateContextAccess().getContextTypeEClassCrossReference_0_0()); - - pushFollow(FOLLOW_31); - ruleQualifiedID(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:1432:3: (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? - int alt25=2; - int LA25_0 = input.LA(1); - - if ( (LA25_0==24) ) { - alt25=1; - } - switch (alt25) { - case 1 : - // InternalValid.g:1433:4: otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) - { - otherlv_1=(Token)match(input,24,FOLLOW_6); - - newLeafNode(otherlv_1, grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_1_0()); - - // InternalValid.g:1437:4: ( (otherlv_2= RULE_ID ) ) - // InternalValid.g:1438:5: (otherlv_2= RULE_ID ) - { - // InternalValid.g:1438:5: (otherlv_2= RULE_ID ) - // InternalValid.g:1439:6: otherlv_2= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - - otherlv_2=(Token)match(input,RULE_ID,FOLLOW_32); - - newLeafNode(otherlv_2, grammarAccess.getDuplicateContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - - - } - - - } - - - } - break; - - } - - otherlv_3=(Token)match(input,26,FOLLOW_6); - - newLeafNode(otherlv_3, grammarAccess.getDuplicateContextAccess().getMarkerKeyword_2()); - - // InternalValid.g:1455:3: ( ( ruleQualifiedID ) ) - // InternalValid.g:1456:4: ( ruleQualifiedID ) - { - // InternalValid.g:1456:4: ( ruleQualifiedID ) - // InternalValid.g:1457:5: ruleQualifiedID - { - - if (current==null) { - current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - - - newCompositeNode(grammarAccess.getDuplicateContextAccess().getMarkerTypeEClassCrossReference_3_0()); - - pushFollow(FOLLOW_33); - ruleQualifiedID(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - otherlv_5=(Token)match(input,24,FOLLOW_34); - - newLeafNode(otherlv_5, grammarAccess.getDuplicateContextAccess().getNumberSignKeyword_4()); - - // InternalValid.g:1475:3: ( (otherlv_6= RULE_ID ) )? - int alt26=2; - int LA26_0 = input.LA(1); - - if ( (LA26_0==RULE_ID) ) { - alt26=1; - } - switch (alt26) { - case 1 : - // InternalValid.g:1476:4: (otherlv_6= RULE_ID ) - { - // InternalValid.g:1476:4: (otherlv_6= RULE_ID ) - // InternalValid.g:1477:5: otherlv_6= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getDuplicateContextRule()); - } - - otherlv_6=(Token)match(input,RULE_ID,FOLLOW_30); - - newLeafNode(otherlv_6, grammarAccess.getDuplicateContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_5_0()); - - - } - - - } - break; - - } - - otherlv_7=(Token)match(input,25,FOLLOW_2); - - newLeafNode(otherlv_7, grammarAccess.getDuplicateContextAccess().getSemicolonKeyword_6()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleDuplicateContext" - - - // $ANTLR start "entryRuleNativeContext" - // InternalValid.g:1496:1: entryRuleNativeContext returns [EObject current=null] : iv_ruleNativeContext= ruleNativeContext EOF ; - public final EObject entryRuleNativeContext() throws RecognitionException { - EObject current = null; - - EObject iv_ruleNativeContext = null; - - - try { - // InternalValid.g:1496:54: (iv_ruleNativeContext= ruleNativeContext EOF ) - // InternalValid.g:1497:2: iv_ruleNativeContext= ruleNativeContext EOF - { - newCompositeNode(grammarAccess.getNativeContextRule()); - pushFollow(FOLLOW_1); - iv_ruleNativeContext=ruleNativeContext(); - - state._fsp--; - - current =iv_ruleNativeContext; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleNativeContext" - - - // $ANTLR start "ruleNativeContext" - // InternalValid.g:1503:1: ruleNativeContext returns [EObject current=null] : ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? ( ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) )? (otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) )? (otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' )? otherlv_13= ';' ) ; - public final EObject ruleNativeContext() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token otherlv_2=null; - Token lv_named_3_0=null; - Token lv_givenName_4_0=null; - Token otherlv_5=null; - Token otherlv_7=null; - Token otherlv_8=null; - Token otherlv_9=null; - Token otherlv_10=null; - Token otherlv_12=null; - Token otherlv_13=null; - EObject lv_quickFixes_11_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:1509:2: ( ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? ( ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) )? (otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) )? (otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' )? otherlv_13= ';' ) ) - // InternalValid.g:1510:2: ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? ( ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) )? (otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) )? (otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' )? otherlv_13= ';' ) - { - // InternalValid.g:1510:2: ( ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? ( ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) )? (otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) )? (otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' )? otherlv_13= ';' ) - // InternalValid.g:1511:3: ( ( ruleQualifiedID ) ) (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? ( ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) )? (otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) )? (otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' )? otherlv_13= ';' - { - // InternalValid.g:1511:3: ( ( ruleQualifiedID ) ) - // InternalValid.g:1512:4: ( ruleQualifiedID ) - { - // InternalValid.g:1512:4: ( ruleQualifiedID ) - // InternalValid.g:1513:5: ruleQualifiedID - { - - if (current==null) { - current = createModelElement(grammarAccess.getNativeContextRule()); - } - - - newCompositeNode(grammarAccess.getNativeContextAccess().getContextTypeEClassCrossReference_0_0()); - - pushFollow(FOLLOW_35); - ruleQualifiedID(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:1527:3: (otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) )? - int alt27=2; - int LA27_0 = input.LA(1); - - if ( (LA27_0==24) ) { - alt27=1; - } - switch (alt27) { - case 1 : - // InternalValid.g:1528:4: otherlv_1= '#' ( (otherlv_2= RULE_ID ) ) - { - otherlv_1=(Token)match(input,24,FOLLOW_6); - - newLeafNode(otherlv_1, grammarAccess.getNativeContextAccess().getNumberSignKeyword_1_0()); - - // InternalValid.g:1532:4: ( (otherlv_2= RULE_ID ) ) - // InternalValid.g:1533:5: (otherlv_2= RULE_ID ) - { - // InternalValid.g:1533:5: (otherlv_2= RULE_ID ) - // InternalValid.g:1534:6: otherlv_2= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getNativeContextRule()); - } - - otherlv_2=(Token)match(input,RULE_ID,FOLLOW_36); - - newLeafNode(otherlv_2, grammarAccess.getNativeContextAccess().getContextFeatureEStructuralFeatureCrossReference_1_1_0()); - - - } - - - } - - - } - break; - - } - - // InternalValid.g:1546:3: ( ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) )? - int alt28=2; - int LA28_0 = input.LA(1); - - if ( (LA28_0==27) ) { - alt28=1; - } - switch (alt28) { - case 1 : - // InternalValid.g:1547:4: ( (lv_named_3_0= 'as' ) ) ( (lv_givenName_4_0= RULE_ID ) ) - { - // InternalValid.g:1547:4: ( (lv_named_3_0= 'as' ) ) - // InternalValid.g:1548:5: (lv_named_3_0= 'as' ) - { - // InternalValid.g:1548:5: (lv_named_3_0= 'as' ) - // InternalValid.g:1549:6: lv_named_3_0= 'as' - { - lv_named_3_0=(Token)match(input,27,FOLLOW_6); - - newLeafNode(lv_named_3_0, grammarAccess.getNativeContextAccess().getNamedAsKeyword_2_0_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeContextRule()); - } - setWithLastConsumed(current, "named", lv_named_3_0 != null, "as"); - - - } - - - } - - // InternalValid.g:1561:4: ( (lv_givenName_4_0= RULE_ID ) ) - // InternalValid.g:1562:5: (lv_givenName_4_0= RULE_ID ) - { - // InternalValid.g:1562:5: (lv_givenName_4_0= RULE_ID ) - // InternalValid.g:1563:6: lv_givenName_4_0= RULE_ID - { - lv_givenName_4_0=(Token)match(input,RULE_ID,FOLLOW_37); - - newLeafNode(lv_givenName_4_0, grammarAccess.getNativeContextAccess().getGivenNameIDTerminalRuleCall_2_1_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getNativeContextRule()); - } - setWithLastConsumed( - current, - "givenName", - lv_givenName_4_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - - } - break; - - } - - // InternalValid.g:1580:3: (otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) )? - int alt29=2; - int LA29_0 = input.LA(1); - - if ( (LA29_0==26) ) { - alt29=1; - } - switch (alt29) { - case 1 : - // InternalValid.g:1581:4: otherlv_5= 'marker' ( ( ruleQualifiedID ) ) (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) - { - otherlv_5=(Token)match(input,26,FOLLOW_6); - - newLeafNode(otherlv_5, grammarAccess.getNativeContextAccess().getMarkerKeyword_3_0()); - - // InternalValid.g:1585:4: ( ( ruleQualifiedID ) ) - // InternalValid.g:1586:5: ( ruleQualifiedID ) - { - // InternalValid.g:1586:5: ( ruleQualifiedID ) - // InternalValid.g:1587:6: ruleQualifiedID - { - - if (current==null) { - current = createModelElement(grammarAccess.getNativeContextRule()); - } - - - newCompositeNode(grammarAccess.getNativeContextAccess().getMarkerTypeEClassCrossReference_3_1_0()); - - pushFollow(FOLLOW_33); - ruleQualifiedID(); - - state._fsp--; - - - afterParserOrEnumRuleCall(); - - - } - - - } - - // InternalValid.g:1601:4: (otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) ) - // InternalValid.g:1602:5: otherlv_7= '#' ( (otherlv_8= RULE_ID ) ) - { - otherlv_7=(Token)match(input,24,FOLLOW_6); - - newLeafNode(otherlv_7, grammarAccess.getNativeContextAccess().getNumberSignKeyword_3_2_0()); - - // InternalValid.g:1606:5: ( (otherlv_8= RULE_ID ) ) - // InternalValid.g:1607:6: (otherlv_8= RULE_ID ) - { - // InternalValid.g:1607:6: (otherlv_8= RULE_ID ) - // InternalValid.g:1608:7: otherlv_8= RULE_ID - { - - if (current==null) { - current = createModelElement(grammarAccess.getNativeContextRule()); - } - - otherlv_8=(Token)match(input,RULE_ID,FOLLOW_38); - - newLeafNode(otherlv_8, grammarAccess.getNativeContextAccess().getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0()); - - - } - - - } - - - } - - - } - break; - - } - - // InternalValid.g:1621:3: (otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' )? - int alt31=2; - int LA31_0 = input.LA(1); - - if ( (LA31_0==28) ) { - alt31=1; - } - switch (alt31) { - case 1 : - // InternalValid.g:1622:4: otherlv_9= 'quickfixes' otherlv_10= '{' ( (lv_quickFixes_11_0= ruleQuickFix ) )+ otherlv_12= '}' - { - otherlv_9=(Token)match(input,28,FOLLOW_9); - - newLeafNode(otherlv_9, grammarAccess.getNativeContextAccess().getQuickfixesKeyword_4_0()); - - otherlv_10=(Token)match(input,15,FOLLOW_39); - - newLeafNode(otherlv_10, grammarAccess.getNativeContextAccess().getLeftCurlyBracketKeyword_4_1()); - - // InternalValid.g:1630:4: ( (lv_quickFixes_11_0= ruleQuickFix ) )+ - int cnt30=0; - loop30: - do { - int alt30=2; - int LA30_0 = input.LA(1); - - if ( (LA30_0==29||(LA30_0>=36 && LA30_0<=37)) ) { - alt30=1; - } - - - switch (alt30) { - case 1 : - // InternalValid.g:1631:5: (lv_quickFixes_11_0= ruleQuickFix ) - { - // InternalValid.g:1631:5: (lv_quickFixes_11_0= ruleQuickFix ) - // InternalValid.g:1632:6: lv_quickFixes_11_0= ruleQuickFix - { - - newCompositeNode(grammarAccess.getNativeContextAccess().getQuickFixesQuickFixParserRuleCall_4_2_0()); - - pushFollow(FOLLOW_40); - lv_quickFixes_11_0=ruleQuickFix(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getNativeContextRule()); - } - add( - current, - "quickFixes", - lv_quickFixes_11_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.QuickFix"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - default : - if ( cnt30 >= 1 ) break loop30; - EarlyExitException eee = - new EarlyExitException(30, input); - throw eee; - } - cnt30++; - } while (true); - - otherlv_12=(Token)match(input,16,FOLLOW_30); - - newLeafNode(otherlv_12, grammarAccess.getNativeContextAccess().getRightCurlyBracketKeyword_4_3()); - - - } - break; - - } - - otherlv_13=(Token)match(input,25,FOLLOW_2); - - newLeafNode(otherlv_13, grammarAccess.getNativeContextAccess().getSemicolonKeyword_5()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleNativeContext" - - - // $ANTLR start "entryRuleQuickFix" - // InternalValid.g:1662:1: entryRuleQuickFix returns [EObject current=null] : iv_ruleQuickFix= ruleQuickFix EOF ; - public final EObject entryRuleQuickFix() throws RecognitionException { - EObject current = null; - - EObject iv_ruleQuickFix = null; - - - try { - // InternalValid.g:1662:49: (iv_ruleQuickFix= ruleQuickFix EOF ) - // InternalValid.g:1663:2: iv_ruleQuickFix= ruleQuickFix EOF - { - newCompositeNode(grammarAccess.getQuickFixRule()); - pushFollow(FOLLOW_1); - iv_ruleQuickFix=ruleQuickFix(); - - state._fsp--; - - current =iv_ruleQuickFix; - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQuickFix" - - - // $ANTLR start "ruleQuickFix" - // InternalValid.g:1669:1: ruleQuickFix returns [EObject current=null] : ( ( (lv_quickFixKind_0_0= ruleQuickFixKind ) )? otherlv_1= 'fix' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'label' ( (lv_label_4_0= RULE_STRING ) ) otherlv_5= 'message' ( (lv_message_6_0= RULE_STRING ) ) otherlv_7= ';' ) ; - public final EObject ruleQuickFix() throws RecognitionException { - EObject current = null; - - Token otherlv_1=null; - Token lv_name_2_0=null; - Token otherlv_3=null; - Token lv_label_4_0=null; - Token otherlv_5=null; - Token lv_message_6_0=null; - Token otherlv_7=null; - Enumerator lv_quickFixKind_0_0 = null; - - - - enterRule(); - - try { - // InternalValid.g:1675:2: ( ( ( (lv_quickFixKind_0_0= ruleQuickFixKind ) )? otherlv_1= 'fix' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'label' ( (lv_label_4_0= RULE_STRING ) ) otherlv_5= 'message' ( (lv_message_6_0= RULE_STRING ) ) otherlv_7= ';' ) ) - // InternalValid.g:1676:2: ( ( (lv_quickFixKind_0_0= ruleQuickFixKind ) )? otherlv_1= 'fix' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'label' ( (lv_label_4_0= RULE_STRING ) ) otherlv_5= 'message' ( (lv_message_6_0= RULE_STRING ) ) otherlv_7= ';' ) - { - // InternalValid.g:1676:2: ( ( (lv_quickFixKind_0_0= ruleQuickFixKind ) )? otherlv_1= 'fix' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'label' ( (lv_label_4_0= RULE_STRING ) ) otherlv_5= 'message' ( (lv_message_6_0= RULE_STRING ) ) otherlv_7= ';' ) - // InternalValid.g:1677:3: ( (lv_quickFixKind_0_0= ruleQuickFixKind ) )? otherlv_1= 'fix' ( (lv_name_2_0= RULE_ID ) ) otherlv_3= 'label' ( (lv_label_4_0= RULE_STRING ) ) otherlv_5= 'message' ( (lv_message_6_0= RULE_STRING ) ) otherlv_7= ';' - { - // InternalValid.g:1677:3: ( (lv_quickFixKind_0_0= ruleQuickFixKind ) )? - int alt32=2; - int LA32_0 = input.LA(1); - - if ( ((LA32_0>=36 && LA32_0<=37)) ) { - alt32=1; - } - switch (alt32) { - case 1 : - // InternalValid.g:1678:4: (lv_quickFixKind_0_0= ruleQuickFixKind ) - { - // InternalValid.g:1678:4: (lv_quickFixKind_0_0= ruleQuickFixKind ) - // InternalValid.g:1679:5: lv_quickFixKind_0_0= ruleQuickFixKind - { - - newCompositeNode(grammarAccess.getQuickFixAccess().getQuickFixKindQuickFixKindEnumRuleCall_0_0()); - - pushFollow(FOLLOW_41); - lv_quickFixKind_0_0=ruleQuickFixKind(); - - state._fsp--; - - - if (current==null) { - current = createModelElementForParent(grammarAccess.getQuickFixRule()); - } - set( - current, - "quickFixKind", - lv_quickFixKind_0_0, - "com.avaloq.tools.ddk.xtext.valid.Valid.QuickFixKind"); - afterParserOrEnumRuleCall(); - - - } - - - } - break; - - } - - otherlv_1=(Token)match(input,29,FOLLOW_6); - - newLeafNode(otherlv_1, grammarAccess.getQuickFixAccess().getFixKeyword_1()); - - // InternalValid.g:1700:3: ( (lv_name_2_0= RULE_ID ) ) - // InternalValid.g:1701:4: (lv_name_2_0= RULE_ID ) - { - // InternalValid.g:1701:4: (lv_name_2_0= RULE_ID ) - // InternalValid.g:1702:5: lv_name_2_0= RULE_ID - { - lv_name_2_0=(Token)match(input,RULE_ID,FOLLOW_7); - - newLeafNode(lv_name_2_0, grammarAccess.getQuickFixAccess().getNameIDTerminalRuleCall_2_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getQuickFixRule()); - } - setWithLastConsumed( - current, - "name", - lv_name_2_0, - "org.eclipse.xtext.common.Terminals.ID"); - - - } - - - } - - otherlv_3=(Token)match(input,13,FOLLOW_5); - - newLeafNode(otherlv_3, grammarAccess.getQuickFixAccess().getLabelKeyword_3()); - - // InternalValid.g:1722:3: ( (lv_label_4_0= RULE_STRING ) ) - // InternalValid.g:1723:4: (lv_label_4_0= RULE_STRING ) - { - // InternalValid.g:1723:4: (lv_label_4_0= RULE_STRING ) - // InternalValid.g:1724:5: lv_label_4_0= RULE_STRING - { - lv_label_4_0=(Token)match(input,RULE_STRING,FOLLOW_13); - - newLeafNode(lv_label_4_0, grammarAccess.getQuickFixAccess().getLabelSTRINGTerminalRuleCall_4_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getQuickFixRule()); - } - setWithLastConsumed( - current, - "label", - lv_label_4_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - otherlv_5=(Token)match(input,18,FOLLOW_5); - - newLeafNode(otherlv_5, grammarAccess.getQuickFixAccess().getMessageKeyword_5()); - - // InternalValid.g:1744:3: ( (lv_message_6_0= RULE_STRING ) ) - // InternalValid.g:1745:4: (lv_message_6_0= RULE_STRING ) - { - // InternalValid.g:1745:4: (lv_message_6_0= RULE_STRING ) - // InternalValid.g:1746:5: lv_message_6_0= RULE_STRING - { - lv_message_6_0=(Token)match(input,RULE_STRING,FOLLOW_30); - - newLeafNode(lv_message_6_0, grammarAccess.getQuickFixAccess().getMessageSTRINGTerminalRuleCall_6_0()); - - - if (current==null) { - current = createModelElement(grammarAccess.getQuickFixRule()); - } - setWithLastConsumed( - current, - "message", - lv_message_6_0, - "org.eclipse.xtext.common.Terminals.STRING"); - - - } - - - } - - otherlv_7=(Token)match(input,25,FOLLOW_2); - - newLeafNode(otherlv_7, grammarAccess.getQuickFixAccess().getSemicolonKeyword_7()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQuickFix" - - - // $ANTLR start "entryRuleQualifiedID" - // InternalValid.g:1770:1: entryRuleQualifiedID returns [String current=null] : iv_ruleQualifiedID= ruleQualifiedID EOF ; - public final String entryRuleQualifiedID() throws RecognitionException { - String current = null; - - AntlrDatatypeRuleToken iv_ruleQualifiedID = null; - - - try { - // InternalValid.g:1770:51: (iv_ruleQualifiedID= ruleQualifiedID EOF ) - // InternalValid.g:1771:2: iv_ruleQualifiedID= ruleQualifiedID EOF - { - newCompositeNode(grammarAccess.getQualifiedIDRule()); - pushFollow(FOLLOW_1); - iv_ruleQualifiedID=ruleQualifiedID(); - - state._fsp--; - - current =iv_ruleQualifiedID.getText(); - match(input,EOF,FOLLOW_2); - - } - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "entryRuleQualifiedID" - - - // $ANTLR start "ruleQualifiedID" - // InternalValid.g:1777:1: ruleQualifiedID returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : ( (this_ID_0= RULE_ID kw= '::' )* this_ID_2= RULE_ID ) ; - public final AntlrDatatypeRuleToken ruleQualifiedID() throws RecognitionException { - AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken(); - - Token this_ID_0=null; - Token kw=null; - Token this_ID_2=null; - - - enterRule(); - - try { - // InternalValid.g:1783:2: ( ( (this_ID_0= RULE_ID kw= '::' )* this_ID_2= RULE_ID ) ) - // InternalValid.g:1784:2: ( (this_ID_0= RULE_ID kw= '::' )* this_ID_2= RULE_ID ) - { - // InternalValid.g:1784:2: ( (this_ID_0= RULE_ID kw= '::' )* this_ID_2= RULE_ID ) - // InternalValid.g:1785:3: (this_ID_0= RULE_ID kw= '::' )* this_ID_2= RULE_ID - { - // InternalValid.g:1785:3: (this_ID_0= RULE_ID kw= '::' )* - loop33: - do { - int alt33=2; - int LA33_0 = input.LA(1); - - if ( (LA33_0==RULE_ID) ) { - int LA33_1 = input.LA(2); - - if ( (LA33_1==30) ) { - alt33=1; - } - - - } - - - switch (alt33) { - case 1 : - // InternalValid.g:1786:4: this_ID_0= RULE_ID kw= '::' - { - this_ID_0=(Token)match(input,RULE_ID,FOLLOW_42); - - current.merge(this_ID_0); - - - newLeafNode(this_ID_0, grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_0_0()); - - kw=(Token)match(input,30,FOLLOW_6); - - current.merge(kw); - newLeafNode(kw, grammarAccess.getQualifiedIDAccess().getColonColonKeyword_0_1()); - - - } - break; - - default : - break loop33; - } - } while (true); - - this_ID_2=(Token)match(input,RULE_ID,FOLLOW_2); - - current.merge(this_ID_2); - - - newLeafNode(this_ID_2, grammarAccess.getQualifiedIDAccess().getIDTerminalRuleCall_1()); - - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQualifiedID" - - - // $ANTLR start "ruleCheckKind" - // InternalValid.g:1810:1: ruleCheckKind returns [Enumerator current=null] : ( (enumLiteral_0= 'fast' ) | (enumLiteral_1= 'normal' ) | (enumLiteral_2= 'expensive' ) ) ; - public final Enumerator ruleCheckKind() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - Token enumLiteral_2=null; - - - enterRule(); - - try { - // InternalValid.g:1816:2: ( ( (enumLiteral_0= 'fast' ) | (enumLiteral_1= 'normal' ) | (enumLiteral_2= 'expensive' ) ) ) - // InternalValid.g:1817:2: ( (enumLiteral_0= 'fast' ) | (enumLiteral_1= 'normal' ) | (enumLiteral_2= 'expensive' ) ) - { - // InternalValid.g:1817:2: ( (enumLiteral_0= 'fast' ) | (enumLiteral_1= 'normal' ) | (enumLiteral_2= 'expensive' ) ) - int alt34=3; - switch ( input.LA(1) ) { - case 31: - { - alt34=1; - } - break; - case 32: - { - alt34=2; - } - break; - case 33: - { - alt34=3; - } - break; - default: - NoViableAltException nvae = - new NoViableAltException("", 34, 0, input); - - throw nvae; - } - - switch (alt34) { - case 1 : - // InternalValid.g:1818:3: (enumLiteral_0= 'fast' ) - { - // InternalValid.g:1818:3: (enumLiteral_0= 'fast' ) - // InternalValid.g:1819:4: enumLiteral_0= 'fast' - { - enumLiteral_0=(Token)match(input,31,FOLLOW_2); - - current = grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getCheckKindAccess().getFastEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // InternalValid.g:1826:3: (enumLiteral_1= 'normal' ) - { - // InternalValid.g:1826:3: (enumLiteral_1= 'normal' ) - // InternalValid.g:1827:4: enumLiteral_1= 'normal' - { - enumLiteral_1=(Token)match(input,32,FOLLOW_2); - - current = grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getCheckKindAccess().getNormalEnumLiteralDeclaration_1()); - - - } - - - } - break; - case 3 : - // InternalValid.g:1834:3: (enumLiteral_2= 'expensive' ) - { - // InternalValid.g:1834:3: (enumLiteral_2= 'expensive' ) - // InternalValid.g:1835:4: enumLiteral_2= 'expensive' - { - enumLiteral_2=(Token)match(input,33,FOLLOW_2); - - current = grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_2, grammarAccess.getCheckKindAccess().getExpensiveEnumLiteralDeclaration_2()); - - - } - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleCheckKind" - - - // $ANTLR start "ruleSeverityKind" - // InternalValid.g:1845:1: ruleSeverityKind returns [Enumerator current=null] : ( (enumLiteral_0= 'error' ) | (enumLiteral_1= 'warning' ) ) ; - public final Enumerator ruleSeverityKind() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - - - enterRule(); - - try { - // InternalValid.g:1851:2: ( ( (enumLiteral_0= 'error' ) | (enumLiteral_1= 'warning' ) ) ) - // InternalValid.g:1852:2: ( (enumLiteral_0= 'error' ) | (enumLiteral_1= 'warning' ) ) - { - // InternalValid.g:1852:2: ( (enumLiteral_0= 'error' ) | (enumLiteral_1= 'warning' ) ) - int alt35=2; - int LA35_0 = input.LA(1); - - if ( (LA35_0==34) ) { - alt35=1; - } - else if ( (LA35_0==35) ) { - alt35=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 35, 0, input); - - throw nvae; - } - switch (alt35) { - case 1 : - // InternalValid.g:1853:3: (enumLiteral_0= 'error' ) - { - // InternalValid.g:1853:3: (enumLiteral_0= 'error' ) - // InternalValid.g:1854:4: enumLiteral_0= 'error' - { - enumLiteral_0=(Token)match(input,34,FOLLOW_2); - - current = grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getSeverityKindAccess().getErrorEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // InternalValid.g:1861:3: (enumLiteral_1= 'warning' ) - { - // InternalValid.g:1861:3: (enumLiteral_1= 'warning' ) - // InternalValid.g:1862:4: enumLiteral_1= 'warning' - { - enumLiteral_1=(Token)match(input,35,FOLLOW_2); - - current = grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getSeverityKindAccess().getWarningEnumLiteralDeclaration_1()); - - - } - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleSeverityKind" - - - // $ANTLR start "ruleQuickFixKind" - // InternalValid.g:1872:1: ruleQuickFixKind returns [Enumerator current=null] : ( (enumLiteral_0= 'semantic' ) | (enumLiteral_1= 'textual' ) ) ; - public final Enumerator ruleQuickFixKind() throws RecognitionException { - Enumerator current = null; - - Token enumLiteral_0=null; - Token enumLiteral_1=null; - - - enterRule(); - - try { - // InternalValid.g:1878:2: ( ( (enumLiteral_0= 'semantic' ) | (enumLiteral_1= 'textual' ) ) ) - // InternalValid.g:1879:2: ( (enumLiteral_0= 'semantic' ) | (enumLiteral_1= 'textual' ) ) - { - // InternalValid.g:1879:2: ( (enumLiteral_0= 'semantic' ) | (enumLiteral_1= 'textual' ) ) - int alt36=2; - int LA36_0 = input.LA(1); - - if ( (LA36_0==36) ) { - alt36=1; - } - else if ( (LA36_0==37) ) { - alt36=2; - } - else { - NoViableAltException nvae = - new NoViableAltException("", 36, 0, input); - - throw nvae; - } - switch (alt36) { - case 1 : - // InternalValid.g:1880:3: (enumLiteral_0= 'semantic' ) - { - // InternalValid.g:1880:3: (enumLiteral_0= 'semantic' ) - // InternalValid.g:1881:4: enumLiteral_0= 'semantic' - { - enumLiteral_0=(Token)match(input,36,FOLLOW_2); - - current = grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_0, grammarAccess.getQuickFixKindAccess().getSemanticEnumLiteralDeclaration_0()); - - - } - - - } - break; - case 2 : - // InternalValid.g:1888:3: (enumLiteral_1= 'textual' ) - { - // InternalValid.g:1888:3: (enumLiteral_1= 'textual' ) - // InternalValid.g:1889:4: enumLiteral_1= 'textual' - { - enumLiteral_1=(Token)match(input,37,FOLLOW_2); - - current = grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1().getEnumLiteral().getInstance(); - newLeafNode(enumLiteral_1, grammarAccess.getQuickFixKindAccess().getTextualEnumLiteralDeclaration_1()); - - - } - - - } - break; - - } - - - } - - - leaveRule(); - - } - - catch (RecognitionException re) { - recover(input,re); - appendSkippedTokens(); - } - finally { - } - return current; - } - // $ANTLR end "ruleQuickFixKind" - - // Delegated rules - - - protected DFA5 dfa5 = new DFA5(this); - protected DFA6 dfa6 = new DFA6(this); - static final String dfa_1s = "\7\uffff"; - static final String dfa_2s = "\5\21\2\uffff"; - static final String dfa_3s = "\5\43\2\uffff"; - static final String dfa_4s = "\5\uffff\1\1\1\2"; - static final String dfa_5s = "\7\uffff}>"; - static final String[] dfa_6s = { - "\1\1\2\uffff\1\6\1\uffff\2\6\7\uffff\1\2\1\3\1\4\2\5", - "\1\1\2\uffff\1\6\1\uffff\2\6\7\uffff\1\2\1\3\1\4\2\5", - "\1\1\2\uffff\1\6\1\uffff\2\6\7\uffff\1\2\1\3\1\4\2\5", - "\1\1\2\uffff\1\6\1\uffff\2\6\7\uffff\1\2\1\3\1\4\2\5", - "\1\1\2\uffff\1\6\1\uffff\2\6\7\uffff\1\2\1\3\1\4\2\5", - "", - "" - }; - - 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 DFA5 extends DFA { - - public DFA5(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 5; - 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 "286:2: (this_NativeRule_0= ruleNativeRule | this_PredefinedRule_1= rulePredefinedRule )"; - } - } - static final String dfa_7s = "\10\uffff"; - static final String dfa_8s = "\5\21\3\uffff"; - static final String dfa_9s = "\5\41\3\uffff"; - static final String dfa_10s = "\5\uffff\1\1\1\2\1\3"; - static final String dfa_11s = "\10\uffff}>"; - static final String[] dfa_12s = { - "\1\1\2\uffff\1\5\1\uffff\1\6\1\7\7\uffff\1\2\1\3\1\4", - "\1\1\2\uffff\1\5\1\uffff\1\6\1\7\7\uffff\1\2\1\3\1\4", - "\1\1\2\uffff\1\5\1\uffff\1\6\1\7\7\uffff\1\2\1\3\1\4", - "\1\1\2\uffff\1\5\1\uffff\1\6\1\7\7\uffff\1\2\1\3\1\4", - "\1\1\2\uffff\1\5\1\uffff\1\6\1\7\7\uffff\1\2\1\3\1\4", - "", - "", - "" - }; - - static final short[] dfa_7 = DFA.unpackEncodedString(dfa_7s); - static final char[] dfa_8 = DFA.unpackEncodedStringToUnsignedChars(dfa_8s); - static final char[] dfa_9 = DFA.unpackEncodedStringToUnsignedChars(dfa_9s); - static final short[] dfa_10 = DFA.unpackEncodedString(dfa_10s); - static final short[] dfa_11 = DFA.unpackEncodedString(dfa_11s); - static final short[][] dfa_12 = unpackEncodedStringArray(dfa_12s); - - class DFA6 extends DFA { - - public DFA6(BaseRecognizer recognizer) { - this.recognizer = recognizer; - this.decisionNumber = 6; - this.eot = dfa_7; - this.eof = dfa_7; - this.min = dfa_8; - this.max = dfa_9; - this.accept = dfa_10; - this.special = dfa_11; - this.transition = dfa_12; - } - public String getDescription() { - return "322:2: (this_SizeRule_0= ruleSizeRule | this_RangeRule_1= ruleRangeRule | this_UniqueRule_2= ruleUniqueRule )"; - } - } - - - 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[]{0x0000000000001802L}); - public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000001002L}); - public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000000010L}); - public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000020L}); - public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002000L}); - public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x000000000000C000L}); - public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000008000L}); - public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000F80D30000L}); - public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000F80020000L}); - public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000044000L}); - 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[]{0x0000000000010020L}); - public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000380120000L}); - public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000000144000L}); - public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000000140000L}); - public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000000100000L}); - public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000000000040L}); - public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000000200000L}); - public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000380420000L}); - public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000000444000L}); - public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000000000440000L}); - public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000400000L}); - public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000000380820000L}); - public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x00000000000C4000L}); - public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x00000000000C0000L}); - public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000000003000000L}); - public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x0000000002000000L}); - public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000000005000000L}); - public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000004000000L}); - public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x0000000001000000L}); - public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000000002000020L}); - public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x000000001F000000L}); - public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x000000001E000000L}); - public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000000016000000L}); - public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000012000000L}); - public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000003020000000L}); - public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000003020010000L}); - public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000000020000000L}); - public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000040000000L}); - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/scoping/AbstractValidScopeProvider.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/scoping/AbstractValidScopeProvider.java deleted file mode 100644 index c7ae9b2abb..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/scoping/AbstractValidScopeProvider.java +++ /dev/null @@ -1,9 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.scoping; - -import org.eclipse.xtext.scoping.impl.DelegatingScopeProvider; - -public abstract class AbstractValidScopeProvider extends DelegatingScopeProvider { -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSemanticSequencer.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSemanticSequencer.java deleted file mode 100644 index d9a121bc79..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSemanticSequencer.java +++ /dev/null @@ -1,295 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.serializer; - -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -import com.avaloq.tools.ddk.xtext.valid.valid.Category; -import com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext; -import com.avaloq.tools.ddk.xtext.valid.valid.Import; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFix; -import com.avaloq.tools.ddk.xtext.valid.valid.RangeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext; -import com.avaloq.tools.ddk.xtext.valid.valid.SizeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidModel; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; -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; - -@SuppressWarnings("all") -public abstract class AbstractValidSemanticSequencer extends AbstractDelegatingSemanticSequencer { - - @Inject - private ValidGrammarAccess 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 == ValidPackage.eINSTANCE) - switch (semanticObject.eClass().getClassifierID()) { - case ValidPackage.CATEGORY: - sequence_Category(context, (Category) semanticObject); - return; - case ValidPackage.DUPLICATE_CONTEXT: - sequence_DuplicateContext(context, (DuplicateContext) semanticObject); - return; - case ValidPackage.IMPORT: - sequence_Import(context, (Import) semanticObject); - return; - case ValidPackage.NATIVE_CONTEXT: - sequence_NativeContext(context, (NativeContext) semanticObject); - return; - case ValidPackage.NATIVE_RULE: - sequence_NativeRule(context, (NativeRule) semanticObject); - return; - case ValidPackage.QUICK_FIX: - sequence_QuickFix(context, (QuickFix) semanticObject); - return; - case ValidPackage.RANGE_RULE: - sequence_RangeRule(context, (RangeRule) semanticObject); - return; - case ValidPackage.SIMPLE_CONTEXT: - sequence_SimpleContext(context, (SimpleContext) semanticObject); - return; - case ValidPackage.SIZE_RULE: - sequence_SizeRule(context, (SizeRule) semanticObject); - return; - case ValidPackage.UNIQUE_RULE: - sequence_UniqueRule(context, (UniqueRule) semanticObject); - return; - case ValidPackage.VALID_MODEL: - sequence_ValidModel(context, (ValidModel) semanticObject); - return; - } - if (errorAcceptor != null) - errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); - } - - /** - *
-	 * Contexts:
-	 *     Category returns Category
-	 *
-	 * Constraint:
-	 *     (name=ID label=STRING description=STRING? rules+=Rule*)
-	 * 
- */ - protected void sequence_Category(ISerializationContext context, Category semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Context returns DuplicateContext
-	 *     DuplicateContext returns DuplicateContext
-	 *
-	 * Constraint:
-	 *     (contextType=[EClass|QualifiedID] contextFeature=[EStructuralFeature|ID]? markerType=[EClass|QualifiedID] markerFeature=[EStructuralFeature|ID]?)
-	 * 
- */ - protected void sequence_DuplicateContext(ISerializationContext context, DuplicateContext semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Import returns Import
-	 *
-	 * Constraint:
-	 *     package=[EPackage|STRING]
-	 * 
- */ - protected void sequence_Import(ISerializationContext context, Import semanticObject) { - if (errorAcceptor != null) { - if (transientValues.isValueTransient(semanticObject, ValidPackage.Literals.IMPORT__PACKAGE) == ValueTransient.YES) - errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ValidPackage.Literals.IMPORT__PACKAGE)); - } - SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); - feeder.accept(grammarAccess.getImportAccess().getPackageEPackageSTRINGTerminalRuleCall_1_0_1(), semanticObject.eGet(ValidPackage.Literals.IMPORT__PACKAGE, false)); - feeder.finish(); - } - - - /** - *
-	 * Contexts:
-	 *     Context returns NativeContext
-	 *     NativeContext returns NativeContext
-	 *
-	 * Constraint:
-	 *     (
-	 *         contextType=[EClass|QualifiedID] 
-	 *         contextFeature=[EStructuralFeature|ID]? 
-	 *         (named?='as' givenName=ID)? 
-	 *         (markerType=[EClass|QualifiedID] markerFeature=[EStructuralFeature|ID])? 
-	 *         quickFixes+=QuickFix*
-	 *     )
-	 * 
- */ - protected void sequence_NativeContext(ISerializationContext context, NativeContext semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Rule returns NativeRule
-	 *     NativeRule returns NativeRule
-	 *
-	 * Constraint:
-	 *     (
-	 *         (optional?='optional' | checkKind=CheckKind)* 
-	 *         severity=SeverityKind 
-	 *         name=ID 
-	 *         label=STRING 
-	 *         description=STRING? 
-	 *         message=STRING 
-	 *         contexts+=NativeContext+
-	 *     )
-	 * 
- */ - protected void sequence_NativeRule(ISerializationContext context, NativeRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     QuickFix returns QuickFix
-	 *
-	 * Constraint:
-	 *     (quickFixKind=QuickFixKind? name=ID label=STRING message=STRING)
-	 * 
- */ - protected void sequence_QuickFix(ISerializationContext context, QuickFix semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Rule returns RangeRule
-	 *     PredefinedRule returns RangeRule
-	 *     RangeRule returns RangeRule
-	 *
-	 * Constraint:
-	 *     (
-	 *         (optional?='optional' | checkKind=CheckKind)* 
-	 *         severity=SeverityKind 
-	 *         name=ID 
-	 *         label=STRING 
-	 *         description=STRING? 
-	 *         message=STRING? 
-	 *         min=INT? 
-	 *         max=INT 
-	 *         contexts+=SimpleContext+
-	 *     )
-	 * 
- */ - protected void sequence_RangeRule(ISerializationContext context, RangeRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Context returns SimpleContext
-	 *     SimpleContext returns SimpleContext
-	 *
-	 * Constraint:
-	 *     (contextType=[EClass|QualifiedID] contextFeature=[EStructuralFeature|ID]?)
-	 * 
- */ - protected void sequence_SimpleContext(ISerializationContext context, SimpleContext semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Rule returns SizeRule
-	 *     PredefinedRule returns SizeRule
-	 *     SizeRule returns SizeRule
-	 *
-	 * Constraint:
-	 *     (
-	 *         (optional?='optional' | checkKind=CheckKind)* 
-	 *         severity=SeverityKind 
-	 *         name=ID 
-	 *         label=STRING 
-	 *         description=STRING? 
-	 *         message=STRING? 
-	 *         min=INT? 
-	 *         max=INT 
-	 *         contexts+=SimpleContext+
-	 *     )
-	 * 
- */ - protected void sequence_SizeRule(ISerializationContext context, SizeRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     Rule returns UniqueRule
-	 *     PredefinedRule returns UniqueRule
-	 *     UniqueRule returns UniqueRule
-	 *
-	 * Constraint:
-	 *     (
-	 *         (optional?='optional' | checkKind=CheckKind)* 
-	 *         severity=SeverityKind 
-	 *         name=ID 
-	 *         label=STRING 
-	 *         description=STRING? 
-	 *         message=STRING? 
-	 *         contexts+=DuplicateContext+
-	 *     )
-	 * 
- */ - protected void sequence_UniqueRule(ISerializationContext context, UniqueRule semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - - /** - *
-	 * Contexts:
-	 *     ValidModel returns ValidModel
-	 *
-	 * Constraint:
-	 *     ((imports+=Import+ categories+=Category+) | categories+=Category+)?
-	 * 
- */ - protected void sequence_ValidModel(ISerializationContext context, ValidModel semanticObject) { - genericSequencer.createSequence(context, semanticObject); - } - - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSyntacticSequencer.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSyntacticSequencer.java deleted file mode 100644 index 0902f94808..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/serializer/AbstractValidSyntacticSequencer.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.serializer; - -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -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; - -@SuppressWarnings("all") -public abstract class AbstractValidSyntacticSequencer extends AbstractSyntacticSequencer { - - protected ValidGrammarAccess grammarAccess; - - @Inject - protected void init(IGrammarAccess access) { - grammarAccess = (ValidGrammarAccess) 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/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/services/ValidGrammarAccess.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/services/ValidGrammarAccess.java deleted file mode 100644 index b3997972ce..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/services/ValidGrammarAccess.java +++ /dev/null @@ -1,1580 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.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.CrossReference; -import org.eclipse.xtext.EnumLiteralDeclaration; -import org.eclipse.xtext.EnumRule; -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.UnorderedGroup; -import org.eclipse.xtext.common.services.TerminalsGrammarAccess; -import org.eclipse.xtext.service.AbstractElementFinder; -import org.eclipse.xtext.service.GrammarProvider; - -@Singleton -public class ValidGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder { - - public class ValidModelElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.ValidModel"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cImportsAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cImportsImportParserRuleCall_0_0 = (RuleCall)cImportsAssignment_0.eContents().get(0); - private final Assignment cCategoriesAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cCategoriesCategoryParserRuleCall_1_0 = (RuleCall)cCategoriesAssignment_1.eContents().get(0); - - //ValidModel: - // (imports+=Import)* - // (categories+=Category)* - //; - @Override public ParserRule getRule() { return rule; } - - //(imports+=Import)* - //(categories+=Category)* - public Group getGroup() { return cGroup; } - - //(imports+=Import)* - public Assignment getImportsAssignment_0() { return cImportsAssignment_0; } - - //Import - public RuleCall getImportsImportParserRuleCall_0_0() { return cImportsImportParserRuleCall_0_0; } - - //(categories+=Category)* - public Assignment getCategoriesAssignment_1() { return cCategoriesAssignment_1; } - - //Category - public RuleCall getCategoriesCategoryParserRuleCall_1_0() { return cCategoriesCategoryParserRuleCall_1_0; } - } - public class ImportElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.Import"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); - private final Assignment cPackageAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final CrossReference cPackageEPackageCrossReference_1_0 = (CrossReference)cPackageAssignment_1.eContents().get(0); - private final RuleCall cPackageEPackageSTRINGTerminalRuleCall_1_0_1 = (RuleCall)cPackageEPackageCrossReference_1_0.eContents().get(1); - - //Import: - // 'import' package=[ecore::EPackage|STRING] - //; - @Override public ParserRule getRule() { return rule; } - - //'import' package=[ecore::EPackage|STRING] - public Group getGroup() { return cGroup; } - - //'import' - public Keyword getImportKeyword_0() { return cImportKeyword_0; } - - //package=[ecore::EPackage|STRING] - public Assignment getPackageAssignment_1() { return cPackageAssignment_1; } - - //[ecore::EPackage|STRING] - public CrossReference getPackageEPackageCrossReference_1_0() { return cPackageEPackageCrossReference_1_0; } - - //STRING - public RuleCall getPackageEPackageSTRINGTerminalRuleCall_1_0_1() { return cPackageEPackageSTRINGTerminalRuleCall_1_0_1; } - } - public class CategoryElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.Category"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Keyword cCategoryKeyword_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 Keyword cLabelKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Assignment cLabelAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cLabelSTRINGTerminalRuleCall_3_0 = (RuleCall)cLabelAssignment_3.eContents().get(0); - private final Group cGroup_4 = (Group)cGroup.eContents().get(4); - private final Keyword cDescriptionKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); - private final Assignment cDescriptionAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); - private final RuleCall cDescriptionSTRINGTerminalRuleCall_4_1_0 = (RuleCall)cDescriptionAssignment_4_1.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); - private final Assignment cRulesAssignment_6 = (Assignment)cGroup.eContents().get(6); - private final RuleCall cRulesRuleParserRuleCall_6_0 = (RuleCall)cRulesAssignment_6.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7); - - //Category: - // 'category' name=ID 'label' label=STRING ('description' description=STRING)? '{' (rules+=Rule)* '}' - //; - @Override public ParserRule getRule() { return rule; } - - //'category' name=ID 'label' label=STRING ('description' description=STRING)? '{' (rules+=Rule)* '}' - public Group getGroup() { return cGroup; } - - //'category' - public Keyword getCategoryKeyword_0() { return cCategoryKeyword_0; } - - //name=ID - public Assignment getNameAssignment_1() { return cNameAssignment_1; } - - //ID - public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } - - //'label' - public Keyword getLabelKeyword_2() { return cLabelKeyword_2; } - - //label=STRING - public Assignment getLabelAssignment_3() { return cLabelAssignment_3; } - - //STRING - public RuleCall getLabelSTRINGTerminalRuleCall_3_0() { return cLabelSTRINGTerminalRuleCall_3_0; } - - //('description' description=STRING)? - public Group getGroup_4() { return cGroup_4; } - - //'description' - public Keyword getDescriptionKeyword_4_0() { return cDescriptionKeyword_4_0; } - - //description=STRING - public Assignment getDescriptionAssignment_4_1() { return cDescriptionAssignment_4_1; } - - //STRING - public RuleCall getDescriptionSTRINGTerminalRuleCall_4_1_0() { return cDescriptionSTRINGTerminalRuleCall_4_1_0; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_5() { return cLeftCurlyBracketKeyword_5; } - - //(rules+=Rule)* - public Assignment getRulesAssignment_6() { return cRulesAssignment_6; } - - //Rule - public RuleCall getRulesRuleParserRuleCall_6_0() { return cRulesRuleParserRuleCall_6_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; } - } - public class RuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.Rule"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cNativeRuleParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cPredefinedRuleParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - - //Rule: - // NativeRule | PredefinedRule - //; - @Override public ParserRule getRule() { return rule; } - - //NativeRule | PredefinedRule - public Alternatives getAlternatives() { return cAlternatives; } - - //NativeRule - public RuleCall getNativeRuleParserRuleCall_0() { return cNativeRuleParserRuleCall_0; } - - //PredefinedRule - public RuleCall getPredefinedRuleParserRuleCall_1() { return cPredefinedRuleParserRuleCall_1; } - } - public class PredefinedRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.PredefinedRule"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cSizeRuleParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cRangeRuleParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - private final RuleCall cUniqueRuleParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); - - //PredefinedRule: - //SizeRule | RangeRule | UniqueRule //TODO | CapitalizationRule - //; - @Override public ParserRule getRule() { return rule; } - - //SizeRule | RangeRule | UniqueRule - public Alternatives getAlternatives() { return cAlternatives; } - - //SizeRule - public RuleCall getSizeRuleParserRuleCall_0() { return cSizeRuleParserRuleCall_0; } - - //RangeRule - public RuleCall getRangeRuleParserRuleCall_1() { return cRangeRuleParserRuleCall_1; } - - //UniqueRule - public RuleCall getUniqueRuleParserRuleCall_2() { return cUniqueRuleParserRuleCall_2; } - } - public class NativeRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.NativeRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final UnorderedGroup cUnorderedGroup_0 = (UnorderedGroup)cGroup.eContents().get(0); - private final Assignment cOptionalAssignment_0_0 = (Assignment)cUnorderedGroup_0.eContents().get(0); - private final Keyword cOptionalOptionalKeyword_0_0_0 = (Keyword)cOptionalAssignment_0_0.eContents().get(0); - private final Assignment cCheckKindAssignment_0_1 = (Assignment)cUnorderedGroup_0.eContents().get(1); - private final RuleCall cCheckKindCheckKindEnumRuleCall_0_1_0 = (RuleCall)cCheckKindAssignment_0_1.eContents().get(0); - private final Assignment cSeverityAssignment_1 = (Assignment)cGroup.eContents().get(1); - private final RuleCall cSeveritySeverityKindEnumRuleCall_1_0 = (RuleCall)cSeverityAssignment_1.eContents().get(0); - private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); - private final Keyword cLabelKeyword_3 = (Keyword)cGroup.eContents().get(3); - private final Assignment cLabelAssignment_4 = (Assignment)cGroup.eContents().get(4); - private final RuleCall cLabelSTRINGTerminalRuleCall_4_0 = (RuleCall)cLabelAssignment_4.eContents().get(0); - private final Group cGroup_5 = (Group)cGroup.eContents().get(5); - private final Keyword cDescriptionKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); - private final Assignment cDescriptionAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); - private final RuleCall cDescriptionSTRINGTerminalRuleCall_5_1_0 = (RuleCall)cDescriptionAssignment_5_1.eContents().get(0); - private final Keyword cMessageKeyword_6 = (Keyword)cGroup.eContents().get(6); - private final Assignment cMessageAssignment_7 = (Assignment)cGroup.eContents().get(7); - private final RuleCall cMessageSTRINGTerminalRuleCall_7_0 = (RuleCall)cMessageAssignment_7.eContents().get(0); - private final Keyword cContextKeyword_8 = (Keyword)cGroup.eContents().get(8); - private final Keyword cLeftCurlyBracketKeyword_9 = (Keyword)cGroup.eContents().get(9); - private final Assignment cContextsAssignment_10 = (Assignment)cGroup.eContents().get(10); - private final RuleCall cContextsNativeContextParserRuleCall_10_0 = (RuleCall)cContextsAssignment_10.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_11 = (Keyword)cGroup.eContents().get(11); - - //NativeRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // 'message' message=STRING - // 'context' '{' - // (contexts+=NativeContext)+ - // '}' - //; - @Override public ParserRule getRule() { return rule; } - - //((optional?='optional')? & (checkKind=CheckKind)?) severity=SeverityKind name=ID - //'label' label=STRING - //('description' description=STRING)? - //'message' message=STRING - //'context' '{' - // (contexts+=NativeContext)+ - //'}' - public Group getGroup() { return cGroup; } - - //((optional?='optional')? & (checkKind=CheckKind)?) - public UnorderedGroup getUnorderedGroup_0() { return cUnorderedGroup_0; } - - //(optional?='optional')? - public Assignment getOptionalAssignment_0_0() { return cOptionalAssignment_0_0; } - - //'optional' - public Keyword getOptionalOptionalKeyword_0_0_0() { return cOptionalOptionalKeyword_0_0_0; } - - //(checkKind=CheckKind)? - public Assignment getCheckKindAssignment_0_1() { return cCheckKindAssignment_0_1; } - - //CheckKind - public RuleCall getCheckKindCheckKindEnumRuleCall_0_1_0() { return cCheckKindCheckKindEnumRuleCall_0_1_0; } - - //severity=SeverityKind - public Assignment getSeverityAssignment_1() { return cSeverityAssignment_1; } - - //SeverityKind - public RuleCall getSeveritySeverityKindEnumRuleCall_1_0() { return cSeveritySeverityKindEnumRuleCall_1_0; } - - //name=ID - public Assignment getNameAssignment_2() { return cNameAssignment_2; } - - //ID - public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } - - //'label' - public Keyword getLabelKeyword_3() { return cLabelKeyword_3; } - - //label=STRING - public Assignment getLabelAssignment_4() { return cLabelAssignment_4; } - - //STRING - public RuleCall getLabelSTRINGTerminalRuleCall_4_0() { return cLabelSTRINGTerminalRuleCall_4_0; } - - //('description' description=STRING)? - public Group getGroup_5() { return cGroup_5; } - - //'description' - public Keyword getDescriptionKeyword_5_0() { return cDescriptionKeyword_5_0; } - - //description=STRING - public Assignment getDescriptionAssignment_5_1() { return cDescriptionAssignment_5_1; } - - //STRING - public RuleCall getDescriptionSTRINGTerminalRuleCall_5_1_0() { return cDescriptionSTRINGTerminalRuleCall_5_1_0; } - - //'message' - public Keyword getMessageKeyword_6() { return cMessageKeyword_6; } - - //message=STRING - public Assignment getMessageAssignment_7() { return cMessageAssignment_7; } - - //STRING - public RuleCall getMessageSTRINGTerminalRuleCall_7_0() { return cMessageSTRINGTerminalRuleCall_7_0; } - - //'context' - public Keyword getContextKeyword_8() { return cContextKeyword_8; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_9() { return cLeftCurlyBracketKeyword_9; } - - //(contexts+=NativeContext)+ - public Assignment getContextsAssignment_10() { return cContextsAssignment_10; } - - //NativeContext - public RuleCall getContextsNativeContextParserRuleCall_10_0() { return cContextsNativeContextParserRuleCall_10_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_11() { return cRightCurlyBracketKeyword_11; } - } - public class SizeRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.SizeRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final UnorderedGroup cUnorderedGroup_0 = (UnorderedGroup)cGroup.eContents().get(0); - private final Assignment cOptionalAssignment_0_0 = (Assignment)cUnorderedGroup_0.eContents().get(0); - private final Keyword cOptionalOptionalKeyword_0_0_0 = (Keyword)cOptionalAssignment_0_0.eContents().get(0); - private final Assignment cCheckKindAssignment_0_1 = (Assignment)cUnorderedGroup_0.eContents().get(1); - private final RuleCall cCheckKindCheckKindEnumRuleCall_0_1_0 = (RuleCall)cCheckKindAssignment_0_1.eContents().get(0); - private final Keyword cSizeKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cSeverityAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cSeveritySeverityKindEnumRuleCall_2_0 = (RuleCall)cSeverityAssignment_2.eContents().get(0); - private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cNameIDTerminalRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0); - private final Keyword cLabelKeyword_4 = (Keyword)cGroup.eContents().get(4); - private final Assignment cLabelAssignment_5 = (Assignment)cGroup.eContents().get(5); - private final RuleCall cLabelSTRINGTerminalRuleCall_5_0 = (RuleCall)cLabelAssignment_5.eContents().get(0); - private final Group cGroup_6 = (Group)cGroup.eContents().get(6); - private final Keyword cDescriptionKeyword_6_0 = (Keyword)cGroup_6.eContents().get(0); - private final Assignment cDescriptionAssignment_6_1 = (Assignment)cGroup_6.eContents().get(1); - private final RuleCall cDescriptionSTRINGTerminalRuleCall_6_1_0 = (RuleCall)cDescriptionAssignment_6_1.eContents().get(0); - private final Group cGroup_7 = (Group)cGroup.eContents().get(7); - private final Keyword cMessageKeyword_7_0 = (Keyword)cGroup_7.eContents().get(0); - private final Assignment cMessageAssignment_7_1 = (Assignment)cGroup_7.eContents().get(1); - private final RuleCall cMessageSTRINGTerminalRuleCall_7_1_0 = (RuleCall)cMessageAssignment_7_1.eContents().get(0); - private final Keyword cSizeKeyword_8 = (Keyword)cGroup.eContents().get(8); - private final Group cGroup_9 = (Group)cGroup.eContents().get(9); - private final Assignment cMinAssignment_9_0 = (Assignment)cGroup_9.eContents().get(0); - private final RuleCall cMinINTTerminalRuleCall_9_0_0 = (RuleCall)cMinAssignment_9_0.eContents().get(0); - private final Keyword cFullStopFullStopKeyword_9_1 = (Keyword)cGroup_9.eContents().get(1); - private final Assignment cMaxAssignment_10 = (Assignment)cGroup.eContents().get(10); - private final RuleCall cMaxINTTerminalRuleCall_10_0 = (RuleCall)cMaxAssignment_10.eContents().get(0); - private final Keyword cContextKeyword_11 = (Keyword)cGroup.eContents().get(11); - private final Keyword cLeftCurlyBracketKeyword_12 = (Keyword)cGroup.eContents().get(12); - private final Assignment cContextsAssignment_13 = (Assignment)cGroup.eContents().get(13); - private final RuleCall cContextsSimpleContextParserRuleCall_13_0 = (RuleCall)cContextsAssignment_13.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_14 = (Keyword)cGroup.eContents().get(14); - - //SizeRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) 'size' severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // ('message' message=STRING)? - // 'size' (min=INT '..')? max=INT - // 'context' '{' - // (contexts+=SimpleContext)+ - // '}' - //; - @Override public ParserRule getRule() { return rule; } - - //((optional?='optional')? & (checkKind=CheckKind)?) 'size' severity=SeverityKind name=ID - //'label' label=STRING - //('description' description=STRING)? - //('message' message=STRING)? - //'size' (min=INT '..')? max=INT - //'context' '{' - // (contexts+=SimpleContext)+ - //'}' - public Group getGroup() { return cGroup; } - - //((optional?='optional')? & (checkKind=CheckKind)?) - public UnorderedGroup getUnorderedGroup_0() { return cUnorderedGroup_0; } - - //(optional?='optional')? - public Assignment getOptionalAssignment_0_0() { return cOptionalAssignment_0_0; } - - //'optional' - public Keyword getOptionalOptionalKeyword_0_0_0() { return cOptionalOptionalKeyword_0_0_0; } - - //(checkKind=CheckKind)? - public Assignment getCheckKindAssignment_0_1() { return cCheckKindAssignment_0_1; } - - //CheckKind - public RuleCall getCheckKindCheckKindEnumRuleCall_0_1_0() { return cCheckKindCheckKindEnumRuleCall_0_1_0; } - - //'size' - public Keyword getSizeKeyword_1() { return cSizeKeyword_1; } - - //severity=SeverityKind - public Assignment getSeverityAssignment_2() { return cSeverityAssignment_2; } - - //SeverityKind - public RuleCall getSeveritySeverityKindEnumRuleCall_2_0() { return cSeveritySeverityKindEnumRuleCall_2_0; } - - //name=ID - public Assignment getNameAssignment_3() { return cNameAssignment_3; } - - //ID - public RuleCall getNameIDTerminalRuleCall_3_0() { return cNameIDTerminalRuleCall_3_0; } - - //'label' - public Keyword getLabelKeyword_4() { return cLabelKeyword_4; } - - //label=STRING - public Assignment getLabelAssignment_5() { return cLabelAssignment_5; } - - //STRING - public RuleCall getLabelSTRINGTerminalRuleCall_5_0() { return cLabelSTRINGTerminalRuleCall_5_0; } - - //('description' description=STRING)? - public Group getGroup_6() { return cGroup_6; } - - //'description' - public Keyword getDescriptionKeyword_6_0() { return cDescriptionKeyword_6_0; } - - //description=STRING - public Assignment getDescriptionAssignment_6_1() { return cDescriptionAssignment_6_1; } - - //STRING - public RuleCall getDescriptionSTRINGTerminalRuleCall_6_1_0() { return cDescriptionSTRINGTerminalRuleCall_6_1_0; } - - //('message' message=STRING)? - public Group getGroup_7() { return cGroup_7; } - - //'message' - public Keyword getMessageKeyword_7_0() { return cMessageKeyword_7_0; } - - //message=STRING - public Assignment getMessageAssignment_7_1() { return cMessageAssignment_7_1; } - - //STRING - public RuleCall getMessageSTRINGTerminalRuleCall_7_1_0() { return cMessageSTRINGTerminalRuleCall_7_1_0; } - - //'size' - public Keyword getSizeKeyword_8() { return cSizeKeyword_8; } - - //(min=INT '..')? - public Group getGroup_9() { return cGroup_9; } - - //min=INT - public Assignment getMinAssignment_9_0() { return cMinAssignment_9_0; } - - //INT - public RuleCall getMinINTTerminalRuleCall_9_0_0() { return cMinINTTerminalRuleCall_9_0_0; } - - //'..' - public Keyword getFullStopFullStopKeyword_9_1() { return cFullStopFullStopKeyword_9_1; } - - //max=INT - public Assignment getMaxAssignment_10() { return cMaxAssignment_10; } - - //INT - public RuleCall getMaxINTTerminalRuleCall_10_0() { return cMaxINTTerminalRuleCall_10_0; } - - //'context' - public Keyword getContextKeyword_11() { return cContextKeyword_11; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_12() { return cLeftCurlyBracketKeyword_12; } - - //(contexts+=SimpleContext)+ - public Assignment getContextsAssignment_13() { return cContextsAssignment_13; } - - //SimpleContext - public RuleCall getContextsSimpleContextParserRuleCall_13_0() { return cContextsSimpleContextParserRuleCall_13_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_14() { return cRightCurlyBracketKeyword_14; } - } - public class RangeRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.RangeRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final UnorderedGroup cUnorderedGroup_0 = (UnorderedGroup)cGroup.eContents().get(0); - private final Assignment cOptionalAssignment_0_0 = (Assignment)cUnorderedGroup_0.eContents().get(0); - private final Keyword cOptionalOptionalKeyword_0_0_0 = (Keyword)cOptionalAssignment_0_0.eContents().get(0); - private final Assignment cCheckKindAssignment_0_1 = (Assignment)cUnorderedGroup_0.eContents().get(1); - private final RuleCall cCheckKindCheckKindEnumRuleCall_0_1_0 = (RuleCall)cCheckKindAssignment_0_1.eContents().get(0); - private final Keyword cRangeKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cSeverityAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cSeveritySeverityKindEnumRuleCall_2_0 = (RuleCall)cSeverityAssignment_2.eContents().get(0); - private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cNameIDTerminalRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0); - private final Keyword cLabelKeyword_4 = (Keyword)cGroup.eContents().get(4); - private final Assignment cLabelAssignment_5 = (Assignment)cGroup.eContents().get(5); - private final RuleCall cLabelSTRINGTerminalRuleCall_5_0 = (RuleCall)cLabelAssignment_5.eContents().get(0); - private final Group cGroup_6 = (Group)cGroup.eContents().get(6); - private final Keyword cDescriptionKeyword_6_0 = (Keyword)cGroup_6.eContents().get(0); - private final Assignment cDescriptionAssignment_6_1 = (Assignment)cGroup_6.eContents().get(1); - private final RuleCall cDescriptionSTRINGTerminalRuleCall_6_1_0 = (RuleCall)cDescriptionAssignment_6_1.eContents().get(0); - private final Group cGroup_7 = (Group)cGroup.eContents().get(7); - private final Keyword cMessageKeyword_7_0 = (Keyword)cGroup_7.eContents().get(0); - private final Assignment cMessageAssignment_7_1 = (Assignment)cGroup_7.eContents().get(1); - private final RuleCall cMessageSTRINGTerminalRuleCall_7_1_0 = (RuleCall)cMessageAssignment_7_1.eContents().get(0); - private final Keyword cRangeKeyword_8 = (Keyword)cGroup.eContents().get(8); - private final Group cGroup_9 = (Group)cGroup.eContents().get(9); - private final Assignment cMinAssignment_9_0 = (Assignment)cGroup_9.eContents().get(0); - private final RuleCall cMinINTTerminalRuleCall_9_0_0 = (RuleCall)cMinAssignment_9_0.eContents().get(0); - private final Keyword cFullStopFullStopKeyword_9_1 = (Keyword)cGroup_9.eContents().get(1); - private final Assignment cMaxAssignment_10 = (Assignment)cGroup.eContents().get(10); - private final RuleCall cMaxINTTerminalRuleCall_10_0 = (RuleCall)cMaxAssignment_10.eContents().get(0); - private final Keyword cContextKeyword_11 = (Keyword)cGroup.eContents().get(11); - private final Keyword cLeftCurlyBracketKeyword_12 = (Keyword)cGroup.eContents().get(12); - private final Assignment cContextsAssignment_13 = (Assignment)cGroup.eContents().get(13); - private final RuleCall cContextsSimpleContextParserRuleCall_13_0 = (RuleCall)cContextsAssignment_13.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_14 = (Keyword)cGroup.eContents().get(14); - - //RangeRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) 'range' severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // ('message' message=STRING)? - // 'range' (min=INT '..')? max=INT - // 'context' '{' - // (contexts+=SimpleContext)+ - // '}' - //; - @Override public ParserRule getRule() { return rule; } - - //((optional?='optional')? & (checkKind=CheckKind)?) 'range' severity=SeverityKind name=ID - //'label' label=STRING - //('description' description=STRING)? - //('message' message=STRING)? - //'range' (min=INT '..')? max=INT - //'context' '{' - // (contexts+=SimpleContext)+ - //'}' - public Group getGroup() { return cGroup; } - - //((optional?='optional')? & (checkKind=CheckKind)?) - public UnorderedGroup getUnorderedGroup_0() { return cUnorderedGroup_0; } - - //(optional?='optional')? - public Assignment getOptionalAssignment_0_0() { return cOptionalAssignment_0_0; } - - //'optional' - public Keyword getOptionalOptionalKeyword_0_0_0() { return cOptionalOptionalKeyword_0_0_0; } - - //(checkKind=CheckKind)? - public Assignment getCheckKindAssignment_0_1() { return cCheckKindAssignment_0_1; } - - //CheckKind - public RuleCall getCheckKindCheckKindEnumRuleCall_0_1_0() { return cCheckKindCheckKindEnumRuleCall_0_1_0; } - - //'range' - public Keyword getRangeKeyword_1() { return cRangeKeyword_1; } - - //severity=SeverityKind - public Assignment getSeverityAssignment_2() { return cSeverityAssignment_2; } - - //SeverityKind - public RuleCall getSeveritySeverityKindEnumRuleCall_2_0() { return cSeveritySeverityKindEnumRuleCall_2_0; } - - //name=ID - public Assignment getNameAssignment_3() { return cNameAssignment_3; } - - //ID - public RuleCall getNameIDTerminalRuleCall_3_0() { return cNameIDTerminalRuleCall_3_0; } - - //'label' - public Keyword getLabelKeyword_4() { return cLabelKeyword_4; } - - //label=STRING - public Assignment getLabelAssignment_5() { return cLabelAssignment_5; } - - //STRING - public RuleCall getLabelSTRINGTerminalRuleCall_5_0() { return cLabelSTRINGTerminalRuleCall_5_0; } - - //('description' description=STRING)? - public Group getGroup_6() { return cGroup_6; } - - //'description' - public Keyword getDescriptionKeyword_6_0() { return cDescriptionKeyword_6_0; } - - //description=STRING - public Assignment getDescriptionAssignment_6_1() { return cDescriptionAssignment_6_1; } - - //STRING - public RuleCall getDescriptionSTRINGTerminalRuleCall_6_1_0() { return cDescriptionSTRINGTerminalRuleCall_6_1_0; } - - //('message' message=STRING)? - public Group getGroup_7() { return cGroup_7; } - - //'message' - public Keyword getMessageKeyword_7_0() { return cMessageKeyword_7_0; } - - //message=STRING - public Assignment getMessageAssignment_7_1() { return cMessageAssignment_7_1; } - - //STRING - public RuleCall getMessageSTRINGTerminalRuleCall_7_1_0() { return cMessageSTRINGTerminalRuleCall_7_1_0; } - - //'range' - public Keyword getRangeKeyword_8() { return cRangeKeyword_8; } - - //(min=INT '..')? - public Group getGroup_9() { return cGroup_9; } - - //min=INT - public Assignment getMinAssignment_9_0() { return cMinAssignment_9_0; } - - //INT - public RuleCall getMinINTTerminalRuleCall_9_0_0() { return cMinINTTerminalRuleCall_9_0_0; } - - //'..' - public Keyword getFullStopFullStopKeyword_9_1() { return cFullStopFullStopKeyword_9_1; } - - //max=INT - public Assignment getMaxAssignment_10() { return cMaxAssignment_10; } - - //INT - public RuleCall getMaxINTTerminalRuleCall_10_0() { return cMaxINTTerminalRuleCall_10_0; } - - //'context' - public Keyword getContextKeyword_11() { return cContextKeyword_11; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_12() { return cLeftCurlyBracketKeyword_12; } - - //(contexts+=SimpleContext)+ - public Assignment getContextsAssignment_13() { return cContextsAssignment_13; } - - //SimpleContext - public RuleCall getContextsSimpleContextParserRuleCall_13_0() { return cContextsSimpleContextParserRuleCall_13_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_14() { return cRightCurlyBracketKeyword_14; } - } - public class UniqueRuleElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.UniqueRule"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final UnorderedGroup cUnorderedGroup_0 = (UnorderedGroup)cGroup.eContents().get(0); - private final Assignment cOptionalAssignment_0_0 = (Assignment)cUnorderedGroup_0.eContents().get(0); - private final Keyword cOptionalOptionalKeyword_0_0_0 = (Keyword)cOptionalAssignment_0_0.eContents().get(0); - private final Assignment cCheckKindAssignment_0_1 = (Assignment)cUnorderedGroup_0.eContents().get(1); - private final RuleCall cCheckKindCheckKindEnumRuleCall_0_1_0 = (RuleCall)cCheckKindAssignment_0_1.eContents().get(0); - private final Keyword cUniqueKeyword_1 = (Keyword)cGroup.eContents().get(1); - private final Assignment cSeverityAssignment_2 = (Assignment)cGroup.eContents().get(2); - private final RuleCall cSeveritySeverityKindEnumRuleCall_2_0 = (RuleCall)cSeverityAssignment_2.eContents().get(0); - private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final RuleCall cNameIDTerminalRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0); - private final Keyword cLabelKeyword_4 = (Keyword)cGroup.eContents().get(4); - private final Assignment cLabelAssignment_5 = (Assignment)cGroup.eContents().get(5); - private final RuleCall cLabelSTRINGTerminalRuleCall_5_0 = (RuleCall)cLabelAssignment_5.eContents().get(0); - private final Group cGroup_6 = (Group)cGroup.eContents().get(6); - private final Keyword cDescriptionKeyword_6_0 = (Keyword)cGroup_6.eContents().get(0); - private final Assignment cDescriptionAssignment_6_1 = (Assignment)cGroup_6.eContents().get(1); - private final RuleCall cDescriptionSTRINGTerminalRuleCall_6_1_0 = (RuleCall)cDescriptionAssignment_6_1.eContents().get(0); - private final Group cGroup_7 = (Group)cGroup.eContents().get(7); - private final Keyword cMessageKeyword_7_0 = (Keyword)cGroup_7.eContents().get(0); - private final Assignment cMessageAssignment_7_1 = (Assignment)cGroup_7.eContents().get(1); - private final RuleCall cMessageSTRINGTerminalRuleCall_7_1_0 = (RuleCall)cMessageAssignment_7_1.eContents().get(0); - private final Keyword cContextKeyword_8 = (Keyword)cGroup.eContents().get(8); - private final Keyword cLeftCurlyBracketKeyword_9 = (Keyword)cGroup.eContents().get(9); - private final Assignment cContextsAssignment_10 = (Assignment)cGroup.eContents().get(10); - private final RuleCall cContextsDuplicateContextParserRuleCall_10_0 = (RuleCall)cContextsAssignment_10.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_11 = (Keyword)cGroup.eContents().get(11); - - //UniqueRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) 'unique' severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // ('message' message=STRING)? - // 'context' '{' - // (contexts+=DuplicateContext)+ - // '}' - //; - @Override public ParserRule getRule() { return rule; } - - //((optional?='optional')? & (checkKind=CheckKind)?) 'unique' severity=SeverityKind name=ID - //'label' label=STRING - //('description' description=STRING)? - //('message' message=STRING)? - //'context' '{' - // (contexts+=DuplicateContext)+ - //'}' - public Group getGroup() { return cGroup; } - - //((optional?='optional')? & (checkKind=CheckKind)?) - public UnorderedGroup getUnorderedGroup_0() { return cUnorderedGroup_0; } - - //(optional?='optional')? - public Assignment getOptionalAssignment_0_0() { return cOptionalAssignment_0_0; } - - //'optional' - public Keyword getOptionalOptionalKeyword_0_0_0() { return cOptionalOptionalKeyword_0_0_0; } - - //(checkKind=CheckKind)? - public Assignment getCheckKindAssignment_0_1() { return cCheckKindAssignment_0_1; } - - //CheckKind - public RuleCall getCheckKindCheckKindEnumRuleCall_0_1_0() { return cCheckKindCheckKindEnumRuleCall_0_1_0; } - - //'unique' - public Keyword getUniqueKeyword_1() { return cUniqueKeyword_1; } - - //severity=SeverityKind - public Assignment getSeverityAssignment_2() { return cSeverityAssignment_2; } - - //SeverityKind - public RuleCall getSeveritySeverityKindEnumRuleCall_2_0() { return cSeveritySeverityKindEnumRuleCall_2_0; } - - //name=ID - public Assignment getNameAssignment_3() { return cNameAssignment_3; } - - //ID - public RuleCall getNameIDTerminalRuleCall_3_0() { return cNameIDTerminalRuleCall_3_0; } - - //'label' - public Keyword getLabelKeyword_4() { return cLabelKeyword_4; } - - //label=STRING - public Assignment getLabelAssignment_5() { return cLabelAssignment_5; } - - //STRING - public RuleCall getLabelSTRINGTerminalRuleCall_5_0() { return cLabelSTRINGTerminalRuleCall_5_0; } - - //('description' description=STRING)? - public Group getGroup_6() { return cGroup_6; } - - //'description' - public Keyword getDescriptionKeyword_6_0() { return cDescriptionKeyword_6_0; } - - //description=STRING - public Assignment getDescriptionAssignment_6_1() { return cDescriptionAssignment_6_1; } - - //STRING - public RuleCall getDescriptionSTRINGTerminalRuleCall_6_1_0() { return cDescriptionSTRINGTerminalRuleCall_6_1_0; } - - //('message' message=STRING)? - public Group getGroup_7() { return cGroup_7; } - - //'message' - public Keyword getMessageKeyword_7_0() { return cMessageKeyword_7_0; } - - //message=STRING - public Assignment getMessageAssignment_7_1() { return cMessageAssignment_7_1; } - - //STRING - public RuleCall getMessageSTRINGTerminalRuleCall_7_1_0() { return cMessageSTRINGTerminalRuleCall_7_1_0; } - - //'context' - public Keyword getContextKeyword_8() { return cContextKeyword_8; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_9() { return cLeftCurlyBracketKeyword_9; } - - //(contexts+=DuplicateContext)+ - public Assignment getContextsAssignment_10() { return cContextsAssignment_10; } - - //DuplicateContext - public RuleCall getContextsDuplicateContextParserRuleCall_10_0() { return cContextsDuplicateContextParserRuleCall_10_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_11() { return cRightCurlyBracketKeyword_11; } - } - public class ContextElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.Context"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final RuleCall cNativeContextParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); - private final RuleCall cDuplicateContextParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); - private final RuleCall cSimpleContextParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); - - //Context: - // NativeContext | DuplicateContext | SimpleContext - //; - @Override public ParserRule getRule() { return rule; } - - //NativeContext | DuplicateContext | SimpleContext - public Alternatives getAlternatives() { return cAlternatives; } - - //NativeContext - public RuleCall getNativeContextParserRuleCall_0() { return cNativeContextParserRuleCall_0; } - - //DuplicateContext - public RuleCall getDuplicateContextParserRuleCall_1() { return cDuplicateContextParserRuleCall_1; } - - //SimpleContext - public RuleCall getSimpleContextParserRuleCall_2() { return cSimpleContextParserRuleCall_2; } - } - public class SimpleContextElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.SimpleContext"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cContextTypeAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cContextTypeEClassCrossReference_0_0 = (CrossReference)cContextTypeAssignment_0.eContents().get(0); - private final RuleCall cContextTypeEClassQualifiedIDParserRuleCall_0_0_1 = (RuleCall)cContextTypeEClassCrossReference_0_0.eContents().get(1); - private final Group cGroup_1 = (Group)cGroup.eContents().get(1); - private final Keyword cNumberSignKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final Assignment cContextFeatureAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1); - private final CrossReference cContextFeatureEStructuralFeatureCrossReference_1_1_0 = (CrossReference)cContextFeatureAssignment_1_1.eContents().get(0); - private final RuleCall cContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1 = (RuleCall)cContextFeatureEStructuralFeatureCrossReference_1_1_0.eContents().get(1); - private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); - - //SimpleContext: - // contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? ";" - //; - @Override public ParserRule getRule() { return rule; } - - //contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? ";" - public Group getGroup() { return cGroup; } - - //contextType=[ecore::EClass|QualifiedID] - public Assignment getContextTypeAssignment_0() { return cContextTypeAssignment_0; } - - //[ecore::EClass|QualifiedID] - public CrossReference getContextTypeEClassCrossReference_0_0() { return cContextTypeEClassCrossReference_0_0; } - - //QualifiedID - public RuleCall getContextTypeEClassQualifiedIDParserRuleCall_0_0_1() { return cContextTypeEClassQualifiedIDParserRuleCall_0_0_1; } - - //('#'contextFeature=[ecore::EStructuralFeature|ID])? - public Group getGroup_1() { return cGroup_1; } - - //'#' - public Keyword getNumberSignKeyword_1_0() { return cNumberSignKeyword_1_0; } - - //contextFeature=[ecore::EStructuralFeature|ID] - public Assignment getContextFeatureAssignment_1_1() { return cContextFeatureAssignment_1_1; } - - //[ecore::EStructuralFeature|ID] - public CrossReference getContextFeatureEStructuralFeatureCrossReference_1_1_0() { return cContextFeatureEStructuralFeatureCrossReference_1_1_0; } - - //ID - public RuleCall getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1() { return cContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1; } - - //";" - public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } - } - public class DuplicateContextElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.DuplicateContext"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cContextTypeAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cContextTypeEClassCrossReference_0_0 = (CrossReference)cContextTypeAssignment_0.eContents().get(0); - private final RuleCall cContextTypeEClassQualifiedIDParserRuleCall_0_0_1 = (RuleCall)cContextTypeEClassCrossReference_0_0.eContents().get(1); - private final Group cGroup_1 = (Group)cGroup.eContents().get(1); - private final Keyword cNumberSignKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final Assignment cContextFeatureAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1); - private final CrossReference cContextFeatureEStructuralFeatureCrossReference_1_1_0 = (CrossReference)cContextFeatureAssignment_1_1.eContents().get(0); - private final RuleCall cContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1 = (RuleCall)cContextFeatureEStructuralFeatureCrossReference_1_1_0.eContents().get(1); - private final Keyword cMarkerKeyword_2 = (Keyword)cGroup.eContents().get(2); - private final Assignment cMarkerTypeAssignment_3 = (Assignment)cGroup.eContents().get(3); - private final CrossReference cMarkerTypeEClassCrossReference_3_0 = (CrossReference)cMarkerTypeAssignment_3.eContents().get(0); - private final RuleCall cMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1 = (RuleCall)cMarkerTypeEClassCrossReference_3_0.eContents().get(1); - private final Keyword cNumberSignKeyword_4 = (Keyword)cGroup.eContents().get(4); - private final Assignment cMarkerFeatureAssignment_5 = (Assignment)cGroup.eContents().get(5); - private final CrossReference cMarkerFeatureEStructuralFeatureCrossReference_5_0 = (CrossReference)cMarkerFeatureAssignment_5.eContents().get(0); - private final RuleCall cMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1 = (RuleCall)cMarkerFeatureEStructuralFeatureCrossReference_5_0.eContents().get(1); - private final Keyword cSemicolonKeyword_6 = (Keyword)cGroup.eContents().get(6); - - //DuplicateContext: - // contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? 'marker' markerType=[ecore::EClass|QualifiedID]'#'markerFeature=[ecore::EStructuralFeature|ID]?";" - //; - @Override public ParserRule getRule() { return rule; } - - //contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? 'marker' markerType=[ecore::EClass|QualifiedID]'#'markerFeature=[ecore::EStructuralFeature|ID]?";" - public Group getGroup() { return cGroup; } - - //contextType=[ecore::EClass|QualifiedID] - public Assignment getContextTypeAssignment_0() { return cContextTypeAssignment_0; } - - //[ecore::EClass|QualifiedID] - public CrossReference getContextTypeEClassCrossReference_0_0() { return cContextTypeEClassCrossReference_0_0; } - - //QualifiedID - public RuleCall getContextTypeEClassQualifiedIDParserRuleCall_0_0_1() { return cContextTypeEClassQualifiedIDParserRuleCall_0_0_1; } - - //('#'contextFeature=[ecore::EStructuralFeature|ID])? - public Group getGroup_1() { return cGroup_1; } - - //'#' - public Keyword getNumberSignKeyword_1_0() { return cNumberSignKeyword_1_0; } - - //contextFeature=[ecore::EStructuralFeature|ID] - public Assignment getContextFeatureAssignment_1_1() { return cContextFeatureAssignment_1_1; } - - //[ecore::EStructuralFeature|ID] - public CrossReference getContextFeatureEStructuralFeatureCrossReference_1_1_0() { return cContextFeatureEStructuralFeatureCrossReference_1_1_0; } - - //ID - public RuleCall getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1() { return cContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1; } - - //'marker' - public Keyword getMarkerKeyword_2() { return cMarkerKeyword_2; } - - //markerType=[ecore::EClass|QualifiedID] - public Assignment getMarkerTypeAssignment_3() { return cMarkerTypeAssignment_3; } - - //[ecore::EClass|QualifiedID] - public CrossReference getMarkerTypeEClassCrossReference_3_0() { return cMarkerTypeEClassCrossReference_3_0; } - - //QualifiedID - public RuleCall getMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1() { return cMarkerTypeEClassQualifiedIDParserRuleCall_3_0_1; } - - //'#' - public Keyword getNumberSignKeyword_4() { return cNumberSignKeyword_4; } - - //markerFeature=[ecore::EStructuralFeature|ID]? - public Assignment getMarkerFeatureAssignment_5() { return cMarkerFeatureAssignment_5; } - - //[ecore::EStructuralFeature|ID] - public CrossReference getMarkerFeatureEStructuralFeatureCrossReference_5_0() { return cMarkerFeatureEStructuralFeatureCrossReference_5_0; } - - //ID - public RuleCall getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1() { return cMarkerFeatureEStructuralFeatureIDTerminalRuleCall_5_0_1; } - - //";" - public Keyword getSemicolonKeyword_6() { return cSemicolonKeyword_6; } - } - public class NativeContextElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.NativeContext"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cContextTypeAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final CrossReference cContextTypeEClassCrossReference_0_0 = (CrossReference)cContextTypeAssignment_0.eContents().get(0); - private final RuleCall cContextTypeEClassQualifiedIDParserRuleCall_0_0_1 = (RuleCall)cContextTypeEClassCrossReference_0_0.eContents().get(1); - private final Group cGroup_1 = (Group)cGroup.eContents().get(1); - private final Keyword cNumberSignKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); - private final Assignment cContextFeatureAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1); - private final CrossReference cContextFeatureEStructuralFeatureCrossReference_1_1_0 = (CrossReference)cContextFeatureAssignment_1_1.eContents().get(0); - private final RuleCall cContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1 = (RuleCall)cContextFeatureEStructuralFeatureCrossReference_1_1_0.eContents().get(1); - private final Group cGroup_2 = (Group)cGroup.eContents().get(2); - private final Assignment cNamedAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0); - private final Keyword cNamedAsKeyword_2_0_0 = (Keyword)cNamedAssignment_2_0.eContents().get(0); - private final Assignment cGivenNameAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); - private final RuleCall cGivenNameIDTerminalRuleCall_2_1_0 = (RuleCall)cGivenNameAssignment_2_1.eContents().get(0); - private final Group cGroup_3 = (Group)cGroup.eContents().get(3); - private final Keyword cMarkerKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0); - private final Assignment cMarkerTypeAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1); - private final CrossReference cMarkerTypeEClassCrossReference_3_1_0 = (CrossReference)cMarkerTypeAssignment_3_1.eContents().get(0); - private final RuleCall cMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1 = (RuleCall)cMarkerTypeEClassCrossReference_3_1_0.eContents().get(1); - private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2); - private final Keyword cNumberSignKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0); - private final Assignment cMarkerFeatureAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1); - private final CrossReference cMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0 = (CrossReference)cMarkerFeatureAssignment_3_2_1.eContents().get(0); - private final RuleCall cMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1 = (RuleCall)cMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0.eContents().get(1); - private final Group cGroup_4 = (Group)cGroup.eContents().get(4); - private final Keyword cQuickfixesKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); - private final Keyword cLeftCurlyBracketKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1); - private final Assignment cQuickFixesAssignment_4_2 = (Assignment)cGroup_4.eContents().get(2); - private final RuleCall cQuickFixesQuickFixParserRuleCall_4_2_0 = (RuleCall)cQuickFixesAssignment_4_2.eContents().get(0); - private final Keyword cRightCurlyBracketKeyword_4_3 = (Keyword)cGroup_4.eContents().get(3); - private final Keyword cSemicolonKeyword_5 = (Keyword)cGroup.eContents().get(5); - - //NativeContext: - // contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? (named?='as' givenName=ID)? ('marker' markerType=[ecore::EClass|QualifiedID]('#'markerFeature=[ecore::EStructuralFeature|ID]))? - // ('quickfixes' '{' - // (quickFixes+=QuickFix)+ - // '}')? - // ";" - //; - @Override public ParserRule getRule() { return rule; } - - //contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? (named?='as' givenName=ID)? ('marker' markerType=[ecore::EClass|QualifiedID]('#'markerFeature=[ecore::EStructuralFeature|ID]))? - // ('quickfixes' '{' - // (quickFixes+=QuickFix)+ - // '}')? - // ";" - public Group getGroup() { return cGroup; } - - //contextType=[ecore::EClass|QualifiedID] - public Assignment getContextTypeAssignment_0() { return cContextTypeAssignment_0; } - - //[ecore::EClass|QualifiedID] - public CrossReference getContextTypeEClassCrossReference_0_0() { return cContextTypeEClassCrossReference_0_0; } - - //QualifiedID - public RuleCall getContextTypeEClassQualifiedIDParserRuleCall_0_0_1() { return cContextTypeEClassQualifiedIDParserRuleCall_0_0_1; } - - //('#'contextFeature=[ecore::EStructuralFeature|ID])? - public Group getGroup_1() { return cGroup_1; } - - //'#' - public Keyword getNumberSignKeyword_1_0() { return cNumberSignKeyword_1_0; } - - //contextFeature=[ecore::EStructuralFeature|ID] - public Assignment getContextFeatureAssignment_1_1() { return cContextFeatureAssignment_1_1; } - - //[ecore::EStructuralFeature|ID] - public CrossReference getContextFeatureEStructuralFeatureCrossReference_1_1_0() { return cContextFeatureEStructuralFeatureCrossReference_1_1_0; } - - //ID - public RuleCall getContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1() { return cContextFeatureEStructuralFeatureIDTerminalRuleCall_1_1_0_1; } - - //(named?='as' givenName=ID)? - public Group getGroup_2() { return cGroup_2; } - - //named?='as' - public Assignment getNamedAssignment_2_0() { return cNamedAssignment_2_0; } - - //'as' - public Keyword getNamedAsKeyword_2_0_0() { return cNamedAsKeyword_2_0_0; } - - //givenName=ID - public Assignment getGivenNameAssignment_2_1() { return cGivenNameAssignment_2_1; } - - //ID - public RuleCall getGivenNameIDTerminalRuleCall_2_1_0() { return cGivenNameIDTerminalRuleCall_2_1_0; } - - //('marker' markerType=[ecore::EClass|QualifiedID]('#'markerFeature=[ecore::EStructuralFeature|ID]))? - public Group getGroup_3() { return cGroup_3; } - - //'marker' - public Keyword getMarkerKeyword_3_0() { return cMarkerKeyword_3_0; } - - //markerType=[ecore::EClass|QualifiedID] - public Assignment getMarkerTypeAssignment_3_1() { return cMarkerTypeAssignment_3_1; } - - //[ecore::EClass|QualifiedID] - public CrossReference getMarkerTypeEClassCrossReference_3_1_0() { return cMarkerTypeEClassCrossReference_3_1_0; } - - //QualifiedID - public RuleCall getMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1() { return cMarkerTypeEClassQualifiedIDParserRuleCall_3_1_0_1; } - - //('#'markerFeature=[ecore::EStructuralFeature|ID]) - public Group getGroup_3_2() { return cGroup_3_2; } - - //'#' - public Keyword getNumberSignKeyword_3_2_0() { return cNumberSignKeyword_3_2_0; } - - //markerFeature=[ecore::EStructuralFeature|ID] - public Assignment getMarkerFeatureAssignment_3_2_1() { return cMarkerFeatureAssignment_3_2_1; } - - //[ecore::EStructuralFeature|ID] - public CrossReference getMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0() { return cMarkerFeatureEStructuralFeatureCrossReference_3_2_1_0; } - - //ID - public RuleCall getMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1() { return cMarkerFeatureEStructuralFeatureIDTerminalRuleCall_3_2_1_0_1; } - - //('quickfixes' '{' - // (quickFixes+=QuickFix)+ - //'}')? - public Group getGroup_4() { return cGroup_4; } - - //'quickfixes' - public Keyword getQuickfixesKeyword_4_0() { return cQuickfixesKeyword_4_0; } - - //'{' - public Keyword getLeftCurlyBracketKeyword_4_1() { return cLeftCurlyBracketKeyword_4_1; } - - //(quickFixes+=QuickFix)+ - public Assignment getQuickFixesAssignment_4_2() { return cQuickFixesAssignment_4_2; } - - //QuickFix - public RuleCall getQuickFixesQuickFixParserRuleCall_4_2_0() { return cQuickFixesQuickFixParserRuleCall_4_2_0; } - - //'}' - public Keyword getRightCurlyBracketKeyword_4_3() { return cRightCurlyBracketKeyword_4_3; } - - //";" - public Keyword getSemicolonKeyword_5() { return cSemicolonKeyword_5; } - } - public class QuickFixElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.QuickFix"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Assignment cQuickFixKindAssignment_0 = (Assignment)cGroup.eContents().get(0); - private final RuleCall cQuickFixKindQuickFixKindEnumRuleCall_0_0 = (RuleCall)cQuickFixKindAssignment_0.eContents().get(0); - private final Keyword cFixKeyword_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); - private final Keyword cLabelKeyword_3 = (Keyword)cGroup.eContents().get(3); - private final Assignment cLabelAssignment_4 = (Assignment)cGroup.eContents().get(4); - private final RuleCall cLabelSTRINGTerminalRuleCall_4_0 = (RuleCall)cLabelAssignment_4.eContents().get(0); - private final Keyword cMessageKeyword_5 = (Keyword)cGroup.eContents().get(5); - private final Assignment cMessageAssignment_6 = (Assignment)cGroup.eContents().get(6); - private final RuleCall cMessageSTRINGTerminalRuleCall_6_0 = (RuleCall)cMessageAssignment_6.eContents().get(0); - private final Keyword cSemicolonKeyword_7 = (Keyword)cGroup.eContents().get(7); - - //QuickFix: - // ((quickFixKind=QuickFixKind)?) 'fix' name=ID 'label' label=STRING 'message' message=STRING ';' - //; - @Override public ParserRule getRule() { return rule; } - - //((quickFixKind=QuickFixKind)?) 'fix' name=ID 'label' label=STRING 'message' message=STRING ';' - public Group getGroup() { return cGroup; } - - //((quickFixKind=QuickFixKind)?) - public Assignment getQuickFixKindAssignment_0() { return cQuickFixKindAssignment_0; } - - //QuickFixKind - public RuleCall getQuickFixKindQuickFixKindEnumRuleCall_0_0() { return cQuickFixKindQuickFixKindEnumRuleCall_0_0; } - - //'fix' - public Keyword getFixKeyword_1() { return cFixKeyword_1; } - - //name=ID - public Assignment getNameAssignment_2() { return cNameAssignment_2; } - - //ID - public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } - - //'label' - public Keyword getLabelKeyword_3() { return cLabelKeyword_3; } - - //label=STRING - public Assignment getLabelAssignment_4() { return cLabelAssignment_4; } - - //STRING - public RuleCall getLabelSTRINGTerminalRuleCall_4_0() { return cLabelSTRINGTerminalRuleCall_4_0; } - - //'message' - public Keyword getMessageKeyword_5() { return cMessageKeyword_5; } - - //message=STRING - public Assignment getMessageAssignment_6() { return cMessageAssignment_6; } - - //STRING - public RuleCall getMessageSTRINGTerminalRuleCall_6_0() { return cMessageSTRINGTerminalRuleCall_6_0; } - - //';' - public Keyword getSemicolonKeyword_7() { return cSemicolonKeyword_7; } - } - public class QualifiedIDElements extends AbstractParserRuleElementFinder { - private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.QualifiedID"); - private final Group cGroup = (Group)rule.eContents().get(1); - private final Group cGroup_0 = (Group)cGroup.eContents().get(0); - private final RuleCall cIDTerminalRuleCall_0_0 = (RuleCall)cGroup_0.eContents().get(0); - private final Keyword cColonColonKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1); - private final RuleCall cIDTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1); - - //QualifiedID returns ecore::EString : - // (ID '::')* ID - //; - @Override public ParserRule getRule() { return rule; } - - //(ID '::')* ID - public Group getGroup() { return cGroup; } - - //(ID '::')* - public Group getGroup_0() { return cGroup_0; } - - //ID - public RuleCall getIDTerminalRuleCall_0_0() { return cIDTerminalRuleCall_0_0; } - - //'::' - public Keyword getColonColonKeyword_0_1() { return cColonColonKeyword_0_1; } - - //ID - public RuleCall getIDTerminalRuleCall_1() { return cIDTerminalRuleCall_1; } - } - - public class CheckKindElements extends AbstractElementFinder.AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.CheckKind"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cFastEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cFastFastKeyword_0_0 = (Keyword)cFastEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cNormalEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cNormalNormalKeyword_1_0 = (Keyword)cNormalEnumLiteralDeclaration_1.eContents().get(0); - private final EnumLiteralDeclaration cExpensiveEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2); - private final Keyword cExpensiveExpensiveKeyword_2_0 = (Keyword)cExpensiveEnumLiteralDeclaration_2.eContents().get(0); - - //enum CheckKind: - // fast='fast' | normal='normal' | expensive='expensive' - //; - public EnumRule getRule() { return rule; } - - //fast='fast' | normal='normal' | expensive='expensive' - public Alternatives getAlternatives() { return cAlternatives; } - - //fast='fast' - public EnumLiteralDeclaration getFastEnumLiteralDeclaration_0() { return cFastEnumLiteralDeclaration_0; } - - //'fast' - public Keyword getFastFastKeyword_0_0() { return cFastFastKeyword_0_0; } - - //normal='normal' - public EnumLiteralDeclaration getNormalEnumLiteralDeclaration_1() { return cNormalEnumLiteralDeclaration_1; } - - //'normal' - public Keyword getNormalNormalKeyword_1_0() { return cNormalNormalKeyword_1_0; } - - //expensive='expensive' - public EnumLiteralDeclaration getExpensiveEnumLiteralDeclaration_2() { return cExpensiveEnumLiteralDeclaration_2; } - - //'expensive' - public Keyword getExpensiveExpensiveKeyword_2_0() { return cExpensiveExpensiveKeyword_2_0; } - } - public class SeverityKindElements extends AbstractElementFinder.AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.SeverityKind"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cErrorEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cErrorErrorKeyword_0_0 = (Keyword)cErrorEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cWarningEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cWarningWarningKeyword_1_0 = (Keyword)cWarningEnumLiteralDeclaration_1.eContents().get(0); - - //enum SeverityKind: - // error='error' | warning='warning' - //; - public EnumRule getRule() { return rule; } - - //error='error' | warning='warning' - public Alternatives getAlternatives() { return cAlternatives; } - - //error='error' - public EnumLiteralDeclaration getErrorEnumLiteralDeclaration_0() { return cErrorEnumLiteralDeclaration_0; } - - //'error' - public Keyword getErrorErrorKeyword_0_0() { return cErrorErrorKeyword_0_0; } - - //warning='warning' - public EnumLiteralDeclaration getWarningEnumLiteralDeclaration_1() { return cWarningEnumLiteralDeclaration_1; } - - //'warning' - public Keyword getWarningWarningKeyword_1_0() { return cWarningWarningKeyword_1_0; } - } - public class QuickFixKindElements extends AbstractElementFinder.AbstractEnumRuleElementFinder { - private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "com.avaloq.tools.ddk.xtext.valid.Valid.QuickFixKind"); - private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); - private final EnumLiteralDeclaration cSemanticEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); - private final Keyword cSemanticSemanticKeyword_0_0 = (Keyword)cSemanticEnumLiteralDeclaration_0.eContents().get(0); - private final EnumLiteralDeclaration cTextualEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); - private final Keyword cTextualTextualKeyword_1_0 = (Keyword)cTextualEnumLiteralDeclaration_1.eContents().get(0); - - //enum QuickFixKind: - // semantic='semantic' | textual='textual' - //; - public EnumRule getRule() { return rule; } - - //semantic='semantic' | textual='textual' - public Alternatives getAlternatives() { return cAlternatives; } - - //semantic='semantic' - public EnumLiteralDeclaration getSemanticEnumLiteralDeclaration_0() { return cSemanticEnumLiteralDeclaration_0; } - - //'semantic' - public Keyword getSemanticSemanticKeyword_0_0() { return cSemanticSemanticKeyword_0_0; } - - //textual='textual' - public EnumLiteralDeclaration getTextualEnumLiteralDeclaration_1() { return cTextualEnumLiteralDeclaration_1; } - - //'textual' - public Keyword getTextualTextualKeyword_1_0() { return cTextualTextualKeyword_1_0; } - } - - private final ValidModelElements pValidModel; - private final ImportElements pImport; - private final CategoryElements pCategory; - private final RuleElements pRule; - private final PredefinedRuleElements pPredefinedRule; - private final NativeRuleElements pNativeRule; - private final SizeRuleElements pSizeRule; - private final RangeRuleElements pRangeRule; - private final UniqueRuleElements pUniqueRule; - private final ContextElements pContext; - private final SimpleContextElements pSimpleContext; - private final DuplicateContextElements pDuplicateContext; - private final NativeContextElements pNativeContext; - private final QuickFixElements pQuickFix; - private final CheckKindElements eCheckKind; - private final SeverityKindElements eSeverityKind; - private final QuickFixKindElements eQuickFixKind; - private final QualifiedIDElements pQualifiedID; - - private final Grammar grammar; - - private final TerminalsGrammarAccess gaTerminals; - - @Inject - public ValidGrammarAccess(GrammarProvider grammarProvider, - TerminalsGrammarAccess gaTerminals) { - this.grammar = internalFindGrammar(grammarProvider); - this.gaTerminals = gaTerminals; - this.pValidModel = new ValidModelElements(); - this.pImport = new ImportElements(); - this.pCategory = new CategoryElements(); - this.pRule = new RuleElements(); - this.pPredefinedRule = new PredefinedRuleElements(); - this.pNativeRule = new NativeRuleElements(); - this.pSizeRule = new SizeRuleElements(); - this.pRangeRule = new RangeRuleElements(); - this.pUniqueRule = new UniqueRuleElements(); - this.pContext = new ContextElements(); - this.pSimpleContext = new SimpleContextElements(); - this.pDuplicateContext = new DuplicateContextElements(); - this.pNativeContext = new NativeContextElements(); - this.pQuickFix = new QuickFixElements(); - this.eCheckKind = new CheckKindElements(); - this.eSeverityKind = new SeverityKindElements(); - this.eQuickFixKind = new QuickFixKindElements(); - this.pQualifiedID = new QualifiedIDElements(); - } - - protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { - Grammar grammar = grammarProvider.getGrammar(this); - while (grammar != null) { - if ("com.avaloq.tools.ddk.xtext.valid.Valid".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; - } - - - //ValidModel: - // (imports+=Import)* - // (categories+=Category)* - //; - public ValidModelElements getValidModelAccess() { - return pValidModel; - } - - public ParserRule getValidModelRule() { - return getValidModelAccess().getRule(); - } - - //Import: - // 'import' package=[ecore::EPackage|STRING] - //; - public ImportElements getImportAccess() { - return pImport; - } - - public ParserRule getImportRule() { - return getImportAccess().getRule(); - } - - //Category: - // 'category' name=ID 'label' label=STRING ('description' description=STRING)? '{' (rules+=Rule)* '}' - //; - public CategoryElements getCategoryAccess() { - return pCategory; - } - - public ParserRule getCategoryRule() { - return getCategoryAccess().getRule(); - } - - //Rule: - // NativeRule | PredefinedRule - //; - public RuleElements getRuleAccess() { - return pRule; - } - - public ParserRule getRuleRule() { - return getRuleAccess().getRule(); - } - - //PredefinedRule: - //SizeRule | RangeRule | UniqueRule //TODO | CapitalizationRule - //; - public PredefinedRuleElements getPredefinedRuleAccess() { - return pPredefinedRule; - } - - public ParserRule getPredefinedRuleRule() { - return getPredefinedRuleAccess().getRule(); - } - - //NativeRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // 'message' message=STRING - // 'context' '{' - // (contexts+=NativeContext)+ - // '}' - //; - public NativeRuleElements getNativeRuleAccess() { - return pNativeRule; - } - - public ParserRule getNativeRuleRule() { - return getNativeRuleAccess().getRule(); - } - - //SizeRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) 'size' severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // ('message' message=STRING)? - // 'size' (min=INT '..')? max=INT - // 'context' '{' - // (contexts+=SimpleContext)+ - // '}' - //; - public SizeRuleElements getSizeRuleAccess() { - return pSizeRule; - } - - public ParserRule getSizeRuleRule() { - return getSizeRuleAccess().getRule(); - } - - //RangeRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) 'range' severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // ('message' message=STRING)? - // 'range' (min=INT '..')? max=INT - // 'context' '{' - // (contexts+=SimpleContext)+ - // '}' - //; - public RangeRuleElements getRangeRuleAccess() { - return pRangeRule; - } - - public ParserRule getRangeRuleRule() { - return getRangeRuleAccess().getRule(); - } - - //UniqueRule: - // ((optional?='optional')? & (checkKind=CheckKind)?) 'unique' severity=SeverityKind name=ID - // 'label' label=STRING - // ('description' description=STRING)? - // ('message' message=STRING)? - // 'context' '{' - // (contexts+=DuplicateContext)+ - // '}' - //; - public UniqueRuleElements getUniqueRuleAccess() { - return pUniqueRule; - } - - public ParserRule getUniqueRuleRule() { - return getUniqueRuleAccess().getRule(); - } - - //Context: - // NativeContext | DuplicateContext | SimpleContext - //; - public ContextElements getContextAccess() { - return pContext; - } - - public ParserRule getContextRule() { - return getContextAccess().getRule(); - } - - //SimpleContext: - // contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? ";" - //; - public SimpleContextElements getSimpleContextAccess() { - return pSimpleContext; - } - - public ParserRule getSimpleContextRule() { - return getSimpleContextAccess().getRule(); - } - - //DuplicateContext: - // contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? 'marker' markerType=[ecore::EClass|QualifiedID]'#'markerFeature=[ecore::EStructuralFeature|ID]?";" - //; - public DuplicateContextElements getDuplicateContextAccess() { - return pDuplicateContext; - } - - public ParserRule getDuplicateContextRule() { - return getDuplicateContextAccess().getRule(); - } - - //NativeContext: - // contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? (named?='as' givenName=ID)? ('marker' markerType=[ecore::EClass|QualifiedID]('#'markerFeature=[ecore::EStructuralFeature|ID]))? - // ('quickfixes' '{' - // (quickFixes+=QuickFix)+ - // '}')? - // ";" - //; - public NativeContextElements getNativeContextAccess() { - return pNativeContext; - } - - public ParserRule getNativeContextRule() { - return getNativeContextAccess().getRule(); - } - - //QuickFix: - // ((quickFixKind=QuickFixKind)?) 'fix' name=ID 'label' label=STRING 'message' message=STRING ';' - //; - public QuickFixElements getQuickFixAccess() { - return pQuickFix; - } - - public ParserRule getQuickFixRule() { - return getQuickFixAccess().getRule(); - } - - //enum CheckKind: - // fast='fast' | normal='normal' | expensive='expensive' - //; - public CheckKindElements getCheckKindAccess() { - return eCheckKind; - } - - public EnumRule getCheckKindRule() { - return getCheckKindAccess().getRule(); - } - - //enum SeverityKind: - // error='error' | warning='warning' - //; - public SeverityKindElements getSeverityKindAccess() { - return eSeverityKind; - } - - public EnumRule getSeverityKindRule() { - return getSeverityKindAccess().getRule(); - } - - //enum QuickFixKind: - // semantic='semantic' | textual='textual' - //; - public QuickFixKindElements getQuickFixKindAccess() { - return eQuickFixKind; - } - - public EnumRule getQuickFixKindRule() { - return getQuickFixKindAccess().getRule(); - } - - //QualifiedID returns ecore::EString : - // (ID '::')* ID - //; - public QualifiedIDElements getQualifiedIDAccess() { - return pQualifiedID; - } - - public ParserRule getQualifiedIDRule() { - return getQualifiedIDAccess().getRule(); - } - - //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/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Category.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Category.java deleted file mode 100644 index d574f7e00e..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Category.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Category'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getName Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getLabel Label}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getDescription Description}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getRules Rules}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getCategory() - * @model - * @generated - */ -public interface Category extends EObject -{ - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getCategory_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Label' attribute. - * - * - * @return the value of the 'Label' attribute. - * @see #setLabel(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getCategory_Label() - * @model - * @generated - */ - String getLabel(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getLabel Label}' attribute. - * - * - * @param value the new value of the 'Label' attribute. - * @see #getLabel() - * @generated - */ - void setLabel(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getCategory_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Rules' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule}. - * - * - * @return the value of the 'Rules' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getCategory_Rules() - * @model containment="true" - * @generated - */ - EList getRules(); - -} // Category diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/CheckKind.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/CheckKind.java deleted file mode 100644 index 22058359c9..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/CheckKind.java +++ /dev/null @@ -1,247 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Check Kind', - * and utility methods for working with them. - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getCheckKind() - * @model - * @generated - */ -public enum CheckKind implements Enumerator -{ - /** - * The 'Fast' literal object. - * - * - * @see #FAST_VALUE - * @generated - * @ordered - */ - FAST(0, "fast", "fast"), - - /** - * The 'Normal' literal object. - * - * - * @see #NORMAL_VALUE - * @generated - * @ordered - */ - NORMAL(1, "normal", "normal"), - - /** - * The 'Expensive' literal object. - * - * - * @see #EXPENSIVE_VALUE - * @generated - * @ordered - */ - EXPENSIVE(2, "expensive", "expensive"); - - /** - * The 'Fast' literal value. - * - * - * @see #FAST - * @model name="fast" - * @generated - * @ordered - */ - public static final int FAST_VALUE = 0; - - /** - * The 'Normal' literal value. - * - * - * @see #NORMAL - * @model name="normal" - * @generated - * @ordered - */ - public static final int NORMAL_VALUE = 1; - - /** - * The 'Expensive' literal value. - * - * - * @see #EXPENSIVE - * @model name="expensive" - * @generated - * @ordered - */ - public static final int EXPENSIVE_VALUE = 2; - - /** - * An array of all the 'Check Kind' enumerators. - * - * - * @generated - */ - private static final CheckKind[] VALUES_ARRAY = - new CheckKind[] - { - FAST, - NORMAL, - EXPENSIVE, - }; - - /** - * A public read-only list of all the 'Check Kind' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Check Kind' literal with the specified literal value. - * - * - * @param literal the literal. - * @return the matching enumerator or null. - * @generated - */ - public static CheckKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - CheckKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Check Kind' literal with the specified name. - * - * - * @param name the name. - * @return the matching enumerator or null. - * @generated - */ - public static CheckKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - CheckKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Check Kind' literal with the specified integer value. - * - * - * @param value the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static CheckKind get(int value) - { - switch (value) - { - case FAST_VALUE: return FAST; - case NORMAL_VALUE: return NORMAL; - case EXPENSIVE_VALUE: return EXPENSIVE; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private CheckKind(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - @Override - public int getValue() - { - return value; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public String getLiteral() - { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() - { - return literal; - } - -} //CheckKind diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Context.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Context.java deleted file mode 100644 index 564dbe58a7..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Context.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * - * A representation of the model object 'Context'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextType Context Type}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextFeature Context Feature}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getContext() - * @model - * @generated - */ -public interface Context extends EObject -{ - /** - * Returns the value of the 'Context Type' reference. - * - * - * @return the value of the 'Context Type' reference. - * @see #setContextType(EClass) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getContext_ContextType() - * @model - * @generated - */ - EClass getContextType(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextType Context Type}' reference. - * - * - * @param value the new value of the 'Context Type' reference. - * @see #getContextType() - * @generated - */ - void setContextType(EClass value); - - /** - * Returns the value of the 'Context Feature' reference. - * - * - * @return the value of the 'Context Feature' reference. - * @see #setContextFeature(EStructuralFeature) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getContext_ContextFeature() - * @model - * @generated - */ - EStructuralFeature getContextFeature(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextFeature Context Feature}' reference. - * - * - * @param value the new value of the 'Context Feature' reference. - * @see #getContextFeature() - * @generated - */ - void setContextFeature(EStructuralFeature value); - -} // Context diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/DuplicateContext.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/DuplicateContext.java deleted file mode 100644 index 22ab2e27bb..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/DuplicateContext.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * - * A representation of the model object 'Duplicate Context'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerType Marker Type}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerFeature Marker Feature}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getDuplicateContext() - * @model - * @generated - */ -public interface DuplicateContext extends Context -{ - /** - * Returns the value of the 'Marker Type' reference. - * - * - * @return the value of the 'Marker Type' reference. - * @see #setMarkerType(EClass) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getDuplicateContext_MarkerType() - * @model - * @generated - */ - EClass getMarkerType(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerType Marker Type}' reference. - * - * - * @param value the new value of the 'Marker Type' reference. - * @see #getMarkerType() - * @generated - */ - void setMarkerType(EClass value); - - /** - * Returns the value of the 'Marker Feature' reference. - * - * - * @return the value of the 'Marker Feature' reference. - * @see #setMarkerFeature(EStructuralFeature) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getDuplicateContext_MarkerFeature() - * @model - * @generated - */ - EStructuralFeature getMarkerFeature(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerFeature Marker Feature}' reference. - * - * - * @param value the new value of the 'Marker Feature' reference. - * @see #getMarkerFeature() - * @generated - */ - void setMarkerFeature(EStructuralFeature value); - -} // DuplicateContext diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Import.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Import.java deleted file mode 100644 index 09c28d0854..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Import.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -/** - * - * A representation of the model object 'Import'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Import#getPackage Package}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getImport() - * @model - * @generated - */ -public interface Import extends EObject -{ - /** - * Returns the value of the 'Package' reference. - * - * - * @return the value of the 'Package' reference. - * @see #setPackage(EPackage) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getImport_Package() - * @model - * @generated - */ - EPackage getPackage(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Import#getPackage Package}' reference. - * - * - * @param value the new value of the 'Package' reference. - * @see #getPackage() - * @generated - */ - void setPackage(EPackage value); - -} // Import diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/NativeContext.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/NativeContext.java deleted file mode 100644 index 47a0332e0a..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/NativeContext.java +++ /dev/null @@ -1,132 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; - -/** - * - * A representation of the model object 'Native Context'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#isNamed Named}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getGivenName Given Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerType Marker Type}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerFeature Marker Feature}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getQuickFixes Quick Fixes}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeContext() - * @model - * @generated - */ -public interface NativeContext extends Context -{ - /** - * Returns the value of the 'Named' attribute. - * - * - * @return the value of the 'Named' attribute. - * @see #setNamed(boolean) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeContext_Named() - * @model - * @generated - */ - boolean isNamed(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#isNamed Named}' attribute. - * - * - * @param value the new value of the 'Named' attribute. - * @see #isNamed() - * @generated - */ - void setNamed(boolean value); - - /** - * Returns the value of the 'Given Name' attribute. - * - * - * @return the value of the 'Given Name' attribute. - * @see #setGivenName(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeContext_GivenName() - * @model - * @generated - */ - String getGivenName(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getGivenName Given Name}' attribute. - * - * - * @param value the new value of the 'Given Name' attribute. - * @see #getGivenName() - * @generated - */ - void setGivenName(String value); - - /** - * Returns the value of the 'Marker Type' reference. - * - * - * @return the value of the 'Marker Type' reference. - * @see #setMarkerType(EClass) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeContext_MarkerType() - * @model - * @generated - */ - EClass getMarkerType(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerType Marker Type}' reference. - * - * - * @param value the new value of the 'Marker Type' reference. - * @see #getMarkerType() - * @generated - */ - void setMarkerType(EClass value); - - /** - * Returns the value of the 'Marker Feature' reference. - * - * - * @return the value of the 'Marker Feature' reference. - * @see #setMarkerFeature(EStructuralFeature) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeContext_MarkerFeature() - * @model - * @generated - */ - EStructuralFeature getMarkerFeature(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerFeature Marker Feature}' reference. - * - * - * @param value the new value of the 'Marker Feature' reference. - * @see #getMarkerFeature() - * @generated - */ - void setMarkerFeature(EStructuralFeature value); - - /** - * Returns the value of the 'Quick Fixes' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix}. - * - * - * @return the value of the 'Quick Fixes' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeContext_QuickFixes() - * @model containment="true" - * @generated - */ - EList getQuickFixes(); - -} // NativeContext diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/NativeRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/NativeRule.java deleted file mode 100644 index 5cbe8a50c2..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/NativeRule.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Native Rule'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeRule#getContexts Contexts}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeRule() - * @model - * @generated - */ -public interface NativeRule extends Rule -{ - /** - * Returns the value of the 'Contexts' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext}. - * - * - * @return the value of the 'Contexts' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getNativeRule_Contexts() - * @model containment="true" - * @generated - */ - EList getContexts(); - -} // NativeRule diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/PredefinedRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/PredefinedRule.java deleted file mode 100644 index 85db035e75..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/PredefinedRule.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - - -/** - * - * A representation of the model object 'Predefined Rule'. - * - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getPredefinedRule() - * @model - * @generated - */ -public interface PredefinedRule extends Rule -{ -} // PredefinedRule diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/QuickFix.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/QuickFix.java deleted file mode 100644 index cdffa74d2d..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/QuickFix.java +++ /dev/null @@ -1,119 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Quick Fix'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getQuickFixKind Quick Fix Kind}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getName Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getLabel Label}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getMessage Message}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getQuickFix() - * @model - * @generated - */ -public interface QuickFix extends EObject -{ - /** - * Returns the value of the 'Quick Fix Kind' attribute. - * The literals are from the enumeration {@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind}. - * - * - * @return the value of the 'Quick Fix Kind' attribute. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind - * @see #setQuickFixKind(QuickFixKind) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getQuickFix_QuickFixKind() - * @model - * @generated - */ - QuickFixKind getQuickFixKind(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getQuickFixKind Quick Fix Kind}' attribute. - * - * - * @param value the new value of the 'Quick Fix Kind' attribute. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind - * @see #getQuickFixKind() - * @generated - */ - void setQuickFixKind(QuickFixKind value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getQuickFix_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Label' attribute. - * - * - * @return the value of the 'Label' attribute. - * @see #setLabel(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getQuickFix_Label() - * @model - * @generated - */ - String getLabel(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getLabel Label}' attribute. - * - * - * @param value the new value of the 'Label' attribute. - * @see #getLabel() - * @generated - */ - void setLabel(String value); - - /** - * Returns the value of the 'Message' attribute. - * - * - * @return the value of the 'Message' attribute. - * @see #setMessage(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getQuickFix_Message() - * @model - * @generated - */ - String getMessage(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getMessage Message}' attribute. - * - * - * @param value the new value of the 'Message' attribute. - * @see #getMessage() - * @generated - */ - void setMessage(String value); - -} // QuickFix diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/QuickFixKind.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/QuickFixKind.java deleted file mode 100644 index 078814f275..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/QuickFixKind.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Quick Fix Kind', - * and utility methods for working with them. - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getQuickFixKind() - * @model - * @generated - */ -public enum QuickFixKind implements Enumerator -{ - /** - * The 'Semantic' literal object. - * - * - * @see #SEMANTIC_VALUE - * @generated - * @ordered - */ - SEMANTIC(0, "semantic", "semantic"), - - /** - * The 'Textual' literal object. - * - * - * @see #TEXTUAL_VALUE - * @generated - * @ordered - */ - TEXTUAL(1, "textual", "textual"); - - /** - * The 'Semantic' literal value. - * - * - * @see #SEMANTIC - * @model name="semantic" - * @generated - * @ordered - */ - public static final int SEMANTIC_VALUE = 0; - - /** - * The 'Textual' literal value. - * - * - * @see #TEXTUAL - * @model name="textual" - * @generated - * @ordered - */ - public static final int TEXTUAL_VALUE = 1; - - /** - * An array of all the 'Quick Fix Kind' enumerators. - * - * - * @generated - */ - private static final QuickFixKind[] VALUES_ARRAY = - new QuickFixKind[] - { - SEMANTIC, - TEXTUAL, - }; - - /** - * A public read-only list of all the 'Quick Fix Kind' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Quick Fix Kind' literal with the specified literal value. - * - * - * @param literal the literal. - * @return the matching enumerator or null. - * @generated - */ - public static QuickFixKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - QuickFixKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Quick Fix Kind' literal with the specified name. - * - * - * @param name the name. - * @return the matching enumerator or null. - * @generated - */ - public static QuickFixKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - QuickFixKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Quick Fix Kind' literal with the specified integer value. - * - * - * @param value the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static QuickFixKind get(int value) - { - switch (value) - { - case SEMANTIC_VALUE: return SEMANTIC; - case TEXTUAL_VALUE: return TEXTUAL; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private QuickFixKind(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - @Override - public int getValue() - { - return value; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public String getLiteral() - { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() - { - return literal; - } - -} //QuickFixKind diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/RangeRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/RangeRule.java deleted file mode 100644 index e9ad2a37fc..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/RangeRule.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Range Rule'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMin Min}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMax Max}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getContexts Contexts}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRangeRule() - * @model - * @generated - */ -public interface RangeRule extends PredefinedRule -{ - /** - * Returns the value of the 'Min' attribute. - * - * - * @return the value of the 'Min' attribute. - * @see #setMin(int) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRangeRule_Min() - * @model - * @generated - */ - int getMin(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMin Min}' attribute. - * - * - * @param value the new value of the 'Min' attribute. - * @see #getMin() - * @generated - */ - void setMin(int value); - - /** - * Returns the value of the 'Max' attribute. - * - * - * @return the value of the 'Max' attribute. - * @see #setMax(int) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRangeRule_Max() - * @model - * @generated - */ - int getMax(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMax Max}' attribute. - * - * - * @param value the new value of the 'Max' attribute. - * @see #getMax() - * @generated - */ - void setMax(int value); - - /** - * Returns the value of the 'Contexts' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext}. - * - * - * @return the value of the 'Contexts' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRangeRule_Contexts() - * @model containment="true" - * @generated - */ - EList getContexts(); - -} // RangeRule diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Rule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Rule.java deleted file mode 100644 index e216d94d8e..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/Rule.java +++ /dev/null @@ -1,191 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Rule'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#isOptional Optional}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getCheckKind Check Kind}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getSeverity Severity}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getName Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getLabel Label}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getDescription Description}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getMessage Message}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule() - * @model - * @generated - */ -public interface Rule extends EObject -{ - /** - * Returns the value of the 'Optional' attribute. - * - * - * @return the value of the 'Optional' attribute. - * @see #setOptional(boolean) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_Optional() - * @model - * @generated - */ - boolean isOptional(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#isOptional Optional}' attribute. - * - * - * @param value the new value of the 'Optional' attribute. - * @see #isOptional() - * @generated - */ - void setOptional(boolean value); - - /** - * Returns the value of the 'Check Kind' attribute. - * The literals are from the enumeration {@link com.avaloq.tools.ddk.xtext.valid.valid.CheckKind}. - * - * - * @return the value of the 'Check Kind' attribute. - * @see com.avaloq.tools.ddk.xtext.valid.valid.CheckKind - * @see #setCheckKind(CheckKind) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_CheckKind() - * @model - * @generated - */ - CheckKind getCheckKind(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getCheckKind Check Kind}' attribute. - * - * - * @param value the new value of the 'Check Kind' attribute. - * @see com.avaloq.tools.ddk.xtext.valid.valid.CheckKind - * @see #getCheckKind() - * @generated - */ - void setCheckKind(CheckKind value); - - /** - * Returns the value of the 'Severity' attribute. - * The literals are from the enumeration {@link com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind}. - * - * - * @return the value of the 'Severity' attribute. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind - * @see #setSeverity(SeverityKind) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_Severity() - * @model - * @generated - */ - SeverityKind getSeverity(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getSeverity Severity}' attribute. - * - * - * @param value the new value of the 'Severity' attribute. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind - * @see #getSeverity() - * @generated - */ - void setSeverity(SeverityKind value); - - /** - * Returns the value of the 'Name' attribute. - * - * - * @return the value of the 'Name' attribute. - * @see #setName(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_Name() - * @model - * @generated - */ - String getName(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getName Name}' attribute. - * - * - * @param value the new value of the 'Name' attribute. - * @see #getName() - * @generated - */ - void setName(String value); - - /** - * Returns the value of the 'Label' attribute. - * - * - * @return the value of the 'Label' attribute. - * @see #setLabel(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_Label() - * @model - * @generated - */ - String getLabel(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getLabel Label}' attribute. - * - * - * @param value the new value of the 'Label' attribute. - * @see #getLabel() - * @generated - */ - void setLabel(String value); - - /** - * Returns the value of the 'Description' attribute. - * - * - * @return the value of the 'Description' attribute. - * @see #setDescription(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_Description() - * @model - * @generated - */ - String getDescription(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getDescription Description}' attribute. - * - * - * @param value the new value of the 'Description' attribute. - * @see #getDescription() - * @generated - */ - void setDescription(String value); - - /** - * Returns the value of the 'Message' attribute. - * - * - * @return the value of the 'Message' attribute. - * @see #setMessage(String) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getRule_Message() - * @model - * @generated - */ - String getMessage(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getMessage Message}' attribute. - * - * - * @param value the new value of the 'Message' attribute. - * @see #getMessage() - * @generated - */ - void setMessage(String value); - -} // Rule diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SeverityKind.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SeverityKind.java deleted file mode 100644 index 1bab264bdd..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SeverityKind.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import org.eclipse.emf.common.util.Enumerator; - -/** - * - * A representation of the literals of the enumeration 'Severity Kind', - * and utility methods for working with them. - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSeverityKind() - * @model - * @generated - */ -public enum SeverityKind implements Enumerator -{ - /** - * The 'Error' literal object. - * - * - * @see #ERROR_VALUE - * @generated - * @ordered - */ - ERROR(0, "error", "error"), - - /** - * The 'Warning' literal object. - * - * - * @see #WARNING_VALUE - * @generated - * @ordered - */ - WARNING(1, "warning", "warning"); - - /** - * The 'Error' literal value. - * - * - * @see #ERROR - * @model name="error" - * @generated - * @ordered - */ - public static final int ERROR_VALUE = 0; - - /** - * The 'Warning' literal value. - * - * - * @see #WARNING - * @model name="warning" - * @generated - * @ordered - */ - public static final int WARNING_VALUE = 1; - - /** - * An array of all the 'Severity Kind' enumerators. - * - * - * @generated - */ - private static final SeverityKind[] VALUES_ARRAY = - new SeverityKind[] - { - ERROR, - WARNING, - }; - - /** - * A public read-only list of all the 'Severity Kind' enumerators. - * - * - * @generated - */ - public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); - - /** - * Returns the 'Severity Kind' literal with the specified literal value. - * - * - * @param literal the literal. - * @return the matching enumerator or null. - * @generated - */ - public static SeverityKind get(String literal) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - SeverityKind result = VALUES_ARRAY[i]; - if (result.toString().equals(literal)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Severity Kind' literal with the specified name. - * - * - * @param name the name. - * @return the matching enumerator or null. - * @generated - */ - public static SeverityKind getByName(String name) - { - for (int i = 0; i < VALUES_ARRAY.length; ++i) - { - SeverityKind result = VALUES_ARRAY[i]; - if (result.getName().equals(name)) - { - return result; - } - } - return null; - } - - /** - * Returns the 'Severity Kind' literal with the specified integer value. - * - * - * @param value the integer value. - * @return the matching enumerator or null. - * @generated - */ - public static SeverityKind get(int value) - { - switch (value) - { - case ERROR_VALUE: return ERROR; - case WARNING_VALUE: return WARNING; - } - return null; - } - - /** - * - * - * @generated - */ - private final int value; - - /** - * - * - * @generated - */ - private final String name; - - /** - * - * - * @generated - */ - private final String literal; - - /** - * Only this class can construct instances. - * - * - * @generated - */ - private SeverityKind(int value, String name, String literal) - { - this.value = value; - this.name = name; - this.literal = literal; - } - - /** - * - * - * @generated - */ - @Override - public int getValue() - { - return value; - } - - /** - * - * - * @generated - */ - @Override - public String getName() - { - return name; - } - - /** - * - * - * @generated - */ - @Override - public String getLiteral() - { - return literal; - } - - /** - * Returns the literal value of the enumerator, which is its string representation. - * - * - * @generated - */ - @Override - public String toString() - { - return literal; - } - -} //SeverityKind diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SimpleContext.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SimpleContext.java deleted file mode 100644 index 42388978af..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SimpleContext.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - - -/** - * - * A representation of the model object 'Simple Context'. - * - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSimpleContext() - * @model - * @generated - */ -public interface SimpleContext extends Context -{ -} // SimpleContext diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SizeRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SizeRule.java deleted file mode 100644 index 1ee52fc8bc..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/SizeRule.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Size Rule'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMin Min}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMax Max}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getContexts Contexts}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSizeRule() - * @model - * @generated - */ -public interface SizeRule extends PredefinedRule -{ - /** - * Returns the value of the 'Min' attribute. - * - * - * @return the value of the 'Min' attribute. - * @see #setMin(int) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSizeRule_Min() - * @model - * @generated - */ - int getMin(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMin Min}' attribute. - * - * - * @param value the new value of the 'Min' attribute. - * @see #getMin() - * @generated - */ - void setMin(int value); - - /** - * Returns the value of the 'Max' attribute. - * - * - * @return the value of the 'Max' attribute. - * @see #setMax(int) - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSizeRule_Max() - * @model - * @generated - */ - int getMax(); - - /** - * Sets the value of the '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMax Max}' attribute. - * - * - * @param value the new value of the 'Max' attribute. - * @see #getMax() - * @generated - */ - void setMax(int value); - - /** - * Returns the value of the 'Contexts' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext}. - * - * - * @return the value of the 'Contexts' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getSizeRule_Contexts() - * @model containment="true" - * @generated - */ - EList getContexts(); - -} // SizeRule diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/UniqueRule.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/UniqueRule.java deleted file mode 100644 index 17941daf1d..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/UniqueRule.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -/** - * - * A representation of the model object 'Unique Rule'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule#getContexts Contexts}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getUniqueRule() - * @model - * @generated - */ -public interface UniqueRule extends PredefinedRule -{ - /** - * Returns the value of the 'Contexts' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext}. - * - * - * @return the value of the 'Contexts' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getUniqueRule_Contexts() - * @model containment="true" - * @generated - */ - EList getContexts(); - -} // UniqueRule diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidFactory.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidFactory.java deleted file mode 100644 index 0ae4e75f83..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidFactory.java +++ /dev/null @@ -1,160 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -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 com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage - * @generated - */ -public interface ValidFactory extends EFactory -{ - /** - * The singleton instance of the factory. - * - * - * @generated - */ - ValidFactory eINSTANCE = com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidFactoryImpl.init(); - - /** - * Returns a new object of class 'Model'. - * - * - * @return a new object of class 'Model'. - * @generated - */ - ValidModel createValidModel(); - - /** - * Returns a new object of class 'Import'. - * - * - * @return a new object of class 'Import'. - * @generated - */ - Import createImport(); - - /** - * Returns a new object of class 'Category'. - * - * - * @return a new object of class 'Category'. - * @generated - */ - Category createCategory(); - - /** - * Returns a new object of class 'Rule'. - * - * - * @return a new object of class 'Rule'. - * @generated - */ - Rule createRule(); - - /** - * Returns a new object of class 'Predefined Rule'. - * - * - * @return a new object of class 'Predefined Rule'. - * @generated - */ - PredefinedRule createPredefinedRule(); - - /** - * Returns a new object of class 'Native Rule'. - * - * - * @return a new object of class 'Native Rule'. - * @generated - */ - NativeRule createNativeRule(); - - /** - * Returns a new object of class 'Size Rule'. - * - * - * @return a new object of class 'Size Rule'. - * @generated - */ - SizeRule createSizeRule(); - - /** - * Returns a new object of class 'Range Rule'. - * - * - * @return a new object of class 'Range Rule'. - * @generated - */ - RangeRule createRangeRule(); - - /** - * Returns a new object of class 'Unique Rule'. - * - * - * @return a new object of class 'Unique Rule'. - * @generated - */ - UniqueRule createUniqueRule(); - - /** - * Returns a new object of class 'Context'. - * - * - * @return a new object of class 'Context'. - * @generated - */ - Context createContext(); - - /** - * Returns a new object of class 'Simple Context'. - * - * - * @return a new object of class 'Simple Context'. - * @generated - */ - SimpleContext createSimpleContext(); - - /** - * Returns a new object of class 'Duplicate Context'. - * - * - * @return a new object of class 'Duplicate Context'. - * @generated - */ - DuplicateContext createDuplicateContext(); - - /** - * Returns a new object of class 'Native Context'. - * - * - * @return a new object of class 'Native Context'. - * @generated - */ - NativeContext createNativeContext(); - - /** - * Returns a new object of class 'Quick Fix'. - * - * - * @return a new object of class 'Quick Fix'. - * @generated - */ - QuickFix createQuickFix(); - - /** - * Returns the package supported by this factory. - * - * - * @return the package supported by this factory. - * @generated - */ - ValidPackage getValidPackage(); - -} //ValidFactory diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidModel.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidModel.java deleted file mode 100644 index 452634b425..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidModel.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.common.util.EList; - -import org.eclipse.emf.ecore.EObject; - -/** - * - * A representation of the model object 'Model'. - * - * - *

- * The following features are supported: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.ValidModel#getImports Imports}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.ValidModel#getCategories Categories}
  • - *
- * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getValidModel() - * @model - * @generated - */ -public interface ValidModel extends EObject -{ - /** - * Returns the value of the 'Imports' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.Import}. - * - * - * @return the value of the 'Imports' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getValidModel_Imports() - * @model containment="true" - * @generated - */ - EList getImports(); - - /** - * Returns the value of the 'Categories' containment reference list. - * The list contents are of type {@link com.avaloq.tools.ddk.xtext.valid.valid.Category}. - * - * - * @return the value of the 'Categories' containment reference list. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#getValidModel_Categories() - * @model containment="true" - * @generated - */ - EList getCategories(); - -} // ValidModel diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidPackage.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidPackage.java deleted file mode 100644 index 8e5ce0fac4..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/ValidPackage.java +++ /dev/null @@ -1,2071 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -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 com.avaloq.tools.ddk.xtext.valid.valid.ValidFactory - * @model kind="package" - * @generated - */ -public interface ValidPackage extends EPackage -{ - /** - * The package name. - * - * - * @generated - */ - String eNAME = "valid"; - - /** - * The package namespace URI. - * - * - * @generated - */ - String eNS_URI = "http://www.avaloq.com/tools/ddk/xtext/valid/Valid"; - - /** - * The package namespace name. - * - * - * @generated - */ - String eNS_PREFIX = "valid"; - - /** - * The singleton instance of the package. - * - * - * @generated - */ - ValidPackage eINSTANCE = com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl.init(); - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidModelImpl Model}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidModelImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getValidModel() - * @generated - */ - int VALID_MODEL = 0; - - /** - * The feature id for the 'Imports' containment reference list. - * - * - * @generated - * @ordered - */ - int VALID_MODEL__IMPORTS = 0; - - /** - * The feature id for the 'Categories' containment reference list. - * - * - * @generated - * @ordered - */ - int VALID_MODEL__CATEGORIES = 1; - - /** - * The number of structural features of the 'Model' class. - * - * - * @generated - * @ordered - */ - int VALID_MODEL_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ImportImpl Import}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ImportImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getImport() - * @generated - */ - int IMPORT = 1; - - /** - * The feature id for the 'Package' reference. - * - * - * @generated - * @ordered - */ - int IMPORT__PACKAGE = 0; - - /** - * The number of structural features of the 'Import' class. - * - * - * @generated - * @ordered - */ - int IMPORT_FEATURE_COUNT = 1; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl Category}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getCategory() - * @generated - */ - int CATEGORY = 2; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int CATEGORY__NAME = 0; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int CATEGORY__LABEL = 1; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int CATEGORY__DESCRIPTION = 2; - - /** - * The feature id for the 'Rules' containment reference list. - * - * - * @generated - * @ordered - */ - int CATEGORY__RULES = 3; - - /** - * The number of structural features of the 'Category' class. - * - * - * @generated - * @ordered - */ - int CATEGORY_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getRule() - * @generated - */ - int RULE = 3; - - /** - * The feature id for the 'Optional' attribute. - * - * - * @generated - * @ordered - */ - int RULE__OPTIONAL = 0; - - /** - * The feature id for the 'Check Kind' attribute. - * - * - * @generated - * @ordered - */ - int RULE__CHECK_KIND = 1; - - /** - * The feature id for the 'Severity' attribute. - * - * - * @generated - * @ordered - */ - int RULE__SEVERITY = 2; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int RULE__NAME = 3; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int RULE__LABEL = 4; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int RULE__DESCRIPTION = 5; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int RULE__MESSAGE = 6; - - /** - * The number of structural features of the 'Rule' class. - * - * - * @generated - * @ordered - */ - int RULE_FEATURE_COUNT = 7; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.PredefinedRuleImpl Predefined Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.PredefinedRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getPredefinedRule() - * @generated - */ - int PREDEFINED_RULE = 4; - - /** - * The feature id for the 'Optional' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__OPTIONAL = RULE__OPTIONAL; - - /** - * The feature id for the 'Check Kind' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__CHECK_KIND = RULE__CHECK_KIND; - - /** - * The feature id for the 'Severity' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__SEVERITY = RULE__SEVERITY; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__NAME = RULE__NAME; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__LABEL = RULE__LABEL; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__DESCRIPTION = RULE__DESCRIPTION; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE__MESSAGE = RULE__MESSAGE; - - /** - * The number of structural features of the 'Predefined Rule' class. - * - * - * @generated - * @ordered - */ - int PREDEFINED_RULE_FEATURE_COUNT = RULE_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeRuleImpl Native Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getNativeRule() - * @generated - */ - int NATIVE_RULE = 5; - - /** - * The feature id for the 'Optional' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__OPTIONAL = RULE__OPTIONAL; - - /** - * The feature id for the 'Check Kind' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__CHECK_KIND = RULE__CHECK_KIND; - - /** - * The feature id for the 'Severity' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__SEVERITY = RULE__SEVERITY; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__NAME = RULE__NAME; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__LABEL = RULE__LABEL; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__DESCRIPTION = RULE__DESCRIPTION; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__MESSAGE = RULE__MESSAGE; - - /** - * The feature id for the 'Contexts' containment reference list. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE__CONTEXTS = RULE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Native Rule' class. - * - * - * @generated - * @ordered - */ - int NATIVE_RULE_FEATURE_COUNT = RULE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl Size Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getSizeRule() - * @generated - */ - int SIZE_RULE = 6; - - /** - * The feature id for the 'Optional' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__OPTIONAL = PREDEFINED_RULE__OPTIONAL; - - /** - * The feature id for the 'Check Kind' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__CHECK_KIND = PREDEFINED_RULE__CHECK_KIND; - - /** - * The feature id for the 'Severity' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__SEVERITY = PREDEFINED_RULE__SEVERITY; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__NAME = PREDEFINED_RULE__NAME; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__LABEL = PREDEFINED_RULE__LABEL; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__DESCRIPTION = PREDEFINED_RULE__DESCRIPTION; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__MESSAGE = PREDEFINED_RULE__MESSAGE; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__MIN = PREDEFINED_RULE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__MAX = PREDEFINED_RULE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Contexts' containment reference list. - * - * - * @generated - * @ordered - */ - int SIZE_RULE__CONTEXTS = PREDEFINED_RULE_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Size Rule' class. - * - * - * @generated - * @ordered - */ - int SIZE_RULE_FEATURE_COUNT = PREDEFINED_RULE_FEATURE_COUNT + 3; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl Range Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getRangeRule() - * @generated - */ - int RANGE_RULE = 7; - - /** - * The feature id for the 'Optional' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__OPTIONAL = PREDEFINED_RULE__OPTIONAL; - - /** - * The feature id for the 'Check Kind' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__CHECK_KIND = PREDEFINED_RULE__CHECK_KIND; - - /** - * The feature id for the 'Severity' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__SEVERITY = PREDEFINED_RULE__SEVERITY; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__NAME = PREDEFINED_RULE__NAME; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__LABEL = PREDEFINED_RULE__LABEL; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__DESCRIPTION = PREDEFINED_RULE__DESCRIPTION; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__MESSAGE = PREDEFINED_RULE__MESSAGE; - - /** - * The feature id for the 'Min' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__MIN = PREDEFINED_RULE_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Max' attribute. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__MAX = PREDEFINED_RULE_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Contexts' containment reference list. - * - * - * @generated - * @ordered - */ - int RANGE_RULE__CONTEXTS = PREDEFINED_RULE_FEATURE_COUNT + 2; - - /** - * The number of structural features of the 'Range Rule' class. - * - * - * @generated - * @ordered - */ - int RANGE_RULE_FEATURE_COUNT = PREDEFINED_RULE_FEATURE_COUNT + 3; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.UniqueRuleImpl Unique Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.UniqueRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getUniqueRule() - * @generated - */ - int UNIQUE_RULE = 8; - - /** - * The feature id for the 'Optional' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__OPTIONAL = PREDEFINED_RULE__OPTIONAL; - - /** - * The feature id for the 'Check Kind' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__CHECK_KIND = PREDEFINED_RULE__CHECK_KIND; - - /** - * The feature id for the 'Severity' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__SEVERITY = PREDEFINED_RULE__SEVERITY; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__NAME = PREDEFINED_RULE__NAME; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__LABEL = PREDEFINED_RULE__LABEL; - - /** - * The feature id for the 'Description' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__DESCRIPTION = PREDEFINED_RULE__DESCRIPTION; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__MESSAGE = PREDEFINED_RULE__MESSAGE; - - /** - * The feature id for the 'Contexts' containment reference list. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE__CONTEXTS = PREDEFINED_RULE_FEATURE_COUNT + 0; - - /** - * The number of structural features of the 'Unique Rule' class. - * - * - * @generated - * @ordered - */ - int UNIQUE_RULE_FEATURE_COUNT = PREDEFINED_RULE_FEATURE_COUNT + 1; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ContextImpl Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getContext() - * @generated - */ - int CONTEXT = 9; - - /** - * The feature id for the 'Context Type' reference. - * - * - * @generated - * @ordered - */ - int CONTEXT__CONTEXT_TYPE = 0; - - /** - * The feature id for the 'Context Feature' reference. - * - * - * @generated - * @ordered - */ - int CONTEXT__CONTEXT_FEATURE = 1; - - /** - * The number of structural features of the 'Context' class. - * - * - * @generated - * @ordered - */ - int CONTEXT_FEATURE_COUNT = 2; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SimpleContextImpl Simple Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.SimpleContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getSimpleContext() - * @generated - */ - int SIMPLE_CONTEXT = 10; - - /** - * The feature id for the 'Context Type' reference. - * - * - * @generated - * @ordered - */ - int SIMPLE_CONTEXT__CONTEXT_TYPE = CONTEXT__CONTEXT_TYPE; - - /** - * The feature id for the 'Context Feature' reference. - * - * - * @generated - * @ordered - */ - int SIMPLE_CONTEXT__CONTEXT_FEATURE = CONTEXT__CONTEXT_FEATURE; - - /** - * The number of structural features of the 'Simple Context' class. - * - * - * @generated - * @ordered - */ - int SIMPLE_CONTEXT_FEATURE_COUNT = CONTEXT_FEATURE_COUNT + 0; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.DuplicateContextImpl Duplicate Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.DuplicateContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getDuplicateContext() - * @generated - */ - int DUPLICATE_CONTEXT = 11; - - /** - * The feature id for the 'Context Type' reference. - * - * - * @generated - * @ordered - */ - int DUPLICATE_CONTEXT__CONTEXT_TYPE = CONTEXT__CONTEXT_TYPE; - - /** - * The feature id for the 'Context Feature' reference. - * - * - * @generated - * @ordered - */ - int DUPLICATE_CONTEXT__CONTEXT_FEATURE = CONTEXT__CONTEXT_FEATURE; - - /** - * The feature id for the 'Marker Type' reference. - * - * - * @generated - * @ordered - */ - int DUPLICATE_CONTEXT__MARKER_TYPE = CONTEXT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Marker Feature' reference. - * - * - * @generated - * @ordered - */ - int DUPLICATE_CONTEXT__MARKER_FEATURE = CONTEXT_FEATURE_COUNT + 1; - - /** - * The number of structural features of the 'Duplicate Context' class. - * - * - * @generated - * @ordered - */ - int DUPLICATE_CONTEXT_FEATURE_COUNT = CONTEXT_FEATURE_COUNT + 2; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl Native Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getNativeContext() - * @generated - */ - int NATIVE_CONTEXT = 12; - - /** - * The feature id for the 'Context Type' reference. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__CONTEXT_TYPE = CONTEXT__CONTEXT_TYPE; - - /** - * The feature id for the 'Context Feature' reference. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__CONTEXT_FEATURE = CONTEXT__CONTEXT_FEATURE; - - /** - * The feature id for the 'Named' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__NAMED = CONTEXT_FEATURE_COUNT + 0; - - /** - * The feature id for the 'Given Name' attribute. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__GIVEN_NAME = CONTEXT_FEATURE_COUNT + 1; - - /** - * The feature id for the 'Marker Type' reference. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__MARKER_TYPE = CONTEXT_FEATURE_COUNT + 2; - - /** - * The feature id for the 'Marker Feature' reference. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__MARKER_FEATURE = CONTEXT_FEATURE_COUNT + 3; - - /** - * The feature id for the 'Quick Fixes' containment reference list. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT__QUICK_FIXES = CONTEXT_FEATURE_COUNT + 4; - - /** - * The number of structural features of the 'Native Context' class. - * - * - * @generated - * @ordered - */ - int NATIVE_CONTEXT_FEATURE_COUNT = CONTEXT_FEATURE_COUNT + 5; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl Quick Fix}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getQuickFix() - * @generated - */ - int QUICK_FIX = 13; - - /** - * The feature id for the 'Quick Fix Kind' attribute. - * - * - * @generated - * @ordered - */ - int QUICK_FIX__QUICK_FIX_KIND = 0; - - /** - * The feature id for the 'Name' attribute. - * - * - * @generated - * @ordered - */ - int QUICK_FIX__NAME = 1; - - /** - * The feature id for the 'Label' attribute. - * - * - * @generated - * @ordered - */ - int QUICK_FIX__LABEL = 2; - - /** - * The feature id for the 'Message' attribute. - * - * - * @generated - * @ordered - */ - int QUICK_FIX__MESSAGE = 3; - - /** - * The number of structural features of the 'Quick Fix' class. - * - * - * @generated - * @ordered - */ - int QUICK_FIX_FEATURE_COUNT = 4; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.CheckKind Check Kind}' enum. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.CheckKind - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getCheckKind() - * @generated - */ - int CHECK_KIND = 14; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind Severity Kind}' enum. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getSeverityKind() - * @generated - */ - int SEVERITY_KIND = 15; - - /** - * The meta object id for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind Quick Fix Kind}' enum. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getQuickFixKind() - * @generated - */ - int QUICK_FIX_KIND = 16; - - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.ValidModel Model}'. - * - * - * @return the meta object for class 'Model'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidModel - * @generated - */ - EClass getValidModel(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.ValidModel#getImports Imports}'. - * - * - * @return the meta object for the containment reference list 'Imports'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidModel#getImports() - * @see #getValidModel() - * @generated - */ - EReference getValidModel_Imports(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.ValidModel#getCategories Categories}'. - * - * - * @return the meta object for the containment reference list 'Categories'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidModel#getCategories() - * @see #getValidModel() - * @generated - */ - EReference getValidModel_Categories(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Import Import}'. - * - * - * @return the meta object for class 'Import'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Import - * @generated - */ - EClass getImport(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.Import#getPackage Package}'. - * - * - * @return the meta object for the reference 'Package'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Import#getPackage() - * @see #getImport() - * @generated - */ - EReference getImport_Package(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category Category}'. - * - * - * @return the meta object for class 'Category'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Category - * @generated - */ - EClass getCategory(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Category#getName() - * @see #getCategory() - * @generated - */ - EAttribute getCategory_Name(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getLabel Label}'. - * - * - * @return the meta object for the attribute 'Label'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Category#getLabel() - * @see #getCategory() - * @generated - */ - EAttribute getCategory_Label(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Category#getDescription() - * @see #getCategory() - * @generated - */ - EAttribute getCategory_Description(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category#getRules Rules}'. - * - * - * @return the meta object for the containment reference list 'Rules'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Category#getRules() - * @see #getCategory() - * @generated - */ - EReference getCategory_Rules(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule Rule}'. - * - * - * @return the meta object for class 'Rule'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule - * @generated - */ - EClass getRule(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#isOptional Optional}'. - * - * - * @return the meta object for the attribute 'Optional'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#isOptional() - * @see #getRule() - * @generated - */ - EAttribute getRule_Optional(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getCheckKind Check Kind}'. - * - * - * @return the meta object for the attribute 'Check Kind'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#getCheckKind() - * @see #getRule() - * @generated - */ - EAttribute getRule_CheckKind(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getSeverity Severity}'. - * - * - * @return the meta object for the attribute 'Severity'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#getSeverity() - * @see #getRule() - * @generated - */ - EAttribute getRule_Severity(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#getName() - * @see #getRule() - * @generated - */ - EAttribute getRule_Name(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getLabel Label}'. - * - * - * @return the meta object for the attribute 'Label'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#getLabel() - * @see #getRule() - * @generated - */ - EAttribute getRule_Label(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getDescription Description}'. - * - * - * @return the meta object for the attribute 'Description'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#getDescription() - * @see #getRule() - * @generated - */ - EAttribute getRule_Description(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule#getMessage Message}'. - * - * - * @return the meta object for the attribute 'Message'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Rule#getMessage() - * @see #getRule() - * @generated - */ - EAttribute getRule_Message(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule Predefined Rule}'. - * - * - * @return the meta object for class 'Predefined Rule'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule - * @generated - */ - EClass getPredefinedRule(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeRule Native Rule}'. - * - * - * @return the meta object for class 'Native Rule'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeRule - * @generated - */ - EClass getNativeRule(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeRule#getContexts Contexts}'. - * - * - * @return the meta object for the containment reference list 'Contexts'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeRule#getContexts() - * @see #getNativeRule() - * @generated - */ - EReference getNativeRule_Contexts(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule Size Rule}'. - * - * - * @return the meta object for class 'Size Rule'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SizeRule - * @generated - */ - EClass getSizeRule(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMin Min}'. - * - * - * @return the meta object for the attribute 'Min'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMin() - * @see #getSizeRule() - * @generated - */ - EAttribute getSizeRule_Min(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMax Max}'. - * - * - * @return the meta object for the attribute 'Max'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getMax() - * @see #getSizeRule() - * @generated - */ - EAttribute getSizeRule_Max(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getContexts Contexts}'. - * - * - * @return the meta object for the containment reference list 'Contexts'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SizeRule#getContexts() - * @see #getSizeRule() - * @generated - */ - EReference getSizeRule_Contexts(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule Range Rule}'. - * - * - * @return the meta object for class 'Range Rule'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.RangeRule - * @generated - */ - EClass getRangeRule(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMin Min}'. - * - * - * @return the meta object for the attribute 'Min'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMin() - * @see #getRangeRule() - * @generated - */ - EAttribute getRangeRule_Min(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMax Max}'. - * - * - * @return the meta object for the attribute 'Max'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getMax() - * @see #getRangeRule() - * @generated - */ - EAttribute getRangeRule_Max(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getContexts Contexts}'. - * - * - * @return the meta object for the containment reference list 'Contexts'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.RangeRule#getContexts() - * @see #getRangeRule() - * @generated - */ - EReference getRangeRule_Contexts(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule Unique Rule}'. - * - * - * @return the meta object for class 'Unique Rule'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule - * @generated - */ - EClass getUniqueRule(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule#getContexts Contexts}'. - * - * - * @return the meta object for the containment reference list 'Contexts'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule#getContexts() - * @see #getUniqueRule() - * @generated - */ - EReference getUniqueRule_Contexts(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context Context}'. - * - * - * @return the meta object for class 'Context'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Context - * @generated - */ - EClass getContext(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextType Context Type}'. - * - * - * @return the meta object for the reference 'Context Type'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextType() - * @see #getContext() - * @generated - */ - EReference getContext_ContextType(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextFeature Context Feature}'. - * - * - * @return the meta object for the reference 'Context Feature'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.Context#getContextFeature() - * @see #getContext() - * @generated - */ - EReference getContext_ContextFeature(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext Simple Context}'. - * - * - * @return the meta object for class 'Simple Context'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext - * @generated - */ - EClass getSimpleContext(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext Duplicate Context}'. - * - * - * @return the meta object for class 'Duplicate Context'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext - * @generated - */ - EClass getDuplicateContext(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerType Marker Type}'. - * - * - * @return the meta object for the reference 'Marker Type'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerType() - * @see #getDuplicateContext() - * @generated - */ - EReference getDuplicateContext_MarkerType(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerFeature Marker Feature}'. - * - * - * @return the meta object for the reference 'Marker Feature'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext#getMarkerFeature() - * @see #getDuplicateContext() - * @generated - */ - EReference getDuplicateContext_MarkerFeature(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext Native Context}'. - * - * - * @return the meta object for class 'Native Context'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext - * @generated - */ - EClass getNativeContext(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#isNamed Named}'. - * - * - * @return the meta object for the attribute 'Named'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#isNamed() - * @see #getNativeContext() - * @generated - */ - EAttribute getNativeContext_Named(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getGivenName Given Name}'. - * - * - * @return the meta object for the attribute 'Given Name'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getGivenName() - * @see #getNativeContext() - * @generated - */ - EAttribute getNativeContext_GivenName(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerType Marker Type}'. - * - * - * @return the meta object for the reference 'Marker Type'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerType() - * @see #getNativeContext() - * @generated - */ - EReference getNativeContext_MarkerType(); - - /** - * Returns the meta object for the reference '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerFeature Marker Feature}'. - * - * - * @return the meta object for the reference 'Marker Feature'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getMarkerFeature() - * @see #getNativeContext() - * @generated - */ - EReference getNativeContext_MarkerFeature(); - - /** - * Returns the meta object for the containment reference list '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getQuickFixes Quick Fixes}'. - * - * - * @return the meta object for the containment reference list 'Quick Fixes'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.NativeContext#getQuickFixes() - * @see #getNativeContext() - * @generated - */ - EReference getNativeContext_QuickFixes(); - - /** - * Returns the meta object for class '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix Quick Fix}'. - * - * - * @return the meta object for class 'Quick Fix'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFix - * @generated - */ - EClass getQuickFix(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getQuickFixKind Quick Fix Kind}'. - * - * - * @return the meta object for the attribute 'Quick Fix Kind'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getQuickFixKind() - * @see #getQuickFix() - * @generated - */ - EAttribute getQuickFix_QuickFixKind(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getName Name}'. - * - * - * @return the meta object for the attribute 'Name'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getName() - * @see #getQuickFix() - * @generated - */ - EAttribute getQuickFix_Name(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getLabel Label}'. - * - * - * @return the meta object for the attribute 'Label'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getLabel() - * @see #getQuickFix() - * @generated - */ - EAttribute getQuickFix_Label(); - - /** - * Returns the meta object for the attribute '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getMessage Message}'. - * - * - * @return the meta object for the attribute 'Message'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFix#getMessage() - * @see #getQuickFix() - * @generated - */ - EAttribute getQuickFix_Message(); - - /** - * Returns the meta object for enum '{@link com.avaloq.tools.ddk.xtext.valid.valid.CheckKind Check Kind}'. - * - * - * @return the meta object for enum 'Check Kind'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.CheckKind - * @generated - */ - EEnum getCheckKind(); - - /** - * Returns the meta object for enum '{@link com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind Severity Kind}'. - * - * - * @return the meta object for enum 'Severity Kind'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind - * @generated - */ - EEnum getSeverityKind(); - - /** - * Returns the meta object for enum '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind Quick Fix Kind}'. - * - * - * @return the meta object for enum 'Quick Fix Kind'. - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind - * @generated - */ - EEnum getQuickFixKind(); - - /** - * Returns the factory that creates the instances of the model. - * - * - * @return the factory that creates the instances of the model. - * @generated - */ - ValidFactory getValidFactory(); - - /** - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidModelImpl Model}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidModelImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getValidModel() - * @generated - */ - EClass VALID_MODEL = eINSTANCE.getValidModel(); - - /** - * The meta object literal for the 'Imports' containment reference list feature. - * - * - * @generated - */ - EReference VALID_MODEL__IMPORTS = eINSTANCE.getValidModel_Imports(); - - /** - * The meta object literal for the 'Categories' containment reference list feature. - * - * - * @generated - */ - EReference VALID_MODEL__CATEGORIES = eINSTANCE.getValidModel_Categories(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ImportImpl Import}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ImportImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getImport() - * @generated - */ - EClass IMPORT = eINSTANCE.getImport(); - - /** - * The meta object literal for the 'Package' reference feature. - * - * - * @generated - */ - EReference IMPORT__PACKAGE = eINSTANCE.getImport_Package(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl Category}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getCategory() - * @generated - */ - EClass CATEGORY = eINSTANCE.getCategory(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute CATEGORY__NAME = eINSTANCE.getCategory_Name(); - - /** - * The meta object literal for the 'Label' attribute feature. - * - * - * @generated - */ - EAttribute CATEGORY__LABEL = eINSTANCE.getCategory_Label(); - - /** - * The meta object literal for the 'Description' attribute feature. - * - * - * @generated - */ - EAttribute CATEGORY__DESCRIPTION = eINSTANCE.getCategory_Description(); - - /** - * The meta object literal for the 'Rules' containment reference list feature. - * - * - * @generated - */ - EReference CATEGORY__RULES = eINSTANCE.getCategory_Rules(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getRule() - * @generated - */ - EClass RULE = eINSTANCE.getRule(); - - /** - * The meta object literal for the 'Optional' attribute feature. - * - * - * @generated - */ - EAttribute RULE__OPTIONAL = eINSTANCE.getRule_Optional(); - - /** - * The meta object literal for the 'Check Kind' attribute feature. - * - * - * @generated - */ - EAttribute RULE__CHECK_KIND = eINSTANCE.getRule_CheckKind(); - - /** - * The meta object literal for the 'Severity' attribute feature. - * - * - * @generated - */ - EAttribute RULE__SEVERITY = eINSTANCE.getRule_Severity(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute RULE__NAME = eINSTANCE.getRule_Name(); - - /** - * The meta object literal for the 'Label' attribute feature. - * - * - * @generated - */ - EAttribute RULE__LABEL = eINSTANCE.getRule_Label(); - - /** - * The meta object literal for the 'Description' attribute feature. - * - * - * @generated - */ - EAttribute RULE__DESCRIPTION = eINSTANCE.getRule_Description(); - - /** - * The meta object literal for the 'Message' attribute feature. - * - * - * @generated - */ - EAttribute RULE__MESSAGE = eINSTANCE.getRule_Message(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.PredefinedRuleImpl Predefined Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.PredefinedRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getPredefinedRule() - * @generated - */ - EClass PREDEFINED_RULE = eINSTANCE.getPredefinedRule(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeRuleImpl Native Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getNativeRule() - * @generated - */ - EClass NATIVE_RULE = eINSTANCE.getNativeRule(); - - /** - * The meta object literal for the 'Contexts' containment reference list feature. - * - * - * @generated - */ - EReference NATIVE_RULE__CONTEXTS = eINSTANCE.getNativeRule_Contexts(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl Size Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getSizeRule() - * @generated - */ - EClass SIZE_RULE = eINSTANCE.getSizeRule(); - - /** - * The meta object literal for the 'Min' attribute feature. - * - * - * @generated - */ - EAttribute SIZE_RULE__MIN = eINSTANCE.getSizeRule_Min(); - - /** - * The meta object literal for the 'Max' attribute feature. - * - * - * @generated - */ - EAttribute SIZE_RULE__MAX = eINSTANCE.getSizeRule_Max(); - - /** - * The meta object literal for the 'Contexts' containment reference list feature. - * - * - * @generated - */ - EReference SIZE_RULE__CONTEXTS = eINSTANCE.getSizeRule_Contexts(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl Range Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getRangeRule() - * @generated - */ - EClass RANGE_RULE = eINSTANCE.getRangeRule(); - - /** - * The meta object literal for the 'Min' attribute feature. - * - * - * @generated - */ - EAttribute RANGE_RULE__MIN = eINSTANCE.getRangeRule_Min(); - - /** - * The meta object literal for the 'Max' attribute feature. - * - * - * @generated - */ - EAttribute RANGE_RULE__MAX = eINSTANCE.getRangeRule_Max(); - - /** - * The meta object literal for the 'Contexts' containment reference list feature. - * - * - * @generated - */ - EReference RANGE_RULE__CONTEXTS = eINSTANCE.getRangeRule_Contexts(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.UniqueRuleImpl Unique Rule}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.UniqueRuleImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getUniqueRule() - * @generated - */ - EClass UNIQUE_RULE = eINSTANCE.getUniqueRule(); - - /** - * The meta object literal for the 'Contexts' containment reference list feature. - * - * - * @generated - */ - EReference UNIQUE_RULE__CONTEXTS = eINSTANCE.getUniqueRule_Contexts(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ContextImpl Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getContext() - * @generated - */ - EClass CONTEXT = eINSTANCE.getContext(); - - /** - * The meta object literal for the 'Context Type' reference feature. - * - * - * @generated - */ - EReference CONTEXT__CONTEXT_TYPE = eINSTANCE.getContext_ContextType(); - - /** - * The meta object literal for the 'Context Feature' reference feature. - * - * - * @generated - */ - EReference CONTEXT__CONTEXT_FEATURE = eINSTANCE.getContext_ContextFeature(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SimpleContextImpl Simple Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.SimpleContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getSimpleContext() - * @generated - */ - EClass SIMPLE_CONTEXT = eINSTANCE.getSimpleContext(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.DuplicateContextImpl Duplicate Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.DuplicateContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getDuplicateContext() - * @generated - */ - EClass DUPLICATE_CONTEXT = eINSTANCE.getDuplicateContext(); - - /** - * The meta object literal for the 'Marker Type' reference feature. - * - * - * @generated - */ - EReference DUPLICATE_CONTEXT__MARKER_TYPE = eINSTANCE.getDuplicateContext_MarkerType(); - - /** - * The meta object literal for the 'Marker Feature' reference feature. - * - * - * @generated - */ - EReference DUPLICATE_CONTEXT__MARKER_FEATURE = eINSTANCE.getDuplicateContext_MarkerFeature(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl Native Context}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getNativeContext() - * @generated - */ - EClass NATIVE_CONTEXT = eINSTANCE.getNativeContext(); - - /** - * The meta object literal for the 'Named' attribute feature. - * - * - * @generated - */ - EAttribute NATIVE_CONTEXT__NAMED = eINSTANCE.getNativeContext_Named(); - - /** - * The meta object literal for the 'Given Name' attribute feature. - * - * - * @generated - */ - EAttribute NATIVE_CONTEXT__GIVEN_NAME = eINSTANCE.getNativeContext_GivenName(); - - /** - * The meta object literal for the 'Marker Type' reference feature. - * - * - * @generated - */ - EReference NATIVE_CONTEXT__MARKER_TYPE = eINSTANCE.getNativeContext_MarkerType(); - - /** - * The meta object literal for the 'Marker Feature' reference feature. - * - * - * @generated - */ - EReference NATIVE_CONTEXT__MARKER_FEATURE = eINSTANCE.getNativeContext_MarkerFeature(); - - /** - * The meta object literal for the 'Quick Fixes' containment reference list feature. - * - * - * @generated - */ - EReference NATIVE_CONTEXT__QUICK_FIXES = eINSTANCE.getNativeContext_QuickFixes(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl Quick Fix}' class. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getQuickFix() - * @generated - */ - EClass QUICK_FIX = eINSTANCE.getQuickFix(); - - /** - * The meta object literal for the 'Quick Fix Kind' attribute feature. - * - * - * @generated - */ - EAttribute QUICK_FIX__QUICK_FIX_KIND = eINSTANCE.getQuickFix_QuickFixKind(); - - /** - * The meta object literal for the 'Name' attribute feature. - * - * - * @generated - */ - EAttribute QUICK_FIX__NAME = eINSTANCE.getQuickFix_Name(); - - /** - * The meta object literal for the 'Label' attribute feature. - * - * - * @generated - */ - EAttribute QUICK_FIX__LABEL = eINSTANCE.getQuickFix_Label(); - - /** - * The meta object literal for the 'Message' attribute feature. - * - * - * @generated - */ - EAttribute QUICK_FIX__MESSAGE = eINSTANCE.getQuickFix_Message(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.CheckKind Check Kind}' enum. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.CheckKind - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getCheckKind() - * @generated - */ - EEnum CHECK_KIND = eINSTANCE.getCheckKind(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind Severity Kind}' enum. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getSeverityKind() - * @generated - */ - EEnum SEVERITY_KIND = eINSTANCE.getSeverityKind(); - - /** - * The meta object literal for the '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind Quick Fix Kind}' enum. - * - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind - * @see com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidPackageImpl#getQuickFixKind() - * @generated - */ - EEnum QUICK_FIX_KIND = eINSTANCE.getQuickFixKind(); - - } - -} //ValidPackage diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/CategoryImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/CategoryImpl.java deleted file mode 100644 index d5f981fcc7..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/CategoryImpl.java +++ /dev/null @@ -1,359 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.Category; -import com.avaloq.tools.ddk.xtext.valid.valid.Rule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Category'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl#getName Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl#getLabel Label}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl#getDescription Description}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.CategoryImpl#getRules Rules}
  • - *
- * - * @generated - */ -public class CategoryImpl extends MinimalEObjectImpl.Container implements Category -{ - /** - * 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 default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The cached value of the '{@link #getRules() Rules}' containment reference list. - * - * - * @see #getRules() - * @generated - * @ordered - */ - protected EList rules; - - /** - * - * - * @generated - */ - protected CategoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.CATEGORY; - } - - /** - * - * - * @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, ValidPackage.CATEGORY__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - @Override - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.CATEGORY__LABEL, oldLabel, label)); - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() - { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) - { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.CATEGORY__DESCRIPTION, oldDescription, description)); - } - - /** - * - * - * @generated - */ - @Override - public EList getRules() - { - if (rules == null) - { - rules = new EObjectContainmentEList(Rule.class, this, ValidPackage.CATEGORY__RULES); - } - return rules; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.CATEGORY__RULES: - return ((InternalEList)getRules()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.CATEGORY__NAME: - return getName(); - case ValidPackage.CATEGORY__LABEL: - return getLabel(); - case ValidPackage.CATEGORY__DESCRIPTION: - return getDescription(); - case ValidPackage.CATEGORY__RULES: - return getRules(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.CATEGORY__NAME: - setName((String)newValue); - return; - case ValidPackage.CATEGORY__LABEL: - setLabel((String)newValue); - return; - case ValidPackage.CATEGORY__DESCRIPTION: - setDescription((String)newValue); - return; - case ValidPackage.CATEGORY__RULES: - getRules().clear(); - getRules().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.CATEGORY__NAME: - setName(NAME_EDEFAULT); - return; - case ValidPackage.CATEGORY__LABEL: - setLabel(LABEL_EDEFAULT); - return; - case ValidPackage.CATEGORY__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case ValidPackage.CATEGORY__RULES: - getRules().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.CATEGORY__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ValidPackage.CATEGORY__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - case ValidPackage.CATEGORY__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case ValidPackage.CATEGORY__RULES: - return rules != null && !rules.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(", label: "); - result.append(label); - result.append(", description: "); - result.append(description); - result.append(')'); - return result.toString(); - } - -} //CategoryImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ContextImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ContextImpl.java deleted file mode 100644 index 20d4ef28a7..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ContextImpl.java +++ /dev/null @@ -1,242 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.Context; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Context'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ContextImpl#getContextType Context Type}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ContextImpl#getContextFeature Context Feature}
  • - *
- * - * @generated - */ -public class ContextImpl extends MinimalEObjectImpl.Container implements Context -{ - /** - * The cached value of the '{@link #getContextType() Context Type}' reference. - * - * - * @see #getContextType() - * @generated - * @ordered - */ - protected EClass contextType; - - /** - * The cached value of the '{@link #getContextFeature() Context Feature}' reference. - * - * - * @see #getContextFeature() - * @generated - * @ordered - */ - protected EStructuralFeature contextFeature; - - /** - * - * - * @generated - */ - protected ContextImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.CONTEXT; - } - - /** - * - * - * @generated - */ - @Override - public EClass getContextType() - { - if (contextType != null && contextType.eIsProxy()) - { - InternalEObject oldContextType = (InternalEObject)contextType; - contextType = (EClass)eResolveProxy(oldContextType); - if (contextType != oldContextType) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.CONTEXT__CONTEXT_TYPE, oldContextType, contextType)); - } - } - return contextType; - } - - /** - * - * - * @generated - */ - public EClass basicGetContextType() - { - return contextType; - } - - /** - * - * - * @generated - */ - @Override - public void setContextType(EClass newContextType) - { - EClass oldContextType = contextType; - contextType = newContextType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.CONTEXT__CONTEXT_TYPE, oldContextType, contextType)); - } - - /** - * - * - * @generated - */ - @Override - public EStructuralFeature getContextFeature() - { - if (contextFeature != null && contextFeature.eIsProxy()) - { - InternalEObject oldContextFeature = (InternalEObject)contextFeature; - contextFeature = (EStructuralFeature)eResolveProxy(oldContextFeature); - if (contextFeature != oldContextFeature) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.CONTEXT__CONTEXT_FEATURE, oldContextFeature, contextFeature)); - } - } - return contextFeature; - } - - /** - * - * - * @generated - */ - public EStructuralFeature basicGetContextFeature() - { - return contextFeature; - } - - /** - * - * - * @generated - */ - @Override - public void setContextFeature(EStructuralFeature newContextFeature) - { - EStructuralFeature oldContextFeature = contextFeature; - contextFeature = newContextFeature; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.CONTEXT__CONTEXT_FEATURE, oldContextFeature, contextFeature)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.CONTEXT__CONTEXT_TYPE: - if (resolve) return getContextType(); - return basicGetContextType(); - case ValidPackage.CONTEXT__CONTEXT_FEATURE: - if (resolve) return getContextFeature(); - return basicGetContextFeature(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.CONTEXT__CONTEXT_TYPE: - setContextType((EClass)newValue); - return; - case ValidPackage.CONTEXT__CONTEXT_FEATURE: - setContextFeature((EStructuralFeature)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.CONTEXT__CONTEXT_TYPE: - setContextType((EClass)null); - return; - case ValidPackage.CONTEXT__CONTEXT_FEATURE: - setContextFeature((EStructuralFeature)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.CONTEXT__CONTEXT_TYPE: - return contextType != null; - case ValidPackage.CONTEXT__CONTEXT_FEATURE: - return contextFeature != null; - } - return super.eIsSet(featureID); - } - -} //ContextImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/DuplicateContextImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/DuplicateContextImpl.java deleted file mode 100644 index 15693b71ba..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/DuplicateContextImpl.java +++ /dev/null @@ -1,241 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; - -/** - * - * An implementation of the model object 'Duplicate Context'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.DuplicateContextImpl#getMarkerType Marker Type}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.DuplicateContextImpl#getMarkerFeature Marker Feature}
  • - *
- * - * @generated - */ -public class DuplicateContextImpl extends ContextImpl implements DuplicateContext -{ - /** - * The cached value of the '{@link #getMarkerType() Marker Type}' reference. - * - * - * @see #getMarkerType() - * @generated - * @ordered - */ - protected EClass markerType; - - /** - * The cached value of the '{@link #getMarkerFeature() Marker Feature}' reference. - * - * - * @see #getMarkerFeature() - * @generated - * @ordered - */ - protected EStructuralFeature markerFeature; - - /** - * - * - * @generated - */ - protected DuplicateContextImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.DUPLICATE_CONTEXT; - } - - /** - * - * - * @generated - */ - @Override - public EClass getMarkerType() - { - if (markerType != null && markerType.eIsProxy()) - { - InternalEObject oldMarkerType = (InternalEObject)markerType; - markerType = (EClass)eResolveProxy(oldMarkerType); - if (markerType != oldMarkerType) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.DUPLICATE_CONTEXT__MARKER_TYPE, oldMarkerType, markerType)); - } - } - return markerType; - } - - /** - * - * - * @generated - */ - public EClass basicGetMarkerType() - { - return markerType; - } - - /** - * - * - * @generated - */ - @Override - public void setMarkerType(EClass newMarkerType) - { - EClass oldMarkerType = markerType; - markerType = newMarkerType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.DUPLICATE_CONTEXT__MARKER_TYPE, oldMarkerType, markerType)); - } - - /** - * - * - * @generated - */ - @Override - public EStructuralFeature getMarkerFeature() - { - if (markerFeature != null && markerFeature.eIsProxy()) - { - InternalEObject oldMarkerFeature = (InternalEObject)markerFeature; - markerFeature = (EStructuralFeature)eResolveProxy(oldMarkerFeature); - if (markerFeature != oldMarkerFeature) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.DUPLICATE_CONTEXT__MARKER_FEATURE, oldMarkerFeature, markerFeature)); - } - } - return markerFeature; - } - - /** - * - * - * @generated - */ - public EStructuralFeature basicGetMarkerFeature() - { - return markerFeature; - } - - /** - * - * - * @generated - */ - @Override - public void setMarkerFeature(EStructuralFeature newMarkerFeature) - { - EStructuralFeature oldMarkerFeature = markerFeature; - markerFeature = newMarkerFeature; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.DUPLICATE_CONTEXT__MARKER_FEATURE, oldMarkerFeature, markerFeature)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.DUPLICATE_CONTEXT__MARKER_TYPE: - if (resolve) return getMarkerType(); - return basicGetMarkerType(); - case ValidPackage.DUPLICATE_CONTEXT__MARKER_FEATURE: - if (resolve) return getMarkerFeature(); - return basicGetMarkerFeature(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.DUPLICATE_CONTEXT__MARKER_TYPE: - setMarkerType((EClass)newValue); - return; - case ValidPackage.DUPLICATE_CONTEXT__MARKER_FEATURE: - setMarkerFeature((EStructuralFeature)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.DUPLICATE_CONTEXT__MARKER_TYPE: - setMarkerType((EClass)null); - return; - case ValidPackage.DUPLICATE_CONTEXT__MARKER_FEATURE: - setMarkerFeature((EStructuralFeature)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.DUPLICATE_CONTEXT__MARKER_TYPE: - return markerType != null; - case ValidPackage.DUPLICATE_CONTEXT__MARKER_FEATURE: - return markerFeature != null; - } - return super.eIsSet(featureID); - } - -} //DuplicateContextImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ImportImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ImportImpl.java deleted file mode 100644 index 0553c74c99..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ImportImpl.java +++ /dev/null @@ -1,175 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.Import; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -import org.eclipse.emf.common.notify.Notification; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.InternalEObject; - -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; - -/** - * - * An implementation of the model object 'Import'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ImportImpl#getPackage Package}
  • - *
- * - * @generated - */ -public class ImportImpl extends MinimalEObjectImpl.Container implements Import -{ - /** - * The cached value of the '{@link #getPackage() Package}' reference. - * - * - * @see #getPackage() - * @generated - * @ordered - */ - protected EPackage package_; - - /** - * - * - * @generated - */ - protected ImportImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.IMPORT; - } - - /** - * - * - * @generated - */ - @Override - public EPackage getPackage() - { - if (package_ != null && package_.eIsProxy()) - { - InternalEObject oldPackage = (InternalEObject)package_; - package_ = (EPackage)eResolveProxy(oldPackage); - if (package_ != oldPackage) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.IMPORT__PACKAGE, oldPackage, package_)); - } - } - return package_; - } - - /** - * - * - * @generated - */ - public EPackage basicGetPackage() - { - return package_; - } - - /** - * - * - * @generated - */ - @Override - public void setPackage(EPackage newPackage) - { - EPackage oldPackage = package_; - package_ = newPackage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.IMPORT__PACKAGE, oldPackage, package_)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.IMPORT__PACKAGE: - if (resolve) return getPackage(); - return basicGetPackage(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.IMPORT__PACKAGE: - setPackage((EPackage)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.IMPORT__PACKAGE: - setPackage((EPackage)null); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.IMPORT__PACKAGE: - return package_ != null; - } - return super.eIsSet(featureID); - } - -} //ImportImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/NativeContextImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/NativeContextImpl.java deleted file mode 100644 index ef77b19cd0..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/NativeContextImpl.java +++ /dev/null @@ -1,435 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFix; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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.EStructuralFeature; -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; - -/** - * - * An implementation of the model object 'Native Context'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl#isNamed Named}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl#getGivenName Given Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl#getMarkerType Marker Type}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl#getMarkerFeature Marker Feature}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeContextImpl#getQuickFixes Quick Fixes}
  • - *
- * - * @generated - */ -public class NativeContextImpl extends ContextImpl implements NativeContext -{ - /** - * The default value of the '{@link #isNamed() Named}' attribute. - * - * - * @see #isNamed() - * @generated - * @ordered - */ - protected static final boolean NAMED_EDEFAULT = false; - - /** - * The cached value of the '{@link #isNamed() Named}' attribute. - * - * - * @see #isNamed() - * @generated - * @ordered - */ - protected boolean named = NAMED_EDEFAULT; - - /** - * The default value of the '{@link #getGivenName() Given Name}' attribute. - * - * - * @see #getGivenName() - * @generated - * @ordered - */ - protected static final String GIVEN_NAME_EDEFAULT = null; - - /** - * The cached value of the '{@link #getGivenName() Given Name}' attribute. - * - * - * @see #getGivenName() - * @generated - * @ordered - */ - protected String givenName = GIVEN_NAME_EDEFAULT; - - /** - * The cached value of the '{@link #getMarkerType() Marker Type}' reference. - * - * - * @see #getMarkerType() - * @generated - * @ordered - */ - protected EClass markerType; - - /** - * The cached value of the '{@link #getMarkerFeature() Marker Feature}' reference. - * - * - * @see #getMarkerFeature() - * @generated - * @ordered - */ - protected EStructuralFeature markerFeature; - - /** - * The cached value of the '{@link #getQuickFixes() Quick Fixes}' containment reference list. - * - * - * @see #getQuickFixes() - * @generated - * @ordered - */ - protected EList quickFixes; - - /** - * - * - * @generated - */ - protected NativeContextImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.NATIVE_CONTEXT; - } - - /** - * - * - * @generated - */ - @Override - public boolean isNamed() - { - return named; - } - - /** - * - * - * @generated - */ - @Override - public void setNamed(boolean newNamed) - { - boolean oldNamed = named; - named = newNamed; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.NATIVE_CONTEXT__NAMED, oldNamed, named)); - } - - /** - * - * - * @generated - */ - @Override - public String getGivenName() - { - return givenName; - } - - /** - * - * - * @generated - */ - @Override - public void setGivenName(String newGivenName) - { - String oldGivenName = givenName; - givenName = newGivenName; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.NATIVE_CONTEXT__GIVEN_NAME, oldGivenName, givenName)); - } - - /** - * - * - * @generated - */ - @Override - public EClass getMarkerType() - { - if (markerType != null && markerType.eIsProxy()) - { - InternalEObject oldMarkerType = (InternalEObject)markerType; - markerType = (EClass)eResolveProxy(oldMarkerType); - if (markerType != oldMarkerType) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.NATIVE_CONTEXT__MARKER_TYPE, oldMarkerType, markerType)); - } - } - return markerType; - } - - /** - * - * - * @generated - */ - public EClass basicGetMarkerType() - { - return markerType; - } - - /** - * - * - * @generated - */ - @Override - public void setMarkerType(EClass newMarkerType) - { - EClass oldMarkerType = markerType; - markerType = newMarkerType; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.NATIVE_CONTEXT__MARKER_TYPE, oldMarkerType, markerType)); - } - - /** - * - * - * @generated - */ - @Override - public EStructuralFeature getMarkerFeature() - { - if (markerFeature != null && markerFeature.eIsProxy()) - { - InternalEObject oldMarkerFeature = (InternalEObject)markerFeature; - markerFeature = (EStructuralFeature)eResolveProxy(oldMarkerFeature); - if (markerFeature != oldMarkerFeature) - { - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.RESOLVE, ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE, oldMarkerFeature, markerFeature)); - } - } - return markerFeature; - } - - /** - * - * - * @generated - */ - public EStructuralFeature basicGetMarkerFeature() - { - return markerFeature; - } - - /** - * - * - * @generated - */ - @Override - public void setMarkerFeature(EStructuralFeature newMarkerFeature) - { - EStructuralFeature oldMarkerFeature = markerFeature; - markerFeature = newMarkerFeature; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE, oldMarkerFeature, markerFeature)); - } - - /** - * - * - * @generated - */ - @Override - public EList getQuickFixes() - { - if (quickFixes == null) - { - quickFixes = new EObjectContainmentEList(QuickFix.class, this, ValidPackage.NATIVE_CONTEXT__QUICK_FIXES); - } - return quickFixes; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.NATIVE_CONTEXT__QUICK_FIXES: - return ((InternalEList)getQuickFixes()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.NATIVE_CONTEXT__NAMED: - return isNamed(); - case ValidPackage.NATIVE_CONTEXT__GIVEN_NAME: - return getGivenName(); - case ValidPackage.NATIVE_CONTEXT__MARKER_TYPE: - if (resolve) return getMarkerType(); - return basicGetMarkerType(); - case ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE: - if (resolve) return getMarkerFeature(); - return basicGetMarkerFeature(); - case ValidPackage.NATIVE_CONTEXT__QUICK_FIXES: - return getQuickFixes(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.NATIVE_CONTEXT__NAMED: - setNamed((Boolean)newValue); - return; - case ValidPackage.NATIVE_CONTEXT__GIVEN_NAME: - setGivenName((String)newValue); - return; - case ValidPackage.NATIVE_CONTEXT__MARKER_TYPE: - setMarkerType((EClass)newValue); - return; - case ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE: - setMarkerFeature((EStructuralFeature)newValue); - return; - case ValidPackage.NATIVE_CONTEXT__QUICK_FIXES: - getQuickFixes().clear(); - getQuickFixes().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.NATIVE_CONTEXT__NAMED: - setNamed(NAMED_EDEFAULT); - return; - case ValidPackage.NATIVE_CONTEXT__GIVEN_NAME: - setGivenName(GIVEN_NAME_EDEFAULT); - return; - case ValidPackage.NATIVE_CONTEXT__MARKER_TYPE: - setMarkerType((EClass)null); - return; - case ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE: - setMarkerFeature((EStructuralFeature)null); - return; - case ValidPackage.NATIVE_CONTEXT__QUICK_FIXES: - getQuickFixes().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.NATIVE_CONTEXT__NAMED: - return named != NAMED_EDEFAULT; - case ValidPackage.NATIVE_CONTEXT__GIVEN_NAME: - return GIVEN_NAME_EDEFAULT == null ? givenName != null : !GIVEN_NAME_EDEFAULT.equals(givenName); - case ValidPackage.NATIVE_CONTEXT__MARKER_TYPE: - return markerType != null; - case ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE: - return markerFeature != null; - case ValidPackage.NATIVE_CONTEXT__QUICK_FIXES: - return quickFixes != null && !quickFixes.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (named: "); - result.append(named); - result.append(", givenName: "); - result.append(givenName); - result.append(')'); - return result.toString(); - } - -} //NativeContextImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/NativeRuleImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/NativeRuleImpl.java deleted file mode 100644 index 5b3b27a4ec..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/NativeRuleImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Native Rule'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.NativeRuleImpl#getContexts Contexts}
  • - *
- * - * @generated - */ -public class NativeRuleImpl extends RuleImpl implements NativeRule -{ - /** - * The cached value of the '{@link #getContexts() Contexts}' containment reference list. - * - * - * @see #getContexts() - * @generated - * @ordered - */ - protected EList contexts; - - /** - * - * - * @generated - */ - protected NativeRuleImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.NATIVE_RULE; - } - - /** - * - * - * @generated - */ - @Override - public EList getContexts() - { - if (contexts == null) - { - contexts = new EObjectContainmentEList(NativeContext.class, this, ValidPackage.NATIVE_RULE__CONTEXTS); - } - return contexts; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.NATIVE_RULE__CONTEXTS: - return ((InternalEList)getContexts()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.NATIVE_RULE__CONTEXTS: - return getContexts(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.NATIVE_RULE__CONTEXTS: - getContexts().clear(); - getContexts().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.NATIVE_RULE__CONTEXTS: - getContexts().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.NATIVE_RULE__CONTEXTS: - return contexts != null && !contexts.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //NativeRuleImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/PredefinedRuleImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/PredefinedRuleImpl.java deleted file mode 100644 index 853a46cb21..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/PredefinedRuleImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Predefined Rule'. - * - * - * @generated - */ -public class PredefinedRuleImpl extends RuleImpl implements PredefinedRule -{ - /** - * - * - * @generated - */ - protected PredefinedRuleImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.PREDEFINED_RULE; - } - -} //PredefinedRuleImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/QuickFixImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/QuickFixImpl.java deleted file mode 100644 index edd807f964..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/QuickFixImpl.java +++ /dev/null @@ -1,354 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFix; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Quick Fix'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl#getQuickFixKind Quick Fix Kind}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl#getName Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl#getLabel Label}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.QuickFixImpl#getMessage Message}
  • - *
- * - * @generated - */ -public class QuickFixImpl extends MinimalEObjectImpl.Container implements QuickFix -{ - /** - * The default value of the '{@link #getQuickFixKind() Quick Fix Kind}' attribute. - * - * - * @see #getQuickFixKind() - * @generated - * @ordered - */ - protected static final QuickFixKind QUICK_FIX_KIND_EDEFAULT = QuickFixKind.SEMANTIC; - - /** - * The cached value of the '{@link #getQuickFixKind() Quick Fix Kind}' attribute. - * - * - * @see #getQuickFixKind() - * @generated - * @ordered - */ - protected QuickFixKind quickFixKind = QUICK_FIX_KIND_EDEFAULT; - - /** - * 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 default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * The default value of the '{@link #getMessage() Message}' attribute. - * - * - * @see #getMessage() - * @generated - * @ordered - */ - protected static final String MESSAGE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMessage() Message}' attribute. - * - * - * @see #getMessage() - * @generated - * @ordered - */ - protected String message = MESSAGE_EDEFAULT; - - /** - * - * - * @generated - */ - protected QuickFixImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.QUICK_FIX; - } - - /** - * - * - * @generated - */ - @Override - public QuickFixKind getQuickFixKind() - { - return quickFixKind; - } - - /** - * - * - * @generated - */ - @Override - public void setQuickFixKind(QuickFixKind newQuickFixKind) - { - QuickFixKind oldQuickFixKind = quickFixKind; - quickFixKind = newQuickFixKind == null ? QUICK_FIX_KIND_EDEFAULT : newQuickFixKind; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.QUICK_FIX__QUICK_FIX_KIND, oldQuickFixKind, quickFixKind)); - } - - /** - * - * - * @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, ValidPackage.QUICK_FIX__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - @Override - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.QUICK_FIX__LABEL, oldLabel, label)); - } - - /** - * - * - * @generated - */ - @Override - public String getMessage() - { - return message; - } - - /** - * - * - * @generated - */ - @Override - public void setMessage(String newMessage) - { - String oldMessage = message; - message = newMessage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.QUICK_FIX__MESSAGE, oldMessage, message)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.QUICK_FIX__QUICK_FIX_KIND: - return getQuickFixKind(); - case ValidPackage.QUICK_FIX__NAME: - return getName(); - case ValidPackage.QUICK_FIX__LABEL: - return getLabel(); - case ValidPackage.QUICK_FIX__MESSAGE: - return getMessage(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.QUICK_FIX__QUICK_FIX_KIND: - setQuickFixKind((QuickFixKind)newValue); - return; - case ValidPackage.QUICK_FIX__NAME: - setName((String)newValue); - return; - case ValidPackage.QUICK_FIX__LABEL: - setLabel((String)newValue); - return; - case ValidPackage.QUICK_FIX__MESSAGE: - setMessage((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.QUICK_FIX__QUICK_FIX_KIND: - setQuickFixKind(QUICK_FIX_KIND_EDEFAULT); - return; - case ValidPackage.QUICK_FIX__NAME: - setName(NAME_EDEFAULT); - return; - case ValidPackage.QUICK_FIX__LABEL: - setLabel(LABEL_EDEFAULT); - return; - case ValidPackage.QUICK_FIX__MESSAGE: - setMessage(MESSAGE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.QUICK_FIX__QUICK_FIX_KIND: - return quickFixKind != QUICK_FIX_KIND_EDEFAULT; - case ValidPackage.QUICK_FIX__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ValidPackage.QUICK_FIX__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - case ValidPackage.QUICK_FIX__MESSAGE: - return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (quickFixKind: "); - result.append(quickFixKind); - result.append(", name: "); - result.append(name); - result.append(", label: "); - result.append(label); - result.append(", message: "); - result.append(message); - result.append(')'); - return result.toString(); - } - -} //QuickFixImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/RangeRuleImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/RangeRuleImpl.java deleted file mode 100644 index 994c900c64..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/RangeRuleImpl.java +++ /dev/null @@ -1,300 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.RangeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Range Rule'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl#getMin Min}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl#getMax Max}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RangeRuleImpl#getContexts Contexts}
  • - *
- * - * @generated - */ -public class RangeRuleImpl extends PredefinedRuleImpl implements RangeRule -{ - /** - * The default value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected static final int MIN_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected int min = MIN_EDEFAULT; - - /** - * The default value of the '{@link #getMax() Max}' attribute. - * - * - * @see #getMax() - * @generated - * @ordered - */ - protected static final int MAX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMax() Max}' attribute. - * - * - * @see #getMax() - * @generated - * @ordered - */ - protected int max = MAX_EDEFAULT; - - /** - * The cached value of the '{@link #getContexts() Contexts}' containment reference list. - * - * - * @see #getContexts() - * @generated - * @ordered - */ - protected EList contexts; - - /** - * - * - * @generated - */ - protected RangeRuleImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.RANGE_RULE; - } - - /** - * - * - * @generated - */ - @Override - public int getMin() - { - return min; - } - - /** - * - * - * @generated - */ - @Override - public void setMin(int newMin) - { - int oldMin = min; - min = newMin; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RANGE_RULE__MIN, oldMin, min)); - } - - /** - * - * - * @generated - */ - @Override - public int getMax() - { - return max; - } - - /** - * - * - * @generated - */ - @Override - public void setMax(int newMax) - { - int oldMax = max; - max = newMax; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RANGE_RULE__MAX, oldMax, max)); - } - - /** - * - * - * @generated - */ - @Override - public EList getContexts() - { - if (contexts == null) - { - contexts = new EObjectContainmentEList(SimpleContext.class, this, ValidPackage.RANGE_RULE__CONTEXTS); - } - return contexts; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.RANGE_RULE__CONTEXTS: - return ((InternalEList)getContexts()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.RANGE_RULE__MIN: - return getMin(); - case ValidPackage.RANGE_RULE__MAX: - return getMax(); - case ValidPackage.RANGE_RULE__CONTEXTS: - return getContexts(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.RANGE_RULE__MIN: - setMin((Integer)newValue); - return; - case ValidPackage.RANGE_RULE__MAX: - setMax((Integer)newValue); - return; - case ValidPackage.RANGE_RULE__CONTEXTS: - getContexts().clear(); - getContexts().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.RANGE_RULE__MIN: - setMin(MIN_EDEFAULT); - return; - case ValidPackage.RANGE_RULE__MAX: - setMax(MAX_EDEFAULT); - return; - case ValidPackage.RANGE_RULE__CONTEXTS: - getContexts().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.RANGE_RULE__MIN: - return min != MIN_EDEFAULT; - case ValidPackage.RANGE_RULE__MAX: - return max != MAX_EDEFAULT; - case ValidPackage.RANGE_RULE__CONTEXTS: - return contexts != null && !contexts.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (min: "); - result.append(min); - result.append(", max: "); - result.append(max); - result.append(')'); - return result.toString(); - } - -} //RangeRuleImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/RuleImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/RuleImpl.java deleted file mode 100644 index 3cbdc2399a..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/RuleImpl.java +++ /dev/null @@ -1,529 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.CheckKind; -import com.avaloq.tools.ddk.xtext.valid.valid.Rule; -import com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Rule'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#isOptional Optional}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#getCheckKind Check Kind}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#getSeverity Severity}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#getName Name}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#getLabel Label}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#getDescription Description}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.RuleImpl#getMessage Message}
  • - *
- * - * @generated - */ -public class RuleImpl extends MinimalEObjectImpl.Container implements Rule -{ - /** - * The default value of the '{@link #isOptional() Optional}' attribute. - * - * - * @see #isOptional() - * @generated - * @ordered - */ - protected static final boolean OPTIONAL_EDEFAULT = false; - - /** - * The cached value of the '{@link #isOptional() Optional}' attribute. - * - * - * @see #isOptional() - * @generated - * @ordered - */ - protected boolean optional = OPTIONAL_EDEFAULT; - - /** - * The default value of the '{@link #getCheckKind() Check Kind}' attribute. - * - * - * @see #getCheckKind() - * @generated - * @ordered - */ - protected static final CheckKind CHECK_KIND_EDEFAULT = CheckKind.FAST; - - /** - * The cached value of the '{@link #getCheckKind() Check Kind}' attribute. - * - * - * @see #getCheckKind() - * @generated - * @ordered - */ - protected CheckKind checkKind = CHECK_KIND_EDEFAULT; - - /** - * The default value of the '{@link #getSeverity() Severity}' attribute. - * - * - * @see #getSeverity() - * @generated - * @ordered - */ - protected static final SeverityKind SEVERITY_EDEFAULT = SeverityKind.ERROR; - - /** - * The cached value of the '{@link #getSeverity() Severity}' attribute. - * - * - * @see #getSeverity() - * @generated - * @ordered - */ - protected SeverityKind severity = SEVERITY_EDEFAULT; - - /** - * 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 default value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected static final String LABEL_EDEFAULT = null; - - /** - * The cached value of the '{@link #getLabel() Label}' attribute. - * - * - * @see #getLabel() - * @generated - * @ordered - */ - protected String label = LABEL_EDEFAULT; - - /** - * The default value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected static final String DESCRIPTION_EDEFAULT = null; - - /** - * The cached value of the '{@link #getDescription() Description}' attribute. - * - * - * @see #getDescription() - * @generated - * @ordered - */ - protected String description = DESCRIPTION_EDEFAULT; - - /** - * The default value of the '{@link #getMessage() Message}' attribute. - * - * - * @see #getMessage() - * @generated - * @ordered - */ - protected static final String MESSAGE_EDEFAULT = null; - - /** - * The cached value of the '{@link #getMessage() Message}' attribute. - * - * - * @see #getMessage() - * @generated - * @ordered - */ - protected String message = MESSAGE_EDEFAULT; - - /** - * - * - * @generated - */ - protected RuleImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.RULE; - } - - /** - * - * - * @generated - */ - @Override - public boolean isOptional() - { - return optional; - } - - /** - * - * - * @generated - */ - @Override - public void setOptional(boolean newOptional) - { - boolean oldOptional = optional; - optional = newOptional; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RULE__OPTIONAL, oldOptional, optional)); - } - - /** - * - * - * @generated - */ - @Override - public CheckKind getCheckKind() - { - return checkKind; - } - - /** - * - * - * @generated - */ - @Override - public void setCheckKind(CheckKind newCheckKind) - { - CheckKind oldCheckKind = checkKind; - checkKind = newCheckKind == null ? CHECK_KIND_EDEFAULT : newCheckKind; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RULE__CHECK_KIND, oldCheckKind, checkKind)); - } - - /** - * - * - * @generated - */ - @Override - public SeverityKind getSeverity() - { - return severity; - } - - /** - * - * - * @generated - */ - @Override - public void setSeverity(SeverityKind newSeverity) - { - SeverityKind oldSeverity = severity; - severity = newSeverity == null ? SEVERITY_EDEFAULT : newSeverity; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RULE__SEVERITY, oldSeverity, severity)); - } - - /** - * - * - * @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, ValidPackage.RULE__NAME, oldName, name)); - } - - /** - * - * - * @generated - */ - @Override - public String getLabel() - { - return label; - } - - /** - * - * - * @generated - */ - @Override - public void setLabel(String newLabel) - { - String oldLabel = label; - label = newLabel; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RULE__LABEL, oldLabel, label)); - } - - /** - * - * - * @generated - */ - @Override - public String getDescription() - { - return description; - } - - /** - * - * - * @generated - */ - @Override - public void setDescription(String newDescription) - { - String oldDescription = description; - description = newDescription; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RULE__DESCRIPTION, oldDescription, description)); - } - - /** - * - * - * @generated - */ - @Override - public String getMessage() - { - return message; - } - - /** - * - * - * @generated - */ - @Override - public void setMessage(String newMessage) - { - String oldMessage = message; - message = newMessage; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.RULE__MESSAGE, oldMessage, message)); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.RULE__OPTIONAL: - return isOptional(); - case ValidPackage.RULE__CHECK_KIND: - return getCheckKind(); - case ValidPackage.RULE__SEVERITY: - return getSeverity(); - case ValidPackage.RULE__NAME: - return getName(); - case ValidPackage.RULE__LABEL: - return getLabel(); - case ValidPackage.RULE__DESCRIPTION: - return getDescription(); - case ValidPackage.RULE__MESSAGE: - return getMessage(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.RULE__OPTIONAL: - setOptional((Boolean)newValue); - return; - case ValidPackage.RULE__CHECK_KIND: - setCheckKind((CheckKind)newValue); - return; - case ValidPackage.RULE__SEVERITY: - setSeverity((SeverityKind)newValue); - return; - case ValidPackage.RULE__NAME: - setName((String)newValue); - return; - case ValidPackage.RULE__LABEL: - setLabel((String)newValue); - return; - case ValidPackage.RULE__DESCRIPTION: - setDescription((String)newValue); - return; - case ValidPackage.RULE__MESSAGE: - setMessage((String)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.RULE__OPTIONAL: - setOptional(OPTIONAL_EDEFAULT); - return; - case ValidPackage.RULE__CHECK_KIND: - setCheckKind(CHECK_KIND_EDEFAULT); - return; - case ValidPackage.RULE__SEVERITY: - setSeverity(SEVERITY_EDEFAULT); - return; - case ValidPackage.RULE__NAME: - setName(NAME_EDEFAULT); - return; - case ValidPackage.RULE__LABEL: - setLabel(LABEL_EDEFAULT); - return; - case ValidPackage.RULE__DESCRIPTION: - setDescription(DESCRIPTION_EDEFAULT); - return; - case ValidPackage.RULE__MESSAGE: - setMessage(MESSAGE_EDEFAULT); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.RULE__OPTIONAL: - return optional != OPTIONAL_EDEFAULT; - case ValidPackage.RULE__CHECK_KIND: - return checkKind != CHECK_KIND_EDEFAULT; - case ValidPackage.RULE__SEVERITY: - return severity != SEVERITY_EDEFAULT; - case ValidPackage.RULE__NAME: - return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); - case ValidPackage.RULE__LABEL: - return LABEL_EDEFAULT == null ? label != null : !LABEL_EDEFAULT.equals(label); - case ValidPackage.RULE__DESCRIPTION: - return DESCRIPTION_EDEFAULT == null ? description != null : !DESCRIPTION_EDEFAULT.equals(description); - case ValidPackage.RULE__MESSAGE: - return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (optional: "); - result.append(optional); - result.append(", checkKind: "); - result.append(checkKind); - result.append(", severity: "); - result.append(severity); - result.append(", name: "); - result.append(name); - result.append(", label: "); - result.append(label); - result.append(", description: "); - result.append(description); - result.append(", message: "); - result.append(message); - result.append(')'); - return result.toString(); - } - -} //RuleImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/SimpleContextImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/SimpleContextImpl.java deleted file mode 100644 index 9c4dbcbcd1..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/SimpleContextImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -import org.eclipse.emf.ecore.EClass; - -/** - * - * An implementation of the model object 'Simple Context'. - * - * - * @generated - */ -public class SimpleContextImpl extends ContextImpl implements SimpleContext -{ - /** - * - * - * @generated - */ - protected SimpleContextImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.SIMPLE_CONTEXT; - } - -} //SimpleContextImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/SizeRuleImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/SizeRuleImpl.java deleted file mode 100644 index 4a5c86c216..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/SizeRuleImpl.java +++ /dev/null @@ -1,300 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext; -import com.avaloq.tools.ddk.xtext.valid.valid.SizeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Size Rule'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl#getMin Min}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl#getMax Max}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.SizeRuleImpl#getContexts Contexts}
  • - *
- * - * @generated - */ -public class SizeRuleImpl extends PredefinedRuleImpl implements SizeRule -{ - /** - * The default value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected static final int MIN_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMin() Min}' attribute. - * - * - * @see #getMin() - * @generated - * @ordered - */ - protected int min = MIN_EDEFAULT; - - /** - * The default value of the '{@link #getMax() Max}' attribute. - * - * - * @see #getMax() - * @generated - * @ordered - */ - protected static final int MAX_EDEFAULT = 0; - - /** - * The cached value of the '{@link #getMax() Max}' attribute. - * - * - * @see #getMax() - * @generated - * @ordered - */ - protected int max = MAX_EDEFAULT; - - /** - * The cached value of the '{@link #getContexts() Contexts}' containment reference list. - * - * - * @see #getContexts() - * @generated - * @ordered - */ - protected EList contexts; - - /** - * - * - * @generated - */ - protected SizeRuleImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.SIZE_RULE; - } - - /** - * - * - * @generated - */ - @Override - public int getMin() - { - return min; - } - - /** - * - * - * @generated - */ - @Override - public void setMin(int newMin) - { - int oldMin = min; - min = newMin; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.SIZE_RULE__MIN, oldMin, min)); - } - - /** - * - * - * @generated - */ - @Override - public int getMax() - { - return max; - } - - /** - * - * - * @generated - */ - @Override - public void setMax(int newMax) - { - int oldMax = max; - max = newMax; - if (eNotificationRequired()) - eNotify(new ENotificationImpl(this, Notification.SET, ValidPackage.SIZE_RULE__MAX, oldMax, max)); - } - - /** - * - * - * @generated - */ - @Override - public EList getContexts() - { - if (contexts == null) - { - contexts = new EObjectContainmentEList(SimpleContext.class, this, ValidPackage.SIZE_RULE__CONTEXTS); - } - return contexts; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.SIZE_RULE__CONTEXTS: - return ((InternalEList)getContexts()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.SIZE_RULE__MIN: - return getMin(); - case ValidPackage.SIZE_RULE__MAX: - return getMax(); - case ValidPackage.SIZE_RULE__CONTEXTS: - return getContexts(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.SIZE_RULE__MIN: - setMin((Integer)newValue); - return; - case ValidPackage.SIZE_RULE__MAX: - setMax((Integer)newValue); - return; - case ValidPackage.SIZE_RULE__CONTEXTS: - getContexts().clear(); - getContexts().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.SIZE_RULE__MIN: - setMin(MIN_EDEFAULT); - return; - case ValidPackage.SIZE_RULE__MAX: - setMax(MAX_EDEFAULT); - return; - case ValidPackage.SIZE_RULE__CONTEXTS: - getContexts().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.SIZE_RULE__MIN: - return min != MIN_EDEFAULT; - case ValidPackage.SIZE_RULE__MAX: - return max != MAX_EDEFAULT; - case ValidPackage.SIZE_RULE__CONTEXTS: - return contexts != null && !contexts.isEmpty(); - } - return super.eIsSet(featureID); - } - - /** - * - * - * @generated - */ - @Override - public String toString() - { - if (eIsProxy()) return super.toString(); - - StringBuilder result = new StringBuilder(super.toString()); - result.append(" (min: "); - result.append(min); - result.append(", max: "); - result.append(max); - result.append(')'); - return result.toString(); - } - -} //SizeRuleImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/UniqueRuleImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/UniqueRuleImpl.java deleted file mode 100644 index 62a9ebcb03..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/UniqueRuleImpl.java +++ /dev/null @@ -1,166 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext; -import com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Unique Rule'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.UniqueRuleImpl#getContexts Contexts}
  • - *
- * - * @generated - */ -public class UniqueRuleImpl extends PredefinedRuleImpl implements UniqueRule -{ - /** - * The cached value of the '{@link #getContexts() Contexts}' containment reference list. - * - * - * @see #getContexts() - * @generated - * @ordered - */ - protected EList contexts; - - /** - * - * - * @generated - */ - protected UniqueRuleImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.UNIQUE_RULE; - } - - /** - * - * - * @generated - */ - @Override - public EList getContexts() - { - if (contexts == null) - { - contexts = new EObjectContainmentEList(DuplicateContext.class, this, ValidPackage.UNIQUE_RULE__CONTEXTS); - } - return contexts; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.UNIQUE_RULE__CONTEXTS: - return ((InternalEList)getContexts()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.UNIQUE_RULE__CONTEXTS: - return getContexts(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.UNIQUE_RULE__CONTEXTS: - getContexts().clear(); - getContexts().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.UNIQUE_RULE__CONTEXTS: - getContexts().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.UNIQUE_RULE__CONTEXTS: - return contexts != null && !contexts.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //UniqueRuleImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidFactoryImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidFactoryImpl.java deleted file mode 100644 index 75058d0930..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidFactoryImpl.java +++ /dev/null @@ -1,386 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.*; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EDataType; -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; - -/** - * - * An implementation of the model Factory. - * - * @generated - */ -public class ValidFactoryImpl extends EFactoryImpl implements ValidFactory -{ - /** - * Creates the default factory implementation. - * - * - * @generated - */ - public static ValidFactory init() - { - try - { - ValidFactory theValidFactory = (ValidFactory)EPackage.Registry.INSTANCE.getEFactory(ValidPackage.eNS_URI); - if (theValidFactory != null) - { - return theValidFactory; - } - } - catch (Exception exception) - { - EcorePlugin.INSTANCE.log(exception); - } - return new ValidFactoryImpl(); - } - - /** - * Creates an instance of the factory. - * - * - * @generated - */ - public ValidFactoryImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - public EObject create(EClass eClass) - { - switch (eClass.getClassifierID()) - { - case ValidPackage.VALID_MODEL: return createValidModel(); - case ValidPackage.IMPORT: return createImport(); - case ValidPackage.CATEGORY: return createCategory(); - case ValidPackage.RULE: return createRule(); - case ValidPackage.PREDEFINED_RULE: return createPredefinedRule(); - case ValidPackage.NATIVE_RULE: return createNativeRule(); - case ValidPackage.SIZE_RULE: return createSizeRule(); - case ValidPackage.RANGE_RULE: return createRangeRule(); - case ValidPackage.UNIQUE_RULE: return createUniqueRule(); - case ValidPackage.CONTEXT: return createContext(); - case ValidPackage.SIMPLE_CONTEXT: return createSimpleContext(); - case ValidPackage.DUPLICATE_CONTEXT: return createDuplicateContext(); - case ValidPackage.NATIVE_CONTEXT: return createNativeContext(); - case ValidPackage.QUICK_FIX: return createQuickFix(); - default: - throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public Object createFromString(EDataType eDataType, String initialValue) - { - switch (eDataType.getClassifierID()) - { - case ValidPackage.CHECK_KIND: - return createCheckKindFromString(eDataType, initialValue); - case ValidPackage.SEVERITY_KIND: - return createSeverityKindFromString(eDataType, initialValue); - case ValidPackage.QUICK_FIX_KIND: - return createQuickFixKindFromString(eDataType, initialValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public String convertToString(EDataType eDataType, Object instanceValue) - { - switch (eDataType.getClassifierID()) - { - case ValidPackage.CHECK_KIND: - return convertCheckKindToString(eDataType, instanceValue); - case ValidPackage.SEVERITY_KIND: - return convertSeverityKindToString(eDataType, instanceValue); - case ValidPackage.QUICK_FIX_KIND: - return convertQuickFixKindToString(eDataType, instanceValue); - default: - throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); - } - } - - /** - * - * - * @generated - */ - @Override - public ValidModel createValidModel() - { - ValidModelImpl validModel = new ValidModelImpl(); - return validModel; - } - - /** - * - * - * @generated - */ - @Override - public Import createImport() - { - ImportImpl import_ = new ImportImpl(); - return import_; - } - - /** - * - * - * @generated - */ - @Override - public Category createCategory() - { - CategoryImpl category = new CategoryImpl(); - return category; - } - - /** - * - * - * @generated - */ - @Override - public Rule createRule() - { - RuleImpl rule = new RuleImpl(); - return rule; - } - - /** - * - * - * @generated - */ - @Override - public PredefinedRule createPredefinedRule() - { - PredefinedRuleImpl predefinedRule = new PredefinedRuleImpl(); - return predefinedRule; - } - - /** - * - * - * @generated - */ - @Override - public NativeRule createNativeRule() - { - NativeRuleImpl nativeRule = new NativeRuleImpl(); - return nativeRule; - } - - /** - * - * - * @generated - */ - @Override - public SizeRule createSizeRule() - { - SizeRuleImpl sizeRule = new SizeRuleImpl(); - return sizeRule; - } - - /** - * - * - * @generated - */ - @Override - public RangeRule createRangeRule() - { - RangeRuleImpl rangeRule = new RangeRuleImpl(); - return rangeRule; - } - - /** - * - * - * @generated - */ - @Override - public UniqueRule createUniqueRule() - { - UniqueRuleImpl uniqueRule = new UniqueRuleImpl(); - return uniqueRule; - } - - /** - * - * - * @generated - */ - @Override - public Context createContext() - { - ContextImpl context = new ContextImpl(); - return context; - } - - /** - * - * - * @generated - */ - @Override - public SimpleContext createSimpleContext() - { - SimpleContextImpl simpleContext = new SimpleContextImpl(); - return simpleContext; - } - - /** - * - * - * @generated - */ - @Override - public DuplicateContext createDuplicateContext() - { - DuplicateContextImpl duplicateContext = new DuplicateContextImpl(); - return duplicateContext; - } - - /** - * - * - * @generated - */ - @Override - public NativeContext createNativeContext() - { - NativeContextImpl nativeContext = new NativeContextImpl(); - return nativeContext; - } - - /** - * - * - * @generated - */ - @Override - public QuickFix createQuickFix() - { - QuickFixImpl quickFix = new QuickFixImpl(); - return quickFix; - } - - /** - * - * - * @generated - */ - public CheckKind createCheckKindFromString(EDataType eDataType, String initialValue) - { - CheckKind result = CheckKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertCheckKindToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public SeverityKind createSeverityKindFromString(EDataType eDataType, String initialValue) - { - SeverityKind result = SeverityKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertSeverityKindToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - public QuickFixKind createQuickFixKindFromString(EDataType eDataType, String initialValue) - { - QuickFixKind result = QuickFixKind.get(initialValue); - if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); - return result; - } - - /** - * - * - * @generated - */ - public String convertQuickFixKindToString(EDataType eDataType, Object instanceValue) - { - return instanceValue == null ? null : instanceValue.toString(); - } - - /** - * - * - * @generated - */ - @Override - public ValidPackage getValidPackage() - { - return (ValidPackage)getEPackage(); - } - - /** - * - * - * @deprecated - * @generated - */ - @Deprecated - public static ValidPackage getPackage() - { - return ValidPackage.eINSTANCE; - } - -} //ValidFactoryImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidModelImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidModelImpl.java deleted file mode 100644 index e4a59801bc..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidModelImpl.java +++ /dev/null @@ -1,208 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.Category; -import com.avaloq.tools.ddk.xtext.valid.valid.Import; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidModel; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -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; - -/** - * - * An implementation of the model object 'Model'. - * - *

- * The following features are implemented: - *

- *
    - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidModelImpl#getImports Imports}
  • - *
  • {@link com.avaloq.tools.ddk.xtext.valid.valid.impl.ValidModelImpl#getCategories Categories}
  • - *
- * - * @generated - */ -public class ValidModelImpl extends MinimalEObjectImpl.Container implements ValidModel -{ - /** - * The cached value of the '{@link #getImports() Imports}' containment reference list. - * - * - * @see #getImports() - * @generated - * @ordered - */ - protected EList imports; - - /** - * The cached value of the '{@link #getCategories() Categories}' containment reference list. - * - * - * @see #getCategories() - * @generated - * @ordered - */ - protected EList categories; - - /** - * - * - * @generated - */ - protected ValidModelImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return ValidPackage.Literals.VALID_MODEL; - } - - /** - * - * - * @generated - */ - @Override - public EList getImports() - { - if (imports == null) - { - imports = new EObjectContainmentEList(Import.class, this, ValidPackage.VALID_MODEL__IMPORTS); - } - return imports; - } - - /** - * - * - * @generated - */ - @Override - public EList getCategories() - { - if (categories == null) - { - categories = new EObjectContainmentEList(Category.class, this, ValidPackage.VALID_MODEL__CATEGORIES); - } - return categories; - } - - /** - * - * - * @generated - */ - @Override - public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) - { - switch (featureID) - { - case ValidPackage.VALID_MODEL__IMPORTS: - return ((InternalEList)getImports()).basicRemove(otherEnd, msgs); - case ValidPackage.VALID_MODEL__CATEGORIES: - return ((InternalEList)getCategories()).basicRemove(otherEnd, msgs); - } - return super.eInverseRemove(otherEnd, featureID, msgs); - } - - /** - * - * - * @generated - */ - @Override - public Object eGet(int featureID, boolean resolve, boolean coreType) - { - switch (featureID) - { - case ValidPackage.VALID_MODEL__IMPORTS: - return getImports(); - case ValidPackage.VALID_MODEL__CATEGORIES: - return getCategories(); - } - return super.eGet(featureID, resolve, coreType); - } - - /** - * - * - * @generated - */ - @SuppressWarnings("unchecked") - @Override - public void eSet(int featureID, Object newValue) - { - switch (featureID) - { - case ValidPackage.VALID_MODEL__IMPORTS: - getImports().clear(); - getImports().addAll((Collection)newValue); - return; - case ValidPackage.VALID_MODEL__CATEGORIES: - getCategories().clear(); - getCategories().addAll((Collection)newValue); - return; - } - super.eSet(featureID, newValue); - } - - /** - * - * - * @generated - */ - @Override - public void eUnset(int featureID) - { - switch (featureID) - { - case ValidPackage.VALID_MODEL__IMPORTS: - getImports().clear(); - return; - case ValidPackage.VALID_MODEL__CATEGORIES: - getCategories().clear(); - return; - } - super.eUnset(featureID); - } - - /** - * - * - * @generated - */ - @Override - public boolean eIsSet(int featureID) - { - switch (featureID) - { - case ValidPackage.VALID_MODEL__IMPORTS: - return imports != null && !imports.isEmpty(); - case ValidPackage.VALID_MODEL__CATEGORIES: - return categories != null && !categories.isEmpty(); - } - return super.eIsSet(featureID); - } - -} //ValidModelImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidPackageImpl.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidPackageImpl.java deleted file mode 100644 index de88c08f18..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/impl/ValidPackageImpl.java +++ /dev/null @@ -1,1021 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.impl; - -import com.avaloq.tools.ddk.xtext.valid.valid.Category; -import com.avaloq.tools.ddk.xtext.valid.valid.CheckKind; -import com.avaloq.tools.ddk.xtext.valid.valid.Context; -import com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext; -import com.avaloq.tools.ddk.xtext.valid.valid.Import; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFix; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFixKind; -import com.avaloq.tools.ddk.xtext.valid.valid.RangeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.Rule; -import com.avaloq.tools.ddk.xtext.valid.valid.SeverityKind; -import com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext; -import com.avaloq.tools.ddk.xtext.valid.valid.SizeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidFactory; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidModel; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - -import org.eclipse.emf.ecore.EAttribute; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EEnum; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; - -import org.eclipse.emf.ecore.impl.EPackageImpl; - -/** - * - * An implementation of the model Package. - * - * @generated - */ -public class ValidPackageImpl extends EPackageImpl implements ValidPackage -{ - /** - * - * - * @generated - */ - private EClass validModelEClass = null; - - /** - * - * - * @generated - */ - private EClass importEClass = null; - - /** - * - * - * @generated - */ - private EClass categoryEClass = null; - - /** - * - * - * @generated - */ - private EClass ruleEClass = null; - - /** - * - * - * @generated - */ - private EClass predefinedRuleEClass = null; - - /** - * - * - * @generated - */ - private EClass nativeRuleEClass = null; - - /** - * - * - * @generated - */ - private EClass sizeRuleEClass = null; - - /** - * - * - * @generated - */ - private EClass rangeRuleEClass = null; - - /** - * - * - * @generated - */ - private EClass uniqueRuleEClass = null; - - /** - * - * - * @generated - */ - private EClass contextEClass = null; - - /** - * - * - * @generated - */ - private EClass simpleContextEClass = null; - - /** - * - * - * @generated - */ - private EClass duplicateContextEClass = null; - - /** - * - * - * @generated - */ - private EClass nativeContextEClass = null; - - /** - * - * - * @generated - */ - private EClass quickFixEClass = null; - - /** - * - * - * @generated - */ - private EEnum checkKindEEnum = null; - - /** - * - * - * @generated - */ - private EEnum severityKindEEnum = null; - - /** - * - * - * @generated - */ - private EEnum quickFixKindEEnum = 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 com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage#eNS_URI - * @see #init() - * @generated - */ - private ValidPackageImpl() - { - super(eNS_URI, ValidFactory.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 ValidPackage#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 ValidPackage init() - { - if (isInited) return (ValidPackage)EPackage.Registry.INSTANCE.getEPackage(ValidPackage.eNS_URI); - - // Obtain or create and register package - Object registeredValidPackage = EPackage.Registry.INSTANCE.get(eNS_URI); - ValidPackageImpl theValidPackage = registeredValidPackage instanceof ValidPackageImpl ? (ValidPackageImpl)registeredValidPackage : new ValidPackageImpl(); - - isInited = true; - - // Initialize simple dependencies - EcorePackage.eINSTANCE.eClass(); - - // Create package meta-data objects - theValidPackage.createPackageContents(); - - // Initialize created meta-data - theValidPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theValidPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(ValidPackage.eNS_URI, theValidPackage); - return theValidPackage; - } - - /** - * - * - * @generated - */ - @Override - public EClass getValidModel() - { - return validModelEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getValidModel_Imports() - { - return (EReference)validModelEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getValidModel_Categories() - { - return (EReference)validModelEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getImport() - { - return importEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getImport_Package() - { - return (EReference)importEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getCategory() - { - return categoryEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCategory_Name() - { - return (EAttribute)categoryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCategory_Label() - { - return (EAttribute)categoryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getCategory_Description() - { - return (EAttribute)categoryEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getCategory_Rules() - { - return (EReference)categoryEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EClass getRule() - { - return ruleEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_Optional() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_CheckKind() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_Severity() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_Name() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_Label() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_Description() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(5); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRule_Message() - { - return (EAttribute)ruleEClass.getEStructuralFeatures().get(6); - } - - /** - * - * - * @generated - */ - @Override - public EClass getPredefinedRule() - { - return predefinedRuleEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getNativeRule() - { - return nativeRuleEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getNativeRule_Contexts() - { - return (EReference)nativeRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getSizeRule() - { - return sizeRuleEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getSizeRule_Min() - { - return (EAttribute)sizeRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getSizeRule_Max() - { - return (EAttribute)sizeRuleEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getSizeRule_Contexts() - { - return (EReference)sizeRuleEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EClass getRangeRule() - { - return rangeRuleEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRangeRule_Min() - { - return (EAttribute)rangeRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getRangeRule_Max() - { - return (EAttribute)rangeRuleEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getRangeRule_Contexts() - { - return (EReference)rangeRuleEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EClass getUniqueRule() - { - return uniqueRuleEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getUniqueRule_Contexts() - { - return (EReference)uniqueRuleEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EClass getContext() - { - return contextEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getContext_ContextType() - { - return (EReference)contextEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getContext_ContextFeature() - { - return (EReference)contextEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getSimpleContext() - { - return simpleContextEClass; - } - - /** - * - * - * @generated - */ - @Override - public EClass getDuplicateContext() - { - return duplicateContextEClass; - } - - /** - * - * - * @generated - */ - @Override - public EReference getDuplicateContext_MarkerType() - { - return (EReference)duplicateContextEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EReference getDuplicateContext_MarkerFeature() - { - return (EReference)duplicateContextEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EClass getNativeContext() - { - return nativeContextEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getNativeContext_Named() - { - return (EAttribute)nativeContextEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getNativeContext_GivenName() - { - return (EAttribute)nativeContextEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EReference getNativeContext_MarkerType() - { - return (EReference)nativeContextEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EReference getNativeContext_MarkerFeature() - { - return (EReference)nativeContextEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EReference getNativeContext_QuickFixes() - { - return (EReference)nativeContextEClass.getEStructuralFeatures().get(4); - } - - /** - * - * - * @generated - */ - @Override - public EClass getQuickFix() - { - return quickFixEClass; - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getQuickFix_QuickFixKind() - { - return (EAttribute)quickFixEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getQuickFix_Name() - { - return (EAttribute)quickFixEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getQuickFix_Label() - { - return (EAttribute)quickFixEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - @Override - public EAttribute getQuickFix_Message() - { - return (EAttribute)quickFixEClass.getEStructuralFeatures().get(3); - } - - /** - * - * - * @generated - */ - @Override - public EEnum getCheckKind() - { - return checkKindEEnum; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getSeverityKind() - { - return severityKindEEnum; - } - - /** - * - * - * @generated - */ - @Override - public EEnum getQuickFixKind() - { - return quickFixKindEEnum; - } - - /** - * - * - * @generated - */ - @Override - public ValidFactory getValidFactory() - { - return (ValidFactory)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 - validModelEClass = createEClass(VALID_MODEL); - createEReference(validModelEClass, VALID_MODEL__IMPORTS); - createEReference(validModelEClass, VALID_MODEL__CATEGORIES); - - importEClass = createEClass(IMPORT); - createEReference(importEClass, IMPORT__PACKAGE); - - categoryEClass = createEClass(CATEGORY); - createEAttribute(categoryEClass, CATEGORY__NAME); - createEAttribute(categoryEClass, CATEGORY__LABEL); - createEAttribute(categoryEClass, CATEGORY__DESCRIPTION); - createEReference(categoryEClass, CATEGORY__RULES); - - ruleEClass = createEClass(RULE); - createEAttribute(ruleEClass, RULE__OPTIONAL); - createEAttribute(ruleEClass, RULE__CHECK_KIND); - createEAttribute(ruleEClass, RULE__SEVERITY); - createEAttribute(ruleEClass, RULE__NAME); - createEAttribute(ruleEClass, RULE__LABEL); - createEAttribute(ruleEClass, RULE__DESCRIPTION); - createEAttribute(ruleEClass, RULE__MESSAGE); - - predefinedRuleEClass = createEClass(PREDEFINED_RULE); - - nativeRuleEClass = createEClass(NATIVE_RULE); - createEReference(nativeRuleEClass, NATIVE_RULE__CONTEXTS); - - sizeRuleEClass = createEClass(SIZE_RULE); - createEAttribute(sizeRuleEClass, SIZE_RULE__MIN); - createEAttribute(sizeRuleEClass, SIZE_RULE__MAX); - createEReference(sizeRuleEClass, SIZE_RULE__CONTEXTS); - - rangeRuleEClass = createEClass(RANGE_RULE); - createEAttribute(rangeRuleEClass, RANGE_RULE__MIN); - createEAttribute(rangeRuleEClass, RANGE_RULE__MAX); - createEReference(rangeRuleEClass, RANGE_RULE__CONTEXTS); - - uniqueRuleEClass = createEClass(UNIQUE_RULE); - createEReference(uniqueRuleEClass, UNIQUE_RULE__CONTEXTS); - - contextEClass = createEClass(CONTEXT); - createEReference(contextEClass, CONTEXT__CONTEXT_TYPE); - createEReference(contextEClass, CONTEXT__CONTEXT_FEATURE); - - simpleContextEClass = createEClass(SIMPLE_CONTEXT); - - duplicateContextEClass = createEClass(DUPLICATE_CONTEXT); - createEReference(duplicateContextEClass, DUPLICATE_CONTEXT__MARKER_TYPE); - createEReference(duplicateContextEClass, DUPLICATE_CONTEXT__MARKER_FEATURE); - - nativeContextEClass = createEClass(NATIVE_CONTEXT); - createEAttribute(nativeContextEClass, NATIVE_CONTEXT__NAMED); - createEAttribute(nativeContextEClass, NATIVE_CONTEXT__GIVEN_NAME); - createEReference(nativeContextEClass, NATIVE_CONTEXT__MARKER_TYPE); - createEReference(nativeContextEClass, NATIVE_CONTEXT__MARKER_FEATURE); - createEReference(nativeContextEClass, NATIVE_CONTEXT__QUICK_FIXES); - - quickFixEClass = createEClass(QUICK_FIX); - createEAttribute(quickFixEClass, QUICK_FIX__QUICK_FIX_KIND); - createEAttribute(quickFixEClass, QUICK_FIX__NAME); - createEAttribute(quickFixEClass, QUICK_FIX__LABEL); - createEAttribute(quickFixEClass, QUICK_FIX__MESSAGE); - - // Create enums - checkKindEEnum = createEEnum(CHECK_KIND); - severityKindEEnum = createEEnum(SEVERITY_KIND); - quickFixKindEEnum = createEEnum(QUICK_FIX_KIND); - } - - /** - * - * - * @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 - EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - predefinedRuleEClass.getESuperTypes().add(this.getRule()); - nativeRuleEClass.getESuperTypes().add(this.getRule()); - sizeRuleEClass.getESuperTypes().add(this.getPredefinedRule()); - rangeRuleEClass.getESuperTypes().add(this.getPredefinedRule()); - uniqueRuleEClass.getESuperTypes().add(this.getPredefinedRule()); - simpleContextEClass.getESuperTypes().add(this.getContext()); - duplicateContextEClass.getESuperTypes().add(this.getContext()); - nativeContextEClass.getESuperTypes().add(this.getContext()); - - // Initialize classes and features; add operations and parameters - initEClass(validModelEClass, ValidModel.class, "ValidModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getValidModel_Imports(), this.getImport(), null, "imports", null, 0, -1, ValidModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getValidModel_Categories(), this.getCategory(), null, "categories", null, 0, -1, ValidModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getImport_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, Import.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(categoryEClass, Category.class, "Category", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getCategory_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCategory_Label(), theEcorePackage.getEString(), "label", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getCategory_Description(), theEcorePackage.getEString(), "description", null, 0, 1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getCategory_Rules(), this.getRule(), null, "rules", null, 0, -1, Category.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(ruleEClass, Rule.class, "Rule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRule_Optional(), theEcorePackage.getEBoolean(), "optional", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRule_CheckKind(), this.getCheckKind(), "checkKind", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRule_Severity(), this.getSeverityKind(), "severity", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRule_Name(), theEcorePackage.getEString(), "name", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRule_Label(), theEcorePackage.getEString(), "label", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRule_Description(), theEcorePackage.getEString(), "description", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRule_Message(), theEcorePackage.getEString(), "message", null, 0, 1, Rule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(predefinedRuleEClass, PredefinedRule.class, "PredefinedRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(nativeRuleEClass, NativeRule.class, "NativeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getNativeRule_Contexts(), this.getNativeContext(), null, "contexts", null, 0, -1, NativeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(sizeRuleEClass, SizeRule.class, "SizeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getSizeRule_Min(), theEcorePackage.getEInt(), "min", null, 0, 1, SizeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getSizeRule_Max(), theEcorePackage.getEInt(), "max", null, 0, 1, SizeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getSizeRule_Contexts(), this.getSimpleContext(), null, "contexts", null, 0, -1, SizeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(rangeRuleEClass, RangeRule.class, "RangeRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getRangeRule_Min(), theEcorePackage.getEInt(), "min", null, 0, 1, RangeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getRangeRule_Max(), theEcorePackage.getEInt(), "max", null, 0, 1, RangeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getRangeRule_Contexts(), this.getSimpleContext(), null, "contexts", null, 0, -1, RangeRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(uniqueRuleEClass, UniqueRule.class, "UniqueRule", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getUniqueRule_Contexts(), this.getDuplicateContext(), null, "contexts", null, 0, -1, UniqueRule.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(contextEClass, Context.class, "Context", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getContext_ContextType(), theEcorePackage.getEClass(), null, "contextType", null, 0, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContext_ContextFeature(), theEcorePackage.getEStructuralFeature(), null, "contextFeature", null, 0, 1, Context.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(simpleContextEClass, SimpleContext.class, "SimpleContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(duplicateContextEClass, DuplicateContext.class, "DuplicateContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getDuplicateContext_MarkerType(), theEcorePackage.getEClass(), null, "markerType", null, 0, 1, DuplicateContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getDuplicateContext_MarkerFeature(), theEcorePackage.getEStructuralFeature(), null, "markerFeature", null, 0, 1, DuplicateContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(nativeContextEClass, NativeContext.class, "NativeContext", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getNativeContext_Named(), theEcorePackage.getEBoolean(), "named", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getNativeContext_GivenName(), theEcorePackage.getEString(), "givenName", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getNativeContext_MarkerType(), theEcorePackage.getEClass(), null, "markerType", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getNativeContext_MarkerFeature(), theEcorePackage.getEStructuralFeature(), null, "markerFeature", null, 0, 1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getNativeContext_QuickFixes(), this.getQuickFix(), null, "quickFixes", null, 0, -1, NativeContext.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(quickFixEClass, QuickFix.class, "QuickFix", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getQuickFix_QuickFixKind(), this.getQuickFixKind(), "quickFixKind", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQuickFix_Name(), theEcorePackage.getEString(), "name", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQuickFix_Label(), theEcorePackage.getEString(), "label", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getQuickFix_Message(), theEcorePackage.getEString(), "message", null, 0, 1, QuickFix.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(checkKindEEnum, CheckKind.class, "CheckKind"); - addEEnumLiteral(checkKindEEnum, CheckKind.FAST); - addEEnumLiteral(checkKindEEnum, CheckKind.NORMAL); - addEEnumLiteral(checkKindEEnum, CheckKind.EXPENSIVE); - - initEEnum(severityKindEEnum, SeverityKind.class, "SeverityKind"); - addEEnumLiteral(severityKindEEnum, SeverityKind.ERROR); - addEEnumLiteral(severityKindEEnum, SeverityKind.WARNING); - - initEEnum(quickFixKindEEnum, QuickFixKind.class, "QuickFixKind"); - addEEnumLiteral(quickFixKindEEnum, QuickFixKind.SEMANTIC); - addEEnumLiteral(quickFixKindEEnum, QuickFixKind.TEXTUAL); - - // Create resource - createResource(eNS_URI); - } - -} //ValidPackageImpl diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidAdapterFactory.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidAdapterFactory.java deleted file mode 100644 index 28a05d4537..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidAdapterFactory.java +++ /dev/null @@ -1,392 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.util; - -import com.avaloq.tools.ddk.xtext.valid.valid.*; - -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; - -/** - * - * The Adapter Factory for the model. - * It provides an adapter createXXX method for each class of the model. - * - * @see com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage - * @generated - */ -public class ValidAdapterFactory extends AdapterFactoryImpl -{ - /** - * The cached model package. - * - * - * @generated - */ - protected static ValidPackage modelPackage; - - /** - * Creates an instance of the adapter factory. - * - * - * @generated - */ - public ValidAdapterFactory() - { - if (modelPackage == null) - { - modelPackage = ValidPackage.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 ValidSwitch modelSwitch = - new ValidSwitch() - { - @Override - public Adapter caseValidModel(ValidModel object) - { - return createValidModelAdapter(); - } - @Override - public Adapter caseImport(Import object) - { - return createImportAdapter(); - } - @Override - public Adapter caseCategory(Category object) - { - return createCategoryAdapter(); - } - @Override - public Adapter caseRule(Rule object) - { - return createRuleAdapter(); - } - @Override - public Adapter casePredefinedRule(PredefinedRule object) - { - return createPredefinedRuleAdapter(); - } - @Override - public Adapter caseNativeRule(NativeRule object) - { - return createNativeRuleAdapter(); - } - @Override - public Adapter caseSizeRule(SizeRule object) - { - return createSizeRuleAdapter(); - } - @Override - public Adapter caseRangeRule(RangeRule object) - { - return createRangeRuleAdapter(); - } - @Override - public Adapter caseUniqueRule(UniqueRule object) - { - return createUniqueRuleAdapter(); - } - @Override - public Adapter caseContext(Context object) - { - return createContextAdapter(); - } - @Override - public Adapter caseSimpleContext(SimpleContext object) - { - return createSimpleContextAdapter(); - } - @Override - public Adapter caseDuplicateContext(DuplicateContext object) - { - return createDuplicateContextAdapter(); - } - @Override - public Adapter caseNativeContext(NativeContext object) - { - return createNativeContextAdapter(); - } - @Override - public Adapter caseQuickFix(QuickFix object) - { - return createQuickFixAdapter(); - } - @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 com.avaloq.tools.ddk.xtext.valid.valid.ValidModel Model}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.ValidModel - * @generated - */ - public Adapter createValidModelAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Import Import}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.Import - * @generated - */ - public Adapter createImportAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Category Category}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.Category - * @generated - */ - public Adapter createCategoryAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Rule Rule}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.Rule - * @generated - */ - public Adapter createRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule Predefined Rule}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule - * @generated - */ - public Adapter createPredefinedRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeRule Native Rule}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.NativeRule - * @generated - */ - public Adapter createNativeRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.SizeRule Size Rule}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.SizeRule - * @generated - */ - public Adapter createSizeRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.RangeRule Range Rule}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.RangeRule - * @generated - */ - public Adapter createRangeRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule Unique Rule}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.UniqueRule - * @generated - */ - public Adapter createUniqueRuleAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.Context Context}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.Context - * @generated - */ - public Adapter createContextAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext Simple Context}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.SimpleContext - * @generated - */ - public Adapter createSimpleContextAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext Duplicate Context}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.DuplicateContext - * @generated - */ - public Adapter createDuplicateContextAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.NativeContext Native Context}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.NativeContext - * @generated - */ - public Adapter createNativeContextAdapter() - { - return null; - } - - /** - * Creates a new adapter for an object of class '{@link com.avaloq.tools.ddk.xtext.valid.valid.QuickFix Quick Fix}'. - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.QuickFix - * @generated - */ - public Adapter createQuickFixAdapter() - { - 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; - } - -} //ValidAdapterFactory diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidSwitch.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidSwitch.java deleted file mode 100644 index 7ce5a17b6e..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/valid/util/ValidSwitch.java +++ /dev/null @@ -1,429 +0,0 @@ -/** - */ -package com.avaloq.tools.ddk.xtext.valid.valid.util; - -import com.avaloq.tools.ddk.xtext.valid.valid.*; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EPackage; - -import org.eclipse.emf.ecore.util.Switch; - -/** - * - * 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 com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage - * @generated - */ -public class ValidSwitch extends Switch -{ - /** - * The cached model package - * - * - * @generated - */ - protected static ValidPackage modelPackage; - - /** - * Creates an instance of the switch. - * - * - * @generated - */ - public ValidSwitch() - { - if (modelPackage == null) - { - modelPackage = ValidPackage.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 ValidPackage.VALID_MODEL: - { - ValidModel validModel = (ValidModel)theEObject; - T result = caseValidModel(validModel); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.IMPORT: - { - Import import_ = (Import)theEObject; - T result = caseImport(import_); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.CATEGORY: - { - Category category = (Category)theEObject; - T result = caseCategory(category); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.RULE: - { - Rule rule = (Rule)theEObject; - T result = caseRule(rule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.PREDEFINED_RULE: - { - PredefinedRule predefinedRule = (PredefinedRule)theEObject; - T result = casePredefinedRule(predefinedRule); - if (result == null) result = caseRule(predefinedRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.NATIVE_RULE: - { - NativeRule nativeRule = (NativeRule)theEObject; - T result = caseNativeRule(nativeRule); - if (result == null) result = caseRule(nativeRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.SIZE_RULE: - { - SizeRule sizeRule = (SizeRule)theEObject; - T result = caseSizeRule(sizeRule); - if (result == null) result = casePredefinedRule(sizeRule); - if (result == null) result = caseRule(sizeRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.RANGE_RULE: - { - RangeRule rangeRule = (RangeRule)theEObject; - T result = caseRangeRule(rangeRule); - if (result == null) result = casePredefinedRule(rangeRule); - if (result == null) result = caseRule(rangeRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.UNIQUE_RULE: - { - UniqueRule uniqueRule = (UniqueRule)theEObject; - T result = caseUniqueRule(uniqueRule); - if (result == null) result = casePredefinedRule(uniqueRule); - if (result == null) result = caseRule(uniqueRule); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.CONTEXT: - { - Context context = (Context)theEObject; - T result = caseContext(context); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.SIMPLE_CONTEXT: - { - SimpleContext simpleContext = (SimpleContext)theEObject; - T result = caseSimpleContext(simpleContext); - if (result == null) result = caseContext(simpleContext); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.DUPLICATE_CONTEXT: - { - DuplicateContext duplicateContext = (DuplicateContext)theEObject; - T result = caseDuplicateContext(duplicateContext); - if (result == null) result = caseContext(duplicateContext); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.NATIVE_CONTEXT: - { - NativeContext nativeContext = (NativeContext)theEObject; - T result = caseNativeContext(nativeContext); - if (result == null) result = caseContext(nativeContext); - if (result == null) result = defaultCase(theEObject); - return result; - } - case ValidPackage.QUICK_FIX: - { - QuickFix quickFix = (QuickFix)theEObject; - T result = caseQuickFix(quickFix); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); - } - } - - /** - * Returns the result of interpreting the object as an instance of 'Model'. - * - * 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 'Model'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseValidModel(ValidModel object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Import'. - * - * 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 'Import'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseImport(Import object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Category'. - * - * 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 'Category'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseCategory(Category object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Rule'. - * - * 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 'Rule'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRule(Rule object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Predefined Rule'. - * - * 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 'Predefined Rule'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T casePredefinedRule(PredefinedRule object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Native Rule'. - * - * 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 'Native Rule'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNativeRule(NativeRule object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Size Rule'. - * - * 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 'Size Rule'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSizeRule(SizeRule object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Range Rule'. - * - * 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 'Range Rule'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseRangeRule(RangeRule object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Unique Rule'. - * - * 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 'Unique Rule'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseUniqueRule(UniqueRule object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Context'. - * - * 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 'Context'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseContext(Context object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Simple Context'. - * - * 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 'Simple Context'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseSimpleContext(SimpleContext object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Duplicate Context'. - * - * 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 'Duplicate Context'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseDuplicateContext(DuplicateContext object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Native Context'. - * - * 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 'Native Context'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseNativeContext(NativeContext object) - { - return null; - } - - /** - * Returns the result of interpreting the object as an instance of 'Quick Fix'. - * - * 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 'Quick Fix'. - * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) - * @generated - */ - public T caseQuickFix(QuickFix 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; - } - -} //ValidSwitch diff --git a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/validation/AbstractValidValidator.java b/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/validation/AbstractValidValidator.java deleted file mode 100644 index 347f0ed412..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src-gen/com/avaloq/tools/ddk/xtext/valid/validation/AbstractValidValidator.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * generated by Xtext - */ -package com.avaloq.tools.ddk.xtext.valid.validation; - -import java.util.ArrayList; -import java.util.List; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.xtext.validation.AbstractDeclarativeValidator; - -public abstract class AbstractValidValidator extends AbstractDeclarativeValidator { - - @Override - protected List getEPackages() { - List result = new ArrayList(); - result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.avaloq.com/tools/ddk/xtext/valid/Valid")); - return result; - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/Valid.ecorediag b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/Valid.ecorediag deleted file mode 100644 index 213f8035c8..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/Valid.ecorediag +++ /dev/null @@ -1,546 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/Valid.xtext b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/Valid.xtext deleted file mode 100644 index b047cf1a7a..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/Valid.xtext +++ /dev/null @@ -1,118 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -grammar com.avaloq.tools.ddk.xtext.valid.Valid with org.eclipse.xtext.common.Terminals - -import 'http://www.avaloq.com/tools/ddk/xtext/valid/Valid' - -import 'http://www.eclipse.org/emf/2002/Ecore' as ecore - -ValidModel: - (imports+=Import)* - (categories+=Category)* -; - -Import: - 'import' package=[ecore::EPackage|STRING] -; -Category: - 'category' name=ID 'label' label=STRING ('description' description=STRING)? '{' (rules+=Rule)* '}' -; - -Rule: - NativeRule | PredefinedRule -; - -PredefinedRule: -SizeRule | RangeRule | UniqueRule //TODO | CapitalizationRule -; - -NativeRule: - ((optional?='optional')? & (checkKind=CheckKind)?) severity=SeverityKind name=ID - 'label' label=STRING - ('description' description=STRING)? - 'message' message=STRING - 'context' '{' - (contexts+=NativeContext)+ - '}' -; - -SizeRule: - ((optional?='optional')? & (checkKind=CheckKind)?) 'size' severity=SeverityKind name=ID - 'label' label=STRING - ('description' description=STRING)? - ('message' message=STRING)? - 'size' (min=INT '..')? max=INT - 'context' '{' - (contexts+=SimpleContext)+ - '}' -; - -RangeRule: - ((optional?='optional')? & (checkKind=CheckKind)?) 'range' severity=SeverityKind name=ID - 'label' label=STRING - ('description' description=STRING)? - ('message' message=STRING)? - 'range' (min=INT '..')? max=INT - 'context' '{' - (contexts+=SimpleContext)+ - '}' -; - -UniqueRule: - ((optional?='optional')? & (checkKind=CheckKind)?) 'unique' severity=SeverityKind name=ID - 'label' label=STRING - ('description' description=STRING)? - ('message' message=STRING)? - 'context' '{' - (contexts+=DuplicateContext)+ - '}' -; - -Context: - NativeContext | DuplicateContext | SimpleContext -; - -SimpleContext: - contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? ";" -; - -DuplicateContext: - contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? 'marker' markerType=[ecore::EClass|QualifiedID]'#'markerFeature=[ecore::EStructuralFeature|ID]?";" -; - -NativeContext: - contextType=[ecore::EClass|QualifiedID]('#'contextFeature=[ecore::EStructuralFeature|ID])? (named?='as' givenName=ID)? ('marker' markerType=[ecore::EClass|QualifiedID]('#'markerFeature=[ecore::EStructuralFeature|ID]))? - ('quickfixes' '{' - (quickFixes+=QuickFix)+ - '}')? - ";" -; - -QuickFix: - ((quickFixKind=QuickFixKind)?) 'fix' name=ID 'label' label=STRING 'message' message=STRING ';' -; - -enum CheckKind: - fast='fast' | normal='normal' | expensive='expensive' -; - -enum SeverityKind: - error='error' | warning='warning' -; - -enum QuickFixKind: - semantic='semantic' | textual='textual' -; - -QualifiedID returns ecore::EString : - (ID '::')* ID -; - diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidConstants.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidConstants.java deleted file mode 100644 index 8b57d2a925..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidConstants.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid; - -/** - * Provides language specific constants for Valid. - */ -public final class ValidConstants { - public static final String GRAMMAR = "com.avaloq.tools.ddk.xtext.valid.Valid"; //$NON-NLS-1$ - public static final String FILE_EXTENSION = "valid"; //$NON-NLS-1$ - - private ValidConstants() { - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidRuntimeModule.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidRuntimeModule.java deleted file mode 100644 index e7722bb99a..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidRuntimeModule.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid; - -import org.eclipse.xtext.conversion.IValueConverterService; -import org.eclipse.xtext.naming.IQualifiedNameConverter; -import org.eclipse.xtext.scoping.IScopeProvider; - -import com.avaloq.tools.ddk.xtext.valid.conversion.ValidValueConverterService; -import com.avaloq.tools.ddk.xtext.valid.naming.ValidQualifiedNameConverter; -import com.avaloq.tools.ddk.xtext.valid.scoping.ValidScopeProvider; - - -/** - * Use this class to register components to be used at runtime / without the Equinox extension registry. - */ -public class ValidRuntimeModule extends com.avaloq.tools.ddk.xtext.valid.AbstractValidRuntimeModule { - - @Override - public Class bindIScopeProvider() { - return ValidScopeProvider.class; - } - - @Override - public Class bindIValueConverterService() { - return ValidValueConverterService.class; - } - - /** - * binds custom qualified name converter. - * - * @return implementation - */ - public Class bindIQualifiedNameConverter() { - return ValidQualifiedNameConverter.class; - } - - @Override - public Class bindIFormatter() { - return com.avaloq.tools.ddk.xtext.valid.formatting.ValidFormatter.class; - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidStandaloneSetup.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidStandaloneSetup.java deleted file mode 100644 index 4f408593aa..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/ValidStandaloneSetup.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid; - -import org.eclipse.emf.ecore.EPackage; - -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; -import com.google.inject.Injector; - - -/** - * Initialization support for running Xtext languages without equinox extension registry. - */ -public class ValidStandaloneSetup extends ValidStandaloneSetupGenerated { - - /** Do setup and EMF registration. */ - public static void doSetup() { - new ValidStandaloneSetup().createInjectorAndDoEMFRegistration(); - } - - @Override - public void register(final Injector injector) { - EPackage.Registry.INSTANCE.put(ValidPackage.eINSTANCE.getNsURI(), ValidPackage.eINSTANCE); - super.register(injector); - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/conversion/ValidValueConverterService.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/conversion/ValidValueConverterService.java deleted file mode 100644 index 08a38beebd..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/conversion/ValidValueConverterService.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.conversion; - -import org.eclipse.xtext.common.services.DefaultTerminalConverters; -import org.eclipse.xtext.conversion.IValueConverter; -import org.eclipse.xtext.conversion.ValueConverter; -import org.eclipse.xtext.conversion.impl.QualifiedNameValueConverter; - -import com.google.inject.Inject; - - -/** - * Value converter service for the valid DSL. - */ -public class ValidValueConverterService extends DefaultTerminalConverters { - - @Inject - private ExtensionIdValueConverter qualifiedIDConverter; - - /** - * Value converter for qualified extension IDs which are delimited using "::". - */ - private static final class ExtensionIdValueConverter extends QualifiedNameValueConverter { - @Override - protected String getNamespaceDelimiter() { - return "::"; //$NON-NLS-1$ - } - } - - /** - * Value converter for Identifier rule. - * - * @return value converter - */ - @ValueConverter(rule = "QualifiedID") - public IValueConverter convertQualifiedID() { - return qualifiedIDConverter; - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/formatting/ValidFormatter.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/formatting/ValidFormatter.java deleted file mode 100644 index a9f5669231..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/formatting/ValidFormatter.java +++ /dev/null @@ -1,149 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.formatting; - -import org.eclipse.xtext.formatting.impl.AbstractDeclarativeFormatter; -import org.eclipse.xtext.formatting.impl.FormattingConfig; - -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess.CategoryElements; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess.ImportElements; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess.NativeContextElements; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess.NativeRuleElements; -import com.avaloq.tools.ddk.xtext.valid.services.ValidGrammarAccess.QuickFixElements; - - -/** - * This class contains custom formatting description. see : - * http://wiki.eclipse.org/Xtext/Documentation#Formatting on how and when to use - * it Also see {@link org.eclipse.xtext.xtext.XtextFormattingTokenSerializer} as - * an example - */ -public class ValidFormatter extends AbstractDeclarativeFormatter { - - /** - * The number of lines to be wrapped before or after a new block of code. - */ - private static final int NUM_WRAP_LINES = 2; - - /** - * The maximum number of characters on one line in the editor. - */ - private static final int MAX_LINE_LENGTH = 140; - - @Override - protected void configureFormatting(final FormattingConfig config) { - final ValidGrammarAccess grammarAccess = (ValidGrammarAccess) getGrammarAccess(); - config.setAutoLinewrap(MAX_LINE_LENGTH); - - // Comments - config.setLinewrap(0, 1, 2).before(grammarAccess.getSL_COMMENTRule()); - config.setLinewrap(0, 1, 2).before(grammarAccess.getML_COMMENTRule()); - config.setLinewrap(0, 1, 1).after(grammarAccess.getML_COMMENTRule()); - - configureCategoryFormatting(config, grammarAccess.getCategoryAccess()); - configureNativeRuleFormatting(config, grammarAccess.getNativeRuleAccess()); - configureNativeContextFormatting(config, grammarAccess.getNativeContextAccess()); - configureQuickFixFormatting(config, grammarAccess.getQuickFixAccess()); - configureImportFormatting(config, grammarAccess.getImportAccess()); - } - - /** - * Configure Import formatting. - * - * @param config - * the formatter configuration - * @param importElements - * the element to format - */ - protected void configureImportFormatting(final FormattingConfig config, final ImportElements importElements) { - config.setLinewrap().after(importElements.getGroup()); - } - - /** - * Configure QuickFix formatting. - * - * @param config - * the formatter configuration - * @param quickFixElements - * the element to format - */ - protected void configureQuickFixFormatting(final FormattingConfig config, final QuickFixElements quickFixElements) { - config.setIndentation(quickFixElements.getFixKeyword_1(), quickFixElements.getSemicolonKeyword_7()); - config.setLinewrap().after(quickFixElements.getSemicolonKeyword_7()); - config.setLinewrap().before(quickFixElements.getLabelKeyword_3()); - config.setLinewrap().before(quickFixElements.getMessageKeyword_5()); - config.setNoSpace().before(quickFixElements.getSemicolonKeyword_7()); - } - - /** - * Configure NativeContext formatting. - * - * @param config - * the formatter configuration - * @param nativeContextElements - * the element to format - */ - protected void configureNativeContextFormatting(final FormattingConfig config, final NativeContextElements nativeContextElements) { - config.setNoLinewrap().before(nativeContextElements.getMarkerKeyword_3_0()); - config.setNoSpace().around(nativeContextElements.getNumberSignKeyword_1_0()); - config.setNoSpace().around(nativeContextElements.getNumberSignKeyword_3_2_0()); - config.setNoLinewrap().before(nativeContextElements.getLeftCurlyBracketKeyword_4_1()); - config.setNoLinewrap().before(nativeContextElements.getQuickfixesKeyword_4_0()); - config.setLinewrap().after(nativeContextElements.getLeftCurlyBracketKeyword_4_1()); - config.setLinewrap().before(nativeContextElements.getRightCurlyBracketKeyword_4_3()); - config.setIndentation(nativeContextElements.getLeftCurlyBracketKeyword_4_1(), nativeContextElements.getRightCurlyBracketKeyword_4_3()); - config.setNoSpace().before(nativeContextElements.getSemicolonKeyword_5()); - config.setLinewrap().after(nativeContextElements.getGroup()); - } - - /** - * Configure NativeRule formatting. - * - * @param config - * the formatter configuration - * @param nativeRuleElements - * the element to format - */ - protected void configureNativeRuleFormatting(final FormattingConfig config, final NativeRuleElements nativeRuleElements) { - config.setIndentation(nativeRuleElements.getNameAssignment_2(), nativeRuleElements.getContextKeyword_8()); - - config.setLinewrap().before(nativeRuleElements.getLabelKeyword_3()); - config.setLinewrap().before(nativeRuleElements.getDescriptionKeyword_5_0()); - config.setLinewrap().before(nativeRuleElements.getContextKeyword_8()); - config.setLinewrap().before(nativeRuleElements.getMessageKeyword_6()); - config.setNoLinewrap().before(nativeRuleElements.getLeftCurlyBracketKeyword_9()); - config.setLinewrap().after(nativeRuleElements.getLeftCurlyBracketKeyword_9()); - config.setLinewrap().before(nativeRuleElements.getRightCurlyBracketKeyword_11()); - config.setIndentation(nativeRuleElements.getLeftCurlyBracketKeyword_9(), nativeRuleElements.getRightCurlyBracketKeyword_11()); - } - - /** - * Configure Category formatting. - * - * @param config - * the formatter configuration - * @param categoryElements - * the element to format - */ - protected void configureCategoryFormatting(final FormattingConfig config, final CategoryElements categoryElements) { - config.setIndentation(categoryElements.getCategoryKeyword_0(), categoryElements.getLeftCurlyBracketKeyword_5()); - config.setIndentation(categoryElements.getLeftCurlyBracketKeyword_5(), categoryElements.getRightCurlyBracketKeyword_7()); - config.setLinewrap(NUM_WRAP_LINES).before(categoryElements.getCategoryKeyword_0()); - config.setLinewrap().before(categoryElements.getLeftCurlyBracketKeyword_5()); - config.setLinewrap(NUM_WRAP_LINES).after(categoryElements.getLeftCurlyBracketKeyword_5()); - config.setLinewrap().before(categoryElements.getLabelKeyword_2()); - config.setLinewrap().before(categoryElements.getDescriptionKeyword_4_0()); - config.setLinewrap(NUM_WRAP_LINES).before(categoryElements.getRightCurlyBracketKeyword_7()); - - config.setLinewrap(2).before(categoryElements.getRulesAssignment_6()); - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/naming/ValidQualifiedNameConverter.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/naming/ValidQualifiedNameConverter.java deleted file mode 100644 index ce1767ad77..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/naming/ValidQualifiedNameConverter.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.naming; - -import org.eclipse.xtext.naming.IQualifiedNameConverter; - - -/** - * ValidQualifiedNameConverter. - */ -public class ValidQualifiedNameConverter extends IQualifiedNameConverter.DefaultImpl { - - @Override - public String getDelimiter() { - return "::"; //$NON-NLS-1$ - } - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/scoping/ValidScopeProvider.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/scoping/ValidScopeProvider.java deleted file mode 100644 index 4eb437ec96..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/scoping/ValidScopeProvider.java +++ /dev/null @@ -1,151 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.scoping; - -import java.util.HashSet; -import java.util.Set; - -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.EClassifier; -import org.eclipse.emf.ecore.ENamedElement; -import org.eclipse.emf.ecore.EPackage; -import org.eclipse.emf.ecore.EReference; -import org.eclipse.emf.ecore.EcorePackage; -import org.eclipse.xtext.naming.QualifiedName; -import org.eclipse.xtext.resource.IEObjectDescription; -import org.eclipse.xtext.scoping.IScope; -import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; -import org.eclipse.xtext.scoping.impl.SimpleScope; - -import com.avaloq.tools.ddk.xtext.scoping.EObjectDescriptions; -import com.avaloq.tools.ddk.xtext.scoping.EPackageScopeProvider; -import com.avaloq.tools.ddk.xtext.valid.valid.Import; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidModel; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; -import com.google.common.collect.Iterables; -import com.google.inject.Inject; - - -/** - * The Class ValidScopeProvider. - */ -public class ValidScopeProvider extends AbstractDeclarativeScopeProvider { - - @Inject - private EPackageScopeProvider ePackageScopeProvider; - - /** - * Gets the imported namespaces (i.e. the list of packages imported in the given model). - * - * @param validModel - * the valid model - * @return the imported packages - */ - private Set getImportedPackages(final ValidModel validModel) { - final Set importedPackages = new HashSet(); - for (final Import importedPackage : validModel.getImports()) { - final EPackage ePackage = importedPackage.getPackage(); - if (ePackage != null) { - importedPackages.add(ePackage); - } - } - return importedPackages; - } - - /** - * Scope for {@link EPackage}. These are read from the registry as well as from the {@link org.eclipse.xtext.Grammar Xtext - * grammar} corresponding to the scope model (if any). - * - * @param context - * context scope DSL model - * @param reference - * context reference - * @return scope with all available {@link EPackage EPackages} with {@link EPackage#getNsURI()} as name - */ - // CHECKSTYLE:OFF - public IScope scope_EPackage(final ValidModel context, final EReference reference) { - // CHECKSTYLE:ON - return ePackageScopeProvider.scope_EPackage(context, reference); - } - - /** - * Scope provider for EClass (all classes in the imported models). - * - * @param validModel - * the valid model - * @param reference - * context reference - * @return the i scope - */ - // CHECKSTYLE:OFF - @SuppressWarnings("PMD.UnusedFormalParameter") - public IScope scope_EClass(final ValidModel validModel, final EReference reference) { - // CHECKSTYLE:ON - IScope result = IScope.NULLSCOPE; - for (final EPackage ePackage : getImportedPackages(validModel)) { - result = createEClassScope(result, ePackage.getEClassifiers()); - } - return result; - } - - /** - * Scope provider for EStructuralFeature (all "attributes" of an EClas in a native context. - * - * @param nativeContext - * the valid model - * @param reference - * context reference - * @return the i scope - */ - // CHECKSTYLE:OFF - public IScope scope_EStructuralFeature(final NativeContext nativeContext, final EReference reference) { - // CHECKSTYLE:ON - switch (reference.getFeatureID()) { - case ValidPackage.NATIVE_CONTEXT__CONTEXT_FEATURE: - return createENamedElementScope(nativeContext.getContextType().getEAllStructuralFeatures()); - case ValidPackage.NATIVE_CONTEXT__MARKER_FEATURE: - return createENamedElementScope(nativeContext.getMarkerType().getEAllStructuralFeatures()); - default: - return IScope.NULLSCOPE; // To keep Java happy. This should not happen. - } - } - - /** - * Creates a scope in which the elements are referenced by their name. - * - * @param elements - * the elements - * @return the i scope - */ - private IScope createENamedElementScope(final Iterable elements) { - return new SimpleScope(IScope.NULLSCOPE, EObjectDescriptions.all(elements, EcorePackage.Literals.ENAMED_ELEMENT__NAME)); - } - - /** - * Creates the Eclass scope provider (all EClasses from the parent classifiers, referenced by their fully qualified (::) names. - * - * @param parent - * the parent - * @param classifiers - * the classifiers - * @return the i scope - */ - private IScope createEClassScope(final IScope parent, final Iterable classifiers) { - final Iterable classes = Iterables.filter(classifiers, EClass.class); - Iterable elements = EObjectDescriptions.all(classes, EcorePackage.Literals.ENAMED_ELEMENT__NAME); - elements = Iterables.concat(elements, EObjectDescriptions.all(classes, from -> { - final EClass param = (EClass) from; - return QualifiedName.create(param.getEPackage().getNsPrefix(), param.getName()); - })); - return new SimpleScope(parent, elements); - } -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/serializer/ValidSemanticSequencer.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/serializer/ValidSemanticSequencer.java deleted file mode 100644 index 515b8fce64..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/serializer/ValidSemanticSequencer.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.serializer; - -/** - * Semantic sequencer for Valid DSL. - */ -public class ValidSemanticSequencer extends AbstractValidSemanticSequencer { - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/serializer/ValidSyntacticSequencer.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/serializer/ValidSyntacticSequencer.java deleted file mode 100644 index 73c1606a21..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/serializer/ValidSyntacticSequencer.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.serializer; - -/** - * Syntactic sequencer for Valid DSL. - */ -public class ValidSyntacticSequencer extends AbstractValidSyntacticSequencer { - -} diff --git a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/validation/ValidValidator.java b/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/validation/ValidValidator.java deleted file mode 100644 index 454280e147..0000000000 --- a/com.avaloq.tools.ddk.xtext.valid/src/com/avaloq/tools/ddk/xtext/valid/validation/ValidValidator.java +++ /dev/null @@ -1,357 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2016 Avaloq Group AG and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Avaloq Group AG - initial API and implementation - *******************************************************************************/ -package com.avaloq.tools.ddk.xtext.valid.validation; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.Map; -import java.util.Set; - -import org.eclipse.xtext.validation.Check; -import org.eclipse.xtext.validation.CheckType; -import org.eclipse.xtext.validation.ComposedChecks; - -import com.avaloq.tools.ddk.xtext.valid.valid.Category; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeContext; -import com.avaloq.tools.ddk.xtext.valid.valid.NativeRule; -import com.avaloq.tools.ddk.xtext.valid.valid.PredefinedRule; -import com.avaloq.tools.ddk.xtext.valid.valid.QuickFix; -import com.avaloq.tools.ddk.xtext.valid.valid.Rule; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidModel; -import com.avaloq.tools.ddk.xtext.valid.valid.ValidPackage; - - -/** - * The Class ValidJavaValidator. - */ -@SuppressWarnings("nls") -@ComposedChecks(validators = {org.eclipse.xtext.validation.NamesAreUniqueValidator.class}) -public class ValidValidator extends AbstractValidValidator { - - private static final String LABEL_SHOULD_NOT_END_WITH_A_DOT = "Label should not end with a '.'"; - private static final String DESCRIPTION_SHOULD_END_WITH_A_DOT = "Description should end with a '.'"; - private static final String DOT = "."; - private static final String DESCRIPTION_SHOULD_NOT_BE_EMPTY = "Description should not be empty"; - private static final String LABEL_SHALL_NOT_BE_EMPTY = "Label shall not be empty"; - private static final String CONTEXT_FEATURE_CANNOT_BE_SPECIFIED_IF_A_MARKER_TYPE_IS_GIVEN = "Context feature cannot be specified if a markerType is given."; - private static final String CATEGORY_SHOULD_CONTAIN_AT_LEAST_ONE_RULE = "Category should contain at least one rule."; - private static final String NAME_SHOULD_START_WITH_A_CAPITAL = "Name should start with a capital"; - - public static final String NO_PREDEFINED_RULE = "ValidJavaValidator.NO_PREDEFINED_RULE"; //$NON-NLS-1$ - public static final String CATEGORY_FIRST_UPPER_NAME = "ValidJavaValidator.CATEGORY_FIRST_UPPER_NAME"; //$NON-NLS-1$ - public static final String RULE_FIRST_UPPER_NAME = "ValidJavaValidator.RULE_FIRST_UPPER_NAME"; //$NON-NLS-1$ - public static final String QUICK_FIX_FIRST_UPPER_NAME = "ValidJavaValidator.QUICK_FIX_FIRST_UPPER_NAME"; //$NON-NLS-1$ - public static final String NATIVE_CONTEXT_FIRST_UPPER_NAME = "ValidJavaValidator.NATIVE_CONTEXT_FIRST_UPPER_NAME"; //$NON-NLS-1$ - public static final String CATEGORY_EMPTY = "ValidJavaValidator.CATEGORY_EMPTY"; //$NON-NLS-1$ - public static final String NATIVE_CONTEXT_CONTEXT_FEATURE = "ValidJavaValidator.NATIVE_CONTEXT_CONTEXT_FEATURE"; //$NON-NLS-1$ - public static final String CATEGORY_LABEL = "ValidJavaValidator.CATEGORY_LABEL"; //$NON-NLS-1$ - public static final String RULE_LABEL = "ValidJavaValidator.RULE_LABEL"; //$NON-NLS-1$ - public static final String QUICK_FIX_LABEL = "ValidJavaValidator.QUICK_FIX_LABEL"; //$NON-NLS-1$ - public static final String UNIQUE_NATIVE_CONTEXT_NAME = "ValidJavaValidator.UNIQUE_NATIVE_CONTEXT_NAME"; //$NON-NLS-1$ - public static final String RULE_DESCRIPTION_ENDS_WITH_DOT = "ValidJavaValidator.RULE_DESCRIPTION_ENDS_WITH_DOT"; //$NON-NLS-1$ - public static final String CATEGORY_LABEL_ENDS_WITH_DOT = "ValidJavaValidator.CATEGORY_LABEL_ENDS_WITH_DOT"; //$NON-NLS-1$ - public static final String RULE_LABEL_ENDS_WITH_DOT = "ValidJavaValidator.RULE_LABEL_ENDS_WITH_DOT"; //$NON-NLS-1$ - public static final String QUICK_FIX_LABEL_ENDS_WITH_DOT = "ValidJavaValidator.QUICK_FIX_LABEL_ENDS_WITH_DOT"; //$NON-NLS-1$ - public static final String CATEGORY_DESCRIPTION = "ValidJavaValidator.CATEGORY_DESCRIPTION"; //$NON-NLS-1$ - public static final String CHECK_DESCRIPTION_RULE = "ValidJavaValidator.CHECK_DESCRIPTION_RULE"; //$NON-NLS-1$ - public static final String CATEGORY_DESCRIPTION_ENDS_WITH_DOT = "ValidJavaValidator.CATEGORY_DESCRIPTION_ENDS_WITH_DOT"; //$NON-NLS-1$ - - /** - * Predefined Rules are disabled for the time being. - * - * @param predefinedRule - * any predefined rule - */ - @Check(CheckType.FAST) - public void checkNoSizeRule(final PredefinedRule predefinedRule) { - error("Size rules are not yet supported.", predefinedRule, ValidPackage.Literals.RULE__NAME, NO_PREDEFINED_RULE); - } - - /** - * Check that a category name starts with an upper-case character. - * - * @param category - * the category - */ - @Check(CheckType.FAST) - public void checkCategoryFirstUpperName(final Category category) { - if (!Character.isUpperCase(category.getName().charAt(0))) { - error(NAME_SHOULD_START_WITH_A_CAPITAL, ValidPackage.Literals.CATEGORY__NAME, CATEGORY_FIRST_UPPER_NAME); - } - - } - - /** - * Check that a rule name starts with an upper-case character. - * - * @param rule - * the rule - */ - @Check(CheckType.FAST) - public void checkRuleFirstUpperName(final Rule rule) { - if (!Character.isUpperCase(rule.getName().charAt(0))) { - error(NAME_SHOULD_START_WITH_A_CAPITAL, ValidPackage.Literals.RULE__NAME, RULE_FIRST_UPPER_NAME); - } - } - - /** - * Check that a quick fix name starts with an upper-case character. - * - * @param quickFix - * the quick fix - */ - @Check(CheckType.FAST) - public void checkQuickFixFirstUpperName(final QuickFix quickFix) { - if (!Character.isUpperCase(quickFix.getName().charAt(0))) { - error(NAME_SHOULD_START_WITH_A_CAPITAL, ValidPackage.Literals.QUICK_FIX__NAME, QUICK_FIX_FIRST_UPPER_NAME); - } - - } - - /** - * Check that a native context name starts with an upper-case character. - * - * @param nativeContext - * the native context - */ - @Check(CheckType.FAST) - public void checkNativeContextFirstUpperName(final NativeContext nativeContext) { - if (nativeContext.isNamed() && !Character.isUpperCase(nativeContext.getGivenName().charAt(0))) { - error(NAME_SHOULD_START_WITH_A_CAPITAL, ValidPackage.Literals.NATIVE_CONTEXT__GIVEN_NAME, NATIVE_CONTEXT_FIRST_UPPER_NAME); - } - - } - - /** - * Check that a category has at least one rule. - * - * @param category - * the category - */ - @Check(CheckType.FAST) - public void checkCategoryEmpty(final Category category) { - if (category.getRules().isEmpty()) { - warning(CATEGORY_SHOULD_CONTAIN_AT_LEAST_ONE_RULE, null, CATEGORY_EMPTY); - } - } - - // Names must be unique is replaced by fragment - - /** - * Check that the native context type has no feature if a marker type is present. - * - * @param nativeContext - * the native context - */ - @Check(CheckType.FAST) - public void checkNativeContextContextFeature(final NativeContext nativeContext) { - guard(nativeContext.getContextFeature() != null); - if (nativeContext.getMarkerType() != null) { - error(CONTEXT_FEATURE_CANNOT_BE_SPECIFIED_IF_A_MARKER_TYPE_IS_GIVEN, ValidPackage.Literals.CONTEXT__CONTEXT_FEATURE, NATIVE_CONTEXT_CONTEXT_FEATURE); - } - } - - /** - * Check that a label is defined for the category. - * - * @param category - * the category - */ - @Check(CheckType.FAST) - public void checkCategoryLabel(final Category category) { - if (category.getLabel().length() == 0) { - error(LABEL_SHALL_NOT_BE_EMPTY, ValidPackage.Literals.CATEGORY__LABEL, CATEGORY_LABEL); - } - } - - /** - * Check that a label is defined for the rule. - * - * @param rule - * the rule - */ - @Check(CheckType.FAST) - public void checkRuleLabel(final Rule rule) { - if (rule.getLabel().length() == 0) { - error(LABEL_SHALL_NOT_BE_EMPTY, ValidPackage.Literals.RULE__LABEL, RULE_LABEL); - } - - } - - /** - * Check that a label is defined for the quick fix. - * - * @param quickFix - * the quick fix - */ - @Check(CheckType.FAST) - public void checkQuickFixLabel(final QuickFix quickFix) { - if (quickFix.getLabel().length() == 0) { - error(LABEL_SHALL_NOT_BE_EMPTY, ValidPackage.Literals.QUICK_FIX__LABEL, QUICK_FIX_LABEL); - - } - } - - /** - * Check that a description is defined for the category. - * - * @param category - * the category - */ - @Check(CheckType.FAST) - public void checkCategoryDescription(final Category category) { - // TODO[BAS] are descriptions really optional? - if (category.getDescription() != null && category.getDescription().length() == 0) { - warning(DESCRIPTION_SHOULD_NOT_BE_EMPTY, ValidPackage.Literals.CATEGORY__DESCRIPTION, CATEGORY_DESCRIPTION); - } - - } - - /** - * Check that a description is defined for the rule. - * - * @param rule - * the rule - */ - @Check(CheckType.FAST) - public void checkCheckDescriptionRule(final Rule rule) { - if (rule.getDescription() == null || rule.getDescription().length() == 0) { - warning(DESCRIPTION_SHOULD_NOT_BE_EMPTY, ValidPackage.Literals.RULE__DESCRIPTION, CHECK_DESCRIPTION_RULE); - } - } - - /** - * Gets the name of a native context (either the alias -- given name -- or the name of the enclosing rule). - * - * @param context - * the context - * @return the name - */ - private String getName(final NativeContext context) { - return (context.isNamed()) ? context.getGivenName() : ((NativeRule) context.eContainer()).getName(); - } - - /** - * Check that, for each context type, the name of a context is unique inside a model. - * - * @param validModel - * the valid model - */ - @Check(CheckType.FAST) - public void checkUniqueNativeContextName(final ValidModel validModel) { - - // for each name store the element of its first occurrence - final Map firstOccurrenceOfName = new HashMap(); - // the set of duplicate names - final Set duplicateNames = new HashSet(); - - for (final Category category : validModel.getCategories()) { - for (final Rule rule : category.getRules()) { - if (rule instanceof NativeRule) { - for (final NativeContext context : ((NativeRule) rule).getContexts()) { - final String name = getName(context); - // if the name already occurred we have a duplicate name and hence an error - final NativeContext firstContext = firstOccurrenceOfName.get(name); - if (firstContext != null && firstContext.getContextType() == context.getContextType()) { - duplicateNames.add(name); - // note the second parameter t - // it is essential difference to the first example - error("Name " + name - + " must be unique for a given context type (introduce an \"as\" clause)", context, ValidPackage.Literals.NATIVE_CONTEXT__GIVEN_NAME, UNIQUE_NATIVE_CONTEXT_NAME); - } else { - // otherwise store the name as first occurrence - firstOccurrenceOfName.put(name, context); - } - } - } - } - } - - // now create the error for the first occurrence of a duplicate name - for (final String duplicate : duplicateNames) { - error("Name " + duplicate - + " must be unique for a given context (introduce an \"as\" clause)", firstOccurrenceOfName.get(duplicate), ValidPackage.Literals.NATIVE_CONTEXT__GIVEN_NAME, UNIQUE_NATIVE_CONTEXT_NAME); - } - - } - - /** - * Check that the description of a category ends with a dot. - * - * @param category - * the category - */ - @Check(CheckType.FAST) - public void checkCategoryDescriptionEndsWithDot(final Category category) { - guard(category.getDescription() != null); - if (!category.getDescription().endsWith(DOT)) { - warning(DESCRIPTION_SHOULD_END_WITH_A_DOT, ValidPackage.Literals.CATEGORY__DESCRIPTION, CATEGORY_DESCRIPTION_ENDS_WITH_DOT); - } - } - - /** - * Check that the description of a rule ends with a dot. - * - * @param rule - * the rule - */ - @Check(CheckType.FAST) - public void checkRuleDescriptionEndsWithDot(final Rule rule) { - guard(rule.getDescription() != null); - if (!rule.getDescription().endsWith(DOT)) { - warning(DESCRIPTION_SHOULD_END_WITH_A_DOT, ValidPackage.Literals.RULE__DESCRIPTION, RULE_DESCRIPTION_ENDS_WITH_DOT); - } - } - - /** - * Check that the label of a category doesn't end with a dot. - * - * @param category - * the category - */ - @Check(CheckType.FAST) - public void checkCategoryLabelEndsWithDot(final Category category) { - guard(category.getLabel().length() > 0); - if (category.getLabel().endsWith(DOT)) { - warning(LABEL_SHOULD_NOT_END_WITH_A_DOT, ValidPackage.Literals.CATEGORY__LABEL, CATEGORY_LABEL_ENDS_WITH_DOT); - } - } - - /** - * Check that the label of a rule doesn't end with a dot. - * - * @param rule - * the rule - */ - @Check(CheckType.FAST) - public void checkRuleLabelEndsWithDot(final Rule rule) { - guard(rule.getLabel().length() > 0); - if (rule.getLabel().endsWith(DOT)) { - warning(LABEL_SHOULD_NOT_END_WITH_A_DOT, ValidPackage.Literals.RULE__LABEL, RULE_LABEL_ENDS_WITH_DOT); - } - } - - /** - * Check that the label of a quick fix doesn't end with a dot. - * - * @param quickFix - * the quick fix - */ - @Check(CheckType.FAST) - public void checkQuickFixLabelEndsWithDot(final QuickFix quickFix) { - guard(quickFix.getLabel().length() > 0); - - if (quickFix.getLabel().endsWith(DOT)) { - warning(LABEL_SHOULD_NOT_END_WITH_A_DOT, ValidPackage.Literals.QUICK_FIX__LABEL, QUICK_FIX_LABEL_ENDS_WITH_DOT); - } - } - -} diff --git a/ddk-configuration/oomph-setup/DDK.setup b/ddk-configuration/oomph-setup/DDK.setup index 31a9bcb1b9..0d2b4e3e73 100644 --- a/ddk-configuration/oomph-setup/DDK.setup +++ b/ddk-configuration/oomph-setup/DDK.setup @@ -152,12 +152,6 @@ xsi:type="predicates:NamePredicate" pattern="com.avaloq.tools.ddk.xtext.scope\..*"/> - - - - - - diff --git a/ddk-parent/pom.xml b/ddk-parent/pom.xml index 3d1681efd2..eecec12a2b 100644 --- a/ddk-parent/pom.xml +++ b/ddk-parent/pom.xml @@ -101,9 +101,6 @@ ../com.avaloq.tools.ddk.xtext.test.core ../com.avaloq.tools.ddk.xtext.ui ../com.avaloq.tools.ddk.xtext.ui.test - ../com.avaloq.tools.ddk.xtext.valid - ../com.avaloq.tools.ddk.xtext.valid.ide - ../com.avaloq.tools.ddk.xtext.valid.ui ../com.avaloq.tools.ddk.test.core ../com.avaloq.tools.ddk.test.ui ../com.avaloq.tools.ddk.test.ui.test