diff options
120 files changed, 20367 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/.classpath b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.classpath new file mode 100644 index 00000000..1287f96c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.classpath | |||
@@ -0,0 +1,9 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <classpath> | ||
3 | <classpathentry kind="src" path="src"/> | ||
4 | <classpathentry kind="src" path="src-gen"/> | ||
5 | <classpathentry kind="src" path="xtend-gen"/> | ||
6 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
7 | <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
8 | <classpathentry kind="output" path="bin"/> | ||
9 | </classpath> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.gitignore new file mode 100644 index 00000000..ae3c1726 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.gitignore | |||
@@ -0,0 +1 @@ | |||
/bin/ | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/.project b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.project new file mode 100644 index 00000000..9d62c5a9 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.project | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>hu.bme.mit.inf.dslreasoner.application.ide</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.jdt.core.javabuilder</name> | ||
15 | <arguments> | ||
16 | </arguments> | ||
17 | </buildCommand> | ||
18 | <buildCommand> | ||
19 | <name>org.eclipse.pde.ManifestBuilder</name> | ||
20 | <arguments> | ||
21 | </arguments> | ||
22 | </buildCommand> | ||
23 | <buildCommand> | ||
24 | <name>org.eclipse.pde.SchemaBuilder</name> | ||
25 | <arguments> | ||
26 | </arguments> | ||
27 | </buildCommand> | ||
28 | </buildSpec> | ||
29 | <natures> | ||
30 | <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
31 | <nature>org.eclipse.jdt.core.javanature</nature> | ||
32 | <nature>org.eclipse.pde.PluginNature</nature> | ||
33 | </natures> | ||
34 | </projectDescription> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/.settings/org.eclipse.core.resources.prefs b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..4824b802 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.settings/org.eclipse.core.resources.prefs | |||
@@ -0,0 +1,2 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | encoding/<project>=UTF-8 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/.settings/org.eclipse.jdt.core.prefs b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..295926d9 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/.settings/org.eclipse.jdt.core.prefs | |||
@@ -0,0 +1,7 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
4 | org.eclipse.jdt.core.compiler.compliance=1.8 | ||
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
7 | org.eclipse.jdt.core.compiler.source=1.8 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/META-INF/MANIFEST.MF b/Application/hu.bme.mit.inf.dslreasoner.application.ide/META-INF/MANIFEST.MF new file mode 100644 index 00000000..ea887458 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/META-INF/MANIFEST.MF | |||
@@ -0,0 +1,14 @@ | |||
1 | Manifest-Version: 1.0 | ||
2 | Bundle-ManifestVersion: 2 | ||
3 | Bundle-Name: hu.bme.mit.inf.dslreasoner.application.ide | ||
4 | Bundle-Vendor: My Company | ||
5 | Bundle-Version: 1.0.0.qualifier | ||
6 | Bundle-SymbolicName: hu.bme.mit.inf.dslreasoner.application.ide; singleton:=true | ||
7 | Bundle-ActivationPolicy: lazy | ||
8 | Require-Bundle: hu.bme.mit.inf.dslreasoner.application, | ||
9 | org.eclipse.xtext.ide, | ||
10 | org.eclipse.xtext.xbase.ide | ||
11 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
12 | Export-Package: hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal, | ||
13 | hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr | ||
14 | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/build.properties b/Application/hu.bme.mit.inf.dslreasoner.application.ide/build.properties new file mode 100644 index 00000000..914b09cc --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/build.properties | |||
@@ -0,0 +1,5 @@ | |||
1 | source.. = src/,\ | ||
2 | src-gen/,\ | ||
3 | xtend-gen/ | ||
4 | bin.includes = .,\ | ||
5 | META-INF/ | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/ApplicationConfigurationParser.java b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/ApplicationConfigurationParser.java new file mode 100644 index 00000000..40c2fd48 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/ApplicationConfigurationParser.java | |||
@@ -0,0 +1,97 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal.InternalApplicationConfigurationParser; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
9 | import java.util.Collection; | ||
10 | import java.util.HashMap; | ||
11 | import java.util.Map; | ||
12 | import org.antlr.runtime.RecognitionException; | ||
13 | import org.eclipse.xtext.AbstractElement; | ||
14 | import org.eclipse.xtext.ide.editor.contentassist.antlr.AbstractContentAssistParser; | ||
15 | import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement; | ||
16 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
17 | |||
18 | public class ApplicationConfigurationParser extends AbstractContentAssistParser { | ||
19 | |||
20 | @Inject | ||
21 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
22 | |||
23 | private Map<AbstractElement, String> nameMappings; | ||
24 | |||
25 | @Override | ||
26 | protected InternalApplicationConfigurationParser createParser() { | ||
27 | InternalApplicationConfigurationParser result = new InternalApplicationConfigurationParser(null); | ||
28 | result.setGrammarAccess(grammarAccess); | ||
29 | return result; | ||
30 | } | ||
31 | |||
32 | @Override | ||
33 | protected String getRuleName(AbstractElement element) { | ||
34 | if (nameMappings == null) { | ||
35 | nameMappings = new HashMap<AbstractElement, String>() { | ||
36 | private static final long serialVersionUID = 1L; | ||
37 | { | ||
38 | put(grammarAccess.getImportAccess().getAlternatives(), "rule__Import__Alternatives"); | ||
39 | put(grammarAccess.getMetamodelEntryAccess().getAlternatives(), "rule__MetamodelEntry__Alternatives"); | ||
40 | put(grammarAccess.getMetamodelAccess().getAlternatives(), "rule__Metamodel__Alternatives"); | ||
41 | put(grammarAccess.getConfigurationScriptAccess().getGroup(), "rule__ConfigurationScript__Group__0"); | ||
42 | put(grammarAccess.getEPackageImportAccess().getGroup(), "rule__EPackageImport__Group__0"); | ||
43 | put(grammarAccess.getViatraImportAccess().getGroup(), "rule__ViatraImport__Group__0"); | ||
44 | put(grammarAccess.getMetamodelSpecificationAccess().getGroup(), "rule__MetamodelSpecification__Group__0"); | ||
45 | put(grammarAccess.getMetamodelSpecificationAccess().getGroup_2(), "rule__MetamodelSpecification__Group_2__0"); | ||
46 | put(grammarAccess.getAllPackageEntryAccess().getGroup(), "rule__AllPackageEntry__Group__0"); | ||
47 | put(grammarAccess.getAllPackageEntryAccess().getGroup_2(), "rule__AllPackageEntry__Group_2__0"); | ||
48 | put(grammarAccess.getAllPackageEntryAccess().getGroup_2_3(), "rule__AllPackageEntry__Group_2_3__0"); | ||
49 | put(grammarAccess.getMetamodelElementAccess().getGroup(), "rule__MetamodelElement__Group__0"); | ||
50 | put(grammarAccess.getMetamodelElementAccess().getGroup_0(), "rule__MetamodelElement__Group_0__0"); | ||
51 | put(grammarAccess.getMetamodelElementAccess().getGroup_2(), "rule__MetamodelElement__Group_2__0"); | ||
52 | put(grammarAccess.getMetamodelDeclarationAccess().getGroup(), "rule__MetamodelDeclaration__Group__0"); | ||
53 | put(grammarAccess.getConfigurationScriptAccess().getImportsAssignment_0(), "rule__ConfigurationScript__ImportsAssignment_0"); | ||
54 | put(grammarAccess.getConfigurationScriptAccess().getCommandsAssignment_1(), "rule__ConfigurationScript__CommandsAssignment_1"); | ||
55 | put(grammarAccess.getEPackageImportAccess().getImportedPackageAssignment_2(), "rule__EPackageImport__ImportedPackageAssignment_2"); | ||
56 | put(grammarAccess.getViatraImportAccess().getImportedViatraAssignment_2(), "rule__ViatraImport__ImportedViatraAssignment_2"); | ||
57 | put(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_1(), "rule__MetamodelSpecification__EntriesAssignment_1"); | ||
58 | put(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_2_1(), "rule__MetamodelSpecification__EntriesAssignment_2_1"); | ||
59 | put(grammarAccess.getAllPackageEntryAccess().getPackageAssignment_1(), "rule__AllPackageEntry__PackageAssignment_1"); | ||
60 | put(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_2(), "rule__AllPackageEntry__ExclusionAssignment_2_2"); | ||
61 | put(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_3_1(), "rule__AllPackageEntry__ExclusionAssignment_2_3_1"); | ||
62 | put(grammarAccess.getMetamodelElementAccess().getPackageAssignment_0_0(), "rule__MetamodelElement__PackageAssignment_0_0"); | ||
63 | put(grammarAccess.getMetamodelElementAccess().getClassifierAssignment_1(), "rule__MetamodelElement__ClassifierAssignment_1"); | ||
64 | put(grammarAccess.getMetamodelElementAccess().getFeatureAssignment_2_1(), "rule__MetamodelElement__FeatureAssignment_2_1"); | ||
65 | put(grammarAccess.getMetamodelDeclarationAccess().getNameAssignment_1(), "rule__MetamodelDeclaration__NameAssignment_1"); | ||
66 | put(grammarAccess.getMetamodelDeclarationAccess().getSpecificationAssignment_2(), "rule__MetamodelDeclaration__SpecificationAssignment_2"); | ||
67 | put(grammarAccess.getMetamodelReferenceAccess().getReferredAssignment(), "rule__MetamodelReference__ReferredAssignment"); | ||
68 | } | ||
69 | }; | ||
70 | } | ||
71 | return nameMappings.get(element); | ||
72 | } | ||
73 | |||
74 | @Override | ||
75 | protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { | ||
76 | try { | ||
77 | InternalApplicationConfigurationParser typedParser = (InternalApplicationConfigurationParser) parser; | ||
78 | typedParser.entryRuleConfigurationScript(); | ||
79 | return typedParser.getFollowElements(); | ||
80 | } catch(RecognitionException ex) { | ||
81 | throw new RuntimeException(ex); | ||
82 | } | ||
83 | } | ||
84 | |||
85 | @Override | ||
86 | protected String[] getInitialHiddenTokens() { | ||
87 | return new String[] { "RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT" }; | ||
88 | } | ||
89 | |||
90 | public ApplicationConfigurationGrammarAccess getGrammarAccess() { | ||
91 | return this.grammarAccess; | ||
92 | } | ||
93 | |||
94 | public void setGrammarAccess(ApplicationConfigurationGrammarAccess grammarAccess) { | ||
95 | this.grammarAccess = grammarAccess; | ||
96 | } | ||
97 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/PartialApplicationConfigurationContentAssistParser.java b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/PartialApplicationConfigurationContentAssistParser.java new file mode 100644 index 00000000..a418e063 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/PartialApplicationConfigurationContentAssistParser.java | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr; | ||
5 | |||
6 | import java.util.Collection; | ||
7 | import java.util.Collections; | ||
8 | import org.eclipse.xtext.AbstractRule; | ||
9 | import org.eclipse.xtext.ide.editor.contentassist.antlr.FollowElement; | ||
10 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
11 | import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser; | ||
12 | import org.eclipse.xtext.util.PolymorphicDispatcher; | ||
13 | |||
14 | public class PartialApplicationConfigurationContentAssistParser extends ApplicationConfigurationParser implements IPartialEditingContentAssistParser { | ||
15 | |||
16 | private AbstractRule rule; | ||
17 | |||
18 | @Override | ||
19 | public void initializeFor(AbstractRule rule) { | ||
20 | this.rule = rule; | ||
21 | } | ||
22 | |||
23 | @Override | ||
24 | protected Collection<FollowElement> getFollowElements(AbstractInternalContentAssistParser parser) { | ||
25 | if (rule == null || rule.eIsProxy()) | ||
26 | return Collections.emptyList(); | ||
27 | String methodName = "entryRule" + rule.getName(); | ||
28 | PolymorphicDispatcher<Collection<FollowElement>> dispatcher = | ||
29 | new PolymorphicDispatcher<Collection<FollowElement>>(methodName, 0, 0, Collections.singletonList(parser)); | ||
30 | dispatcher.invoke(); | ||
31 | return parser.getFollowElements(); | ||
32 | } | ||
33 | |||
34 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfiguration.g b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfiguration.g new file mode 100644 index 00000000..08fa0536 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfiguration.g | |||
@@ -0,0 +1,1577 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | grammar InternalApplicationConfiguration; | ||
5 | |||
6 | options { | ||
7 | superClass=AbstractInternalContentAssistParser; | ||
8 | } | ||
9 | |||
10 | @lexer::header { | ||
11 | package hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal; | ||
12 | |||
13 | // Hack: Use our own Lexer superclass by means of import. | ||
14 | // Currently there is no other way to specify the superclass for the lexer. | ||
15 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; | ||
16 | } | ||
17 | |||
18 | @parser::header { | ||
19 | package hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal; | ||
20 | |||
21 | import java.io.InputStream; | ||
22 | import org.eclipse.xtext.*; | ||
23 | import org.eclipse.xtext.parser.*; | ||
24 | import org.eclipse.xtext.parser.impl.*; | ||
25 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
26 | import org.eclipse.emf.ecore.EObject; | ||
27 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
29 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
30 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.DFA; | ||
31 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
32 | |||
33 | } | ||
34 | @parser::members { | ||
35 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
36 | |||
37 | public void setGrammarAccess(ApplicationConfigurationGrammarAccess grammarAccess) { | ||
38 | this.grammarAccess = grammarAccess; | ||
39 | } | ||
40 | |||
41 | @Override | ||
42 | protected Grammar getGrammar() { | ||
43 | return grammarAccess.getGrammar(); | ||
44 | } | ||
45 | |||
46 | @Override | ||
47 | protected String getValueForTokenName(String tokenName) { | ||
48 | return tokenName; | ||
49 | } | ||
50 | } | ||
51 | |||
52 | // Entry rule entryRuleConfigurationScript | ||
53 | entryRuleConfigurationScript | ||
54 | : | ||
55 | { before(grammarAccess.getConfigurationScriptRule()); } | ||
56 | ruleConfigurationScript | ||
57 | { after(grammarAccess.getConfigurationScriptRule()); } | ||
58 | EOF | ||
59 | ; | ||
60 | |||
61 | // Rule ConfigurationScript | ||
62 | ruleConfigurationScript | ||
63 | @init { | ||
64 | int stackSize = keepStackSize(); | ||
65 | } | ||
66 | : | ||
67 | ( | ||
68 | { before(grammarAccess.getConfigurationScriptAccess().getGroup()); } | ||
69 | (rule__ConfigurationScript__Group__0) | ||
70 | { after(grammarAccess.getConfigurationScriptAccess().getGroup()); } | ||
71 | ) | ||
72 | ; | ||
73 | finally { | ||
74 | restoreStackSize(stackSize); | ||
75 | } | ||
76 | |||
77 | // Entry rule entryRuleCommand | ||
78 | entryRuleCommand | ||
79 | : | ||
80 | { before(grammarAccess.getCommandRule()); } | ||
81 | ruleCommand | ||
82 | { after(grammarAccess.getCommandRule()); } | ||
83 | EOF | ||
84 | ; | ||
85 | |||
86 | // Rule Command | ||
87 | ruleCommand | ||
88 | @init { | ||
89 | int stackSize = keepStackSize(); | ||
90 | } | ||
91 | : | ||
92 | ( | ||
93 | { before(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); } | ||
94 | ruleDeclaration | ||
95 | { after(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); } | ||
96 | ) | ||
97 | ; | ||
98 | finally { | ||
99 | restoreStackSize(stackSize); | ||
100 | } | ||
101 | |||
102 | // Entry rule entryRuleDeclaration | ||
103 | entryRuleDeclaration | ||
104 | : | ||
105 | { before(grammarAccess.getDeclarationRule()); } | ||
106 | ruleDeclaration | ||
107 | { after(grammarAccess.getDeclarationRule()); } | ||
108 | EOF | ||
109 | ; | ||
110 | |||
111 | // Rule Declaration | ||
112 | ruleDeclaration | ||
113 | @init { | ||
114 | int stackSize = keepStackSize(); | ||
115 | } | ||
116 | : | ||
117 | ( | ||
118 | { before(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); } | ||
119 | ruleMetamodelDeclaration | ||
120 | { after(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); } | ||
121 | ) | ||
122 | ; | ||
123 | finally { | ||
124 | restoreStackSize(stackSize); | ||
125 | } | ||
126 | |||
127 | // Entry rule entryRuleImport | ||
128 | entryRuleImport | ||
129 | : | ||
130 | { before(grammarAccess.getImportRule()); } | ||
131 | ruleImport | ||
132 | { after(grammarAccess.getImportRule()); } | ||
133 | EOF | ||
134 | ; | ||
135 | |||
136 | // Rule Import | ||
137 | ruleImport | ||
138 | @init { | ||
139 | int stackSize = keepStackSize(); | ||
140 | } | ||
141 | : | ||
142 | ( | ||
143 | { before(grammarAccess.getImportAccess().getAlternatives()); } | ||
144 | (rule__Import__Alternatives) | ||
145 | { after(grammarAccess.getImportAccess().getAlternatives()); } | ||
146 | ) | ||
147 | ; | ||
148 | finally { | ||
149 | restoreStackSize(stackSize); | ||
150 | } | ||
151 | |||
152 | // Entry rule entryRuleEPackageImport | ||
153 | entryRuleEPackageImport | ||
154 | : | ||
155 | { before(grammarAccess.getEPackageImportRule()); } | ||
156 | ruleEPackageImport | ||
157 | { after(grammarAccess.getEPackageImportRule()); } | ||
158 | EOF | ||
159 | ; | ||
160 | |||
161 | // Rule EPackageImport | ||
162 | ruleEPackageImport | ||
163 | @init { | ||
164 | int stackSize = keepStackSize(); | ||
165 | } | ||
166 | : | ||
167 | ( | ||
168 | { before(grammarAccess.getEPackageImportAccess().getGroup()); } | ||
169 | (rule__EPackageImport__Group__0) | ||
170 | { after(grammarAccess.getEPackageImportAccess().getGroup()); } | ||
171 | ) | ||
172 | ; | ||
173 | finally { | ||
174 | restoreStackSize(stackSize); | ||
175 | } | ||
176 | |||
177 | // Entry rule entryRuleViatraImport | ||
178 | entryRuleViatraImport | ||
179 | : | ||
180 | { before(grammarAccess.getViatraImportRule()); } | ||
181 | ruleViatraImport | ||
182 | { after(grammarAccess.getViatraImportRule()); } | ||
183 | EOF | ||
184 | ; | ||
185 | |||
186 | // Rule ViatraImport | ||
187 | ruleViatraImport | ||
188 | @init { | ||
189 | int stackSize = keepStackSize(); | ||
190 | } | ||
191 | : | ||
192 | ( | ||
193 | { before(grammarAccess.getViatraImportAccess().getGroup()); } | ||
194 | (rule__ViatraImport__Group__0) | ||
195 | { after(grammarAccess.getViatraImportAccess().getGroup()); } | ||
196 | ) | ||
197 | ; | ||
198 | finally { | ||
199 | restoreStackSize(stackSize); | ||
200 | } | ||
201 | |||
202 | // Entry rule entryRuleMetamodelSpecification | ||
203 | entryRuleMetamodelSpecification | ||
204 | : | ||
205 | { before(grammarAccess.getMetamodelSpecificationRule()); } | ||
206 | ruleMetamodelSpecification | ||
207 | { after(grammarAccess.getMetamodelSpecificationRule()); } | ||
208 | EOF | ||
209 | ; | ||
210 | |||
211 | // Rule MetamodelSpecification | ||
212 | ruleMetamodelSpecification | ||
213 | @init { | ||
214 | int stackSize = keepStackSize(); | ||
215 | } | ||
216 | : | ||
217 | ( | ||
218 | { before(grammarAccess.getMetamodelSpecificationAccess().getGroup()); } | ||
219 | (rule__MetamodelSpecification__Group__0) | ||
220 | { after(grammarAccess.getMetamodelSpecificationAccess().getGroup()); } | ||
221 | ) | ||
222 | ; | ||
223 | finally { | ||
224 | restoreStackSize(stackSize); | ||
225 | } | ||
226 | |||
227 | // Entry rule entryRuleMetamodelEntry | ||
228 | entryRuleMetamodelEntry | ||
229 | : | ||
230 | { before(grammarAccess.getMetamodelEntryRule()); } | ||
231 | ruleMetamodelEntry | ||
232 | { after(grammarAccess.getMetamodelEntryRule()); } | ||
233 | EOF | ||
234 | ; | ||
235 | |||
236 | // Rule MetamodelEntry | ||
237 | ruleMetamodelEntry | ||
238 | @init { | ||
239 | int stackSize = keepStackSize(); | ||
240 | } | ||
241 | : | ||
242 | ( | ||
243 | { before(grammarAccess.getMetamodelEntryAccess().getAlternatives()); } | ||
244 | (rule__MetamodelEntry__Alternatives) | ||
245 | { after(grammarAccess.getMetamodelEntryAccess().getAlternatives()); } | ||
246 | ) | ||
247 | ; | ||
248 | finally { | ||
249 | restoreStackSize(stackSize); | ||
250 | } | ||
251 | |||
252 | // Entry rule entryRuleAllPackageEntry | ||
253 | entryRuleAllPackageEntry | ||
254 | : | ||
255 | { before(grammarAccess.getAllPackageEntryRule()); } | ||
256 | ruleAllPackageEntry | ||
257 | { after(grammarAccess.getAllPackageEntryRule()); } | ||
258 | EOF | ||
259 | ; | ||
260 | |||
261 | // Rule AllPackageEntry | ||
262 | ruleAllPackageEntry | ||
263 | @init { | ||
264 | int stackSize = keepStackSize(); | ||
265 | } | ||
266 | : | ||
267 | ( | ||
268 | { before(grammarAccess.getAllPackageEntryAccess().getGroup()); } | ||
269 | (rule__AllPackageEntry__Group__0) | ||
270 | { after(grammarAccess.getAllPackageEntryAccess().getGroup()); } | ||
271 | ) | ||
272 | ; | ||
273 | finally { | ||
274 | restoreStackSize(stackSize); | ||
275 | } | ||
276 | |||
277 | // Entry rule entryRuleMetamodelElement | ||
278 | entryRuleMetamodelElement | ||
279 | : | ||
280 | { before(grammarAccess.getMetamodelElementRule()); } | ||
281 | ruleMetamodelElement | ||
282 | { after(grammarAccess.getMetamodelElementRule()); } | ||
283 | EOF | ||
284 | ; | ||
285 | |||
286 | // Rule MetamodelElement | ||
287 | ruleMetamodelElement | ||
288 | @init { | ||
289 | int stackSize = keepStackSize(); | ||
290 | } | ||
291 | : | ||
292 | ( | ||
293 | { before(grammarAccess.getMetamodelElementAccess().getGroup()); } | ||
294 | (rule__MetamodelElement__Group__0) | ||
295 | { after(grammarAccess.getMetamodelElementAccess().getGroup()); } | ||
296 | ) | ||
297 | ; | ||
298 | finally { | ||
299 | restoreStackSize(stackSize); | ||
300 | } | ||
301 | |||
302 | // Entry rule entryRuleMetamodelDeclaration | ||
303 | entryRuleMetamodelDeclaration | ||
304 | : | ||
305 | { before(grammarAccess.getMetamodelDeclarationRule()); } | ||
306 | ruleMetamodelDeclaration | ||
307 | { after(grammarAccess.getMetamodelDeclarationRule()); } | ||
308 | EOF | ||
309 | ; | ||
310 | |||
311 | // Rule MetamodelDeclaration | ||
312 | ruleMetamodelDeclaration | ||
313 | @init { | ||
314 | int stackSize = keepStackSize(); | ||
315 | } | ||
316 | : | ||
317 | ( | ||
318 | { before(grammarAccess.getMetamodelDeclarationAccess().getGroup()); } | ||
319 | (rule__MetamodelDeclaration__Group__0) | ||
320 | { after(grammarAccess.getMetamodelDeclarationAccess().getGroup()); } | ||
321 | ) | ||
322 | ; | ||
323 | finally { | ||
324 | restoreStackSize(stackSize); | ||
325 | } | ||
326 | |||
327 | // Entry rule entryRuleMetamodelReference | ||
328 | entryRuleMetamodelReference | ||
329 | : | ||
330 | { before(grammarAccess.getMetamodelReferenceRule()); } | ||
331 | ruleMetamodelReference | ||
332 | { after(grammarAccess.getMetamodelReferenceRule()); } | ||
333 | EOF | ||
334 | ; | ||
335 | |||
336 | // Rule MetamodelReference | ||
337 | ruleMetamodelReference | ||
338 | @init { | ||
339 | int stackSize = keepStackSize(); | ||
340 | } | ||
341 | : | ||
342 | ( | ||
343 | { before(grammarAccess.getMetamodelReferenceAccess().getReferredAssignment()); } | ||
344 | (rule__MetamodelReference__ReferredAssignment) | ||
345 | { after(grammarAccess.getMetamodelReferenceAccess().getReferredAssignment()); } | ||
346 | ) | ||
347 | ; | ||
348 | finally { | ||
349 | restoreStackSize(stackSize); | ||
350 | } | ||
351 | |||
352 | rule__Import__Alternatives | ||
353 | @init { | ||
354 | int stackSize = keepStackSize(); | ||
355 | } | ||
356 | : | ||
357 | ( | ||
358 | { before(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); } | ||
359 | ruleEPackageImport | ||
360 | { after(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); } | ||
361 | ) | ||
362 | | | ||
363 | ( | ||
364 | { before(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); } | ||
365 | ruleViatraImport | ||
366 | { after(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); } | ||
367 | ) | ||
368 | ; | ||
369 | finally { | ||
370 | restoreStackSize(stackSize); | ||
371 | } | ||
372 | |||
373 | rule__MetamodelEntry__Alternatives | ||
374 | @init { | ||
375 | int stackSize = keepStackSize(); | ||
376 | } | ||
377 | : | ||
378 | ( | ||
379 | { before(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); } | ||
380 | ruleMetamodelElement | ||
381 | { after(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); } | ||
382 | ) | ||
383 | | | ||
384 | ( | ||
385 | { before(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); } | ||
386 | ruleAllPackageEntry | ||
387 | { after(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); } | ||
388 | ) | ||
389 | ; | ||
390 | finally { | ||
391 | restoreStackSize(stackSize); | ||
392 | } | ||
393 | |||
394 | rule__ConfigurationScript__Group__0 | ||
395 | @init { | ||
396 | int stackSize = keepStackSize(); | ||
397 | } | ||
398 | : | ||
399 | rule__ConfigurationScript__Group__0__Impl | ||
400 | rule__ConfigurationScript__Group__1 | ||
401 | ; | ||
402 | finally { | ||
403 | restoreStackSize(stackSize); | ||
404 | } | ||
405 | |||
406 | rule__ConfigurationScript__Group__0__Impl | ||
407 | @init { | ||
408 | int stackSize = keepStackSize(); | ||
409 | } | ||
410 | : | ||
411 | ( | ||
412 | { before(grammarAccess.getConfigurationScriptAccess().getImportsAssignment_0()); } | ||
413 | (rule__ConfigurationScript__ImportsAssignment_0)* | ||
414 | { after(grammarAccess.getConfigurationScriptAccess().getImportsAssignment_0()); } | ||
415 | ) | ||
416 | ; | ||
417 | finally { | ||
418 | restoreStackSize(stackSize); | ||
419 | } | ||
420 | |||
421 | rule__ConfigurationScript__Group__1 | ||
422 | @init { | ||
423 | int stackSize = keepStackSize(); | ||
424 | } | ||
425 | : | ||
426 | rule__ConfigurationScript__Group__1__Impl | ||
427 | ; | ||
428 | finally { | ||
429 | restoreStackSize(stackSize); | ||
430 | } | ||
431 | |||
432 | rule__ConfigurationScript__Group__1__Impl | ||
433 | @init { | ||
434 | int stackSize = keepStackSize(); | ||
435 | } | ||
436 | : | ||
437 | ( | ||
438 | { before(grammarAccess.getConfigurationScriptAccess().getCommandsAssignment_1()); } | ||
439 | (rule__ConfigurationScript__CommandsAssignment_1)* | ||
440 | { after(grammarAccess.getConfigurationScriptAccess().getCommandsAssignment_1()); } | ||
441 | ) | ||
442 | ; | ||
443 | finally { | ||
444 | restoreStackSize(stackSize); | ||
445 | } | ||
446 | |||
447 | |||
448 | rule__EPackageImport__Group__0 | ||
449 | @init { | ||
450 | int stackSize = keepStackSize(); | ||
451 | } | ||
452 | : | ||
453 | rule__EPackageImport__Group__0__Impl | ||
454 | rule__EPackageImport__Group__1 | ||
455 | ; | ||
456 | finally { | ||
457 | restoreStackSize(stackSize); | ||
458 | } | ||
459 | |||
460 | rule__EPackageImport__Group__0__Impl | ||
461 | @init { | ||
462 | int stackSize = keepStackSize(); | ||
463 | } | ||
464 | : | ||
465 | ( | ||
466 | { before(grammarAccess.getEPackageImportAccess().getImportKeyword_0()); } | ||
467 | 'import' | ||
468 | { after(grammarAccess.getEPackageImportAccess().getImportKeyword_0()); } | ||
469 | ) | ||
470 | ; | ||
471 | finally { | ||
472 | restoreStackSize(stackSize); | ||
473 | } | ||
474 | |||
475 | rule__EPackageImport__Group__1 | ||
476 | @init { | ||
477 | int stackSize = keepStackSize(); | ||
478 | } | ||
479 | : | ||
480 | rule__EPackageImport__Group__1__Impl | ||
481 | rule__EPackageImport__Group__2 | ||
482 | ; | ||
483 | finally { | ||
484 | restoreStackSize(stackSize); | ||
485 | } | ||
486 | |||
487 | rule__EPackageImport__Group__1__Impl | ||
488 | @init { | ||
489 | int stackSize = keepStackSize(); | ||
490 | } | ||
491 | : | ||
492 | ( | ||
493 | { before(grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); } | ||
494 | 'epackage' | ||
495 | { after(grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); } | ||
496 | ) | ||
497 | ; | ||
498 | finally { | ||
499 | restoreStackSize(stackSize); | ||
500 | } | ||
501 | |||
502 | rule__EPackageImport__Group__2 | ||
503 | @init { | ||
504 | int stackSize = keepStackSize(); | ||
505 | } | ||
506 | : | ||
507 | rule__EPackageImport__Group__2__Impl | ||
508 | ; | ||
509 | finally { | ||
510 | restoreStackSize(stackSize); | ||
511 | } | ||
512 | |||
513 | rule__EPackageImport__Group__2__Impl | ||
514 | @init { | ||
515 | int stackSize = keepStackSize(); | ||
516 | } | ||
517 | : | ||
518 | ( | ||
519 | { before(grammarAccess.getEPackageImportAccess().getImportedPackageAssignment_2()); } | ||
520 | (rule__EPackageImport__ImportedPackageAssignment_2) | ||
521 | { after(grammarAccess.getEPackageImportAccess().getImportedPackageAssignment_2()); } | ||
522 | ) | ||
523 | ; | ||
524 | finally { | ||
525 | restoreStackSize(stackSize); | ||
526 | } | ||
527 | |||
528 | |||
529 | rule__ViatraImport__Group__0 | ||
530 | @init { | ||
531 | int stackSize = keepStackSize(); | ||
532 | } | ||
533 | : | ||
534 | rule__ViatraImport__Group__0__Impl | ||
535 | rule__ViatraImport__Group__1 | ||
536 | ; | ||
537 | finally { | ||
538 | restoreStackSize(stackSize); | ||
539 | } | ||
540 | |||
541 | rule__ViatraImport__Group__0__Impl | ||
542 | @init { | ||
543 | int stackSize = keepStackSize(); | ||
544 | } | ||
545 | : | ||
546 | ( | ||
547 | { before(grammarAccess.getViatraImportAccess().getImportKeyword_0()); } | ||
548 | 'import' | ||
549 | { after(grammarAccess.getViatraImportAccess().getImportKeyword_0()); } | ||
550 | ) | ||
551 | ; | ||
552 | finally { | ||
553 | restoreStackSize(stackSize); | ||
554 | } | ||
555 | |||
556 | rule__ViatraImport__Group__1 | ||
557 | @init { | ||
558 | int stackSize = keepStackSize(); | ||
559 | } | ||
560 | : | ||
561 | rule__ViatraImport__Group__1__Impl | ||
562 | rule__ViatraImport__Group__2 | ||
563 | ; | ||
564 | finally { | ||
565 | restoreStackSize(stackSize); | ||
566 | } | ||
567 | |||
568 | rule__ViatraImport__Group__1__Impl | ||
569 | @init { | ||
570 | int stackSize = keepStackSize(); | ||
571 | } | ||
572 | : | ||
573 | ( | ||
574 | { before(grammarAccess.getViatraImportAccess().getViatraKeyword_1()); } | ||
575 | 'viatra' | ||
576 | { after(grammarAccess.getViatraImportAccess().getViatraKeyword_1()); } | ||
577 | ) | ||
578 | ; | ||
579 | finally { | ||
580 | restoreStackSize(stackSize); | ||
581 | } | ||
582 | |||
583 | rule__ViatraImport__Group__2 | ||
584 | @init { | ||
585 | int stackSize = keepStackSize(); | ||
586 | } | ||
587 | : | ||
588 | rule__ViatraImport__Group__2__Impl | ||
589 | ; | ||
590 | finally { | ||
591 | restoreStackSize(stackSize); | ||
592 | } | ||
593 | |||
594 | rule__ViatraImport__Group__2__Impl | ||
595 | @init { | ||
596 | int stackSize = keepStackSize(); | ||
597 | } | ||
598 | : | ||
599 | ( | ||
600 | { before(grammarAccess.getViatraImportAccess().getImportedViatraAssignment_2()); } | ||
601 | (rule__ViatraImport__ImportedViatraAssignment_2) | ||
602 | { after(grammarAccess.getViatraImportAccess().getImportedViatraAssignment_2()); } | ||
603 | ) | ||
604 | ; | ||
605 | finally { | ||
606 | restoreStackSize(stackSize); | ||
607 | } | ||
608 | |||
609 | |||
610 | rule__MetamodelSpecification__Group__0 | ||
611 | @init { | ||
612 | int stackSize = keepStackSize(); | ||
613 | } | ||
614 | : | ||
615 | rule__MetamodelSpecification__Group__0__Impl | ||
616 | rule__MetamodelSpecification__Group__1 | ||
617 | ; | ||
618 | finally { | ||
619 | restoreStackSize(stackSize); | ||
620 | } | ||
621 | |||
622 | rule__MetamodelSpecification__Group__0__Impl | ||
623 | @init { | ||
624 | int stackSize = keepStackSize(); | ||
625 | } | ||
626 | : | ||
627 | ( | ||
628 | { before(grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); } | ||
629 | '{' | ||
630 | { after(grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); } | ||
631 | ) | ||
632 | ; | ||
633 | finally { | ||
634 | restoreStackSize(stackSize); | ||
635 | } | ||
636 | |||
637 | rule__MetamodelSpecification__Group__1 | ||
638 | @init { | ||
639 | int stackSize = keepStackSize(); | ||
640 | } | ||
641 | : | ||
642 | rule__MetamodelSpecification__Group__1__Impl | ||
643 | rule__MetamodelSpecification__Group__2 | ||
644 | ; | ||
645 | finally { | ||
646 | restoreStackSize(stackSize); | ||
647 | } | ||
648 | |||
649 | rule__MetamodelSpecification__Group__1__Impl | ||
650 | @init { | ||
651 | int stackSize = keepStackSize(); | ||
652 | } | ||
653 | : | ||
654 | ( | ||
655 | { before(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_1()); } | ||
656 | (rule__MetamodelSpecification__EntriesAssignment_1) | ||
657 | { after(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_1()); } | ||
658 | ) | ||
659 | ; | ||
660 | finally { | ||
661 | restoreStackSize(stackSize); | ||
662 | } | ||
663 | |||
664 | rule__MetamodelSpecification__Group__2 | ||
665 | @init { | ||
666 | int stackSize = keepStackSize(); | ||
667 | } | ||
668 | : | ||
669 | rule__MetamodelSpecification__Group__2__Impl | ||
670 | rule__MetamodelSpecification__Group__3 | ||
671 | ; | ||
672 | finally { | ||
673 | restoreStackSize(stackSize); | ||
674 | } | ||
675 | |||
676 | rule__MetamodelSpecification__Group__2__Impl | ||
677 | @init { | ||
678 | int stackSize = keepStackSize(); | ||
679 | } | ||
680 | : | ||
681 | ( | ||
682 | { before(grammarAccess.getMetamodelSpecificationAccess().getGroup_2()); } | ||
683 | (rule__MetamodelSpecification__Group_2__0)* | ||
684 | { after(grammarAccess.getMetamodelSpecificationAccess().getGroup_2()); } | ||
685 | ) | ||
686 | ; | ||
687 | finally { | ||
688 | restoreStackSize(stackSize); | ||
689 | } | ||
690 | |||
691 | rule__MetamodelSpecification__Group__3 | ||
692 | @init { | ||
693 | int stackSize = keepStackSize(); | ||
694 | } | ||
695 | : | ||
696 | rule__MetamodelSpecification__Group__3__Impl | ||
697 | ; | ||
698 | finally { | ||
699 | restoreStackSize(stackSize); | ||
700 | } | ||
701 | |||
702 | rule__MetamodelSpecification__Group__3__Impl | ||
703 | @init { | ||
704 | int stackSize = keepStackSize(); | ||
705 | } | ||
706 | : | ||
707 | ( | ||
708 | { before(grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); } | ||
709 | '}' | ||
710 | { after(grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); } | ||
711 | ) | ||
712 | ; | ||
713 | finally { | ||
714 | restoreStackSize(stackSize); | ||
715 | } | ||
716 | |||
717 | |||
718 | rule__MetamodelSpecification__Group_2__0 | ||
719 | @init { | ||
720 | int stackSize = keepStackSize(); | ||
721 | } | ||
722 | : | ||
723 | rule__MetamodelSpecification__Group_2__0__Impl | ||
724 | rule__MetamodelSpecification__Group_2__1 | ||
725 | ; | ||
726 | finally { | ||
727 | restoreStackSize(stackSize); | ||
728 | } | ||
729 | |||
730 | rule__MetamodelSpecification__Group_2__0__Impl | ||
731 | @init { | ||
732 | int stackSize = keepStackSize(); | ||
733 | } | ||
734 | : | ||
735 | ( | ||
736 | { before(grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); } | ||
737 | ',' | ||
738 | { after(grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); } | ||
739 | ) | ||
740 | ; | ||
741 | finally { | ||
742 | restoreStackSize(stackSize); | ||
743 | } | ||
744 | |||
745 | rule__MetamodelSpecification__Group_2__1 | ||
746 | @init { | ||
747 | int stackSize = keepStackSize(); | ||
748 | } | ||
749 | : | ||
750 | rule__MetamodelSpecification__Group_2__1__Impl | ||
751 | ; | ||
752 | finally { | ||
753 | restoreStackSize(stackSize); | ||
754 | } | ||
755 | |||
756 | rule__MetamodelSpecification__Group_2__1__Impl | ||
757 | @init { | ||
758 | int stackSize = keepStackSize(); | ||
759 | } | ||
760 | : | ||
761 | ( | ||
762 | { before(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_2_1()); } | ||
763 | (rule__MetamodelSpecification__EntriesAssignment_2_1) | ||
764 | { after(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_2_1()); } | ||
765 | ) | ||
766 | ; | ||
767 | finally { | ||
768 | restoreStackSize(stackSize); | ||
769 | } | ||
770 | |||
771 | |||
772 | rule__AllPackageEntry__Group__0 | ||
773 | @init { | ||
774 | int stackSize = keepStackSize(); | ||
775 | } | ||
776 | : | ||
777 | rule__AllPackageEntry__Group__0__Impl | ||
778 | rule__AllPackageEntry__Group__1 | ||
779 | ; | ||
780 | finally { | ||
781 | restoreStackSize(stackSize); | ||
782 | } | ||
783 | |||
784 | rule__AllPackageEntry__Group__0__Impl | ||
785 | @init { | ||
786 | int stackSize = keepStackSize(); | ||
787 | } | ||
788 | : | ||
789 | ( | ||
790 | { before(grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); } | ||
791 | 'package' | ||
792 | { after(grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); } | ||
793 | ) | ||
794 | ; | ||
795 | finally { | ||
796 | restoreStackSize(stackSize); | ||
797 | } | ||
798 | |||
799 | rule__AllPackageEntry__Group__1 | ||
800 | @init { | ||
801 | int stackSize = keepStackSize(); | ||
802 | } | ||
803 | : | ||
804 | rule__AllPackageEntry__Group__1__Impl | ||
805 | rule__AllPackageEntry__Group__2 | ||
806 | ; | ||
807 | finally { | ||
808 | restoreStackSize(stackSize); | ||
809 | } | ||
810 | |||
811 | rule__AllPackageEntry__Group__1__Impl | ||
812 | @init { | ||
813 | int stackSize = keepStackSize(); | ||
814 | } | ||
815 | : | ||
816 | ( | ||
817 | { before(grammarAccess.getAllPackageEntryAccess().getPackageAssignment_1()); } | ||
818 | (rule__AllPackageEntry__PackageAssignment_1) | ||
819 | { after(grammarAccess.getAllPackageEntryAccess().getPackageAssignment_1()); } | ||
820 | ) | ||
821 | ; | ||
822 | finally { | ||
823 | restoreStackSize(stackSize); | ||
824 | } | ||
825 | |||
826 | rule__AllPackageEntry__Group__2 | ||
827 | @init { | ||
828 | int stackSize = keepStackSize(); | ||
829 | } | ||
830 | : | ||
831 | rule__AllPackageEntry__Group__2__Impl | ||
832 | ; | ||
833 | finally { | ||
834 | restoreStackSize(stackSize); | ||
835 | } | ||
836 | |||
837 | rule__AllPackageEntry__Group__2__Impl | ||
838 | @init { | ||
839 | int stackSize = keepStackSize(); | ||
840 | } | ||
841 | : | ||
842 | ( | ||
843 | { before(grammarAccess.getAllPackageEntryAccess().getGroup_2()); } | ||
844 | (rule__AllPackageEntry__Group_2__0)? | ||
845 | { after(grammarAccess.getAllPackageEntryAccess().getGroup_2()); } | ||
846 | ) | ||
847 | ; | ||
848 | finally { | ||
849 | restoreStackSize(stackSize); | ||
850 | } | ||
851 | |||
852 | |||
853 | rule__AllPackageEntry__Group_2__0 | ||
854 | @init { | ||
855 | int stackSize = keepStackSize(); | ||
856 | } | ||
857 | : | ||
858 | rule__AllPackageEntry__Group_2__0__Impl | ||
859 | rule__AllPackageEntry__Group_2__1 | ||
860 | ; | ||
861 | finally { | ||
862 | restoreStackSize(stackSize); | ||
863 | } | ||
864 | |||
865 | rule__AllPackageEntry__Group_2__0__Impl | ||
866 | @init { | ||
867 | int stackSize = keepStackSize(); | ||
868 | } | ||
869 | : | ||
870 | ( | ||
871 | { before(grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); } | ||
872 | 'excluding' | ||
873 | { after(grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); } | ||
874 | ) | ||
875 | ; | ||
876 | finally { | ||
877 | restoreStackSize(stackSize); | ||
878 | } | ||
879 | |||
880 | rule__AllPackageEntry__Group_2__1 | ||
881 | @init { | ||
882 | int stackSize = keepStackSize(); | ||
883 | } | ||
884 | : | ||
885 | rule__AllPackageEntry__Group_2__1__Impl | ||
886 | rule__AllPackageEntry__Group_2__2 | ||
887 | ; | ||
888 | finally { | ||
889 | restoreStackSize(stackSize); | ||
890 | } | ||
891 | |||
892 | rule__AllPackageEntry__Group_2__1__Impl | ||
893 | @init { | ||
894 | int stackSize = keepStackSize(); | ||
895 | } | ||
896 | : | ||
897 | ( | ||
898 | { before(grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); } | ||
899 | '{' | ||
900 | { after(grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); } | ||
901 | ) | ||
902 | ; | ||
903 | finally { | ||
904 | restoreStackSize(stackSize); | ||
905 | } | ||
906 | |||
907 | rule__AllPackageEntry__Group_2__2 | ||
908 | @init { | ||
909 | int stackSize = keepStackSize(); | ||
910 | } | ||
911 | : | ||
912 | rule__AllPackageEntry__Group_2__2__Impl | ||
913 | rule__AllPackageEntry__Group_2__3 | ||
914 | ; | ||
915 | finally { | ||
916 | restoreStackSize(stackSize); | ||
917 | } | ||
918 | |||
919 | rule__AllPackageEntry__Group_2__2__Impl | ||
920 | @init { | ||
921 | int stackSize = keepStackSize(); | ||
922 | } | ||
923 | : | ||
924 | ( | ||
925 | { before(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_2()); } | ||
926 | (rule__AllPackageEntry__ExclusionAssignment_2_2) | ||
927 | { after(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_2()); } | ||
928 | ) | ||
929 | ; | ||
930 | finally { | ||
931 | restoreStackSize(stackSize); | ||
932 | } | ||
933 | |||
934 | rule__AllPackageEntry__Group_2__3 | ||
935 | @init { | ||
936 | int stackSize = keepStackSize(); | ||
937 | } | ||
938 | : | ||
939 | rule__AllPackageEntry__Group_2__3__Impl | ||
940 | rule__AllPackageEntry__Group_2__4 | ||
941 | ; | ||
942 | finally { | ||
943 | restoreStackSize(stackSize); | ||
944 | } | ||
945 | |||
946 | rule__AllPackageEntry__Group_2__3__Impl | ||
947 | @init { | ||
948 | int stackSize = keepStackSize(); | ||
949 | } | ||
950 | : | ||
951 | ( | ||
952 | { before(grammarAccess.getAllPackageEntryAccess().getGroup_2_3()); } | ||
953 | (rule__AllPackageEntry__Group_2_3__0)* | ||
954 | { after(grammarAccess.getAllPackageEntryAccess().getGroup_2_3()); } | ||
955 | ) | ||
956 | ; | ||
957 | finally { | ||
958 | restoreStackSize(stackSize); | ||
959 | } | ||
960 | |||
961 | rule__AllPackageEntry__Group_2__4 | ||
962 | @init { | ||
963 | int stackSize = keepStackSize(); | ||
964 | } | ||
965 | : | ||
966 | rule__AllPackageEntry__Group_2__4__Impl | ||
967 | ; | ||
968 | finally { | ||
969 | restoreStackSize(stackSize); | ||
970 | } | ||
971 | |||
972 | rule__AllPackageEntry__Group_2__4__Impl | ||
973 | @init { | ||
974 | int stackSize = keepStackSize(); | ||
975 | } | ||
976 | : | ||
977 | ( | ||
978 | { before(grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); } | ||
979 | '}' | ||
980 | { after(grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); } | ||
981 | ) | ||
982 | ; | ||
983 | finally { | ||
984 | restoreStackSize(stackSize); | ||
985 | } | ||
986 | |||
987 | |||
988 | rule__AllPackageEntry__Group_2_3__0 | ||
989 | @init { | ||
990 | int stackSize = keepStackSize(); | ||
991 | } | ||
992 | : | ||
993 | rule__AllPackageEntry__Group_2_3__0__Impl | ||
994 | rule__AllPackageEntry__Group_2_3__1 | ||
995 | ; | ||
996 | finally { | ||
997 | restoreStackSize(stackSize); | ||
998 | } | ||
999 | |||
1000 | rule__AllPackageEntry__Group_2_3__0__Impl | ||
1001 | @init { | ||
1002 | int stackSize = keepStackSize(); | ||
1003 | } | ||
1004 | : | ||
1005 | ( | ||
1006 | { before(grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); } | ||
1007 | ',' | ||
1008 | { after(grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); } | ||
1009 | ) | ||
1010 | ; | ||
1011 | finally { | ||
1012 | restoreStackSize(stackSize); | ||
1013 | } | ||
1014 | |||
1015 | rule__AllPackageEntry__Group_2_3__1 | ||
1016 | @init { | ||
1017 | int stackSize = keepStackSize(); | ||
1018 | } | ||
1019 | : | ||
1020 | rule__AllPackageEntry__Group_2_3__1__Impl | ||
1021 | ; | ||
1022 | finally { | ||
1023 | restoreStackSize(stackSize); | ||
1024 | } | ||
1025 | |||
1026 | rule__AllPackageEntry__Group_2_3__1__Impl | ||
1027 | @init { | ||
1028 | int stackSize = keepStackSize(); | ||
1029 | } | ||
1030 | : | ||
1031 | ( | ||
1032 | { before(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_3_1()); } | ||
1033 | (rule__AllPackageEntry__ExclusionAssignment_2_3_1) | ||
1034 | { after(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_3_1()); } | ||
1035 | ) | ||
1036 | ; | ||
1037 | finally { | ||
1038 | restoreStackSize(stackSize); | ||
1039 | } | ||
1040 | |||
1041 | |||
1042 | rule__MetamodelElement__Group__0 | ||
1043 | @init { | ||
1044 | int stackSize = keepStackSize(); | ||
1045 | } | ||
1046 | : | ||
1047 | rule__MetamodelElement__Group__0__Impl | ||
1048 | rule__MetamodelElement__Group__1 | ||
1049 | ; | ||
1050 | finally { | ||
1051 | restoreStackSize(stackSize); | ||
1052 | } | ||
1053 | |||
1054 | rule__MetamodelElement__Group__0__Impl | ||
1055 | @init { | ||
1056 | int stackSize = keepStackSize(); | ||
1057 | } | ||
1058 | : | ||
1059 | ( | ||
1060 | { before(grammarAccess.getMetamodelElementAccess().getGroup_0()); } | ||
1061 | (rule__MetamodelElement__Group_0__0)? | ||
1062 | { after(grammarAccess.getMetamodelElementAccess().getGroup_0()); } | ||
1063 | ) | ||
1064 | ; | ||
1065 | finally { | ||
1066 | restoreStackSize(stackSize); | ||
1067 | } | ||
1068 | |||
1069 | rule__MetamodelElement__Group__1 | ||
1070 | @init { | ||
1071 | int stackSize = keepStackSize(); | ||
1072 | } | ||
1073 | : | ||
1074 | rule__MetamodelElement__Group__1__Impl | ||
1075 | rule__MetamodelElement__Group__2 | ||
1076 | ; | ||
1077 | finally { | ||
1078 | restoreStackSize(stackSize); | ||
1079 | } | ||
1080 | |||
1081 | rule__MetamodelElement__Group__1__Impl | ||
1082 | @init { | ||
1083 | int stackSize = keepStackSize(); | ||
1084 | } | ||
1085 | : | ||
1086 | ( | ||
1087 | { before(grammarAccess.getMetamodelElementAccess().getClassifierAssignment_1()); } | ||
1088 | (rule__MetamodelElement__ClassifierAssignment_1) | ||
1089 | { after(grammarAccess.getMetamodelElementAccess().getClassifierAssignment_1()); } | ||
1090 | ) | ||
1091 | ; | ||
1092 | finally { | ||
1093 | restoreStackSize(stackSize); | ||
1094 | } | ||
1095 | |||
1096 | rule__MetamodelElement__Group__2 | ||
1097 | @init { | ||
1098 | int stackSize = keepStackSize(); | ||
1099 | } | ||
1100 | : | ||
1101 | rule__MetamodelElement__Group__2__Impl | ||
1102 | ; | ||
1103 | finally { | ||
1104 | restoreStackSize(stackSize); | ||
1105 | } | ||
1106 | |||
1107 | rule__MetamodelElement__Group__2__Impl | ||
1108 | @init { | ||
1109 | int stackSize = keepStackSize(); | ||
1110 | } | ||
1111 | : | ||
1112 | ( | ||
1113 | { before(grammarAccess.getMetamodelElementAccess().getGroup_2()); } | ||
1114 | (rule__MetamodelElement__Group_2__0)? | ||
1115 | { after(grammarAccess.getMetamodelElementAccess().getGroup_2()); } | ||
1116 | ) | ||
1117 | ; | ||
1118 | finally { | ||
1119 | restoreStackSize(stackSize); | ||
1120 | } | ||
1121 | |||
1122 | |||
1123 | rule__MetamodelElement__Group_0__0 | ||
1124 | @init { | ||
1125 | int stackSize = keepStackSize(); | ||
1126 | } | ||
1127 | : | ||
1128 | rule__MetamodelElement__Group_0__0__Impl | ||
1129 | rule__MetamodelElement__Group_0__1 | ||
1130 | ; | ||
1131 | finally { | ||
1132 | restoreStackSize(stackSize); | ||
1133 | } | ||
1134 | |||
1135 | rule__MetamodelElement__Group_0__0__Impl | ||
1136 | @init { | ||
1137 | int stackSize = keepStackSize(); | ||
1138 | } | ||
1139 | : | ||
1140 | ( | ||
1141 | { before(grammarAccess.getMetamodelElementAccess().getPackageAssignment_0_0()); } | ||
1142 | (rule__MetamodelElement__PackageAssignment_0_0) | ||
1143 | { after(grammarAccess.getMetamodelElementAccess().getPackageAssignment_0_0()); } | ||
1144 | ) | ||
1145 | ; | ||
1146 | finally { | ||
1147 | restoreStackSize(stackSize); | ||
1148 | } | ||
1149 | |||
1150 | rule__MetamodelElement__Group_0__1 | ||
1151 | @init { | ||
1152 | int stackSize = keepStackSize(); | ||
1153 | } | ||
1154 | : | ||
1155 | rule__MetamodelElement__Group_0__1__Impl | ||
1156 | ; | ||
1157 | finally { | ||
1158 | restoreStackSize(stackSize); | ||
1159 | } | ||
1160 | |||
1161 | rule__MetamodelElement__Group_0__1__Impl | ||
1162 | @init { | ||
1163 | int stackSize = keepStackSize(); | ||
1164 | } | ||
1165 | : | ||
1166 | ( | ||
1167 | { before(grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); } | ||
1168 | '::' | ||
1169 | { after(grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); } | ||
1170 | ) | ||
1171 | ; | ||
1172 | finally { | ||
1173 | restoreStackSize(stackSize); | ||
1174 | } | ||
1175 | |||
1176 | |||
1177 | rule__MetamodelElement__Group_2__0 | ||
1178 | @init { | ||
1179 | int stackSize = keepStackSize(); | ||
1180 | } | ||
1181 | : | ||
1182 | rule__MetamodelElement__Group_2__0__Impl | ||
1183 | rule__MetamodelElement__Group_2__1 | ||
1184 | ; | ||
1185 | finally { | ||
1186 | restoreStackSize(stackSize); | ||
1187 | } | ||
1188 | |||
1189 | rule__MetamodelElement__Group_2__0__Impl | ||
1190 | @init { | ||
1191 | int stackSize = keepStackSize(); | ||
1192 | } | ||
1193 | : | ||
1194 | ( | ||
1195 | { before(grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); } | ||
1196 | '.' | ||
1197 | { after(grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); } | ||
1198 | ) | ||
1199 | ; | ||
1200 | finally { | ||
1201 | restoreStackSize(stackSize); | ||
1202 | } | ||
1203 | |||
1204 | rule__MetamodelElement__Group_2__1 | ||
1205 | @init { | ||
1206 | int stackSize = keepStackSize(); | ||
1207 | } | ||
1208 | : | ||
1209 | rule__MetamodelElement__Group_2__1__Impl | ||
1210 | ; | ||
1211 | finally { | ||
1212 | restoreStackSize(stackSize); | ||
1213 | } | ||
1214 | |||
1215 | rule__MetamodelElement__Group_2__1__Impl | ||
1216 | @init { | ||
1217 | int stackSize = keepStackSize(); | ||
1218 | } | ||
1219 | : | ||
1220 | ( | ||
1221 | { before(grammarAccess.getMetamodelElementAccess().getFeatureAssignment_2_1()); } | ||
1222 | (rule__MetamodelElement__FeatureAssignment_2_1) | ||
1223 | { after(grammarAccess.getMetamodelElementAccess().getFeatureAssignment_2_1()); } | ||
1224 | ) | ||
1225 | ; | ||
1226 | finally { | ||
1227 | restoreStackSize(stackSize); | ||
1228 | } | ||
1229 | |||
1230 | |||
1231 | rule__MetamodelDeclaration__Group__0 | ||
1232 | @init { | ||
1233 | int stackSize = keepStackSize(); | ||
1234 | } | ||
1235 | : | ||
1236 | rule__MetamodelDeclaration__Group__0__Impl | ||
1237 | rule__MetamodelDeclaration__Group__1 | ||
1238 | ; | ||
1239 | finally { | ||
1240 | restoreStackSize(stackSize); | ||
1241 | } | ||
1242 | |||
1243 | rule__MetamodelDeclaration__Group__0__Impl | ||
1244 | @init { | ||
1245 | int stackSize = keepStackSize(); | ||
1246 | } | ||
1247 | : | ||
1248 | ( | ||
1249 | { before(grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); } | ||
1250 | 'metamodel' | ||
1251 | { after(grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); } | ||
1252 | ) | ||
1253 | ; | ||
1254 | finally { | ||
1255 | restoreStackSize(stackSize); | ||
1256 | } | ||
1257 | |||
1258 | rule__MetamodelDeclaration__Group__1 | ||
1259 | @init { | ||
1260 | int stackSize = keepStackSize(); | ||
1261 | } | ||
1262 | : | ||
1263 | rule__MetamodelDeclaration__Group__1__Impl | ||
1264 | rule__MetamodelDeclaration__Group__2 | ||
1265 | ; | ||
1266 | finally { | ||
1267 | restoreStackSize(stackSize); | ||
1268 | } | ||
1269 | |||
1270 | rule__MetamodelDeclaration__Group__1__Impl | ||
1271 | @init { | ||
1272 | int stackSize = keepStackSize(); | ||
1273 | } | ||
1274 | : | ||
1275 | ( | ||
1276 | { before(grammarAccess.getMetamodelDeclarationAccess().getNameAssignment_1()); } | ||
1277 | (rule__MetamodelDeclaration__NameAssignment_1) | ||
1278 | { after(grammarAccess.getMetamodelDeclarationAccess().getNameAssignment_1()); } | ||
1279 | ) | ||
1280 | ; | ||
1281 | finally { | ||
1282 | restoreStackSize(stackSize); | ||
1283 | } | ||
1284 | |||
1285 | rule__MetamodelDeclaration__Group__2 | ||
1286 | @init { | ||
1287 | int stackSize = keepStackSize(); | ||
1288 | } | ||
1289 | : | ||
1290 | rule__MetamodelDeclaration__Group__2__Impl | ||
1291 | ; | ||
1292 | finally { | ||
1293 | restoreStackSize(stackSize); | ||
1294 | } | ||
1295 | |||
1296 | rule__MetamodelDeclaration__Group__2__Impl | ||
1297 | @init { | ||
1298 | int stackSize = keepStackSize(); | ||
1299 | } | ||
1300 | : | ||
1301 | ( | ||
1302 | { before(grammarAccess.getMetamodelDeclarationAccess().getSpecificationAssignment_2()); } | ||
1303 | (rule__MetamodelDeclaration__SpecificationAssignment_2) | ||
1304 | { after(grammarAccess.getMetamodelDeclarationAccess().getSpecificationAssignment_2()); } | ||
1305 | ) | ||
1306 | ; | ||
1307 | finally { | ||
1308 | restoreStackSize(stackSize); | ||
1309 | } | ||
1310 | |||
1311 | |||
1312 | rule__ConfigurationScript__ImportsAssignment_0 | ||
1313 | @init { | ||
1314 | int stackSize = keepStackSize(); | ||
1315 | } | ||
1316 | : | ||
1317 | ( | ||
1318 | { before(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); } | ||
1319 | ruleImport | ||
1320 | { after(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); } | ||
1321 | ) | ||
1322 | ; | ||
1323 | finally { | ||
1324 | restoreStackSize(stackSize); | ||
1325 | } | ||
1326 | |||
1327 | rule__ConfigurationScript__CommandsAssignment_1 | ||
1328 | @init { | ||
1329 | int stackSize = keepStackSize(); | ||
1330 | } | ||
1331 | : | ||
1332 | ( | ||
1333 | { before(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); } | ||
1334 | ruleCommand | ||
1335 | { after(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); } | ||
1336 | ) | ||
1337 | ; | ||
1338 | finally { | ||
1339 | restoreStackSize(stackSize); | ||
1340 | } | ||
1341 | |||
1342 | rule__EPackageImport__ImportedPackageAssignment_2 | ||
1343 | @init { | ||
1344 | int stackSize = keepStackSize(); | ||
1345 | } | ||
1346 | : | ||
1347 | ( | ||
1348 | { before(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); } | ||
1349 | ( | ||
1350 | { before(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1()); } | ||
1351 | RULE_STRING | ||
1352 | { after(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1()); } | ||
1353 | ) | ||
1354 | { after(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); } | ||
1355 | ) | ||
1356 | ; | ||
1357 | finally { | ||
1358 | restoreStackSize(stackSize); | ||
1359 | } | ||
1360 | |||
1361 | rule__ViatraImport__ImportedViatraAssignment_2 | ||
1362 | @init { | ||
1363 | int stackSize = keepStackSize(); | ||
1364 | } | ||
1365 | : | ||
1366 | ( | ||
1367 | { before(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); } | ||
1368 | ( | ||
1369 | { before(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1()); } | ||
1370 | RULE_STRING | ||
1371 | { after(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1()); } | ||
1372 | ) | ||
1373 | { after(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); } | ||
1374 | ) | ||
1375 | ; | ||
1376 | finally { | ||
1377 | restoreStackSize(stackSize); | ||
1378 | } | ||
1379 | |||
1380 | rule__MetamodelSpecification__EntriesAssignment_1 | ||
1381 | @init { | ||
1382 | int stackSize = keepStackSize(); | ||
1383 | } | ||
1384 | : | ||
1385 | ( | ||
1386 | { before(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); } | ||
1387 | ruleMetamodelEntry | ||
1388 | { after(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); } | ||
1389 | ) | ||
1390 | ; | ||
1391 | finally { | ||
1392 | restoreStackSize(stackSize); | ||
1393 | } | ||
1394 | |||
1395 | rule__MetamodelSpecification__EntriesAssignment_2_1 | ||
1396 | @init { | ||
1397 | int stackSize = keepStackSize(); | ||
1398 | } | ||
1399 | : | ||
1400 | ( | ||
1401 | { before(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); } | ||
1402 | ruleMetamodelEntry | ||
1403 | { after(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); } | ||
1404 | ) | ||
1405 | ; | ||
1406 | finally { | ||
1407 | restoreStackSize(stackSize); | ||
1408 | } | ||
1409 | |||
1410 | rule__AllPackageEntry__PackageAssignment_1 | ||
1411 | @init { | ||
1412 | int stackSize = keepStackSize(); | ||
1413 | } | ||
1414 | : | ||
1415 | ( | ||
1416 | { before(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); } | ||
1417 | ( | ||
1418 | { before(grammarAccess.getAllPackageEntryAccess().getPackageEPackageIDTerminalRuleCall_1_0_1()); } | ||
1419 | RULE_ID | ||
1420 | { after(grammarAccess.getAllPackageEntryAccess().getPackageEPackageIDTerminalRuleCall_1_0_1()); } | ||
1421 | ) | ||
1422 | { after(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); } | ||
1423 | ) | ||
1424 | ; | ||
1425 | finally { | ||
1426 | restoreStackSize(stackSize); | ||
1427 | } | ||
1428 | |||
1429 | rule__AllPackageEntry__ExclusionAssignment_2_2 | ||
1430 | @init { | ||
1431 | int stackSize = keepStackSize(); | ||
1432 | } | ||
1433 | : | ||
1434 | ( | ||
1435 | { before(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); } | ||
1436 | ruleMetamodelElement | ||
1437 | { after(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); } | ||
1438 | ) | ||
1439 | ; | ||
1440 | finally { | ||
1441 | restoreStackSize(stackSize); | ||
1442 | } | ||
1443 | |||
1444 | rule__AllPackageEntry__ExclusionAssignment_2_3_1 | ||
1445 | @init { | ||
1446 | int stackSize = keepStackSize(); | ||
1447 | } | ||
1448 | : | ||
1449 | ( | ||
1450 | { before(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); } | ||
1451 | ruleMetamodelElement | ||
1452 | { after(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); } | ||
1453 | ) | ||
1454 | ; | ||
1455 | finally { | ||
1456 | restoreStackSize(stackSize); | ||
1457 | } | ||
1458 | |||
1459 | rule__MetamodelElement__PackageAssignment_0_0 | ||
1460 | @init { | ||
1461 | int stackSize = keepStackSize(); | ||
1462 | } | ||
1463 | : | ||
1464 | ( | ||
1465 | { before(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); } | ||
1466 | ( | ||
1467 | { before(grammarAccess.getMetamodelElementAccess().getPackageEPackageIDTerminalRuleCall_0_0_0_1()); } | ||
1468 | RULE_ID | ||
1469 | { after(grammarAccess.getMetamodelElementAccess().getPackageEPackageIDTerminalRuleCall_0_0_0_1()); } | ||
1470 | ) | ||
1471 | { after(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); } | ||
1472 | ) | ||
1473 | ; | ||
1474 | finally { | ||
1475 | restoreStackSize(stackSize); | ||
1476 | } | ||
1477 | |||
1478 | rule__MetamodelElement__ClassifierAssignment_1 | ||
1479 | @init { | ||
1480 | int stackSize = keepStackSize(); | ||
1481 | } | ||
1482 | : | ||
1483 | ( | ||
1484 | { before(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); } | ||
1485 | ( | ||
1486 | { before(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierIDTerminalRuleCall_1_0_1()); } | ||
1487 | RULE_ID | ||
1488 | { after(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierIDTerminalRuleCall_1_0_1()); } | ||
1489 | ) | ||
1490 | { after(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); } | ||
1491 | ) | ||
1492 | ; | ||
1493 | finally { | ||
1494 | restoreStackSize(stackSize); | ||
1495 | } | ||
1496 | |||
1497 | rule__MetamodelElement__FeatureAssignment_2_1 | ||
1498 | @init { | ||
1499 | int stackSize = keepStackSize(); | ||
1500 | } | ||
1501 | : | ||
1502 | ( | ||
1503 | { before(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); } | ||
1504 | ( | ||
1505 | { before(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementIDTerminalRuleCall_2_1_0_1()); } | ||
1506 | RULE_ID | ||
1507 | { after(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementIDTerminalRuleCall_2_1_0_1()); } | ||
1508 | ) | ||
1509 | { after(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); } | ||
1510 | ) | ||
1511 | ; | ||
1512 | finally { | ||
1513 | restoreStackSize(stackSize); | ||
1514 | } | ||
1515 | |||
1516 | rule__MetamodelDeclaration__NameAssignment_1 | ||
1517 | @init { | ||
1518 | int stackSize = keepStackSize(); | ||
1519 | } | ||
1520 | : | ||
1521 | ( | ||
1522 | { before(grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); } | ||
1523 | RULE_ID | ||
1524 | { after(grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); } | ||
1525 | ) | ||
1526 | ; | ||
1527 | finally { | ||
1528 | restoreStackSize(stackSize); | ||
1529 | } | ||
1530 | |||
1531 | rule__MetamodelDeclaration__SpecificationAssignment_2 | ||
1532 | @init { | ||
1533 | int stackSize = keepStackSize(); | ||
1534 | } | ||
1535 | : | ||
1536 | ( | ||
1537 | { before(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); } | ||
1538 | ruleMetamodelSpecification | ||
1539 | { after(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); } | ||
1540 | ) | ||
1541 | ; | ||
1542 | finally { | ||
1543 | restoreStackSize(stackSize); | ||
1544 | } | ||
1545 | |||
1546 | rule__MetamodelReference__ReferredAssignment | ||
1547 | @init { | ||
1548 | int stackSize = keepStackSize(); | ||
1549 | } | ||
1550 | : | ||
1551 | ( | ||
1552 | { before(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); } | ||
1553 | ( | ||
1554 | { before(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationIDTerminalRuleCall_0_1()); } | ||
1555 | RULE_ID | ||
1556 | { after(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationIDTerminalRuleCall_0_1()); } | ||
1557 | ) | ||
1558 | { after(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); } | ||
1559 | ) | ||
1560 | ; | ||
1561 | finally { | ||
1562 | restoreStackSize(stackSize); | ||
1563 | } | ||
1564 | |||
1565 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
1566 | |||
1567 | RULE_INT : ('0'..'9')+; | ||
1568 | |||
1569 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
1570 | |||
1571 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
1572 | |||
1573 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
1574 | |||
1575 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
1576 | |||
1577 | RULE_ANY_OTHER : .; | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfiguration.tokens b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfiguration.tokens new file mode 100644 index 00000000..5f3898b3 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfiguration.tokens | |||
@@ -0,0 +1,29 @@ | |||
1 | ','=16 | ||
2 | '.'=20 | ||
3 | '::'=19 | ||
4 | 'epackage'=12 | ||
5 | 'excluding'=18 | ||
6 | 'import'=11 | ||
7 | 'metamodel'=21 | ||
8 | 'package'=17 | ||
9 | 'viatra'=13 | ||
10 | '{'=14 | ||
11 | '}'=15 | ||
12 | RULE_ANY_OTHER=10 | ||
13 | RULE_ID=5 | ||
14 | RULE_INT=6 | ||
15 | RULE_ML_COMMENT=7 | ||
16 | RULE_SL_COMMENT=8 | ||
17 | RULE_STRING=4 | ||
18 | RULE_WS=9 | ||
19 | T__11=11 | ||
20 | T__12=12 | ||
21 | T__13=13 | ||
22 | T__14=14 | ||
23 | T__15=15 | ||
24 | T__16=16 | ||
25 | T__17=17 | ||
26 | T__18=18 | ||
27 | T__19=19 | ||
28 | T__20=20 | ||
29 | T__21=21 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfigurationLexer.java b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfigurationLexer.java new file mode 100644 index 00000000..3f93249c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfigurationLexer.java | |||
@@ -0,0 +1,1108 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal; | ||
2 | |||
3 | // Hack: Use our own Lexer superclass by means of import. | ||
4 | // Currently there is no other way to specify the superclass for the lexer. | ||
5 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; | ||
6 | |||
7 | |||
8 | import org.antlr.runtime.*; | ||
9 | import java.util.Stack; | ||
10 | import java.util.List; | ||
11 | import java.util.ArrayList; | ||
12 | |||
13 | @SuppressWarnings("all") | ||
14 | public class InternalApplicationConfigurationLexer extends Lexer { | ||
15 | public static final int RULE_STRING=4; | ||
16 | public static final int RULE_SL_COMMENT=8; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__16=16; | ||
20 | public static final int T__17=17; | ||
21 | public static final int T__18=18; | ||
22 | public static final int T__11=11; | ||
23 | public static final int T__12=12; | ||
24 | public static final int T__13=13; | ||
25 | public static final int T__14=14; | ||
26 | public static final int EOF=-1; | ||
27 | public static final int RULE_ID=5; | ||
28 | public static final int RULE_WS=9; | ||
29 | public static final int RULE_ANY_OTHER=10; | ||
30 | public static final int RULE_INT=6; | ||
31 | public static final int RULE_ML_COMMENT=7; | ||
32 | public static final int T__20=20; | ||
33 | public static final int T__21=21; | ||
34 | |||
35 | // delegates | ||
36 | // delegators | ||
37 | |||
38 | public InternalApplicationConfigurationLexer() {;} | ||
39 | public InternalApplicationConfigurationLexer(CharStream input) { | ||
40 | this(input, new RecognizerSharedState()); | ||
41 | } | ||
42 | public InternalApplicationConfigurationLexer(CharStream input, RecognizerSharedState state) { | ||
43 | super(input,state); | ||
44 | |||
45 | } | ||
46 | public String getGrammarFileName() { return "InternalApplicationConfiguration.g"; } | ||
47 | |||
48 | // $ANTLR start "T__11" | ||
49 | public final void mT__11() throws RecognitionException { | ||
50 | try { | ||
51 | int _type = T__11; | ||
52 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
53 | // InternalApplicationConfiguration.g:11:7: ( 'import' ) | ||
54 | // InternalApplicationConfiguration.g:11:9: 'import' | ||
55 | { | ||
56 | match("import"); | ||
57 | |||
58 | |||
59 | } | ||
60 | |||
61 | state.type = _type; | ||
62 | state.channel = _channel; | ||
63 | } | ||
64 | finally { | ||
65 | } | ||
66 | } | ||
67 | // $ANTLR end "T__11" | ||
68 | |||
69 | // $ANTLR start "T__12" | ||
70 | public final void mT__12() throws RecognitionException { | ||
71 | try { | ||
72 | int _type = T__12; | ||
73 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
74 | // InternalApplicationConfiguration.g:12:7: ( 'epackage' ) | ||
75 | // InternalApplicationConfiguration.g:12:9: 'epackage' | ||
76 | { | ||
77 | match("epackage"); | ||
78 | |||
79 | |||
80 | } | ||
81 | |||
82 | state.type = _type; | ||
83 | state.channel = _channel; | ||
84 | } | ||
85 | finally { | ||
86 | } | ||
87 | } | ||
88 | // $ANTLR end "T__12" | ||
89 | |||
90 | // $ANTLR start "T__13" | ||
91 | public final void mT__13() throws RecognitionException { | ||
92 | try { | ||
93 | int _type = T__13; | ||
94 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
95 | // InternalApplicationConfiguration.g:13:7: ( 'viatra' ) | ||
96 | // InternalApplicationConfiguration.g:13:9: 'viatra' | ||
97 | { | ||
98 | match("viatra"); | ||
99 | |||
100 | |||
101 | } | ||
102 | |||
103 | state.type = _type; | ||
104 | state.channel = _channel; | ||
105 | } | ||
106 | finally { | ||
107 | } | ||
108 | } | ||
109 | // $ANTLR end "T__13" | ||
110 | |||
111 | // $ANTLR start "T__14" | ||
112 | public final void mT__14() throws RecognitionException { | ||
113 | try { | ||
114 | int _type = T__14; | ||
115 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
116 | // InternalApplicationConfiguration.g:14:7: ( '{' ) | ||
117 | // InternalApplicationConfiguration.g:14:9: '{' | ||
118 | { | ||
119 | match('{'); | ||
120 | |||
121 | } | ||
122 | |||
123 | state.type = _type; | ||
124 | state.channel = _channel; | ||
125 | } | ||
126 | finally { | ||
127 | } | ||
128 | } | ||
129 | // $ANTLR end "T__14" | ||
130 | |||
131 | // $ANTLR start "T__15" | ||
132 | public final void mT__15() throws RecognitionException { | ||
133 | try { | ||
134 | int _type = T__15; | ||
135 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
136 | // InternalApplicationConfiguration.g:15:7: ( '}' ) | ||
137 | // InternalApplicationConfiguration.g:15:9: '}' | ||
138 | { | ||
139 | match('}'); | ||
140 | |||
141 | } | ||
142 | |||
143 | state.type = _type; | ||
144 | state.channel = _channel; | ||
145 | } | ||
146 | finally { | ||
147 | } | ||
148 | } | ||
149 | // $ANTLR end "T__15" | ||
150 | |||
151 | // $ANTLR start "T__16" | ||
152 | public final void mT__16() throws RecognitionException { | ||
153 | try { | ||
154 | int _type = T__16; | ||
155 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
156 | // InternalApplicationConfiguration.g:16:7: ( ',' ) | ||
157 | // InternalApplicationConfiguration.g:16:9: ',' | ||
158 | { | ||
159 | match(','); | ||
160 | |||
161 | } | ||
162 | |||
163 | state.type = _type; | ||
164 | state.channel = _channel; | ||
165 | } | ||
166 | finally { | ||
167 | } | ||
168 | } | ||
169 | // $ANTLR end "T__16" | ||
170 | |||
171 | // $ANTLR start "T__17" | ||
172 | public final void mT__17() throws RecognitionException { | ||
173 | try { | ||
174 | int _type = T__17; | ||
175 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
176 | // InternalApplicationConfiguration.g:17:7: ( 'package' ) | ||
177 | // InternalApplicationConfiguration.g:17:9: 'package' | ||
178 | { | ||
179 | match("package"); | ||
180 | |||
181 | |||
182 | } | ||
183 | |||
184 | state.type = _type; | ||
185 | state.channel = _channel; | ||
186 | } | ||
187 | finally { | ||
188 | } | ||
189 | } | ||
190 | // $ANTLR end "T__17" | ||
191 | |||
192 | // $ANTLR start "T__18" | ||
193 | public final void mT__18() throws RecognitionException { | ||
194 | try { | ||
195 | int _type = T__18; | ||
196 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
197 | // InternalApplicationConfiguration.g:18:7: ( 'excluding' ) | ||
198 | // InternalApplicationConfiguration.g:18:9: 'excluding' | ||
199 | { | ||
200 | match("excluding"); | ||
201 | |||
202 | |||
203 | } | ||
204 | |||
205 | state.type = _type; | ||
206 | state.channel = _channel; | ||
207 | } | ||
208 | finally { | ||
209 | } | ||
210 | } | ||
211 | // $ANTLR end "T__18" | ||
212 | |||
213 | // $ANTLR start "T__19" | ||
214 | public final void mT__19() throws RecognitionException { | ||
215 | try { | ||
216 | int _type = T__19; | ||
217 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
218 | // InternalApplicationConfiguration.g:19:7: ( '::' ) | ||
219 | // InternalApplicationConfiguration.g:19:9: '::' | ||
220 | { | ||
221 | match("::"); | ||
222 | |||
223 | |||
224 | } | ||
225 | |||
226 | state.type = _type; | ||
227 | state.channel = _channel; | ||
228 | } | ||
229 | finally { | ||
230 | } | ||
231 | } | ||
232 | // $ANTLR end "T__19" | ||
233 | |||
234 | // $ANTLR start "T__20" | ||
235 | public final void mT__20() throws RecognitionException { | ||
236 | try { | ||
237 | int _type = T__20; | ||
238 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
239 | // InternalApplicationConfiguration.g:20:7: ( '.' ) | ||
240 | // InternalApplicationConfiguration.g:20:9: '.' | ||
241 | { | ||
242 | match('.'); | ||
243 | |||
244 | } | ||
245 | |||
246 | state.type = _type; | ||
247 | state.channel = _channel; | ||
248 | } | ||
249 | finally { | ||
250 | } | ||
251 | } | ||
252 | // $ANTLR end "T__20" | ||
253 | |||
254 | // $ANTLR start "T__21" | ||
255 | public final void mT__21() throws RecognitionException { | ||
256 | try { | ||
257 | int _type = T__21; | ||
258 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
259 | // InternalApplicationConfiguration.g:21:7: ( 'metamodel' ) | ||
260 | // InternalApplicationConfiguration.g:21:9: 'metamodel' | ||
261 | { | ||
262 | match("metamodel"); | ||
263 | |||
264 | |||
265 | } | ||
266 | |||
267 | state.type = _type; | ||
268 | state.channel = _channel; | ||
269 | } | ||
270 | finally { | ||
271 | } | ||
272 | } | ||
273 | // $ANTLR end "T__21" | ||
274 | |||
275 | // $ANTLR start "RULE_ID" | ||
276 | public final void mRULE_ID() throws RecognitionException { | ||
277 | try { | ||
278 | int _type = RULE_ID; | ||
279 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
280 | // InternalApplicationConfiguration.g:1565:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
281 | // InternalApplicationConfiguration.g:1565:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
282 | { | ||
283 | // InternalApplicationConfiguration.g:1565:11: ( '^' )? | ||
284 | int alt1=2; | ||
285 | int LA1_0 = input.LA(1); | ||
286 | |||
287 | if ( (LA1_0=='^') ) { | ||
288 | alt1=1; | ||
289 | } | ||
290 | switch (alt1) { | ||
291 | case 1 : | ||
292 | // InternalApplicationConfiguration.g:1565:11: '^' | ||
293 | { | ||
294 | match('^'); | ||
295 | |||
296 | } | ||
297 | break; | ||
298 | |||
299 | } | ||
300 | |||
301 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
302 | input.consume(); | ||
303 | |||
304 | } | ||
305 | else { | ||
306 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
307 | recover(mse); | ||
308 | throw mse;} | ||
309 | |||
310 | // InternalApplicationConfiguration.g:1565:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
311 | loop2: | ||
312 | do { | ||
313 | int alt2=2; | ||
314 | int LA2_0 = input.LA(1); | ||
315 | |||
316 | if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { | ||
317 | alt2=1; | ||
318 | } | ||
319 | |||
320 | |||
321 | switch (alt2) { | ||
322 | case 1 : | ||
323 | // InternalApplicationConfiguration.g: | ||
324 | { | ||
325 | 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') ) { | ||
326 | input.consume(); | ||
327 | |||
328 | } | ||
329 | else { | ||
330 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
331 | recover(mse); | ||
332 | throw mse;} | ||
333 | |||
334 | |||
335 | } | ||
336 | break; | ||
337 | |||
338 | default : | ||
339 | break loop2; | ||
340 | } | ||
341 | } while (true); | ||
342 | |||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "RULE_ID" | ||
353 | |||
354 | // $ANTLR start "RULE_INT" | ||
355 | public final void mRULE_INT() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = RULE_INT; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalApplicationConfiguration.g:1567:10: ( ( '0' .. '9' )+ ) | ||
360 | // InternalApplicationConfiguration.g:1567:12: ( '0' .. '9' )+ | ||
361 | { | ||
362 | // InternalApplicationConfiguration.g:1567:12: ( '0' .. '9' )+ | ||
363 | int cnt3=0; | ||
364 | loop3: | ||
365 | do { | ||
366 | int alt3=2; | ||
367 | int LA3_0 = input.LA(1); | ||
368 | |||
369 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
370 | alt3=1; | ||
371 | } | ||
372 | |||
373 | |||
374 | switch (alt3) { | ||
375 | case 1 : | ||
376 | // InternalApplicationConfiguration.g:1567:13: '0' .. '9' | ||
377 | { | ||
378 | matchRange('0','9'); | ||
379 | |||
380 | } | ||
381 | break; | ||
382 | |||
383 | default : | ||
384 | if ( cnt3 >= 1 ) break loop3; | ||
385 | EarlyExitException eee = | ||
386 | new EarlyExitException(3, input); | ||
387 | throw eee; | ||
388 | } | ||
389 | cnt3++; | ||
390 | } while (true); | ||
391 | |||
392 | |||
393 | } | ||
394 | |||
395 | state.type = _type; | ||
396 | state.channel = _channel; | ||
397 | } | ||
398 | finally { | ||
399 | } | ||
400 | } | ||
401 | // $ANTLR end "RULE_INT" | ||
402 | |||
403 | // $ANTLR start "RULE_STRING" | ||
404 | public final void mRULE_STRING() throws RecognitionException { | ||
405 | try { | ||
406 | int _type = RULE_STRING; | ||
407 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
408 | // InternalApplicationConfiguration.g:1569:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
409 | // InternalApplicationConfiguration.g:1569:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
410 | { | ||
411 | // InternalApplicationConfiguration.g:1569:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
412 | int alt6=2; | ||
413 | int LA6_0 = input.LA(1); | ||
414 | |||
415 | if ( (LA6_0=='\"') ) { | ||
416 | alt6=1; | ||
417 | } | ||
418 | else if ( (LA6_0=='\'') ) { | ||
419 | alt6=2; | ||
420 | } | ||
421 | else { | ||
422 | NoViableAltException nvae = | ||
423 | new NoViableAltException("", 6, 0, input); | ||
424 | |||
425 | throw nvae; | ||
426 | } | ||
427 | switch (alt6) { | ||
428 | case 1 : | ||
429 | // InternalApplicationConfiguration.g:1569:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
430 | { | ||
431 | match('\"'); | ||
432 | // InternalApplicationConfiguration.g:1569:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
433 | loop4: | ||
434 | do { | ||
435 | int alt4=3; | ||
436 | int LA4_0 = input.LA(1); | ||
437 | |||
438 | if ( (LA4_0=='\\') ) { | ||
439 | alt4=1; | ||
440 | } | ||
441 | else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { | ||
442 | alt4=2; | ||
443 | } | ||
444 | |||
445 | |||
446 | switch (alt4) { | ||
447 | case 1 : | ||
448 | // InternalApplicationConfiguration.g:1569:21: '\\\\' . | ||
449 | { | ||
450 | match('\\'); | ||
451 | matchAny(); | ||
452 | |||
453 | } | ||
454 | break; | ||
455 | case 2 : | ||
456 | // InternalApplicationConfiguration.g:1569:28: ~ ( ( '\\\\' | '\"' ) ) | ||
457 | { | ||
458 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
459 | input.consume(); | ||
460 | |||
461 | } | ||
462 | else { | ||
463 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
464 | recover(mse); | ||
465 | throw mse;} | ||
466 | |||
467 | |||
468 | } | ||
469 | break; | ||
470 | |||
471 | default : | ||
472 | break loop4; | ||
473 | } | ||
474 | } while (true); | ||
475 | |||
476 | match('\"'); | ||
477 | |||
478 | } | ||
479 | break; | ||
480 | case 2 : | ||
481 | // InternalApplicationConfiguration.g:1569:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
482 | { | ||
483 | match('\''); | ||
484 | // InternalApplicationConfiguration.g:1569:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
485 | loop5: | ||
486 | do { | ||
487 | int alt5=3; | ||
488 | int LA5_0 = input.LA(1); | ||
489 | |||
490 | if ( (LA5_0=='\\') ) { | ||
491 | alt5=1; | ||
492 | } | ||
493 | else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { | ||
494 | alt5=2; | ||
495 | } | ||
496 | |||
497 | |||
498 | switch (alt5) { | ||
499 | case 1 : | ||
500 | // InternalApplicationConfiguration.g:1569:54: '\\\\' . | ||
501 | { | ||
502 | match('\\'); | ||
503 | matchAny(); | ||
504 | |||
505 | } | ||
506 | break; | ||
507 | case 2 : | ||
508 | // InternalApplicationConfiguration.g:1569:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
509 | { | ||
510 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
511 | input.consume(); | ||
512 | |||
513 | } | ||
514 | else { | ||
515 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
516 | recover(mse); | ||
517 | throw mse;} | ||
518 | |||
519 | |||
520 | } | ||
521 | break; | ||
522 | |||
523 | default : | ||
524 | break loop5; | ||
525 | } | ||
526 | } while (true); | ||
527 | |||
528 | match('\''); | ||
529 | |||
530 | } | ||
531 | break; | ||
532 | |||
533 | } | ||
534 | |||
535 | |||
536 | } | ||
537 | |||
538 | state.type = _type; | ||
539 | state.channel = _channel; | ||
540 | } | ||
541 | finally { | ||
542 | } | ||
543 | } | ||
544 | // $ANTLR end "RULE_STRING" | ||
545 | |||
546 | // $ANTLR start "RULE_ML_COMMENT" | ||
547 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
548 | try { | ||
549 | int _type = RULE_ML_COMMENT; | ||
550 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
551 | // InternalApplicationConfiguration.g:1571:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
552 | // InternalApplicationConfiguration.g:1571:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
553 | { | ||
554 | match("/*"); | ||
555 | |||
556 | // InternalApplicationConfiguration.g:1571:24: ( options {greedy=false; } : . )* | ||
557 | loop7: | ||
558 | do { | ||
559 | int alt7=2; | ||
560 | int LA7_0 = input.LA(1); | ||
561 | |||
562 | if ( (LA7_0=='*') ) { | ||
563 | int LA7_1 = input.LA(2); | ||
564 | |||
565 | if ( (LA7_1=='/') ) { | ||
566 | alt7=2; | ||
567 | } | ||
568 | else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { | ||
569 | alt7=1; | ||
570 | } | ||
571 | |||
572 | |||
573 | } | ||
574 | else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { | ||
575 | alt7=1; | ||
576 | } | ||
577 | |||
578 | |||
579 | switch (alt7) { | ||
580 | case 1 : | ||
581 | // InternalApplicationConfiguration.g:1571:52: . | ||
582 | { | ||
583 | matchAny(); | ||
584 | |||
585 | } | ||
586 | break; | ||
587 | |||
588 | default : | ||
589 | break loop7; | ||
590 | } | ||
591 | } while (true); | ||
592 | |||
593 | match("*/"); | ||
594 | |||
595 | |||
596 | } | ||
597 | |||
598 | state.type = _type; | ||
599 | state.channel = _channel; | ||
600 | } | ||
601 | finally { | ||
602 | } | ||
603 | } | ||
604 | // $ANTLR end "RULE_ML_COMMENT" | ||
605 | |||
606 | // $ANTLR start "RULE_SL_COMMENT" | ||
607 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
608 | try { | ||
609 | int _type = RULE_SL_COMMENT; | ||
610 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
611 | // InternalApplicationConfiguration.g:1573:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
612 | // InternalApplicationConfiguration.g:1573:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
613 | { | ||
614 | match("//"); | ||
615 | |||
616 | // InternalApplicationConfiguration.g:1573:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
617 | loop8: | ||
618 | do { | ||
619 | int alt8=2; | ||
620 | int LA8_0 = input.LA(1); | ||
621 | |||
622 | if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { | ||
623 | alt8=1; | ||
624 | } | ||
625 | |||
626 | |||
627 | switch (alt8) { | ||
628 | case 1 : | ||
629 | // InternalApplicationConfiguration.g:1573:24: ~ ( ( '\\n' | '\\r' ) ) | ||
630 | { | ||
631 | 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') ) { | ||
632 | input.consume(); | ||
633 | |||
634 | } | ||
635 | else { | ||
636 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
637 | recover(mse); | ||
638 | throw mse;} | ||
639 | |||
640 | |||
641 | } | ||
642 | break; | ||
643 | |||
644 | default : | ||
645 | break loop8; | ||
646 | } | ||
647 | } while (true); | ||
648 | |||
649 | // InternalApplicationConfiguration.g:1573:40: ( ( '\\r' )? '\\n' )? | ||
650 | int alt10=2; | ||
651 | int LA10_0 = input.LA(1); | ||
652 | |||
653 | if ( (LA10_0=='\n'||LA10_0=='\r') ) { | ||
654 | alt10=1; | ||
655 | } | ||
656 | switch (alt10) { | ||
657 | case 1 : | ||
658 | // InternalApplicationConfiguration.g:1573:41: ( '\\r' )? '\\n' | ||
659 | { | ||
660 | // InternalApplicationConfiguration.g:1573:41: ( '\\r' )? | ||
661 | int alt9=2; | ||
662 | int LA9_0 = input.LA(1); | ||
663 | |||
664 | if ( (LA9_0=='\r') ) { | ||
665 | alt9=1; | ||
666 | } | ||
667 | switch (alt9) { | ||
668 | case 1 : | ||
669 | // InternalApplicationConfiguration.g:1573:41: '\\r' | ||
670 | { | ||
671 | match('\r'); | ||
672 | |||
673 | } | ||
674 | break; | ||
675 | |||
676 | } | ||
677 | |||
678 | match('\n'); | ||
679 | |||
680 | } | ||
681 | break; | ||
682 | |||
683 | } | ||
684 | |||
685 | |||
686 | } | ||
687 | |||
688 | state.type = _type; | ||
689 | state.channel = _channel; | ||
690 | } | ||
691 | finally { | ||
692 | } | ||
693 | } | ||
694 | // $ANTLR end "RULE_SL_COMMENT" | ||
695 | |||
696 | // $ANTLR start "RULE_WS" | ||
697 | public final void mRULE_WS() throws RecognitionException { | ||
698 | try { | ||
699 | int _type = RULE_WS; | ||
700 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
701 | // InternalApplicationConfiguration.g:1575:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
702 | // InternalApplicationConfiguration.g:1575:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
703 | { | ||
704 | // InternalApplicationConfiguration.g:1575:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
705 | int cnt11=0; | ||
706 | loop11: | ||
707 | do { | ||
708 | int alt11=2; | ||
709 | int LA11_0 = input.LA(1); | ||
710 | |||
711 | if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { | ||
712 | alt11=1; | ||
713 | } | ||
714 | |||
715 | |||
716 | switch (alt11) { | ||
717 | case 1 : | ||
718 | // InternalApplicationConfiguration.g: | ||
719 | { | ||
720 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
721 | input.consume(); | ||
722 | |||
723 | } | ||
724 | else { | ||
725 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
726 | recover(mse); | ||
727 | throw mse;} | ||
728 | |||
729 | |||
730 | } | ||
731 | break; | ||
732 | |||
733 | default : | ||
734 | if ( cnt11 >= 1 ) break loop11; | ||
735 | EarlyExitException eee = | ||
736 | new EarlyExitException(11, input); | ||
737 | throw eee; | ||
738 | } | ||
739 | cnt11++; | ||
740 | } while (true); | ||
741 | |||
742 | |||
743 | } | ||
744 | |||
745 | state.type = _type; | ||
746 | state.channel = _channel; | ||
747 | } | ||
748 | finally { | ||
749 | } | ||
750 | } | ||
751 | // $ANTLR end "RULE_WS" | ||
752 | |||
753 | // $ANTLR start "RULE_ANY_OTHER" | ||
754 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
755 | try { | ||
756 | int _type = RULE_ANY_OTHER; | ||
757 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
758 | // InternalApplicationConfiguration.g:1577:16: ( . ) | ||
759 | // InternalApplicationConfiguration.g:1577:18: . | ||
760 | { | ||
761 | matchAny(); | ||
762 | |||
763 | } | ||
764 | |||
765 | state.type = _type; | ||
766 | state.channel = _channel; | ||
767 | } | ||
768 | finally { | ||
769 | } | ||
770 | } | ||
771 | // $ANTLR end "RULE_ANY_OTHER" | ||
772 | |||
773 | public void mTokens() throws RecognitionException { | ||
774 | // InternalApplicationConfiguration.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 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
775 | int alt12=18; | ||
776 | alt12 = dfa12.predict(input); | ||
777 | switch (alt12) { | ||
778 | case 1 : | ||
779 | // InternalApplicationConfiguration.g:1:10: T__11 | ||
780 | { | ||
781 | mT__11(); | ||
782 | |||
783 | } | ||
784 | break; | ||
785 | case 2 : | ||
786 | // InternalApplicationConfiguration.g:1:16: T__12 | ||
787 | { | ||
788 | mT__12(); | ||
789 | |||
790 | } | ||
791 | break; | ||
792 | case 3 : | ||
793 | // InternalApplicationConfiguration.g:1:22: T__13 | ||
794 | { | ||
795 | mT__13(); | ||
796 | |||
797 | } | ||
798 | break; | ||
799 | case 4 : | ||
800 | // InternalApplicationConfiguration.g:1:28: T__14 | ||
801 | { | ||
802 | mT__14(); | ||
803 | |||
804 | } | ||
805 | break; | ||
806 | case 5 : | ||
807 | // InternalApplicationConfiguration.g:1:34: T__15 | ||
808 | { | ||
809 | mT__15(); | ||
810 | |||
811 | } | ||
812 | break; | ||
813 | case 6 : | ||
814 | // InternalApplicationConfiguration.g:1:40: T__16 | ||
815 | { | ||
816 | mT__16(); | ||
817 | |||
818 | } | ||
819 | break; | ||
820 | case 7 : | ||
821 | // InternalApplicationConfiguration.g:1:46: T__17 | ||
822 | { | ||
823 | mT__17(); | ||
824 | |||
825 | } | ||
826 | break; | ||
827 | case 8 : | ||
828 | // InternalApplicationConfiguration.g:1:52: T__18 | ||
829 | { | ||
830 | mT__18(); | ||
831 | |||
832 | } | ||
833 | break; | ||
834 | case 9 : | ||
835 | // InternalApplicationConfiguration.g:1:58: T__19 | ||
836 | { | ||
837 | mT__19(); | ||
838 | |||
839 | } | ||
840 | break; | ||
841 | case 10 : | ||
842 | // InternalApplicationConfiguration.g:1:64: T__20 | ||
843 | { | ||
844 | mT__20(); | ||
845 | |||
846 | } | ||
847 | break; | ||
848 | case 11 : | ||
849 | // InternalApplicationConfiguration.g:1:70: T__21 | ||
850 | { | ||
851 | mT__21(); | ||
852 | |||
853 | } | ||
854 | break; | ||
855 | case 12 : | ||
856 | // InternalApplicationConfiguration.g:1:76: RULE_ID | ||
857 | { | ||
858 | mRULE_ID(); | ||
859 | |||
860 | } | ||
861 | break; | ||
862 | case 13 : | ||
863 | // InternalApplicationConfiguration.g:1:84: RULE_INT | ||
864 | { | ||
865 | mRULE_INT(); | ||
866 | |||
867 | } | ||
868 | break; | ||
869 | case 14 : | ||
870 | // InternalApplicationConfiguration.g:1:93: RULE_STRING | ||
871 | { | ||
872 | mRULE_STRING(); | ||
873 | |||
874 | } | ||
875 | break; | ||
876 | case 15 : | ||
877 | // InternalApplicationConfiguration.g:1:105: RULE_ML_COMMENT | ||
878 | { | ||
879 | mRULE_ML_COMMENT(); | ||
880 | |||
881 | } | ||
882 | break; | ||
883 | case 16 : | ||
884 | // InternalApplicationConfiguration.g:1:121: RULE_SL_COMMENT | ||
885 | { | ||
886 | mRULE_SL_COMMENT(); | ||
887 | |||
888 | } | ||
889 | break; | ||
890 | case 17 : | ||
891 | // InternalApplicationConfiguration.g:1:137: RULE_WS | ||
892 | { | ||
893 | mRULE_WS(); | ||
894 | |||
895 | } | ||
896 | break; | ||
897 | case 18 : | ||
898 | // InternalApplicationConfiguration.g:1:145: RULE_ANY_OTHER | ||
899 | { | ||
900 | mRULE_ANY_OTHER(); | ||
901 | |||
902 | } | ||
903 | break; | ||
904 | |||
905 | } | ||
906 | |||
907 | } | ||
908 | |||
909 | |||
910 | protected DFA12 dfa12 = new DFA12(this); | ||
911 | static final String DFA12_eotS = | ||
912 | "\1\uffff\3\24\3\uffff\1\24\1\22\1\uffff\1\24\1\22\2\uffff\3\22\2\uffff\1\24\1\uffff\3\24\3\uffff\1\24\2\uffff\1\24\5\uffff\22\24\1\74\2\24\1\77\2\24\1\uffff\2\24\1\uffff\1\104\1\24\1\106\1\24\1\uffff\1\24\1\uffff\1\111\1\112\2\uffff"; | ||
913 | static final String DFA12_eofS = | ||
914 | "\113\uffff"; | ||
915 | static final String DFA12_minS = | ||
916 | "\1\0\1\155\1\160\1\151\3\uffff\1\141\1\72\1\uffff\1\145\1\101\2\uffff\2\0\1\52\2\uffff\1\160\1\uffff\1\141\1\143\1\141\3\uffff\1\143\2\uffff\1\164\5\uffff\1\157\1\143\1\154\1\164\1\153\1\141\1\162\1\153\1\165\1\162\1\141\1\155\1\164\1\141\1\144\1\141\1\147\1\157\1\60\1\147\1\151\1\60\1\145\1\144\1\uffff\1\145\1\156\1\uffff\1\60\1\145\1\60\1\147\1\uffff\1\154\1\uffff\2\60\2\uffff"; | ||
917 | static final String DFA12_maxS = | ||
918 | "\1\uffff\1\155\1\170\1\151\3\uffff\1\141\1\72\1\uffff\1\145\1\172\2\uffff\2\uffff\1\57\2\uffff\1\160\1\uffff\1\141\1\143\1\141\3\uffff\1\143\2\uffff\1\164\5\uffff\1\157\1\143\1\154\1\164\1\153\1\141\1\162\1\153\1\165\1\162\1\141\1\155\1\164\1\141\1\144\1\141\1\147\1\157\1\172\1\147\1\151\1\172\1\145\1\144\1\uffff\1\145\1\156\1\uffff\1\172\1\145\1\172\1\147\1\uffff\1\154\1\uffff\2\172\2\uffff"; | ||
919 | static final String DFA12_acceptS = | ||
920 | "\4\uffff\1\4\1\5\1\6\2\uffff\1\12\2\uffff\1\14\1\15\3\uffff\1\21\1\22\1\uffff\1\14\3\uffff\1\4\1\5\1\6\1\uffff\1\11\1\12\1\uffff\1\15\1\16\1\17\1\20\1\21\30\uffff\1\1\2\uffff\1\3\4\uffff\1\7\1\uffff\1\2\2\uffff\1\10\1\13"; | ||
921 | static final String DFA12_specialS = | ||
922 | "\1\1\15\uffff\1\0\1\2\73\uffff}>"; | ||
923 | static final String[] DFA12_transitionS = { | ||
924 | "\11\22\2\21\2\22\1\21\22\22\1\21\1\22\1\16\4\22\1\17\4\22\1\6\1\22\1\11\1\20\12\15\1\10\6\22\32\14\3\22\1\13\1\14\1\22\4\14\1\2\3\14\1\1\3\14\1\12\2\14\1\7\5\14\1\3\4\14\1\4\1\22\1\5\uff82\22", | ||
925 | "\1\23", | ||
926 | "\1\25\7\uffff\1\26", | ||
927 | "\1\27", | ||
928 | "", | ||
929 | "", | ||
930 | "", | ||
931 | "\1\33", | ||
932 | "\1\34", | ||
933 | "", | ||
934 | "\1\36", | ||
935 | "\32\24\4\uffff\1\24\1\uffff\32\24", | ||
936 | "", | ||
937 | "", | ||
938 | "\0\40", | ||
939 | "\0\40", | ||
940 | "\1\41\4\uffff\1\42", | ||
941 | "", | ||
942 | "", | ||
943 | "\1\44", | ||
944 | "", | ||
945 | "\1\45", | ||
946 | "\1\46", | ||
947 | "\1\47", | ||
948 | "", | ||
949 | "", | ||
950 | "", | ||
951 | "\1\50", | ||
952 | "", | ||
953 | "", | ||
954 | "\1\51", | ||
955 | "", | ||
956 | "", | ||
957 | "", | ||
958 | "", | ||
959 | "", | ||
960 | "\1\52", | ||
961 | "\1\53", | ||
962 | "\1\54", | ||
963 | "\1\55", | ||
964 | "\1\56", | ||
965 | "\1\57", | ||
966 | "\1\60", | ||
967 | "\1\61", | ||
968 | "\1\62", | ||
969 | "\1\63", | ||
970 | "\1\64", | ||
971 | "\1\65", | ||
972 | "\1\66", | ||
973 | "\1\67", | ||
974 | "\1\70", | ||
975 | "\1\71", | ||
976 | "\1\72", | ||
977 | "\1\73", | ||
978 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
979 | "\1\75", | ||
980 | "\1\76", | ||
981 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
982 | "\1\100", | ||
983 | "\1\101", | ||
984 | "", | ||
985 | "\1\102", | ||
986 | "\1\103", | ||
987 | "", | ||
988 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
989 | "\1\105", | ||
990 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
991 | "\1\107", | ||
992 | "", | ||
993 | "\1\110", | ||
994 | "", | ||
995 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
996 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
997 | "", | ||
998 | "" | ||
999 | }; | ||
1000 | |||
1001 | static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); | ||
1002 | static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); | ||
1003 | static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); | ||
1004 | static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); | ||
1005 | static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); | ||
1006 | static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); | ||
1007 | static final short[][] DFA12_transition; | ||
1008 | |||
1009 | static { | ||
1010 | int numStates = DFA12_transitionS.length; | ||
1011 | DFA12_transition = new short[numStates][]; | ||
1012 | for (int i=0; i<numStates; i++) { | ||
1013 | DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]); | ||
1014 | } | ||
1015 | } | ||
1016 | |||
1017 | class DFA12 extends DFA { | ||
1018 | |||
1019 | public DFA12(BaseRecognizer recognizer) { | ||
1020 | this.recognizer = recognizer; | ||
1021 | this.decisionNumber = 12; | ||
1022 | this.eot = DFA12_eot; | ||
1023 | this.eof = DFA12_eof; | ||
1024 | this.min = DFA12_min; | ||
1025 | this.max = DFA12_max; | ||
1026 | this.accept = DFA12_accept; | ||
1027 | this.special = DFA12_special; | ||
1028 | this.transition = DFA12_transition; | ||
1029 | } | ||
1030 | public String getDescription() { | ||
1031 | return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1032 | } | ||
1033 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1034 | IntStream input = _input; | ||
1035 | int _s = s; | ||
1036 | switch ( s ) { | ||
1037 | case 0 : | ||
1038 | int LA12_14 = input.LA(1); | ||
1039 | |||
1040 | s = -1; | ||
1041 | if ( ((LA12_14>='\u0000' && LA12_14<='\uFFFF')) ) {s = 32;} | ||
1042 | |||
1043 | else s = 18; | ||
1044 | |||
1045 | if ( s>=0 ) return s; | ||
1046 | break; | ||
1047 | case 1 : | ||
1048 | int LA12_0 = input.LA(1); | ||
1049 | |||
1050 | s = -1; | ||
1051 | if ( (LA12_0=='i') ) {s = 1;} | ||
1052 | |||
1053 | else if ( (LA12_0=='e') ) {s = 2;} | ||
1054 | |||
1055 | else if ( (LA12_0=='v') ) {s = 3;} | ||
1056 | |||
1057 | else if ( (LA12_0=='{') ) {s = 4;} | ||
1058 | |||
1059 | else if ( (LA12_0=='}') ) {s = 5;} | ||
1060 | |||
1061 | else if ( (LA12_0==',') ) {s = 6;} | ||
1062 | |||
1063 | else if ( (LA12_0=='p') ) {s = 7;} | ||
1064 | |||
1065 | else if ( (LA12_0==':') ) {s = 8;} | ||
1066 | |||
1067 | else if ( (LA12_0=='.') ) {s = 9;} | ||
1068 | |||
1069 | else if ( (LA12_0=='m') ) {s = 10;} | ||
1070 | |||
1071 | else if ( (LA12_0=='^') ) {s = 11;} | ||
1072 | |||
1073 | else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='d')||(LA12_0>='f' && LA12_0<='h')||(LA12_0>='j' && LA12_0<='l')||(LA12_0>='n' && LA12_0<='o')||(LA12_0>='q' && LA12_0<='u')||(LA12_0>='w' && LA12_0<='z')) ) {s = 12;} | ||
1074 | |||
1075 | else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 13;} | ||
1076 | |||
1077 | else if ( (LA12_0=='\"') ) {s = 14;} | ||
1078 | |||
1079 | else if ( (LA12_0=='\'') ) {s = 15;} | ||
1080 | |||
1081 | else if ( (LA12_0=='/') ) {s = 16;} | ||
1082 | |||
1083 | else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 17;} | ||
1084 | |||
1085 | 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>='~' && LA12_0<='\uFFFF')) ) {s = 18;} | ||
1086 | |||
1087 | if ( s>=0 ) return s; | ||
1088 | break; | ||
1089 | case 2 : | ||
1090 | int LA12_15 = input.LA(1); | ||
1091 | |||
1092 | s = -1; | ||
1093 | if ( ((LA12_15>='\u0000' && LA12_15<='\uFFFF')) ) {s = 32;} | ||
1094 | |||
1095 | else s = 18; | ||
1096 | |||
1097 | if ( s>=0 ) return s; | ||
1098 | break; | ||
1099 | } | ||
1100 | NoViableAltException nvae = | ||
1101 | new NoViableAltException(getDescription(), 12, _s, input); | ||
1102 | error(nvae); | ||
1103 | throw nvae; | ||
1104 | } | ||
1105 | } | ||
1106 | |||
1107 | |||
1108 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfigurationParser.java b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfigurationParser.java new file mode 100644 index 00000000..80edb17f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ide/src-gen/hu/bme/mit/inf/dslreasoner/application/ide/contentassist/antlr/internal/InternalApplicationConfigurationParser.java | |||
@@ -0,0 +1,4611 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal; | ||
2 | |||
3 | import java.io.InputStream; | ||
4 | import org.eclipse.xtext.*; | ||
5 | import org.eclipse.xtext.parser.*; | ||
6 | import org.eclipse.xtext.parser.impl.*; | ||
7 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
11 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.AbstractInternalContentAssistParser; | ||
12 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.DFA; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
14 | |||
15 | |||
16 | |||
17 | import org.antlr.runtime.*; | ||
18 | import java.util.Stack; | ||
19 | import java.util.List; | ||
20 | import java.util.ArrayList; | ||
21 | |||
22 | @SuppressWarnings("all") | ||
23 | public class InternalApplicationConfigurationParser extends AbstractInternalContentAssistParser { | ||
24 | public static final String[] tokenNames = new String[] { | ||
25 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_ID", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'import'", "'epackage'", "'viatra'", "'{'", "'}'", "','", "'package'", "'excluding'", "'::'", "'.'", "'metamodel'" | ||
26 | }; | ||
27 | public static final int RULE_STRING=4; | ||
28 | public static final int RULE_SL_COMMENT=8; | ||
29 | public static final int T__19=19; | ||
30 | public static final int T__15=15; | ||
31 | public static final int T__16=16; | ||
32 | public static final int T__17=17; | ||
33 | public static final int T__18=18; | ||
34 | public static final int T__11=11; | ||
35 | public static final int T__12=12; | ||
36 | public static final int T__13=13; | ||
37 | public static final int T__14=14; | ||
38 | public static final int EOF=-1; | ||
39 | public static final int RULE_ID=5; | ||
40 | public static final int RULE_WS=9; | ||
41 | public static final int RULE_ANY_OTHER=10; | ||
42 | public static final int RULE_INT=6; | ||
43 | public static final int RULE_ML_COMMENT=7; | ||
44 | public static final int T__20=20; | ||
45 | public static final int T__21=21; | ||
46 | |||
47 | // delegates | ||
48 | // delegators | ||
49 | |||
50 | |||
51 | public InternalApplicationConfigurationParser(TokenStream input) { | ||
52 | this(input, new RecognizerSharedState()); | ||
53 | } | ||
54 | public InternalApplicationConfigurationParser(TokenStream input, RecognizerSharedState state) { | ||
55 | super(input, state); | ||
56 | |||
57 | } | ||
58 | |||
59 | |||
60 | public String[] getTokenNames() { return InternalApplicationConfigurationParser.tokenNames; } | ||
61 | public String getGrammarFileName() { return "InternalApplicationConfiguration.g"; } | ||
62 | |||
63 | |||
64 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
65 | |||
66 | public void setGrammarAccess(ApplicationConfigurationGrammarAccess grammarAccess) { | ||
67 | this.grammarAccess = grammarAccess; | ||
68 | } | ||
69 | |||
70 | @Override | ||
71 | protected Grammar getGrammar() { | ||
72 | return grammarAccess.getGrammar(); | ||
73 | } | ||
74 | |||
75 | @Override | ||
76 | protected String getValueForTokenName(String tokenName) { | ||
77 | return tokenName; | ||
78 | } | ||
79 | |||
80 | |||
81 | |||
82 | // $ANTLR start "entryRuleConfigurationScript" | ||
83 | // InternalApplicationConfiguration.g:53:1: entryRuleConfigurationScript : ruleConfigurationScript EOF ; | ||
84 | public final void entryRuleConfigurationScript() throws RecognitionException { | ||
85 | try { | ||
86 | // InternalApplicationConfiguration.g:54:1: ( ruleConfigurationScript EOF ) | ||
87 | // InternalApplicationConfiguration.g:55:1: ruleConfigurationScript EOF | ||
88 | { | ||
89 | before(grammarAccess.getConfigurationScriptRule()); | ||
90 | pushFollow(FOLLOW_1); | ||
91 | ruleConfigurationScript(); | ||
92 | |||
93 | state._fsp--; | ||
94 | |||
95 | after(grammarAccess.getConfigurationScriptRule()); | ||
96 | match(input,EOF,FOLLOW_2); | ||
97 | |||
98 | } | ||
99 | |||
100 | } | ||
101 | catch (RecognitionException re) { | ||
102 | reportError(re); | ||
103 | recover(input,re); | ||
104 | } | ||
105 | finally { | ||
106 | } | ||
107 | return ; | ||
108 | } | ||
109 | // $ANTLR end "entryRuleConfigurationScript" | ||
110 | |||
111 | |||
112 | // $ANTLR start "ruleConfigurationScript" | ||
113 | // InternalApplicationConfiguration.g:62:1: ruleConfigurationScript : ( ( rule__ConfigurationScript__Group__0 ) ) ; | ||
114 | public final void ruleConfigurationScript() throws RecognitionException { | ||
115 | |||
116 | int stackSize = keepStackSize(); | ||
117 | |||
118 | try { | ||
119 | // InternalApplicationConfiguration.g:66:2: ( ( ( rule__ConfigurationScript__Group__0 ) ) ) | ||
120 | // InternalApplicationConfiguration.g:67:2: ( ( rule__ConfigurationScript__Group__0 ) ) | ||
121 | { | ||
122 | // InternalApplicationConfiguration.g:67:2: ( ( rule__ConfigurationScript__Group__0 ) ) | ||
123 | // InternalApplicationConfiguration.g:68:3: ( rule__ConfigurationScript__Group__0 ) | ||
124 | { | ||
125 | before(grammarAccess.getConfigurationScriptAccess().getGroup()); | ||
126 | // InternalApplicationConfiguration.g:69:3: ( rule__ConfigurationScript__Group__0 ) | ||
127 | // InternalApplicationConfiguration.g:69:4: rule__ConfigurationScript__Group__0 | ||
128 | { | ||
129 | pushFollow(FOLLOW_2); | ||
130 | rule__ConfigurationScript__Group__0(); | ||
131 | |||
132 | state._fsp--; | ||
133 | |||
134 | |||
135 | } | ||
136 | |||
137 | after(grammarAccess.getConfigurationScriptAccess().getGroup()); | ||
138 | |||
139 | } | ||
140 | |||
141 | |||
142 | } | ||
143 | |||
144 | } | ||
145 | catch (RecognitionException re) { | ||
146 | reportError(re); | ||
147 | recover(input,re); | ||
148 | } | ||
149 | finally { | ||
150 | |||
151 | restoreStackSize(stackSize); | ||
152 | |||
153 | } | ||
154 | return ; | ||
155 | } | ||
156 | // $ANTLR end "ruleConfigurationScript" | ||
157 | |||
158 | |||
159 | // $ANTLR start "entryRuleCommand" | ||
160 | // InternalApplicationConfiguration.g:78:1: entryRuleCommand : ruleCommand EOF ; | ||
161 | public final void entryRuleCommand() throws RecognitionException { | ||
162 | try { | ||
163 | // InternalApplicationConfiguration.g:79:1: ( ruleCommand EOF ) | ||
164 | // InternalApplicationConfiguration.g:80:1: ruleCommand EOF | ||
165 | { | ||
166 | before(grammarAccess.getCommandRule()); | ||
167 | pushFollow(FOLLOW_1); | ||
168 | ruleCommand(); | ||
169 | |||
170 | state._fsp--; | ||
171 | |||
172 | after(grammarAccess.getCommandRule()); | ||
173 | match(input,EOF,FOLLOW_2); | ||
174 | |||
175 | } | ||
176 | |||
177 | } | ||
178 | catch (RecognitionException re) { | ||
179 | reportError(re); | ||
180 | recover(input,re); | ||
181 | } | ||
182 | finally { | ||
183 | } | ||
184 | return ; | ||
185 | } | ||
186 | // $ANTLR end "entryRuleCommand" | ||
187 | |||
188 | |||
189 | // $ANTLR start "ruleCommand" | ||
190 | // InternalApplicationConfiguration.g:87:1: ruleCommand : ( ruleDeclaration ) ; | ||
191 | public final void ruleCommand() throws RecognitionException { | ||
192 | |||
193 | int stackSize = keepStackSize(); | ||
194 | |||
195 | try { | ||
196 | // InternalApplicationConfiguration.g:91:2: ( ( ruleDeclaration ) ) | ||
197 | // InternalApplicationConfiguration.g:92:2: ( ruleDeclaration ) | ||
198 | { | ||
199 | // InternalApplicationConfiguration.g:92:2: ( ruleDeclaration ) | ||
200 | // InternalApplicationConfiguration.g:93:3: ruleDeclaration | ||
201 | { | ||
202 | before(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); | ||
203 | pushFollow(FOLLOW_2); | ||
204 | ruleDeclaration(); | ||
205 | |||
206 | state._fsp--; | ||
207 | |||
208 | after(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); | ||
209 | |||
210 | } | ||
211 | |||
212 | |||
213 | } | ||
214 | |||
215 | } | ||
216 | catch (RecognitionException re) { | ||
217 | reportError(re); | ||
218 | recover(input,re); | ||
219 | } | ||
220 | finally { | ||
221 | |||
222 | restoreStackSize(stackSize); | ||
223 | |||
224 | } | ||
225 | return ; | ||
226 | } | ||
227 | // $ANTLR end "ruleCommand" | ||
228 | |||
229 | |||
230 | // $ANTLR start "entryRuleDeclaration" | ||
231 | // InternalApplicationConfiguration.g:103:1: entryRuleDeclaration : ruleDeclaration EOF ; | ||
232 | public final void entryRuleDeclaration() throws RecognitionException { | ||
233 | try { | ||
234 | // InternalApplicationConfiguration.g:104:1: ( ruleDeclaration EOF ) | ||
235 | // InternalApplicationConfiguration.g:105:1: ruleDeclaration EOF | ||
236 | { | ||
237 | before(grammarAccess.getDeclarationRule()); | ||
238 | pushFollow(FOLLOW_1); | ||
239 | ruleDeclaration(); | ||
240 | |||
241 | state._fsp--; | ||
242 | |||
243 | after(grammarAccess.getDeclarationRule()); | ||
244 | match(input,EOF,FOLLOW_2); | ||
245 | |||
246 | } | ||
247 | |||
248 | } | ||
249 | catch (RecognitionException re) { | ||
250 | reportError(re); | ||
251 | recover(input,re); | ||
252 | } | ||
253 | finally { | ||
254 | } | ||
255 | return ; | ||
256 | } | ||
257 | // $ANTLR end "entryRuleDeclaration" | ||
258 | |||
259 | |||
260 | // $ANTLR start "ruleDeclaration" | ||
261 | // InternalApplicationConfiguration.g:112:1: ruleDeclaration : ( ruleMetamodelDeclaration ) ; | ||
262 | public final void ruleDeclaration() throws RecognitionException { | ||
263 | |||
264 | int stackSize = keepStackSize(); | ||
265 | |||
266 | try { | ||
267 | // InternalApplicationConfiguration.g:116:2: ( ( ruleMetamodelDeclaration ) ) | ||
268 | // InternalApplicationConfiguration.g:117:2: ( ruleMetamodelDeclaration ) | ||
269 | { | ||
270 | // InternalApplicationConfiguration.g:117:2: ( ruleMetamodelDeclaration ) | ||
271 | // InternalApplicationConfiguration.g:118:3: ruleMetamodelDeclaration | ||
272 | { | ||
273 | before(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); | ||
274 | pushFollow(FOLLOW_2); | ||
275 | ruleMetamodelDeclaration(); | ||
276 | |||
277 | state._fsp--; | ||
278 | |||
279 | after(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); | ||
280 | |||
281 | } | ||
282 | |||
283 | |||
284 | } | ||
285 | |||
286 | } | ||
287 | catch (RecognitionException re) { | ||
288 | reportError(re); | ||
289 | recover(input,re); | ||
290 | } | ||
291 | finally { | ||
292 | |||
293 | restoreStackSize(stackSize); | ||
294 | |||
295 | } | ||
296 | return ; | ||
297 | } | ||
298 | // $ANTLR end "ruleDeclaration" | ||
299 | |||
300 | |||
301 | // $ANTLR start "entryRuleImport" | ||
302 | // InternalApplicationConfiguration.g:128:1: entryRuleImport : ruleImport EOF ; | ||
303 | public final void entryRuleImport() throws RecognitionException { | ||
304 | try { | ||
305 | // InternalApplicationConfiguration.g:129:1: ( ruleImport EOF ) | ||
306 | // InternalApplicationConfiguration.g:130:1: ruleImport EOF | ||
307 | { | ||
308 | before(grammarAccess.getImportRule()); | ||
309 | pushFollow(FOLLOW_1); | ||
310 | ruleImport(); | ||
311 | |||
312 | state._fsp--; | ||
313 | |||
314 | after(grammarAccess.getImportRule()); | ||
315 | match(input,EOF,FOLLOW_2); | ||
316 | |||
317 | } | ||
318 | |||
319 | } | ||
320 | catch (RecognitionException re) { | ||
321 | reportError(re); | ||
322 | recover(input,re); | ||
323 | } | ||
324 | finally { | ||
325 | } | ||
326 | return ; | ||
327 | } | ||
328 | // $ANTLR end "entryRuleImport" | ||
329 | |||
330 | |||
331 | // $ANTLR start "ruleImport" | ||
332 | // InternalApplicationConfiguration.g:137:1: ruleImport : ( ( rule__Import__Alternatives ) ) ; | ||
333 | public final void ruleImport() throws RecognitionException { | ||
334 | |||
335 | int stackSize = keepStackSize(); | ||
336 | |||
337 | try { | ||
338 | // InternalApplicationConfiguration.g:141:2: ( ( ( rule__Import__Alternatives ) ) ) | ||
339 | // InternalApplicationConfiguration.g:142:2: ( ( rule__Import__Alternatives ) ) | ||
340 | { | ||
341 | // InternalApplicationConfiguration.g:142:2: ( ( rule__Import__Alternatives ) ) | ||
342 | // InternalApplicationConfiguration.g:143:3: ( rule__Import__Alternatives ) | ||
343 | { | ||
344 | before(grammarAccess.getImportAccess().getAlternatives()); | ||
345 | // InternalApplicationConfiguration.g:144:3: ( rule__Import__Alternatives ) | ||
346 | // InternalApplicationConfiguration.g:144:4: rule__Import__Alternatives | ||
347 | { | ||
348 | pushFollow(FOLLOW_2); | ||
349 | rule__Import__Alternatives(); | ||
350 | |||
351 | state._fsp--; | ||
352 | |||
353 | |||
354 | } | ||
355 | |||
356 | after(grammarAccess.getImportAccess().getAlternatives()); | ||
357 | |||
358 | } | ||
359 | |||
360 | |||
361 | } | ||
362 | |||
363 | } | ||
364 | catch (RecognitionException re) { | ||
365 | reportError(re); | ||
366 | recover(input,re); | ||
367 | } | ||
368 | finally { | ||
369 | |||
370 | restoreStackSize(stackSize); | ||
371 | |||
372 | } | ||
373 | return ; | ||
374 | } | ||
375 | // $ANTLR end "ruleImport" | ||
376 | |||
377 | |||
378 | // $ANTLR start "entryRuleEPackageImport" | ||
379 | // InternalApplicationConfiguration.g:153:1: entryRuleEPackageImport : ruleEPackageImport EOF ; | ||
380 | public final void entryRuleEPackageImport() throws RecognitionException { | ||
381 | try { | ||
382 | // InternalApplicationConfiguration.g:154:1: ( ruleEPackageImport EOF ) | ||
383 | // InternalApplicationConfiguration.g:155:1: ruleEPackageImport EOF | ||
384 | { | ||
385 | before(grammarAccess.getEPackageImportRule()); | ||
386 | pushFollow(FOLLOW_1); | ||
387 | ruleEPackageImport(); | ||
388 | |||
389 | state._fsp--; | ||
390 | |||
391 | after(grammarAccess.getEPackageImportRule()); | ||
392 | match(input,EOF,FOLLOW_2); | ||
393 | |||
394 | } | ||
395 | |||
396 | } | ||
397 | catch (RecognitionException re) { | ||
398 | reportError(re); | ||
399 | recover(input,re); | ||
400 | } | ||
401 | finally { | ||
402 | } | ||
403 | return ; | ||
404 | } | ||
405 | // $ANTLR end "entryRuleEPackageImport" | ||
406 | |||
407 | |||
408 | // $ANTLR start "ruleEPackageImport" | ||
409 | // InternalApplicationConfiguration.g:162:1: ruleEPackageImport : ( ( rule__EPackageImport__Group__0 ) ) ; | ||
410 | public final void ruleEPackageImport() throws RecognitionException { | ||
411 | |||
412 | int stackSize = keepStackSize(); | ||
413 | |||
414 | try { | ||
415 | // InternalApplicationConfiguration.g:166:2: ( ( ( rule__EPackageImport__Group__0 ) ) ) | ||
416 | // InternalApplicationConfiguration.g:167:2: ( ( rule__EPackageImport__Group__0 ) ) | ||
417 | { | ||
418 | // InternalApplicationConfiguration.g:167:2: ( ( rule__EPackageImport__Group__0 ) ) | ||
419 | // InternalApplicationConfiguration.g:168:3: ( rule__EPackageImport__Group__0 ) | ||
420 | { | ||
421 | before(grammarAccess.getEPackageImportAccess().getGroup()); | ||
422 | // InternalApplicationConfiguration.g:169:3: ( rule__EPackageImport__Group__0 ) | ||
423 | // InternalApplicationConfiguration.g:169:4: rule__EPackageImport__Group__0 | ||
424 | { | ||
425 | pushFollow(FOLLOW_2); | ||
426 | rule__EPackageImport__Group__0(); | ||
427 | |||
428 | state._fsp--; | ||
429 | |||
430 | |||
431 | } | ||
432 | |||
433 | after(grammarAccess.getEPackageImportAccess().getGroup()); | ||
434 | |||
435 | } | ||
436 | |||
437 | |||
438 | } | ||
439 | |||
440 | } | ||
441 | catch (RecognitionException re) { | ||
442 | reportError(re); | ||
443 | recover(input,re); | ||
444 | } | ||
445 | finally { | ||
446 | |||
447 | restoreStackSize(stackSize); | ||
448 | |||
449 | } | ||
450 | return ; | ||
451 | } | ||
452 | // $ANTLR end "ruleEPackageImport" | ||
453 | |||
454 | |||
455 | // $ANTLR start "entryRuleViatraImport" | ||
456 | // InternalApplicationConfiguration.g:178:1: entryRuleViatraImport : ruleViatraImport EOF ; | ||
457 | public final void entryRuleViatraImport() throws RecognitionException { | ||
458 | try { | ||
459 | // InternalApplicationConfiguration.g:179:1: ( ruleViatraImport EOF ) | ||
460 | // InternalApplicationConfiguration.g:180:1: ruleViatraImport EOF | ||
461 | { | ||
462 | before(grammarAccess.getViatraImportRule()); | ||
463 | pushFollow(FOLLOW_1); | ||
464 | ruleViatraImport(); | ||
465 | |||
466 | state._fsp--; | ||
467 | |||
468 | after(grammarAccess.getViatraImportRule()); | ||
469 | match(input,EOF,FOLLOW_2); | ||
470 | |||
471 | } | ||
472 | |||
473 | } | ||
474 | catch (RecognitionException re) { | ||
475 | reportError(re); | ||
476 | recover(input,re); | ||
477 | } | ||
478 | finally { | ||
479 | } | ||
480 | return ; | ||
481 | } | ||
482 | // $ANTLR end "entryRuleViatraImport" | ||
483 | |||
484 | |||
485 | // $ANTLR start "ruleViatraImport" | ||
486 | // InternalApplicationConfiguration.g:187:1: ruleViatraImport : ( ( rule__ViatraImport__Group__0 ) ) ; | ||
487 | public final void ruleViatraImport() throws RecognitionException { | ||
488 | |||
489 | int stackSize = keepStackSize(); | ||
490 | |||
491 | try { | ||
492 | // InternalApplicationConfiguration.g:191:2: ( ( ( rule__ViatraImport__Group__0 ) ) ) | ||
493 | // InternalApplicationConfiguration.g:192:2: ( ( rule__ViatraImport__Group__0 ) ) | ||
494 | { | ||
495 | // InternalApplicationConfiguration.g:192:2: ( ( rule__ViatraImport__Group__0 ) ) | ||
496 | // InternalApplicationConfiguration.g:193:3: ( rule__ViatraImport__Group__0 ) | ||
497 | { | ||
498 | before(grammarAccess.getViatraImportAccess().getGroup()); | ||
499 | // InternalApplicationConfiguration.g:194:3: ( rule__ViatraImport__Group__0 ) | ||
500 | // InternalApplicationConfiguration.g:194:4: rule__ViatraImport__Group__0 | ||
501 | { | ||
502 | pushFollow(FOLLOW_2); | ||
503 | rule__ViatraImport__Group__0(); | ||
504 | |||
505 | state._fsp--; | ||
506 | |||
507 | |||
508 | } | ||
509 | |||
510 | after(grammarAccess.getViatraImportAccess().getGroup()); | ||
511 | |||
512 | } | ||
513 | |||
514 | |||
515 | } | ||
516 | |||
517 | } | ||
518 | catch (RecognitionException re) { | ||
519 | reportError(re); | ||
520 | recover(input,re); | ||
521 | } | ||
522 | finally { | ||
523 | |||
524 | restoreStackSize(stackSize); | ||
525 | |||
526 | } | ||
527 | return ; | ||
528 | } | ||
529 | // $ANTLR end "ruleViatraImport" | ||
530 | |||
531 | |||
532 | // $ANTLR start "entryRuleMetamodelSpecification" | ||
533 | // InternalApplicationConfiguration.g:203:1: entryRuleMetamodelSpecification : ruleMetamodelSpecification EOF ; | ||
534 | public final void entryRuleMetamodelSpecification() throws RecognitionException { | ||
535 | try { | ||
536 | // InternalApplicationConfiguration.g:204:1: ( ruleMetamodelSpecification EOF ) | ||
537 | // InternalApplicationConfiguration.g:205:1: ruleMetamodelSpecification EOF | ||
538 | { | ||
539 | before(grammarAccess.getMetamodelSpecificationRule()); | ||
540 | pushFollow(FOLLOW_1); | ||
541 | ruleMetamodelSpecification(); | ||
542 | |||
543 | state._fsp--; | ||
544 | |||
545 | after(grammarAccess.getMetamodelSpecificationRule()); | ||
546 | match(input,EOF,FOLLOW_2); | ||
547 | |||
548 | } | ||
549 | |||
550 | } | ||
551 | catch (RecognitionException re) { | ||
552 | reportError(re); | ||
553 | recover(input,re); | ||
554 | } | ||
555 | finally { | ||
556 | } | ||
557 | return ; | ||
558 | } | ||
559 | // $ANTLR end "entryRuleMetamodelSpecification" | ||
560 | |||
561 | |||
562 | // $ANTLR start "ruleMetamodelSpecification" | ||
563 | // InternalApplicationConfiguration.g:212:1: ruleMetamodelSpecification : ( ( rule__MetamodelSpecification__Group__0 ) ) ; | ||
564 | public final void ruleMetamodelSpecification() throws RecognitionException { | ||
565 | |||
566 | int stackSize = keepStackSize(); | ||
567 | |||
568 | try { | ||
569 | // InternalApplicationConfiguration.g:216:2: ( ( ( rule__MetamodelSpecification__Group__0 ) ) ) | ||
570 | // InternalApplicationConfiguration.g:217:2: ( ( rule__MetamodelSpecification__Group__0 ) ) | ||
571 | { | ||
572 | // InternalApplicationConfiguration.g:217:2: ( ( rule__MetamodelSpecification__Group__0 ) ) | ||
573 | // InternalApplicationConfiguration.g:218:3: ( rule__MetamodelSpecification__Group__0 ) | ||
574 | { | ||
575 | before(grammarAccess.getMetamodelSpecificationAccess().getGroup()); | ||
576 | // InternalApplicationConfiguration.g:219:3: ( rule__MetamodelSpecification__Group__0 ) | ||
577 | // InternalApplicationConfiguration.g:219:4: rule__MetamodelSpecification__Group__0 | ||
578 | { | ||
579 | pushFollow(FOLLOW_2); | ||
580 | rule__MetamodelSpecification__Group__0(); | ||
581 | |||
582 | state._fsp--; | ||
583 | |||
584 | |||
585 | } | ||
586 | |||
587 | after(grammarAccess.getMetamodelSpecificationAccess().getGroup()); | ||
588 | |||
589 | } | ||
590 | |||
591 | |||
592 | } | ||
593 | |||
594 | } | ||
595 | catch (RecognitionException re) { | ||
596 | reportError(re); | ||
597 | recover(input,re); | ||
598 | } | ||
599 | finally { | ||
600 | |||
601 | restoreStackSize(stackSize); | ||
602 | |||
603 | } | ||
604 | return ; | ||
605 | } | ||
606 | // $ANTLR end "ruleMetamodelSpecification" | ||
607 | |||
608 | |||
609 | // $ANTLR start "entryRuleMetamodelEntry" | ||
610 | // InternalApplicationConfiguration.g:228:1: entryRuleMetamodelEntry : ruleMetamodelEntry EOF ; | ||
611 | public final void entryRuleMetamodelEntry() throws RecognitionException { | ||
612 | try { | ||
613 | // InternalApplicationConfiguration.g:229:1: ( ruleMetamodelEntry EOF ) | ||
614 | // InternalApplicationConfiguration.g:230:1: ruleMetamodelEntry EOF | ||
615 | { | ||
616 | before(grammarAccess.getMetamodelEntryRule()); | ||
617 | pushFollow(FOLLOW_1); | ||
618 | ruleMetamodelEntry(); | ||
619 | |||
620 | state._fsp--; | ||
621 | |||
622 | after(grammarAccess.getMetamodelEntryRule()); | ||
623 | match(input,EOF,FOLLOW_2); | ||
624 | |||
625 | } | ||
626 | |||
627 | } | ||
628 | catch (RecognitionException re) { | ||
629 | reportError(re); | ||
630 | recover(input,re); | ||
631 | } | ||
632 | finally { | ||
633 | } | ||
634 | return ; | ||
635 | } | ||
636 | // $ANTLR end "entryRuleMetamodelEntry" | ||
637 | |||
638 | |||
639 | // $ANTLR start "ruleMetamodelEntry" | ||
640 | // InternalApplicationConfiguration.g:237:1: ruleMetamodelEntry : ( ( rule__MetamodelEntry__Alternatives ) ) ; | ||
641 | public final void ruleMetamodelEntry() throws RecognitionException { | ||
642 | |||
643 | int stackSize = keepStackSize(); | ||
644 | |||
645 | try { | ||
646 | // InternalApplicationConfiguration.g:241:2: ( ( ( rule__MetamodelEntry__Alternatives ) ) ) | ||
647 | // InternalApplicationConfiguration.g:242:2: ( ( rule__MetamodelEntry__Alternatives ) ) | ||
648 | { | ||
649 | // InternalApplicationConfiguration.g:242:2: ( ( rule__MetamodelEntry__Alternatives ) ) | ||
650 | // InternalApplicationConfiguration.g:243:3: ( rule__MetamodelEntry__Alternatives ) | ||
651 | { | ||
652 | before(grammarAccess.getMetamodelEntryAccess().getAlternatives()); | ||
653 | // InternalApplicationConfiguration.g:244:3: ( rule__MetamodelEntry__Alternatives ) | ||
654 | // InternalApplicationConfiguration.g:244:4: rule__MetamodelEntry__Alternatives | ||
655 | { | ||
656 | pushFollow(FOLLOW_2); | ||
657 | rule__MetamodelEntry__Alternatives(); | ||
658 | |||
659 | state._fsp--; | ||
660 | |||
661 | |||
662 | } | ||
663 | |||
664 | after(grammarAccess.getMetamodelEntryAccess().getAlternatives()); | ||
665 | |||
666 | } | ||
667 | |||
668 | |||
669 | } | ||
670 | |||
671 | } | ||
672 | catch (RecognitionException re) { | ||
673 | reportError(re); | ||
674 | recover(input,re); | ||
675 | } | ||
676 | finally { | ||
677 | |||
678 | restoreStackSize(stackSize); | ||
679 | |||
680 | } | ||
681 | return ; | ||
682 | } | ||
683 | // $ANTLR end "ruleMetamodelEntry" | ||
684 | |||
685 | |||
686 | // $ANTLR start "entryRuleAllPackageEntry" | ||
687 | // InternalApplicationConfiguration.g:253:1: entryRuleAllPackageEntry : ruleAllPackageEntry EOF ; | ||
688 | public final void entryRuleAllPackageEntry() throws RecognitionException { | ||
689 | try { | ||
690 | // InternalApplicationConfiguration.g:254:1: ( ruleAllPackageEntry EOF ) | ||
691 | // InternalApplicationConfiguration.g:255:1: ruleAllPackageEntry EOF | ||
692 | { | ||
693 | before(grammarAccess.getAllPackageEntryRule()); | ||
694 | pushFollow(FOLLOW_1); | ||
695 | ruleAllPackageEntry(); | ||
696 | |||
697 | state._fsp--; | ||
698 | |||
699 | after(grammarAccess.getAllPackageEntryRule()); | ||
700 | match(input,EOF,FOLLOW_2); | ||
701 | |||
702 | } | ||
703 | |||
704 | } | ||
705 | catch (RecognitionException re) { | ||
706 | reportError(re); | ||
707 | recover(input,re); | ||
708 | } | ||
709 | finally { | ||
710 | } | ||
711 | return ; | ||
712 | } | ||
713 | // $ANTLR end "entryRuleAllPackageEntry" | ||
714 | |||
715 | |||
716 | // $ANTLR start "ruleAllPackageEntry" | ||
717 | // InternalApplicationConfiguration.g:262:1: ruleAllPackageEntry : ( ( rule__AllPackageEntry__Group__0 ) ) ; | ||
718 | public final void ruleAllPackageEntry() throws RecognitionException { | ||
719 | |||
720 | int stackSize = keepStackSize(); | ||
721 | |||
722 | try { | ||
723 | // InternalApplicationConfiguration.g:266:2: ( ( ( rule__AllPackageEntry__Group__0 ) ) ) | ||
724 | // InternalApplicationConfiguration.g:267:2: ( ( rule__AllPackageEntry__Group__0 ) ) | ||
725 | { | ||
726 | // InternalApplicationConfiguration.g:267:2: ( ( rule__AllPackageEntry__Group__0 ) ) | ||
727 | // InternalApplicationConfiguration.g:268:3: ( rule__AllPackageEntry__Group__0 ) | ||
728 | { | ||
729 | before(grammarAccess.getAllPackageEntryAccess().getGroup()); | ||
730 | // InternalApplicationConfiguration.g:269:3: ( rule__AllPackageEntry__Group__0 ) | ||
731 | // InternalApplicationConfiguration.g:269:4: rule__AllPackageEntry__Group__0 | ||
732 | { | ||
733 | pushFollow(FOLLOW_2); | ||
734 | rule__AllPackageEntry__Group__0(); | ||
735 | |||
736 | state._fsp--; | ||
737 | |||
738 | |||
739 | } | ||
740 | |||
741 | after(grammarAccess.getAllPackageEntryAccess().getGroup()); | ||
742 | |||
743 | } | ||
744 | |||
745 | |||
746 | } | ||
747 | |||
748 | } | ||
749 | catch (RecognitionException re) { | ||
750 | reportError(re); | ||
751 | recover(input,re); | ||
752 | } | ||
753 | finally { | ||
754 | |||
755 | restoreStackSize(stackSize); | ||
756 | |||
757 | } | ||
758 | return ; | ||
759 | } | ||
760 | // $ANTLR end "ruleAllPackageEntry" | ||
761 | |||
762 | |||
763 | // $ANTLR start "entryRuleMetamodelElement" | ||
764 | // InternalApplicationConfiguration.g:278:1: entryRuleMetamodelElement : ruleMetamodelElement EOF ; | ||
765 | public final void entryRuleMetamodelElement() throws RecognitionException { | ||
766 | try { | ||
767 | // InternalApplicationConfiguration.g:279:1: ( ruleMetamodelElement EOF ) | ||
768 | // InternalApplicationConfiguration.g:280:1: ruleMetamodelElement EOF | ||
769 | { | ||
770 | before(grammarAccess.getMetamodelElementRule()); | ||
771 | pushFollow(FOLLOW_1); | ||
772 | ruleMetamodelElement(); | ||
773 | |||
774 | state._fsp--; | ||
775 | |||
776 | after(grammarAccess.getMetamodelElementRule()); | ||
777 | match(input,EOF,FOLLOW_2); | ||
778 | |||
779 | } | ||
780 | |||
781 | } | ||
782 | catch (RecognitionException re) { | ||
783 | reportError(re); | ||
784 | recover(input,re); | ||
785 | } | ||
786 | finally { | ||
787 | } | ||
788 | return ; | ||
789 | } | ||
790 | // $ANTLR end "entryRuleMetamodelElement" | ||
791 | |||
792 | |||
793 | // $ANTLR start "ruleMetamodelElement" | ||
794 | // InternalApplicationConfiguration.g:287:1: ruleMetamodelElement : ( ( rule__MetamodelElement__Group__0 ) ) ; | ||
795 | public final void ruleMetamodelElement() throws RecognitionException { | ||
796 | |||
797 | int stackSize = keepStackSize(); | ||
798 | |||
799 | try { | ||
800 | // InternalApplicationConfiguration.g:291:2: ( ( ( rule__MetamodelElement__Group__0 ) ) ) | ||
801 | // InternalApplicationConfiguration.g:292:2: ( ( rule__MetamodelElement__Group__0 ) ) | ||
802 | { | ||
803 | // InternalApplicationConfiguration.g:292:2: ( ( rule__MetamodelElement__Group__0 ) ) | ||
804 | // InternalApplicationConfiguration.g:293:3: ( rule__MetamodelElement__Group__0 ) | ||
805 | { | ||
806 | before(grammarAccess.getMetamodelElementAccess().getGroup()); | ||
807 | // InternalApplicationConfiguration.g:294:3: ( rule__MetamodelElement__Group__0 ) | ||
808 | // InternalApplicationConfiguration.g:294:4: rule__MetamodelElement__Group__0 | ||
809 | { | ||
810 | pushFollow(FOLLOW_2); | ||
811 | rule__MetamodelElement__Group__0(); | ||
812 | |||
813 | state._fsp--; | ||
814 | |||
815 | |||
816 | } | ||
817 | |||
818 | after(grammarAccess.getMetamodelElementAccess().getGroup()); | ||
819 | |||
820 | } | ||
821 | |||
822 | |||
823 | } | ||
824 | |||
825 | } | ||
826 | catch (RecognitionException re) { | ||
827 | reportError(re); | ||
828 | recover(input,re); | ||
829 | } | ||
830 | finally { | ||
831 | |||
832 | restoreStackSize(stackSize); | ||
833 | |||
834 | } | ||
835 | return ; | ||
836 | } | ||
837 | // $ANTLR end "ruleMetamodelElement" | ||
838 | |||
839 | |||
840 | // $ANTLR start "entryRuleMetamodelDeclaration" | ||
841 | // InternalApplicationConfiguration.g:303:1: entryRuleMetamodelDeclaration : ruleMetamodelDeclaration EOF ; | ||
842 | public final void entryRuleMetamodelDeclaration() throws RecognitionException { | ||
843 | try { | ||
844 | // InternalApplicationConfiguration.g:304:1: ( ruleMetamodelDeclaration EOF ) | ||
845 | // InternalApplicationConfiguration.g:305:1: ruleMetamodelDeclaration EOF | ||
846 | { | ||
847 | before(grammarAccess.getMetamodelDeclarationRule()); | ||
848 | pushFollow(FOLLOW_1); | ||
849 | ruleMetamodelDeclaration(); | ||
850 | |||
851 | state._fsp--; | ||
852 | |||
853 | after(grammarAccess.getMetamodelDeclarationRule()); | ||
854 | match(input,EOF,FOLLOW_2); | ||
855 | |||
856 | } | ||
857 | |||
858 | } | ||
859 | catch (RecognitionException re) { | ||
860 | reportError(re); | ||
861 | recover(input,re); | ||
862 | } | ||
863 | finally { | ||
864 | } | ||
865 | return ; | ||
866 | } | ||
867 | // $ANTLR end "entryRuleMetamodelDeclaration" | ||
868 | |||
869 | |||
870 | // $ANTLR start "ruleMetamodelDeclaration" | ||
871 | // InternalApplicationConfiguration.g:312:1: ruleMetamodelDeclaration : ( ( rule__MetamodelDeclaration__Group__0 ) ) ; | ||
872 | public final void ruleMetamodelDeclaration() throws RecognitionException { | ||
873 | |||
874 | int stackSize = keepStackSize(); | ||
875 | |||
876 | try { | ||
877 | // InternalApplicationConfiguration.g:316:2: ( ( ( rule__MetamodelDeclaration__Group__0 ) ) ) | ||
878 | // InternalApplicationConfiguration.g:317:2: ( ( rule__MetamodelDeclaration__Group__0 ) ) | ||
879 | { | ||
880 | // InternalApplicationConfiguration.g:317:2: ( ( rule__MetamodelDeclaration__Group__0 ) ) | ||
881 | // InternalApplicationConfiguration.g:318:3: ( rule__MetamodelDeclaration__Group__0 ) | ||
882 | { | ||
883 | before(grammarAccess.getMetamodelDeclarationAccess().getGroup()); | ||
884 | // InternalApplicationConfiguration.g:319:3: ( rule__MetamodelDeclaration__Group__0 ) | ||
885 | // InternalApplicationConfiguration.g:319:4: rule__MetamodelDeclaration__Group__0 | ||
886 | { | ||
887 | pushFollow(FOLLOW_2); | ||
888 | rule__MetamodelDeclaration__Group__0(); | ||
889 | |||
890 | state._fsp--; | ||
891 | |||
892 | |||
893 | } | ||
894 | |||
895 | after(grammarAccess.getMetamodelDeclarationAccess().getGroup()); | ||
896 | |||
897 | } | ||
898 | |||
899 | |||
900 | } | ||
901 | |||
902 | } | ||
903 | catch (RecognitionException re) { | ||
904 | reportError(re); | ||
905 | recover(input,re); | ||
906 | } | ||
907 | finally { | ||
908 | |||
909 | restoreStackSize(stackSize); | ||
910 | |||
911 | } | ||
912 | return ; | ||
913 | } | ||
914 | // $ANTLR end "ruleMetamodelDeclaration" | ||
915 | |||
916 | |||
917 | // $ANTLR start "entryRuleMetamodelReference" | ||
918 | // InternalApplicationConfiguration.g:328:1: entryRuleMetamodelReference : ruleMetamodelReference EOF ; | ||
919 | public final void entryRuleMetamodelReference() throws RecognitionException { | ||
920 | try { | ||
921 | // InternalApplicationConfiguration.g:329:1: ( ruleMetamodelReference EOF ) | ||
922 | // InternalApplicationConfiguration.g:330:1: ruleMetamodelReference EOF | ||
923 | { | ||
924 | before(grammarAccess.getMetamodelReferenceRule()); | ||
925 | pushFollow(FOLLOW_1); | ||
926 | ruleMetamodelReference(); | ||
927 | |||
928 | state._fsp--; | ||
929 | |||
930 | after(grammarAccess.getMetamodelReferenceRule()); | ||
931 | match(input,EOF,FOLLOW_2); | ||
932 | |||
933 | } | ||
934 | |||
935 | } | ||
936 | catch (RecognitionException re) { | ||
937 | reportError(re); | ||
938 | recover(input,re); | ||
939 | } | ||
940 | finally { | ||
941 | } | ||
942 | return ; | ||
943 | } | ||
944 | // $ANTLR end "entryRuleMetamodelReference" | ||
945 | |||
946 | |||
947 | // $ANTLR start "ruleMetamodelReference" | ||
948 | // InternalApplicationConfiguration.g:337:1: ruleMetamodelReference : ( ( rule__MetamodelReference__ReferredAssignment ) ) ; | ||
949 | public final void ruleMetamodelReference() throws RecognitionException { | ||
950 | |||
951 | int stackSize = keepStackSize(); | ||
952 | |||
953 | try { | ||
954 | // InternalApplicationConfiguration.g:341:2: ( ( ( rule__MetamodelReference__ReferredAssignment ) ) ) | ||
955 | // InternalApplicationConfiguration.g:342:2: ( ( rule__MetamodelReference__ReferredAssignment ) ) | ||
956 | { | ||
957 | // InternalApplicationConfiguration.g:342:2: ( ( rule__MetamodelReference__ReferredAssignment ) ) | ||
958 | // InternalApplicationConfiguration.g:343:3: ( rule__MetamodelReference__ReferredAssignment ) | ||
959 | { | ||
960 | before(grammarAccess.getMetamodelReferenceAccess().getReferredAssignment()); | ||
961 | // InternalApplicationConfiguration.g:344:3: ( rule__MetamodelReference__ReferredAssignment ) | ||
962 | // InternalApplicationConfiguration.g:344:4: rule__MetamodelReference__ReferredAssignment | ||
963 | { | ||
964 | pushFollow(FOLLOW_2); | ||
965 | rule__MetamodelReference__ReferredAssignment(); | ||
966 | |||
967 | state._fsp--; | ||
968 | |||
969 | |||
970 | } | ||
971 | |||
972 | after(grammarAccess.getMetamodelReferenceAccess().getReferredAssignment()); | ||
973 | |||
974 | } | ||
975 | |||
976 | |||
977 | } | ||
978 | |||
979 | } | ||
980 | catch (RecognitionException re) { | ||
981 | reportError(re); | ||
982 | recover(input,re); | ||
983 | } | ||
984 | finally { | ||
985 | |||
986 | restoreStackSize(stackSize); | ||
987 | |||
988 | } | ||
989 | return ; | ||
990 | } | ||
991 | // $ANTLR end "ruleMetamodelReference" | ||
992 | |||
993 | |||
994 | // $ANTLR start "rule__Import__Alternatives" | ||
995 | // InternalApplicationConfiguration.g:352:1: rule__Import__Alternatives : ( ( ruleEPackageImport ) | ( ruleViatraImport ) ); | ||
996 | public final void rule__Import__Alternatives() throws RecognitionException { | ||
997 | |||
998 | int stackSize = keepStackSize(); | ||
999 | |||
1000 | try { | ||
1001 | // InternalApplicationConfiguration.g:356:1: ( ( ruleEPackageImport ) | ( ruleViatraImport ) ) | ||
1002 | int alt1=2; | ||
1003 | int LA1_0 = input.LA(1); | ||
1004 | |||
1005 | if ( (LA1_0==11) ) { | ||
1006 | int LA1_1 = input.LA(2); | ||
1007 | |||
1008 | if ( (LA1_1==12) ) { | ||
1009 | alt1=1; | ||
1010 | } | ||
1011 | else if ( (LA1_1==13) ) { | ||
1012 | alt1=2; | ||
1013 | } | ||
1014 | else { | ||
1015 | NoViableAltException nvae = | ||
1016 | new NoViableAltException("", 1, 1, input); | ||
1017 | |||
1018 | throw nvae; | ||
1019 | } | ||
1020 | } | ||
1021 | else { | ||
1022 | NoViableAltException nvae = | ||
1023 | new NoViableAltException("", 1, 0, input); | ||
1024 | |||
1025 | throw nvae; | ||
1026 | } | ||
1027 | switch (alt1) { | ||
1028 | case 1 : | ||
1029 | // InternalApplicationConfiguration.g:357:2: ( ruleEPackageImport ) | ||
1030 | { | ||
1031 | // InternalApplicationConfiguration.g:357:2: ( ruleEPackageImport ) | ||
1032 | // InternalApplicationConfiguration.g:358:3: ruleEPackageImport | ||
1033 | { | ||
1034 | before(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); | ||
1035 | pushFollow(FOLLOW_2); | ||
1036 | ruleEPackageImport(); | ||
1037 | |||
1038 | state._fsp--; | ||
1039 | |||
1040 | after(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); | ||
1041 | |||
1042 | } | ||
1043 | |||
1044 | |||
1045 | } | ||
1046 | break; | ||
1047 | case 2 : | ||
1048 | // InternalApplicationConfiguration.g:363:2: ( ruleViatraImport ) | ||
1049 | { | ||
1050 | // InternalApplicationConfiguration.g:363:2: ( ruleViatraImport ) | ||
1051 | // InternalApplicationConfiguration.g:364:3: ruleViatraImport | ||
1052 | { | ||
1053 | before(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); | ||
1054 | pushFollow(FOLLOW_2); | ||
1055 | ruleViatraImport(); | ||
1056 | |||
1057 | state._fsp--; | ||
1058 | |||
1059 | after(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); | ||
1060 | |||
1061 | } | ||
1062 | |||
1063 | |||
1064 | } | ||
1065 | break; | ||
1066 | |||
1067 | } | ||
1068 | } | ||
1069 | catch (RecognitionException re) { | ||
1070 | reportError(re); | ||
1071 | recover(input,re); | ||
1072 | } | ||
1073 | finally { | ||
1074 | |||
1075 | restoreStackSize(stackSize); | ||
1076 | |||
1077 | } | ||
1078 | return ; | ||
1079 | } | ||
1080 | // $ANTLR end "rule__Import__Alternatives" | ||
1081 | |||
1082 | |||
1083 | // $ANTLR start "rule__MetamodelEntry__Alternatives" | ||
1084 | // InternalApplicationConfiguration.g:373:1: rule__MetamodelEntry__Alternatives : ( ( ruleMetamodelElement ) | ( ruleAllPackageEntry ) ); | ||
1085 | public final void rule__MetamodelEntry__Alternatives() throws RecognitionException { | ||
1086 | |||
1087 | int stackSize = keepStackSize(); | ||
1088 | |||
1089 | try { | ||
1090 | // InternalApplicationConfiguration.g:377:1: ( ( ruleMetamodelElement ) | ( ruleAllPackageEntry ) ) | ||
1091 | int alt2=2; | ||
1092 | int LA2_0 = input.LA(1); | ||
1093 | |||
1094 | if ( (LA2_0==RULE_ID) ) { | ||
1095 | alt2=1; | ||
1096 | } | ||
1097 | else if ( (LA2_0==17) ) { | ||
1098 | alt2=2; | ||
1099 | } | ||
1100 | else { | ||
1101 | NoViableAltException nvae = | ||
1102 | new NoViableAltException("", 2, 0, input); | ||
1103 | |||
1104 | throw nvae; | ||
1105 | } | ||
1106 | switch (alt2) { | ||
1107 | case 1 : | ||
1108 | // InternalApplicationConfiguration.g:378:2: ( ruleMetamodelElement ) | ||
1109 | { | ||
1110 | // InternalApplicationConfiguration.g:378:2: ( ruleMetamodelElement ) | ||
1111 | // InternalApplicationConfiguration.g:379:3: ruleMetamodelElement | ||
1112 | { | ||
1113 | before(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); | ||
1114 | pushFollow(FOLLOW_2); | ||
1115 | ruleMetamodelElement(); | ||
1116 | |||
1117 | state._fsp--; | ||
1118 | |||
1119 | after(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); | ||
1120 | |||
1121 | } | ||
1122 | |||
1123 | |||
1124 | } | ||
1125 | break; | ||
1126 | case 2 : | ||
1127 | // InternalApplicationConfiguration.g:384:2: ( ruleAllPackageEntry ) | ||
1128 | { | ||
1129 | // InternalApplicationConfiguration.g:384:2: ( ruleAllPackageEntry ) | ||
1130 | // InternalApplicationConfiguration.g:385:3: ruleAllPackageEntry | ||
1131 | { | ||
1132 | before(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); | ||
1133 | pushFollow(FOLLOW_2); | ||
1134 | ruleAllPackageEntry(); | ||
1135 | |||
1136 | state._fsp--; | ||
1137 | |||
1138 | after(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); | ||
1139 | |||
1140 | } | ||
1141 | |||
1142 | |||
1143 | } | ||
1144 | break; | ||
1145 | |||
1146 | } | ||
1147 | } | ||
1148 | catch (RecognitionException re) { | ||
1149 | reportError(re); | ||
1150 | recover(input,re); | ||
1151 | } | ||
1152 | finally { | ||
1153 | |||
1154 | restoreStackSize(stackSize); | ||
1155 | |||
1156 | } | ||
1157 | return ; | ||
1158 | } | ||
1159 | // $ANTLR end "rule__MetamodelEntry__Alternatives" | ||
1160 | |||
1161 | |||
1162 | // $ANTLR start "rule__ConfigurationScript__Group__0" | ||
1163 | // InternalApplicationConfiguration.g:394:1: rule__ConfigurationScript__Group__0 : rule__ConfigurationScript__Group__0__Impl rule__ConfigurationScript__Group__1 ; | ||
1164 | public final void rule__ConfigurationScript__Group__0() throws RecognitionException { | ||
1165 | |||
1166 | int stackSize = keepStackSize(); | ||
1167 | |||
1168 | try { | ||
1169 | // InternalApplicationConfiguration.g:398:1: ( rule__ConfigurationScript__Group__0__Impl rule__ConfigurationScript__Group__1 ) | ||
1170 | // InternalApplicationConfiguration.g:399:2: rule__ConfigurationScript__Group__0__Impl rule__ConfigurationScript__Group__1 | ||
1171 | { | ||
1172 | pushFollow(FOLLOW_3); | ||
1173 | rule__ConfigurationScript__Group__0__Impl(); | ||
1174 | |||
1175 | state._fsp--; | ||
1176 | |||
1177 | pushFollow(FOLLOW_2); | ||
1178 | rule__ConfigurationScript__Group__1(); | ||
1179 | |||
1180 | state._fsp--; | ||
1181 | |||
1182 | |||
1183 | } | ||
1184 | |||
1185 | } | ||
1186 | catch (RecognitionException re) { | ||
1187 | reportError(re); | ||
1188 | recover(input,re); | ||
1189 | } | ||
1190 | finally { | ||
1191 | |||
1192 | restoreStackSize(stackSize); | ||
1193 | |||
1194 | } | ||
1195 | return ; | ||
1196 | } | ||
1197 | // $ANTLR end "rule__ConfigurationScript__Group__0" | ||
1198 | |||
1199 | |||
1200 | // $ANTLR start "rule__ConfigurationScript__Group__0__Impl" | ||
1201 | // InternalApplicationConfiguration.g:406:1: rule__ConfigurationScript__Group__0__Impl : ( ( rule__ConfigurationScript__ImportsAssignment_0 )* ) ; | ||
1202 | public final void rule__ConfigurationScript__Group__0__Impl() throws RecognitionException { | ||
1203 | |||
1204 | int stackSize = keepStackSize(); | ||
1205 | |||
1206 | try { | ||
1207 | // InternalApplicationConfiguration.g:410:1: ( ( ( rule__ConfigurationScript__ImportsAssignment_0 )* ) ) | ||
1208 | // InternalApplicationConfiguration.g:411:1: ( ( rule__ConfigurationScript__ImportsAssignment_0 )* ) | ||
1209 | { | ||
1210 | // InternalApplicationConfiguration.g:411:1: ( ( rule__ConfigurationScript__ImportsAssignment_0 )* ) | ||
1211 | // InternalApplicationConfiguration.g:412:2: ( rule__ConfigurationScript__ImportsAssignment_0 )* | ||
1212 | { | ||
1213 | before(grammarAccess.getConfigurationScriptAccess().getImportsAssignment_0()); | ||
1214 | // InternalApplicationConfiguration.g:413:2: ( rule__ConfigurationScript__ImportsAssignment_0 )* | ||
1215 | loop3: | ||
1216 | do { | ||
1217 | int alt3=2; | ||
1218 | int LA3_0 = input.LA(1); | ||
1219 | |||
1220 | if ( (LA3_0==11) ) { | ||
1221 | alt3=1; | ||
1222 | } | ||
1223 | |||
1224 | |||
1225 | switch (alt3) { | ||
1226 | case 1 : | ||
1227 | // InternalApplicationConfiguration.g:413:3: rule__ConfigurationScript__ImportsAssignment_0 | ||
1228 | { | ||
1229 | pushFollow(FOLLOW_4); | ||
1230 | rule__ConfigurationScript__ImportsAssignment_0(); | ||
1231 | |||
1232 | state._fsp--; | ||
1233 | |||
1234 | |||
1235 | } | ||
1236 | break; | ||
1237 | |||
1238 | default : | ||
1239 | break loop3; | ||
1240 | } | ||
1241 | } while (true); | ||
1242 | |||
1243 | after(grammarAccess.getConfigurationScriptAccess().getImportsAssignment_0()); | ||
1244 | |||
1245 | } | ||
1246 | |||
1247 | |||
1248 | } | ||
1249 | |||
1250 | } | ||
1251 | catch (RecognitionException re) { | ||
1252 | reportError(re); | ||
1253 | recover(input,re); | ||
1254 | } | ||
1255 | finally { | ||
1256 | |||
1257 | restoreStackSize(stackSize); | ||
1258 | |||
1259 | } | ||
1260 | return ; | ||
1261 | } | ||
1262 | // $ANTLR end "rule__ConfigurationScript__Group__0__Impl" | ||
1263 | |||
1264 | |||
1265 | // $ANTLR start "rule__ConfigurationScript__Group__1" | ||
1266 | // InternalApplicationConfiguration.g:421:1: rule__ConfigurationScript__Group__1 : rule__ConfigurationScript__Group__1__Impl ; | ||
1267 | public final void rule__ConfigurationScript__Group__1() throws RecognitionException { | ||
1268 | |||
1269 | int stackSize = keepStackSize(); | ||
1270 | |||
1271 | try { | ||
1272 | // InternalApplicationConfiguration.g:425:1: ( rule__ConfigurationScript__Group__1__Impl ) | ||
1273 | // InternalApplicationConfiguration.g:426:2: rule__ConfigurationScript__Group__1__Impl | ||
1274 | { | ||
1275 | pushFollow(FOLLOW_2); | ||
1276 | rule__ConfigurationScript__Group__1__Impl(); | ||
1277 | |||
1278 | state._fsp--; | ||
1279 | |||
1280 | |||
1281 | } | ||
1282 | |||
1283 | } | ||
1284 | catch (RecognitionException re) { | ||
1285 | reportError(re); | ||
1286 | recover(input,re); | ||
1287 | } | ||
1288 | finally { | ||
1289 | |||
1290 | restoreStackSize(stackSize); | ||
1291 | |||
1292 | } | ||
1293 | return ; | ||
1294 | } | ||
1295 | // $ANTLR end "rule__ConfigurationScript__Group__1" | ||
1296 | |||
1297 | |||
1298 | // $ANTLR start "rule__ConfigurationScript__Group__1__Impl" | ||
1299 | // InternalApplicationConfiguration.g:432:1: rule__ConfigurationScript__Group__1__Impl : ( ( rule__ConfigurationScript__CommandsAssignment_1 )* ) ; | ||
1300 | public final void rule__ConfigurationScript__Group__1__Impl() throws RecognitionException { | ||
1301 | |||
1302 | int stackSize = keepStackSize(); | ||
1303 | |||
1304 | try { | ||
1305 | // InternalApplicationConfiguration.g:436:1: ( ( ( rule__ConfigurationScript__CommandsAssignment_1 )* ) ) | ||
1306 | // InternalApplicationConfiguration.g:437:1: ( ( rule__ConfigurationScript__CommandsAssignment_1 )* ) | ||
1307 | { | ||
1308 | // InternalApplicationConfiguration.g:437:1: ( ( rule__ConfigurationScript__CommandsAssignment_1 )* ) | ||
1309 | // InternalApplicationConfiguration.g:438:2: ( rule__ConfigurationScript__CommandsAssignment_1 )* | ||
1310 | { | ||
1311 | before(grammarAccess.getConfigurationScriptAccess().getCommandsAssignment_1()); | ||
1312 | // InternalApplicationConfiguration.g:439:2: ( rule__ConfigurationScript__CommandsAssignment_1 )* | ||
1313 | loop4: | ||
1314 | do { | ||
1315 | int alt4=2; | ||
1316 | int LA4_0 = input.LA(1); | ||
1317 | |||
1318 | if ( (LA4_0==21) ) { | ||
1319 | alt4=1; | ||
1320 | } | ||
1321 | |||
1322 | |||
1323 | switch (alt4) { | ||
1324 | case 1 : | ||
1325 | // InternalApplicationConfiguration.g:439:3: rule__ConfigurationScript__CommandsAssignment_1 | ||
1326 | { | ||
1327 | pushFollow(FOLLOW_5); | ||
1328 | rule__ConfigurationScript__CommandsAssignment_1(); | ||
1329 | |||
1330 | state._fsp--; | ||
1331 | |||
1332 | |||
1333 | } | ||
1334 | break; | ||
1335 | |||
1336 | default : | ||
1337 | break loop4; | ||
1338 | } | ||
1339 | } while (true); | ||
1340 | |||
1341 | after(grammarAccess.getConfigurationScriptAccess().getCommandsAssignment_1()); | ||
1342 | |||
1343 | } | ||
1344 | |||
1345 | |||
1346 | } | ||
1347 | |||
1348 | } | ||
1349 | catch (RecognitionException re) { | ||
1350 | reportError(re); | ||
1351 | recover(input,re); | ||
1352 | } | ||
1353 | finally { | ||
1354 | |||
1355 | restoreStackSize(stackSize); | ||
1356 | |||
1357 | } | ||
1358 | return ; | ||
1359 | } | ||
1360 | // $ANTLR end "rule__ConfigurationScript__Group__1__Impl" | ||
1361 | |||
1362 | |||
1363 | // $ANTLR start "rule__EPackageImport__Group__0" | ||
1364 | // InternalApplicationConfiguration.g:448:1: rule__EPackageImport__Group__0 : rule__EPackageImport__Group__0__Impl rule__EPackageImport__Group__1 ; | ||
1365 | public final void rule__EPackageImport__Group__0() throws RecognitionException { | ||
1366 | |||
1367 | int stackSize = keepStackSize(); | ||
1368 | |||
1369 | try { | ||
1370 | // InternalApplicationConfiguration.g:452:1: ( rule__EPackageImport__Group__0__Impl rule__EPackageImport__Group__1 ) | ||
1371 | // InternalApplicationConfiguration.g:453:2: rule__EPackageImport__Group__0__Impl rule__EPackageImport__Group__1 | ||
1372 | { | ||
1373 | pushFollow(FOLLOW_6); | ||
1374 | rule__EPackageImport__Group__0__Impl(); | ||
1375 | |||
1376 | state._fsp--; | ||
1377 | |||
1378 | pushFollow(FOLLOW_2); | ||
1379 | rule__EPackageImport__Group__1(); | ||
1380 | |||
1381 | state._fsp--; | ||
1382 | |||
1383 | |||
1384 | } | ||
1385 | |||
1386 | } | ||
1387 | catch (RecognitionException re) { | ||
1388 | reportError(re); | ||
1389 | recover(input,re); | ||
1390 | } | ||
1391 | finally { | ||
1392 | |||
1393 | restoreStackSize(stackSize); | ||
1394 | |||
1395 | } | ||
1396 | return ; | ||
1397 | } | ||
1398 | // $ANTLR end "rule__EPackageImport__Group__0" | ||
1399 | |||
1400 | |||
1401 | // $ANTLR start "rule__EPackageImport__Group__0__Impl" | ||
1402 | // InternalApplicationConfiguration.g:460:1: rule__EPackageImport__Group__0__Impl : ( 'import' ) ; | ||
1403 | public final void rule__EPackageImport__Group__0__Impl() throws RecognitionException { | ||
1404 | |||
1405 | int stackSize = keepStackSize(); | ||
1406 | |||
1407 | try { | ||
1408 | // InternalApplicationConfiguration.g:464:1: ( ( 'import' ) ) | ||
1409 | // InternalApplicationConfiguration.g:465:1: ( 'import' ) | ||
1410 | { | ||
1411 | // InternalApplicationConfiguration.g:465:1: ( 'import' ) | ||
1412 | // InternalApplicationConfiguration.g:466:2: 'import' | ||
1413 | { | ||
1414 | before(grammarAccess.getEPackageImportAccess().getImportKeyword_0()); | ||
1415 | match(input,11,FOLLOW_2); | ||
1416 | after(grammarAccess.getEPackageImportAccess().getImportKeyword_0()); | ||
1417 | |||
1418 | } | ||
1419 | |||
1420 | |||
1421 | } | ||
1422 | |||
1423 | } | ||
1424 | catch (RecognitionException re) { | ||
1425 | reportError(re); | ||
1426 | recover(input,re); | ||
1427 | } | ||
1428 | finally { | ||
1429 | |||
1430 | restoreStackSize(stackSize); | ||
1431 | |||
1432 | } | ||
1433 | return ; | ||
1434 | } | ||
1435 | // $ANTLR end "rule__EPackageImport__Group__0__Impl" | ||
1436 | |||
1437 | |||
1438 | // $ANTLR start "rule__EPackageImport__Group__1" | ||
1439 | // InternalApplicationConfiguration.g:475:1: rule__EPackageImport__Group__1 : rule__EPackageImport__Group__1__Impl rule__EPackageImport__Group__2 ; | ||
1440 | public final void rule__EPackageImport__Group__1() throws RecognitionException { | ||
1441 | |||
1442 | int stackSize = keepStackSize(); | ||
1443 | |||
1444 | try { | ||
1445 | // InternalApplicationConfiguration.g:479:1: ( rule__EPackageImport__Group__1__Impl rule__EPackageImport__Group__2 ) | ||
1446 | // InternalApplicationConfiguration.g:480:2: rule__EPackageImport__Group__1__Impl rule__EPackageImport__Group__2 | ||
1447 | { | ||
1448 | pushFollow(FOLLOW_7); | ||
1449 | rule__EPackageImport__Group__1__Impl(); | ||
1450 | |||
1451 | state._fsp--; | ||
1452 | |||
1453 | pushFollow(FOLLOW_2); | ||
1454 | rule__EPackageImport__Group__2(); | ||
1455 | |||
1456 | state._fsp--; | ||
1457 | |||
1458 | |||
1459 | } | ||
1460 | |||
1461 | } | ||
1462 | catch (RecognitionException re) { | ||
1463 | reportError(re); | ||
1464 | recover(input,re); | ||
1465 | } | ||
1466 | finally { | ||
1467 | |||
1468 | restoreStackSize(stackSize); | ||
1469 | |||
1470 | } | ||
1471 | return ; | ||
1472 | } | ||
1473 | // $ANTLR end "rule__EPackageImport__Group__1" | ||
1474 | |||
1475 | |||
1476 | // $ANTLR start "rule__EPackageImport__Group__1__Impl" | ||
1477 | // InternalApplicationConfiguration.g:487:1: rule__EPackageImport__Group__1__Impl : ( 'epackage' ) ; | ||
1478 | public final void rule__EPackageImport__Group__1__Impl() throws RecognitionException { | ||
1479 | |||
1480 | int stackSize = keepStackSize(); | ||
1481 | |||
1482 | try { | ||
1483 | // InternalApplicationConfiguration.g:491:1: ( ( 'epackage' ) ) | ||
1484 | // InternalApplicationConfiguration.g:492:1: ( 'epackage' ) | ||
1485 | { | ||
1486 | // InternalApplicationConfiguration.g:492:1: ( 'epackage' ) | ||
1487 | // InternalApplicationConfiguration.g:493:2: 'epackage' | ||
1488 | { | ||
1489 | before(grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); | ||
1490 | match(input,12,FOLLOW_2); | ||
1491 | after(grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); | ||
1492 | |||
1493 | } | ||
1494 | |||
1495 | |||
1496 | } | ||
1497 | |||
1498 | } | ||
1499 | catch (RecognitionException re) { | ||
1500 | reportError(re); | ||
1501 | recover(input,re); | ||
1502 | } | ||
1503 | finally { | ||
1504 | |||
1505 | restoreStackSize(stackSize); | ||
1506 | |||
1507 | } | ||
1508 | return ; | ||
1509 | } | ||
1510 | // $ANTLR end "rule__EPackageImport__Group__1__Impl" | ||
1511 | |||
1512 | |||
1513 | // $ANTLR start "rule__EPackageImport__Group__2" | ||
1514 | // InternalApplicationConfiguration.g:502:1: rule__EPackageImport__Group__2 : rule__EPackageImport__Group__2__Impl ; | ||
1515 | public final void rule__EPackageImport__Group__2() throws RecognitionException { | ||
1516 | |||
1517 | int stackSize = keepStackSize(); | ||
1518 | |||
1519 | try { | ||
1520 | // InternalApplicationConfiguration.g:506:1: ( rule__EPackageImport__Group__2__Impl ) | ||
1521 | // InternalApplicationConfiguration.g:507:2: rule__EPackageImport__Group__2__Impl | ||
1522 | { | ||
1523 | pushFollow(FOLLOW_2); | ||
1524 | rule__EPackageImport__Group__2__Impl(); | ||
1525 | |||
1526 | state._fsp--; | ||
1527 | |||
1528 | |||
1529 | } | ||
1530 | |||
1531 | } | ||
1532 | catch (RecognitionException re) { | ||
1533 | reportError(re); | ||
1534 | recover(input,re); | ||
1535 | } | ||
1536 | finally { | ||
1537 | |||
1538 | restoreStackSize(stackSize); | ||
1539 | |||
1540 | } | ||
1541 | return ; | ||
1542 | } | ||
1543 | // $ANTLR end "rule__EPackageImport__Group__2" | ||
1544 | |||
1545 | |||
1546 | // $ANTLR start "rule__EPackageImport__Group__2__Impl" | ||
1547 | // InternalApplicationConfiguration.g:513:1: rule__EPackageImport__Group__2__Impl : ( ( rule__EPackageImport__ImportedPackageAssignment_2 ) ) ; | ||
1548 | public final void rule__EPackageImport__Group__2__Impl() throws RecognitionException { | ||
1549 | |||
1550 | int stackSize = keepStackSize(); | ||
1551 | |||
1552 | try { | ||
1553 | // InternalApplicationConfiguration.g:517:1: ( ( ( rule__EPackageImport__ImportedPackageAssignment_2 ) ) ) | ||
1554 | // InternalApplicationConfiguration.g:518:1: ( ( rule__EPackageImport__ImportedPackageAssignment_2 ) ) | ||
1555 | { | ||
1556 | // InternalApplicationConfiguration.g:518:1: ( ( rule__EPackageImport__ImportedPackageAssignment_2 ) ) | ||
1557 | // InternalApplicationConfiguration.g:519:2: ( rule__EPackageImport__ImportedPackageAssignment_2 ) | ||
1558 | { | ||
1559 | before(grammarAccess.getEPackageImportAccess().getImportedPackageAssignment_2()); | ||
1560 | // InternalApplicationConfiguration.g:520:2: ( rule__EPackageImport__ImportedPackageAssignment_2 ) | ||
1561 | // InternalApplicationConfiguration.g:520:3: rule__EPackageImport__ImportedPackageAssignment_2 | ||
1562 | { | ||
1563 | pushFollow(FOLLOW_2); | ||
1564 | rule__EPackageImport__ImportedPackageAssignment_2(); | ||
1565 | |||
1566 | state._fsp--; | ||
1567 | |||
1568 | |||
1569 | } | ||
1570 | |||
1571 | after(grammarAccess.getEPackageImportAccess().getImportedPackageAssignment_2()); | ||
1572 | |||
1573 | } | ||
1574 | |||
1575 | |||
1576 | } | ||
1577 | |||
1578 | } | ||
1579 | catch (RecognitionException re) { | ||
1580 | reportError(re); | ||
1581 | recover(input,re); | ||
1582 | } | ||
1583 | finally { | ||
1584 | |||
1585 | restoreStackSize(stackSize); | ||
1586 | |||
1587 | } | ||
1588 | return ; | ||
1589 | } | ||
1590 | // $ANTLR end "rule__EPackageImport__Group__2__Impl" | ||
1591 | |||
1592 | |||
1593 | // $ANTLR start "rule__ViatraImport__Group__0" | ||
1594 | // InternalApplicationConfiguration.g:529:1: rule__ViatraImport__Group__0 : rule__ViatraImport__Group__0__Impl rule__ViatraImport__Group__1 ; | ||
1595 | public final void rule__ViatraImport__Group__0() throws RecognitionException { | ||
1596 | |||
1597 | int stackSize = keepStackSize(); | ||
1598 | |||
1599 | try { | ||
1600 | // InternalApplicationConfiguration.g:533:1: ( rule__ViatraImport__Group__0__Impl rule__ViatraImport__Group__1 ) | ||
1601 | // InternalApplicationConfiguration.g:534:2: rule__ViatraImport__Group__0__Impl rule__ViatraImport__Group__1 | ||
1602 | { | ||
1603 | pushFollow(FOLLOW_8); | ||
1604 | rule__ViatraImport__Group__0__Impl(); | ||
1605 | |||
1606 | state._fsp--; | ||
1607 | |||
1608 | pushFollow(FOLLOW_2); | ||
1609 | rule__ViatraImport__Group__1(); | ||
1610 | |||
1611 | state._fsp--; | ||
1612 | |||
1613 | |||
1614 | } | ||
1615 | |||
1616 | } | ||
1617 | catch (RecognitionException re) { | ||
1618 | reportError(re); | ||
1619 | recover(input,re); | ||
1620 | } | ||
1621 | finally { | ||
1622 | |||
1623 | restoreStackSize(stackSize); | ||
1624 | |||
1625 | } | ||
1626 | return ; | ||
1627 | } | ||
1628 | // $ANTLR end "rule__ViatraImport__Group__0" | ||
1629 | |||
1630 | |||
1631 | // $ANTLR start "rule__ViatraImport__Group__0__Impl" | ||
1632 | // InternalApplicationConfiguration.g:541:1: rule__ViatraImport__Group__0__Impl : ( 'import' ) ; | ||
1633 | public final void rule__ViatraImport__Group__0__Impl() throws RecognitionException { | ||
1634 | |||
1635 | int stackSize = keepStackSize(); | ||
1636 | |||
1637 | try { | ||
1638 | // InternalApplicationConfiguration.g:545:1: ( ( 'import' ) ) | ||
1639 | // InternalApplicationConfiguration.g:546:1: ( 'import' ) | ||
1640 | { | ||
1641 | // InternalApplicationConfiguration.g:546:1: ( 'import' ) | ||
1642 | // InternalApplicationConfiguration.g:547:2: 'import' | ||
1643 | { | ||
1644 | before(grammarAccess.getViatraImportAccess().getImportKeyword_0()); | ||
1645 | match(input,11,FOLLOW_2); | ||
1646 | after(grammarAccess.getViatraImportAccess().getImportKeyword_0()); | ||
1647 | |||
1648 | } | ||
1649 | |||
1650 | |||
1651 | } | ||
1652 | |||
1653 | } | ||
1654 | catch (RecognitionException re) { | ||
1655 | reportError(re); | ||
1656 | recover(input,re); | ||
1657 | } | ||
1658 | finally { | ||
1659 | |||
1660 | restoreStackSize(stackSize); | ||
1661 | |||
1662 | } | ||
1663 | return ; | ||
1664 | } | ||
1665 | // $ANTLR end "rule__ViatraImport__Group__0__Impl" | ||
1666 | |||
1667 | |||
1668 | // $ANTLR start "rule__ViatraImport__Group__1" | ||
1669 | // InternalApplicationConfiguration.g:556:1: rule__ViatraImport__Group__1 : rule__ViatraImport__Group__1__Impl rule__ViatraImport__Group__2 ; | ||
1670 | public final void rule__ViatraImport__Group__1() throws RecognitionException { | ||
1671 | |||
1672 | int stackSize = keepStackSize(); | ||
1673 | |||
1674 | try { | ||
1675 | // InternalApplicationConfiguration.g:560:1: ( rule__ViatraImport__Group__1__Impl rule__ViatraImport__Group__2 ) | ||
1676 | // InternalApplicationConfiguration.g:561:2: rule__ViatraImport__Group__1__Impl rule__ViatraImport__Group__2 | ||
1677 | { | ||
1678 | pushFollow(FOLLOW_7); | ||
1679 | rule__ViatraImport__Group__1__Impl(); | ||
1680 | |||
1681 | state._fsp--; | ||
1682 | |||
1683 | pushFollow(FOLLOW_2); | ||
1684 | rule__ViatraImport__Group__2(); | ||
1685 | |||
1686 | state._fsp--; | ||
1687 | |||
1688 | |||
1689 | } | ||
1690 | |||
1691 | } | ||
1692 | catch (RecognitionException re) { | ||
1693 | reportError(re); | ||
1694 | recover(input,re); | ||
1695 | } | ||
1696 | finally { | ||
1697 | |||
1698 | restoreStackSize(stackSize); | ||
1699 | |||
1700 | } | ||
1701 | return ; | ||
1702 | } | ||
1703 | // $ANTLR end "rule__ViatraImport__Group__1" | ||
1704 | |||
1705 | |||
1706 | // $ANTLR start "rule__ViatraImport__Group__1__Impl" | ||
1707 | // InternalApplicationConfiguration.g:568:1: rule__ViatraImport__Group__1__Impl : ( 'viatra' ) ; | ||
1708 | public final void rule__ViatraImport__Group__1__Impl() throws RecognitionException { | ||
1709 | |||
1710 | int stackSize = keepStackSize(); | ||
1711 | |||
1712 | try { | ||
1713 | // InternalApplicationConfiguration.g:572:1: ( ( 'viatra' ) ) | ||
1714 | // InternalApplicationConfiguration.g:573:1: ( 'viatra' ) | ||
1715 | { | ||
1716 | // InternalApplicationConfiguration.g:573:1: ( 'viatra' ) | ||
1717 | // InternalApplicationConfiguration.g:574:2: 'viatra' | ||
1718 | { | ||
1719 | before(grammarAccess.getViatraImportAccess().getViatraKeyword_1()); | ||
1720 | match(input,13,FOLLOW_2); | ||
1721 | after(grammarAccess.getViatraImportAccess().getViatraKeyword_1()); | ||
1722 | |||
1723 | } | ||
1724 | |||
1725 | |||
1726 | } | ||
1727 | |||
1728 | } | ||
1729 | catch (RecognitionException re) { | ||
1730 | reportError(re); | ||
1731 | recover(input,re); | ||
1732 | } | ||
1733 | finally { | ||
1734 | |||
1735 | restoreStackSize(stackSize); | ||
1736 | |||
1737 | } | ||
1738 | return ; | ||
1739 | } | ||
1740 | // $ANTLR end "rule__ViatraImport__Group__1__Impl" | ||
1741 | |||
1742 | |||
1743 | // $ANTLR start "rule__ViatraImport__Group__2" | ||
1744 | // InternalApplicationConfiguration.g:583:1: rule__ViatraImport__Group__2 : rule__ViatraImport__Group__2__Impl ; | ||
1745 | public final void rule__ViatraImport__Group__2() throws RecognitionException { | ||
1746 | |||
1747 | int stackSize = keepStackSize(); | ||
1748 | |||
1749 | try { | ||
1750 | // InternalApplicationConfiguration.g:587:1: ( rule__ViatraImport__Group__2__Impl ) | ||
1751 | // InternalApplicationConfiguration.g:588:2: rule__ViatraImport__Group__2__Impl | ||
1752 | { | ||
1753 | pushFollow(FOLLOW_2); | ||
1754 | rule__ViatraImport__Group__2__Impl(); | ||
1755 | |||
1756 | state._fsp--; | ||
1757 | |||
1758 | |||
1759 | } | ||
1760 | |||
1761 | } | ||
1762 | catch (RecognitionException re) { | ||
1763 | reportError(re); | ||
1764 | recover(input,re); | ||
1765 | } | ||
1766 | finally { | ||
1767 | |||
1768 | restoreStackSize(stackSize); | ||
1769 | |||
1770 | } | ||
1771 | return ; | ||
1772 | } | ||
1773 | // $ANTLR end "rule__ViatraImport__Group__2" | ||
1774 | |||
1775 | |||
1776 | // $ANTLR start "rule__ViatraImport__Group__2__Impl" | ||
1777 | // InternalApplicationConfiguration.g:594:1: rule__ViatraImport__Group__2__Impl : ( ( rule__ViatraImport__ImportedViatraAssignment_2 ) ) ; | ||
1778 | public final void rule__ViatraImport__Group__2__Impl() throws RecognitionException { | ||
1779 | |||
1780 | int stackSize = keepStackSize(); | ||
1781 | |||
1782 | try { | ||
1783 | // InternalApplicationConfiguration.g:598:1: ( ( ( rule__ViatraImport__ImportedViatraAssignment_2 ) ) ) | ||
1784 | // InternalApplicationConfiguration.g:599:1: ( ( rule__ViatraImport__ImportedViatraAssignment_2 ) ) | ||
1785 | { | ||
1786 | // InternalApplicationConfiguration.g:599:1: ( ( rule__ViatraImport__ImportedViatraAssignment_2 ) ) | ||
1787 | // InternalApplicationConfiguration.g:600:2: ( rule__ViatraImport__ImportedViatraAssignment_2 ) | ||
1788 | { | ||
1789 | before(grammarAccess.getViatraImportAccess().getImportedViatraAssignment_2()); | ||
1790 | // InternalApplicationConfiguration.g:601:2: ( rule__ViatraImport__ImportedViatraAssignment_2 ) | ||
1791 | // InternalApplicationConfiguration.g:601:3: rule__ViatraImport__ImportedViatraAssignment_2 | ||
1792 | { | ||
1793 | pushFollow(FOLLOW_2); | ||
1794 | rule__ViatraImport__ImportedViatraAssignment_2(); | ||
1795 | |||
1796 | state._fsp--; | ||
1797 | |||
1798 | |||
1799 | } | ||
1800 | |||
1801 | after(grammarAccess.getViatraImportAccess().getImportedViatraAssignment_2()); | ||
1802 | |||
1803 | } | ||
1804 | |||
1805 | |||
1806 | } | ||
1807 | |||
1808 | } | ||
1809 | catch (RecognitionException re) { | ||
1810 | reportError(re); | ||
1811 | recover(input,re); | ||
1812 | } | ||
1813 | finally { | ||
1814 | |||
1815 | restoreStackSize(stackSize); | ||
1816 | |||
1817 | } | ||
1818 | return ; | ||
1819 | } | ||
1820 | // $ANTLR end "rule__ViatraImport__Group__2__Impl" | ||
1821 | |||
1822 | |||
1823 | // $ANTLR start "rule__MetamodelSpecification__Group__0" | ||
1824 | // InternalApplicationConfiguration.g:610:1: rule__MetamodelSpecification__Group__0 : rule__MetamodelSpecification__Group__0__Impl rule__MetamodelSpecification__Group__1 ; | ||
1825 | public final void rule__MetamodelSpecification__Group__0() throws RecognitionException { | ||
1826 | |||
1827 | int stackSize = keepStackSize(); | ||
1828 | |||
1829 | try { | ||
1830 | // InternalApplicationConfiguration.g:614:1: ( rule__MetamodelSpecification__Group__0__Impl rule__MetamodelSpecification__Group__1 ) | ||
1831 | // InternalApplicationConfiguration.g:615:2: rule__MetamodelSpecification__Group__0__Impl rule__MetamodelSpecification__Group__1 | ||
1832 | { | ||
1833 | pushFollow(FOLLOW_9); | ||
1834 | rule__MetamodelSpecification__Group__0__Impl(); | ||
1835 | |||
1836 | state._fsp--; | ||
1837 | |||
1838 | pushFollow(FOLLOW_2); | ||
1839 | rule__MetamodelSpecification__Group__1(); | ||
1840 | |||
1841 | state._fsp--; | ||
1842 | |||
1843 | |||
1844 | } | ||
1845 | |||
1846 | } | ||
1847 | catch (RecognitionException re) { | ||
1848 | reportError(re); | ||
1849 | recover(input,re); | ||
1850 | } | ||
1851 | finally { | ||
1852 | |||
1853 | restoreStackSize(stackSize); | ||
1854 | |||
1855 | } | ||
1856 | return ; | ||
1857 | } | ||
1858 | // $ANTLR end "rule__MetamodelSpecification__Group__0" | ||
1859 | |||
1860 | |||
1861 | // $ANTLR start "rule__MetamodelSpecification__Group__0__Impl" | ||
1862 | // InternalApplicationConfiguration.g:622:1: rule__MetamodelSpecification__Group__0__Impl : ( '{' ) ; | ||
1863 | public final void rule__MetamodelSpecification__Group__0__Impl() throws RecognitionException { | ||
1864 | |||
1865 | int stackSize = keepStackSize(); | ||
1866 | |||
1867 | try { | ||
1868 | // InternalApplicationConfiguration.g:626:1: ( ( '{' ) ) | ||
1869 | // InternalApplicationConfiguration.g:627:1: ( '{' ) | ||
1870 | { | ||
1871 | // InternalApplicationConfiguration.g:627:1: ( '{' ) | ||
1872 | // InternalApplicationConfiguration.g:628:2: '{' | ||
1873 | { | ||
1874 | before(grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
1875 | match(input,14,FOLLOW_2); | ||
1876 | after(grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
1877 | |||
1878 | } | ||
1879 | |||
1880 | |||
1881 | } | ||
1882 | |||
1883 | } | ||
1884 | catch (RecognitionException re) { | ||
1885 | reportError(re); | ||
1886 | recover(input,re); | ||
1887 | } | ||
1888 | finally { | ||
1889 | |||
1890 | restoreStackSize(stackSize); | ||
1891 | |||
1892 | } | ||
1893 | return ; | ||
1894 | } | ||
1895 | // $ANTLR end "rule__MetamodelSpecification__Group__0__Impl" | ||
1896 | |||
1897 | |||
1898 | // $ANTLR start "rule__MetamodelSpecification__Group__1" | ||
1899 | // InternalApplicationConfiguration.g:637:1: rule__MetamodelSpecification__Group__1 : rule__MetamodelSpecification__Group__1__Impl rule__MetamodelSpecification__Group__2 ; | ||
1900 | public final void rule__MetamodelSpecification__Group__1() throws RecognitionException { | ||
1901 | |||
1902 | int stackSize = keepStackSize(); | ||
1903 | |||
1904 | try { | ||
1905 | // InternalApplicationConfiguration.g:641:1: ( rule__MetamodelSpecification__Group__1__Impl rule__MetamodelSpecification__Group__2 ) | ||
1906 | // InternalApplicationConfiguration.g:642:2: rule__MetamodelSpecification__Group__1__Impl rule__MetamodelSpecification__Group__2 | ||
1907 | { | ||
1908 | pushFollow(FOLLOW_10); | ||
1909 | rule__MetamodelSpecification__Group__1__Impl(); | ||
1910 | |||
1911 | state._fsp--; | ||
1912 | |||
1913 | pushFollow(FOLLOW_2); | ||
1914 | rule__MetamodelSpecification__Group__2(); | ||
1915 | |||
1916 | state._fsp--; | ||
1917 | |||
1918 | |||
1919 | } | ||
1920 | |||
1921 | } | ||
1922 | catch (RecognitionException re) { | ||
1923 | reportError(re); | ||
1924 | recover(input,re); | ||
1925 | } | ||
1926 | finally { | ||
1927 | |||
1928 | restoreStackSize(stackSize); | ||
1929 | |||
1930 | } | ||
1931 | return ; | ||
1932 | } | ||
1933 | // $ANTLR end "rule__MetamodelSpecification__Group__1" | ||
1934 | |||
1935 | |||
1936 | // $ANTLR start "rule__MetamodelSpecification__Group__1__Impl" | ||
1937 | // InternalApplicationConfiguration.g:649:1: rule__MetamodelSpecification__Group__1__Impl : ( ( rule__MetamodelSpecification__EntriesAssignment_1 ) ) ; | ||
1938 | public final void rule__MetamodelSpecification__Group__1__Impl() throws RecognitionException { | ||
1939 | |||
1940 | int stackSize = keepStackSize(); | ||
1941 | |||
1942 | try { | ||
1943 | // InternalApplicationConfiguration.g:653:1: ( ( ( rule__MetamodelSpecification__EntriesAssignment_1 ) ) ) | ||
1944 | // InternalApplicationConfiguration.g:654:1: ( ( rule__MetamodelSpecification__EntriesAssignment_1 ) ) | ||
1945 | { | ||
1946 | // InternalApplicationConfiguration.g:654:1: ( ( rule__MetamodelSpecification__EntriesAssignment_1 ) ) | ||
1947 | // InternalApplicationConfiguration.g:655:2: ( rule__MetamodelSpecification__EntriesAssignment_1 ) | ||
1948 | { | ||
1949 | before(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_1()); | ||
1950 | // InternalApplicationConfiguration.g:656:2: ( rule__MetamodelSpecification__EntriesAssignment_1 ) | ||
1951 | // InternalApplicationConfiguration.g:656:3: rule__MetamodelSpecification__EntriesAssignment_1 | ||
1952 | { | ||
1953 | pushFollow(FOLLOW_2); | ||
1954 | rule__MetamodelSpecification__EntriesAssignment_1(); | ||
1955 | |||
1956 | state._fsp--; | ||
1957 | |||
1958 | |||
1959 | } | ||
1960 | |||
1961 | after(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_1()); | ||
1962 | |||
1963 | } | ||
1964 | |||
1965 | |||
1966 | } | ||
1967 | |||
1968 | } | ||
1969 | catch (RecognitionException re) { | ||
1970 | reportError(re); | ||
1971 | recover(input,re); | ||
1972 | } | ||
1973 | finally { | ||
1974 | |||
1975 | restoreStackSize(stackSize); | ||
1976 | |||
1977 | } | ||
1978 | return ; | ||
1979 | } | ||
1980 | // $ANTLR end "rule__MetamodelSpecification__Group__1__Impl" | ||
1981 | |||
1982 | |||
1983 | // $ANTLR start "rule__MetamodelSpecification__Group__2" | ||
1984 | // InternalApplicationConfiguration.g:664:1: rule__MetamodelSpecification__Group__2 : rule__MetamodelSpecification__Group__2__Impl rule__MetamodelSpecification__Group__3 ; | ||
1985 | public final void rule__MetamodelSpecification__Group__2() throws RecognitionException { | ||
1986 | |||
1987 | int stackSize = keepStackSize(); | ||
1988 | |||
1989 | try { | ||
1990 | // InternalApplicationConfiguration.g:668:1: ( rule__MetamodelSpecification__Group__2__Impl rule__MetamodelSpecification__Group__3 ) | ||
1991 | // InternalApplicationConfiguration.g:669:2: rule__MetamodelSpecification__Group__2__Impl rule__MetamodelSpecification__Group__3 | ||
1992 | { | ||
1993 | pushFollow(FOLLOW_10); | ||
1994 | rule__MetamodelSpecification__Group__2__Impl(); | ||
1995 | |||
1996 | state._fsp--; | ||
1997 | |||
1998 | pushFollow(FOLLOW_2); | ||
1999 | rule__MetamodelSpecification__Group__3(); | ||
2000 | |||
2001 | state._fsp--; | ||
2002 | |||
2003 | |||
2004 | } | ||
2005 | |||
2006 | } | ||
2007 | catch (RecognitionException re) { | ||
2008 | reportError(re); | ||
2009 | recover(input,re); | ||
2010 | } | ||
2011 | finally { | ||
2012 | |||
2013 | restoreStackSize(stackSize); | ||
2014 | |||
2015 | } | ||
2016 | return ; | ||
2017 | } | ||
2018 | // $ANTLR end "rule__MetamodelSpecification__Group__2" | ||
2019 | |||
2020 | |||
2021 | // $ANTLR start "rule__MetamodelSpecification__Group__2__Impl" | ||
2022 | // InternalApplicationConfiguration.g:676:1: rule__MetamodelSpecification__Group__2__Impl : ( ( rule__MetamodelSpecification__Group_2__0 )* ) ; | ||
2023 | public final void rule__MetamodelSpecification__Group__2__Impl() throws RecognitionException { | ||
2024 | |||
2025 | int stackSize = keepStackSize(); | ||
2026 | |||
2027 | try { | ||
2028 | // InternalApplicationConfiguration.g:680:1: ( ( ( rule__MetamodelSpecification__Group_2__0 )* ) ) | ||
2029 | // InternalApplicationConfiguration.g:681:1: ( ( rule__MetamodelSpecification__Group_2__0 )* ) | ||
2030 | { | ||
2031 | // InternalApplicationConfiguration.g:681:1: ( ( rule__MetamodelSpecification__Group_2__0 )* ) | ||
2032 | // InternalApplicationConfiguration.g:682:2: ( rule__MetamodelSpecification__Group_2__0 )* | ||
2033 | { | ||
2034 | before(grammarAccess.getMetamodelSpecificationAccess().getGroup_2()); | ||
2035 | // InternalApplicationConfiguration.g:683:2: ( rule__MetamodelSpecification__Group_2__0 )* | ||
2036 | loop5: | ||
2037 | do { | ||
2038 | int alt5=2; | ||
2039 | int LA5_0 = input.LA(1); | ||
2040 | |||
2041 | if ( (LA5_0==16) ) { | ||
2042 | alt5=1; | ||
2043 | } | ||
2044 | |||
2045 | |||
2046 | switch (alt5) { | ||
2047 | case 1 : | ||
2048 | // InternalApplicationConfiguration.g:683:3: rule__MetamodelSpecification__Group_2__0 | ||
2049 | { | ||
2050 | pushFollow(FOLLOW_11); | ||
2051 | rule__MetamodelSpecification__Group_2__0(); | ||
2052 | |||
2053 | state._fsp--; | ||
2054 | |||
2055 | |||
2056 | } | ||
2057 | break; | ||
2058 | |||
2059 | default : | ||
2060 | break loop5; | ||
2061 | } | ||
2062 | } while (true); | ||
2063 | |||
2064 | after(grammarAccess.getMetamodelSpecificationAccess().getGroup_2()); | ||
2065 | |||
2066 | } | ||
2067 | |||
2068 | |||
2069 | } | ||
2070 | |||
2071 | } | ||
2072 | catch (RecognitionException re) { | ||
2073 | reportError(re); | ||
2074 | recover(input,re); | ||
2075 | } | ||
2076 | finally { | ||
2077 | |||
2078 | restoreStackSize(stackSize); | ||
2079 | |||
2080 | } | ||
2081 | return ; | ||
2082 | } | ||
2083 | // $ANTLR end "rule__MetamodelSpecification__Group__2__Impl" | ||
2084 | |||
2085 | |||
2086 | // $ANTLR start "rule__MetamodelSpecification__Group__3" | ||
2087 | // InternalApplicationConfiguration.g:691:1: rule__MetamodelSpecification__Group__3 : rule__MetamodelSpecification__Group__3__Impl ; | ||
2088 | public final void rule__MetamodelSpecification__Group__3() throws RecognitionException { | ||
2089 | |||
2090 | int stackSize = keepStackSize(); | ||
2091 | |||
2092 | try { | ||
2093 | // InternalApplicationConfiguration.g:695:1: ( rule__MetamodelSpecification__Group__3__Impl ) | ||
2094 | // InternalApplicationConfiguration.g:696:2: rule__MetamodelSpecification__Group__3__Impl | ||
2095 | { | ||
2096 | pushFollow(FOLLOW_2); | ||
2097 | rule__MetamodelSpecification__Group__3__Impl(); | ||
2098 | |||
2099 | state._fsp--; | ||
2100 | |||
2101 | |||
2102 | } | ||
2103 | |||
2104 | } | ||
2105 | catch (RecognitionException re) { | ||
2106 | reportError(re); | ||
2107 | recover(input,re); | ||
2108 | } | ||
2109 | finally { | ||
2110 | |||
2111 | restoreStackSize(stackSize); | ||
2112 | |||
2113 | } | ||
2114 | return ; | ||
2115 | } | ||
2116 | // $ANTLR end "rule__MetamodelSpecification__Group__3" | ||
2117 | |||
2118 | |||
2119 | // $ANTLR start "rule__MetamodelSpecification__Group__3__Impl" | ||
2120 | // InternalApplicationConfiguration.g:702:1: rule__MetamodelSpecification__Group__3__Impl : ( '}' ) ; | ||
2121 | public final void rule__MetamodelSpecification__Group__3__Impl() throws RecognitionException { | ||
2122 | |||
2123 | int stackSize = keepStackSize(); | ||
2124 | |||
2125 | try { | ||
2126 | // InternalApplicationConfiguration.g:706:1: ( ( '}' ) ) | ||
2127 | // InternalApplicationConfiguration.g:707:1: ( '}' ) | ||
2128 | { | ||
2129 | // InternalApplicationConfiguration.g:707:1: ( '}' ) | ||
2130 | // InternalApplicationConfiguration.g:708:2: '}' | ||
2131 | { | ||
2132 | before(grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
2133 | match(input,15,FOLLOW_2); | ||
2134 | after(grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
2135 | |||
2136 | } | ||
2137 | |||
2138 | |||
2139 | } | ||
2140 | |||
2141 | } | ||
2142 | catch (RecognitionException re) { | ||
2143 | reportError(re); | ||
2144 | recover(input,re); | ||
2145 | } | ||
2146 | finally { | ||
2147 | |||
2148 | restoreStackSize(stackSize); | ||
2149 | |||
2150 | } | ||
2151 | return ; | ||
2152 | } | ||
2153 | // $ANTLR end "rule__MetamodelSpecification__Group__3__Impl" | ||
2154 | |||
2155 | |||
2156 | // $ANTLR start "rule__MetamodelSpecification__Group_2__0" | ||
2157 | // InternalApplicationConfiguration.g:718:1: rule__MetamodelSpecification__Group_2__0 : rule__MetamodelSpecification__Group_2__0__Impl rule__MetamodelSpecification__Group_2__1 ; | ||
2158 | public final void rule__MetamodelSpecification__Group_2__0() throws RecognitionException { | ||
2159 | |||
2160 | int stackSize = keepStackSize(); | ||
2161 | |||
2162 | try { | ||
2163 | // InternalApplicationConfiguration.g:722:1: ( rule__MetamodelSpecification__Group_2__0__Impl rule__MetamodelSpecification__Group_2__1 ) | ||
2164 | // InternalApplicationConfiguration.g:723:2: rule__MetamodelSpecification__Group_2__0__Impl rule__MetamodelSpecification__Group_2__1 | ||
2165 | { | ||
2166 | pushFollow(FOLLOW_9); | ||
2167 | rule__MetamodelSpecification__Group_2__0__Impl(); | ||
2168 | |||
2169 | state._fsp--; | ||
2170 | |||
2171 | pushFollow(FOLLOW_2); | ||
2172 | rule__MetamodelSpecification__Group_2__1(); | ||
2173 | |||
2174 | state._fsp--; | ||
2175 | |||
2176 | |||
2177 | } | ||
2178 | |||
2179 | } | ||
2180 | catch (RecognitionException re) { | ||
2181 | reportError(re); | ||
2182 | recover(input,re); | ||
2183 | } | ||
2184 | finally { | ||
2185 | |||
2186 | restoreStackSize(stackSize); | ||
2187 | |||
2188 | } | ||
2189 | return ; | ||
2190 | } | ||
2191 | // $ANTLR end "rule__MetamodelSpecification__Group_2__0" | ||
2192 | |||
2193 | |||
2194 | // $ANTLR start "rule__MetamodelSpecification__Group_2__0__Impl" | ||
2195 | // InternalApplicationConfiguration.g:730:1: rule__MetamodelSpecification__Group_2__0__Impl : ( ',' ) ; | ||
2196 | public final void rule__MetamodelSpecification__Group_2__0__Impl() throws RecognitionException { | ||
2197 | |||
2198 | int stackSize = keepStackSize(); | ||
2199 | |||
2200 | try { | ||
2201 | // InternalApplicationConfiguration.g:734:1: ( ( ',' ) ) | ||
2202 | // InternalApplicationConfiguration.g:735:1: ( ',' ) | ||
2203 | { | ||
2204 | // InternalApplicationConfiguration.g:735:1: ( ',' ) | ||
2205 | // InternalApplicationConfiguration.g:736:2: ',' | ||
2206 | { | ||
2207 | before(grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); | ||
2208 | match(input,16,FOLLOW_2); | ||
2209 | after(grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); | ||
2210 | |||
2211 | } | ||
2212 | |||
2213 | |||
2214 | } | ||
2215 | |||
2216 | } | ||
2217 | catch (RecognitionException re) { | ||
2218 | reportError(re); | ||
2219 | recover(input,re); | ||
2220 | } | ||
2221 | finally { | ||
2222 | |||
2223 | restoreStackSize(stackSize); | ||
2224 | |||
2225 | } | ||
2226 | return ; | ||
2227 | } | ||
2228 | // $ANTLR end "rule__MetamodelSpecification__Group_2__0__Impl" | ||
2229 | |||
2230 | |||
2231 | // $ANTLR start "rule__MetamodelSpecification__Group_2__1" | ||
2232 | // InternalApplicationConfiguration.g:745:1: rule__MetamodelSpecification__Group_2__1 : rule__MetamodelSpecification__Group_2__1__Impl ; | ||
2233 | public final void rule__MetamodelSpecification__Group_2__1() throws RecognitionException { | ||
2234 | |||
2235 | int stackSize = keepStackSize(); | ||
2236 | |||
2237 | try { | ||
2238 | // InternalApplicationConfiguration.g:749:1: ( rule__MetamodelSpecification__Group_2__1__Impl ) | ||
2239 | // InternalApplicationConfiguration.g:750:2: rule__MetamodelSpecification__Group_2__1__Impl | ||
2240 | { | ||
2241 | pushFollow(FOLLOW_2); | ||
2242 | rule__MetamodelSpecification__Group_2__1__Impl(); | ||
2243 | |||
2244 | state._fsp--; | ||
2245 | |||
2246 | |||
2247 | } | ||
2248 | |||
2249 | } | ||
2250 | catch (RecognitionException re) { | ||
2251 | reportError(re); | ||
2252 | recover(input,re); | ||
2253 | } | ||
2254 | finally { | ||
2255 | |||
2256 | restoreStackSize(stackSize); | ||
2257 | |||
2258 | } | ||
2259 | return ; | ||
2260 | } | ||
2261 | // $ANTLR end "rule__MetamodelSpecification__Group_2__1" | ||
2262 | |||
2263 | |||
2264 | // $ANTLR start "rule__MetamodelSpecification__Group_2__1__Impl" | ||
2265 | // InternalApplicationConfiguration.g:756:1: rule__MetamodelSpecification__Group_2__1__Impl : ( ( rule__MetamodelSpecification__EntriesAssignment_2_1 ) ) ; | ||
2266 | public final void rule__MetamodelSpecification__Group_2__1__Impl() throws RecognitionException { | ||
2267 | |||
2268 | int stackSize = keepStackSize(); | ||
2269 | |||
2270 | try { | ||
2271 | // InternalApplicationConfiguration.g:760:1: ( ( ( rule__MetamodelSpecification__EntriesAssignment_2_1 ) ) ) | ||
2272 | // InternalApplicationConfiguration.g:761:1: ( ( rule__MetamodelSpecification__EntriesAssignment_2_1 ) ) | ||
2273 | { | ||
2274 | // InternalApplicationConfiguration.g:761:1: ( ( rule__MetamodelSpecification__EntriesAssignment_2_1 ) ) | ||
2275 | // InternalApplicationConfiguration.g:762:2: ( rule__MetamodelSpecification__EntriesAssignment_2_1 ) | ||
2276 | { | ||
2277 | before(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_2_1()); | ||
2278 | // InternalApplicationConfiguration.g:763:2: ( rule__MetamodelSpecification__EntriesAssignment_2_1 ) | ||
2279 | // InternalApplicationConfiguration.g:763:3: rule__MetamodelSpecification__EntriesAssignment_2_1 | ||
2280 | { | ||
2281 | pushFollow(FOLLOW_2); | ||
2282 | rule__MetamodelSpecification__EntriesAssignment_2_1(); | ||
2283 | |||
2284 | state._fsp--; | ||
2285 | |||
2286 | |||
2287 | } | ||
2288 | |||
2289 | after(grammarAccess.getMetamodelSpecificationAccess().getEntriesAssignment_2_1()); | ||
2290 | |||
2291 | } | ||
2292 | |||
2293 | |||
2294 | } | ||
2295 | |||
2296 | } | ||
2297 | catch (RecognitionException re) { | ||
2298 | reportError(re); | ||
2299 | recover(input,re); | ||
2300 | } | ||
2301 | finally { | ||
2302 | |||
2303 | restoreStackSize(stackSize); | ||
2304 | |||
2305 | } | ||
2306 | return ; | ||
2307 | } | ||
2308 | // $ANTLR end "rule__MetamodelSpecification__Group_2__1__Impl" | ||
2309 | |||
2310 | |||
2311 | // $ANTLR start "rule__AllPackageEntry__Group__0" | ||
2312 | // InternalApplicationConfiguration.g:772:1: rule__AllPackageEntry__Group__0 : rule__AllPackageEntry__Group__0__Impl rule__AllPackageEntry__Group__1 ; | ||
2313 | public final void rule__AllPackageEntry__Group__0() throws RecognitionException { | ||
2314 | |||
2315 | int stackSize = keepStackSize(); | ||
2316 | |||
2317 | try { | ||
2318 | // InternalApplicationConfiguration.g:776:1: ( rule__AllPackageEntry__Group__0__Impl rule__AllPackageEntry__Group__1 ) | ||
2319 | // InternalApplicationConfiguration.g:777:2: rule__AllPackageEntry__Group__0__Impl rule__AllPackageEntry__Group__1 | ||
2320 | { | ||
2321 | pushFollow(FOLLOW_12); | ||
2322 | rule__AllPackageEntry__Group__0__Impl(); | ||
2323 | |||
2324 | state._fsp--; | ||
2325 | |||
2326 | pushFollow(FOLLOW_2); | ||
2327 | rule__AllPackageEntry__Group__1(); | ||
2328 | |||
2329 | state._fsp--; | ||
2330 | |||
2331 | |||
2332 | } | ||
2333 | |||
2334 | } | ||
2335 | catch (RecognitionException re) { | ||
2336 | reportError(re); | ||
2337 | recover(input,re); | ||
2338 | } | ||
2339 | finally { | ||
2340 | |||
2341 | restoreStackSize(stackSize); | ||
2342 | |||
2343 | } | ||
2344 | return ; | ||
2345 | } | ||
2346 | // $ANTLR end "rule__AllPackageEntry__Group__0" | ||
2347 | |||
2348 | |||
2349 | // $ANTLR start "rule__AllPackageEntry__Group__0__Impl" | ||
2350 | // InternalApplicationConfiguration.g:784:1: rule__AllPackageEntry__Group__0__Impl : ( 'package' ) ; | ||
2351 | public final void rule__AllPackageEntry__Group__0__Impl() throws RecognitionException { | ||
2352 | |||
2353 | int stackSize = keepStackSize(); | ||
2354 | |||
2355 | try { | ||
2356 | // InternalApplicationConfiguration.g:788:1: ( ( 'package' ) ) | ||
2357 | // InternalApplicationConfiguration.g:789:1: ( 'package' ) | ||
2358 | { | ||
2359 | // InternalApplicationConfiguration.g:789:1: ( 'package' ) | ||
2360 | // InternalApplicationConfiguration.g:790:2: 'package' | ||
2361 | { | ||
2362 | before(grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); | ||
2363 | match(input,17,FOLLOW_2); | ||
2364 | after(grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); | ||
2365 | |||
2366 | } | ||
2367 | |||
2368 | |||
2369 | } | ||
2370 | |||
2371 | } | ||
2372 | catch (RecognitionException re) { | ||
2373 | reportError(re); | ||
2374 | recover(input,re); | ||
2375 | } | ||
2376 | finally { | ||
2377 | |||
2378 | restoreStackSize(stackSize); | ||
2379 | |||
2380 | } | ||
2381 | return ; | ||
2382 | } | ||
2383 | // $ANTLR end "rule__AllPackageEntry__Group__0__Impl" | ||
2384 | |||
2385 | |||
2386 | // $ANTLR start "rule__AllPackageEntry__Group__1" | ||
2387 | // InternalApplicationConfiguration.g:799:1: rule__AllPackageEntry__Group__1 : rule__AllPackageEntry__Group__1__Impl rule__AllPackageEntry__Group__2 ; | ||
2388 | public final void rule__AllPackageEntry__Group__1() throws RecognitionException { | ||
2389 | |||
2390 | int stackSize = keepStackSize(); | ||
2391 | |||
2392 | try { | ||
2393 | // InternalApplicationConfiguration.g:803:1: ( rule__AllPackageEntry__Group__1__Impl rule__AllPackageEntry__Group__2 ) | ||
2394 | // InternalApplicationConfiguration.g:804:2: rule__AllPackageEntry__Group__1__Impl rule__AllPackageEntry__Group__2 | ||
2395 | { | ||
2396 | pushFollow(FOLLOW_13); | ||
2397 | rule__AllPackageEntry__Group__1__Impl(); | ||
2398 | |||
2399 | state._fsp--; | ||
2400 | |||
2401 | pushFollow(FOLLOW_2); | ||
2402 | rule__AllPackageEntry__Group__2(); | ||
2403 | |||
2404 | state._fsp--; | ||
2405 | |||
2406 | |||
2407 | } | ||
2408 | |||
2409 | } | ||
2410 | catch (RecognitionException re) { | ||
2411 | reportError(re); | ||
2412 | recover(input,re); | ||
2413 | } | ||
2414 | finally { | ||
2415 | |||
2416 | restoreStackSize(stackSize); | ||
2417 | |||
2418 | } | ||
2419 | return ; | ||
2420 | } | ||
2421 | // $ANTLR end "rule__AllPackageEntry__Group__1" | ||
2422 | |||
2423 | |||
2424 | // $ANTLR start "rule__AllPackageEntry__Group__1__Impl" | ||
2425 | // InternalApplicationConfiguration.g:811:1: rule__AllPackageEntry__Group__1__Impl : ( ( rule__AllPackageEntry__PackageAssignment_1 ) ) ; | ||
2426 | public final void rule__AllPackageEntry__Group__1__Impl() throws RecognitionException { | ||
2427 | |||
2428 | int stackSize = keepStackSize(); | ||
2429 | |||
2430 | try { | ||
2431 | // InternalApplicationConfiguration.g:815:1: ( ( ( rule__AllPackageEntry__PackageAssignment_1 ) ) ) | ||
2432 | // InternalApplicationConfiguration.g:816:1: ( ( rule__AllPackageEntry__PackageAssignment_1 ) ) | ||
2433 | { | ||
2434 | // InternalApplicationConfiguration.g:816:1: ( ( rule__AllPackageEntry__PackageAssignment_1 ) ) | ||
2435 | // InternalApplicationConfiguration.g:817:2: ( rule__AllPackageEntry__PackageAssignment_1 ) | ||
2436 | { | ||
2437 | before(grammarAccess.getAllPackageEntryAccess().getPackageAssignment_1()); | ||
2438 | // InternalApplicationConfiguration.g:818:2: ( rule__AllPackageEntry__PackageAssignment_1 ) | ||
2439 | // InternalApplicationConfiguration.g:818:3: rule__AllPackageEntry__PackageAssignment_1 | ||
2440 | { | ||
2441 | pushFollow(FOLLOW_2); | ||
2442 | rule__AllPackageEntry__PackageAssignment_1(); | ||
2443 | |||
2444 | state._fsp--; | ||
2445 | |||
2446 | |||
2447 | } | ||
2448 | |||
2449 | after(grammarAccess.getAllPackageEntryAccess().getPackageAssignment_1()); | ||
2450 | |||
2451 | } | ||
2452 | |||
2453 | |||
2454 | } | ||
2455 | |||
2456 | } | ||
2457 | catch (RecognitionException re) { | ||
2458 | reportError(re); | ||
2459 | recover(input,re); | ||
2460 | } | ||
2461 | finally { | ||
2462 | |||
2463 | restoreStackSize(stackSize); | ||
2464 | |||
2465 | } | ||
2466 | return ; | ||
2467 | } | ||
2468 | // $ANTLR end "rule__AllPackageEntry__Group__1__Impl" | ||
2469 | |||
2470 | |||
2471 | // $ANTLR start "rule__AllPackageEntry__Group__2" | ||
2472 | // InternalApplicationConfiguration.g:826:1: rule__AllPackageEntry__Group__2 : rule__AllPackageEntry__Group__2__Impl ; | ||
2473 | public final void rule__AllPackageEntry__Group__2() throws RecognitionException { | ||
2474 | |||
2475 | int stackSize = keepStackSize(); | ||
2476 | |||
2477 | try { | ||
2478 | // InternalApplicationConfiguration.g:830:1: ( rule__AllPackageEntry__Group__2__Impl ) | ||
2479 | // InternalApplicationConfiguration.g:831:2: rule__AllPackageEntry__Group__2__Impl | ||
2480 | { | ||
2481 | pushFollow(FOLLOW_2); | ||
2482 | rule__AllPackageEntry__Group__2__Impl(); | ||
2483 | |||
2484 | state._fsp--; | ||
2485 | |||
2486 | |||
2487 | } | ||
2488 | |||
2489 | } | ||
2490 | catch (RecognitionException re) { | ||
2491 | reportError(re); | ||
2492 | recover(input,re); | ||
2493 | } | ||
2494 | finally { | ||
2495 | |||
2496 | restoreStackSize(stackSize); | ||
2497 | |||
2498 | } | ||
2499 | return ; | ||
2500 | } | ||
2501 | // $ANTLR end "rule__AllPackageEntry__Group__2" | ||
2502 | |||
2503 | |||
2504 | // $ANTLR start "rule__AllPackageEntry__Group__2__Impl" | ||
2505 | // InternalApplicationConfiguration.g:837:1: rule__AllPackageEntry__Group__2__Impl : ( ( rule__AllPackageEntry__Group_2__0 )? ) ; | ||
2506 | public final void rule__AllPackageEntry__Group__2__Impl() throws RecognitionException { | ||
2507 | |||
2508 | int stackSize = keepStackSize(); | ||
2509 | |||
2510 | try { | ||
2511 | // InternalApplicationConfiguration.g:841:1: ( ( ( rule__AllPackageEntry__Group_2__0 )? ) ) | ||
2512 | // InternalApplicationConfiguration.g:842:1: ( ( rule__AllPackageEntry__Group_2__0 )? ) | ||
2513 | { | ||
2514 | // InternalApplicationConfiguration.g:842:1: ( ( rule__AllPackageEntry__Group_2__0 )? ) | ||
2515 | // InternalApplicationConfiguration.g:843:2: ( rule__AllPackageEntry__Group_2__0 )? | ||
2516 | { | ||
2517 | before(grammarAccess.getAllPackageEntryAccess().getGroup_2()); | ||
2518 | // InternalApplicationConfiguration.g:844:2: ( rule__AllPackageEntry__Group_2__0 )? | ||
2519 | int alt6=2; | ||
2520 | int LA6_0 = input.LA(1); | ||
2521 | |||
2522 | if ( (LA6_0==18) ) { | ||
2523 | alt6=1; | ||
2524 | } | ||
2525 | switch (alt6) { | ||
2526 | case 1 : | ||
2527 | // InternalApplicationConfiguration.g:844:3: rule__AllPackageEntry__Group_2__0 | ||
2528 | { | ||
2529 | pushFollow(FOLLOW_2); | ||
2530 | rule__AllPackageEntry__Group_2__0(); | ||
2531 | |||
2532 | state._fsp--; | ||
2533 | |||
2534 | |||
2535 | } | ||
2536 | break; | ||
2537 | |||
2538 | } | ||
2539 | |||
2540 | after(grammarAccess.getAllPackageEntryAccess().getGroup_2()); | ||
2541 | |||
2542 | } | ||
2543 | |||
2544 | |||
2545 | } | ||
2546 | |||
2547 | } | ||
2548 | catch (RecognitionException re) { | ||
2549 | reportError(re); | ||
2550 | recover(input,re); | ||
2551 | } | ||
2552 | finally { | ||
2553 | |||
2554 | restoreStackSize(stackSize); | ||
2555 | |||
2556 | } | ||
2557 | return ; | ||
2558 | } | ||
2559 | // $ANTLR end "rule__AllPackageEntry__Group__2__Impl" | ||
2560 | |||
2561 | |||
2562 | // $ANTLR start "rule__AllPackageEntry__Group_2__0" | ||
2563 | // InternalApplicationConfiguration.g:853:1: rule__AllPackageEntry__Group_2__0 : rule__AllPackageEntry__Group_2__0__Impl rule__AllPackageEntry__Group_2__1 ; | ||
2564 | public final void rule__AllPackageEntry__Group_2__0() throws RecognitionException { | ||
2565 | |||
2566 | int stackSize = keepStackSize(); | ||
2567 | |||
2568 | try { | ||
2569 | // InternalApplicationConfiguration.g:857:1: ( rule__AllPackageEntry__Group_2__0__Impl rule__AllPackageEntry__Group_2__1 ) | ||
2570 | // InternalApplicationConfiguration.g:858:2: rule__AllPackageEntry__Group_2__0__Impl rule__AllPackageEntry__Group_2__1 | ||
2571 | { | ||
2572 | pushFollow(FOLLOW_14); | ||
2573 | rule__AllPackageEntry__Group_2__0__Impl(); | ||
2574 | |||
2575 | state._fsp--; | ||
2576 | |||
2577 | pushFollow(FOLLOW_2); | ||
2578 | rule__AllPackageEntry__Group_2__1(); | ||
2579 | |||
2580 | state._fsp--; | ||
2581 | |||
2582 | |||
2583 | } | ||
2584 | |||
2585 | } | ||
2586 | catch (RecognitionException re) { | ||
2587 | reportError(re); | ||
2588 | recover(input,re); | ||
2589 | } | ||
2590 | finally { | ||
2591 | |||
2592 | restoreStackSize(stackSize); | ||
2593 | |||
2594 | } | ||
2595 | return ; | ||
2596 | } | ||
2597 | // $ANTLR end "rule__AllPackageEntry__Group_2__0" | ||
2598 | |||
2599 | |||
2600 | // $ANTLR start "rule__AllPackageEntry__Group_2__0__Impl" | ||
2601 | // InternalApplicationConfiguration.g:865:1: rule__AllPackageEntry__Group_2__0__Impl : ( 'excluding' ) ; | ||
2602 | public final void rule__AllPackageEntry__Group_2__0__Impl() throws RecognitionException { | ||
2603 | |||
2604 | int stackSize = keepStackSize(); | ||
2605 | |||
2606 | try { | ||
2607 | // InternalApplicationConfiguration.g:869:1: ( ( 'excluding' ) ) | ||
2608 | // InternalApplicationConfiguration.g:870:1: ( 'excluding' ) | ||
2609 | { | ||
2610 | // InternalApplicationConfiguration.g:870:1: ( 'excluding' ) | ||
2611 | // InternalApplicationConfiguration.g:871:2: 'excluding' | ||
2612 | { | ||
2613 | before(grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); | ||
2614 | match(input,18,FOLLOW_2); | ||
2615 | after(grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); | ||
2616 | |||
2617 | } | ||
2618 | |||
2619 | |||
2620 | } | ||
2621 | |||
2622 | } | ||
2623 | catch (RecognitionException re) { | ||
2624 | reportError(re); | ||
2625 | recover(input,re); | ||
2626 | } | ||
2627 | finally { | ||
2628 | |||
2629 | restoreStackSize(stackSize); | ||
2630 | |||
2631 | } | ||
2632 | return ; | ||
2633 | } | ||
2634 | // $ANTLR end "rule__AllPackageEntry__Group_2__0__Impl" | ||
2635 | |||
2636 | |||
2637 | // $ANTLR start "rule__AllPackageEntry__Group_2__1" | ||
2638 | // InternalApplicationConfiguration.g:880:1: rule__AllPackageEntry__Group_2__1 : rule__AllPackageEntry__Group_2__1__Impl rule__AllPackageEntry__Group_2__2 ; | ||
2639 | public final void rule__AllPackageEntry__Group_2__1() throws RecognitionException { | ||
2640 | |||
2641 | int stackSize = keepStackSize(); | ||
2642 | |||
2643 | try { | ||
2644 | // InternalApplicationConfiguration.g:884:1: ( rule__AllPackageEntry__Group_2__1__Impl rule__AllPackageEntry__Group_2__2 ) | ||
2645 | // InternalApplicationConfiguration.g:885:2: rule__AllPackageEntry__Group_2__1__Impl rule__AllPackageEntry__Group_2__2 | ||
2646 | { | ||
2647 | pushFollow(FOLLOW_12); | ||
2648 | rule__AllPackageEntry__Group_2__1__Impl(); | ||
2649 | |||
2650 | state._fsp--; | ||
2651 | |||
2652 | pushFollow(FOLLOW_2); | ||
2653 | rule__AllPackageEntry__Group_2__2(); | ||
2654 | |||
2655 | state._fsp--; | ||
2656 | |||
2657 | |||
2658 | } | ||
2659 | |||
2660 | } | ||
2661 | catch (RecognitionException re) { | ||
2662 | reportError(re); | ||
2663 | recover(input,re); | ||
2664 | } | ||
2665 | finally { | ||
2666 | |||
2667 | restoreStackSize(stackSize); | ||
2668 | |||
2669 | } | ||
2670 | return ; | ||
2671 | } | ||
2672 | // $ANTLR end "rule__AllPackageEntry__Group_2__1" | ||
2673 | |||
2674 | |||
2675 | // $ANTLR start "rule__AllPackageEntry__Group_2__1__Impl" | ||
2676 | // InternalApplicationConfiguration.g:892:1: rule__AllPackageEntry__Group_2__1__Impl : ( '{' ) ; | ||
2677 | public final void rule__AllPackageEntry__Group_2__1__Impl() throws RecognitionException { | ||
2678 | |||
2679 | int stackSize = keepStackSize(); | ||
2680 | |||
2681 | try { | ||
2682 | // InternalApplicationConfiguration.g:896:1: ( ( '{' ) ) | ||
2683 | // InternalApplicationConfiguration.g:897:1: ( '{' ) | ||
2684 | { | ||
2685 | // InternalApplicationConfiguration.g:897:1: ( '{' ) | ||
2686 | // InternalApplicationConfiguration.g:898:2: '{' | ||
2687 | { | ||
2688 | before(grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
2689 | match(input,14,FOLLOW_2); | ||
2690 | after(grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
2691 | |||
2692 | } | ||
2693 | |||
2694 | |||
2695 | } | ||
2696 | |||
2697 | } | ||
2698 | catch (RecognitionException re) { | ||
2699 | reportError(re); | ||
2700 | recover(input,re); | ||
2701 | } | ||
2702 | finally { | ||
2703 | |||
2704 | restoreStackSize(stackSize); | ||
2705 | |||
2706 | } | ||
2707 | return ; | ||
2708 | } | ||
2709 | // $ANTLR end "rule__AllPackageEntry__Group_2__1__Impl" | ||
2710 | |||
2711 | |||
2712 | // $ANTLR start "rule__AllPackageEntry__Group_2__2" | ||
2713 | // InternalApplicationConfiguration.g:907:1: rule__AllPackageEntry__Group_2__2 : rule__AllPackageEntry__Group_2__2__Impl rule__AllPackageEntry__Group_2__3 ; | ||
2714 | public final void rule__AllPackageEntry__Group_2__2() throws RecognitionException { | ||
2715 | |||
2716 | int stackSize = keepStackSize(); | ||
2717 | |||
2718 | try { | ||
2719 | // InternalApplicationConfiguration.g:911:1: ( rule__AllPackageEntry__Group_2__2__Impl rule__AllPackageEntry__Group_2__3 ) | ||
2720 | // InternalApplicationConfiguration.g:912:2: rule__AllPackageEntry__Group_2__2__Impl rule__AllPackageEntry__Group_2__3 | ||
2721 | { | ||
2722 | pushFollow(FOLLOW_10); | ||
2723 | rule__AllPackageEntry__Group_2__2__Impl(); | ||
2724 | |||
2725 | state._fsp--; | ||
2726 | |||
2727 | pushFollow(FOLLOW_2); | ||
2728 | rule__AllPackageEntry__Group_2__3(); | ||
2729 | |||
2730 | state._fsp--; | ||
2731 | |||
2732 | |||
2733 | } | ||
2734 | |||
2735 | } | ||
2736 | catch (RecognitionException re) { | ||
2737 | reportError(re); | ||
2738 | recover(input,re); | ||
2739 | } | ||
2740 | finally { | ||
2741 | |||
2742 | restoreStackSize(stackSize); | ||
2743 | |||
2744 | } | ||
2745 | return ; | ||
2746 | } | ||
2747 | // $ANTLR end "rule__AllPackageEntry__Group_2__2" | ||
2748 | |||
2749 | |||
2750 | // $ANTLR start "rule__AllPackageEntry__Group_2__2__Impl" | ||
2751 | // InternalApplicationConfiguration.g:919:1: rule__AllPackageEntry__Group_2__2__Impl : ( ( rule__AllPackageEntry__ExclusionAssignment_2_2 ) ) ; | ||
2752 | public final void rule__AllPackageEntry__Group_2__2__Impl() throws RecognitionException { | ||
2753 | |||
2754 | int stackSize = keepStackSize(); | ||
2755 | |||
2756 | try { | ||
2757 | // InternalApplicationConfiguration.g:923:1: ( ( ( rule__AllPackageEntry__ExclusionAssignment_2_2 ) ) ) | ||
2758 | // InternalApplicationConfiguration.g:924:1: ( ( rule__AllPackageEntry__ExclusionAssignment_2_2 ) ) | ||
2759 | { | ||
2760 | // InternalApplicationConfiguration.g:924:1: ( ( rule__AllPackageEntry__ExclusionAssignment_2_2 ) ) | ||
2761 | // InternalApplicationConfiguration.g:925:2: ( rule__AllPackageEntry__ExclusionAssignment_2_2 ) | ||
2762 | { | ||
2763 | before(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_2()); | ||
2764 | // InternalApplicationConfiguration.g:926:2: ( rule__AllPackageEntry__ExclusionAssignment_2_2 ) | ||
2765 | // InternalApplicationConfiguration.g:926:3: rule__AllPackageEntry__ExclusionAssignment_2_2 | ||
2766 | { | ||
2767 | pushFollow(FOLLOW_2); | ||
2768 | rule__AllPackageEntry__ExclusionAssignment_2_2(); | ||
2769 | |||
2770 | state._fsp--; | ||
2771 | |||
2772 | |||
2773 | } | ||
2774 | |||
2775 | after(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_2()); | ||
2776 | |||
2777 | } | ||
2778 | |||
2779 | |||
2780 | } | ||
2781 | |||
2782 | } | ||
2783 | catch (RecognitionException re) { | ||
2784 | reportError(re); | ||
2785 | recover(input,re); | ||
2786 | } | ||
2787 | finally { | ||
2788 | |||
2789 | restoreStackSize(stackSize); | ||
2790 | |||
2791 | } | ||
2792 | return ; | ||
2793 | } | ||
2794 | // $ANTLR end "rule__AllPackageEntry__Group_2__2__Impl" | ||
2795 | |||
2796 | |||
2797 | // $ANTLR start "rule__AllPackageEntry__Group_2__3" | ||
2798 | // InternalApplicationConfiguration.g:934:1: rule__AllPackageEntry__Group_2__3 : rule__AllPackageEntry__Group_2__3__Impl rule__AllPackageEntry__Group_2__4 ; | ||
2799 | public final void rule__AllPackageEntry__Group_2__3() throws RecognitionException { | ||
2800 | |||
2801 | int stackSize = keepStackSize(); | ||
2802 | |||
2803 | try { | ||
2804 | // InternalApplicationConfiguration.g:938:1: ( rule__AllPackageEntry__Group_2__3__Impl rule__AllPackageEntry__Group_2__4 ) | ||
2805 | // InternalApplicationConfiguration.g:939:2: rule__AllPackageEntry__Group_2__3__Impl rule__AllPackageEntry__Group_2__4 | ||
2806 | { | ||
2807 | pushFollow(FOLLOW_10); | ||
2808 | rule__AllPackageEntry__Group_2__3__Impl(); | ||
2809 | |||
2810 | state._fsp--; | ||
2811 | |||
2812 | pushFollow(FOLLOW_2); | ||
2813 | rule__AllPackageEntry__Group_2__4(); | ||
2814 | |||
2815 | state._fsp--; | ||
2816 | |||
2817 | |||
2818 | } | ||
2819 | |||
2820 | } | ||
2821 | catch (RecognitionException re) { | ||
2822 | reportError(re); | ||
2823 | recover(input,re); | ||
2824 | } | ||
2825 | finally { | ||
2826 | |||
2827 | restoreStackSize(stackSize); | ||
2828 | |||
2829 | } | ||
2830 | return ; | ||
2831 | } | ||
2832 | // $ANTLR end "rule__AllPackageEntry__Group_2__3" | ||
2833 | |||
2834 | |||
2835 | // $ANTLR start "rule__AllPackageEntry__Group_2__3__Impl" | ||
2836 | // InternalApplicationConfiguration.g:946:1: rule__AllPackageEntry__Group_2__3__Impl : ( ( rule__AllPackageEntry__Group_2_3__0 )* ) ; | ||
2837 | public final void rule__AllPackageEntry__Group_2__3__Impl() throws RecognitionException { | ||
2838 | |||
2839 | int stackSize = keepStackSize(); | ||
2840 | |||
2841 | try { | ||
2842 | // InternalApplicationConfiguration.g:950:1: ( ( ( rule__AllPackageEntry__Group_2_3__0 )* ) ) | ||
2843 | // InternalApplicationConfiguration.g:951:1: ( ( rule__AllPackageEntry__Group_2_3__0 )* ) | ||
2844 | { | ||
2845 | // InternalApplicationConfiguration.g:951:1: ( ( rule__AllPackageEntry__Group_2_3__0 )* ) | ||
2846 | // InternalApplicationConfiguration.g:952:2: ( rule__AllPackageEntry__Group_2_3__0 )* | ||
2847 | { | ||
2848 | before(grammarAccess.getAllPackageEntryAccess().getGroup_2_3()); | ||
2849 | // InternalApplicationConfiguration.g:953:2: ( rule__AllPackageEntry__Group_2_3__0 )* | ||
2850 | loop7: | ||
2851 | do { | ||
2852 | int alt7=2; | ||
2853 | int LA7_0 = input.LA(1); | ||
2854 | |||
2855 | if ( (LA7_0==16) ) { | ||
2856 | alt7=1; | ||
2857 | } | ||
2858 | |||
2859 | |||
2860 | switch (alt7) { | ||
2861 | case 1 : | ||
2862 | // InternalApplicationConfiguration.g:953:3: rule__AllPackageEntry__Group_2_3__0 | ||
2863 | { | ||
2864 | pushFollow(FOLLOW_11); | ||
2865 | rule__AllPackageEntry__Group_2_3__0(); | ||
2866 | |||
2867 | state._fsp--; | ||
2868 | |||
2869 | |||
2870 | } | ||
2871 | break; | ||
2872 | |||
2873 | default : | ||
2874 | break loop7; | ||
2875 | } | ||
2876 | } while (true); | ||
2877 | |||
2878 | after(grammarAccess.getAllPackageEntryAccess().getGroup_2_3()); | ||
2879 | |||
2880 | } | ||
2881 | |||
2882 | |||
2883 | } | ||
2884 | |||
2885 | } | ||
2886 | catch (RecognitionException re) { | ||
2887 | reportError(re); | ||
2888 | recover(input,re); | ||
2889 | } | ||
2890 | finally { | ||
2891 | |||
2892 | restoreStackSize(stackSize); | ||
2893 | |||
2894 | } | ||
2895 | return ; | ||
2896 | } | ||
2897 | // $ANTLR end "rule__AllPackageEntry__Group_2__3__Impl" | ||
2898 | |||
2899 | |||
2900 | // $ANTLR start "rule__AllPackageEntry__Group_2__4" | ||
2901 | // InternalApplicationConfiguration.g:961:1: rule__AllPackageEntry__Group_2__4 : rule__AllPackageEntry__Group_2__4__Impl ; | ||
2902 | public final void rule__AllPackageEntry__Group_2__4() throws RecognitionException { | ||
2903 | |||
2904 | int stackSize = keepStackSize(); | ||
2905 | |||
2906 | try { | ||
2907 | // InternalApplicationConfiguration.g:965:1: ( rule__AllPackageEntry__Group_2__4__Impl ) | ||
2908 | // InternalApplicationConfiguration.g:966:2: rule__AllPackageEntry__Group_2__4__Impl | ||
2909 | { | ||
2910 | pushFollow(FOLLOW_2); | ||
2911 | rule__AllPackageEntry__Group_2__4__Impl(); | ||
2912 | |||
2913 | state._fsp--; | ||
2914 | |||
2915 | |||
2916 | } | ||
2917 | |||
2918 | } | ||
2919 | catch (RecognitionException re) { | ||
2920 | reportError(re); | ||
2921 | recover(input,re); | ||
2922 | } | ||
2923 | finally { | ||
2924 | |||
2925 | restoreStackSize(stackSize); | ||
2926 | |||
2927 | } | ||
2928 | return ; | ||
2929 | } | ||
2930 | // $ANTLR end "rule__AllPackageEntry__Group_2__4" | ||
2931 | |||
2932 | |||
2933 | // $ANTLR start "rule__AllPackageEntry__Group_2__4__Impl" | ||
2934 | // InternalApplicationConfiguration.g:972:1: rule__AllPackageEntry__Group_2__4__Impl : ( '}' ) ; | ||
2935 | public final void rule__AllPackageEntry__Group_2__4__Impl() throws RecognitionException { | ||
2936 | |||
2937 | int stackSize = keepStackSize(); | ||
2938 | |||
2939 | try { | ||
2940 | // InternalApplicationConfiguration.g:976:1: ( ( '}' ) ) | ||
2941 | // InternalApplicationConfiguration.g:977:1: ( '}' ) | ||
2942 | { | ||
2943 | // InternalApplicationConfiguration.g:977:1: ( '}' ) | ||
2944 | // InternalApplicationConfiguration.g:978:2: '}' | ||
2945 | { | ||
2946 | before(grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
2947 | match(input,15,FOLLOW_2); | ||
2948 | after(grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
2949 | |||
2950 | } | ||
2951 | |||
2952 | |||
2953 | } | ||
2954 | |||
2955 | } | ||
2956 | catch (RecognitionException re) { | ||
2957 | reportError(re); | ||
2958 | recover(input,re); | ||
2959 | } | ||
2960 | finally { | ||
2961 | |||
2962 | restoreStackSize(stackSize); | ||
2963 | |||
2964 | } | ||
2965 | return ; | ||
2966 | } | ||
2967 | // $ANTLR end "rule__AllPackageEntry__Group_2__4__Impl" | ||
2968 | |||
2969 | |||
2970 | // $ANTLR start "rule__AllPackageEntry__Group_2_3__0" | ||
2971 | // InternalApplicationConfiguration.g:988:1: rule__AllPackageEntry__Group_2_3__0 : rule__AllPackageEntry__Group_2_3__0__Impl rule__AllPackageEntry__Group_2_3__1 ; | ||
2972 | public final void rule__AllPackageEntry__Group_2_3__0() throws RecognitionException { | ||
2973 | |||
2974 | int stackSize = keepStackSize(); | ||
2975 | |||
2976 | try { | ||
2977 | // InternalApplicationConfiguration.g:992:1: ( rule__AllPackageEntry__Group_2_3__0__Impl rule__AllPackageEntry__Group_2_3__1 ) | ||
2978 | // InternalApplicationConfiguration.g:993:2: rule__AllPackageEntry__Group_2_3__0__Impl rule__AllPackageEntry__Group_2_3__1 | ||
2979 | { | ||
2980 | pushFollow(FOLLOW_12); | ||
2981 | rule__AllPackageEntry__Group_2_3__0__Impl(); | ||
2982 | |||
2983 | state._fsp--; | ||
2984 | |||
2985 | pushFollow(FOLLOW_2); | ||
2986 | rule__AllPackageEntry__Group_2_3__1(); | ||
2987 | |||
2988 | state._fsp--; | ||
2989 | |||
2990 | |||
2991 | } | ||
2992 | |||
2993 | } | ||
2994 | catch (RecognitionException re) { | ||
2995 | reportError(re); | ||
2996 | recover(input,re); | ||
2997 | } | ||
2998 | finally { | ||
2999 | |||
3000 | restoreStackSize(stackSize); | ||
3001 | |||
3002 | } | ||
3003 | return ; | ||
3004 | } | ||
3005 | // $ANTLR end "rule__AllPackageEntry__Group_2_3__0" | ||
3006 | |||
3007 | |||
3008 | // $ANTLR start "rule__AllPackageEntry__Group_2_3__0__Impl" | ||
3009 | // InternalApplicationConfiguration.g:1000:1: rule__AllPackageEntry__Group_2_3__0__Impl : ( ',' ) ; | ||
3010 | public final void rule__AllPackageEntry__Group_2_3__0__Impl() throws RecognitionException { | ||
3011 | |||
3012 | int stackSize = keepStackSize(); | ||
3013 | |||
3014 | try { | ||
3015 | // InternalApplicationConfiguration.g:1004:1: ( ( ',' ) ) | ||
3016 | // InternalApplicationConfiguration.g:1005:1: ( ',' ) | ||
3017 | { | ||
3018 | // InternalApplicationConfiguration.g:1005:1: ( ',' ) | ||
3019 | // InternalApplicationConfiguration.g:1006:2: ',' | ||
3020 | { | ||
3021 | before(grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); | ||
3022 | match(input,16,FOLLOW_2); | ||
3023 | after(grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); | ||
3024 | |||
3025 | } | ||
3026 | |||
3027 | |||
3028 | } | ||
3029 | |||
3030 | } | ||
3031 | catch (RecognitionException re) { | ||
3032 | reportError(re); | ||
3033 | recover(input,re); | ||
3034 | } | ||
3035 | finally { | ||
3036 | |||
3037 | restoreStackSize(stackSize); | ||
3038 | |||
3039 | } | ||
3040 | return ; | ||
3041 | } | ||
3042 | // $ANTLR end "rule__AllPackageEntry__Group_2_3__0__Impl" | ||
3043 | |||
3044 | |||
3045 | // $ANTLR start "rule__AllPackageEntry__Group_2_3__1" | ||
3046 | // InternalApplicationConfiguration.g:1015:1: rule__AllPackageEntry__Group_2_3__1 : rule__AllPackageEntry__Group_2_3__1__Impl ; | ||
3047 | public final void rule__AllPackageEntry__Group_2_3__1() throws RecognitionException { | ||
3048 | |||
3049 | int stackSize = keepStackSize(); | ||
3050 | |||
3051 | try { | ||
3052 | // InternalApplicationConfiguration.g:1019:1: ( rule__AllPackageEntry__Group_2_3__1__Impl ) | ||
3053 | // InternalApplicationConfiguration.g:1020:2: rule__AllPackageEntry__Group_2_3__1__Impl | ||
3054 | { | ||
3055 | pushFollow(FOLLOW_2); | ||
3056 | rule__AllPackageEntry__Group_2_3__1__Impl(); | ||
3057 | |||
3058 | state._fsp--; | ||
3059 | |||
3060 | |||
3061 | } | ||
3062 | |||
3063 | } | ||
3064 | catch (RecognitionException re) { | ||
3065 | reportError(re); | ||
3066 | recover(input,re); | ||
3067 | } | ||
3068 | finally { | ||
3069 | |||
3070 | restoreStackSize(stackSize); | ||
3071 | |||
3072 | } | ||
3073 | return ; | ||
3074 | } | ||
3075 | // $ANTLR end "rule__AllPackageEntry__Group_2_3__1" | ||
3076 | |||
3077 | |||
3078 | // $ANTLR start "rule__AllPackageEntry__Group_2_3__1__Impl" | ||
3079 | // InternalApplicationConfiguration.g:1026:1: rule__AllPackageEntry__Group_2_3__1__Impl : ( ( rule__AllPackageEntry__ExclusionAssignment_2_3_1 ) ) ; | ||
3080 | public final void rule__AllPackageEntry__Group_2_3__1__Impl() throws RecognitionException { | ||
3081 | |||
3082 | int stackSize = keepStackSize(); | ||
3083 | |||
3084 | try { | ||
3085 | // InternalApplicationConfiguration.g:1030:1: ( ( ( rule__AllPackageEntry__ExclusionAssignment_2_3_1 ) ) ) | ||
3086 | // InternalApplicationConfiguration.g:1031:1: ( ( rule__AllPackageEntry__ExclusionAssignment_2_3_1 ) ) | ||
3087 | { | ||
3088 | // InternalApplicationConfiguration.g:1031:1: ( ( rule__AllPackageEntry__ExclusionAssignment_2_3_1 ) ) | ||
3089 | // InternalApplicationConfiguration.g:1032:2: ( rule__AllPackageEntry__ExclusionAssignment_2_3_1 ) | ||
3090 | { | ||
3091 | before(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_3_1()); | ||
3092 | // InternalApplicationConfiguration.g:1033:2: ( rule__AllPackageEntry__ExclusionAssignment_2_3_1 ) | ||
3093 | // InternalApplicationConfiguration.g:1033:3: rule__AllPackageEntry__ExclusionAssignment_2_3_1 | ||
3094 | { | ||
3095 | pushFollow(FOLLOW_2); | ||
3096 | rule__AllPackageEntry__ExclusionAssignment_2_3_1(); | ||
3097 | |||
3098 | state._fsp--; | ||
3099 | |||
3100 | |||
3101 | } | ||
3102 | |||
3103 | after(grammarAccess.getAllPackageEntryAccess().getExclusionAssignment_2_3_1()); | ||
3104 | |||
3105 | } | ||
3106 | |||
3107 | |||
3108 | } | ||
3109 | |||
3110 | } | ||
3111 | catch (RecognitionException re) { | ||
3112 | reportError(re); | ||
3113 | recover(input,re); | ||
3114 | } | ||
3115 | finally { | ||
3116 | |||
3117 | restoreStackSize(stackSize); | ||
3118 | |||
3119 | } | ||
3120 | return ; | ||
3121 | } | ||
3122 | // $ANTLR end "rule__AllPackageEntry__Group_2_3__1__Impl" | ||
3123 | |||
3124 | |||
3125 | // $ANTLR start "rule__MetamodelElement__Group__0" | ||
3126 | // InternalApplicationConfiguration.g:1042:1: rule__MetamodelElement__Group__0 : rule__MetamodelElement__Group__0__Impl rule__MetamodelElement__Group__1 ; | ||
3127 | public final void rule__MetamodelElement__Group__0() throws RecognitionException { | ||
3128 | |||
3129 | int stackSize = keepStackSize(); | ||
3130 | |||
3131 | try { | ||
3132 | // InternalApplicationConfiguration.g:1046:1: ( rule__MetamodelElement__Group__0__Impl rule__MetamodelElement__Group__1 ) | ||
3133 | // InternalApplicationConfiguration.g:1047:2: rule__MetamodelElement__Group__0__Impl rule__MetamodelElement__Group__1 | ||
3134 | { | ||
3135 | pushFollow(FOLLOW_12); | ||
3136 | rule__MetamodelElement__Group__0__Impl(); | ||
3137 | |||
3138 | state._fsp--; | ||
3139 | |||
3140 | pushFollow(FOLLOW_2); | ||
3141 | rule__MetamodelElement__Group__1(); | ||
3142 | |||
3143 | state._fsp--; | ||
3144 | |||
3145 | |||
3146 | } | ||
3147 | |||
3148 | } | ||
3149 | catch (RecognitionException re) { | ||
3150 | reportError(re); | ||
3151 | recover(input,re); | ||
3152 | } | ||
3153 | finally { | ||
3154 | |||
3155 | restoreStackSize(stackSize); | ||
3156 | |||
3157 | } | ||
3158 | return ; | ||
3159 | } | ||
3160 | // $ANTLR end "rule__MetamodelElement__Group__0" | ||
3161 | |||
3162 | |||
3163 | // $ANTLR start "rule__MetamodelElement__Group__0__Impl" | ||
3164 | // InternalApplicationConfiguration.g:1054:1: rule__MetamodelElement__Group__0__Impl : ( ( rule__MetamodelElement__Group_0__0 )? ) ; | ||
3165 | public final void rule__MetamodelElement__Group__0__Impl() throws RecognitionException { | ||
3166 | |||
3167 | int stackSize = keepStackSize(); | ||
3168 | |||
3169 | try { | ||
3170 | // InternalApplicationConfiguration.g:1058:1: ( ( ( rule__MetamodelElement__Group_0__0 )? ) ) | ||
3171 | // InternalApplicationConfiguration.g:1059:1: ( ( rule__MetamodelElement__Group_0__0 )? ) | ||
3172 | { | ||
3173 | // InternalApplicationConfiguration.g:1059:1: ( ( rule__MetamodelElement__Group_0__0 )? ) | ||
3174 | // InternalApplicationConfiguration.g:1060:2: ( rule__MetamodelElement__Group_0__0 )? | ||
3175 | { | ||
3176 | before(grammarAccess.getMetamodelElementAccess().getGroup_0()); | ||
3177 | // InternalApplicationConfiguration.g:1061:2: ( rule__MetamodelElement__Group_0__0 )? | ||
3178 | int alt8=2; | ||
3179 | int LA8_0 = input.LA(1); | ||
3180 | |||
3181 | if ( (LA8_0==RULE_ID) ) { | ||
3182 | int LA8_1 = input.LA(2); | ||
3183 | |||
3184 | if ( (LA8_1==19) ) { | ||
3185 | alt8=1; | ||
3186 | } | ||
3187 | } | ||
3188 | switch (alt8) { | ||
3189 | case 1 : | ||
3190 | // InternalApplicationConfiguration.g:1061:3: rule__MetamodelElement__Group_0__0 | ||
3191 | { | ||
3192 | pushFollow(FOLLOW_2); | ||
3193 | rule__MetamodelElement__Group_0__0(); | ||
3194 | |||
3195 | state._fsp--; | ||
3196 | |||
3197 | |||
3198 | } | ||
3199 | break; | ||
3200 | |||
3201 | } | ||
3202 | |||
3203 | after(grammarAccess.getMetamodelElementAccess().getGroup_0()); | ||
3204 | |||
3205 | } | ||
3206 | |||
3207 | |||
3208 | } | ||
3209 | |||
3210 | } | ||
3211 | catch (RecognitionException re) { | ||
3212 | reportError(re); | ||
3213 | recover(input,re); | ||
3214 | } | ||
3215 | finally { | ||
3216 | |||
3217 | restoreStackSize(stackSize); | ||
3218 | |||
3219 | } | ||
3220 | return ; | ||
3221 | } | ||
3222 | // $ANTLR end "rule__MetamodelElement__Group__0__Impl" | ||
3223 | |||
3224 | |||
3225 | // $ANTLR start "rule__MetamodelElement__Group__1" | ||
3226 | // InternalApplicationConfiguration.g:1069:1: rule__MetamodelElement__Group__1 : rule__MetamodelElement__Group__1__Impl rule__MetamodelElement__Group__2 ; | ||
3227 | public final void rule__MetamodelElement__Group__1() throws RecognitionException { | ||
3228 | |||
3229 | int stackSize = keepStackSize(); | ||
3230 | |||
3231 | try { | ||
3232 | // InternalApplicationConfiguration.g:1073:1: ( rule__MetamodelElement__Group__1__Impl rule__MetamodelElement__Group__2 ) | ||
3233 | // InternalApplicationConfiguration.g:1074:2: rule__MetamodelElement__Group__1__Impl rule__MetamodelElement__Group__2 | ||
3234 | { | ||
3235 | pushFollow(FOLLOW_15); | ||
3236 | rule__MetamodelElement__Group__1__Impl(); | ||
3237 | |||
3238 | state._fsp--; | ||
3239 | |||
3240 | pushFollow(FOLLOW_2); | ||
3241 | rule__MetamodelElement__Group__2(); | ||
3242 | |||
3243 | state._fsp--; | ||
3244 | |||
3245 | |||
3246 | } | ||
3247 | |||
3248 | } | ||
3249 | catch (RecognitionException re) { | ||
3250 | reportError(re); | ||
3251 | recover(input,re); | ||
3252 | } | ||
3253 | finally { | ||
3254 | |||
3255 | restoreStackSize(stackSize); | ||
3256 | |||
3257 | } | ||
3258 | return ; | ||
3259 | } | ||
3260 | // $ANTLR end "rule__MetamodelElement__Group__1" | ||
3261 | |||
3262 | |||
3263 | // $ANTLR start "rule__MetamodelElement__Group__1__Impl" | ||
3264 | // InternalApplicationConfiguration.g:1081:1: rule__MetamodelElement__Group__1__Impl : ( ( rule__MetamodelElement__ClassifierAssignment_1 ) ) ; | ||
3265 | public final void rule__MetamodelElement__Group__1__Impl() throws RecognitionException { | ||
3266 | |||
3267 | int stackSize = keepStackSize(); | ||
3268 | |||
3269 | try { | ||
3270 | // InternalApplicationConfiguration.g:1085:1: ( ( ( rule__MetamodelElement__ClassifierAssignment_1 ) ) ) | ||
3271 | // InternalApplicationConfiguration.g:1086:1: ( ( rule__MetamodelElement__ClassifierAssignment_1 ) ) | ||
3272 | { | ||
3273 | // InternalApplicationConfiguration.g:1086:1: ( ( rule__MetamodelElement__ClassifierAssignment_1 ) ) | ||
3274 | // InternalApplicationConfiguration.g:1087:2: ( rule__MetamodelElement__ClassifierAssignment_1 ) | ||
3275 | { | ||
3276 | before(grammarAccess.getMetamodelElementAccess().getClassifierAssignment_1()); | ||
3277 | // InternalApplicationConfiguration.g:1088:2: ( rule__MetamodelElement__ClassifierAssignment_1 ) | ||
3278 | // InternalApplicationConfiguration.g:1088:3: rule__MetamodelElement__ClassifierAssignment_1 | ||
3279 | { | ||
3280 | pushFollow(FOLLOW_2); | ||
3281 | rule__MetamodelElement__ClassifierAssignment_1(); | ||
3282 | |||
3283 | state._fsp--; | ||
3284 | |||
3285 | |||
3286 | } | ||
3287 | |||
3288 | after(grammarAccess.getMetamodelElementAccess().getClassifierAssignment_1()); | ||
3289 | |||
3290 | } | ||
3291 | |||
3292 | |||
3293 | } | ||
3294 | |||
3295 | } | ||
3296 | catch (RecognitionException re) { | ||
3297 | reportError(re); | ||
3298 | recover(input,re); | ||
3299 | } | ||
3300 | finally { | ||
3301 | |||
3302 | restoreStackSize(stackSize); | ||
3303 | |||
3304 | } | ||
3305 | return ; | ||
3306 | } | ||
3307 | // $ANTLR end "rule__MetamodelElement__Group__1__Impl" | ||
3308 | |||
3309 | |||
3310 | // $ANTLR start "rule__MetamodelElement__Group__2" | ||
3311 | // InternalApplicationConfiguration.g:1096:1: rule__MetamodelElement__Group__2 : rule__MetamodelElement__Group__2__Impl ; | ||
3312 | public final void rule__MetamodelElement__Group__2() throws RecognitionException { | ||
3313 | |||
3314 | int stackSize = keepStackSize(); | ||
3315 | |||
3316 | try { | ||
3317 | // InternalApplicationConfiguration.g:1100:1: ( rule__MetamodelElement__Group__2__Impl ) | ||
3318 | // InternalApplicationConfiguration.g:1101:2: rule__MetamodelElement__Group__2__Impl | ||
3319 | { | ||
3320 | pushFollow(FOLLOW_2); | ||
3321 | rule__MetamodelElement__Group__2__Impl(); | ||
3322 | |||
3323 | state._fsp--; | ||
3324 | |||
3325 | |||
3326 | } | ||
3327 | |||
3328 | } | ||
3329 | catch (RecognitionException re) { | ||
3330 | reportError(re); | ||
3331 | recover(input,re); | ||
3332 | } | ||
3333 | finally { | ||
3334 | |||
3335 | restoreStackSize(stackSize); | ||
3336 | |||
3337 | } | ||
3338 | return ; | ||
3339 | } | ||
3340 | // $ANTLR end "rule__MetamodelElement__Group__2" | ||
3341 | |||
3342 | |||
3343 | // $ANTLR start "rule__MetamodelElement__Group__2__Impl" | ||
3344 | // InternalApplicationConfiguration.g:1107:1: rule__MetamodelElement__Group__2__Impl : ( ( rule__MetamodelElement__Group_2__0 )? ) ; | ||
3345 | public final void rule__MetamodelElement__Group__2__Impl() throws RecognitionException { | ||
3346 | |||
3347 | int stackSize = keepStackSize(); | ||
3348 | |||
3349 | try { | ||
3350 | // InternalApplicationConfiguration.g:1111:1: ( ( ( rule__MetamodelElement__Group_2__0 )? ) ) | ||
3351 | // InternalApplicationConfiguration.g:1112:1: ( ( rule__MetamodelElement__Group_2__0 )? ) | ||
3352 | { | ||
3353 | // InternalApplicationConfiguration.g:1112:1: ( ( rule__MetamodelElement__Group_2__0 )? ) | ||
3354 | // InternalApplicationConfiguration.g:1113:2: ( rule__MetamodelElement__Group_2__0 )? | ||
3355 | { | ||
3356 | before(grammarAccess.getMetamodelElementAccess().getGroup_2()); | ||
3357 | // InternalApplicationConfiguration.g:1114:2: ( rule__MetamodelElement__Group_2__0 )? | ||
3358 | int alt9=2; | ||
3359 | int LA9_0 = input.LA(1); | ||
3360 | |||
3361 | if ( (LA9_0==20) ) { | ||
3362 | alt9=1; | ||
3363 | } | ||
3364 | switch (alt9) { | ||
3365 | case 1 : | ||
3366 | // InternalApplicationConfiguration.g:1114:3: rule__MetamodelElement__Group_2__0 | ||
3367 | { | ||
3368 | pushFollow(FOLLOW_2); | ||
3369 | rule__MetamodelElement__Group_2__0(); | ||
3370 | |||
3371 | state._fsp--; | ||
3372 | |||
3373 | |||
3374 | } | ||
3375 | break; | ||
3376 | |||
3377 | } | ||
3378 | |||
3379 | after(grammarAccess.getMetamodelElementAccess().getGroup_2()); | ||
3380 | |||
3381 | } | ||
3382 | |||
3383 | |||
3384 | } | ||
3385 | |||
3386 | } | ||
3387 | catch (RecognitionException re) { | ||
3388 | reportError(re); | ||
3389 | recover(input,re); | ||
3390 | } | ||
3391 | finally { | ||
3392 | |||
3393 | restoreStackSize(stackSize); | ||
3394 | |||
3395 | } | ||
3396 | return ; | ||
3397 | } | ||
3398 | // $ANTLR end "rule__MetamodelElement__Group__2__Impl" | ||
3399 | |||
3400 | |||
3401 | // $ANTLR start "rule__MetamodelElement__Group_0__0" | ||
3402 | // InternalApplicationConfiguration.g:1123:1: rule__MetamodelElement__Group_0__0 : rule__MetamodelElement__Group_0__0__Impl rule__MetamodelElement__Group_0__1 ; | ||
3403 | public final void rule__MetamodelElement__Group_0__0() throws RecognitionException { | ||
3404 | |||
3405 | int stackSize = keepStackSize(); | ||
3406 | |||
3407 | try { | ||
3408 | // InternalApplicationConfiguration.g:1127:1: ( rule__MetamodelElement__Group_0__0__Impl rule__MetamodelElement__Group_0__1 ) | ||
3409 | // InternalApplicationConfiguration.g:1128:2: rule__MetamodelElement__Group_0__0__Impl rule__MetamodelElement__Group_0__1 | ||
3410 | { | ||
3411 | pushFollow(FOLLOW_16); | ||
3412 | rule__MetamodelElement__Group_0__0__Impl(); | ||
3413 | |||
3414 | state._fsp--; | ||
3415 | |||
3416 | pushFollow(FOLLOW_2); | ||
3417 | rule__MetamodelElement__Group_0__1(); | ||
3418 | |||
3419 | state._fsp--; | ||
3420 | |||
3421 | |||
3422 | } | ||
3423 | |||
3424 | } | ||
3425 | catch (RecognitionException re) { | ||
3426 | reportError(re); | ||
3427 | recover(input,re); | ||
3428 | } | ||
3429 | finally { | ||
3430 | |||
3431 | restoreStackSize(stackSize); | ||
3432 | |||
3433 | } | ||
3434 | return ; | ||
3435 | } | ||
3436 | // $ANTLR end "rule__MetamodelElement__Group_0__0" | ||
3437 | |||
3438 | |||
3439 | // $ANTLR start "rule__MetamodelElement__Group_0__0__Impl" | ||
3440 | // InternalApplicationConfiguration.g:1135:1: rule__MetamodelElement__Group_0__0__Impl : ( ( rule__MetamodelElement__PackageAssignment_0_0 ) ) ; | ||
3441 | public final void rule__MetamodelElement__Group_0__0__Impl() throws RecognitionException { | ||
3442 | |||
3443 | int stackSize = keepStackSize(); | ||
3444 | |||
3445 | try { | ||
3446 | // InternalApplicationConfiguration.g:1139:1: ( ( ( rule__MetamodelElement__PackageAssignment_0_0 ) ) ) | ||
3447 | // InternalApplicationConfiguration.g:1140:1: ( ( rule__MetamodelElement__PackageAssignment_0_0 ) ) | ||
3448 | { | ||
3449 | // InternalApplicationConfiguration.g:1140:1: ( ( rule__MetamodelElement__PackageAssignment_0_0 ) ) | ||
3450 | // InternalApplicationConfiguration.g:1141:2: ( rule__MetamodelElement__PackageAssignment_0_0 ) | ||
3451 | { | ||
3452 | before(grammarAccess.getMetamodelElementAccess().getPackageAssignment_0_0()); | ||
3453 | // InternalApplicationConfiguration.g:1142:2: ( rule__MetamodelElement__PackageAssignment_0_0 ) | ||
3454 | // InternalApplicationConfiguration.g:1142:3: rule__MetamodelElement__PackageAssignment_0_0 | ||
3455 | { | ||
3456 | pushFollow(FOLLOW_2); | ||
3457 | rule__MetamodelElement__PackageAssignment_0_0(); | ||
3458 | |||
3459 | state._fsp--; | ||
3460 | |||
3461 | |||
3462 | } | ||
3463 | |||
3464 | after(grammarAccess.getMetamodelElementAccess().getPackageAssignment_0_0()); | ||
3465 | |||
3466 | } | ||
3467 | |||
3468 | |||
3469 | } | ||
3470 | |||
3471 | } | ||
3472 | catch (RecognitionException re) { | ||
3473 | reportError(re); | ||
3474 | recover(input,re); | ||
3475 | } | ||
3476 | finally { | ||
3477 | |||
3478 | restoreStackSize(stackSize); | ||
3479 | |||
3480 | } | ||
3481 | return ; | ||
3482 | } | ||
3483 | // $ANTLR end "rule__MetamodelElement__Group_0__0__Impl" | ||
3484 | |||
3485 | |||
3486 | // $ANTLR start "rule__MetamodelElement__Group_0__1" | ||
3487 | // InternalApplicationConfiguration.g:1150:1: rule__MetamodelElement__Group_0__1 : rule__MetamodelElement__Group_0__1__Impl ; | ||
3488 | public final void rule__MetamodelElement__Group_0__1() throws RecognitionException { | ||
3489 | |||
3490 | int stackSize = keepStackSize(); | ||
3491 | |||
3492 | try { | ||
3493 | // InternalApplicationConfiguration.g:1154:1: ( rule__MetamodelElement__Group_0__1__Impl ) | ||
3494 | // InternalApplicationConfiguration.g:1155:2: rule__MetamodelElement__Group_0__1__Impl | ||
3495 | { | ||
3496 | pushFollow(FOLLOW_2); | ||
3497 | rule__MetamodelElement__Group_0__1__Impl(); | ||
3498 | |||
3499 | state._fsp--; | ||
3500 | |||
3501 | |||
3502 | } | ||
3503 | |||
3504 | } | ||
3505 | catch (RecognitionException re) { | ||
3506 | reportError(re); | ||
3507 | recover(input,re); | ||
3508 | } | ||
3509 | finally { | ||
3510 | |||
3511 | restoreStackSize(stackSize); | ||
3512 | |||
3513 | } | ||
3514 | return ; | ||
3515 | } | ||
3516 | // $ANTLR end "rule__MetamodelElement__Group_0__1" | ||
3517 | |||
3518 | |||
3519 | // $ANTLR start "rule__MetamodelElement__Group_0__1__Impl" | ||
3520 | // InternalApplicationConfiguration.g:1161:1: rule__MetamodelElement__Group_0__1__Impl : ( '::' ) ; | ||
3521 | public final void rule__MetamodelElement__Group_0__1__Impl() throws RecognitionException { | ||
3522 | |||
3523 | int stackSize = keepStackSize(); | ||
3524 | |||
3525 | try { | ||
3526 | // InternalApplicationConfiguration.g:1165:1: ( ( '::' ) ) | ||
3527 | // InternalApplicationConfiguration.g:1166:1: ( '::' ) | ||
3528 | { | ||
3529 | // InternalApplicationConfiguration.g:1166:1: ( '::' ) | ||
3530 | // InternalApplicationConfiguration.g:1167:2: '::' | ||
3531 | { | ||
3532 | before(grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); | ||
3533 | match(input,19,FOLLOW_2); | ||
3534 | after(grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); | ||
3535 | |||
3536 | } | ||
3537 | |||
3538 | |||
3539 | } | ||
3540 | |||
3541 | } | ||
3542 | catch (RecognitionException re) { | ||
3543 | reportError(re); | ||
3544 | recover(input,re); | ||
3545 | } | ||
3546 | finally { | ||
3547 | |||
3548 | restoreStackSize(stackSize); | ||
3549 | |||
3550 | } | ||
3551 | return ; | ||
3552 | } | ||
3553 | // $ANTLR end "rule__MetamodelElement__Group_0__1__Impl" | ||
3554 | |||
3555 | |||
3556 | // $ANTLR start "rule__MetamodelElement__Group_2__0" | ||
3557 | // InternalApplicationConfiguration.g:1177:1: rule__MetamodelElement__Group_2__0 : rule__MetamodelElement__Group_2__0__Impl rule__MetamodelElement__Group_2__1 ; | ||
3558 | public final void rule__MetamodelElement__Group_2__0() throws RecognitionException { | ||
3559 | |||
3560 | int stackSize = keepStackSize(); | ||
3561 | |||
3562 | try { | ||
3563 | // InternalApplicationConfiguration.g:1181:1: ( rule__MetamodelElement__Group_2__0__Impl rule__MetamodelElement__Group_2__1 ) | ||
3564 | // InternalApplicationConfiguration.g:1182:2: rule__MetamodelElement__Group_2__0__Impl rule__MetamodelElement__Group_2__1 | ||
3565 | { | ||
3566 | pushFollow(FOLLOW_12); | ||
3567 | rule__MetamodelElement__Group_2__0__Impl(); | ||
3568 | |||
3569 | state._fsp--; | ||
3570 | |||
3571 | pushFollow(FOLLOW_2); | ||
3572 | rule__MetamodelElement__Group_2__1(); | ||
3573 | |||
3574 | state._fsp--; | ||
3575 | |||
3576 | |||
3577 | } | ||
3578 | |||
3579 | } | ||
3580 | catch (RecognitionException re) { | ||
3581 | reportError(re); | ||
3582 | recover(input,re); | ||
3583 | } | ||
3584 | finally { | ||
3585 | |||
3586 | restoreStackSize(stackSize); | ||
3587 | |||
3588 | } | ||
3589 | return ; | ||
3590 | } | ||
3591 | // $ANTLR end "rule__MetamodelElement__Group_2__0" | ||
3592 | |||
3593 | |||
3594 | // $ANTLR start "rule__MetamodelElement__Group_2__0__Impl" | ||
3595 | // InternalApplicationConfiguration.g:1189:1: rule__MetamodelElement__Group_2__0__Impl : ( '.' ) ; | ||
3596 | public final void rule__MetamodelElement__Group_2__0__Impl() throws RecognitionException { | ||
3597 | |||
3598 | int stackSize = keepStackSize(); | ||
3599 | |||
3600 | try { | ||
3601 | // InternalApplicationConfiguration.g:1193:1: ( ( '.' ) ) | ||
3602 | // InternalApplicationConfiguration.g:1194:1: ( '.' ) | ||
3603 | { | ||
3604 | // InternalApplicationConfiguration.g:1194:1: ( '.' ) | ||
3605 | // InternalApplicationConfiguration.g:1195:2: '.' | ||
3606 | { | ||
3607 | before(grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); | ||
3608 | match(input,20,FOLLOW_2); | ||
3609 | after(grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); | ||
3610 | |||
3611 | } | ||
3612 | |||
3613 | |||
3614 | } | ||
3615 | |||
3616 | } | ||
3617 | catch (RecognitionException re) { | ||
3618 | reportError(re); | ||
3619 | recover(input,re); | ||
3620 | } | ||
3621 | finally { | ||
3622 | |||
3623 | restoreStackSize(stackSize); | ||
3624 | |||
3625 | } | ||
3626 | return ; | ||
3627 | } | ||
3628 | // $ANTLR end "rule__MetamodelElement__Group_2__0__Impl" | ||
3629 | |||
3630 | |||
3631 | // $ANTLR start "rule__MetamodelElement__Group_2__1" | ||
3632 | // InternalApplicationConfiguration.g:1204:1: rule__MetamodelElement__Group_2__1 : rule__MetamodelElement__Group_2__1__Impl ; | ||
3633 | public final void rule__MetamodelElement__Group_2__1() throws RecognitionException { | ||
3634 | |||
3635 | int stackSize = keepStackSize(); | ||
3636 | |||
3637 | try { | ||
3638 | // InternalApplicationConfiguration.g:1208:1: ( rule__MetamodelElement__Group_2__1__Impl ) | ||
3639 | // InternalApplicationConfiguration.g:1209:2: rule__MetamodelElement__Group_2__1__Impl | ||
3640 | { | ||
3641 | pushFollow(FOLLOW_2); | ||
3642 | rule__MetamodelElement__Group_2__1__Impl(); | ||
3643 | |||
3644 | state._fsp--; | ||
3645 | |||
3646 | |||
3647 | } | ||
3648 | |||
3649 | } | ||
3650 | catch (RecognitionException re) { | ||
3651 | reportError(re); | ||
3652 | recover(input,re); | ||
3653 | } | ||
3654 | finally { | ||
3655 | |||
3656 | restoreStackSize(stackSize); | ||
3657 | |||
3658 | } | ||
3659 | return ; | ||
3660 | } | ||
3661 | // $ANTLR end "rule__MetamodelElement__Group_2__1" | ||
3662 | |||
3663 | |||
3664 | // $ANTLR start "rule__MetamodelElement__Group_2__1__Impl" | ||
3665 | // InternalApplicationConfiguration.g:1215:1: rule__MetamodelElement__Group_2__1__Impl : ( ( rule__MetamodelElement__FeatureAssignment_2_1 ) ) ; | ||
3666 | public final void rule__MetamodelElement__Group_2__1__Impl() throws RecognitionException { | ||
3667 | |||
3668 | int stackSize = keepStackSize(); | ||
3669 | |||
3670 | try { | ||
3671 | // InternalApplicationConfiguration.g:1219:1: ( ( ( rule__MetamodelElement__FeatureAssignment_2_1 ) ) ) | ||
3672 | // InternalApplicationConfiguration.g:1220:1: ( ( rule__MetamodelElement__FeatureAssignment_2_1 ) ) | ||
3673 | { | ||
3674 | // InternalApplicationConfiguration.g:1220:1: ( ( rule__MetamodelElement__FeatureAssignment_2_1 ) ) | ||
3675 | // InternalApplicationConfiguration.g:1221:2: ( rule__MetamodelElement__FeatureAssignment_2_1 ) | ||
3676 | { | ||
3677 | before(grammarAccess.getMetamodelElementAccess().getFeatureAssignment_2_1()); | ||
3678 | // InternalApplicationConfiguration.g:1222:2: ( rule__MetamodelElement__FeatureAssignment_2_1 ) | ||
3679 | // InternalApplicationConfiguration.g:1222:3: rule__MetamodelElement__FeatureAssignment_2_1 | ||
3680 | { | ||
3681 | pushFollow(FOLLOW_2); | ||
3682 | rule__MetamodelElement__FeatureAssignment_2_1(); | ||
3683 | |||
3684 | state._fsp--; | ||
3685 | |||
3686 | |||
3687 | } | ||
3688 | |||
3689 | after(grammarAccess.getMetamodelElementAccess().getFeatureAssignment_2_1()); | ||
3690 | |||
3691 | } | ||
3692 | |||
3693 | |||
3694 | } | ||
3695 | |||
3696 | } | ||
3697 | catch (RecognitionException re) { | ||
3698 | reportError(re); | ||
3699 | recover(input,re); | ||
3700 | } | ||
3701 | finally { | ||
3702 | |||
3703 | restoreStackSize(stackSize); | ||
3704 | |||
3705 | } | ||
3706 | return ; | ||
3707 | } | ||
3708 | // $ANTLR end "rule__MetamodelElement__Group_2__1__Impl" | ||
3709 | |||
3710 | |||
3711 | // $ANTLR start "rule__MetamodelDeclaration__Group__0" | ||
3712 | // InternalApplicationConfiguration.g:1231:1: rule__MetamodelDeclaration__Group__0 : rule__MetamodelDeclaration__Group__0__Impl rule__MetamodelDeclaration__Group__1 ; | ||
3713 | public final void rule__MetamodelDeclaration__Group__0() throws RecognitionException { | ||
3714 | |||
3715 | int stackSize = keepStackSize(); | ||
3716 | |||
3717 | try { | ||
3718 | // InternalApplicationConfiguration.g:1235:1: ( rule__MetamodelDeclaration__Group__0__Impl rule__MetamodelDeclaration__Group__1 ) | ||
3719 | // InternalApplicationConfiguration.g:1236:2: rule__MetamodelDeclaration__Group__0__Impl rule__MetamodelDeclaration__Group__1 | ||
3720 | { | ||
3721 | pushFollow(FOLLOW_12); | ||
3722 | rule__MetamodelDeclaration__Group__0__Impl(); | ||
3723 | |||
3724 | state._fsp--; | ||
3725 | |||
3726 | pushFollow(FOLLOW_2); | ||
3727 | rule__MetamodelDeclaration__Group__1(); | ||
3728 | |||
3729 | state._fsp--; | ||
3730 | |||
3731 | |||
3732 | } | ||
3733 | |||
3734 | } | ||
3735 | catch (RecognitionException re) { | ||
3736 | reportError(re); | ||
3737 | recover(input,re); | ||
3738 | } | ||
3739 | finally { | ||
3740 | |||
3741 | restoreStackSize(stackSize); | ||
3742 | |||
3743 | } | ||
3744 | return ; | ||
3745 | } | ||
3746 | // $ANTLR end "rule__MetamodelDeclaration__Group__0" | ||
3747 | |||
3748 | |||
3749 | // $ANTLR start "rule__MetamodelDeclaration__Group__0__Impl" | ||
3750 | // InternalApplicationConfiguration.g:1243:1: rule__MetamodelDeclaration__Group__0__Impl : ( 'metamodel' ) ; | ||
3751 | public final void rule__MetamodelDeclaration__Group__0__Impl() throws RecognitionException { | ||
3752 | |||
3753 | int stackSize = keepStackSize(); | ||
3754 | |||
3755 | try { | ||
3756 | // InternalApplicationConfiguration.g:1247:1: ( ( 'metamodel' ) ) | ||
3757 | // InternalApplicationConfiguration.g:1248:1: ( 'metamodel' ) | ||
3758 | { | ||
3759 | // InternalApplicationConfiguration.g:1248:1: ( 'metamodel' ) | ||
3760 | // InternalApplicationConfiguration.g:1249:2: 'metamodel' | ||
3761 | { | ||
3762 | before(grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); | ||
3763 | match(input,21,FOLLOW_2); | ||
3764 | after(grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); | ||
3765 | |||
3766 | } | ||
3767 | |||
3768 | |||
3769 | } | ||
3770 | |||
3771 | } | ||
3772 | catch (RecognitionException re) { | ||
3773 | reportError(re); | ||
3774 | recover(input,re); | ||
3775 | } | ||
3776 | finally { | ||
3777 | |||
3778 | restoreStackSize(stackSize); | ||
3779 | |||
3780 | } | ||
3781 | return ; | ||
3782 | } | ||
3783 | // $ANTLR end "rule__MetamodelDeclaration__Group__0__Impl" | ||
3784 | |||
3785 | |||
3786 | // $ANTLR start "rule__MetamodelDeclaration__Group__1" | ||
3787 | // InternalApplicationConfiguration.g:1258:1: rule__MetamodelDeclaration__Group__1 : rule__MetamodelDeclaration__Group__1__Impl rule__MetamodelDeclaration__Group__2 ; | ||
3788 | public final void rule__MetamodelDeclaration__Group__1() throws RecognitionException { | ||
3789 | |||
3790 | int stackSize = keepStackSize(); | ||
3791 | |||
3792 | try { | ||
3793 | // InternalApplicationConfiguration.g:1262:1: ( rule__MetamodelDeclaration__Group__1__Impl rule__MetamodelDeclaration__Group__2 ) | ||
3794 | // InternalApplicationConfiguration.g:1263:2: rule__MetamodelDeclaration__Group__1__Impl rule__MetamodelDeclaration__Group__2 | ||
3795 | { | ||
3796 | pushFollow(FOLLOW_14); | ||
3797 | rule__MetamodelDeclaration__Group__1__Impl(); | ||
3798 | |||
3799 | state._fsp--; | ||
3800 | |||
3801 | pushFollow(FOLLOW_2); | ||
3802 | rule__MetamodelDeclaration__Group__2(); | ||
3803 | |||
3804 | state._fsp--; | ||
3805 | |||
3806 | |||
3807 | } | ||
3808 | |||
3809 | } | ||
3810 | catch (RecognitionException re) { | ||
3811 | reportError(re); | ||
3812 | recover(input,re); | ||
3813 | } | ||
3814 | finally { | ||
3815 | |||
3816 | restoreStackSize(stackSize); | ||
3817 | |||
3818 | } | ||
3819 | return ; | ||
3820 | } | ||
3821 | // $ANTLR end "rule__MetamodelDeclaration__Group__1" | ||
3822 | |||
3823 | |||
3824 | // $ANTLR start "rule__MetamodelDeclaration__Group__1__Impl" | ||
3825 | // InternalApplicationConfiguration.g:1270:1: rule__MetamodelDeclaration__Group__1__Impl : ( ( rule__MetamodelDeclaration__NameAssignment_1 ) ) ; | ||
3826 | public final void rule__MetamodelDeclaration__Group__1__Impl() throws RecognitionException { | ||
3827 | |||
3828 | int stackSize = keepStackSize(); | ||
3829 | |||
3830 | try { | ||
3831 | // InternalApplicationConfiguration.g:1274:1: ( ( ( rule__MetamodelDeclaration__NameAssignment_1 ) ) ) | ||
3832 | // InternalApplicationConfiguration.g:1275:1: ( ( rule__MetamodelDeclaration__NameAssignment_1 ) ) | ||
3833 | { | ||
3834 | // InternalApplicationConfiguration.g:1275:1: ( ( rule__MetamodelDeclaration__NameAssignment_1 ) ) | ||
3835 | // InternalApplicationConfiguration.g:1276:2: ( rule__MetamodelDeclaration__NameAssignment_1 ) | ||
3836 | { | ||
3837 | before(grammarAccess.getMetamodelDeclarationAccess().getNameAssignment_1()); | ||
3838 | // InternalApplicationConfiguration.g:1277:2: ( rule__MetamodelDeclaration__NameAssignment_1 ) | ||
3839 | // InternalApplicationConfiguration.g:1277:3: rule__MetamodelDeclaration__NameAssignment_1 | ||
3840 | { | ||
3841 | pushFollow(FOLLOW_2); | ||
3842 | rule__MetamodelDeclaration__NameAssignment_1(); | ||
3843 | |||
3844 | state._fsp--; | ||
3845 | |||
3846 | |||
3847 | } | ||
3848 | |||
3849 | after(grammarAccess.getMetamodelDeclarationAccess().getNameAssignment_1()); | ||
3850 | |||
3851 | } | ||
3852 | |||
3853 | |||
3854 | } | ||
3855 | |||
3856 | } | ||
3857 | catch (RecognitionException re) { | ||
3858 | reportError(re); | ||
3859 | recover(input,re); | ||
3860 | } | ||
3861 | finally { | ||
3862 | |||
3863 | restoreStackSize(stackSize); | ||
3864 | |||
3865 | } | ||
3866 | return ; | ||
3867 | } | ||
3868 | // $ANTLR end "rule__MetamodelDeclaration__Group__1__Impl" | ||
3869 | |||
3870 | |||
3871 | // $ANTLR start "rule__MetamodelDeclaration__Group__2" | ||
3872 | // InternalApplicationConfiguration.g:1285:1: rule__MetamodelDeclaration__Group__2 : rule__MetamodelDeclaration__Group__2__Impl ; | ||
3873 | public final void rule__MetamodelDeclaration__Group__2() throws RecognitionException { | ||
3874 | |||
3875 | int stackSize = keepStackSize(); | ||
3876 | |||
3877 | try { | ||
3878 | // InternalApplicationConfiguration.g:1289:1: ( rule__MetamodelDeclaration__Group__2__Impl ) | ||
3879 | // InternalApplicationConfiguration.g:1290:2: rule__MetamodelDeclaration__Group__2__Impl | ||
3880 | { | ||
3881 | pushFollow(FOLLOW_2); | ||
3882 | rule__MetamodelDeclaration__Group__2__Impl(); | ||
3883 | |||
3884 | state._fsp--; | ||
3885 | |||
3886 | |||
3887 | } | ||
3888 | |||
3889 | } | ||
3890 | catch (RecognitionException re) { | ||
3891 | reportError(re); | ||
3892 | recover(input,re); | ||
3893 | } | ||
3894 | finally { | ||
3895 | |||
3896 | restoreStackSize(stackSize); | ||
3897 | |||
3898 | } | ||
3899 | return ; | ||
3900 | } | ||
3901 | // $ANTLR end "rule__MetamodelDeclaration__Group__2" | ||
3902 | |||
3903 | |||
3904 | // $ANTLR start "rule__MetamodelDeclaration__Group__2__Impl" | ||
3905 | // InternalApplicationConfiguration.g:1296:1: rule__MetamodelDeclaration__Group__2__Impl : ( ( rule__MetamodelDeclaration__SpecificationAssignment_2 ) ) ; | ||
3906 | public final void rule__MetamodelDeclaration__Group__2__Impl() throws RecognitionException { | ||
3907 | |||
3908 | int stackSize = keepStackSize(); | ||
3909 | |||
3910 | try { | ||
3911 | // InternalApplicationConfiguration.g:1300:1: ( ( ( rule__MetamodelDeclaration__SpecificationAssignment_2 ) ) ) | ||
3912 | // InternalApplicationConfiguration.g:1301:1: ( ( rule__MetamodelDeclaration__SpecificationAssignment_2 ) ) | ||
3913 | { | ||
3914 | // InternalApplicationConfiguration.g:1301:1: ( ( rule__MetamodelDeclaration__SpecificationAssignment_2 ) ) | ||
3915 | // InternalApplicationConfiguration.g:1302:2: ( rule__MetamodelDeclaration__SpecificationAssignment_2 ) | ||
3916 | { | ||
3917 | before(grammarAccess.getMetamodelDeclarationAccess().getSpecificationAssignment_2()); | ||
3918 | // InternalApplicationConfiguration.g:1303:2: ( rule__MetamodelDeclaration__SpecificationAssignment_2 ) | ||
3919 | // InternalApplicationConfiguration.g:1303:3: rule__MetamodelDeclaration__SpecificationAssignment_2 | ||
3920 | { | ||
3921 | pushFollow(FOLLOW_2); | ||
3922 | rule__MetamodelDeclaration__SpecificationAssignment_2(); | ||
3923 | |||
3924 | state._fsp--; | ||
3925 | |||
3926 | |||
3927 | } | ||
3928 | |||
3929 | after(grammarAccess.getMetamodelDeclarationAccess().getSpecificationAssignment_2()); | ||
3930 | |||
3931 | } | ||
3932 | |||
3933 | |||
3934 | } | ||
3935 | |||
3936 | } | ||
3937 | catch (RecognitionException re) { | ||
3938 | reportError(re); | ||
3939 | recover(input,re); | ||
3940 | } | ||
3941 | finally { | ||
3942 | |||
3943 | restoreStackSize(stackSize); | ||
3944 | |||
3945 | } | ||
3946 | return ; | ||
3947 | } | ||
3948 | // $ANTLR end "rule__MetamodelDeclaration__Group__2__Impl" | ||
3949 | |||
3950 | |||
3951 | // $ANTLR start "rule__ConfigurationScript__ImportsAssignment_0" | ||
3952 | // InternalApplicationConfiguration.g:1312:1: rule__ConfigurationScript__ImportsAssignment_0 : ( ruleImport ) ; | ||
3953 | public final void rule__ConfigurationScript__ImportsAssignment_0() throws RecognitionException { | ||
3954 | |||
3955 | int stackSize = keepStackSize(); | ||
3956 | |||
3957 | try { | ||
3958 | // InternalApplicationConfiguration.g:1316:1: ( ( ruleImport ) ) | ||
3959 | // InternalApplicationConfiguration.g:1317:2: ( ruleImport ) | ||
3960 | { | ||
3961 | // InternalApplicationConfiguration.g:1317:2: ( ruleImport ) | ||
3962 | // InternalApplicationConfiguration.g:1318:3: ruleImport | ||
3963 | { | ||
3964 | before(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); | ||
3965 | pushFollow(FOLLOW_2); | ||
3966 | ruleImport(); | ||
3967 | |||
3968 | state._fsp--; | ||
3969 | |||
3970 | after(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); | ||
3971 | |||
3972 | } | ||
3973 | |||
3974 | |||
3975 | } | ||
3976 | |||
3977 | } | ||
3978 | catch (RecognitionException re) { | ||
3979 | reportError(re); | ||
3980 | recover(input,re); | ||
3981 | } | ||
3982 | finally { | ||
3983 | |||
3984 | restoreStackSize(stackSize); | ||
3985 | |||
3986 | } | ||
3987 | return ; | ||
3988 | } | ||
3989 | // $ANTLR end "rule__ConfigurationScript__ImportsAssignment_0" | ||
3990 | |||
3991 | |||
3992 | // $ANTLR start "rule__ConfigurationScript__CommandsAssignment_1" | ||
3993 | // InternalApplicationConfiguration.g:1327:1: rule__ConfigurationScript__CommandsAssignment_1 : ( ruleCommand ) ; | ||
3994 | public final void rule__ConfigurationScript__CommandsAssignment_1() throws RecognitionException { | ||
3995 | |||
3996 | int stackSize = keepStackSize(); | ||
3997 | |||
3998 | try { | ||
3999 | // InternalApplicationConfiguration.g:1331:1: ( ( ruleCommand ) ) | ||
4000 | // InternalApplicationConfiguration.g:1332:2: ( ruleCommand ) | ||
4001 | { | ||
4002 | // InternalApplicationConfiguration.g:1332:2: ( ruleCommand ) | ||
4003 | // InternalApplicationConfiguration.g:1333:3: ruleCommand | ||
4004 | { | ||
4005 | before(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); | ||
4006 | pushFollow(FOLLOW_2); | ||
4007 | ruleCommand(); | ||
4008 | |||
4009 | state._fsp--; | ||
4010 | |||
4011 | after(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); | ||
4012 | |||
4013 | } | ||
4014 | |||
4015 | |||
4016 | } | ||
4017 | |||
4018 | } | ||
4019 | catch (RecognitionException re) { | ||
4020 | reportError(re); | ||
4021 | recover(input,re); | ||
4022 | } | ||
4023 | finally { | ||
4024 | |||
4025 | restoreStackSize(stackSize); | ||
4026 | |||
4027 | } | ||
4028 | return ; | ||
4029 | } | ||
4030 | // $ANTLR end "rule__ConfigurationScript__CommandsAssignment_1" | ||
4031 | |||
4032 | |||
4033 | // $ANTLR start "rule__EPackageImport__ImportedPackageAssignment_2" | ||
4034 | // InternalApplicationConfiguration.g:1342:1: rule__EPackageImport__ImportedPackageAssignment_2 : ( ( RULE_STRING ) ) ; | ||
4035 | public final void rule__EPackageImport__ImportedPackageAssignment_2() throws RecognitionException { | ||
4036 | |||
4037 | int stackSize = keepStackSize(); | ||
4038 | |||
4039 | try { | ||
4040 | // InternalApplicationConfiguration.g:1346:1: ( ( ( RULE_STRING ) ) ) | ||
4041 | // InternalApplicationConfiguration.g:1347:2: ( ( RULE_STRING ) ) | ||
4042 | { | ||
4043 | // InternalApplicationConfiguration.g:1347:2: ( ( RULE_STRING ) ) | ||
4044 | // InternalApplicationConfiguration.g:1348:3: ( RULE_STRING ) | ||
4045 | { | ||
4046 | before(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); | ||
4047 | // InternalApplicationConfiguration.g:1349:3: ( RULE_STRING ) | ||
4048 | // InternalApplicationConfiguration.g:1350:4: RULE_STRING | ||
4049 | { | ||
4050 | before(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1()); | ||
4051 | match(input,RULE_STRING,FOLLOW_2); | ||
4052 | after(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1()); | ||
4053 | |||
4054 | } | ||
4055 | |||
4056 | after(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); | ||
4057 | |||
4058 | } | ||
4059 | |||
4060 | |||
4061 | } | ||
4062 | |||
4063 | } | ||
4064 | catch (RecognitionException re) { | ||
4065 | reportError(re); | ||
4066 | recover(input,re); | ||
4067 | } | ||
4068 | finally { | ||
4069 | |||
4070 | restoreStackSize(stackSize); | ||
4071 | |||
4072 | } | ||
4073 | return ; | ||
4074 | } | ||
4075 | // $ANTLR end "rule__EPackageImport__ImportedPackageAssignment_2" | ||
4076 | |||
4077 | |||
4078 | // $ANTLR start "rule__ViatraImport__ImportedViatraAssignment_2" | ||
4079 | // InternalApplicationConfiguration.g:1361:1: rule__ViatraImport__ImportedViatraAssignment_2 : ( ( RULE_STRING ) ) ; | ||
4080 | public final void rule__ViatraImport__ImportedViatraAssignment_2() throws RecognitionException { | ||
4081 | |||
4082 | int stackSize = keepStackSize(); | ||
4083 | |||
4084 | try { | ||
4085 | // InternalApplicationConfiguration.g:1365:1: ( ( ( RULE_STRING ) ) ) | ||
4086 | // InternalApplicationConfiguration.g:1366:2: ( ( RULE_STRING ) ) | ||
4087 | { | ||
4088 | // InternalApplicationConfiguration.g:1366:2: ( ( RULE_STRING ) ) | ||
4089 | // InternalApplicationConfiguration.g:1367:3: ( RULE_STRING ) | ||
4090 | { | ||
4091 | before(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); | ||
4092 | // InternalApplicationConfiguration.g:1368:3: ( RULE_STRING ) | ||
4093 | // InternalApplicationConfiguration.g:1369:4: RULE_STRING | ||
4094 | { | ||
4095 | before(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1()); | ||
4096 | match(input,RULE_STRING,FOLLOW_2); | ||
4097 | after(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1()); | ||
4098 | |||
4099 | } | ||
4100 | |||
4101 | after(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); | ||
4102 | |||
4103 | } | ||
4104 | |||
4105 | |||
4106 | } | ||
4107 | |||
4108 | } | ||
4109 | catch (RecognitionException re) { | ||
4110 | reportError(re); | ||
4111 | recover(input,re); | ||
4112 | } | ||
4113 | finally { | ||
4114 | |||
4115 | restoreStackSize(stackSize); | ||
4116 | |||
4117 | } | ||
4118 | return ; | ||
4119 | } | ||
4120 | // $ANTLR end "rule__ViatraImport__ImportedViatraAssignment_2" | ||
4121 | |||
4122 | |||
4123 | // $ANTLR start "rule__MetamodelSpecification__EntriesAssignment_1" | ||
4124 | // InternalApplicationConfiguration.g:1380:1: rule__MetamodelSpecification__EntriesAssignment_1 : ( ruleMetamodelEntry ) ; | ||
4125 | public final void rule__MetamodelSpecification__EntriesAssignment_1() throws RecognitionException { | ||
4126 | |||
4127 | int stackSize = keepStackSize(); | ||
4128 | |||
4129 | try { | ||
4130 | // InternalApplicationConfiguration.g:1384:1: ( ( ruleMetamodelEntry ) ) | ||
4131 | // InternalApplicationConfiguration.g:1385:2: ( ruleMetamodelEntry ) | ||
4132 | { | ||
4133 | // InternalApplicationConfiguration.g:1385:2: ( ruleMetamodelEntry ) | ||
4134 | // InternalApplicationConfiguration.g:1386:3: ruleMetamodelEntry | ||
4135 | { | ||
4136 | before(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); | ||
4137 | pushFollow(FOLLOW_2); | ||
4138 | ruleMetamodelEntry(); | ||
4139 | |||
4140 | state._fsp--; | ||
4141 | |||
4142 | after(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); | ||
4143 | |||
4144 | } | ||
4145 | |||
4146 | |||
4147 | } | ||
4148 | |||
4149 | } | ||
4150 | catch (RecognitionException re) { | ||
4151 | reportError(re); | ||
4152 | recover(input,re); | ||
4153 | } | ||
4154 | finally { | ||
4155 | |||
4156 | restoreStackSize(stackSize); | ||
4157 | |||
4158 | } | ||
4159 | return ; | ||
4160 | } | ||
4161 | // $ANTLR end "rule__MetamodelSpecification__EntriesAssignment_1" | ||
4162 | |||
4163 | |||
4164 | // $ANTLR start "rule__MetamodelSpecification__EntriesAssignment_2_1" | ||
4165 | // InternalApplicationConfiguration.g:1395:1: rule__MetamodelSpecification__EntriesAssignment_2_1 : ( ruleMetamodelEntry ) ; | ||
4166 | public final void rule__MetamodelSpecification__EntriesAssignment_2_1() throws RecognitionException { | ||
4167 | |||
4168 | int stackSize = keepStackSize(); | ||
4169 | |||
4170 | try { | ||
4171 | // InternalApplicationConfiguration.g:1399:1: ( ( ruleMetamodelEntry ) ) | ||
4172 | // InternalApplicationConfiguration.g:1400:2: ( ruleMetamodelEntry ) | ||
4173 | { | ||
4174 | // InternalApplicationConfiguration.g:1400:2: ( ruleMetamodelEntry ) | ||
4175 | // InternalApplicationConfiguration.g:1401:3: ruleMetamodelEntry | ||
4176 | { | ||
4177 | before(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); | ||
4178 | pushFollow(FOLLOW_2); | ||
4179 | ruleMetamodelEntry(); | ||
4180 | |||
4181 | state._fsp--; | ||
4182 | |||
4183 | after(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); | ||
4184 | |||
4185 | } | ||
4186 | |||
4187 | |||
4188 | } | ||
4189 | |||
4190 | } | ||
4191 | catch (RecognitionException re) { | ||
4192 | reportError(re); | ||
4193 | recover(input,re); | ||
4194 | } | ||
4195 | finally { | ||
4196 | |||
4197 | restoreStackSize(stackSize); | ||
4198 | |||
4199 | } | ||
4200 | return ; | ||
4201 | } | ||
4202 | // $ANTLR end "rule__MetamodelSpecification__EntriesAssignment_2_1" | ||
4203 | |||
4204 | |||
4205 | // $ANTLR start "rule__AllPackageEntry__PackageAssignment_1" | ||
4206 | // InternalApplicationConfiguration.g:1410:1: rule__AllPackageEntry__PackageAssignment_1 : ( ( RULE_ID ) ) ; | ||
4207 | public final void rule__AllPackageEntry__PackageAssignment_1() throws RecognitionException { | ||
4208 | |||
4209 | int stackSize = keepStackSize(); | ||
4210 | |||
4211 | try { | ||
4212 | // InternalApplicationConfiguration.g:1414:1: ( ( ( RULE_ID ) ) ) | ||
4213 | // InternalApplicationConfiguration.g:1415:2: ( ( RULE_ID ) ) | ||
4214 | { | ||
4215 | // InternalApplicationConfiguration.g:1415:2: ( ( RULE_ID ) ) | ||
4216 | // InternalApplicationConfiguration.g:1416:3: ( RULE_ID ) | ||
4217 | { | ||
4218 | before(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | ||
4219 | // InternalApplicationConfiguration.g:1417:3: ( RULE_ID ) | ||
4220 | // InternalApplicationConfiguration.g:1418:4: RULE_ID | ||
4221 | { | ||
4222 | before(grammarAccess.getAllPackageEntryAccess().getPackageEPackageIDTerminalRuleCall_1_0_1()); | ||
4223 | match(input,RULE_ID,FOLLOW_2); | ||
4224 | after(grammarAccess.getAllPackageEntryAccess().getPackageEPackageIDTerminalRuleCall_1_0_1()); | ||
4225 | |||
4226 | } | ||
4227 | |||
4228 | after(grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | ||
4229 | |||
4230 | } | ||
4231 | |||
4232 | |||
4233 | } | ||
4234 | |||
4235 | } | ||
4236 | catch (RecognitionException re) { | ||
4237 | reportError(re); | ||
4238 | recover(input,re); | ||
4239 | } | ||
4240 | finally { | ||
4241 | |||
4242 | restoreStackSize(stackSize); | ||
4243 | |||
4244 | } | ||
4245 | return ; | ||
4246 | } | ||
4247 | // $ANTLR end "rule__AllPackageEntry__PackageAssignment_1" | ||
4248 | |||
4249 | |||
4250 | // $ANTLR start "rule__AllPackageEntry__ExclusionAssignment_2_2" | ||
4251 | // InternalApplicationConfiguration.g:1429:1: rule__AllPackageEntry__ExclusionAssignment_2_2 : ( ruleMetamodelElement ) ; | ||
4252 | public final void rule__AllPackageEntry__ExclusionAssignment_2_2() throws RecognitionException { | ||
4253 | |||
4254 | int stackSize = keepStackSize(); | ||
4255 | |||
4256 | try { | ||
4257 | // InternalApplicationConfiguration.g:1433:1: ( ( ruleMetamodelElement ) ) | ||
4258 | // InternalApplicationConfiguration.g:1434:2: ( ruleMetamodelElement ) | ||
4259 | { | ||
4260 | // InternalApplicationConfiguration.g:1434:2: ( ruleMetamodelElement ) | ||
4261 | // InternalApplicationConfiguration.g:1435:3: ruleMetamodelElement | ||
4262 | { | ||
4263 | before(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); | ||
4264 | pushFollow(FOLLOW_2); | ||
4265 | ruleMetamodelElement(); | ||
4266 | |||
4267 | state._fsp--; | ||
4268 | |||
4269 | after(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); | ||
4270 | |||
4271 | } | ||
4272 | |||
4273 | |||
4274 | } | ||
4275 | |||
4276 | } | ||
4277 | catch (RecognitionException re) { | ||
4278 | reportError(re); | ||
4279 | recover(input,re); | ||
4280 | } | ||
4281 | finally { | ||
4282 | |||
4283 | restoreStackSize(stackSize); | ||
4284 | |||
4285 | } | ||
4286 | return ; | ||
4287 | } | ||
4288 | // $ANTLR end "rule__AllPackageEntry__ExclusionAssignment_2_2" | ||
4289 | |||
4290 | |||
4291 | // $ANTLR start "rule__AllPackageEntry__ExclusionAssignment_2_3_1" | ||
4292 | // InternalApplicationConfiguration.g:1444:1: rule__AllPackageEntry__ExclusionAssignment_2_3_1 : ( ruleMetamodelElement ) ; | ||
4293 | public final void rule__AllPackageEntry__ExclusionAssignment_2_3_1() throws RecognitionException { | ||
4294 | |||
4295 | int stackSize = keepStackSize(); | ||
4296 | |||
4297 | try { | ||
4298 | // InternalApplicationConfiguration.g:1448:1: ( ( ruleMetamodelElement ) ) | ||
4299 | // InternalApplicationConfiguration.g:1449:2: ( ruleMetamodelElement ) | ||
4300 | { | ||
4301 | // InternalApplicationConfiguration.g:1449:2: ( ruleMetamodelElement ) | ||
4302 | // InternalApplicationConfiguration.g:1450:3: ruleMetamodelElement | ||
4303 | { | ||
4304 | before(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); | ||
4305 | pushFollow(FOLLOW_2); | ||
4306 | ruleMetamodelElement(); | ||
4307 | |||
4308 | state._fsp--; | ||
4309 | |||
4310 | after(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); | ||
4311 | |||
4312 | } | ||
4313 | |||
4314 | |||
4315 | } | ||
4316 | |||
4317 | } | ||
4318 | catch (RecognitionException re) { | ||
4319 | reportError(re); | ||
4320 | recover(input,re); | ||
4321 | } | ||
4322 | finally { | ||
4323 | |||
4324 | restoreStackSize(stackSize); | ||
4325 | |||
4326 | } | ||
4327 | return ; | ||
4328 | } | ||
4329 | // $ANTLR end "rule__AllPackageEntry__ExclusionAssignment_2_3_1" | ||
4330 | |||
4331 | |||
4332 | // $ANTLR start "rule__MetamodelElement__PackageAssignment_0_0" | ||
4333 | // InternalApplicationConfiguration.g:1459:1: rule__MetamodelElement__PackageAssignment_0_0 : ( ( RULE_ID ) ) ; | ||
4334 | public final void rule__MetamodelElement__PackageAssignment_0_0() throws RecognitionException { | ||
4335 | |||
4336 | int stackSize = keepStackSize(); | ||
4337 | |||
4338 | try { | ||
4339 | // InternalApplicationConfiguration.g:1463:1: ( ( ( RULE_ID ) ) ) | ||
4340 | // InternalApplicationConfiguration.g:1464:2: ( ( RULE_ID ) ) | ||
4341 | { | ||
4342 | // InternalApplicationConfiguration.g:1464:2: ( ( RULE_ID ) ) | ||
4343 | // InternalApplicationConfiguration.g:1465:3: ( RULE_ID ) | ||
4344 | { | ||
4345 | before(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | ||
4346 | // InternalApplicationConfiguration.g:1466:3: ( RULE_ID ) | ||
4347 | // InternalApplicationConfiguration.g:1467:4: RULE_ID | ||
4348 | { | ||
4349 | before(grammarAccess.getMetamodelElementAccess().getPackageEPackageIDTerminalRuleCall_0_0_0_1()); | ||
4350 | match(input,RULE_ID,FOLLOW_2); | ||
4351 | after(grammarAccess.getMetamodelElementAccess().getPackageEPackageIDTerminalRuleCall_0_0_0_1()); | ||
4352 | |||
4353 | } | ||
4354 | |||
4355 | after(grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | ||
4356 | |||
4357 | } | ||
4358 | |||
4359 | |||
4360 | } | ||
4361 | |||
4362 | } | ||
4363 | catch (RecognitionException re) { | ||
4364 | reportError(re); | ||
4365 | recover(input,re); | ||
4366 | } | ||
4367 | finally { | ||
4368 | |||
4369 | restoreStackSize(stackSize); | ||
4370 | |||
4371 | } | ||
4372 | return ; | ||
4373 | } | ||
4374 | // $ANTLR end "rule__MetamodelElement__PackageAssignment_0_0" | ||
4375 | |||
4376 | |||
4377 | // $ANTLR start "rule__MetamodelElement__ClassifierAssignment_1" | ||
4378 | // InternalApplicationConfiguration.g:1478:1: rule__MetamodelElement__ClassifierAssignment_1 : ( ( RULE_ID ) ) ; | ||
4379 | public final void rule__MetamodelElement__ClassifierAssignment_1() throws RecognitionException { | ||
4380 | |||
4381 | int stackSize = keepStackSize(); | ||
4382 | |||
4383 | try { | ||
4384 | // InternalApplicationConfiguration.g:1482:1: ( ( ( RULE_ID ) ) ) | ||
4385 | // InternalApplicationConfiguration.g:1483:2: ( ( RULE_ID ) ) | ||
4386 | { | ||
4387 | // InternalApplicationConfiguration.g:1483:2: ( ( RULE_ID ) ) | ||
4388 | // InternalApplicationConfiguration.g:1484:3: ( RULE_ID ) | ||
4389 | { | ||
4390 | before(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); | ||
4391 | // InternalApplicationConfiguration.g:1485:3: ( RULE_ID ) | ||
4392 | // InternalApplicationConfiguration.g:1486:4: RULE_ID | ||
4393 | { | ||
4394 | before(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierIDTerminalRuleCall_1_0_1()); | ||
4395 | match(input,RULE_ID,FOLLOW_2); | ||
4396 | after(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierIDTerminalRuleCall_1_0_1()); | ||
4397 | |||
4398 | } | ||
4399 | |||
4400 | after(grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); | ||
4401 | |||
4402 | } | ||
4403 | |||
4404 | |||
4405 | } | ||
4406 | |||
4407 | } | ||
4408 | catch (RecognitionException re) { | ||
4409 | reportError(re); | ||
4410 | recover(input,re); | ||
4411 | } | ||
4412 | finally { | ||
4413 | |||
4414 | restoreStackSize(stackSize); | ||
4415 | |||
4416 | } | ||
4417 | return ; | ||
4418 | } | ||
4419 | // $ANTLR end "rule__MetamodelElement__ClassifierAssignment_1" | ||
4420 | |||
4421 | |||
4422 | // $ANTLR start "rule__MetamodelElement__FeatureAssignment_2_1" | ||
4423 | // InternalApplicationConfiguration.g:1497:1: rule__MetamodelElement__FeatureAssignment_2_1 : ( ( RULE_ID ) ) ; | ||
4424 | public final void rule__MetamodelElement__FeatureAssignment_2_1() throws RecognitionException { | ||
4425 | |||
4426 | int stackSize = keepStackSize(); | ||
4427 | |||
4428 | try { | ||
4429 | // InternalApplicationConfiguration.g:1501:1: ( ( ( RULE_ID ) ) ) | ||
4430 | // InternalApplicationConfiguration.g:1502:2: ( ( RULE_ID ) ) | ||
4431 | { | ||
4432 | // InternalApplicationConfiguration.g:1502:2: ( ( RULE_ID ) ) | ||
4433 | // InternalApplicationConfiguration.g:1503:3: ( RULE_ID ) | ||
4434 | { | ||
4435 | before(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); | ||
4436 | // InternalApplicationConfiguration.g:1504:3: ( RULE_ID ) | ||
4437 | // InternalApplicationConfiguration.g:1505:4: RULE_ID | ||
4438 | { | ||
4439 | before(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementIDTerminalRuleCall_2_1_0_1()); | ||
4440 | match(input,RULE_ID,FOLLOW_2); | ||
4441 | after(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementIDTerminalRuleCall_2_1_0_1()); | ||
4442 | |||
4443 | } | ||
4444 | |||
4445 | after(grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); | ||
4446 | |||
4447 | } | ||
4448 | |||
4449 | |||
4450 | } | ||
4451 | |||
4452 | } | ||
4453 | catch (RecognitionException re) { | ||
4454 | reportError(re); | ||
4455 | recover(input,re); | ||
4456 | } | ||
4457 | finally { | ||
4458 | |||
4459 | restoreStackSize(stackSize); | ||
4460 | |||
4461 | } | ||
4462 | return ; | ||
4463 | } | ||
4464 | // $ANTLR end "rule__MetamodelElement__FeatureAssignment_2_1" | ||
4465 | |||
4466 | |||
4467 | // $ANTLR start "rule__MetamodelDeclaration__NameAssignment_1" | ||
4468 | // InternalApplicationConfiguration.g:1516:1: rule__MetamodelDeclaration__NameAssignment_1 : ( RULE_ID ) ; | ||
4469 | public final void rule__MetamodelDeclaration__NameAssignment_1() throws RecognitionException { | ||
4470 | |||
4471 | int stackSize = keepStackSize(); | ||
4472 | |||
4473 | try { | ||
4474 | // InternalApplicationConfiguration.g:1520:1: ( ( RULE_ID ) ) | ||
4475 | // InternalApplicationConfiguration.g:1521:2: ( RULE_ID ) | ||
4476 | { | ||
4477 | // InternalApplicationConfiguration.g:1521:2: ( RULE_ID ) | ||
4478 | // InternalApplicationConfiguration.g:1522:3: RULE_ID | ||
4479 | { | ||
4480 | before(grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
4481 | match(input,RULE_ID,FOLLOW_2); | ||
4482 | after(grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
4483 | |||
4484 | } | ||
4485 | |||
4486 | |||
4487 | } | ||
4488 | |||
4489 | } | ||
4490 | catch (RecognitionException re) { | ||
4491 | reportError(re); | ||
4492 | recover(input,re); | ||
4493 | } | ||
4494 | finally { | ||
4495 | |||
4496 | restoreStackSize(stackSize); | ||
4497 | |||
4498 | } | ||
4499 | return ; | ||
4500 | } | ||
4501 | // $ANTLR end "rule__MetamodelDeclaration__NameAssignment_1" | ||
4502 | |||
4503 | |||
4504 | // $ANTLR start "rule__MetamodelDeclaration__SpecificationAssignment_2" | ||
4505 | // InternalApplicationConfiguration.g:1531:1: rule__MetamodelDeclaration__SpecificationAssignment_2 : ( ruleMetamodelSpecification ) ; | ||
4506 | public final void rule__MetamodelDeclaration__SpecificationAssignment_2() throws RecognitionException { | ||
4507 | |||
4508 | int stackSize = keepStackSize(); | ||
4509 | |||
4510 | try { | ||
4511 | // InternalApplicationConfiguration.g:1535:1: ( ( ruleMetamodelSpecification ) ) | ||
4512 | // InternalApplicationConfiguration.g:1536:2: ( ruleMetamodelSpecification ) | ||
4513 | { | ||
4514 | // InternalApplicationConfiguration.g:1536:2: ( ruleMetamodelSpecification ) | ||
4515 | // InternalApplicationConfiguration.g:1537:3: ruleMetamodelSpecification | ||
4516 | { | ||
4517 | before(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); | ||
4518 | pushFollow(FOLLOW_2); | ||
4519 | ruleMetamodelSpecification(); | ||
4520 | |||
4521 | state._fsp--; | ||
4522 | |||
4523 | after(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); | ||
4524 | |||
4525 | } | ||
4526 | |||
4527 | |||
4528 | } | ||
4529 | |||
4530 | } | ||
4531 | catch (RecognitionException re) { | ||
4532 | reportError(re); | ||
4533 | recover(input,re); | ||
4534 | } | ||
4535 | finally { | ||
4536 | |||
4537 | restoreStackSize(stackSize); | ||
4538 | |||
4539 | } | ||
4540 | return ; | ||
4541 | } | ||
4542 | // $ANTLR end "rule__MetamodelDeclaration__SpecificationAssignment_2" | ||
4543 | |||
4544 | |||
4545 | // $ANTLR start "rule__MetamodelReference__ReferredAssignment" | ||
4546 | // InternalApplicationConfiguration.g:1546:1: rule__MetamodelReference__ReferredAssignment : ( ( RULE_ID ) ) ; | ||
4547 | public final void rule__MetamodelReference__ReferredAssignment() throws RecognitionException { | ||
4548 | |||
4549 | int stackSize = keepStackSize(); | ||
4550 | |||
4551 | try { | ||
4552 | // InternalApplicationConfiguration.g:1550:1: ( ( ( RULE_ID ) ) ) | ||
4553 | // InternalApplicationConfiguration.g:1551:2: ( ( RULE_ID ) ) | ||
4554 | { | ||
4555 | // InternalApplicationConfiguration.g:1551:2: ( ( RULE_ID ) ) | ||
4556 | // InternalApplicationConfiguration.g:1552:3: ( RULE_ID ) | ||
4557 | { | ||
4558 | before(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); | ||
4559 | // InternalApplicationConfiguration.g:1553:3: ( RULE_ID ) | ||
4560 | // InternalApplicationConfiguration.g:1554:4: RULE_ID | ||
4561 | { | ||
4562 | before(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationIDTerminalRuleCall_0_1()); | ||
4563 | match(input,RULE_ID,FOLLOW_2); | ||
4564 | after(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationIDTerminalRuleCall_0_1()); | ||
4565 | |||
4566 | } | ||
4567 | |||
4568 | after(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); | ||
4569 | |||
4570 | } | ||
4571 | |||
4572 | |||
4573 | } | ||
4574 | |||
4575 | } | ||
4576 | catch (RecognitionException re) { | ||
4577 | reportError(re); | ||
4578 | recover(input,re); | ||
4579 | } | ||
4580 | finally { | ||
4581 | |||
4582 | restoreStackSize(stackSize); | ||
4583 | |||
4584 | } | ||
4585 | return ; | ||
4586 | } | ||
4587 | // $ANTLR end "rule__MetamodelReference__ReferredAssignment" | ||
4588 | |||
4589 | // Delegated rules | ||
4590 | |||
4591 | |||
4592 | |||
4593 | |||
4594 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
4595 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
4596 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000200000L}); | ||
4597 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000802L}); | ||
4598 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000200002L}); | ||
4599 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000001000L}); | ||
4600 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000000010L}); | ||
4601 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000002000L}); | ||
4602 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000020020L}); | ||
4603 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000018000L}); | ||
4604 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000010002L}); | ||
4605 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000000020L}); | ||
4606 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000040000L}); | ||
4607 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000004000L}); | ||
4608 | public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000000100000L}); | ||
4609 | public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000080000L}); | ||
4610 | |||
4611 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/.classpath b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.classpath new file mode 100644 index 00000000..1287f96c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.classpath | |||
@@ -0,0 +1,9 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <classpath> | ||
3 | <classpathentry kind="src" path="src"/> | ||
4 | <classpathentry kind="src" path="src-gen"/> | ||
5 | <classpathentry kind="src" path="xtend-gen"/> | ||
6 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
7 | <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
8 | <classpathentry kind="output" path="bin"/> | ||
9 | </classpath> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.gitignore new file mode 100644 index 00000000..ae3c1726 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.gitignore | |||
@@ -0,0 +1 @@ | |||
/bin/ | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/.project b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.project new file mode 100644 index 00000000..57cbf77f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.project | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>hu.bme.mit.inf.dslreasoner.application.ui</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.jdt.core.javabuilder</name> | ||
15 | <arguments> | ||
16 | </arguments> | ||
17 | </buildCommand> | ||
18 | <buildCommand> | ||
19 | <name>org.eclipse.pde.ManifestBuilder</name> | ||
20 | <arguments> | ||
21 | </arguments> | ||
22 | </buildCommand> | ||
23 | <buildCommand> | ||
24 | <name>org.eclipse.pde.SchemaBuilder</name> | ||
25 | <arguments> | ||
26 | </arguments> | ||
27 | </buildCommand> | ||
28 | </buildSpec> | ||
29 | <natures> | ||
30 | <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
31 | <nature>org.eclipse.jdt.core.javanature</nature> | ||
32 | <nature>org.eclipse.pde.PluginNature</nature> | ||
33 | </natures> | ||
34 | </projectDescription> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/.settings/org.eclipse.core.resources.prefs b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..4824b802 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.settings/org.eclipse.core.resources.prefs | |||
@@ -0,0 +1,2 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | encoding/<project>=UTF-8 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/.settings/org.eclipse.jdt.core.prefs b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..295926d9 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/.settings/org.eclipse.jdt.core.prefs | |||
@@ -0,0 +1,7 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
4 | org.eclipse.jdt.core.compiler.compliance=1.8 | ||
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
7 | org.eclipse.jdt.core.compiler.source=1.8 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/META-INF/MANIFEST.MF b/Application/hu.bme.mit.inf.dslreasoner.application.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000..d4e1dd3c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/META-INF/MANIFEST.MF | |||
@@ -0,0 +1,26 @@ | |||
1 | Manifest-Version: 1.0 | ||
2 | Bundle-ManifestVersion: 2 | ||
3 | Bundle-Name: hu.bme.mit.inf.dslreasoner.application.ui | ||
4 | Bundle-Vendor: My Company | ||
5 | Bundle-Version: 1.0.0.qualifier | ||
6 | Bundle-SymbolicName: hu.bme.mit.inf.dslreasoner.application.ui; singleton:=true | ||
7 | Bundle-ActivationPolicy: lazy | ||
8 | Require-Bundle: hu.bme.mit.inf.dslreasoner.application, | ||
9 | hu.bme.mit.inf.dslreasoner.application.ide, | ||
10 | org.eclipse.xtext.ui, | ||
11 | org.eclipse.xtext.ui.shared, | ||
12 | org.eclipse.xtext.ui.codetemplates.ui, | ||
13 | org.eclipse.ui.editors;bundle-version="3.5.0", | ||
14 | org.eclipse.ui.ide;bundle-version="3.5.0", | ||
15 | org.eclipse.ui, | ||
16 | org.eclipse.compare, | ||
17 | org.eclipse.xtext.builder, | ||
18 | org.eclipse.xtend.lib;resolution:=optional, | ||
19 | org.eclipse.xtext.xbase.lib, | ||
20 | org.eclipse.viatra.addon.validation.runtime.ui;bundle-version="1.7.0" | ||
21 | Import-Package: org.apache.log4j | ||
22 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
23 | Export-Package: hu.bme.mit.inf.dslreasoner.application.ui.quickfix, | ||
24 | hu.bme.mit.inf.dslreasoner.application.ui.contentassist, | ||
25 | hu.bme.mit.inf.dslreasoner.application.ui.internal | ||
26 | Bundle-Activator: hu.bme.mit.inf.dslreasoner.application.ui.internal.ApplicationActivator | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/build.properties b/Application/hu.bme.mit.inf.dslreasoner.application.ui/build.properties new file mode 100644 index 00000000..91150a05 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/build.properties | |||
@@ -0,0 +1,6 @@ | |||
1 | source.. = src/,\ | ||
2 | src-gen/,\ | ||
3 | xtend-gen/ | ||
4 | bin.includes = .,\ | ||
5 | META-INF/,\ | ||
6 | plugin.xml | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/plugin.xml b/Application/hu.bme.mit.inf.dslreasoner.application.ui/plugin.xml new file mode 100644 index 00000000..099d6993 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/plugin.xml | |||
@@ -0,0 +1,430 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?eclipse version="3.0"?> | ||
3 | <plugin> | ||
4 | <extension | ||
5 | point="org.eclipse.ui.editors"> | ||
6 | <editor | ||
7 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" | ||
8 | contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" | ||
9 | default="true" | ||
10 | extensions="vsconfig" | ||
11 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
12 | name="ApplicationConfiguration Editor"> | ||
13 | </editor> | ||
14 | </extension> | ||
15 | <extension | ||
16 | point="org.eclipse.ui.handlers"> | ||
17 | <handler | ||
18 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" | ||
19 | commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> | ||
20 | <activeWhen> | ||
21 | <reference | ||
22 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
23 | </reference> | ||
24 | </activeWhen> | ||
25 | </handler> | ||
26 | <handler | ||
27 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" | ||
28 | commandId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.validate"> | ||
29 | <activeWhen> | ||
30 | <reference | ||
31 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
32 | </reference> | ||
33 | </activeWhen> | ||
34 | </handler> | ||
35 | <!-- copy qualified name --> | ||
36 | <handler | ||
37 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler" | ||
38 | commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"> | ||
39 | <activeWhen> | ||
40 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
41 | </activeWhen> | ||
42 | </handler> | ||
43 | <handler | ||
44 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler" | ||
45 | commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"> | ||
46 | <activeWhen> | ||
47 | <and> | ||
48 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.XtextEditor.opened" /> | ||
49 | <iterate> | ||
50 | <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" /> | ||
51 | </iterate> | ||
52 | </and> | ||
53 | </activeWhen> | ||
54 | </handler> | ||
55 | </extension> | ||
56 | <extension point="org.eclipse.core.expressions.definitions"> | ||
57 | <definition id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
58 | <and> | ||
59 | <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> | ||
60 | <with variable="activeEditor"> | ||
61 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" | ||
62 | value="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
63 | forcePluginActivation="true"/> | ||
64 | </with> | ||
65 | </and> | ||
66 | </definition> | ||
67 | <definition id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.XtextEditor.opened"> | ||
68 | <and> | ||
69 | <reference definitionId="isXtextEditorActive"/> | ||
70 | <with variable="activeEditor"> | ||
71 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" | ||
72 | value="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
73 | forcePluginActivation="true"/> | ||
74 | </with> | ||
75 | </and> | ||
76 | </definition> | ||
77 | </extension> | ||
78 | <extension | ||
79 | point="org.eclipse.ui.preferencePages"> | ||
80 | <page | ||
81 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" | ||
82 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
83 | name="ApplicationConfiguration"> | ||
84 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
85 | </page> | ||
86 | <page | ||
87 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
88 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" | ||
89 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.coloring" | ||
90 | name="Syntax Coloring"> | ||
91 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
92 | </page> | ||
93 | <page | ||
94 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
95 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" | ||
96 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.templates" | ||
97 | name="Templates"> | ||
98 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
99 | </page> | ||
100 | </extension> | ||
101 | <extension | ||
102 | point="org.eclipse.ui.propertyPages"> | ||
103 | <page | ||
104 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" | ||
105 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
106 | name="ApplicationConfiguration"> | ||
107 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
108 | <enabledWhen> | ||
109 | <adapt type="org.eclipse.core.resources.IProject"/> | ||
110 | </enabledWhen> | ||
111 | <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> | ||
112 | </page> | ||
113 | </extension> | ||
114 | <extension | ||
115 | point="org.eclipse.ui.keywords"> | ||
116 | <keyword | ||
117 | id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration" | ||
118 | label="ApplicationConfiguration"/> | ||
119 | </extension> | ||
120 | <extension | ||
121 | point="org.eclipse.ui.commands"> | ||
122 | <command | ||
123 | description="Trigger expensive validation" | ||
124 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.validate" | ||
125 | name="Validate"> | ||
126 | </command> | ||
127 | <!-- copy qualified name --> | ||
128 | <command | ||
129 | id="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" | ||
130 | categoryId="org.eclipse.ui.category.edit" | ||
131 | description="Copy the qualified name for the selected element" | ||
132 | name="Copy Qualified Name"> | ||
133 | </command> | ||
134 | <command | ||
135 | id="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName" | ||
136 | categoryId="org.eclipse.ui.category.edit" | ||
137 | description="Copy the qualified name for the selected element" | ||
138 | name="Copy Qualified Name"> | ||
139 | </command> | ||
140 | </extension> | ||
141 | <extension point="org.eclipse.ui.menus"> | ||
142 | <menuContribution | ||
143 | locationURI="popup:#TextEditorContext?after=group.edit"> | ||
144 | <command | ||
145 | commandId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.validate" | ||
146 | style="push" | ||
147 | tooltip="Trigger expensive validation"> | ||
148 | <visibleWhen checkEnabled="false"> | ||
149 | <reference | ||
150 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
151 | </reference> | ||
152 | </visibleWhen> | ||
153 | </command> | ||
154 | </menuContribution> | ||
155 | <!-- copy qualified name --> | ||
156 | <menuContribution locationURI="popup:#TextEditorContext?after=copy"> | ||
157 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" | ||
158 | style="push" tooltip="Copy Qualified Name"> | ||
159 | <visibleWhen checkEnabled="false"> | ||
160 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
161 | </visibleWhen> | ||
162 | </command> | ||
163 | </menuContribution> | ||
164 | <menuContribution locationURI="menu:edit?after=copy"> | ||
165 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" | ||
166 | style="push" tooltip="Copy Qualified Name"> | ||
167 | <visibleWhen checkEnabled="false"> | ||
168 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
169 | </visibleWhen> | ||
170 | </command> | ||
171 | </menuContribution> | ||
172 | <menuContribution locationURI="popup:org.eclipse.xtext.ui.outline?after=additions"> | ||
173 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName" | ||
174 | style="push" tooltip="Copy Qualified Name"> | ||
175 | <visibleWhen checkEnabled="false"> | ||
176 | <and> | ||
177 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.XtextEditor.opened" /> | ||
178 | <iterate> | ||
179 | <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" /> | ||
180 | </iterate> | ||
181 | </and> | ||
182 | </visibleWhen> | ||
183 | </command> | ||
184 | </menuContribution> | ||
185 | </extension> | ||
186 | <extension point="org.eclipse.ui.menus"> | ||
187 | <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> | ||
188 | <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> | ||
189 | <visibleWhen checkEnabled="false"> | ||
190 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
191 | </reference> | ||
192 | </visibleWhen> | ||
193 | </command> | ||
194 | </menuContribution> | ||
195 | </extension> | ||
196 | <extension point="org.eclipse.ui.handlers"> | ||
197 | <handler | ||
198 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" | ||
199 | commandId="org.eclipse.xtext.ui.editor.FindReferences"> | ||
200 | <activeWhen> | ||
201 | <reference | ||
202 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
203 | </reference> | ||
204 | </activeWhen> | ||
205 | </handler> | ||
206 | </extension> | ||
207 | <!-- adding resource factories --> | ||
208 | <extension | ||
209 | point="org.eclipse.emf.ecore.extension_parser"> | ||
210 | <parser | ||
211 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" | ||
212 | type="vsconfig"> | ||
213 | </parser> | ||
214 | </extension> | ||
215 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> | ||
216 | <resourceServiceProvider | ||
217 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" | ||
218 | uriExtension="vsconfig"> | ||
219 | </resourceServiceProvider> | ||
220 | </extension> | ||
221 | <!-- marker definitions for hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration --> | ||
222 | <extension | ||
223 | id="applicationconfiguration.check.fast" | ||
224 | name="ApplicationConfiguration Problem" | ||
225 | point="org.eclipse.core.resources.markers"> | ||
226 | <super type="org.eclipse.xtext.ui.check.fast"/> | ||
227 | <persistent value="true"/> | ||
228 | </extension> | ||
229 | <extension | ||
230 | id="applicationconfiguration.check.normal" | ||
231 | name="ApplicationConfiguration Problem" | ||
232 | point="org.eclipse.core.resources.markers"> | ||
233 | <super type="org.eclipse.xtext.ui.check.normal"/> | ||
234 | <persistent value="true"/> | ||
235 | </extension> | ||
236 | <extension | ||
237 | id="applicationconfiguration.check.expensive" | ||
238 | name="ApplicationConfiguration Problem" | ||
239 | point="org.eclipse.core.resources.markers"> | ||
240 | <super type="org.eclipse.xtext.ui.check.expensive"/> | ||
241 | <persistent value="true"/> | ||
242 | </extension> | ||
243 | <extension point="org.eclipse.xtext.builder.participant"> | ||
244 | <participant | ||
245 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant" | ||
246 | fileExtensions="vsconfig"/> | ||
247 | </extension> | ||
248 | <extension point="org.eclipse.ui.preferencePages"> | ||
249 | <page | ||
250 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
251 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" | ||
252 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compiler.preferencePage" | ||
253 | name="Compiler"> | ||
254 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
255 | </page> | ||
256 | </extension> | ||
257 | <extension point="org.eclipse.ui.propertyPages"> | ||
258 | <page | ||
259 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
260 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" | ||
261 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compiler.propertyPage" | ||
262 | name="Compiler"> | ||
263 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
264 | <enabledWhen> | ||
265 | <adapt type="org.eclipse.core.resources.IProject"/> | ||
266 | </enabledWhen> | ||
267 | <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> | ||
268 | </page> | ||
269 | </extension> | ||
270 | <extension point="org.eclipse.ui.menus"> | ||
271 | <menuContribution locationURI="popup:#TextEditorContext?after=xtext.ui.openDeclaration"> | ||
272 | <command | ||
273 | commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand" | ||
274 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.OpenGeneratedCode" | ||
275 | style="push"> | ||
276 | <visibleWhen checkEnabled="false"> | ||
277 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
278 | </visibleWhen> | ||
279 | </command> | ||
280 | </menuContribution> | ||
281 | </extension> | ||
282 | <extension point="org.eclipse.ui.handlers"> | ||
283 | <handler | ||
284 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler" | ||
285 | commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand"> | ||
286 | <activeWhen> | ||
287 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
288 | </activeWhen> | ||
289 | </handler> | ||
290 | </extension> | ||
291 | <!-- Quick Outline --> | ||
292 | <extension | ||
293 | point="org.eclipse.ui.handlers"> | ||
294 | <handler | ||
295 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" | ||
296 | commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> | ||
297 | <activeWhen> | ||
298 | <reference | ||
299 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
300 | </reference> | ||
301 | </activeWhen> | ||
302 | </handler> | ||
303 | </extension> | ||
304 | <extension | ||
305 | point="org.eclipse.ui.commands"> | ||
306 | <command | ||
307 | description="Open the quick outline." | ||
308 | id="org.eclipse.xtext.ui.editor.outline.QuickOutline" | ||
309 | name="Quick Outline"> | ||
310 | </command> | ||
311 | </extension> | ||
312 | <extension point="org.eclipse.ui.menus"> | ||
313 | <menuContribution | ||
314 | locationURI="popup:#TextEditorContext?after=group.open"> | ||
315 | <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" | ||
316 | style="push" | ||
317 | tooltip="Open Quick Outline"> | ||
318 | <visibleWhen checkEnabled="false"> | ||
319 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"/> | ||
320 | </visibleWhen> | ||
321 | </command> | ||
322 | </menuContribution> | ||
323 | </extension> | ||
324 | <!-- quickfix marker resolution generator for hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration --> | ||
325 | <extension | ||
326 | point="org.eclipse.ui.ide.markerResolution"> | ||
327 | <markerResolutionGenerator | ||
328 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
329 | markerType="hu.bme.mit.inf.dslreasoner.application.ui.applicationconfiguration.check.fast"> | ||
330 | <attribute | ||
331 | name="FIXABLE_KEY" | ||
332 | value="true"> | ||
333 | </attribute> | ||
334 | </markerResolutionGenerator> | ||
335 | <markerResolutionGenerator | ||
336 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
337 | markerType="hu.bme.mit.inf.dslreasoner.application.ui.applicationconfiguration.check.normal"> | ||
338 | <attribute | ||
339 | name="FIXABLE_KEY" | ||
340 | value="true"> | ||
341 | </attribute> | ||
342 | </markerResolutionGenerator> | ||
343 | <markerResolutionGenerator | ||
344 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
345 | markerType="hu.bme.mit.inf.dslreasoner.application.ui.applicationconfiguration.check.expensive"> | ||
346 | <attribute | ||
347 | name="FIXABLE_KEY" | ||
348 | value="true"> | ||
349 | </attribute> | ||
350 | </markerResolutionGenerator> | ||
351 | </extension> | ||
352 | <!-- Rename Refactoring --> | ||
353 | <extension point="org.eclipse.ui.handlers"> | ||
354 | <handler | ||
355 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler" | ||
356 | commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> | ||
357 | <activeWhen> | ||
358 | <reference | ||
359 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
360 | </reference> | ||
361 | </activeWhen> | ||
362 | </handler> | ||
363 | </extension> | ||
364 | <extension point="org.eclipse.ui.menus"> | ||
365 | <menuContribution | ||
366 | locationURI="popup:#TextEditorContext?after=group.edit"> | ||
367 | <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" | ||
368 | style="push"> | ||
369 | <visibleWhen checkEnabled="false"> | ||
370 | <reference | ||
371 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
372 | </reference> | ||
373 | </visibleWhen> | ||
374 | </command> | ||
375 | </menuContribution> | ||
376 | </extension> | ||
377 | <extension point="org.eclipse.ui.preferencePages"> | ||
378 | <page | ||
379 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
380 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage" | ||
381 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.refactoring" | ||
382 | name="Refactoring"> | ||
383 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
384 | </page> | ||
385 | </extension> | ||
386 | <extension point="org.eclipse.compare.contentViewers"> | ||
387 | <viewer id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compare.contentViewers" | ||
388 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" | ||
389 | extensions="vsconfig"> | ||
390 | </viewer> | ||
391 | </extension> | ||
392 | <extension point="org.eclipse.compare.contentMergeViewers"> | ||
393 | <viewer id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compare.contentMergeViewers" | ||
394 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" | ||
395 | extensions="vsconfig" label="ApplicationConfiguration Compare"> | ||
396 | </viewer> | ||
397 | </extension> | ||
398 | <extension point="org.eclipse.ui.editors.documentProviders"> | ||
399 | <provider id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.editors.documentProviders" | ||
400 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider" | ||
401 | extensions="vsconfig"> | ||
402 | </provider> | ||
403 | </extension> | ||
404 | <extension point="org.eclipse.team.core.fileTypes"> | ||
405 | <fileTypes | ||
406 | extension="vsconfig" | ||
407 | type="text"> | ||
408 | </fileTypes> | ||
409 | </extension> | ||
410 | <extension | ||
411 | point="org.eclipse.ui.commands"> | ||
412 | <command | ||
413 | defaultHandler="hu.bme.mit.inf.dslreasoner.application.ui.execute.ExecuteScriptHandler" | ||
414 | id="hu.bme.mit.inf.dslreasoner.application.ui.executescript" | ||
415 | name="ExecuteScript"> | ||
416 | </command> | ||
417 | </extension> | ||
418 | <extension | ||
419 | point="org.eclipse.ui.menus"> | ||
420 | <menuContribution | ||
421 | allPopups="false" | ||
422 | locationURI="popup:org.eclipse.ui.popup.any?after=org.eclipse.viatra.addon.validation.runtime.ui.menu"> | ||
423 | <command | ||
424 | commandId="hu.bme.mit.inf.dslreasoner.application.ui.executescript" | ||
425 | label="VIATRA Solver: Execute" | ||
426 | style="push"> | ||
427 | </command> | ||
428 | </menuContribution> | ||
429 | </extension> | ||
430 | </plugin> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/plugin.xml_gen b/Application/hu.bme.mit.inf.dslreasoner.application.ui/plugin.xml_gen new file mode 100644 index 00000000..15df9017 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/plugin.xml_gen | |||
@@ -0,0 +1,410 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?eclipse version="3.0"?> | ||
3 | <plugin> | ||
4 | <extension | ||
5 | point="org.eclipse.ui.editors"> | ||
6 | <editor | ||
7 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" | ||
8 | contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" | ||
9 | default="true" | ||
10 | extensions="vsconfig" | ||
11 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
12 | name="ApplicationConfiguration Editor"> | ||
13 | </editor> | ||
14 | </extension> | ||
15 | <extension | ||
16 | point="org.eclipse.ui.handlers"> | ||
17 | <handler | ||
18 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" | ||
19 | commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> | ||
20 | <activeWhen> | ||
21 | <reference | ||
22 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
23 | </reference> | ||
24 | </activeWhen> | ||
25 | </handler> | ||
26 | <handler | ||
27 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" | ||
28 | commandId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.validate"> | ||
29 | <activeWhen> | ||
30 | <reference | ||
31 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
32 | </reference> | ||
33 | </activeWhen> | ||
34 | </handler> | ||
35 | <!-- copy qualified name --> | ||
36 | <handler | ||
37 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler" | ||
38 | commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"> | ||
39 | <activeWhen> | ||
40 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
41 | </activeWhen> | ||
42 | </handler> | ||
43 | <handler | ||
44 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler" | ||
45 | commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"> | ||
46 | <activeWhen> | ||
47 | <and> | ||
48 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.XtextEditor.opened" /> | ||
49 | <iterate> | ||
50 | <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" /> | ||
51 | </iterate> | ||
52 | </and> | ||
53 | </activeWhen> | ||
54 | </handler> | ||
55 | </extension> | ||
56 | <extension point="org.eclipse.core.expressions.definitions"> | ||
57 | <definition id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
58 | <and> | ||
59 | <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> | ||
60 | <with variable="activeEditor"> | ||
61 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" | ||
62 | value="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
63 | forcePluginActivation="true"/> | ||
64 | </with> | ||
65 | </and> | ||
66 | </definition> | ||
67 | <definition id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.XtextEditor.opened"> | ||
68 | <and> | ||
69 | <reference definitionId="isXtextEditorActive"/> | ||
70 | <with variable="activeEditor"> | ||
71 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" | ||
72 | value="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
73 | forcePluginActivation="true"/> | ||
74 | </with> | ||
75 | </and> | ||
76 | </definition> | ||
77 | </extension> | ||
78 | <extension | ||
79 | point="org.eclipse.ui.preferencePages"> | ||
80 | <page | ||
81 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" | ||
82 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
83 | name="ApplicationConfiguration"> | ||
84 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
85 | </page> | ||
86 | <page | ||
87 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
88 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" | ||
89 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.coloring" | ||
90 | name="Syntax Coloring"> | ||
91 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
92 | </page> | ||
93 | <page | ||
94 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
95 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" | ||
96 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.templates" | ||
97 | name="Templates"> | ||
98 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
99 | </page> | ||
100 | </extension> | ||
101 | <extension | ||
102 | point="org.eclipse.ui.propertyPages"> | ||
103 | <page | ||
104 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" | ||
105 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
106 | name="ApplicationConfiguration"> | ||
107 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
108 | <enabledWhen> | ||
109 | <adapt type="org.eclipse.core.resources.IProject"/> | ||
110 | </enabledWhen> | ||
111 | <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> | ||
112 | </page> | ||
113 | </extension> | ||
114 | <extension | ||
115 | point="org.eclipse.ui.keywords"> | ||
116 | <keyword | ||
117 | id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration" | ||
118 | label="ApplicationConfiguration"/> | ||
119 | </extension> | ||
120 | <extension | ||
121 | point="org.eclipse.ui.commands"> | ||
122 | <command | ||
123 | description="Trigger expensive validation" | ||
124 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.validate" | ||
125 | name="Validate"> | ||
126 | </command> | ||
127 | <!-- copy qualified name --> | ||
128 | <command | ||
129 | id="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" | ||
130 | categoryId="org.eclipse.ui.category.edit" | ||
131 | description="Copy the qualified name for the selected element" | ||
132 | name="Copy Qualified Name"> | ||
133 | </command> | ||
134 | <command | ||
135 | id="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName" | ||
136 | categoryId="org.eclipse.ui.category.edit" | ||
137 | description="Copy the qualified name for the selected element" | ||
138 | name="Copy Qualified Name"> | ||
139 | </command> | ||
140 | </extension> | ||
141 | <extension point="org.eclipse.ui.menus"> | ||
142 | <menuContribution | ||
143 | locationURI="popup:#TextEditorContext?after=group.edit"> | ||
144 | <command | ||
145 | commandId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.validate" | ||
146 | style="push" | ||
147 | tooltip="Trigger expensive validation"> | ||
148 | <visibleWhen checkEnabled="false"> | ||
149 | <reference | ||
150 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
151 | </reference> | ||
152 | </visibleWhen> | ||
153 | </command> | ||
154 | </menuContribution> | ||
155 | <!-- copy qualified name --> | ||
156 | <menuContribution locationURI="popup:#TextEditorContext?after=copy"> | ||
157 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" | ||
158 | style="push" tooltip="Copy Qualified Name"> | ||
159 | <visibleWhen checkEnabled="false"> | ||
160 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
161 | </visibleWhen> | ||
162 | </command> | ||
163 | </menuContribution> | ||
164 | <menuContribution locationURI="menu:edit?after=copy"> | ||
165 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" | ||
166 | style="push" tooltip="Copy Qualified Name"> | ||
167 | <visibleWhen checkEnabled="false"> | ||
168 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
169 | </visibleWhen> | ||
170 | </command> | ||
171 | </menuContribution> | ||
172 | <menuContribution locationURI="popup:org.eclipse.xtext.ui.outline?after=additions"> | ||
173 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName" | ||
174 | style="push" tooltip="Copy Qualified Name"> | ||
175 | <visibleWhen checkEnabled="false"> | ||
176 | <and> | ||
177 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.XtextEditor.opened" /> | ||
178 | <iterate> | ||
179 | <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" /> | ||
180 | </iterate> | ||
181 | </and> | ||
182 | </visibleWhen> | ||
183 | </command> | ||
184 | </menuContribution> | ||
185 | </extension> | ||
186 | <extension point="org.eclipse.ui.menus"> | ||
187 | <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> | ||
188 | <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> | ||
189 | <visibleWhen checkEnabled="false"> | ||
190 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
191 | </reference> | ||
192 | </visibleWhen> | ||
193 | </command> | ||
194 | </menuContribution> | ||
195 | </extension> | ||
196 | <extension point="org.eclipse.ui.handlers"> | ||
197 | <handler | ||
198 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" | ||
199 | commandId="org.eclipse.xtext.ui.editor.FindReferences"> | ||
200 | <activeWhen> | ||
201 | <reference | ||
202 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
203 | </reference> | ||
204 | </activeWhen> | ||
205 | </handler> | ||
206 | </extension> | ||
207 | <!-- adding resource factories --> | ||
208 | <extension | ||
209 | point="org.eclipse.emf.ecore.extension_parser"> | ||
210 | <parser | ||
211 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" | ||
212 | type="vsconfig"> | ||
213 | </parser> | ||
214 | </extension> | ||
215 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> | ||
216 | <resourceServiceProvider | ||
217 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" | ||
218 | uriExtension="vsconfig"> | ||
219 | </resourceServiceProvider> | ||
220 | </extension> | ||
221 | <!-- marker definitions for hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration --> | ||
222 | <extension | ||
223 | id="applicationconfiguration.check.fast" | ||
224 | name="ApplicationConfiguration Problem" | ||
225 | point="org.eclipse.core.resources.markers"> | ||
226 | <super type="org.eclipse.xtext.ui.check.fast"/> | ||
227 | <persistent value="true"/> | ||
228 | </extension> | ||
229 | <extension | ||
230 | id="applicationconfiguration.check.normal" | ||
231 | name="ApplicationConfiguration Problem" | ||
232 | point="org.eclipse.core.resources.markers"> | ||
233 | <super type="org.eclipse.xtext.ui.check.normal"/> | ||
234 | <persistent value="true"/> | ||
235 | </extension> | ||
236 | <extension | ||
237 | id="applicationconfiguration.check.expensive" | ||
238 | name="ApplicationConfiguration Problem" | ||
239 | point="org.eclipse.core.resources.markers"> | ||
240 | <super type="org.eclipse.xtext.ui.check.expensive"/> | ||
241 | <persistent value="true"/> | ||
242 | </extension> | ||
243 | <extension point="org.eclipse.xtext.builder.participant"> | ||
244 | <participant | ||
245 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant" | ||
246 | fileExtensions="vsconfig"/> | ||
247 | </extension> | ||
248 | <extension point="org.eclipse.ui.preferencePages"> | ||
249 | <page | ||
250 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
251 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" | ||
252 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compiler.preferencePage" | ||
253 | name="Compiler"> | ||
254 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
255 | </page> | ||
256 | </extension> | ||
257 | <extension point="org.eclipse.ui.propertyPages"> | ||
258 | <page | ||
259 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
260 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" | ||
261 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compiler.propertyPage" | ||
262 | name="Compiler"> | ||
263 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
264 | <enabledWhen> | ||
265 | <adapt type="org.eclipse.core.resources.IProject"/> | ||
266 | </enabledWhen> | ||
267 | <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> | ||
268 | </page> | ||
269 | </extension> | ||
270 | <extension point="org.eclipse.ui.menus"> | ||
271 | <menuContribution locationURI="popup:#TextEditorContext?after=xtext.ui.openDeclaration"> | ||
272 | <command | ||
273 | commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand" | ||
274 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.OpenGeneratedCode" | ||
275 | style="push"> | ||
276 | <visibleWhen checkEnabled="false"> | ||
277 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
278 | </visibleWhen> | ||
279 | </command> | ||
280 | </menuContribution> | ||
281 | </extension> | ||
282 | <extension point="org.eclipse.ui.handlers"> | ||
283 | <handler | ||
284 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler" | ||
285 | commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand"> | ||
286 | <activeWhen> | ||
287 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened" /> | ||
288 | </activeWhen> | ||
289 | </handler> | ||
290 | </extension> | ||
291 | <!-- Quick Outline --> | ||
292 | <extension | ||
293 | point="org.eclipse.ui.handlers"> | ||
294 | <handler | ||
295 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" | ||
296 | commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> | ||
297 | <activeWhen> | ||
298 | <reference | ||
299 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
300 | </reference> | ||
301 | </activeWhen> | ||
302 | </handler> | ||
303 | </extension> | ||
304 | <extension | ||
305 | point="org.eclipse.ui.commands"> | ||
306 | <command | ||
307 | description="Open the quick outline." | ||
308 | id="org.eclipse.xtext.ui.editor.outline.QuickOutline" | ||
309 | name="Quick Outline"> | ||
310 | </command> | ||
311 | </extension> | ||
312 | <extension point="org.eclipse.ui.menus"> | ||
313 | <menuContribution | ||
314 | locationURI="popup:#TextEditorContext?after=group.open"> | ||
315 | <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" | ||
316 | style="push" | ||
317 | tooltip="Open Quick Outline"> | ||
318 | <visibleWhen checkEnabled="false"> | ||
319 | <reference definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"/> | ||
320 | </visibleWhen> | ||
321 | </command> | ||
322 | </menuContribution> | ||
323 | </extension> | ||
324 | <!-- quickfix marker resolution generator for hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration --> | ||
325 | <extension | ||
326 | point="org.eclipse.ui.ide.markerResolution"> | ||
327 | <markerResolutionGenerator | ||
328 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
329 | markerType="hu.bme.mit.inf.dslreasoner.application.ui.applicationconfiguration.check.fast"> | ||
330 | <attribute | ||
331 | name="FIXABLE_KEY" | ||
332 | value="true"> | ||
333 | </attribute> | ||
334 | </markerResolutionGenerator> | ||
335 | <markerResolutionGenerator | ||
336 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
337 | markerType="hu.bme.mit.inf.dslreasoner.application.ui.applicationconfiguration.check.normal"> | ||
338 | <attribute | ||
339 | name="FIXABLE_KEY" | ||
340 | value="true"> | ||
341 | </attribute> | ||
342 | </markerResolutionGenerator> | ||
343 | <markerResolutionGenerator | ||
344 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" | ||
345 | markerType="hu.bme.mit.inf.dslreasoner.application.ui.applicationconfiguration.check.expensive"> | ||
346 | <attribute | ||
347 | name="FIXABLE_KEY" | ||
348 | value="true"> | ||
349 | </attribute> | ||
350 | </markerResolutionGenerator> | ||
351 | </extension> | ||
352 | <!-- Rename Refactoring --> | ||
353 | <extension point="org.eclipse.ui.handlers"> | ||
354 | <handler | ||
355 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler" | ||
356 | commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> | ||
357 | <activeWhen> | ||
358 | <reference | ||
359 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
360 | </reference> | ||
361 | </activeWhen> | ||
362 | </handler> | ||
363 | </extension> | ||
364 | <extension point="org.eclipse.ui.menus"> | ||
365 | <menuContribution | ||
366 | locationURI="popup:#TextEditorContext?after=group.edit"> | ||
367 | <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" | ||
368 | style="push"> | ||
369 | <visibleWhen checkEnabled="false"> | ||
370 | <reference | ||
371 | definitionId="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Editor.opened"> | ||
372 | </reference> | ||
373 | </visibleWhen> | ||
374 | </command> | ||
375 | </menuContribution> | ||
376 | </extension> | ||
377 | <extension point="org.eclipse.ui.preferencePages"> | ||
378 | <page | ||
379 | category="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
380 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage" | ||
381 | id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.refactoring" | ||
382 | name="Refactoring"> | ||
383 | <keywordReference id="hu.bme.mit.inf.dslreasoner.application.ui.keyword_ApplicationConfiguration"/> | ||
384 | </page> | ||
385 | </extension> | ||
386 | <extension point="org.eclipse.compare.contentViewers"> | ||
387 | <viewer id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compare.contentViewers" | ||
388 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" | ||
389 | extensions="vsconfig"> | ||
390 | </viewer> | ||
391 | </extension> | ||
392 | <extension point="org.eclipse.compare.contentMergeViewers"> | ||
393 | <viewer id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.compare.contentMergeViewers" | ||
394 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" | ||
395 | extensions="vsconfig" label="ApplicationConfiguration Compare"> | ||
396 | </viewer> | ||
397 | </extension> | ||
398 | <extension point="org.eclipse.ui.editors.documentProviders"> | ||
399 | <provider id="hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.editors.documentProviders" | ||
400 | class="hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider" | ||
401 | extensions="vsconfig"> | ||
402 | </provider> | ||
403 | </extension> | ||
404 | <extension point="org.eclipse.team.core.fileTypes"> | ||
405 | <fileTypes | ||
406 | extension="vsconfig" | ||
407 | type="text"> | ||
408 | </fileTypes> | ||
409 | </extension> | ||
410 | </plugin> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/AbstractApplicationConfigurationUiModule.java b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/AbstractApplicationConfigurationUiModule.java new file mode 100644 index 00000000..75561658 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/AbstractApplicationConfigurationUiModule.java | |||
@@ -0,0 +1,280 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.Provider; | ||
8 | import com.google.inject.name.Names; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.ApplicationConfigurationParser; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.PartialApplicationConfigurationContentAssistParser; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.ide.contentassist.antlr.internal.InternalApplicationConfigurationLexer; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.ui.contentassist.ApplicationConfigurationProposalProvider; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.ui.labeling.ApplicationConfigurationDescriptionLabelProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.application.ui.labeling.ApplicationConfigurationLabelProvider; | ||
15 | import hu.bme.mit.inf.dslreasoner.application.ui.outline.ApplicationConfigurationOutlineTreeProvider; | ||
16 | import hu.bme.mit.inf.dslreasoner.application.ui.quickfix.ApplicationConfigurationQuickfixProvider; | ||
17 | import org.eclipse.compare.IViewerCreator; | ||
18 | import org.eclipse.core.resources.IWorkspaceRoot; | ||
19 | import org.eclipse.core.resources.ResourcesPlugin; | ||
20 | import org.eclipse.jface.viewers.ILabelProvider; | ||
21 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
22 | import org.eclipse.xtext.builder.BuilderParticipant; | ||
23 | import org.eclipse.xtext.builder.EclipseOutputConfigurationProvider; | ||
24 | import org.eclipse.xtext.builder.IXtextBuilderParticipant; | ||
25 | import org.eclipse.xtext.builder.builderState.IBuilderState; | ||
26 | import org.eclipse.xtext.builder.clustering.CurrentDescriptions; | ||
27 | import org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource; | ||
28 | import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback; | ||
29 | import org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess; | ||
30 | import org.eclipse.xtext.generator.IContextualOutputConfigurationProvider; | ||
31 | import org.eclipse.xtext.ide.LexerIdeBindings; | ||
32 | import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; | ||
33 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; | ||
34 | import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser; | ||
35 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
36 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
37 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
38 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
39 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
40 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
41 | import org.eclipse.xtext.service.SingletonBinding; | ||
42 | import org.eclipse.xtext.ui.DefaultUiModule; | ||
43 | import org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator; | ||
44 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialEditingContentAssistContextFactory; | ||
45 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.PartialEditingContentAssistContextFactory; | ||
46 | import org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage; | ||
47 | import org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration; | ||
48 | import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar; | ||
49 | import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry; | ||
50 | import org.eclipse.xtext.ui.compare.DefaultViewerCreator; | ||
51 | import org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource; | ||
52 | import org.eclipse.xtext.ui.editor.IXtextEditorCallback; | ||
53 | import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; | ||
54 | import org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher; | ||
55 | import org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider; | ||
56 | import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper; | ||
57 | import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher; | ||
58 | import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper; | ||
59 | import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory; | ||
60 | import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; | ||
61 | import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider; | ||
62 | import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer; | ||
63 | import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; | ||
64 | import org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage; | ||
65 | import org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator; | ||
66 | import org.eclipse.xtext.ui.refactoring.IReferenceUpdater; | ||
67 | import org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider; | ||
68 | import org.eclipse.xtext.ui.refactoring.IRenameStrategy; | ||
69 | import org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator; | ||
70 | import org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater; | ||
71 | import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider; | ||
72 | import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy; | ||
73 | import org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport; | ||
74 | import org.eclipse.xtext.ui.refactoring.ui.IRenameSupport; | ||
75 | import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences; | ||
76 | import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider; | ||
77 | import org.eclipse.xtext.ui.shared.Access; | ||
78 | |||
79 | /** | ||
80 | * Manual modifications go to {@link ApplicationConfigurationUiModule}. | ||
81 | */ | ||
82 | @SuppressWarnings("all") | ||
83 | public abstract class AbstractApplicationConfigurationUiModule extends DefaultUiModule { | ||
84 | |||
85 | public AbstractApplicationConfigurationUiModule(AbstractUIPlugin plugin) { | ||
86 | super(plugin); | ||
87 | } | ||
88 | |||
89 | // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment | ||
90 | public Provider<IAllContainersState> provideIAllContainersState() { | ||
91 | return Access.getJavaProjectsState(); | ||
92 | } | ||
93 | |||
94 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
95 | public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() { | ||
96 | return AntlrProposalConflictHelper.class; | ||
97 | } | ||
98 | |||
99 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
100 | public void configureContentAssistLexer(Binder binder) { | ||
101 | binder.bind(Lexer.class) | ||
102 | .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) | ||
103 | .to(InternalApplicationConfigurationLexer.class); | ||
104 | } | ||
105 | |||
106 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
107 | public void configureHighlightingLexer(Binder binder) { | ||
108 | binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) | ||
109 | .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) | ||
110 | .to(hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal.InternalApplicationConfigurationLexer.class); | ||
111 | } | ||
112 | |||
113 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
114 | public void configureHighlightingTokenDefProvider(Binder binder) { | ||
115 | binder.bind(ITokenDefProvider.class) | ||
116 | .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) | ||
117 | .to(AntlrTokenDefProvider.class); | ||
118 | } | ||
119 | |||
120 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
121 | public Class<? extends ContentAssistContext.Factory> bindContentAssistContext$Factory() { | ||
122 | return DelegatingContentAssistContextFactory.class; | ||
123 | } | ||
124 | |||
125 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
126 | public Class<? extends IContentAssistParser> bindIContentAssistParser() { | ||
127 | return ApplicationConfigurationParser.class; | ||
128 | } | ||
129 | |||
130 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
131 | public void configureContentAssistLexerProvider(Binder binder) { | ||
132 | binder.bind(InternalApplicationConfigurationLexer.class).toProvider(LexerProvider.create(InternalApplicationConfigurationLexer.class)); | ||
133 | } | ||
134 | |||
135 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
136 | public Class<? extends PrefixMatcher> bindPrefixMatcher() { | ||
137 | return FQNPrefixMatcher.class; | ||
138 | } | ||
139 | |||
140 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
141 | public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() { | ||
142 | return DefaultDependentElementsCalculator.class; | ||
143 | } | ||
144 | |||
145 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
146 | public void configureIResourceDescriptionsBuilderScope(Binder binder) { | ||
147 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(CurrentDescriptions.ResourceSetAware.class); | ||
148 | } | ||
149 | |||
150 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
151 | public Class<? extends IXtextEditorCallback> bindIXtextEditorCallback() { | ||
152 | return NatureAddingEditorCallback.class; | ||
153 | } | ||
154 | |||
155 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
156 | public Class<? extends IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() { | ||
157 | return EclipseOutputConfigurationProvider.class; | ||
158 | } | ||
159 | |||
160 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
161 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
162 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class); | ||
163 | } | ||
164 | |||
165 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
166 | public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { | ||
167 | return PersistentDataAwareDirtyResource.class; | ||
168 | } | ||
169 | |||
170 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
171 | public Class<? extends IXtextBuilderParticipant> bindIXtextBuilderParticipant() { | ||
172 | return BuilderParticipant.class; | ||
173 | } | ||
174 | |||
175 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
176 | public IWorkspaceRoot bindIWorkspaceRootToInstance() { | ||
177 | return ResourcesPlugin.getWorkspace().getRoot(); | ||
178 | } | ||
179 | |||
180 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
181 | public void configureBuilderPreferenceStoreInitializer(Binder binder) { | ||
182 | binder.bind(IPreferenceStoreInitializer.class) | ||
183 | .annotatedWith(Names.named("builderPreferenceInitializer")) | ||
184 | .to(BuilderPreferenceAccess.Initializer.class); | ||
185 | } | ||
186 | |||
187 | // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 | ||
188 | public Class<? extends ILabelProvider> bindILabelProvider() { | ||
189 | return ApplicationConfigurationLabelProvider.class; | ||
190 | } | ||
191 | |||
192 | // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 | ||
193 | public void configureResourceUIServiceLabelProvider(Binder binder) { | ||
194 | binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(ApplicationConfigurationDescriptionLabelProvider.class); | ||
195 | } | ||
196 | |||
197 | // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 | ||
198 | public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { | ||
199 | return ApplicationConfigurationOutlineTreeProvider.class; | ||
200 | } | ||
201 | |||
202 | // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 | ||
203 | public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { | ||
204 | return ApplicationConfigurationOutlineTreeProvider.class; | ||
205 | } | ||
206 | |||
207 | // contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2 | ||
208 | public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() { | ||
209 | return ApplicationConfigurationQuickfixProvider.class; | ||
210 | } | ||
211 | |||
212 | // contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2 | ||
213 | public Class<? extends IContentProposalProvider> bindIContentProposalProvider() { | ||
214 | return ApplicationConfigurationProposalProvider.class; | ||
215 | } | ||
216 | |||
217 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
218 | public Class<? extends IRenameStrategy> bindIRenameStrategy() { | ||
219 | return DefaultRenameStrategy.class; | ||
220 | } | ||
221 | |||
222 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
223 | public Class<? extends IReferenceUpdater> bindIReferenceUpdater() { | ||
224 | return DefaultReferenceUpdater.class; | ||
225 | } | ||
226 | |||
227 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
228 | public void configureIPreferenceStoreInitializer(Binder binder) { | ||
229 | binder.bind(IPreferenceStoreInitializer.class) | ||
230 | .annotatedWith(Names.named("RefactoringPreferences")) | ||
231 | .to(RefactoringPreferences.Initializer.class); | ||
232 | } | ||
233 | |||
234 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
235 | public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() { | ||
236 | return DefaultRenameRefactoringProvider.class; | ||
237 | } | ||
238 | |||
239 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
240 | public Class<? extends IRenameSupport.Factory> bindIRenameSupport$Factory() { | ||
241 | return DefaultRenameSupport.Factory.class; | ||
242 | } | ||
243 | |||
244 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
245 | public Provider<TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() { | ||
246 | return AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); | ||
247 | } | ||
248 | |||
249 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
250 | public Provider<LanguageRegistry> provideLanguageRegistry() { | ||
251 | return AccessibleCodetemplatesActivator.getLanguageRegistry(); | ||
252 | } | ||
253 | |||
254 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
255 | @SingletonBinding(eager=true) | ||
256 | public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { | ||
257 | return LanguageRegistrar.class; | ||
258 | } | ||
259 | |||
260 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
261 | public Class<? extends XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() { | ||
262 | return AdvancedTemplatesPreferencePage.class; | ||
263 | } | ||
264 | |||
265 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
266 | public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() { | ||
267 | return PartialApplicationConfigurationContentAssistParser.class; | ||
268 | } | ||
269 | |||
270 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
271 | public Class<? extends IPartialEditingContentAssistContextFactory> bindIPartialEditingContentAssistContextFactory() { | ||
272 | return PartialEditingContentAssistContextFactory.class; | ||
273 | } | ||
274 | |||
275 | // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 | ||
276 | public Class<? extends IViewerCreator> bindIViewerCreator() { | ||
277 | return DefaultViewerCreator.class; | ||
278 | } | ||
279 | |||
280 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/ApplicationConfigurationExecutableExtensionFactory.java b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/ApplicationConfigurationExecutableExtensionFactory.java new file mode 100644 index 00000000..c79a23a3 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/ApplicationConfigurationExecutableExtensionFactory.java | |||
@@ -0,0 +1,27 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui; | ||
5 | |||
6 | import com.google.inject.Injector; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.ui.internal.ApplicationActivator; | ||
8 | import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory; | ||
9 | import org.osgi.framework.Bundle; | ||
10 | |||
11 | /** | ||
12 | * This class was generated. Customizations should only happen in a newly | ||
13 | * introduced subclass. | ||
14 | */ | ||
15 | public class ApplicationConfigurationExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory { | ||
16 | |||
17 | @Override | ||
18 | protected Bundle getBundle() { | ||
19 | return ApplicationActivator.getInstance().getBundle(); | ||
20 | } | ||
21 | |||
22 | @Override | ||
23 | protected Injector getInjector() { | ||
24 | return ApplicationActivator.getInstance().getInjector(ApplicationActivator.HU_BME_MIT_INF_DSLREASONER_APPLICATION_APPLICATIONCONFIGURATION); | ||
25 | } | ||
26 | |||
27 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/AbstractApplicationConfigurationProposalProvider.java b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/AbstractApplicationConfigurationProposalProvider.java new file mode 100644 index 00000000..1409ec26 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/AbstractApplicationConfigurationProposalProvider.java | |||
@@ -0,0 +1,100 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.contentassist; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | import org.eclipse.xtext.Assignment; | ||
8 | import org.eclipse.xtext.CrossReference; | ||
9 | import org.eclipse.xtext.RuleCall; | ||
10 | import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider; | ||
11 | import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; | ||
12 | import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; | ||
13 | |||
14 | /** | ||
15 | * Represents a generated, default implementation of superclass {@link TerminalsProposalProvider}. | ||
16 | * Methods are dynamically dispatched on the first parameter, i.e., you can override them | ||
17 | * with a more concrete subtype. | ||
18 | */ | ||
19 | public abstract class AbstractApplicationConfigurationProposalProvider extends TerminalsProposalProvider { | ||
20 | |||
21 | public void completeConfigurationScript_Imports(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
22 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
23 | } | ||
24 | public void completeConfigurationScript_Commands(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
25 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
26 | } | ||
27 | public void completeEPackageImport_ImportedPackage(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
28 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
29 | } | ||
30 | public void completeViatraImport_ImportedViatra(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
31 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
32 | } | ||
33 | public void completeMetamodelSpecification_Entries(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
34 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
35 | } | ||
36 | public void completeAllPackageEntry_Package(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
37 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
38 | } | ||
39 | public void completeAllPackageEntry_Exclusion(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
40 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
41 | } | ||
42 | public void completeMetamodelElement_Package(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
43 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
44 | } | ||
45 | public void completeMetamodelElement_Classifier(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
46 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
47 | } | ||
48 | public void completeMetamodelElement_Feature(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
49 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
50 | } | ||
51 | public void completeMetamodelDeclaration_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
52 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
53 | } | ||
54 | public void completeMetamodelDeclaration_Specification(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
55 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
56 | } | ||
57 | public void completeMetamodelReference_Referred(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
58 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
59 | } | ||
60 | |||
61 | public void complete_ConfigurationScript(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
62 | // subclasses may override | ||
63 | } | ||
64 | public void complete_Command(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
65 | // subclasses may override | ||
66 | } | ||
67 | public void complete_Declaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
68 | // subclasses may override | ||
69 | } | ||
70 | public void complete_Import(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
71 | // subclasses may override | ||
72 | } | ||
73 | public void complete_EPackageImport(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
74 | // subclasses may override | ||
75 | } | ||
76 | public void complete_ViatraImport(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
77 | // subclasses may override | ||
78 | } | ||
79 | public void complete_MetamodelSpecification(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
80 | // subclasses may override | ||
81 | } | ||
82 | public void complete_MetamodelEntry(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
83 | // subclasses may override | ||
84 | } | ||
85 | public void complete_AllPackageEntry(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
86 | // subclasses may override | ||
87 | } | ||
88 | public void complete_MetamodelElement(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
89 | // subclasses may override | ||
90 | } | ||
91 | public void complete_MetamodelDeclaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
92 | // subclasses may override | ||
93 | } | ||
94 | public void complete_MetamodelReference(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
95 | // subclasses may override | ||
96 | } | ||
97 | public void complete_Metamodel(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
98 | // subclasses may override | ||
99 | } | ||
100 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/internal/ApplicationActivator.java b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/internal/ApplicationActivator.java new file mode 100644 index 00000000..230177a1 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src-gen/hu/bme/mit/inf/dslreasoner/application/ui/internal/ApplicationActivator.java | |||
@@ -0,0 +1,93 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.internal; | ||
5 | |||
6 | import com.google.common.collect.Maps; | ||
7 | import com.google.inject.Guice; | ||
8 | import com.google.inject.Injector; | ||
9 | import com.google.inject.Module; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.ApplicationConfigurationRuntimeModule; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.ui.ApplicationConfigurationUiModule; | ||
12 | import java.util.Collections; | ||
13 | import java.util.Map; | ||
14 | import org.apache.log4j.Logger; | ||
15 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
16 | import org.eclipse.xtext.ui.shared.SharedStateModule; | ||
17 | import org.eclipse.xtext.util.Modules2; | ||
18 | import org.osgi.framework.BundleContext; | ||
19 | |||
20 | /** | ||
21 | * This class was generated. Customizations should only happen in a newly | ||
22 | * introduced subclass. | ||
23 | */ | ||
24 | public class ApplicationActivator extends AbstractUIPlugin { | ||
25 | |||
26 | public static final String HU_BME_MIT_INF_DSLREASONER_APPLICATION_APPLICATIONCONFIGURATION = "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration"; | ||
27 | |||
28 | private static final Logger logger = Logger.getLogger(ApplicationActivator.class); | ||
29 | |||
30 | private static ApplicationActivator INSTANCE; | ||
31 | |||
32 | private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1)); | ||
33 | |||
34 | @Override | ||
35 | public void start(BundleContext context) throws Exception { | ||
36 | super.start(context); | ||
37 | INSTANCE = this; | ||
38 | } | ||
39 | |||
40 | @Override | ||
41 | public void stop(BundleContext context) throws Exception { | ||
42 | injectors.clear(); | ||
43 | INSTANCE = null; | ||
44 | super.stop(context); | ||
45 | } | ||
46 | |||
47 | public static ApplicationActivator getInstance() { | ||
48 | return INSTANCE; | ||
49 | } | ||
50 | |||
51 | public Injector getInjector(String language) { | ||
52 | synchronized (injectors) { | ||
53 | Injector injector = injectors.get(language); | ||
54 | if (injector == null) { | ||
55 | injectors.put(language, injector = createInjector(language)); | ||
56 | } | ||
57 | return injector; | ||
58 | } | ||
59 | } | ||
60 | |||
61 | protected Injector createInjector(String language) { | ||
62 | try { | ||
63 | Module runtimeModule = getRuntimeModule(language); | ||
64 | Module sharedStateModule = getSharedStateModule(); | ||
65 | Module uiModule = getUiModule(language); | ||
66 | Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule); | ||
67 | return Guice.createInjector(mergedModule); | ||
68 | } catch (Exception e) { | ||
69 | logger.error("Failed to create injector for " + language); | ||
70 | logger.error(e.getMessage(), e); | ||
71 | throw new RuntimeException("Failed to create injector for " + language, e); | ||
72 | } | ||
73 | } | ||
74 | |||
75 | protected Module getRuntimeModule(String grammar) { | ||
76 | if (HU_BME_MIT_INF_DSLREASONER_APPLICATION_APPLICATIONCONFIGURATION.equals(grammar)) { | ||
77 | return new ApplicationConfigurationRuntimeModule(); | ||
78 | } | ||
79 | throw new IllegalArgumentException(grammar); | ||
80 | } | ||
81 | |||
82 | protected Module getUiModule(String grammar) { | ||
83 | if (HU_BME_MIT_INF_DSLREASONER_APPLICATION_APPLICATIONCONFIGURATION.equals(grammar)) { | ||
84 | return new ApplicationConfigurationUiModule(this); | ||
85 | } | ||
86 | throw new IllegalArgumentException(grammar); | ||
87 | } | ||
88 | |||
89 | protected Module getSharedStateModule() { | ||
90 | return new SharedStateModule(); | ||
91 | } | ||
92 | |||
93 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/ApplicationConfigurationUiModule.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/ApplicationConfigurationUiModule.xtend new file mode 100644 index 00000000..ad86ba44 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/ApplicationConfigurationUiModule.xtend | |||
@@ -0,0 +1,13 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui | ||
5 | |||
6 | import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor | ||
7 | |||
8 | /** | ||
9 | * Use this class to register components to be used within the Eclipse IDE. | ||
10 | */ | ||
11 | @FinalFieldsConstructor | ||
12 | class ApplicationConfigurationUiModule extends AbstractApplicationConfigurationUiModule { | ||
13 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/ApplicationConfigurationProposalProvider.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/ApplicationConfigurationProposalProvider.xtend new file mode 100644 index 00000000..4eb4bf2b --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/ApplicationConfigurationProposalProvider.xtend | |||
@@ -0,0 +1,12 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.contentassist | ||
5 | |||
6 | |||
7 | /** | ||
8 | * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#content-assist | ||
9 | * on how to customize the content assistant. | ||
10 | */ | ||
11 | class ApplicationConfigurationProposalProvider extends AbstractApplicationConfigurationProposalProvider { | ||
12 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/execute/ExecuteScriptHandler.java b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/execute/ExecuteScriptHandler.java new file mode 100644 index 00000000..74e30ac6 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/execute/ExecuteScriptHandler.java | |||
@@ -0,0 +1,16 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.ui.execute; | ||
2 | |||
3 | import org.eclipse.core.commands.AbstractHandler; | ||
4 | import org.eclipse.core.commands.ExecutionEvent; | ||
5 | import org.eclipse.core.commands.ExecutionException; | ||
6 | import org.eclipse.core.commands.IHandler; | ||
7 | |||
8 | public class ExecuteScriptHandler extends AbstractHandler implements IHandler { | ||
9 | |||
10 | @Override | ||
11 | public Object execute(ExecutionEvent event) throws ExecutionException { | ||
12 | System.out.println("Called"); | ||
13 | return null; | ||
14 | } | ||
15 | |||
16 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/labeling/ApplicationConfigurationDescriptionLabelProvider.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/labeling/ApplicationConfigurationDescriptionLabelProvider.xtend new file mode 100644 index 00000000..eaade5a8 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/labeling/ApplicationConfigurationDescriptionLabelProvider.xtend | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.labeling | ||
5 | |||
6 | import org.eclipse.xtext.ui.label.DefaultDescriptionLabelProvider | ||
7 | |||
8 | /** | ||
9 | * Provides labels for IEObjectDescriptions and IResourceDescriptions. | ||
10 | * | ||
11 | * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider | ||
12 | */ | ||
13 | class ApplicationConfigurationDescriptionLabelProvider extends DefaultDescriptionLabelProvider { | ||
14 | |||
15 | // Labels and icons can be computed like this: | ||
16 | |||
17 | // override text(IEObjectDescription ele) { | ||
18 | // ele.name.toString | ||
19 | // } | ||
20 | // | ||
21 | // override image(IEObjectDescription ele) { | ||
22 | // ele.EClass.name + '.gif' | ||
23 | // } | ||
24 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/labeling/ApplicationConfigurationLabelProvider.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/labeling/ApplicationConfigurationLabelProvider.xtend new file mode 100644 index 00000000..7d8396ef --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/labeling/ApplicationConfigurationLabelProvider.xtend | |||
@@ -0,0 +1,31 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.labeling | ||
5 | |||
6 | import com.google.inject.Inject | ||
7 | import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider | ||
8 | import org.eclipse.xtext.ui.label.DefaultEObjectLabelProvider | ||
9 | |||
10 | /** | ||
11 | * Provides labels for EObjects. | ||
12 | * | ||
13 | * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider | ||
14 | */ | ||
15 | class ApplicationConfigurationLabelProvider extends DefaultEObjectLabelProvider { | ||
16 | |||
17 | @Inject | ||
18 | new(AdapterFactoryLabelProvider delegate) { | ||
19 | super(delegate); | ||
20 | } | ||
21 | |||
22 | // Labels and icons can be computed like this: | ||
23 | |||
24 | // def text(Greeting ele) { | ||
25 | // 'A greeting to ' + ele.name | ||
26 | // } | ||
27 | // | ||
28 | // def image(Greeting ele) { | ||
29 | // 'Greeting.gif' | ||
30 | // } | ||
31 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/outline/ApplicationConfigurationOutlineTreeProvider.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/outline/ApplicationConfigurationOutlineTreeProvider.xtend new file mode 100644 index 00000000..94c0e8fe --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/outline/ApplicationConfigurationOutlineTreeProvider.xtend | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.outline | ||
5 | |||
6 | import org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider | ||
7 | |||
8 | /** | ||
9 | * Customization of the default outline structure. | ||
10 | * | ||
11 | * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#outline | ||
12 | */ | ||
13 | class ApplicationConfigurationOutlineTreeProvider extends DefaultOutlineTreeProvider { | ||
14 | |||
15 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/quickfix/ApplicationConfigurationQuickfixProvider.xtend b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/quickfix/ApplicationConfigurationQuickfixProvider.xtend new file mode 100644 index 00000000..317e1b0a --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/src/hu/bme/mit/inf/dslreasoner/application/ui/quickfix/ApplicationConfigurationQuickfixProvider.xtend | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.ui.quickfix | ||
5 | |||
6 | import org.eclipse.xtext.ui.editor.quickfix.DefaultQuickfixProvider | ||
7 | |||
8 | /** | ||
9 | * Custom quickfixes. | ||
10 | * | ||
11 | * See https://www.eclipse.org/Xtext/documentation/310_eclipse_support.html#quick-fixes | ||
12 | */ | ||
13 | class ApplicationConfigurationQuickfixProvider extends DefaultQuickfixProvider { | ||
14 | |||
15 | // @Fix(ApplicationConfigurationValidator.INVALID_NAME) | ||
16 | // def capitalizeName(Issue issue, IssueResolutionAcceptor acceptor) { | ||
17 | // acceptor.accept(issue, 'Capitalize name', 'Capitalize the name.', 'upcase.png') [ | ||
18 | // context | | ||
19 | // val xtextDocument = context.xtextDocument | ||
20 | // val firstLetter = xtextDocument.get(issue.offset, 1) | ||
21 | // xtextDocument.replace(issue.offset, 1, firstLetter.toUpperCase) | ||
22 | // ] | ||
23 | // } | ||
24 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/.gitignore new file mode 100644 index 00000000..38bed698 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationUiModule.java._trace | ||
2 | /.ApplicationConfigurationUiModule.xtendbin | ||
3 | /ApplicationConfigurationUiModule.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/.gitignore new file mode 100644 index 00000000..42dd52f8 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/contentassist/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationProposalProvider.java._trace | ||
2 | /.ApplicationConfigurationProposalProvider.xtendbin | ||
3 | /ApplicationConfigurationProposalProvider.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/labeling/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/labeling/.gitignore new file mode 100644 index 00000000..b0578cff --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/labeling/.gitignore | |||
@@ -0,0 +1,6 @@ | |||
1 | /.ApplicationConfigurationDescriptionLabelProvider.java._trace | ||
2 | /.ApplicationConfigurationDescriptionLabelProvider.xtendbin | ||
3 | /.ApplicationConfigurationLabelProvider.java._trace | ||
4 | /.ApplicationConfigurationLabelProvider.xtendbin | ||
5 | /ApplicationConfigurationDescriptionLabelProvider.java | ||
6 | /ApplicationConfigurationLabelProvider.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/outline/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/outline/.gitignore new file mode 100644 index 00000000..af0111c5 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/outline/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationOutlineTreeProvider.java._trace | ||
2 | /.ApplicationConfigurationOutlineTreeProvider.xtendbin | ||
3 | /ApplicationConfigurationOutlineTreeProvider.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/quickfix/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/quickfix/.gitignore new file mode 100644 index 00000000..cc351654 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application.ui/xtend-gen/hu/bme/mit/inf/dslreasoner/application/ui/quickfix/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationQuickfixProvider.java._trace | ||
2 | /.ApplicationConfigurationQuickfixProvider.xtendbin | ||
3 | /ApplicationConfigurationQuickfixProvider.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/.classpath b/Application/hu.bme.mit.inf.dslreasoner.application/.classpath new file mode 100644 index 00000000..1287f96c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/.classpath | |||
@@ -0,0 +1,9 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <classpath> | ||
3 | <classpathentry kind="src" path="src"/> | ||
4 | <classpathentry kind="src" path="src-gen"/> | ||
5 | <classpathentry kind="src" path="xtend-gen"/> | ||
6 | <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
7 | <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> | ||
8 | <classpathentry kind="output" path="bin"/> | ||
9 | </classpath> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/.gitignore new file mode 100644 index 00000000..ae3c1726 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/.gitignore | |||
@@ -0,0 +1 @@ | |||
/bin/ | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/.project b/Application/hu.bme.mit.inf.dslreasoner.application/.project new file mode 100644 index 00000000..e7144bef --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/.project | |||
@@ -0,0 +1,34 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <projectDescription> | ||
3 | <name>hu.bme.mit.inf.dslreasoner.application</name> | ||
4 | <comment></comment> | ||
5 | <projects> | ||
6 | </projects> | ||
7 | <buildSpec> | ||
8 | <buildCommand> | ||
9 | <name>org.eclipse.xtext.ui.shared.xtextBuilder</name> | ||
10 | <arguments> | ||
11 | </arguments> | ||
12 | </buildCommand> | ||
13 | <buildCommand> | ||
14 | <name>org.eclipse.jdt.core.javabuilder</name> | ||
15 | <arguments> | ||
16 | </arguments> | ||
17 | </buildCommand> | ||
18 | <buildCommand> | ||
19 | <name>org.eclipse.pde.ManifestBuilder</name> | ||
20 | <arguments> | ||
21 | </arguments> | ||
22 | </buildCommand> | ||
23 | <buildCommand> | ||
24 | <name>org.eclipse.pde.SchemaBuilder</name> | ||
25 | <arguments> | ||
26 | </arguments> | ||
27 | </buildCommand> | ||
28 | </buildSpec> | ||
29 | <natures> | ||
30 | <nature>org.eclipse.xtext.ui.shared.xtextNature</nature> | ||
31 | <nature>org.eclipse.jdt.core.javanature</nature> | ||
32 | <nature>org.eclipse.pde.PluginNature</nature> | ||
33 | </natures> | ||
34 | </projectDescription> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/.settings/org.eclipse.core.resources.prefs b/Application/hu.bme.mit.inf.dslreasoner.application/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 00000000..4824b802 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/.settings/org.eclipse.core.resources.prefs | |||
@@ -0,0 +1,2 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | encoding/<project>=UTF-8 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/.settings/org.eclipse.jdt.core.prefs b/Application/hu.bme.mit.inf.dslreasoner.application/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..295926d9 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/.settings/org.eclipse.jdt.core.prefs | |||
@@ -0,0 +1,7 @@ | |||
1 | eclipse.preferences.version=1 | ||
2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 | ||
4 | org.eclipse.jdt.core.compiler.compliance=1.8 | ||
5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
7 | org.eclipse.jdt.core.compiler.source=1.8 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/META-INF/MANIFEST.MF b/Application/hu.bme.mit.inf.dslreasoner.application/META-INF/MANIFEST.MF new file mode 100644 index 00000000..c8060e7b --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/META-INF/MANIFEST.MF | |||
@@ -0,0 +1,44 @@ | |||
1 | Manifest-Version: 1.0 | ||
2 | Bundle-ManifestVersion: 2 | ||
3 | Bundle-Name: hu.bme.mit.inf.dslreasoner.application | ||
4 | Bundle-Vendor: My Company | ||
5 | Bundle-Version: 1.0.0.qualifier | ||
6 | Bundle-SymbolicName: hu.bme.mit.inf.dslreasoner.application; singleton:=true | ||
7 | Bundle-ActivationPolicy: lazy | ||
8 | Require-Bundle: org.eclipse.xtext, | ||
9 | org.eclipse.xtext.xbase, | ||
10 | org.eclipse.equinox.common;bundle-version="3.5.0", | ||
11 | org.eclipse.emf.ecore, | ||
12 | org.eclipse.xtext.xbase.lib, | ||
13 | org.eclipse.xtext.util, | ||
14 | org.eclipse.xtend.lib, | ||
15 | org.eclipse.emf.common, | ||
16 | org.antlr.runtime, | ||
17 | hu.bme.mit.inf.dslreasoner.ecore2logic;bundle-version="1.0.0", | ||
18 | hu.bme.mit.inf.dslreasoner.logic.model;bundle-version="1.0.0", | ||
19 | hu.bme.mit.inf.dslreasoner.smt.reasoner;bundle-version="1.0.0", | ||
20 | hu.bme.mit.inf.dslreasoner.viatra2logic;bundle-version="1.0.0", | ||
21 | hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic;bundle-version="1.0.0", | ||
22 | hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage;bundle-version="1.0.0", | ||
23 | hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner;bundle-version="1.0.0", | ||
24 | hu.bme.mit.inf.dslreasoner.visualisation;bundle-version="1.0.0", | ||
25 | hu.bme.mit.inf.dlsreasoner.alloy.reasoner;bundle-version="1.0.0", | ||
26 | hu.bme.mit.inf.dslreasoner.logic2ecore;bundle-version="1.0.0", | ||
27 | hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatraquery;bundle-version="1.0.0", | ||
28 | org.eclipse.viatra.query.patternlanguage;bundle-version="1.7.0", | ||
29 | org.eclipse.viatra.query.patternlanguage.emf;bundle-version="1.7.0", | ||
30 | org.eclipse.viatra.query.runtime;bundle-version="1.7.0", | ||
31 | org.eclipse.emf.codegen;bundle-version="2.11.0" | ||
32 | Bundle-RequiredExecutionEnvironment: JavaSE-1.8 | ||
33 | Export-Package: hu.bme.mit.inf.dslreasoner.application.services, | ||
34 | hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl, | ||
35 | hu.bme.mit.inf.dslreasoner.application, | ||
36 | hu.bme.mit.inf.dslreasoner.application.validation, | ||
37 | hu.bme.mit.inf.dslreasoner.application.serializer, | ||
38 | hu.bme.mit.inf.dslreasoner.application.applicationConfiguration, | ||
39 | hu.bme.mit.inf.dslreasoner.application.scoping, | ||
40 | hu.bme.mit.inf.dslreasoner.application.generator, | ||
41 | hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.util, | ||
42 | hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal, | ||
43 | hu.bme.mit.inf.dslreasoner.application.parser.antlr | ||
44 | Import-Package: org.apache.log4j | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/build.properties b/Application/hu.bme.mit.inf.dslreasoner.application/build.properties new file mode 100644 index 00000000..1045260f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/build.properties | |||
@@ -0,0 +1,18 @@ | |||
1 | source.. = src/,\ | ||
2 | src-gen/,\ | ||
3 | xtend-gen/ | ||
4 | bin.includes = model/generated/,\ | ||
5 | .,\ | ||
6 | META-INF/,\ | ||
7 | plugin.xml | ||
8 | additional.bundles = org.eclipse.xtext.xbase,\ | ||
9 | org.eclipse.xtext.common.types,\ | ||
10 | org.eclipse.xtext.xtext.generator,\ | ||
11 | org.eclipse.emf.codegen.ecore,\ | ||
12 | org.eclipse.emf.mwe.utils,\ | ||
13 | org.eclipse.emf.mwe2.launch,\ | ||
14 | org.eclipse.emf.mwe2.lib,\ | ||
15 | org.objectweb.asm,\ | ||
16 | org.apache.commons.logging,\ | ||
17 | org.apache.log4j,\ | ||
18 | com.ibm.icu | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/model/generated/ApplicationConfiguration.ecore b/Application/hu.bme.mit.inf.dslreasoner.application/model/generated/ApplicationConfiguration.ecore new file mode 100644 index 00000000..cd6ed927 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/model/generated/ApplicationConfiguration.ecore | |||
@@ -0,0 +1,44 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="applicationConfiguration" nsURI="http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration" | ||
4 | nsPrefix="applicationConfiguration"> | ||
5 | <eClassifiers xsi:type="ecore:EClass" name="ConfigurationScript"> | ||
6 | <eStructuralFeatures xsi:type="ecore:EReference" name="imports" upperBound="-1" | ||
7 | eType="#//Import" containment="true"/> | ||
8 | <eStructuralFeatures xsi:type="ecore:EReference" name="commands" upperBound="-1" | ||
9 | eType="#//Command" containment="true"/> | ||
10 | </eClassifiers> | ||
11 | <eClassifiers xsi:type="ecore:EClass" name="Command"/> | ||
12 | <eClassifiers xsi:type="ecore:EClass" name="Declaration" eSuperTypes="#//Command"/> | ||
13 | <eClassifiers xsi:type="ecore:EClass" name="Import"/> | ||
14 | <eClassifiers xsi:type="ecore:EClass" name="EPackageImport" eSuperTypes="#//Import"> | ||
15 | <eStructuralFeatures xsi:type="ecore:EReference" name="importedPackage" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage"/> | ||
16 | </eClassifiers> | ||
17 | <eClassifiers xsi:type="ecore:EClass" name="ViatraImport" eSuperTypes="#//Import"> | ||
18 | <eStructuralFeatures xsi:type="ecore:EReference" name="importedViatra" eType="ecore:EClass platform:/resource/org.eclipse.viatra.query.patternlanguage/model/generated/PatternLanguage.ecore#//PatternModel"/> | ||
19 | </eClassifiers> | ||
20 | <eClassifiers xsi:type="ecore:EClass" name="MetamodelSpecification" eSuperTypes="#//Metamodel"> | ||
21 | <eStructuralFeatures xsi:type="ecore:EReference" name="entries" upperBound="-1" | ||
22 | eType="#//MetamodelEntry" containment="true"/> | ||
23 | </eClassifiers> | ||
24 | <eClassifiers xsi:type="ecore:EClass" name="MetamodelEntry"> | ||
25 | <eStructuralFeatures xsi:type="ecore:EReference" name="package" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage"/> | ||
26 | </eClassifiers> | ||
27 | <eClassifiers xsi:type="ecore:EClass" name="AllPackageEntry" eSuperTypes="#//MetamodelEntry"> | ||
28 | <eStructuralFeatures xsi:type="ecore:EReference" name="exclusion" upperBound="-1" | ||
29 | eType="#//MetamodelElement" containment="true"/> | ||
30 | </eClassifiers> | ||
31 | <eClassifiers xsi:type="ecore:EClass" name="MetamodelElement" eSuperTypes="#//MetamodelEntry"> | ||
32 | <eStructuralFeatures xsi:type="ecore:EReference" name="classifier" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EClassifier"/> | ||
33 | <eStructuralFeatures xsi:type="ecore:EReference" name="feature" eType="ecore:EClass platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//ENamedElement"/> | ||
34 | </eClassifiers> | ||
35 | <eClassifiers xsi:type="ecore:EClass" name="MetamodelDeclaration" eSuperTypes="#//Declaration"> | ||
36 | <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType platform:/resource/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/> | ||
37 | <eStructuralFeatures xsi:type="ecore:EReference" name="specification" eType="#//MetamodelSpecification" | ||
38 | containment="true"/> | ||
39 | </eClassifiers> | ||
40 | <eClassifiers xsi:type="ecore:EClass" name="MetamodelReference" eSuperTypes="#//Metamodel"> | ||
41 | <eStructuralFeatures xsi:type="ecore:EReference" name="referred" eType="#//MetamodelDeclaration"/> | ||
42 | </eClassifiers> | ||
43 | <eClassifiers xsi:type="ecore:EClass" name="Metamodel"/> | ||
44 | </ecore:EPackage> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/model/generated/ApplicationConfiguration.genmodel b/Application/hu.bme.mit.inf.dslreasoner.application/model/generated/ApplicationConfiguration.genmodel new file mode 100644 index 00000000..add67f1e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/model/generated/ApplicationConfiguration.genmodel | |||
@@ -0,0 +1,44 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" | ||
3 | xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.10.0" modelDirectory="/hu.bme.mit.inf.dslreasoner.application/src-gen" | ||
4 | modelPluginID="hu.bme.mit.inf.dslreasoner.application" forceOverwrite="true" modelName="ApplicationConfiguration" | ||
5 | updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" | ||
6 | complianceLevel="6.0" copyrightFields="false" runtimeVersion="2.12" usedGenPackages="platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/resource/org.eclipse.viatra.query.patternlanguage/model/generated/PatternLanguage.genmodel#//patternLanguage"> | ||
7 | <genPackages prefix="ApplicationConfiguration" basePackage="hu.bme.mit.inf.dslreasoner.application" | ||
8 | disposableProviderFactory="true" fileExtensions="vsconfig" ecorePackage="ApplicationConfiguration.ecore#/"> | ||
9 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//ConfigurationScript"> | ||
10 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//ConfigurationScript/imports"/> | ||
11 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//ConfigurationScript/commands"/> | ||
12 | </genClasses> | ||
13 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//Command"/> | ||
14 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//Declaration"/> | ||
15 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//Import"/> | ||
16 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//EPackageImport"> | ||
17 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//EPackageImport/importedPackage"/> | ||
18 | </genClasses> | ||
19 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//ViatraImport"> | ||
20 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//ViatraImport/importedViatra"/> | ||
21 | </genClasses> | ||
22 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//MetamodelSpecification"> | ||
23 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//MetamodelSpecification/entries"/> | ||
24 | </genClasses> | ||
25 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//MetamodelEntry"> | ||
26 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//MetamodelEntry/package"/> | ||
27 | </genClasses> | ||
28 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//AllPackageEntry"> | ||
29 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//AllPackageEntry/exclusion"/> | ||
30 | </genClasses> | ||
31 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//MetamodelElement"> | ||
32 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//MetamodelElement/classifier"/> | ||
33 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//MetamodelElement/feature"/> | ||
34 | </genClasses> | ||
35 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//MetamodelDeclaration"> | ||
36 | <genFeatures createChild="false" ecoreFeature="ecore:EAttribute ApplicationConfiguration.ecore#//MetamodelDeclaration/name"/> | ||
37 | <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//MetamodelDeclaration/specification"/> | ||
38 | </genClasses> | ||
39 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//MetamodelReference"> | ||
40 | <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference ApplicationConfiguration.ecore#//MetamodelReference/referred"/> | ||
41 | </genClasses> | ||
42 | <genClasses ecoreClass="ApplicationConfiguration.ecore#//Metamodel"/> | ||
43 | </genPackages> | ||
44 | </genmodel:GenModel> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/plugin.xml b/Application/hu.bme.mit.inf.dslreasoner.application/plugin.xml new file mode 100644 index 00000000..956abc6e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/plugin.xml | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?eclipse version="3.0"?> | ||
3 | <plugin> | ||
4 | <extension point="org.eclipse.emf.ecore.generated_package"> | ||
5 | <package | ||
6 | uri = "http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration" | ||
7 | class = "hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage" | ||
8 | genModel = "model/generated/ApplicationConfiguration.genmodel" /> | ||
9 | </extension> | ||
10 | </plugin> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/plugin.xml_gen b/Application/hu.bme.mit.inf.dslreasoner.application/plugin.xml_gen new file mode 100644 index 00000000..956abc6e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/plugin.xml_gen | |||
@@ -0,0 +1,10 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <?eclipse version="3.0"?> | ||
3 | <plugin> | ||
4 | <extension point="org.eclipse.emf.ecore.generated_package"> | ||
5 | <package | ||
6 | uri = "http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration" | ||
7 | class = "hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage" | ||
8 | genModel = "model/generated/ApplicationConfiguration.genmodel" /> | ||
9 | </extension> | ||
10 | </plugin> | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java new file mode 100644 index 00000000..e7d271aa --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java | |||
@@ -0,0 +1,194 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.Provider; | ||
8 | import com.google.inject.name.Names; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.generator.ApplicationConfigurationGenerator; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.ApplicationConfigurationAntlrTokenFileProvider; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.ApplicationConfigurationParser; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal.InternalApplicationConfigurationLexer; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.scoping.ApplicationConfigurationScopeProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.application.serializer.ApplicationConfigurationSemanticSequencer; | ||
15 | import hu.bme.mit.inf.dslreasoner.application.serializer.ApplicationConfigurationSyntacticSequencer; | ||
16 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
17 | import hu.bme.mit.inf.dslreasoner.application.validation.ApplicationConfigurationValidator; | ||
18 | import java.util.Properties; | ||
19 | import org.eclipse.xtext.Constants; | ||
20 | import org.eclipse.xtext.IGrammarAccess; | ||
21 | import org.eclipse.xtext.generator.IGenerator2; | ||
22 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; | ||
23 | import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
24 | import org.eclipse.xtext.parser.IParser; | ||
25 | import org.eclipse.xtext.parser.ITokenToStringConverter; | ||
26 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
27 | import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; | ||
28 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
29 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
30 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
31 | import org.eclipse.xtext.parser.antlr.LexerBindings; | ||
32 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
33 | import org.eclipse.xtext.resource.IContainer; | ||
34 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
35 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
36 | import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; | ||
37 | import org.eclipse.xtext.resource.containers.StateBasedContainerManager; | ||
38 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
39 | import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; | ||
40 | import org.eclipse.xtext.scoping.IGlobalScopeProvider; | ||
41 | import org.eclipse.xtext.scoping.IScopeProvider; | ||
42 | import org.eclipse.xtext.scoping.IgnoreCaseLinking; | ||
43 | import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; | ||
44 | import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; | ||
45 | import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; | ||
46 | import org.eclipse.xtext.serializer.ISerializer; | ||
47 | import org.eclipse.xtext.serializer.impl.Serializer; | ||
48 | import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; | ||
49 | import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; | ||
50 | import org.eclipse.xtext.service.DefaultRuntimeModule; | ||
51 | import org.eclipse.xtext.service.SingletonBinding; | ||
52 | |||
53 | /** | ||
54 | * Manual modifications go to {@link ApplicationConfigurationRuntimeModule}. | ||
55 | */ | ||
56 | @SuppressWarnings("all") | ||
57 | public abstract class AbstractApplicationConfigurationRuntimeModule extends DefaultRuntimeModule { | ||
58 | |||
59 | protected Properties properties = null; | ||
60 | |||
61 | @Override | ||
62 | public void configure(Binder binder) { | ||
63 | properties = tryBindProperties(binder, "hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.properties"); | ||
64 | super.configure(binder); | ||
65 | } | ||
66 | |||
67 | public void configureLanguageName(Binder binder) { | ||
68 | binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration"); | ||
69 | } | ||
70 | |||
71 | public void configureFileExtensions(Binder binder) { | ||
72 | if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) | ||
73 | binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("vsconfig"); | ||
74 | } | ||
75 | |||
76 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
77 | public ClassLoader bindClassLoaderToInstance() { | ||
78 | return getClass().getClassLoader(); | ||
79 | } | ||
80 | |||
81 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
82 | public Class<? extends IGrammarAccess> bindIGrammarAccess() { | ||
83 | return ApplicationConfigurationGrammarAccess.class; | ||
84 | } | ||
85 | |||
86 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
87 | public Class<? extends ISemanticSequencer> bindISemanticSequencer() { | ||
88 | return ApplicationConfigurationSemanticSequencer.class; | ||
89 | } | ||
90 | |||
91 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
92 | public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() { | ||
93 | return ApplicationConfigurationSyntacticSequencer.class; | ||
94 | } | ||
95 | |||
96 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
97 | public Class<? extends ISerializer> bindISerializer() { | ||
98 | return Serializer.class; | ||
99 | } | ||
100 | |||
101 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
102 | public Class<? extends IParser> bindIParser() { | ||
103 | return ApplicationConfigurationParser.class; | ||
104 | } | ||
105 | |||
106 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
107 | public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { | ||
108 | return AntlrTokenToStringConverter.class; | ||
109 | } | ||
110 | |||
111 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
112 | public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() { | ||
113 | return ApplicationConfigurationAntlrTokenFileProvider.class; | ||
114 | } | ||
115 | |||
116 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
117 | public Class<? extends Lexer> bindLexer() { | ||
118 | return InternalApplicationConfigurationLexer.class; | ||
119 | } | ||
120 | |||
121 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
122 | public Class<? extends ITokenDefProvider> bindITokenDefProvider() { | ||
123 | return AntlrTokenDefProvider.class; | ||
124 | } | ||
125 | |||
126 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
127 | public Provider<InternalApplicationConfigurationLexer> provideInternalApplicationConfigurationLexer() { | ||
128 | return LexerProvider.create(InternalApplicationConfigurationLexer.class); | ||
129 | } | ||
130 | |||
131 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
132 | public void configureRuntimeLexer(Binder binder) { | ||
133 | binder.bind(Lexer.class) | ||
134 | .annotatedWith(Names.named(LexerBindings.RUNTIME)) | ||
135 | .to(InternalApplicationConfigurationLexer.class); | ||
136 | } | ||
137 | |||
138 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
139 | @SingletonBinding(eager=true) | ||
140 | public Class<? extends ApplicationConfigurationValidator> bindApplicationConfigurationValidator() { | ||
141 | return ApplicationConfigurationValidator.class; | ||
142 | } | ||
143 | |||
144 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
145 | public Class<? extends IScopeProvider> bindIScopeProvider() { | ||
146 | return ApplicationConfigurationScopeProvider.class; | ||
147 | } | ||
148 | |||
149 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
150 | public void configureIScopeProviderDelegate(Binder binder) { | ||
151 | binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); | ||
152 | } | ||
153 | |||
154 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
155 | public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() { | ||
156 | return DefaultGlobalScopeProvider.class; | ||
157 | } | ||
158 | |||
159 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
160 | public void configureIgnoreCaseLinking(Binder binder) { | ||
161 | binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); | ||
162 | } | ||
163 | |||
164 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
165 | public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { | ||
166 | return DefaultDeclarativeQualifiedNameProvider.class; | ||
167 | } | ||
168 | |||
169 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
170 | public Class<? extends IContainer.Manager> bindIContainer$Manager() { | ||
171 | return StateBasedContainerManager.class; | ||
172 | } | ||
173 | |||
174 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
175 | public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() { | ||
176 | return ResourceSetBasedAllContainersStateProvider.class; | ||
177 | } | ||
178 | |||
179 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
180 | public void configureIResourceDescriptions(Binder binder) { | ||
181 | binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); | ||
182 | } | ||
183 | |||
184 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
185 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
186 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); | ||
187 | } | ||
188 | |||
189 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
190 | public Class<? extends IGenerator2> bindIGenerator2() { | ||
191 | return ApplicationConfigurationGenerator.class; | ||
192 | } | ||
193 | |||
194 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.xtextbin b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.xtextbin new file mode 100644 index 00000000..24e7ffba --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.xtextbin | |||
Binary files differ | |||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationStandaloneSetupGenerated.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationStandaloneSetupGenerated.java new file mode 100644 index 00000000..30cbb5cb --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationStandaloneSetupGenerated.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application; | ||
5 | |||
6 | import com.google.inject.Guice; | ||
7 | import com.google.inject.Injector; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | import org.eclipse.emf.ecore.resource.Resource; | ||
11 | import org.eclipse.xtext.ISetup; | ||
12 | import org.eclipse.xtext.common.TerminalsStandaloneSetup; | ||
13 | import org.eclipse.xtext.resource.IResourceFactory; | ||
14 | import org.eclipse.xtext.resource.IResourceServiceProvider; | ||
15 | |||
16 | @SuppressWarnings("all") | ||
17 | public class ApplicationConfigurationStandaloneSetupGenerated implements ISetup { | ||
18 | |||
19 | @Override | ||
20 | public Injector createInjectorAndDoEMFRegistration() { | ||
21 | TerminalsStandaloneSetup.doSetup(); | ||
22 | |||
23 | Injector injector = createInjector(); | ||
24 | register(injector); | ||
25 | return injector; | ||
26 | } | ||
27 | |||
28 | public Injector createInjector() { | ||
29 | return Guice.createInjector(new ApplicationConfigurationRuntimeModule()); | ||
30 | } | ||
31 | |||
32 | public void register(Injector injector) { | ||
33 | if (!EPackage.Registry.INSTANCE.containsKey("http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration")) { | ||
34 | EPackage.Registry.INSTANCE.put("http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration", ApplicationConfigurationPackage.eINSTANCE); | ||
35 | } | ||
36 | IResourceFactory resourceFactory = injector.getInstance(IResourceFactory.class); | ||
37 | IResourceServiceProvider serviceProvider = injector.getInstance(IResourceServiceProvider.class); | ||
38 | |||
39 | Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("vsconfig", resourceFactory); | ||
40 | IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("vsconfig", serviceProvider); | ||
41 | } | ||
42 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/AllPackageEntry.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/AllPackageEntry.java new file mode 100644 index 00000000..dda28616 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/AllPackageEntry.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>All Package Entry</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry#getExclusion <em>Exclusion</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getAllPackageEntry() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface AllPackageEntry extends MetamodelEntry | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Exclusion</b></em>' containment reference list. | ||
28 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement}. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Exclusion</em>' containment reference list isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Exclusion</em>' containment reference list. | ||
36 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getAllPackageEntry_Exclusion() | ||
37 | * @model containment="true" | ||
38 | * @generated | ||
39 | */ | ||
40 | EList<MetamodelElement> getExclusion(); | ||
41 | |||
42 | } // AllPackageEntry | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationFactory.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationFactory.java new file mode 100644 index 00000000..33fcd49f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationFactory.java | |||
@@ -0,0 +1,152 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EFactory; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * The <b>Factory</b> for the model. | ||
11 | * It provides a create method for each non-abstract class of the model. | ||
12 | * <!-- end-user-doc --> | ||
13 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage | ||
14 | * @generated | ||
15 | */ | ||
16 | public interface ApplicationConfigurationFactory extends EFactory | ||
17 | { | ||
18 | /** | ||
19 | * The singleton instance of the factory. | ||
20 | * <!-- begin-user-doc --> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @generated | ||
23 | */ | ||
24 | ApplicationConfigurationFactory eINSTANCE = hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationFactoryImpl.init(); | ||
25 | |||
26 | /** | ||
27 | * Returns a new object of class '<em>Configuration Script</em>'. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <!-- end-user-doc --> | ||
30 | * @return a new object of class '<em>Configuration Script</em>'. | ||
31 | * @generated | ||
32 | */ | ||
33 | ConfigurationScript createConfigurationScript(); | ||
34 | |||
35 | /** | ||
36 | * Returns a new object of class '<em>Command</em>'. | ||
37 | * <!-- begin-user-doc --> | ||
38 | * <!-- end-user-doc --> | ||
39 | * @return a new object of class '<em>Command</em>'. | ||
40 | * @generated | ||
41 | */ | ||
42 | Command createCommand(); | ||
43 | |||
44 | /** | ||
45 | * Returns a new object of class '<em>Declaration</em>'. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @return a new object of class '<em>Declaration</em>'. | ||
49 | * @generated | ||
50 | */ | ||
51 | Declaration createDeclaration(); | ||
52 | |||
53 | /** | ||
54 | * Returns a new object of class '<em>Import</em>'. | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @return a new object of class '<em>Import</em>'. | ||
58 | * @generated | ||
59 | */ | ||
60 | Import createImport(); | ||
61 | |||
62 | /** | ||
63 | * Returns a new object of class '<em>EPackage Import</em>'. | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @return a new object of class '<em>EPackage Import</em>'. | ||
67 | * @generated | ||
68 | */ | ||
69 | EPackageImport createEPackageImport(); | ||
70 | |||
71 | /** | ||
72 | * Returns a new object of class '<em>Viatra Import</em>'. | ||
73 | * <!-- begin-user-doc --> | ||
74 | * <!-- end-user-doc --> | ||
75 | * @return a new object of class '<em>Viatra Import</em>'. | ||
76 | * @generated | ||
77 | */ | ||
78 | ViatraImport createViatraImport(); | ||
79 | |||
80 | /** | ||
81 | * Returns a new object of class '<em>Metamodel Specification</em>'. | ||
82 | * <!-- begin-user-doc --> | ||
83 | * <!-- end-user-doc --> | ||
84 | * @return a new object of class '<em>Metamodel Specification</em>'. | ||
85 | * @generated | ||
86 | */ | ||
87 | MetamodelSpecification createMetamodelSpecification(); | ||
88 | |||
89 | /** | ||
90 | * Returns a new object of class '<em>Metamodel Entry</em>'. | ||
91 | * <!-- begin-user-doc --> | ||
92 | * <!-- end-user-doc --> | ||
93 | * @return a new object of class '<em>Metamodel Entry</em>'. | ||
94 | * @generated | ||
95 | */ | ||
96 | MetamodelEntry createMetamodelEntry(); | ||
97 | |||
98 | /** | ||
99 | * Returns a new object of class '<em>All Package Entry</em>'. | ||
100 | * <!-- begin-user-doc --> | ||
101 | * <!-- end-user-doc --> | ||
102 | * @return a new object of class '<em>All Package Entry</em>'. | ||
103 | * @generated | ||
104 | */ | ||
105 | AllPackageEntry createAllPackageEntry(); | ||
106 | |||
107 | /** | ||
108 | * Returns a new object of class '<em>Metamodel Element</em>'. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @return a new object of class '<em>Metamodel Element</em>'. | ||
112 | * @generated | ||
113 | */ | ||
114 | MetamodelElement createMetamodelElement(); | ||
115 | |||
116 | /** | ||
117 | * Returns a new object of class '<em>Metamodel Declaration</em>'. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @return a new object of class '<em>Metamodel Declaration</em>'. | ||
121 | * @generated | ||
122 | */ | ||
123 | MetamodelDeclaration createMetamodelDeclaration(); | ||
124 | |||
125 | /** | ||
126 | * Returns a new object of class '<em>Metamodel Reference</em>'. | ||
127 | * <!-- begin-user-doc --> | ||
128 | * <!-- end-user-doc --> | ||
129 | * @return a new object of class '<em>Metamodel Reference</em>'. | ||
130 | * @generated | ||
131 | */ | ||
132 | MetamodelReference createMetamodelReference(); | ||
133 | |||
134 | /** | ||
135 | * Returns a new object of class '<em>Metamodel</em>'. | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @return a new object of class '<em>Metamodel</em>'. | ||
139 | * @generated | ||
140 | */ | ||
141 | Metamodel createMetamodel(); | ||
142 | |||
143 | /** | ||
144 | * Returns the package supported by this factory. | ||
145 | * <!-- begin-user-doc --> | ||
146 | * <!-- end-user-doc --> | ||
147 | * @return the package supported by this factory. | ||
148 | * @generated | ||
149 | */ | ||
150 | ApplicationConfigurationPackage getApplicationConfigurationPackage(); | ||
151 | |||
152 | } //ApplicationConfigurationFactory | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationPackage.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationPackage.java new file mode 100644 index 00000000..55c40d38 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ApplicationConfigurationPackage.java | |||
@@ -0,0 +1,947 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EAttribute; | ||
7 | import org.eclipse.emf.ecore.EClass; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.emf.ecore.EReference; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * The <b>Package</b> for the model. | ||
14 | * It contains accessors for the meta objects to represent | ||
15 | * <ul> | ||
16 | * <li>each class,</li> | ||
17 | * <li>each feature of each class,</li> | ||
18 | * <li>each enum,</li> | ||
19 | * <li>and each data type</li> | ||
20 | * </ul> | ||
21 | * <!-- end-user-doc --> | ||
22 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationFactory | ||
23 | * @model kind="package" | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface ApplicationConfigurationPackage extends EPackage | ||
27 | { | ||
28 | /** | ||
29 | * The package name. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | String eNAME = "applicationConfiguration"; | ||
35 | |||
36 | /** | ||
37 | * The package namespace URI. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | String eNS_URI = "http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration"; | ||
43 | |||
44 | /** | ||
45 | * The package namespace name. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @generated | ||
49 | */ | ||
50 | String eNS_PREFIX = "applicationConfiguration"; | ||
51 | |||
52 | /** | ||
53 | * The singleton instance of the package. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | ApplicationConfigurationPackage eINSTANCE = hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl.init(); | ||
59 | |||
60 | /** | ||
61 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl <em>Configuration Script</em>}' class. | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl | ||
65 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getConfigurationScript() | ||
66 | * @generated | ||
67 | */ | ||
68 | int CONFIGURATION_SCRIPT = 0; | ||
69 | |||
70 | /** | ||
71 | * The feature id for the '<em><b>Imports</b></em>' containment reference list. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | * @ordered | ||
76 | */ | ||
77 | int CONFIGURATION_SCRIPT__IMPORTS = 0; | ||
78 | |||
79 | /** | ||
80 | * The feature id for the '<em><b>Commands</b></em>' containment reference list. | ||
81 | * <!-- begin-user-doc --> | ||
82 | * <!-- end-user-doc --> | ||
83 | * @generated | ||
84 | * @ordered | ||
85 | */ | ||
86 | int CONFIGURATION_SCRIPT__COMMANDS = 1; | ||
87 | |||
88 | /** | ||
89 | * The number of structural features of the '<em>Configuration Script</em>' class. | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | * @ordered | ||
94 | */ | ||
95 | int CONFIGURATION_SCRIPT_FEATURE_COUNT = 2; | ||
96 | |||
97 | /** | ||
98 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CommandImpl <em>Command</em>}' class. | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CommandImpl | ||
102 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getCommand() | ||
103 | * @generated | ||
104 | */ | ||
105 | int COMMAND = 1; | ||
106 | |||
107 | /** | ||
108 | * The number of structural features of the '<em>Command</em>' class. | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | * @ordered | ||
113 | */ | ||
114 | int COMMAND_FEATURE_COUNT = 0; | ||
115 | |||
116 | /** | ||
117 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl <em>Declaration</em>}' class. | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl | ||
121 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getDeclaration() | ||
122 | * @generated | ||
123 | */ | ||
124 | int DECLARATION = 2; | ||
125 | |||
126 | /** | ||
127 | * The number of structural features of the '<em>Declaration</em>' class. | ||
128 | * <!-- begin-user-doc --> | ||
129 | * <!-- end-user-doc --> | ||
130 | * @generated | ||
131 | * @ordered | ||
132 | */ | ||
133 | int DECLARATION_FEATURE_COUNT = COMMAND_FEATURE_COUNT + 0; | ||
134 | |||
135 | /** | ||
136 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ImportImpl <em>Import</em>}' class. | ||
137 | * <!-- begin-user-doc --> | ||
138 | * <!-- end-user-doc --> | ||
139 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ImportImpl | ||
140 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getImport() | ||
141 | * @generated | ||
142 | */ | ||
143 | int IMPORT = 3; | ||
144 | |||
145 | /** | ||
146 | * The number of structural features of the '<em>Import</em>' class. | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | * @ordered | ||
151 | */ | ||
152 | int IMPORT_FEATURE_COUNT = 0; | ||
153 | |||
154 | /** | ||
155 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl <em>EPackage Import</em>}' class. | ||
156 | * <!-- begin-user-doc --> | ||
157 | * <!-- end-user-doc --> | ||
158 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl | ||
159 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getEPackageImport() | ||
160 | * @generated | ||
161 | */ | ||
162 | int EPACKAGE_IMPORT = 4; | ||
163 | |||
164 | /** | ||
165 | * The feature id for the '<em><b>Imported Package</b></em>' reference. | ||
166 | * <!-- begin-user-doc --> | ||
167 | * <!-- end-user-doc --> | ||
168 | * @generated | ||
169 | * @ordered | ||
170 | */ | ||
171 | int EPACKAGE_IMPORT__IMPORTED_PACKAGE = IMPORT_FEATURE_COUNT + 0; | ||
172 | |||
173 | /** | ||
174 | * The number of structural features of the '<em>EPackage Import</em>' class. | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | * @ordered | ||
179 | */ | ||
180 | int EPACKAGE_IMPORT_FEATURE_COUNT = IMPORT_FEATURE_COUNT + 1; | ||
181 | |||
182 | /** | ||
183 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl <em>Viatra Import</em>}' class. | ||
184 | * <!-- begin-user-doc --> | ||
185 | * <!-- end-user-doc --> | ||
186 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl | ||
187 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getViatraImport() | ||
188 | * @generated | ||
189 | */ | ||
190 | int VIATRA_IMPORT = 5; | ||
191 | |||
192 | /** | ||
193 | * The feature id for the '<em><b>Imported Viatra</b></em>' reference. | ||
194 | * <!-- begin-user-doc --> | ||
195 | * <!-- end-user-doc --> | ||
196 | * @generated | ||
197 | * @ordered | ||
198 | */ | ||
199 | int VIATRA_IMPORT__IMPORTED_VIATRA = IMPORT_FEATURE_COUNT + 0; | ||
200 | |||
201 | /** | ||
202 | * The number of structural features of the '<em>Viatra Import</em>' class. | ||
203 | * <!-- begin-user-doc --> | ||
204 | * <!-- end-user-doc --> | ||
205 | * @generated | ||
206 | * @ordered | ||
207 | */ | ||
208 | int VIATRA_IMPORT_FEATURE_COUNT = IMPORT_FEATURE_COUNT + 1; | ||
209 | |||
210 | /** | ||
211 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelImpl <em>Metamodel</em>}' class. | ||
212 | * <!-- begin-user-doc --> | ||
213 | * <!-- end-user-doc --> | ||
214 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelImpl | ||
215 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodel() | ||
216 | * @generated | ||
217 | */ | ||
218 | int METAMODEL = 12; | ||
219 | |||
220 | /** | ||
221 | * The number of structural features of the '<em>Metamodel</em>' class. | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | * @ordered | ||
226 | */ | ||
227 | int METAMODEL_FEATURE_COUNT = 0; | ||
228 | |||
229 | /** | ||
230 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl <em>Metamodel Specification</em>}' class. | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl | ||
234 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelSpecification() | ||
235 | * @generated | ||
236 | */ | ||
237 | int METAMODEL_SPECIFICATION = 6; | ||
238 | |||
239 | /** | ||
240 | * The feature id for the '<em><b>Entries</b></em>' containment reference list. | ||
241 | * <!-- begin-user-doc --> | ||
242 | * <!-- end-user-doc --> | ||
243 | * @generated | ||
244 | * @ordered | ||
245 | */ | ||
246 | int METAMODEL_SPECIFICATION__ENTRIES = METAMODEL_FEATURE_COUNT + 0; | ||
247 | |||
248 | /** | ||
249 | * The number of structural features of the '<em>Metamodel Specification</em>' class. | ||
250 | * <!-- begin-user-doc --> | ||
251 | * <!-- end-user-doc --> | ||
252 | * @generated | ||
253 | * @ordered | ||
254 | */ | ||
255 | int METAMODEL_SPECIFICATION_FEATURE_COUNT = METAMODEL_FEATURE_COUNT + 1; | ||
256 | |||
257 | /** | ||
258 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl <em>Metamodel Entry</em>}' class. | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl | ||
262 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelEntry() | ||
263 | * @generated | ||
264 | */ | ||
265 | int METAMODEL_ENTRY = 7; | ||
266 | |||
267 | /** | ||
268 | * The feature id for the '<em><b>Package</b></em>' reference. | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | * @ordered | ||
273 | */ | ||
274 | int METAMODEL_ENTRY__PACKAGE = 0; | ||
275 | |||
276 | /** | ||
277 | * The number of structural features of the '<em>Metamodel Entry</em>' class. | ||
278 | * <!-- begin-user-doc --> | ||
279 | * <!-- end-user-doc --> | ||
280 | * @generated | ||
281 | * @ordered | ||
282 | */ | ||
283 | int METAMODEL_ENTRY_FEATURE_COUNT = 1; | ||
284 | |||
285 | /** | ||
286 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPackageEntryImpl <em>All Package Entry</em>}' class. | ||
287 | * <!-- begin-user-doc --> | ||
288 | * <!-- end-user-doc --> | ||
289 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPackageEntryImpl | ||
290 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getAllPackageEntry() | ||
291 | * @generated | ||
292 | */ | ||
293 | int ALL_PACKAGE_ENTRY = 8; | ||
294 | |||
295 | /** | ||
296 | * The feature id for the '<em><b>Package</b></em>' reference. | ||
297 | * <!-- begin-user-doc --> | ||
298 | * <!-- end-user-doc --> | ||
299 | * @generated | ||
300 | * @ordered | ||
301 | */ | ||
302 | int ALL_PACKAGE_ENTRY__PACKAGE = METAMODEL_ENTRY__PACKAGE; | ||
303 | |||
304 | /** | ||
305 | * The feature id for the '<em><b>Exclusion</b></em>' containment reference list. | ||
306 | * <!-- begin-user-doc --> | ||
307 | * <!-- end-user-doc --> | ||
308 | * @generated | ||
309 | * @ordered | ||
310 | */ | ||
311 | int ALL_PACKAGE_ENTRY__EXCLUSION = METAMODEL_ENTRY_FEATURE_COUNT + 0; | ||
312 | |||
313 | /** | ||
314 | * The number of structural features of the '<em>All Package Entry</em>' class. | ||
315 | * <!-- begin-user-doc --> | ||
316 | * <!-- end-user-doc --> | ||
317 | * @generated | ||
318 | * @ordered | ||
319 | */ | ||
320 | int ALL_PACKAGE_ENTRY_FEATURE_COUNT = METAMODEL_ENTRY_FEATURE_COUNT + 1; | ||
321 | |||
322 | /** | ||
323 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl <em>Metamodel Element</em>}' class. | ||
324 | * <!-- begin-user-doc --> | ||
325 | * <!-- end-user-doc --> | ||
326 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl | ||
327 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelElement() | ||
328 | * @generated | ||
329 | */ | ||
330 | int METAMODEL_ELEMENT = 9; | ||
331 | |||
332 | /** | ||
333 | * The feature id for the '<em><b>Package</b></em>' reference. | ||
334 | * <!-- begin-user-doc --> | ||
335 | * <!-- end-user-doc --> | ||
336 | * @generated | ||
337 | * @ordered | ||
338 | */ | ||
339 | int METAMODEL_ELEMENT__PACKAGE = METAMODEL_ENTRY__PACKAGE; | ||
340 | |||
341 | /** | ||
342 | * The feature id for the '<em><b>Classifier</b></em>' reference. | ||
343 | * <!-- begin-user-doc --> | ||
344 | * <!-- end-user-doc --> | ||
345 | * @generated | ||
346 | * @ordered | ||
347 | */ | ||
348 | int METAMODEL_ELEMENT__CLASSIFIER = METAMODEL_ENTRY_FEATURE_COUNT + 0; | ||
349 | |||
350 | /** | ||
351 | * The feature id for the '<em><b>Feature</b></em>' reference. | ||
352 | * <!-- begin-user-doc --> | ||
353 | * <!-- end-user-doc --> | ||
354 | * @generated | ||
355 | * @ordered | ||
356 | */ | ||
357 | int METAMODEL_ELEMENT__FEATURE = METAMODEL_ENTRY_FEATURE_COUNT + 1; | ||
358 | |||
359 | /** | ||
360 | * The number of structural features of the '<em>Metamodel Element</em>' class. | ||
361 | * <!-- begin-user-doc --> | ||
362 | * <!-- end-user-doc --> | ||
363 | * @generated | ||
364 | * @ordered | ||
365 | */ | ||
366 | int METAMODEL_ELEMENT_FEATURE_COUNT = METAMODEL_ENTRY_FEATURE_COUNT + 2; | ||
367 | |||
368 | /** | ||
369 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl <em>Metamodel Declaration</em>}' class. | ||
370 | * <!-- begin-user-doc --> | ||
371 | * <!-- end-user-doc --> | ||
372 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl | ||
373 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelDeclaration() | ||
374 | * @generated | ||
375 | */ | ||
376 | int METAMODEL_DECLARATION = 10; | ||
377 | |||
378 | /** | ||
379 | * The feature id for the '<em><b>Name</b></em>' attribute. | ||
380 | * <!-- begin-user-doc --> | ||
381 | * <!-- end-user-doc --> | ||
382 | * @generated | ||
383 | * @ordered | ||
384 | */ | ||
385 | int METAMODEL_DECLARATION__NAME = DECLARATION_FEATURE_COUNT + 0; | ||
386 | |||
387 | /** | ||
388 | * The feature id for the '<em><b>Specification</b></em>' containment reference. | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | * @ordered | ||
393 | */ | ||
394 | int METAMODEL_DECLARATION__SPECIFICATION = DECLARATION_FEATURE_COUNT + 1; | ||
395 | |||
396 | /** | ||
397 | * The number of structural features of the '<em>Metamodel Declaration</em>' class. | ||
398 | * <!-- begin-user-doc --> | ||
399 | * <!-- end-user-doc --> | ||
400 | * @generated | ||
401 | * @ordered | ||
402 | */ | ||
403 | int METAMODEL_DECLARATION_FEATURE_COUNT = DECLARATION_FEATURE_COUNT + 2; | ||
404 | |||
405 | /** | ||
406 | * The meta object id for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl <em>Metamodel Reference</em>}' class. | ||
407 | * <!-- begin-user-doc --> | ||
408 | * <!-- end-user-doc --> | ||
409 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl | ||
410 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelReference() | ||
411 | * @generated | ||
412 | */ | ||
413 | int METAMODEL_REFERENCE = 11; | ||
414 | |||
415 | /** | ||
416 | * The feature id for the '<em><b>Referred</b></em>' reference. | ||
417 | * <!-- begin-user-doc --> | ||
418 | * <!-- end-user-doc --> | ||
419 | * @generated | ||
420 | * @ordered | ||
421 | */ | ||
422 | int METAMODEL_REFERENCE__REFERRED = METAMODEL_FEATURE_COUNT + 0; | ||
423 | |||
424 | /** | ||
425 | * The number of structural features of the '<em>Metamodel Reference</em>' class. | ||
426 | * <!-- begin-user-doc --> | ||
427 | * <!-- end-user-doc --> | ||
428 | * @generated | ||
429 | * @ordered | ||
430 | */ | ||
431 | int METAMODEL_REFERENCE_FEATURE_COUNT = METAMODEL_FEATURE_COUNT + 1; | ||
432 | |||
433 | |||
434 | /** | ||
435 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript <em>Configuration Script</em>}'. | ||
436 | * <!-- begin-user-doc --> | ||
437 | * <!-- end-user-doc --> | ||
438 | * @return the meta object for class '<em>Configuration Script</em>'. | ||
439 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript | ||
440 | * @generated | ||
441 | */ | ||
442 | EClass getConfigurationScript(); | ||
443 | |||
444 | /** | ||
445 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript#getImports <em>Imports</em>}'. | ||
446 | * <!-- begin-user-doc --> | ||
447 | * <!-- end-user-doc --> | ||
448 | * @return the meta object for the containment reference list '<em>Imports</em>'. | ||
449 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript#getImports() | ||
450 | * @see #getConfigurationScript() | ||
451 | * @generated | ||
452 | */ | ||
453 | EReference getConfigurationScript_Imports(); | ||
454 | |||
455 | /** | ||
456 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript#getCommands <em>Commands</em>}'. | ||
457 | * <!-- begin-user-doc --> | ||
458 | * <!-- end-user-doc --> | ||
459 | * @return the meta object for the containment reference list '<em>Commands</em>'. | ||
460 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript#getCommands() | ||
461 | * @see #getConfigurationScript() | ||
462 | * @generated | ||
463 | */ | ||
464 | EReference getConfigurationScript_Commands(); | ||
465 | |||
466 | /** | ||
467 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command <em>Command</em>}'. | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @return the meta object for class '<em>Command</em>'. | ||
471 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command | ||
472 | * @generated | ||
473 | */ | ||
474 | EClass getCommand(); | ||
475 | |||
476 | /** | ||
477 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration <em>Declaration</em>}'. | ||
478 | * <!-- begin-user-doc --> | ||
479 | * <!-- end-user-doc --> | ||
480 | * @return the meta object for class '<em>Declaration</em>'. | ||
481 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration | ||
482 | * @generated | ||
483 | */ | ||
484 | EClass getDeclaration(); | ||
485 | |||
486 | /** | ||
487 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import <em>Import</em>}'. | ||
488 | * <!-- begin-user-doc --> | ||
489 | * <!-- end-user-doc --> | ||
490 | * @return the meta object for class '<em>Import</em>'. | ||
491 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import | ||
492 | * @generated | ||
493 | */ | ||
494 | EClass getImport(); | ||
495 | |||
496 | /** | ||
497 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport <em>EPackage Import</em>}'. | ||
498 | * <!-- begin-user-doc --> | ||
499 | * <!-- end-user-doc --> | ||
500 | * @return the meta object for class '<em>EPackage Import</em>'. | ||
501 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport | ||
502 | * @generated | ||
503 | */ | ||
504 | EClass getEPackageImport(); | ||
505 | |||
506 | /** | ||
507 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport#getImportedPackage <em>Imported Package</em>}'. | ||
508 | * <!-- begin-user-doc --> | ||
509 | * <!-- end-user-doc --> | ||
510 | * @return the meta object for the reference '<em>Imported Package</em>'. | ||
511 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport#getImportedPackage() | ||
512 | * @see #getEPackageImport() | ||
513 | * @generated | ||
514 | */ | ||
515 | EReference getEPackageImport_ImportedPackage(); | ||
516 | |||
517 | /** | ||
518 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport <em>Viatra Import</em>}'. | ||
519 | * <!-- begin-user-doc --> | ||
520 | * <!-- end-user-doc --> | ||
521 | * @return the meta object for class '<em>Viatra Import</em>'. | ||
522 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport | ||
523 | * @generated | ||
524 | */ | ||
525 | EClass getViatraImport(); | ||
526 | |||
527 | /** | ||
528 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport#getImportedViatra <em>Imported Viatra</em>}'. | ||
529 | * <!-- begin-user-doc --> | ||
530 | * <!-- end-user-doc --> | ||
531 | * @return the meta object for the reference '<em>Imported Viatra</em>'. | ||
532 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport#getImportedViatra() | ||
533 | * @see #getViatraImport() | ||
534 | * @generated | ||
535 | */ | ||
536 | EReference getViatraImport_ImportedViatra(); | ||
537 | |||
538 | /** | ||
539 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification <em>Metamodel Specification</em>}'. | ||
540 | * <!-- begin-user-doc --> | ||
541 | * <!-- end-user-doc --> | ||
542 | * @return the meta object for class '<em>Metamodel Specification</em>'. | ||
543 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification | ||
544 | * @generated | ||
545 | */ | ||
546 | EClass getMetamodelSpecification(); | ||
547 | |||
548 | /** | ||
549 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification#getEntries <em>Entries</em>}'. | ||
550 | * <!-- begin-user-doc --> | ||
551 | * <!-- end-user-doc --> | ||
552 | * @return the meta object for the containment reference list '<em>Entries</em>'. | ||
553 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification#getEntries() | ||
554 | * @see #getMetamodelSpecification() | ||
555 | * @generated | ||
556 | */ | ||
557 | EReference getMetamodelSpecification_Entries(); | ||
558 | |||
559 | /** | ||
560 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry <em>Metamodel Entry</em>}'. | ||
561 | * <!-- begin-user-doc --> | ||
562 | * <!-- end-user-doc --> | ||
563 | * @return the meta object for class '<em>Metamodel Entry</em>'. | ||
564 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry | ||
565 | * @generated | ||
566 | */ | ||
567 | EClass getMetamodelEntry(); | ||
568 | |||
569 | /** | ||
570 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry#getPackage <em>Package</em>}'. | ||
571 | * <!-- begin-user-doc --> | ||
572 | * <!-- end-user-doc --> | ||
573 | * @return the meta object for the reference '<em>Package</em>'. | ||
574 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry#getPackage() | ||
575 | * @see #getMetamodelEntry() | ||
576 | * @generated | ||
577 | */ | ||
578 | EReference getMetamodelEntry_Package(); | ||
579 | |||
580 | /** | ||
581 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry <em>All Package Entry</em>}'. | ||
582 | * <!-- begin-user-doc --> | ||
583 | * <!-- end-user-doc --> | ||
584 | * @return the meta object for class '<em>All Package Entry</em>'. | ||
585 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry | ||
586 | * @generated | ||
587 | */ | ||
588 | EClass getAllPackageEntry(); | ||
589 | |||
590 | /** | ||
591 | * Returns the meta object for the containment reference list '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry#getExclusion <em>Exclusion</em>}'. | ||
592 | * <!-- begin-user-doc --> | ||
593 | * <!-- end-user-doc --> | ||
594 | * @return the meta object for the containment reference list '<em>Exclusion</em>'. | ||
595 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry#getExclusion() | ||
596 | * @see #getAllPackageEntry() | ||
597 | * @generated | ||
598 | */ | ||
599 | EReference getAllPackageEntry_Exclusion(); | ||
600 | |||
601 | /** | ||
602 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement <em>Metamodel Element</em>}'. | ||
603 | * <!-- begin-user-doc --> | ||
604 | * <!-- end-user-doc --> | ||
605 | * @return the meta object for class '<em>Metamodel Element</em>'. | ||
606 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement | ||
607 | * @generated | ||
608 | */ | ||
609 | EClass getMetamodelElement(); | ||
610 | |||
611 | /** | ||
612 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getClassifier <em>Classifier</em>}'. | ||
613 | * <!-- begin-user-doc --> | ||
614 | * <!-- end-user-doc --> | ||
615 | * @return the meta object for the reference '<em>Classifier</em>'. | ||
616 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getClassifier() | ||
617 | * @see #getMetamodelElement() | ||
618 | * @generated | ||
619 | */ | ||
620 | EReference getMetamodelElement_Classifier(); | ||
621 | |||
622 | /** | ||
623 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getFeature <em>Feature</em>}'. | ||
624 | * <!-- begin-user-doc --> | ||
625 | * <!-- end-user-doc --> | ||
626 | * @return the meta object for the reference '<em>Feature</em>'. | ||
627 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getFeature() | ||
628 | * @see #getMetamodelElement() | ||
629 | * @generated | ||
630 | */ | ||
631 | EReference getMetamodelElement_Feature(); | ||
632 | |||
633 | /** | ||
634 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration <em>Metamodel Declaration</em>}'. | ||
635 | * <!-- begin-user-doc --> | ||
636 | * <!-- end-user-doc --> | ||
637 | * @return the meta object for class '<em>Metamodel Declaration</em>'. | ||
638 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration | ||
639 | * @generated | ||
640 | */ | ||
641 | EClass getMetamodelDeclaration(); | ||
642 | |||
643 | /** | ||
644 | * Returns the meta object for the attribute '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getName <em>Name</em>}'. | ||
645 | * <!-- begin-user-doc --> | ||
646 | * <!-- end-user-doc --> | ||
647 | * @return the meta object for the attribute '<em>Name</em>'. | ||
648 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getName() | ||
649 | * @see #getMetamodelDeclaration() | ||
650 | * @generated | ||
651 | */ | ||
652 | EAttribute getMetamodelDeclaration_Name(); | ||
653 | |||
654 | /** | ||
655 | * Returns the meta object for the containment reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getSpecification <em>Specification</em>}'. | ||
656 | * <!-- begin-user-doc --> | ||
657 | * <!-- end-user-doc --> | ||
658 | * @return the meta object for the containment reference '<em>Specification</em>'. | ||
659 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getSpecification() | ||
660 | * @see #getMetamodelDeclaration() | ||
661 | * @generated | ||
662 | */ | ||
663 | EReference getMetamodelDeclaration_Specification(); | ||
664 | |||
665 | /** | ||
666 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference <em>Metamodel Reference</em>}'. | ||
667 | * <!-- begin-user-doc --> | ||
668 | * <!-- end-user-doc --> | ||
669 | * @return the meta object for class '<em>Metamodel Reference</em>'. | ||
670 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference | ||
671 | * @generated | ||
672 | */ | ||
673 | EClass getMetamodelReference(); | ||
674 | |||
675 | /** | ||
676 | * Returns the meta object for the reference '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference#getReferred <em>Referred</em>}'. | ||
677 | * <!-- begin-user-doc --> | ||
678 | * <!-- end-user-doc --> | ||
679 | * @return the meta object for the reference '<em>Referred</em>'. | ||
680 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference#getReferred() | ||
681 | * @see #getMetamodelReference() | ||
682 | * @generated | ||
683 | */ | ||
684 | EReference getMetamodelReference_Referred(); | ||
685 | |||
686 | /** | ||
687 | * Returns the meta object for class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel <em>Metamodel</em>}'. | ||
688 | * <!-- begin-user-doc --> | ||
689 | * <!-- end-user-doc --> | ||
690 | * @return the meta object for class '<em>Metamodel</em>'. | ||
691 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel | ||
692 | * @generated | ||
693 | */ | ||
694 | EClass getMetamodel(); | ||
695 | |||
696 | /** | ||
697 | * Returns the factory that creates the instances of the model. | ||
698 | * <!-- begin-user-doc --> | ||
699 | * <!-- end-user-doc --> | ||
700 | * @return the factory that creates the instances of the model. | ||
701 | * @generated | ||
702 | */ | ||
703 | ApplicationConfigurationFactory getApplicationConfigurationFactory(); | ||
704 | |||
705 | /** | ||
706 | * <!-- begin-user-doc --> | ||
707 | * Defines literals for the meta objects that represent | ||
708 | * <ul> | ||
709 | * <li>each class,</li> | ||
710 | * <li>each feature of each class,</li> | ||
711 | * <li>each enum,</li> | ||
712 | * <li>and each data type</li> | ||
713 | * </ul> | ||
714 | * <!-- end-user-doc --> | ||
715 | * @generated | ||
716 | */ | ||
717 | interface Literals | ||
718 | { | ||
719 | /** | ||
720 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl <em>Configuration Script</em>}' class. | ||
721 | * <!-- begin-user-doc --> | ||
722 | * <!-- end-user-doc --> | ||
723 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl | ||
724 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getConfigurationScript() | ||
725 | * @generated | ||
726 | */ | ||
727 | EClass CONFIGURATION_SCRIPT = eINSTANCE.getConfigurationScript(); | ||
728 | |||
729 | /** | ||
730 | * The meta object literal for the '<em><b>Imports</b></em>' containment reference list feature. | ||
731 | * <!-- begin-user-doc --> | ||
732 | * <!-- end-user-doc --> | ||
733 | * @generated | ||
734 | */ | ||
735 | EReference CONFIGURATION_SCRIPT__IMPORTS = eINSTANCE.getConfigurationScript_Imports(); | ||
736 | |||
737 | /** | ||
738 | * The meta object literal for the '<em><b>Commands</b></em>' containment reference list feature. | ||
739 | * <!-- begin-user-doc --> | ||
740 | * <!-- end-user-doc --> | ||
741 | * @generated | ||
742 | */ | ||
743 | EReference CONFIGURATION_SCRIPT__COMMANDS = eINSTANCE.getConfigurationScript_Commands(); | ||
744 | |||
745 | /** | ||
746 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CommandImpl <em>Command</em>}' class. | ||
747 | * <!-- begin-user-doc --> | ||
748 | * <!-- end-user-doc --> | ||
749 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.CommandImpl | ||
750 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getCommand() | ||
751 | * @generated | ||
752 | */ | ||
753 | EClass COMMAND = eINSTANCE.getCommand(); | ||
754 | |||
755 | /** | ||
756 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl <em>Declaration</em>}' class. | ||
757 | * <!-- begin-user-doc --> | ||
758 | * <!-- end-user-doc --> | ||
759 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.DeclarationImpl | ||
760 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getDeclaration() | ||
761 | * @generated | ||
762 | */ | ||
763 | EClass DECLARATION = eINSTANCE.getDeclaration(); | ||
764 | |||
765 | /** | ||
766 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ImportImpl <em>Import</em>}' class. | ||
767 | * <!-- begin-user-doc --> | ||
768 | * <!-- end-user-doc --> | ||
769 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ImportImpl | ||
770 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getImport() | ||
771 | * @generated | ||
772 | */ | ||
773 | EClass IMPORT = eINSTANCE.getImport(); | ||
774 | |||
775 | /** | ||
776 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl <em>EPackage Import</em>}' class. | ||
777 | * <!-- begin-user-doc --> | ||
778 | * <!-- end-user-doc --> | ||
779 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl | ||
780 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getEPackageImport() | ||
781 | * @generated | ||
782 | */ | ||
783 | EClass EPACKAGE_IMPORT = eINSTANCE.getEPackageImport(); | ||
784 | |||
785 | /** | ||
786 | * The meta object literal for the '<em><b>Imported Package</b></em>' reference feature. | ||
787 | * <!-- begin-user-doc --> | ||
788 | * <!-- end-user-doc --> | ||
789 | * @generated | ||
790 | */ | ||
791 | EReference EPACKAGE_IMPORT__IMPORTED_PACKAGE = eINSTANCE.getEPackageImport_ImportedPackage(); | ||
792 | |||
793 | /** | ||
794 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl <em>Viatra Import</em>}' class. | ||
795 | * <!-- begin-user-doc --> | ||
796 | * <!-- end-user-doc --> | ||
797 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl | ||
798 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getViatraImport() | ||
799 | * @generated | ||
800 | */ | ||
801 | EClass VIATRA_IMPORT = eINSTANCE.getViatraImport(); | ||
802 | |||
803 | /** | ||
804 | * The meta object literal for the '<em><b>Imported Viatra</b></em>' reference feature. | ||
805 | * <!-- begin-user-doc --> | ||
806 | * <!-- end-user-doc --> | ||
807 | * @generated | ||
808 | */ | ||
809 | EReference VIATRA_IMPORT__IMPORTED_VIATRA = eINSTANCE.getViatraImport_ImportedViatra(); | ||
810 | |||
811 | /** | ||
812 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl <em>Metamodel Specification</em>}' class. | ||
813 | * <!-- begin-user-doc --> | ||
814 | * <!-- end-user-doc --> | ||
815 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl | ||
816 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelSpecification() | ||
817 | * @generated | ||
818 | */ | ||
819 | EClass METAMODEL_SPECIFICATION = eINSTANCE.getMetamodelSpecification(); | ||
820 | |||
821 | /** | ||
822 | * The meta object literal for the '<em><b>Entries</b></em>' containment reference list feature. | ||
823 | * <!-- begin-user-doc --> | ||
824 | * <!-- end-user-doc --> | ||
825 | * @generated | ||
826 | */ | ||
827 | EReference METAMODEL_SPECIFICATION__ENTRIES = eINSTANCE.getMetamodelSpecification_Entries(); | ||
828 | |||
829 | /** | ||
830 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl <em>Metamodel Entry</em>}' class. | ||
831 | * <!-- begin-user-doc --> | ||
832 | * <!-- end-user-doc --> | ||
833 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl | ||
834 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelEntry() | ||
835 | * @generated | ||
836 | */ | ||
837 | EClass METAMODEL_ENTRY = eINSTANCE.getMetamodelEntry(); | ||
838 | |||
839 | /** | ||
840 | * The meta object literal for the '<em><b>Package</b></em>' reference feature. | ||
841 | * <!-- begin-user-doc --> | ||
842 | * <!-- end-user-doc --> | ||
843 | * @generated | ||
844 | */ | ||
845 | EReference METAMODEL_ENTRY__PACKAGE = eINSTANCE.getMetamodelEntry_Package(); | ||
846 | |||
847 | /** | ||
848 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPackageEntryImpl <em>All Package Entry</em>}' class. | ||
849 | * <!-- begin-user-doc --> | ||
850 | * <!-- end-user-doc --> | ||
851 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPackageEntryImpl | ||
852 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getAllPackageEntry() | ||
853 | * @generated | ||
854 | */ | ||
855 | EClass ALL_PACKAGE_ENTRY = eINSTANCE.getAllPackageEntry(); | ||
856 | |||
857 | /** | ||
858 | * The meta object literal for the '<em><b>Exclusion</b></em>' containment reference list feature. | ||
859 | * <!-- begin-user-doc --> | ||
860 | * <!-- end-user-doc --> | ||
861 | * @generated | ||
862 | */ | ||
863 | EReference ALL_PACKAGE_ENTRY__EXCLUSION = eINSTANCE.getAllPackageEntry_Exclusion(); | ||
864 | |||
865 | /** | ||
866 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl <em>Metamodel Element</em>}' class. | ||
867 | * <!-- begin-user-doc --> | ||
868 | * <!-- end-user-doc --> | ||
869 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl | ||
870 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelElement() | ||
871 | * @generated | ||
872 | */ | ||
873 | EClass METAMODEL_ELEMENT = eINSTANCE.getMetamodelElement(); | ||
874 | |||
875 | /** | ||
876 | * The meta object literal for the '<em><b>Classifier</b></em>' reference feature. | ||
877 | * <!-- begin-user-doc --> | ||
878 | * <!-- end-user-doc --> | ||
879 | * @generated | ||
880 | */ | ||
881 | EReference METAMODEL_ELEMENT__CLASSIFIER = eINSTANCE.getMetamodelElement_Classifier(); | ||
882 | |||
883 | /** | ||
884 | * The meta object literal for the '<em><b>Feature</b></em>' reference feature. | ||
885 | * <!-- begin-user-doc --> | ||
886 | * <!-- end-user-doc --> | ||
887 | * @generated | ||
888 | */ | ||
889 | EReference METAMODEL_ELEMENT__FEATURE = eINSTANCE.getMetamodelElement_Feature(); | ||
890 | |||
891 | /** | ||
892 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl <em>Metamodel Declaration</em>}' class. | ||
893 | * <!-- begin-user-doc --> | ||
894 | * <!-- end-user-doc --> | ||
895 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl | ||
896 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelDeclaration() | ||
897 | * @generated | ||
898 | */ | ||
899 | EClass METAMODEL_DECLARATION = eINSTANCE.getMetamodelDeclaration(); | ||
900 | |||
901 | /** | ||
902 | * The meta object literal for the '<em><b>Name</b></em>' attribute feature. | ||
903 | * <!-- begin-user-doc --> | ||
904 | * <!-- end-user-doc --> | ||
905 | * @generated | ||
906 | */ | ||
907 | EAttribute METAMODEL_DECLARATION__NAME = eINSTANCE.getMetamodelDeclaration_Name(); | ||
908 | |||
909 | /** | ||
910 | * The meta object literal for the '<em><b>Specification</b></em>' containment reference feature. | ||
911 | * <!-- begin-user-doc --> | ||
912 | * <!-- end-user-doc --> | ||
913 | * @generated | ||
914 | */ | ||
915 | EReference METAMODEL_DECLARATION__SPECIFICATION = eINSTANCE.getMetamodelDeclaration_Specification(); | ||
916 | |||
917 | /** | ||
918 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl <em>Metamodel Reference</em>}' class. | ||
919 | * <!-- begin-user-doc --> | ||
920 | * <!-- end-user-doc --> | ||
921 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl | ||
922 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodelReference() | ||
923 | * @generated | ||
924 | */ | ||
925 | EClass METAMODEL_REFERENCE = eINSTANCE.getMetamodelReference(); | ||
926 | |||
927 | /** | ||
928 | * The meta object literal for the '<em><b>Referred</b></em>' reference feature. | ||
929 | * <!-- begin-user-doc --> | ||
930 | * <!-- end-user-doc --> | ||
931 | * @generated | ||
932 | */ | ||
933 | EReference METAMODEL_REFERENCE__REFERRED = eINSTANCE.getMetamodelReference_Referred(); | ||
934 | |||
935 | /** | ||
936 | * The meta object literal for the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelImpl <em>Metamodel</em>}' class. | ||
937 | * <!-- begin-user-doc --> | ||
938 | * <!-- end-user-doc --> | ||
939 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelImpl | ||
940 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ApplicationConfigurationPackageImpl#getMetamodel() | ||
941 | * @generated | ||
942 | */ | ||
943 | EClass METAMODEL = eINSTANCE.getMetamodel(); | ||
944 | |||
945 | } | ||
946 | |||
947 | } //ApplicationConfigurationPackage | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Command.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Command.java new file mode 100644 index 00000000..792a8217 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Command.java | |||
@@ -0,0 +1,20 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Command</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * | ||
14 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getCommand() | ||
15 | * @model | ||
16 | * @generated | ||
17 | */ | ||
18 | public interface Command extends EObject | ||
19 | { | ||
20 | } // Command | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ConfigurationScript.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ConfigurationScript.java new file mode 100644 index 00000000..cc566f3c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ConfigurationScript.java | |||
@@ -0,0 +1,61 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | |||
10 | /** | ||
11 | * <!-- begin-user-doc --> | ||
12 | * A representation of the model object '<em><b>Configuration Script</b></em>'. | ||
13 | * <!-- end-user-doc --> | ||
14 | * | ||
15 | * <p> | ||
16 | * The following features are supported: | ||
17 | * </p> | ||
18 | * <ul> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript#getImports <em>Imports</em>}</li> | ||
20 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript#getCommands <em>Commands</em>}</li> | ||
21 | * </ul> | ||
22 | * | ||
23 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getConfigurationScript() | ||
24 | * @model | ||
25 | * @generated | ||
26 | */ | ||
27 | public interface ConfigurationScript extends EObject | ||
28 | { | ||
29 | /** | ||
30 | * Returns the value of the '<em><b>Imports</b></em>' containment reference list. | ||
31 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import}. | ||
32 | * <!-- begin-user-doc --> | ||
33 | * <p> | ||
34 | * If the meaning of the '<em>Imports</em>' containment reference list isn't clear, | ||
35 | * there really should be more of a description here... | ||
36 | * </p> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @return the value of the '<em>Imports</em>' containment reference list. | ||
39 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getConfigurationScript_Imports() | ||
40 | * @model containment="true" | ||
41 | * @generated | ||
42 | */ | ||
43 | EList<Import> getImports(); | ||
44 | |||
45 | /** | ||
46 | * Returns the value of the '<em><b>Commands</b></em>' containment reference list. | ||
47 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command}. | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <p> | ||
50 | * If the meaning of the '<em>Commands</em>' containment reference list isn't clear, | ||
51 | * there really should be more of a description here... | ||
52 | * </p> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @return the value of the '<em>Commands</em>' containment reference list. | ||
55 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getConfigurationScript_Commands() | ||
56 | * @model containment="true" | ||
57 | * @generated | ||
58 | */ | ||
59 | EList<Command> getCommands(); | ||
60 | |||
61 | } // ConfigurationScript | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Declaration.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Declaration.java new file mode 100644 index 00000000..b1454653 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Declaration.java | |||
@@ -0,0 +1,19 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Declaration</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * | ||
13 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getDeclaration() | ||
14 | * @model | ||
15 | * @generated | ||
16 | */ | ||
17 | public interface Declaration extends Command | ||
18 | { | ||
19 | } // Declaration | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/EPackageImport.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/EPackageImport.java new file mode 100644 index 00000000..f5b05c11 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/EPackageImport.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EPackage; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>EPackage Import</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport#getImportedPackage <em>Imported Package</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getEPackageImport() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface EPackageImport extends Import | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Imported Package</b></em>' reference. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Imported Package</em>' reference isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Imported Package</em>' reference. | ||
35 | * @see #setImportedPackage(EPackage) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getEPackageImport_ImportedPackage() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | EPackage getImportedPackage(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport#getImportedPackage <em>Imported Package</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Imported Package</em>' reference. | ||
47 | * @see #getImportedPackage() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setImportedPackage(EPackage value); | ||
51 | |||
52 | } // EPackageImport | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Import.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Import.java new file mode 100644 index 00000000..66d499bc --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Import.java | |||
@@ -0,0 +1,20 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Import</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * | ||
14 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getImport() | ||
15 | * @model | ||
16 | * @generated | ||
17 | */ | ||
18 | public interface Import extends EObject | ||
19 | { | ||
20 | } // Import | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Metamodel.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Metamodel.java new file mode 100644 index 00000000..0aaaa87f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/Metamodel.java | |||
@@ -0,0 +1,20 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Metamodel</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * | ||
14 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodel() | ||
15 | * @model | ||
16 | * @generated | ||
17 | */ | ||
18 | public interface Metamodel extends EObject | ||
19 | { | ||
20 | } // Metamodel | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelDeclaration.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelDeclaration.java new file mode 100644 index 00000000..7580d083 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelDeclaration.java | |||
@@ -0,0 +1,78 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Metamodel Declaration</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getName <em>Name</em>}</li> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getSpecification <em>Specification</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelDeclaration() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface MetamodelDeclaration extends Declaration | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Name</b></em>' attribute. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Name</em>' attribute isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Name</em>' attribute. | ||
35 | * @see #setName(String) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelDeclaration_Name() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | String getName(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getName <em>Name</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Name</em>' attribute. | ||
47 | * @see #getName() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setName(String value); | ||
51 | |||
52 | /** | ||
53 | * Returns the value of the '<em><b>Specification</b></em>' containment reference. | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <p> | ||
56 | * If the meaning of the '<em>Specification</em>' containment reference isn't clear, | ||
57 | * there really should be more of a description here... | ||
58 | * </p> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @return the value of the '<em>Specification</em>' containment reference. | ||
61 | * @see #setSpecification(MetamodelSpecification) | ||
62 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelDeclaration_Specification() | ||
63 | * @model containment="true" | ||
64 | * @generated | ||
65 | */ | ||
66 | MetamodelSpecification getSpecification(); | ||
67 | |||
68 | /** | ||
69 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration#getSpecification <em>Specification</em>}' containment reference. | ||
70 | * <!-- begin-user-doc --> | ||
71 | * <!-- end-user-doc --> | ||
72 | * @param value the new value of the '<em>Specification</em>' containment reference. | ||
73 | * @see #getSpecification() | ||
74 | * @generated | ||
75 | */ | ||
76 | void setSpecification(MetamodelSpecification value); | ||
77 | |||
78 | } // MetamodelDeclaration | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelElement.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelElement.java new file mode 100644 index 00000000..34518c56 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelElement.java | |||
@@ -0,0 +1,80 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EClassifier; | ||
7 | import org.eclipse.emf.ecore.ENamedElement; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Metamodel Element</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getClassifier <em>Classifier</em>}</li> | ||
19 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getFeature <em>Feature</em>}</li> | ||
20 | * </ul> | ||
21 | * | ||
22 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelElement() | ||
23 | * @model | ||
24 | * @generated | ||
25 | */ | ||
26 | public interface MetamodelElement extends MetamodelEntry | ||
27 | { | ||
28 | /** | ||
29 | * Returns the value of the '<em><b>Classifier</b></em>' reference. | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <p> | ||
32 | * If the meaning of the '<em>Classifier</em>' reference isn't clear, | ||
33 | * there really should be more of a description here... | ||
34 | * </p> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @return the value of the '<em>Classifier</em>' reference. | ||
37 | * @see #setClassifier(EClassifier) | ||
38 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelElement_Classifier() | ||
39 | * @model | ||
40 | * @generated | ||
41 | */ | ||
42 | EClassifier getClassifier(); | ||
43 | |||
44 | /** | ||
45 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getClassifier <em>Classifier</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @param value the new value of the '<em>Classifier</em>' reference. | ||
49 | * @see #getClassifier() | ||
50 | * @generated | ||
51 | */ | ||
52 | void setClassifier(EClassifier value); | ||
53 | |||
54 | /** | ||
55 | * Returns the value of the '<em><b>Feature</b></em>' reference. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <p> | ||
58 | * If the meaning of the '<em>Feature</em>' reference isn't clear, | ||
59 | * there really should be more of a description here... | ||
60 | * </p> | ||
61 | * <!-- end-user-doc --> | ||
62 | * @return the value of the '<em>Feature</em>' reference. | ||
63 | * @see #setFeature(ENamedElement) | ||
64 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelElement_Feature() | ||
65 | * @model | ||
66 | * @generated | ||
67 | */ | ||
68 | ENamedElement getFeature(); | ||
69 | |||
70 | /** | ||
71 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement#getFeature <em>Feature</em>}' reference. | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @param value the new value of the '<em>Feature</em>' reference. | ||
75 | * @see #getFeature() | ||
76 | * @generated | ||
77 | */ | ||
78 | void setFeature(ENamedElement value); | ||
79 | |||
80 | } // MetamodelElement | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelEntry.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelEntry.java new file mode 100644 index 00000000..9b334002 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelEntry.java | |||
@@ -0,0 +1,53 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | import org.eclipse.emf.ecore.EPackage; | ||
8 | |||
9 | /** | ||
10 | * <!-- begin-user-doc --> | ||
11 | * A representation of the model object '<em><b>Metamodel Entry</b></em>'. | ||
12 | * <!-- end-user-doc --> | ||
13 | * | ||
14 | * <p> | ||
15 | * The following features are supported: | ||
16 | * </p> | ||
17 | * <ul> | ||
18 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry#getPackage <em>Package</em>}</li> | ||
19 | * </ul> | ||
20 | * | ||
21 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelEntry() | ||
22 | * @model | ||
23 | * @generated | ||
24 | */ | ||
25 | public interface MetamodelEntry extends EObject | ||
26 | { | ||
27 | /** | ||
28 | * Returns the value of the '<em><b>Package</b></em>' reference. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Package</em>' reference isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Package</em>' reference. | ||
36 | * @see #setPackage(EPackage) | ||
37 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelEntry_Package() | ||
38 | * @model | ||
39 | * @generated | ||
40 | */ | ||
41 | EPackage getPackage(); | ||
42 | |||
43 | /** | ||
44 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry#getPackage <em>Package</em>}' reference. | ||
45 | * <!-- begin-user-doc --> | ||
46 | * <!-- end-user-doc --> | ||
47 | * @param value the new value of the '<em>Package</em>' reference. | ||
48 | * @see #getPackage() | ||
49 | * @generated | ||
50 | */ | ||
51 | void setPackage(EPackage value); | ||
52 | |||
53 | } // MetamodelEntry | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelReference.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelReference.java new file mode 100644 index 00000000..2291021d --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelReference.java | |||
@@ -0,0 +1,51 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | |||
7 | /** | ||
8 | * <!-- begin-user-doc --> | ||
9 | * A representation of the model object '<em><b>Metamodel Reference</b></em>'. | ||
10 | * <!-- end-user-doc --> | ||
11 | * | ||
12 | * <p> | ||
13 | * The following features are supported: | ||
14 | * </p> | ||
15 | * <ul> | ||
16 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference#getReferred <em>Referred</em>}</li> | ||
17 | * </ul> | ||
18 | * | ||
19 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelReference() | ||
20 | * @model | ||
21 | * @generated | ||
22 | */ | ||
23 | public interface MetamodelReference extends Metamodel | ||
24 | { | ||
25 | /** | ||
26 | * Returns the value of the '<em><b>Referred</b></em>' reference. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <p> | ||
29 | * If the meaning of the '<em>Referred</em>' reference isn't clear, | ||
30 | * there really should be more of a description here... | ||
31 | * </p> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @return the value of the '<em>Referred</em>' reference. | ||
34 | * @see #setReferred(MetamodelDeclaration) | ||
35 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelReference_Referred() | ||
36 | * @model | ||
37 | * @generated | ||
38 | */ | ||
39 | MetamodelDeclaration getReferred(); | ||
40 | |||
41 | /** | ||
42 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference#getReferred <em>Referred</em>}' reference. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @param value the new value of the '<em>Referred</em>' reference. | ||
46 | * @see #getReferred() | ||
47 | * @generated | ||
48 | */ | ||
49 | void setReferred(MetamodelDeclaration value); | ||
50 | |||
51 | } // MetamodelReference | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelSpecification.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelSpecification.java new file mode 100644 index 00000000..cf207301 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/MetamodelSpecification.java | |||
@@ -0,0 +1,42 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.emf.common.util.EList; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Metamodel Specification</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification#getEntries <em>Entries</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelSpecification() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface MetamodelSpecification extends Metamodel | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Entries</b></em>' containment reference list. | ||
28 | * The list contents are of type {@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry}. | ||
29 | * <!-- begin-user-doc --> | ||
30 | * <p> | ||
31 | * If the meaning of the '<em>Entries</em>' containment reference list isn't clear, | ||
32 | * there really should be more of a description here... | ||
33 | * </p> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @return the value of the '<em>Entries</em>' containment reference list. | ||
36 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getMetamodelSpecification_Entries() | ||
37 | * @model containment="true" | ||
38 | * @generated | ||
39 | */ | ||
40 | EList<MetamodelEntry> getEntries(); | ||
41 | |||
42 | } // MetamodelSpecification | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ViatraImport.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ViatraImport.java new file mode 100644 index 00000000..03aa4bb8 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/ViatraImport.java | |||
@@ -0,0 +1,52 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration; | ||
5 | |||
6 | import org.eclipse.viatra.query.patternlanguage.patternLanguage.PatternModel; | ||
7 | |||
8 | /** | ||
9 | * <!-- begin-user-doc --> | ||
10 | * A representation of the model object '<em><b>Viatra Import</b></em>'. | ||
11 | * <!-- end-user-doc --> | ||
12 | * | ||
13 | * <p> | ||
14 | * The following features are supported: | ||
15 | * </p> | ||
16 | * <ul> | ||
17 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport#getImportedViatra <em>Imported Viatra</em>}</li> | ||
18 | * </ul> | ||
19 | * | ||
20 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getViatraImport() | ||
21 | * @model | ||
22 | * @generated | ||
23 | */ | ||
24 | public interface ViatraImport extends Import | ||
25 | { | ||
26 | /** | ||
27 | * Returns the value of the '<em><b>Imported Viatra</b></em>' reference. | ||
28 | * <!-- begin-user-doc --> | ||
29 | * <p> | ||
30 | * If the meaning of the '<em>Imported Viatra</em>' reference isn't clear, | ||
31 | * there really should be more of a description here... | ||
32 | * </p> | ||
33 | * <!-- end-user-doc --> | ||
34 | * @return the value of the '<em>Imported Viatra</em>' reference. | ||
35 | * @see #setImportedViatra(PatternModel) | ||
36 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#getViatraImport_ImportedViatra() | ||
37 | * @model | ||
38 | * @generated | ||
39 | */ | ||
40 | PatternModel getImportedViatra(); | ||
41 | |||
42 | /** | ||
43 | * Sets the value of the '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport#getImportedViatra <em>Imported Viatra</em>}' reference. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @param value the new value of the '<em>Imported Viatra</em>' reference. | ||
47 | * @see #getImportedViatra() | ||
48 | * @generated | ||
49 | */ | ||
50 | void setImportedViatra(PatternModel value); | ||
51 | |||
52 | } // ViatraImport | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java new file mode 100644 index 00000000..b94cc51b --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/AllPackageEntryImpl.java | |||
@@ -0,0 +1,166 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>All Package Entry</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.AllPackageEntryImpl#getExclusion <em>Exclusion</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class AllPackageEntryImpl extends MetamodelEntryImpl implements AllPackageEntry | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getExclusion() <em>Exclusion</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getExclusion() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<MetamodelElement> exclusion; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected AllPackageEntryImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return ApplicationConfigurationPackage.Literals.ALL_PACKAGE_ENTRY; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | public EList<MetamodelElement> getExclusion() | ||
74 | { | ||
75 | if (exclusion == null) | ||
76 | { | ||
77 | exclusion = new EObjectContainmentEList<MetamodelElement>(MetamodelElement.class, this, ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION); | ||
78 | } | ||
79 | return exclusion; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
89 | { | ||
90 | switch (featureID) | ||
91 | { | ||
92 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: | ||
93 | return ((InternalEList<?>)getExclusion()).basicRemove(otherEnd, msgs); | ||
94 | } | ||
95 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
105 | { | ||
106 | switch (featureID) | ||
107 | { | ||
108 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: | ||
109 | return getExclusion(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @SuppressWarnings("unchecked") | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) | ||
122 | { | ||
123 | switch (featureID) | ||
124 | { | ||
125 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: | ||
126 | getExclusion().clear(); | ||
127 | getExclusion().addAll((Collection<? extends MetamodelElement>)newValue); | ||
128 | return; | ||
129 | } | ||
130 | super.eSet(featureID, newValue); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public void eUnset(int featureID) | ||
140 | { | ||
141 | switch (featureID) | ||
142 | { | ||
143 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: | ||
144 | getExclusion().clear(); | ||
145 | return; | ||
146 | } | ||
147 | super.eUnset(featureID); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public boolean eIsSet(int featureID) | ||
157 | { | ||
158 | switch (featureID) | ||
159 | { | ||
160 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY__EXCLUSION: | ||
161 | return exclusion != null && !exclusion.isEmpty(); | ||
162 | } | ||
163 | return super.eIsSet(featureID); | ||
164 | } | ||
165 | |||
166 | } //AllPackageEntryImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java new file mode 100644 index 00000000..4ad21065 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationFactoryImpl.java | |||
@@ -0,0 +1,251 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EClass; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.emf.ecore.EPackage; | ||
11 | |||
12 | import org.eclipse.emf.ecore.impl.EFactoryImpl; | ||
13 | |||
14 | import org.eclipse.emf.ecore.plugin.EcorePlugin; | ||
15 | |||
16 | /** | ||
17 | * <!-- begin-user-doc --> | ||
18 | * An implementation of the model <b>Factory</b>. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @generated | ||
21 | */ | ||
22 | public class ApplicationConfigurationFactoryImpl extends EFactoryImpl implements ApplicationConfigurationFactory | ||
23 | { | ||
24 | /** | ||
25 | * Creates the default factory implementation. | ||
26 | * <!-- begin-user-doc --> | ||
27 | * <!-- end-user-doc --> | ||
28 | * @generated | ||
29 | */ | ||
30 | public static ApplicationConfigurationFactory init() | ||
31 | { | ||
32 | try | ||
33 | { | ||
34 | ApplicationConfigurationFactory theApplicationConfigurationFactory = (ApplicationConfigurationFactory)EPackage.Registry.INSTANCE.getEFactory(ApplicationConfigurationPackage.eNS_URI); | ||
35 | if (theApplicationConfigurationFactory != null) | ||
36 | { | ||
37 | return theApplicationConfigurationFactory; | ||
38 | } | ||
39 | } | ||
40 | catch (Exception exception) | ||
41 | { | ||
42 | EcorePlugin.INSTANCE.log(exception); | ||
43 | } | ||
44 | return new ApplicationConfigurationFactoryImpl(); | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Creates an instance of the factory. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * <!-- end-user-doc --> | ||
51 | * @generated | ||
52 | */ | ||
53 | public ApplicationConfigurationFactoryImpl() | ||
54 | { | ||
55 | super(); | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * <!-- begin-user-doc --> | ||
60 | * <!-- end-user-doc --> | ||
61 | * @generated | ||
62 | */ | ||
63 | @Override | ||
64 | public EObject create(EClass eClass) | ||
65 | { | ||
66 | switch (eClass.getClassifierID()) | ||
67 | { | ||
68 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT: return createConfigurationScript(); | ||
69 | case ApplicationConfigurationPackage.COMMAND: return createCommand(); | ||
70 | case ApplicationConfigurationPackage.DECLARATION: return createDeclaration(); | ||
71 | case ApplicationConfigurationPackage.IMPORT: return createImport(); | ||
72 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT: return createEPackageImport(); | ||
73 | case ApplicationConfigurationPackage.VIATRA_IMPORT: return createViatraImport(); | ||
74 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION: return createMetamodelSpecification(); | ||
75 | case ApplicationConfigurationPackage.METAMODEL_ENTRY: return createMetamodelEntry(); | ||
76 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY: return createAllPackageEntry(); | ||
77 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT: return createMetamodelElement(); | ||
78 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION: return createMetamodelDeclaration(); | ||
79 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE: return createMetamodelReference(); | ||
80 | case ApplicationConfigurationPackage.METAMODEL: return createMetamodel(); | ||
81 | default: | ||
82 | throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); | ||
83 | } | ||
84 | } | ||
85 | |||
86 | /** | ||
87 | * <!-- begin-user-doc --> | ||
88 | * <!-- end-user-doc --> | ||
89 | * @generated | ||
90 | */ | ||
91 | public ConfigurationScript createConfigurationScript() | ||
92 | { | ||
93 | ConfigurationScriptImpl configurationScript = new ConfigurationScriptImpl(); | ||
94 | return configurationScript; | ||
95 | } | ||
96 | |||
97 | /** | ||
98 | * <!-- begin-user-doc --> | ||
99 | * <!-- end-user-doc --> | ||
100 | * @generated | ||
101 | */ | ||
102 | public Command createCommand() | ||
103 | { | ||
104 | CommandImpl command = new CommandImpl(); | ||
105 | return command; | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public Declaration createDeclaration() | ||
114 | { | ||
115 | DeclarationImpl declaration = new DeclarationImpl(); | ||
116 | return declaration; | ||
117 | } | ||
118 | |||
119 | /** | ||
120 | * <!-- begin-user-doc --> | ||
121 | * <!-- end-user-doc --> | ||
122 | * @generated | ||
123 | */ | ||
124 | public Import createImport() | ||
125 | { | ||
126 | ImportImpl import_ = new ImportImpl(); | ||
127 | return import_; | ||
128 | } | ||
129 | |||
130 | /** | ||
131 | * <!-- begin-user-doc --> | ||
132 | * <!-- end-user-doc --> | ||
133 | * @generated | ||
134 | */ | ||
135 | public EPackageImport createEPackageImport() | ||
136 | { | ||
137 | EPackageImportImpl ePackageImport = new EPackageImportImpl(); | ||
138 | return ePackageImport; | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | public ViatraImport createViatraImport() | ||
147 | { | ||
148 | ViatraImportImpl viatraImport = new ViatraImportImpl(); | ||
149 | return viatraImport; | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * <!-- begin-user-doc --> | ||
154 | * <!-- end-user-doc --> | ||
155 | * @generated | ||
156 | */ | ||
157 | public MetamodelSpecification createMetamodelSpecification() | ||
158 | { | ||
159 | MetamodelSpecificationImpl metamodelSpecification = new MetamodelSpecificationImpl(); | ||
160 | return metamodelSpecification; | ||
161 | } | ||
162 | |||
163 | /** | ||
164 | * <!-- begin-user-doc --> | ||
165 | * <!-- end-user-doc --> | ||
166 | * @generated | ||
167 | */ | ||
168 | public MetamodelEntry createMetamodelEntry() | ||
169 | { | ||
170 | MetamodelEntryImpl metamodelEntry = new MetamodelEntryImpl(); | ||
171 | return metamodelEntry; | ||
172 | } | ||
173 | |||
174 | /** | ||
175 | * <!-- begin-user-doc --> | ||
176 | * <!-- end-user-doc --> | ||
177 | * @generated | ||
178 | */ | ||
179 | public AllPackageEntry createAllPackageEntry() | ||
180 | { | ||
181 | AllPackageEntryImpl allPackageEntry = new AllPackageEntryImpl(); | ||
182 | return allPackageEntry; | ||
183 | } | ||
184 | |||
185 | /** | ||
186 | * <!-- begin-user-doc --> | ||
187 | * <!-- end-user-doc --> | ||
188 | * @generated | ||
189 | */ | ||
190 | public MetamodelElement createMetamodelElement() | ||
191 | { | ||
192 | MetamodelElementImpl metamodelElement = new MetamodelElementImpl(); | ||
193 | return metamodelElement; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * <!-- begin-user-doc --> | ||
198 | * <!-- end-user-doc --> | ||
199 | * @generated | ||
200 | */ | ||
201 | public MetamodelDeclaration createMetamodelDeclaration() | ||
202 | { | ||
203 | MetamodelDeclarationImpl metamodelDeclaration = new MetamodelDeclarationImpl(); | ||
204 | return metamodelDeclaration; | ||
205 | } | ||
206 | |||
207 | /** | ||
208 | * <!-- begin-user-doc --> | ||
209 | * <!-- end-user-doc --> | ||
210 | * @generated | ||
211 | */ | ||
212 | public MetamodelReference createMetamodelReference() | ||
213 | { | ||
214 | MetamodelReferenceImpl metamodelReference = new MetamodelReferenceImpl(); | ||
215 | return metamodelReference; | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | public Metamodel createMetamodel() | ||
224 | { | ||
225 | MetamodelImpl metamodel = new MetamodelImpl(); | ||
226 | return metamodel; | ||
227 | } | ||
228 | |||
229 | /** | ||
230 | * <!-- begin-user-doc --> | ||
231 | * <!-- end-user-doc --> | ||
232 | * @generated | ||
233 | */ | ||
234 | public ApplicationConfigurationPackage getApplicationConfigurationPackage() | ||
235 | { | ||
236 | return (ApplicationConfigurationPackage)getEPackage(); | ||
237 | } | ||
238 | |||
239 | /** | ||
240 | * <!-- begin-user-doc --> | ||
241 | * <!-- end-user-doc --> | ||
242 | * @deprecated | ||
243 | * @generated | ||
244 | */ | ||
245 | @Deprecated | ||
246 | public static ApplicationConfigurationPackage getPackage() | ||
247 | { | ||
248 | return ApplicationConfigurationPackage.eINSTANCE; | ||
249 | } | ||
250 | |||
251 | } //ApplicationConfigurationFactoryImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java new file mode 100644 index 00000000..50ad4358 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ApplicationConfigurationPackageImpl.java | |||
@@ -0,0 +1,602 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationFactory; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; | ||
14 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; | ||
15 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; | ||
16 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
17 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; | ||
18 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; | ||
19 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; | ||
20 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; | ||
21 | |||
22 | import org.eclipse.emf.ecore.EAttribute; | ||
23 | import org.eclipse.emf.ecore.EClass; | ||
24 | import org.eclipse.emf.ecore.EPackage; | ||
25 | import org.eclipse.emf.ecore.EReference; | ||
26 | import org.eclipse.emf.ecore.EcorePackage; | ||
27 | |||
28 | import org.eclipse.emf.ecore.impl.EPackageImpl; | ||
29 | |||
30 | import org.eclipse.viatra.query.patternlanguage.patternLanguage.PatternLanguagePackage; | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * An implementation of the model <b>Package</b>. | ||
35 | * <!-- end-user-doc --> | ||
36 | * @generated | ||
37 | */ | ||
38 | public class ApplicationConfigurationPackageImpl extends EPackageImpl implements ApplicationConfigurationPackage | ||
39 | { | ||
40 | /** | ||
41 | * <!-- begin-user-doc --> | ||
42 | * <!-- end-user-doc --> | ||
43 | * @generated | ||
44 | */ | ||
45 | private EClass configurationScriptEClass = null; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | private EClass commandEClass = null; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | private EClass declarationEClass = null; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | private EClass importEClass = null; | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | private EClass ePackageImportEClass = null; | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | private EClass viatraImportEClass = null; | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | private EClass metamodelSpecificationEClass = null; | ||
88 | |||
89 | /** | ||
90 | * <!-- begin-user-doc --> | ||
91 | * <!-- end-user-doc --> | ||
92 | * @generated | ||
93 | */ | ||
94 | private EClass metamodelEntryEClass = null; | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | private EClass allPackageEntryEClass = null; | ||
102 | |||
103 | /** | ||
104 | * <!-- begin-user-doc --> | ||
105 | * <!-- end-user-doc --> | ||
106 | * @generated | ||
107 | */ | ||
108 | private EClass metamodelElementEClass = null; | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | private EClass metamodelDeclarationEClass = null; | ||
116 | |||
117 | /** | ||
118 | * <!-- begin-user-doc --> | ||
119 | * <!-- end-user-doc --> | ||
120 | * @generated | ||
121 | */ | ||
122 | private EClass metamodelReferenceEClass = null; | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | private EClass metamodelEClass = null; | ||
130 | |||
131 | /** | ||
132 | * Creates an instance of the model <b>Package</b>, registered with | ||
133 | * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package | ||
134 | * package URI value. | ||
135 | * <p>Note: the correct way to create the package is via the static | ||
136 | * factory method {@link #init init()}, which also performs | ||
137 | * initialization of the package, or returns the registered package, | ||
138 | * if one already exists. | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @see org.eclipse.emf.ecore.EPackage.Registry | ||
142 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage#eNS_URI | ||
143 | * @see #init() | ||
144 | * @generated | ||
145 | */ | ||
146 | private ApplicationConfigurationPackageImpl() | ||
147 | { | ||
148 | super(eNS_URI, ApplicationConfigurationFactory.eINSTANCE); | ||
149 | } | ||
150 | |||
151 | /** | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @generated | ||
155 | */ | ||
156 | private static boolean isInited = false; | ||
157 | |||
158 | /** | ||
159 | * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends. | ||
160 | * | ||
161 | * <p>This method is used to initialize {@link ApplicationConfigurationPackage#eINSTANCE} when that field is accessed. | ||
162 | * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | ||
163 | * <!-- begin-user-doc --> | ||
164 | * <!-- end-user-doc --> | ||
165 | * @see #eNS_URI | ||
166 | * @see #createPackageContents() | ||
167 | * @see #initializePackageContents() | ||
168 | * @generated | ||
169 | */ | ||
170 | public static ApplicationConfigurationPackage init() | ||
171 | { | ||
172 | if (isInited) return (ApplicationConfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(ApplicationConfigurationPackage.eNS_URI); | ||
173 | |||
174 | // Obtain or create and register package | ||
175 | ApplicationConfigurationPackageImpl theApplicationConfigurationPackage = (ApplicationConfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ApplicationConfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ApplicationConfigurationPackageImpl()); | ||
176 | |||
177 | isInited = true; | ||
178 | |||
179 | // Initialize simple dependencies | ||
180 | EcorePackage.eINSTANCE.eClass(); | ||
181 | PatternLanguagePackage.eINSTANCE.eClass(); | ||
182 | |||
183 | // Create package meta-data objects | ||
184 | theApplicationConfigurationPackage.createPackageContents(); | ||
185 | |||
186 | // Initialize created meta-data | ||
187 | theApplicationConfigurationPackage.initializePackageContents(); | ||
188 | |||
189 | // Mark meta-data to indicate it can't be changed | ||
190 | theApplicationConfigurationPackage.freeze(); | ||
191 | |||
192 | |||
193 | // Update the registry and return the package | ||
194 | EPackage.Registry.INSTANCE.put(ApplicationConfigurationPackage.eNS_URI, theApplicationConfigurationPackage); | ||
195 | return theApplicationConfigurationPackage; | ||
196 | } | ||
197 | |||
198 | /** | ||
199 | * <!-- begin-user-doc --> | ||
200 | * <!-- end-user-doc --> | ||
201 | * @generated | ||
202 | */ | ||
203 | public EClass getConfigurationScript() | ||
204 | { | ||
205 | return configurationScriptEClass; | ||
206 | } | ||
207 | |||
208 | /** | ||
209 | * <!-- begin-user-doc --> | ||
210 | * <!-- end-user-doc --> | ||
211 | * @generated | ||
212 | */ | ||
213 | public EReference getConfigurationScript_Imports() | ||
214 | { | ||
215 | return (EReference)configurationScriptEClass.getEStructuralFeatures().get(0); | ||
216 | } | ||
217 | |||
218 | /** | ||
219 | * <!-- begin-user-doc --> | ||
220 | * <!-- end-user-doc --> | ||
221 | * @generated | ||
222 | */ | ||
223 | public EReference getConfigurationScript_Commands() | ||
224 | { | ||
225 | return (EReference)configurationScriptEClass.getEStructuralFeatures().get(1); | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * <!-- begin-user-doc --> | ||
230 | * <!-- end-user-doc --> | ||
231 | * @generated | ||
232 | */ | ||
233 | public EClass getCommand() | ||
234 | { | ||
235 | return commandEClass; | ||
236 | } | ||
237 | |||
238 | /** | ||
239 | * <!-- begin-user-doc --> | ||
240 | * <!-- end-user-doc --> | ||
241 | * @generated | ||
242 | */ | ||
243 | public EClass getDeclaration() | ||
244 | { | ||
245 | return declarationEClass; | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | public EClass getImport() | ||
254 | { | ||
255 | return importEClass; | ||
256 | } | ||
257 | |||
258 | /** | ||
259 | * <!-- begin-user-doc --> | ||
260 | * <!-- end-user-doc --> | ||
261 | * @generated | ||
262 | */ | ||
263 | public EClass getEPackageImport() | ||
264 | { | ||
265 | return ePackageImportEClass; | ||
266 | } | ||
267 | |||
268 | /** | ||
269 | * <!-- begin-user-doc --> | ||
270 | * <!-- end-user-doc --> | ||
271 | * @generated | ||
272 | */ | ||
273 | public EReference getEPackageImport_ImportedPackage() | ||
274 | { | ||
275 | return (EReference)ePackageImportEClass.getEStructuralFeatures().get(0); | ||
276 | } | ||
277 | |||
278 | /** | ||
279 | * <!-- begin-user-doc --> | ||
280 | * <!-- end-user-doc --> | ||
281 | * @generated | ||
282 | */ | ||
283 | public EClass getViatraImport() | ||
284 | { | ||
285 | return viatraImportEClass; | ||
286 | } | ||
287 | |||
288 | /** | ||
289 | * <!-- begin-user-doc --> | ||
290 | * <!-- end-user-doc --> | ||
291 | * @generated | ||
292 | */ | ||
293 | public EReference getViatraImport_ImportedViatra() | ||
294 | { | ||
295 | return (EReference)viatraImportEClass.getEStructuralFeatures().get(0); | ||
296 | } | ||
297 | |||
298 | /** | ||
299 | * <!-- begin-user-doc --> | ||
300 | * <!-- end-user-doc --> | ||
301 | * @generated | ||
302 | */ | ||
303 | public EClass getMetamodelSpecification() | ||
304 | { | ||
305 | return metamodelSpecificationEClass; | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * <!-- begin-user-doc --> | ||
310 | * <!-- end-user-doc --> | ||
311 | * @generated | ||
312 | */ | ||
313 | public EReference getMetamodelSpecification_Entries() | ||
314 | { | ||
315 | return (EReference)metamodelSpecificationEClass.getEStructuralFeatures().get(0); | ||
316 | } | ||
317 | |||
318 | /** | ||
319 | * <!-- begin-user-doc --> | ||
320 | * <!-- end-user-doc --> | ||
321 | * @generated | ||
322 | */ | ||
323 | public EClass getMetamodelEntry() | ||
324 | { | ||
325 | return metamodelEntryEClass; | ||
326 | } | ||
327 | |||
328 | /** | ||
329 | * <!-- begin-user-doc --> | ||
330 | * <!-- end-user-doc --> | ||
331 | * @generated | ||
332 | */ | ||
333 | public EReference getMetamodelEntry_Package() | ||
334 | { | ||
335 | return (EReference)metamodelEntryEClass.getEStructuralFeatures().get(0); | ||
336 | } | ||
337 | |||
338 | /** | ||
339 | * <!-- begin-user-doc --> | ||
340 | * <!-- end-user-doc --> | ||
341 | * @generated | ||
342 | */ | ||
343 | public EClass getAllPackageEntry() | ||
344 | { | ||
345 | return allPackageEntryEClass; | ||
346 | } | ||
347 | |||
348 | /** | ||
349 | * <!-- begin-user-doc --> | ||
350 | * <!-- end-user-doc --> | ||
351 | * @generated | ||
352 | */ | ||
353 | public EReference getAllPackageEntry_Exclusion() | ||
354 | { | ||
355 | return (EReference)allPackageEntryEClass.getEStructuralFeatures().get(0); | ||
356 | } | ||
357 | |||
358 | /** | ||
359 | * <!-- begin-user-doc --> | ||
360 | * <!-- end-user-doc --> | ||
361 | * @generated | ||
362 | */ | ||
363 | public EClass getMetamodelElement() | ||
364 | { | ||
365 | return metamodelElementEClass; | ||
366 | } | ||
367 | |||
368 | /** | ||
369 | * <!-- begin-user-doc --> | ||
370 | * <!-- end-user-doc --> | ||
371 | * @generated | ||
372 | */ | ||
373 | public EReference getMetamodelElement_Classifier() | ||
374 | { | ||
375 | return (EReference)metamodelElementEClass.getEStructuralFeatures().get(0); | ||
376 | } | ||
377 | |||
378 | /** | ||
379 | * <!-- begin-user-doc --> | ||
380 | * <!-- end-user-doc --> | ||
381 | * @generated | ||
382 | */ | ||
383 | public EReference getMetamodelElement_Feature() | ||
384 | { | ||
385 | return (EReference)metamodelElementEClass.getEStructuralFeatures().get(1); | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * <!-- begin-user-doc --> | ||
390 | * <!-- end-user-doc --> | ||
391 | * @generated | ||
392 | */ | ||
393 | public EClass getMetamodelDeclaration() | ||
394 | { | ||
395 | return metamodelDeclarationEClass; | ||
396 | } | ||
397 | |||
398 | /** | ||
399 | * <!-- begin-user-doc --> | ||
400 | * <!-- end-user-doc --> | ||
401 | * @generated | ||
402 | */ | ||
403 | public EAttribute getMetamodelDeclaration_Name() | ||
404 | { | ||
405 | return (EAttribute)metamodelDeclarationEClass.getEStructuralFeatures().get(0); | ||
406 | } | ||
407 | |||
408 | /** | ||
409 | * <!-- begin-user-doc --> | ||
410 | * <!-- end-user-doc --> | ||
411 | * @generated | ||
412 | */ | ||
413 | public EReference getMetamodelDeclaration_Specification() | ||
414 | { | ||
415 | return (EReference)metamodelDeclarationEClass.getEStructuralFeatures().get(1); | ||
416 | } | ||
417 | |||
418 | /** | ||
419 | * <!-- begin-user-doc --> | ||
420 | * <!-- end-user-doc --> | ||
421 | * @generated | ||
422 | */ | ||
423 | public EClass getMetamodelReference() | ||
424 | { | ||
425 | return metamodelReferenceEClass; | ||
426 | } | ||
427 | |||
428 | /** | ||
429 | * <!-- begin-user-doc --> | ||
430 | * <!-- end-user-doc --> | ||
431 | * @generated | ||
432 | */ | ||
433 | public EReference getMetamodelReference_Referred() | ||
434 | { | ||
435 | return (EReference)metamodelReferenceEClass.getEStructuralFeatures().get(0); | ||
436 | } | ||
437 | |||
438 | /** | ||
439 | * <!-- begin-user-doc --> | ||
440 | * <!-- end-user-doc --> | ||
441 | * @generated | ||
442 | */ | ||
443 | public EClass getMetamodel() | ||
444 | { | ||
445 | return metamodelEClass; | ||
446 | } | ||
447 | |||
448 | /** | ||
449 | * <!-- begin-user-doc --> | ||
450 | * <!-- end-user-doc --> | ||
451 | * @generated | ||
452 | */ | ||
453 | public ApplicationConfigurationFactory getApplicationConfigurationFactory() | ||
454 | { | ||
455 | return (ApplicationConfigurationFactory)getEFactoryInstance(); | ||
456 | } | ||
457 | |||
458 | /** | ||
459 | * <!-- begin-user-doc --> | ||
460 | * <!-- end-user-doc --> | ||
461 | * @generated | ||
462 | */ | ||
463 | private boolean isCreated = false; | ||
464 | |||
465 | /** | ||
466 | * Creates the meta-model objects for the package. This method is | ||
467 | * guarded to have no affect on any invocation but its first. | ||
468 | * <!-- begin-user-doc --> | ||
469 | * <!-- end-user-doc --> | ||
470 | * @generated | ||
471 | */ | ||
472 | public void createPackageContents() | ||
473 | { | ||
474 | if (isCreated) return; | ||
475 | isCreated = true; | ||
476 | |||
477 | // Create classes and their features | ||
478 | configurationScriptEClass = createEClass(CONFIGURATION_SCRIPT); | ||
479 | createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__IMPORTS); | ||
480 | createEReference(configurationScriptEClass, CONFIGURATION_SCRIPT__COMMANDS); | ||
481 | |||
482 | commandEClass = createEClass(COMMAND); | ||
483 | |||
484 | declarationEClass = createEClass(DECLARATION); | ||
485 | |||
486 | importEClass = createEClass(IMPORT); | ||
487 | |||
488 | ePackageImportEClass = createEClass(EPACKAGE_IMPORT); | ||
489 | createEReference(ePackageImportEClass, EPACKAGE_IMPORT__IMPORTED_PACKAGE); | ||
490 | |||
491 | viatraImportEClass = createEClass(VIATRA_IMPORT); | ||
492 | createEReference(viatraImportEClass, VIATRA_IMPORT__IMPORTED_VIATRA); | ||
493 | |||
494 | metamodelSpecificationEClass = createEClass(METAMODEL_SPECIFICATION); | ||
495 | createEReference(metamodelSpecificationEClass, METAMODEL_SPECIFICATION__ENTRIES); | ||
496 | |||
497 | metamodelEntryEClass = createEClass(METAMODEL_ENTRY); | ||
498 | createEReference(metamodelEntryEClass, METAMODEL_ENTRY__PACKAGE); | ||
499 | |||
500 | allPackageEntryEClass = createEClass(ALL_PACKAGE_ENTRY); | ||
501 | createEReference(allPackageEntryEClass, ALL_PACKAGE_ENTRY__EXCLUSION); | ||
502 | |||
503 | metamodelElementEClass = createEClass(METAMODEL_ELEMENT); | ||
504 | createEReference(metamodelElementEClass, METAMODEL_ELEMENT__CLASSIFIER); | ||
505 | createEReference(metamodelElementEClass, METAMODEL_ELEMENT__FEATURE); | ||
506 | |||
507 | metamodelDeclarationEClass = createEClass(METAMODEL_DECLARATION); | ||
508 | createEAttribute(metamodelDeclarationEClass, METAMODEL_DECLARATION__NAME); | ||
509 | createEReference(metamodelDeclarationEClass, METAMODEL_DECLARATION__SPECIFICATION); | ||
510 | |||
511 | metamodelReferenceEClass = createEClass(METAMODEL_REFERENCE); | ||
512 | createEReference(metamodelReferenceEClass, METAMODEL_REFERENCE__REFERRED); | ||
513 | |||
514 | metamodelEClass = createEClass(METAMODEL); | ||
515 | } | ||
516 | |||
517 | /** | ||
518 | * <!-- begin-user-doc --> | ||
519 | * <!-- end-user-doc --> | ||
520 | * @generated | ||
521 | */ | ||
522 | private boolean isInitialized = false; | ||
523 | |||
524 | /** | ||
525 | * Complete the initialization of the package and its meta-model. This | ||
526 | * method is guarded to have no affect on any invocation but its first. | ||
527 | * <!-- begin-user-doc --> | ||
528 | * <!-- end-user-doc --> | ||
529 | * @generated | ||
530 | */ | ||
531 | public void initializePackageContents() | ||
532 | { | ||
533 | if (isInitialized) return; | ||
534 | isInitialized = true; | ||
535 | |||
536 | // Initialize package | ||
537 | setName(eNAME); | ||
538 | setNsPrefix(eNS_PREFIX); | ||
539 | setNsURI(eNS_URI); | ||
540 | |||
541 | // Obtain other dependent packages | ||
542 | EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI); | ||
543 | PatternLanguagePackage thePatternLanguagePackage = (PatternLanguagePackage)EPackage.Registry.INSTANCE.getEPackage(PatternLanguagePackage.eNS_URI); | ||
544 | |||
545 | // Create type parameters | ||
546 | |||
547 | // Set bounds for type parameters | ||
548 | |||
549 | // Add supertypes to classes | ||
550 | declarationEClass.getESuperTypes().add(this.getCommand()); | ||
551 | ePackageImportEClass.getESuperTypes().add(this.getImport()); | ||
552 | viatraImportEClass.getESuperTypes().add(this.getImport()); | ||
553 | metamodelSpecificationEClass.getESuperTypes().add(this.getMetamodel()); | ||
554 | allPackageEntryEClass.getESuperTypes().add(this.getMetamodelEntry()); | ||
555 | metamodelElementEClass.getESuperTypes().add(this.getMetamodelEntry()); | ||
556 | metamodelDeclarationEClass.getESuperTypes().add(this.getDeclaration()); | ||
557 | metamodelReferenceEClass.getESuperTypes().add(this.getMetamodel()); | ||
558 | |||
559 | // Initialize classes and features; add operations and parameters | ||
560 | initEClass(configurationScriptEClass, ConfigurationScript.class, "ConfigurationScript", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
561 | initEReference(getConfigurationScript_Imports(), this.getImport(), null, "imports", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
562 | initEReference(getConfigurationScript_Commands(), this.getCommand(), null, "commands", null, 0, -1, ConfigurationScript.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
563 | |||
564 | initEClass(commandEClass, Command.class, "Command", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
565 | |||
566 | initEClass(declarationEClass, Declaration.class, "Declaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
567 | |||
568 | initEClass(importEClass, Import.class, "Import", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
569 | |||
570 | initEClass(ePackageImportEClass, EPackageImport.class, "EPackageImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
571 | initEReference(getEPackageImport_ImportedPackage(), theEcorePackage.getEPackage(), null, "importedPackage", null, 0, 1, EPackageImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
572 | |||
573 | initEClass(viatraImportEClass, ViatraImport.class, "ViatraImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
574 | initEReference(getViatraImport_ImportedViatra(), thePatternLanguagePackage.getPatternModel(), null, "importedViatra", null, 0, 1, ViatraImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
575 | |||
576 | initEClass(metamodelSpecificationEClass, MetamodelSpecification.class, "MetamodelSpecification", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
577 | initEReference(getMetamodelSpecification_Entries(), this.getMetamodelEntry(), null, "entries", null, 0, -1, MetamodelSpecification.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
578 | |||
579 | initEClass(metamodelEntryEClass, MetamodelEntry.class, "MetamodelEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
580 | initEReference(getMetamodelEntry_Package(), theEcorePackage.getEPackage(), null, "package", null, 0, 1, MetamodelEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
581 | |||
582 | initEClass(allPackageEntryEClass, AllPackageEntry.class, "AllPackageEntry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
583 | initEReference(getAllPackageEntry_Exclusion(), this.getMetamodelElement(), null, "exclusion", null, 0, -1, AllPackageEntry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
584 | |||
585 | initEClass(metamodelElementEClass, MetamodelElement.class, "MetamodelElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
586 | initEReference(getMetamodelElement_Classifier(), theEcorePackage.getEClassifier(), null, "classifier", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
587 | initEReference(getMetamodelElement_Feature(), theEcorePackage.getENamedElement(), null, "feature", null, 0, 1, MetamodelElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
588 | |||
589 | initEClass(metamodelDeclarationEClass, MetamodelDeclaration.class, "MetamodelDeclaration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
590 | initEAttribute(getMetamodelDeclaration_Name(), theEcorePackage.getEString(), "name", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
591 | initEReference(getMetamodelDeclaration_Specification(), this.getMetamodelSpecification(), null, "specification", null, 0, 1, MetamodelDeclaration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
592 | |||
593 | initEClass(metamodelReferenceEClass, MetamodelReference.class, "MetamodelReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
594 | initEReference(getMetamodelReference_Referred(), this.getMetamodelDeclaration(), null, "referred", null, 0, 1, MetamodelReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); | ||
595 | |||
596 | initEClass(metamodelEClass, Metamodel.class, "Metamodel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); | ||
597 | |||
598 | // Create resource | ||
599 | createResource(eNS_URI); | ||
600 | } | ||
601 | |||
602 | } //ApplicationConfigurationPackageImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java new file mode 100644 index 00000000..2d4d95ba --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/CommandImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Command</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class CommandImpl extends MinimalEObjectImpl.Container implements Command | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected CommandImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return ApplicationConfigurationPackage.Literals.COMMAND; | ||
41 | } | ||
42 | |||
43 | } //CommandImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java new file mode 100644 index 00000000..fcb0790a --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ConfigurationScriptImpl.java | |||
@@ -0,0 +1,207 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; | ||
10 | |||
11 | import java.util.Collection; | ||
12 | |||
13 | import org.eclipse.emf.common.notify.NotificationChain; | ||
14 | |||
15 | import org.eclipse.emf.common.util.EList; | ||
16 | |||
17 | import org.eclipse.emf.ecore.EClass; | ||
18 | import org.eclipse.emf.ecore.InternalEObject; | ||
19 | |||
20 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
21 | |||
22 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
23 | import org.eclipse.emf.ecore.util.InternalEList; | ||
24 | |||
25 | /** | ||
26 | * <!-- begin-user-doc --> | ||
27 | * An implementation of the model object '<em><b>Configuration Script</b></em>'. | ||
28 | * <!-- end-user-doc --> | ||
29 | * <p> | ||
30 | * The following features are implemented: | ||
31 | * </p> | ||
32 | * <ul> | ||
33 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getImports <em>Imports</em>}</li> | ||
34 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ConfigurationScriptImpl#getCommands <em>Commands</em>}</li> | ||
35 | * </ul> | ||
36 | * | ||
37 | * @generated | ||
38 | */ | ||
39 | public class ConfigurationScriptImpl extends MinimalEObjectImpl.Container implements ConfigurationScript | ||
40 | { | ||
41 | /** | ||
42 | * The cached value of the '{@link #getImports() <em>Imports</em>}' containment reference list. | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @see #getImports() | ||
46 | * @generated | ||
47 | * @ordered | ||
48 | */ | ||
49 | protected EList<Import> imports; | ||
50 | |||
51 | /** | ||
52 | * The cached value of the '{@link #getCommands() <em>Commands</em>}' containment reference list. | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @see #getCommands() | ||
56 | * @generated | ||
57 | * @ordered | ||
58 | */ | ||
59 | protected EList<Command> commands; | ||
60 | |||
61 | /** | ||
62 | * <!-- begin-user-doc --> | ||
63 | * <!-- end-user-doc --> | ||
64 | * @generated | ||
65 | */ | ||
66 | protected ConfigurationScriptImpl() | ||
67 | { | ||
68 | super(); | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * <!-- begin-user-doc --> | ||
73 | * <!-- end-user-doc --> | ||
74 | * @generated | ||
75 | */ | ||
76 | @Override | ||
77 | protected EClass eStaticClass() | ||
78 | { | ||
79 | return ApplicationConfigurationPackage.Literals.CONFIGURATION_SCRIPT; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | public EList<Import> getImports() | ||
88 | { | ||
89 | if (imports == null) | ||
90 | { | ||
91 | imports = new EObjectContainmentEList<Import>(Import.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS); | ||
92 | } | ||
93 | return imports; | ||
94 | } | ||
95 | |||
96 | /** | ||
97 | * <!-- begin-user-doc --> | ||
98 | * <!-- end-user-doc --> | ||
99 | * @generated | ||
100 | */ | ||
101 | public EList<Command> getCommands() | ||
102 | { | ||
103 | if (commands == null) | ||
104 | { | ||
105 | commands = new EObjectContainmentEList<Command>(Command.class, this, ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS); | ||
106 | } | ||
107 | return commands; | ||
108 | } | ||
109 | |||
110 | /** | ||
111 | * <!-- begin-user-doc --> | ||
112 | * <!-- end-user-doc --> | ||
113 | * @generated | ||
114 | */ | ||
115 | @Override | ||
116 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
117 | { | ||
118 | switch (featureID) | ||
119 | { | ||
120 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
121 | return ((InternalEList<?>)getImports()).basicRemove(otherEnd, msgs); | ||
122 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
123 | return ((InternalEList<?>)getCommands()).basicRemove(otherEnd, msgs); | ||
124 | } | ||
125 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * <!-- begin-user-doc --> | ||
130 | * <!-- end-user-doc --> | ||
131 | * @generated | ||
132 | */ | ||
133 | @Override | ||
134 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
135 | { | ||
136 | switch (featureID) | ||
137 | { | ||
138 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
139 | return getImports(); | ||
140 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
141 | return getCommands(); | ||
142 | } | ||
143 | return super.eGet(featureID, resolve, coreType); | ||
144 | } | ||
145 | |||
146 | /** | ||
147 | * <!-- begin-user-doc --> | ||
148 | * <!-- end-user-doc --> | ||
149 | * @generated | ||
150 | */ | ||
151 | @SuppressWarnings("unchecked") | ||
152 | @Override | ||
153 | public void eSet(int featureID, Object newValue) | ||
154 | { | ||
155 | switch (featureID) | ||
156 | { | ||
157 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
158 | getImports().clear(); | ||
159 | getImports().addAll((Collection<? extends Import>)newValue); | ||
160 | return; | ||
161 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
162 | getCommands().clear(); | ||
163 | getCommands().addAll((Collection<? extends Command>)newValue); | ||
164 | return; | ||
165 | } | ||
166 | super.eSet(featureID, newValue); | ||
167 | } | ||
168 | |||
169 | /** | ||
170 | * <!-- begin-user-doc --> | ||
171 | * <!-- end-user-doc --> | ||
172 | * @generated | ||
173 | */ | ||
174 | @Override | ||
175 | public void eUnset(int featureID) | ||
176 | { | ||
177 | switch (featureID) | ||
178 | { | ||
179 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
180 | getImports().clear(); | ||
181 | return; | ||
182 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
183 | getCommands().clear(); | ||
184 | return; | ||
185 | } | ||
186 | super.eUnset(featureID); | ||
187 | } | ||
188 | |||
189 | /** | ||
190 | * <!-- begin-user-doc --> | ||
191 | * <!-- end-user-doc --> | ||
192 | * @generated | ||
193 | */ | ||
194 | @Override | ||
195 | public boolean eIsSet(int featureID) | ||
196 | { | ||
197 | switch (featureID) | ||
198 | { | ||
199 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__IMPORTS: | ||
200 | return imports != null && !imports.isEmpty(); | ||
201 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT__COMMANDS: | ||
202 | return commands != null && !commands.isEmpty(); | ||
203 | } | ||
204 | return super.eIsSet(featureID); | ||
205 | } | ||
206 | |||
207 | } //ConfigurationScriptImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java new file mode 100644 index 00000000..a2124cde --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/DeclarationImpl.java | |||
@@ -0,0 +1,41 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | /** | ||
12 | * <!-- begin-user-doc --> | ||
13 | * An implementation of the model object '<em><b>Declaration</b></em>'. | ||
14 | * <!-- end-user-doc --> | ||
15 | * | ||
16 | * @generated | ||
17 | */ | ||
18 | public class DeclarationImpl extends CommandImpl implements Declaration | ||
19 | { | ||
20 | /** | ||
21 | * <!-- begin-user-doc --> | ||
22 | * <!-- end-user-doc --> | ||
23 | * @generated | ||
24 | */ | ||
25 | protected DeclarationImpl() | ||
26 | { | ||
27 | super(); | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * <!-- begin-user-doc --> | ||
32 | * <!-- end-user-doc --> | ||
33 | * @generated | ||
34 | */ | ||
35 | @Override | ||
36 | protected EClass eStaticClass() | ||
37 | { | ||
38 | return ApplicationConfigurationPackage.Literals.DECLARATION; | ||
39 | } | ||
40 | |||
41 | } //DeclarationImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java new file mode 100644 index 00000000..f54c9ac4 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/EPackageImportImpl.java | |||
@@ -0,0 +1,173 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.EPackage; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>EPackage Import</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.EPackageImportImpl#getImportedPackage <em>Imported Package</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class EPackageImportImpl extends ImportImpl implements EPackageImport | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getImportedPackage() <em>Imported Package</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getImportedPackage() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected EPackage importedPackage; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected EPackageImportImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return ApplicationConfigurationPackage.Literals.EPACKAGE_IMPORT; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | public EPackage getImportedPackage() | ||
69 | { | ||
70 | if (importedPackage != null && importedPackage.eIsProxy()) | ||
71 | { | ||
72 | InternalEObject oldImportedPackage = (InternalEObject)importedPackage; | ||
73 | importedPackage = (EPackage)eResolveProxy(oldImportedPackage); | ||
74 | if (importedPackage != oldImportedPackage) | ||
75 | { | ||
76 | if (eNotificationRequired()) | ||
77 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE, oldImportedPackage, importedPackage)); | ||
78 | } | ||
79 | } | ||
80 | return importedPackage; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public EPackage basicGetImportedPackage() | ||
89 | { | ||
90 | return importedPackage; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public void setImportedPackage(EPackage newImportedPackage) | ||
99 | { | ||
100 | EPackage oldImportedPackage = importedPackage; | ||
101 | importedPackage = newImportedPackage; | ||
102 | if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE, oldImportedPackage, importedPackage)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
113 | { | ||
114 | switch (featureID) | ||
115 | { | ||
116 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: | ||
117 | if (resolve) return getImportedPackage(); | ||
118 | return basicGetImportedPackage(); | ||
119 | } | ||
120 | return super.eGet(featureID, resolve, coreType); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eSet(int featureID, Object newValue) | ||
130 | { | ||
131 | switch (featureID) | ||
132 | { | ||
133 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: | ||
134 | setImportedPackage((EPackage)newValue); | ||
135 | return; | ||
136 | } | ||
137 | super.eSet(featureID, newValue); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public void eUnset(int featureID) | ||
147 | { | ||
148 | switch (featureID) | ||
149 | { | ||
150 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: | ||
151 | setImportedPackage((EPackage)null); | ||
152 | return; | ||
153 | } | ||
154 | super.eUnset(featureID); | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public boolean eIsSet(int featureID) | ||
164 | { | ||
165 | switch (featureID) | ||
166 | { | ||
167 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT__IMPORTED_PACKAGE: | ||
168 | return importedPackage != null; | ||
169 | } | ||
170 | return super.eIsSet(featureID); | ||
171 | } | ||
172 | |||
173 | } //EPackageImportImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java new file mode 100644 index 00000000..feac4c1e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ImportImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Import</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class ImportImpl extends MinimalEObjectImpl.Container implements Import | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected ImportImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return ApplicationConfigurationPackage.Literals.IMPORT; | ||
41 | } | ||
42 | |||
43 | } //ImportImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java new file mode 100644 index 00000000..3458c16a --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelDeclarationImpl.java | |||
@@ -0,0 +1,265 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | import org.eclipse.emf.common.notify.NotificationChain; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Metamodel Declaration</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl#getName <em>Name</em>}</li> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelDeclarationImpl#getSpecification <em>Specification</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class MetamodelDeclarationImpl extends DeclarationImpl implements MetamodelDeclaration | ||
33 | { | ||
34 | /** | ||
35 | * The default value of the '{@link #getName() <em>Name</em>}' attribute. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getName() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected static final String NAME_EDEFAULT = null; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getName() <em>Name</em>}' attribute. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getName() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected String name = NAME_EDEFAULT; | ||
53 | |||
54 | /** | ||
55 | * The cached value of the '{@link #getSpecification() <em>Specification</em>}' containment reference. | ||
56 | * <!-- begin-user-doc --> | ||
57 | * <!-- end-user-doc --> | ||
58 | * @see #getSpecification() | ||
59 | * @generated | ||
60 | * @ordered | ||
61 | */ | ||
62 | protected MetamodelSpecification specification; | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | protected MetamodelDeclarationImpl() | ||
70 | { | ||
71 | super(); | ||
72 | } | ||
73 | |||
74 | /** | ||
75 | * <!-- begin-user-doc --> | ||
76 | * <!-- end-user-doc --> | ||
77 | * @generated | ||
78 | */ | ||
79 | @Override | ||
80 | protected EClass eStaticClass() | ||
81 | { | ||
82 | return ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION; | ||
83 | } | ||
84 | |||
85 | /** | ||
86 | * <!-- begin-user-doc --> | ||
87 | * <!-- end-user-doc --> | ||
88 | * @generated | ||
89 | */ | ||
90 | public String getName() | ||
91 | { | ||
92 | return name; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public void setName(String newName) | ||
101 | { | ||
102 | String oldName = name; | ||
103 | name = newName; | ||
104 | if (eNotificationRequired()) | ||
105 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__NAME, oldName, name)); | ||
106 | } | ||
107 | |||
108 | /** | ||
109 | * <!-- begin-user-doc --> | ||
110 | * <!-- end-user-doc --> | ||
111 | * @generated | ||
112 | */ | ||
113 | public MetamodelSpecification getSpecification() | ||
114 | { | ||
115 | return specification; | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | public NotificationChain basicSetSpecification(MetamodelSpecification newSpecification, NotificationChain msgs) | ||
124 | { | ||
125 | MetamodelSpecification oldSpecification = specification; | ||
126 | specification = newSpecification; | ||
127 | if (eNotificationRequired()) | ||
128 | { | ||
129 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, oldSpecification, newSpecification); | ||
130 | if (msgs == null) msgs = notification; else msgs.add(notification); | ||
131 | } | ||
132 | return msgs; | ||
133 | } | ||
134 | |||
135 | /** | ||
136 | * <!-- begin-user-doc --> | ||
137 | * <!-- end-user-doc --> | ||
138 | * @generated | ||
139 | */ | ||
140 | public void setSpecification(MetamodelSpecification newSpecification) | ||
141 | { | ||
142 | if (newSpecification != specification) | ||
143 | { | ||
144 | NotificationChain msgs = null; | ||
145 | if (specification != null) | ||
146 | msgs = ((InternalEObject)specification).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, null, msgs); | ||
147 | if (newSpecification != null) | ||
148 | msgs = ((InternalEObject)newSpecification).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, null, msgs); | ||
149 | msgs = basicSetSpecification(newSpecification, msgs); | ||
150 | if (msgs != null) msgs.dispatch(); | ||
151 | } | ||
152 | else if (eNotificationRequired()) | ||
153 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION, newSpecification, newSpecification)); | ||
154 | } | ||
155 | |||
156 | /** | ||
157 | * <!-- begin-user-doc --> | ||
158 | * <!-- end-user-doc --> | ||
159 | * @generated | ||
160 | */ | ||
161 | @Override | ||
162 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
163 | { | ||
164 | switch (featureID) | ||
165 | { | ||
166 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: | ||
167 | return basicSetSpecification(null, msgs); | ||
168 | } | ||
169 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * <!-- begin-user-doc --> | ||
174 | * <!-- end-user-doc --> | ||
175 | * @generated | ||
176 | */ | ||
177 | @Override | ||
178 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
179 | { | ||
180 | switch (featureID) | ||
181 | { | ||
182 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__NAME: | ||
183 | return getName(); | ||
184 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: | ||
185 | return getSpecification(); | ||
186 | } | ||
187 | return super.eGet(featureID, resolve, coreType); | ||
188 | } | ||
189 | |||
190 | /** | ||
191 | * <!-- begin-user-doc --> | ||
192 | * <!-- end-user-doc --> | ||
193 | * @generated | ||
194 | */ | ||
195 | @Override | ||
196 | public void eSet(int featureID, Object newValue) | ||
197 | { | ||
198 | switch (featureID) | ||
199 | { | ||
200 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__NAME: | ||
201 | setName((String)newValue); | ||
202 | return; | ||
203 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: | ||
204 | setSpecification((MetamodelSpecification)newValue); | ||
205 | return; | ||
206 | } | ||
207 | super.eSet(featureID, newValue); | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * <!-- begin-user-doc --> | ||
212 | * <!-- end-user-doc --> | ||
213 | * @generated | ||
214 | */ | ||
215 | @Override | ||
216 | public void eUnset(int featureID) | ||
217 | { | ||
218 | switch (featureID) | ||
219 | { | ||
220 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__NAME: | ||
221 | setName(NAME_EDEFAULT); | ||
222 | return; | ||
223 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: | ||
224 | setSpecification((MetamodelSpecification)null); | ||
225 | return; | ||
226 | } | ||
227 | super.eUnset(featureID); | ||
228 | } | ||
229 | |||
230 | /** | ||
231 | * <!-- begin-user-doc --> | ||
232 | * <!-- end-user-doc --> | ||
233 | * @generated | ||
234 | */ | ||
235 | @Override | ||
236 | public boolean eIsSet(int featureID) | ||
237 | { | ||
238 | switch (featureID) | ||
239 | { | ||
240 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__NAME: | ||
241 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | ||
242 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION__SPECIFICATION: | ||
243 | return specification != null; | ||
244 | } | ||
245 | return super.eIsSet(featureID); | ||
246 | } | ||
247 | |||
248 | /** | ||
249 | * <!-- begin-user-doc --> | ||
250 | * <!-- end-user-doc --> | ||
251 | * @generated | ||
252 | */ | ||
253 | @Override | ||
254 | public String toString() | ||
255 | { | ||
256 | if (eIsProxy()) return super.toString(); | ||
257 | |||
258 | StringBuffer result = new StringBuffer(super.toString()); | ||
259 | result.append(" (name: "); | ||
260 | result.append(name); | ||
261 | result.append(')'); | ||
262 | return result.toString(); | ||
263 | } | ||
264 | |||
265 | } //MetamodelDeclarationImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java new file mode 100644 index 00000000..9daa07d6 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelElementImpl.java | |||
@@ -0,0 +1,239 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.EClassifier; | ||
13 | import org.eclipse.emf.ecore.ENamedElement; | ||
14 | import org.eclipse.emf.ecore.InternalEObject; | ||
15 | |||
16 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Metamodel Element</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getClassifier <em>Classifier</em>}</li> | ||
27 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelElementImpl#getFeature <em>Feature</em>}</li> | ||
28 | * </ul> | ||
29 | * | ||
30 | * @generated | ||
31 | */ | ||
32 | public class MetamodelElementImpl extends MetamodelEntryImpl implements MetamodelElement | ||
33 | { | ||
34 | /** | ||
35 | * The cached value of the '{@link #getClassifier() <em>Classifier</em>}' reference. | ||
36 | * <!-- begin-user-doc --> | ||
37 | * <!-- end-user-doc --> | ||
38 | * @see #getClassifier() | ||
39 | * @generated | ||
40 | * @ordered | ||
41 | */ | ||
42 | protected EClassifier classifier; | ||
43 | |||
44 | /** | ||
45 | * The cached value of the '{@link #getFeature() <em>Feature</em>}' reference. | ||
46 | * <!-- begin-user-doc --> | ||
47 | * <!-- end-user-doc --> | ||
48 | * @see #getFeature() | ||
49 | * @generated | ||
50 | * @ordered | ||
51 | */ | ||
52 | protected ENamedElement feature; | ||
53 | |||
54 | /** | ||
55 | * <!-- begin-user-doc --> | ||
56 | * <!-- end-user-doc --> | ||
57 | * @generated | ||
58 | */ | ||
59 | protected MetamodelElementImpl() | ||
60 | { | ||
61 | super(); | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | @Override | ||
70 | protected EClass eStaticClass() | ||
71 | { | ||
72 | return ApplicationConfigurationPackage.Literals.METAMODEL_ELEMENT; | ||
73 | } | ||
74 | |||
75 | /** | ||
76 | * <!-- begin-user-doc --> | ||
77 | * <!-- end-user-doc --> | ||
78 | * @generated | ||
79 | */ | ||
80 | public EClassifier getClassifier() | ||
81 | { | ||
82 | if (classifier != null && classifier.eIsProxy()) | ||
83 | { | ||
84 | InternalEObject oldClassifier = (InternalEObject)classifier; | ||
85 | classifier = (EClassifier)eResolveProxy(oldClassifier); | ||
86 | if (classifier != oldClassifier) | ||
87 | { | ||
88 | if (eNotificationRequired()) | ||
89 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); | ||
90 | } | ||
91 | } | ||
92 | return classifier; | ||
93 | } | ||
94 | |||
95 | /** | ||
96 | * <!-- begin-user-doc --> | ||
97 | * <!-- end-user-doc --> | ||
98 | * @generated | ||
99 | */ | ||
100 | public EClassifier basicGetClassifier() | ||
101 | { | ||
102 | return classifier; | ||
103 | } | ||
104 | |||
105 | /** | ||
106 | * <!-- begin-user-doc --> | ||
107 | * <!-- end-user-doc --> | ||
108 | * @generated | ||
109 | */ | ||
110 | public void setClassifier(EClassifier newClassifier) | ||
111 | { | ||
112 | EClassifier oldClassifier = classifier; | ||
113 | classifier = newClassifier; | ||
114 | if (eNotificationRequired()) | ||
115 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER, oldClassifier, classifier)); | ||
116 | } | ||
117 | |||
118 | /** | ||
119 | * <!-- begin-user-doc --> | ||
120 | * <!-- end-user-doc --> | ||
121 | * @generated | ||
122 | */ | ||
123 | public ENamedElement getFeature() | ||
124 | { | ||
125 | if (feature != null && feature.eIsProxy()) | ||
126 | { | ||
127 | InternalEObject oldFeature = (InternalEObject)feature; | ||
128 | feature = (ENamedElement)eResolveProxy(oldFeature); | ||
129 | if (feature != oldFeature) | ||
130 | { | ||
131 | if (eNotificationRequired()) | ||
132 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); | ||
133 | } | ||
134 | } | ||
135 | return feature; | ||
136 | } | ||
137 | |||
138 | /** | ||
139 | * <!-- begin-user-doc --> | ||
140 | * <!-- end-user-doc --> | ||
141 | * @generated | ||
142 | */ | ||
143 | public ENamedElement basicGetFeature() | ||
144 | { | ||
145 | return feature; | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | public void setFeature(ENamedElement newFeature) | ||
154 | { | ||
155 | ENamedElement oldFeature = feature; | ||
156 | feature = newFeature; | ||
157 | if (eNotificationRequired()) | ||
158 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE, oldFeature, feature)); | ||
159 | } | ||
160 | |||
161 | /** | ||
162 | * <!-- begin-user-doc --> | ||
163 | * <!-- end-user-doc --> | ||
164 | * @generated | ||
165 | */ | ||
166 | @Override | ||
167 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
168 | { | ||
169 | switch (featureID) | ||
170 | { | ||
171 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
172 | if (resolve) return getClassifier(); | ||
173 | return basicGetClassifier(); | ||
174 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
175 | if (resolve) return getFeature(); | ||
176 | return basicGetFeature(); | ||
177 | } | ||
178 | return super.eGet(featureID, resolve, coreType); | ||
179 | } | ||
180 | |||
181 | /** | ||
182 | * <!-- begin-user-doc --> | ||
183 | * <!-- end-user-doc --> | ||
184 | * @generated | ||
185 | */ | ||
186 | @Override | ||
187 | public void eSet(int featureID, Object newValue) | ||
188 | { | ||
189 | switch (featureID) | ||
190 | { | ||
191 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
192 | setClassifier((EClassifier)newValue); | ||
193 | return; | ||
194 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
195 | setFeature((ENamedElement)newValue); | ||
196 | return; | ||
197 | } | ||
198 | super.eSet(featureID, newValue); | ||
199 | } | ||
200 | |||
201 | /** | ||
202 | * <!-- begin-user-doc --> | ||
203 | * <!-- end-user-doc --> | ||
204 | * @generated | ||
205 | */ | ||
206 | @Override | ||
207 | public void eUnset(int featureID) | ||
208 | { | ||
209 | switch (featureID) | ||
210 | { | ||
211 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
212 | setClassifier((EClassifier)null); | ||
213 | return; | ||
214 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
215 | setFeature((ENamedElement)null); | ||
216 | return; | ||
217 | } | ||
218 | super.eUnset(featureID); | ||
219 | } | ||
220 | |||
221 | /** | ||
222 | * <!-- begin-user-doc --> | ||
223 | * <!-- end-user-doc --> | ||
224 | * @generated | ||
225 | */ | ||
226 | @Override | ||
227 | public boolean eIsSet(int featureID) | ||
228 | { | ||
229 | switch (featureID) | ||
230 | { | ||
231 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__CLASSIFIER: | ||
232 | return classifier != null; | ||
233 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT__FEATURE: | ||
234 | return feature != null; | ||
235 | } | ||
236 | return super.eIsSet(featureID); | ||
237 | } | ||
238 | |||
239 | } //MetamodelElementImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java new file mode 100644 index 00000000..48a2cef3 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelEntryImpl.java | |||
@@ -0,0 +1,174 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.EPackage; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Metamodel Entry</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelEntryImpl#getPackage <em>Package</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class MetamodelEntryImpl extends MinimalEObjectImpl.Container implements MetamodelEntry | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getPackage() <em>Package</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getPackage() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected EPackage package_; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected MetamodelEntryImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return ApplicationConfigurationPackage.Literals.METAMODEL_ENTRY; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | public EPackage getPackage() | ||
70 | { | ||
71 | if (package_ != null && package_.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldPackage = (InternalEObject)package_; | ||
74 | package_ = (EPackage)eResolveProxy(oldPackage); | ||
75 | if (package_ != oldPackage) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); | ||
79 | } | ||
80 | } | ||
81 | return package_; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public EPackage basicGetPackage() | ||
90 | { | ||
91 | return package_; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public void setPackage(EPackage newPackage) | ||
100 | { | ||
101 | EPackage oldPackage = package_; | ||
102 | package_ = newPackage; | ||
103 | if (eNotificationRequired()) | ||
104 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE, oldPackage, package_)); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
114 | { | ||
115 | switch (featureID) | ||
116 | { | ||
117 | case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: | ||
118 | if (resolve) return getPackage(); | ||
119 | return basicGetPackage(); | ||
120 | } | ||
121 | return super.eGet(featureID, resolve, coreType); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public void eSet(int featureID, Object newValue) | ||
131 | { | ||
132 | switch (featureID) | ||
133 | { | ||
134 | case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: | ||
135 | setPackage((EPackage)newValue); | ||
136 | return; | ||
137 | } | ||
138 | super.eSet(featureID, newValue); | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void eUnset(int featureID) | ||
148 | { | ||
149 | switch (featureID) | ||
150 | { | ||
151 | case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: | ||
152 | setPackage((EPackage)null); | ||
153 | return; | ||
154 | } | ||
155 | super.eUnset(featureID); | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public boolean eIsSet(int featureID) | ||
165 | { | ||
166 | switch (featureID) | ||
167 | { | ||
168 | case ApplicationConfigurationPackage.METAMODEL_ENTRY__PACKAGE: | ||
169 | return package_ != null; | ||
170 | } | ||
171 | return super.eIsSet(featureID); | ||
172 | } | ||
173 | |||
174 | } //MetamodelEntryImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java new file mode 100644 index 00000000..40b6adc4 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelImpl.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel; | ||
8 | |||
9 | import org.eclipse.emf.ecore.EClass; | ||
10 | |||
11 | import org.eclipse.emf.ecore.impl.MinimalEObjectImpl; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * An implementation of the model object '<em><b>Metamodel</b></em>'. | ||
16 | * <!-- end-user-doc --> | ||
17 | * | ||
18 | * @generated | ||
19 | */ | ||
20 | public class MetamodelImpl extends MinimalEObjectImpl.Container implements Metamodel | ||
21 | { | ||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * <!-- end-user-doc --> | ||
25 | * @generated | ||
26 | */ | ||
27 | protected MetamodelImpl() | ||
28 | { | ||
29 | super(); | ||
30 | } | ||
31 | |||
32 | /** | ||
33 | * <!-- begin-user-doc --> | ||
34 | * <!-- end-user-doc --> | ||
35 | * @generated | ||
36 | */ | ||
37 | @Override | ||
38 | protected EClass eStaticClass() | ||
39 | { | ||
40 | return ApplicationConfigurationPackage.Literals.METAMODEL; | ||
41 | } | ||
42 | |||
43 | } //MetamodelImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java new file mode 100644 index 00000000..ea7bb0f3 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelReferenceImpl.java | |||
@@ -0,0 +1,173 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | ||
11 | |||
12 | import org.eclipse.emf.ecore.EClass; | ||
13 | import org.eclipse.emf.ecore.InternalEObject; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Metamodel Reference</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelReferenceImpl#getReferred <em>Referred</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class MetamodelReferenceImpl extends MetamodelImpl implements MetamodelReference | ||
31 | { | ||
32 | /** | ||
33 | * The cached value of the '{@link #getReferred() <em>Referred</em>}' reference. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getReferred() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected MetamodelDeclaration referred; | ||
41 | |||
42 | /** | ||
43 | * <!-- begin-user-doc --> | ||
44 | * <!-- end-user-doc --> | ||
45 | * @generated | ||
46 | */ | ||
47 | protected MetamodelReferenceImpl() | ||
48 | { | ||
49 | super(); | ||
50 | } | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | @Override | ||
58 | protected EClass eStaticClass() | ||
59 | { | ||
60 | return ApplicationConfigurationPackage.Literals.METAMODEL_REFERENCE; | ||
61 | } | ||
62 | |||
63 | /** | ||
64 | * <!-- begin-user-doc --> | ||
65 | * <!-- end-user-doc --> | ||
66 | * @generated | ||
67 | */ | ||
68 | public MetamodelDeclaration getReferred() | ||
69 | { | ||
70 | if (referred != null && referred.eIsProxy()) | ||
71 | { | ||
72 | InternalEObject oldReferred = (InternalEObject)referred; | ||
73 | referred = (MetamodelDeclaration)eResolveProxy(oldReferred); | ||
74 | if (referred != oldReferred) | ||
75 | { | ||
76 | if (eNotificationRequired()) | ||
77 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED, oldReferred, referred)); | ||
78 | } | ||
79 | } | ||
80 | return referred; | ||
81 | } | ||
82 | |||
83 | /** | ||
84 | * <!-- begin-user-doc --> | ||
85 | * <!-- end-user-doc --> | ||
86 | * @generated | ||
87 | */ | ||
88 | public MetamodelDeclaration basicGetReferred() | ||
89 | { | ||
90 | return referred; | ||
91 | } | ||
92 | |||
93 | /** | ||
94 | * <!-- begin-user-doc --> | ||
95 | * <!-- end-user-doc --> | ||
96 | * @generated | ||
97 | */ | ||
98 | public void setReferred(MetamodelDeclaration newReferred) | ||
99 | { | ||
100 | MetamodelDeclaration oldReferred = referred; | ||
101 | referred = newReferred; | ||
102 | if (eNotificationRequired()) | ||
103 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED, oldReferred, referred)); | ||
104 | } | ||
105 | |||
106 | /** | ||
107 | * <!-- begin-user-doc --> | ||
108 | * <!-- end-user-doc --> | ||
109 | * @generated | ||
110 | */ | ||
111 | @Override | ||
112 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
113 | { | ||
114 | switch (featureID) | ||
115 | { | ||
116 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: | ||
117 | if (resolve) return getReferred(); | ||
118 | return basicGetReferred(); | ||
119 | } | ||
120 | return super.eGet(featureID, resolve, coreType); | ||
121 | } | ||
122 | |||
123 | /** | ||
124 | * <!-- begin-user-doc --> | ||
125 | * <!-- end-user-doc --> | ||
126 | * @generated | ||
127 | */ | ||
128 | @Override | ||
129 | public void eSet(int featureID, Object newValue) | ||
130 | { | ||
131 | switch (featureID) | ||
132 | { | ||
133 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: | ||
134 | setReferred((MetamodelDeclaration)newValue); | ||
135 | return; | ||
136 | } | ||
137 | super.eSet(featureID, newValue); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * <!-- begin-user-doc --> | ||
142 | * <!-- end-user-doc --> | ||
143 | * @generated | ||
144 | */ | ||
145 | @Override | ||
146 | public void eUnset(int featureID) | ||
147 | { | ||
148 | switch (featureID) | ||
149 | { | ||
150 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: | ||
151 | setReferred((MetamodelDeclaration)null); | ||
152 | return; | ||
153 | } | ||
154 | super.eUnset(featureID); | ||
155 | } | ||
156 | |||
157 | /** | ||
158 | * <!-- begin-user-doc --> | ||
159 | * <!-- end-user-doc --> | ||
160 | * @generated | ||
161 | */ | ||
162 | @Override | ||
163 | public boolean eIsSet(int featureID) | ||
164 | { | ||
165 | switch (featureID) | ||
166 | { | ||
167 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE__REFERRED: | ||
168 | return referred != null; | ||
169 | } | ||
170 | return super.eIsSet(featureID); | ||
171 | } | ||
172 | |||
173 | } //MetamodelReferenceImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java new file mode 100644 index 00000000..36a86f81 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/MetamodelSpecificationImpl.java | |||
@@ -0,0 +1,166 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; | ||
9 | |||
10 | import java.util.Collection; | ||
11 | |||
12 | import org.eclipse.emf.common.notify.NotificationChain; | ||
13 | |||
14 | import org.eclipse.emf.common.util.EList; | ||
15 | |||
16 | import org.eclipse.emf.ecore.EClass; | ||
17 | import org.eclipse.emf.ecore.InternalEObject; | ||
18 | |||
19 | import org.eclipse.emf.ecore.util.EObjectContainmentEList; | ||
20 | import org.eclipse.emf.ecore.util.InternalEList; | ||
21 | |||
22 | /** | ||
23 | * <!-- begin-user-doc --> | ||
24 | * An implementation of the model object '<em><b>Metamodel Specification</b></em>'. | ||
25 | * <!-- end-user-doc --> | ||
26 | * <p> | ||
27 | * The following features are implemented: | ||
28 | * </p> | ||
29 | * <ul> | ||
30 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.MetamodelSpecificationImpl#getEntries <em>Entries</em>}</li> | ||
31 | * </ul> | ||
32 | * | ||
33 | * @generated | ||
34 | */ | ||
35 | public class MetamodelSpecificationImpl extends MetamodelImpl implements MetamodelSpecification | ||
36 | { | ||
37 | /** | ||
38 | * The cached value of the '{@link #getEntries() <em>Entries</em>}' containment reference list. | ||
39 | * <!-- begin-user-doc --> | ||
40 | * <!-- end-user-doc --> | ||
41 | * @see #getEntries() | ||
42 | * @generated | ||
43 | * @ordered | ||
44 | */ | ||
45 | protected EList<MetamodelEntry> entries; | ||
46 | |||
47 | /** | ||
48 | * <!-- begin-user-doc --> | ||
49 | * <!-- end-user-doc --> | ||
50 | * @generated | ||
51 | */ | ||
52 | protected MetamodelSpecificationImpl() | ||
53 | { | ||
54 | super(); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * <!-- begin-user-doc --> | ||
59 | * <!-- end-user-doc --> | ||
60 | * @generated | ||
61 | */ | ||
62 | @Override | ||
63 | protected EClass eStaticClass() | ||
64 | { | ||
65 | return ApplicationConfigurationPackage.Literals.METAMODEL_SPECIFICATION; | ||
66 | } | ||
67 | |||
68 | /** | ||
69 | * <!-- begin-user-doc --> | ||
70 | * <!-- end-user-doc --> | ||
71 | * @generated | ||
72 | */ | ||
73 | public EList<MetamodelEntry> getEntries() | ||
74 | { | ||
75 | if (entries == null) | ||
76 | { | ||
77 | entries = new EObjectContainmentEList<MetamodelEntry>(MetamodelEntry.class, this, ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES); | ||
78 | } | ||
79 | return entries; | ||
80 | } | ||
81 | |||
82 | /** | ||
83 | * <!-- begin-user-doc --> | ||
84 | * <!-- end-user-doc --> | ||
85 | * @generated | ||
86 | */ | ||
87 | @Override | ||
88 | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) | ||
89 | { | ||
90 | switch (featureID) | ||
91 | { | ||
92 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: | ||
93 | return ((InternalEList<?>)getEntries()).basicRemove(otherEnd, msgs); | ||
94 | } | ||
95 | return super.eInverseRemove(otherEnd, featureID, msgs); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
105 | { | ||
106 | switch (featureID) | ||
107 | { | ||
108 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: | ||
109 | return getEntries(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @SuppressWarnings("unchecked") | ||
120 | @Override | ||
121 | public void eSet(int featureID, Object newValue) | ||
122 | { | ||
123 | switch (featureID) | ||
124 | { | ||
125 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: | ||
126 | getEntries().clear(); | ||
127 | getEntries().addAll((Collection<? extends MetamodelEntry>)newValue); | ||
128 | return; | ||
129 | } | ||
130 | super.eSet(featureID, newValue); | ||
131 | } | ||
132 | |||
133 | /** | ||
134 | * <!-- begin-user-doc --> | ||
135 | * <!-- end-user-doc --> | ||
136 | * @generated | ||
137 | */ | ||
138 | @Override | ||
139 | public void eUnset(int featureID) | ||
140 | { | ||
141 | switch (featureID) | ||
142 | { | ||
143 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: | ||
144 | getEntries().clear(); | ||
145 | return; | ||
146 | } | ||
147 | super.eUnset(featureID); | ||
148 | } | ||
149 | |||
150 | /** | ||
151 | * <!-- begin-user-doc --> | ||
152 | * <!-- end-user-doc --> | ||
153 | * @generated | ||
154 | */ | ||
155 | @Override | ||
156 | public boolean eIsSet(int featureID) | ||
157 | { | ||
158 | switch (featureID) | ||
159 | { | ||
160 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION__ENTRIES: | ||
161 | return entries != null && !entries.isEmpty(); | ||
162 | } | ||
163 | return super.eIsSet(featureID); | ||
164 | } | ||
165 | |||
166 | } //MetamodelSpecificationImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java new file mode 100644 index 00000000..69f12f97 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ViatraImportImpl.java | |||
@@ -0,0 +1,174 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; | ||
8 | |||
9 | import org.eclipse.emf.common.notify.Notification; | ||
10 | |||
11 | import org.eclipse.emf.ecore.EClass; | ||
12 | import org.eclipse.emf.ecore.InternalEObject; | ||
13 | |||
14 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
15 | |||
16 | import org.eclipse.viatra.query.patternlanguage.patternLanguage.PatternModel; | ||
17 | |||
18 | /** | ||
19 | * <!-- begin-user-doc --> | ||
20 | * An implementation of the model object '<em><b>Viatra Import</b></em>'. | ||
21 | * <!-- end-user-doc --> | ||
22 | * <p> | ||
23 | * The following features are implemented: | ||
24 | * </p> | ||
25 | * <ul> | ||
26 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ViatraImportImpl#getImportedViatra <em>Imported Viatra</em>}</li> | ||
27 | * </ul> | ||
28 | * | ||
29 | * @generated | ||
30 | */ | ||
31 | public class ViatraImportImpl extends ImportImpl implements ViatraImport | ||
32 | { | ||
33 | /** | ||
34 | * The cached value of the '{@link #getImportedViatra() <em>Imported Viatra</em>}' reference. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @see #getImportedViatra() | ||
38 | * @generated | ||
39 | * @ordered | ||
40 | */ | ||
41 | protected PatternModel importedViatra; | ||
42 | |||
43 | /** | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @generated | ||
47 | */ | ||
48 | protected ViatraImportImpl() | ||
49 | { | ||
50 | super(); | ||
51 | } | ||
52 | |||
53 | /** | ||
54 | * <!-- begin-user-doc --> | ||
55 | * <!-- end-user-doc --> | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected EClass eStaticClass() | ||
60 | { | ||
61 | return ApplicationConfigurationPackage.Literals.VIATRA_IMPORT; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * <!-- begin-user-doc --> | ||
66 | * <!-- end-user-doc --> | ||
67 | * @generated | ||
68 | */ | ||
69 | public PatternModel getImportedViatra() | ||
70 | { | ||
71 | if (importedViatra != null && importedViatra.eIsProxy()) | ||
72 | { | ||
73 | InternalEObject oldImportedViatra = (InternalEObject)importedViatra; | ||
74 | importedViatra = (PatternModel)eResolveProxy(oldImportedViatra); | ||
75 | if (importedViatra != oldImportedViatra) | ||
76 | { | ||
77 | if (eNotificationRequired()) | ||
78 | eNotify(new ENotificationImpl(this, Notification.RESOLVE, ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA, oldImportedViatra, importedViatra)); | ||
79 | } | ||
80 | } | ||
81 | return importedViatra; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | public PatternModel basicGetImportedViatra() | ||
90 | { | ||
91 | return importedViatra; | ||
92 | } | ||
93 | |||
94 | /** | ||
95 | * <!-- begin-user-doc --> | ||
96 | * <!-- end-user-doc --> | ||
97 | * @generated | ||
98 | */ | ||
99 | public void setImportedViatra(PatternModel newImportedViatra) | ||
100 | { | ||
101 | PatternModel oldImportedViatra = importedViatra; | ||
102 | importedViatra = newImportedViatra; | ||
103 | if (eNotificationRequired()) | ||
104 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA, oldImportedViatra, importedViatra)); | ||
105 | } | ||
106 | |||
107 | /** | ||
108 | * <!-- begin-user-doc --> | ||
109 | * <!-- end-user-doc --> | ||
110 | * @generated | ||
111 | */ | ||
112 | @Override | ||
113 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
114 | { | ||
115 | switch (featureID) | ||
116 | { | ||
117 | case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: | ||
118 | if (resolve) return getImportedViatra(); | ||
119 | return basicGetImportedViatra(); | ||
120 | } | ||
121 | return super.eGet(featureID, resolve, coreType); | ||
122 | } | ||
123 | |||
124 | /** | ||
125 | * <!-- begin-user-doc --> | ||
126 | * <!-- end-user-doc --> | ||
127 | * @generated | ||
128 | */ | ||
129 | @Override | ||
130 | public void eSet(int featureID, Object newValue) | ||
131 | { | ||
132 | switch (featureID) | ||
133 | { | ||
134 | case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: | ||
135 | setImportedViatra((PatternModel)newValue); | ||
136 | return; | ||
137 | } | ||
138 | super.eSet(featureID, newValue); | ||
139 | } | ||
140 | |||
141 | /** | ||
142 | * <!-- begin-user-doc --> | ||
143 | * <!-- end-user-doc --> | ||
144 | * @generated | ||
145 | */ | ||
146 | @Override | ||
147 | public void eUnset(int featureID) | ||
148 | { | ||
149 | switch (featureID) | ||
150 | { | ||
151 | case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: | ||
152 | setImportedViatra((PatternModel)null); | ||
153 | return; | ||
154 | } | ||
155 | super.eUnset(featureID); | ||
156 | } | ||
157 | |||
158 | /** | ||
159 | * <!-- begin-user-doc --> | ||
160 | * <!-- end-user-doc --> | ||
161 | * @generated | ||
162 | */ | ||
163 | @Override | ||
164 | public boolean eIsSet(int featureID) | ||
165 | { | ||
166 | switch (featureID) | ||
167 | { | ||
168 | case ApplicationConfigurationPackage.VIATRA_IMPORT__IMPORTED_VIATRA: | ||
169 | return importedViatra != null; | ||
170 | } | ||
171 | return super.eIsSet(featureID); | ||
172 | } | ||
173 | |||
174 | } //ViatraImportImpl | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java new file mode 100644 index 00000000..67d9c396 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationAdapterFactory.java | |||
@@ -0,0 +1,373 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*; | ||
7 | |||
8 | import org.eclipse.emf.common.notify.Adapter; | ||
9 | import org.eclipse.emf.common.notify.Notifier; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EObject; | ||
14 | |||
15 | /** | ||
16 | * <!-- begin-user-doc --> | ||
17 | * The <b>Adapter Factory</b> for the model. | ||
18 | * It provides an adapter <code>createXXX</code> method for each class of the model. | ||
19 | * <!-- end-user-doc --> | ||
20 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage | ||
21 | * @generated | ||
22 | */ | ||
23 | public class ApplicationConfigurationAdapterFactory extends AdapterFactoryImpl | ||
24 | { | ||
25 | /** | ||
26 | * The cached model package. | ||
27 | * <!-- begin-user-doc --> | ||
28 | * <!-- end-user-doc --> | ||
29 | * @generated | ||
30 | */ | ||
31 | protected static ApplicationConfigurationPackage modelPackage; | ||
32 | |||
33 | /** | ||
34 | * Creates an instance of the adapter factory. | ||
35 | * <!-- begin-user-doc --> | ||
36 | * <!-- end-user-doc --> | ||
37 | * @generated | ||
38 | */ | ||
39 | public ApplicationConfigurationAdapterFactory() | ||
40 | { | ||
41 | if (modelPackage == null) | ||
42 | { | ||
43 | modelPackage = ApplicationConfigurationPackage.eINSTANCE; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | /** | ||
48 | * Returns whether this factory is applicable for the type of the object. | ||
49 | * <!-- begin-user-doc --> | ||
50 | * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. | ||
51 | * <!-- end-user-doc --> | ||
52 | * @return whether this factory is applicable for the type of the object. | ||
53 | * @generated | ||
54 | */ | ||
55 | @Override | ||
56 | public boolean isFactoryForType(Object object) | ||
57 | { | ||
58 | if (object == modelPackage) | ||
59 | { | ||
60 | return true; | ||
61 | } | ||
62 | if (object instanceof EObject) | ||
63 | { | ||
64 | return ((EObject)object).eClass().getEPackage() == modelPackage; | ||
65 | } | ||
66 | return false; | ||
67 | } | ||
68 | |||
69 | /** | ||
70 | * The switch that delegates to the <code>createXXX</code> methods. | ||
71 | * <!-- begin-user-doc --> | ||
72 | * <!-- end-user-doc --> | ||
73 | * @generated | ||
74 | */ | ||
75 | protected ApplicationConfigurationSwitch<Adapter> modelSwitch = | ||
76 | new ApplicationConfigurationSwitch<Adapter>() | ||
77 | { | ||
78 | @Override | ||
79 | public Adapter caseConfigurationScript(ConfigurationScript object) | ||
80 | { | ||
81 | return createConfigurationScriptAdapter(); | ||
82 | } | ||
83 | @Override | ||
84 | public Adapter caseCommand(Command object) | ||
85 | { | ||
86 | return createCommandAdapter(); | ||
87 | } | ||
88 | @Override | ||
89 | public Adapter caseDeclaration(Declaration object) | ||
90 | { | ||
91 | return createDeclarationAdapter(); | ||
92 | } | ||
93 | @Override | ||
94 | public Adapter caseImport(Import object) | ||
95 | { | ||
96 | return createImportAdapter(); | ||
97 | } | ||
98 | @Override | ||
99 | public Adapter caseEPackageImport(EPackageImport object) | ||
100 | { | ||
101 | return createEPackageImportAdapter(); | ||
102 | } | ||
103 | @Override | ||
104 | public Adapter caseViatraImport(ViatraImport object) | ||
105 | { | ||
106 | return createViatraImportAdapter(); | ||
107 | } | ||
108 | @Override | ||
109 | public Adapter caseMetamodelSpecification(MetamodelSpecification object) | ||
110 | { | ||
111 | return createMetamodelSpecificationAdapter(); | ||
112 | } | ||
113 | @Override | ||
114 | public Adapter caseMetamodelEntry(MetamodelEntry object) | ||
115 | { | ||
116 | return createMetamodelEntryAdapter(); | ||
117 | } | ||
118 | @Override | ||
119 | public Adapter caseAllPackageEntry(AllPackageEntry object) | ||
120 | { | ||
121 | return createAllPackageEntryAdapter(); | ||
122 | } | ||
123 | @Override | ||
124 | public Adapter caseMetamodelElement(MetamodelElement object) | ||
125 | { | ||
126 | return createMetamodelElementAdapter(); | ||
127 | } | ||
128 | @Override | ||
129 | public Adapter caseMetamodelDeclaration(MetamodelDeclaration object) | ||
130 | { | ||
131 | return createMetamodelDeclarationAdapter(); | ||
132 | } | ||
133 | @Override | ||
134 | public Adapter caseMetamodelReference(MetamodelReference object) | ||
135 | { | ||
136 | return createMetamodelReferenceAdapter(); | ||
137 | } | ||
138 | @Override | ||
139 | public Adapter caseMetamodel(Metamodel object) | ||
140 | { | ||
141 | return createMetamodelAdapter(); | ||
142 | } | ||
143 | @Override | ||
144 | public Adapter defaultCase(EObject object) | ||
145 | { | ||
146 | return createEObjectAdapter(); | ||
147 | } | ||
148 | }; | ||
149 | |||
150 | /** | ||
151 | * Creates an adapter for the <code>target</code>. | ||
152 | * <!-- begin-user-doc --> | ||
153 | * <!-- end-user-doc --> | ||
154 | * @param target the object to adapt. | ||
155 | * @return the adapter for the <code>target</code>. | ||
156 | * @generated | ||
157 | */ | ||
158 | @Override | ||
159 | public Adapter createAdapter(Notifier target) | ||
160 | { | ||
161 | return modelSwitch.doSwitch((EObject)target); | ||
162 | } | ||
163 | |||
164 | |||
165 | /** | ||
166 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript <em>Configuration Script</em>}'. | ||
167 | * <!-- begin-user-doc --> | ||
168 | * This default implementation returns null so that we can easily ignore cases; | ||
169 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
170 | * <!-- end-user-doc --> | ||
171 | * @return the new adapter. | ||
172 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript | ||
173 | * @generated | ||
174 | */ | ||
175 | public Adapter createConfigurationScriptAdapter() | ||
176 | { | ||
177 | return null; | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command <em>Command</em>}'. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * This default implementation returns null so that we can easily ignore cases; | ||
184 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
185 | * <!-- end-user-doc --> | ||
186 | * @return the new adapter. | ||
187 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Command | ||
188 | * @generated | ||
189 | */ | ||
190 | public Adapter createCommandAdapter() | ||
191 | { | ||
192 | return null; | ||
193 | } | ||
194 | |||
195 | /** | ||
196 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration <em>Declaration</em>}'. | ||
197 | * <!-- begin-user-doc --> | ||
198 | * This default implementation returns null so that we can easily ignore cases; | ||
199 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
200 | * <!-- end-user-doc --> | ||
201 | * @return the new adapter. | ||
202 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Declaration | ||
203 | * @generated | ||
204 | */ | ||
205 | public Adapter createDeclarationAdapter() | ||
206 | { | ||
207 | return null; | ||
208 | } | ||
209 | |||
210 | /** | ||
211 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import <em>Import</em>}'. | ||
212 | * <!-- begin-user-doc --> | ||
213 | * This default implementation returns null so that we can easily ignore cases; | ||
214 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
215 | * <!-- end-user-doc --> | ||
216 | * @return the new adapter. | ||
217 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Import | ||
218 | * @generated | ||
219 | */ | ||
220 | public Adapter createImportAdapter() | ||
221 | { | ||
222 | return null; | ||
223 | } | ||
224 | |||
225 | /** | ||
226 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport <em>EPackage Import</em>}'. | ||
227 | * <!-- begin-user-doc --> | ||
228 | * This default implementation returns null so that we can easily ignore cases; | ||
229 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
230 | * <!-- end-user-doc --> | ||
231 | * @return the new adapter. | ||
232 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport | ||
233 | * @generated | ||
234 | */ | ||
235 | public Adapter createEPackageImportAdapter() | ||
236 | { | ||
237 | return null; | ||
238 | } | ||
239 | |||
240 | /** | ||
241 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport <em>Viatra Import</em>}'. | ||
242 | * <!-- begin-user-doc --> | ||
243 | * This default implementation returns null so that we can easily ignore cases; | ||
244 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
245 | * <!-- end-user-doc --> | ||
246 | * @return the new adapter. | ||
247 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport | ||
248 | * @generated | ||
249 | */ | ||
250 | public Adapter createViatraImportAdapter() | ||
251 | { | ||
252 | return null; | ||
253 | } | ||
254 | |||
255 | /** | ||
256 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification <em>Metamodel Specification</em>}'. | ||
257 | * <!-- begin-user-doc --> | ||
258 | * This default implementation returns null so that we can easily ignore cases; | ||
259 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
260 | * <!-- end-user-doc --> | ||
261 | * @return the new adapter. | ||
262 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification | ||
263 | * @generated | ||
264 | */ | ||
265 | public Adapter createMetamodelSpecificationAdapter() | ||
266 | { | ||
267 | return null; | ||
268 | } | ||
269 | |||
270 | /** | ||
271 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry <em>Metamodel Entry</em>}'. | ||
272 | * <!-- begin-user-doc --> | ||
273 | * This default implementation returns null so that we can easily ignore cases; | ||
274 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
275 | * <!-- end-user-doc --> | ||
276 | * @return the new adapter. | ||
277 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry | ||
278 | * @generated | ||
279 | */ | ||
280 | public Adapter createMetamodelEntryAdapter() | ||
281 | { | ||
282 | return null; | ||
283 | } | ||
284 | |||
285 | /** | ||
286 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry <em>All Package Entry</em>}'. | ||
287 | * <!-- begin-user-doc --> | ||
288 | * This default implementation returns null so that we can easily ignore cases; | ||
289 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
290 | * <!-- end-user-doc --> | ||
291 | * @return the new adapter. | ||
292 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry | ||
293 | * @generated | ||
294 | */ | ||
295 | public Adapter createAllPackageEntryAdapter() | ||
296 | { | ||
297 | return null; | ||
298 | } | ||
299 | |||
300 | /** | ||
301 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement <em>Metamodel Element</em>}'. | ||
302 | * <!-- begin-user-doc --> | ||
303 | * This default implementation returns null so that we can easily ignore cases; | ||
304 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
305 | * <!-- end-user-doc --> | ||
306 | * @return the new adapter. | ||
307 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement | ||
308 | * @generated | ||
309 | */ | ||
310 | public Adapter createMetamodelElementAdapter() | ||
311 | { | ||
312 | return null; | ||
313 | } | ||
314 | |||
315 | /** | ||
316 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration <em>Metamodel Declaration</em>}'. | ||
317 | * <!-- begin-user-doc --> | ||
318 | * This default implementation returns null so that we can easily ignore cases; | ||
319 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
320 | * <!-- end-user-doc --> | ||
321 | * @return the new adapter. | ||
322 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration | ||
323 | * @generated | ||
324 | */ | ||
325 | public Adapter createMetamodelDeclarationAdapter() | ||
326 | { | ||
327 | return null; | ||
328 | } | ||
329 | |||
330 | /** | ||
331 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference <em>Metamodel Reference</em>}'. | ||
332 | * <!-- begin-user-doc --> | ||
333 | * This default implementation returns null so that we can easily ignore cases; | ||
334 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
335 | * <!-- end-user-doc --> | ||
336 | * @return the new adapter. | ||
337 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference | ||
338 | * @generated | ||
339 | */ | ||
340 | public Adapter createMetamodelReferenceAdapter() | ||
341 | { | ||
342 | return null; | ||
343 | } | ||
344 | |||
345 | /** | ||
346 | * Creates a new adapter for an object of class '{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel <em>Metamodel</em>}'. | ||
347 | * <!-- begin-user-doc --> | ||
348 | * This default implementation returns null so that we can easily ignore cases; | ||
349 | * it's useful to ignore a case when inheritance will catch all the cases anyway. | ||
350 | * <!-- end-user-doc --> | ||
351 | * @return the new adapter. | ||
352 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel | ||
353 | * @generated | ||
354 | */ | ||
355 | public Adapter createMetamodelAdapter() | ||
356 | { | ||
357 | return null; | ||
358 | } | ||
359 | |||
360 | /** | ||
361 | * Creates a new adapter for the default case. | ||
362 | * <!-- begin-user-doc --> | ||
363 | * This default implementation returns null. | ||
364 | * <!-- end-user-doc --> | ||
365 | * @return the new adapter. | ||
366 | * @generated | ||
367 | */ | ||
368 | public Adapter createEObjectAdapter() | ||
369 | { | ||
370 | return null; | ||
371 | } | ||
372 | |||
373 | } //ApplicationConfigurationAdapterFactory | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java new file mode 100644 index 00000000..673ffe08 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/util/ApplicationConfigurationSwitch.java | |||
@@ -0,0 +1,405 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.util; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*; | ||
7 | |||
8 | import org.eclipse.emf.ecore.EObject; | ||
9 | import org.eclipse.emf.ecore.EPackage; | ||
10 | |||
11 | import org.eclipse.emf.ecore.util.Switch; | ||
12 | |||
13 | /** | ||
14 | * <!-- begin-user-doc --> | ||
15 | * The <b>Switch</b> for the model's inheritance hierarchy. | ||
16 | * It supports the call {@link #doSwitch(EObject) doSwitch(object)} | ||
17 | * to invoke the <code>caseXXX</code> method for each class of the model, | ||
18 | * starting with the actual class of the object | ||
19 | * and proceeding up the inheritance hierarchy | ||
20 | * until a non-null result is returned, | ||
21 | * which is the result of the switch. | ||
22 | * <!-- end-user-doc --> | ||
23 | * @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage | ||
24 | * @generated | ||
25 | */ | ||
26 | public class ApplicationConfigurationSwitch<T> extends Switch<T> | ||
27 | { | ||
28 | /** | ||
29 | * The cached model package | ||
30 | * <!-- begin-user-doc --> | ||
31 | * <!-- end-user-doc --> | ||
32 | * @generated | ||
33 | */ | ||
34 | protected static ApplicationConfigurationPackage modelPackage; | ||
35 | |||
36 | /** | ||
37 | * Creates an instance of the switch. | ||
38 | * <!-- begin-user-doc --> | ||
39 | * <!-- end-user-doc --> | ||
40 | * @generated | ||
41 | */ | ||
42 | public ApplicationConfigurationSwitch() | ||
43 | { | ||
44 | if (modelPackage == null) | ||
45 | { | ||
46 | modelPackage = ApplicationConfigurationPackage.eINSTANCE; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | /** | ||
51 | * Checks whether this is a switch for the given package. | ||
52 | * <!-- begin-user-doc --> | ||
53 | * <!-- end-user-doc --> | ||
54 | * @param ePackage the package in question. | ||
55 | * @return whether this is a switch for the given package. | ||
56 | * @generated | ||
57 | */ | ||
58 | @Override | ||
59 | protected boolean isSwitchFor(EPackage ePackage) | ||
60 | { | ||
61 | return ePackage == modelPackage; | ||
62 | } | ||
63 | |||
64 | /** | ||
65 | * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. | ||
66 | * <!-- begin-user-doc --> | ||
67 | * <!-- end-user-doc --> | ||
68 | * @return the first non-null result returned by a <code>caseXXX</code> call. | ||
69 | * @generated | ||
70 | */ | ||
71 | @Override | ||
72 | protected T doSwitch(int classifierID, EObject theEObject) | ||
73 | { | ||
74 | switch (classifierID) | ||
75 | { | ||
76 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT: | ||
77 | { | ||
78 | ConfigurationScript configurationScript = (ConfigurationScript)theEObject; | ||
79 | T result = caseConfigurationScript(configurationScript); | ||
80 | if (result == null) result = defaultCase(theEObject); | ||
81 | return result; | ||
82 | } | ||
83 | case ApplicationConfigurationPackage.COMMAND: | ||
84 | { | ||
85 | Command command = (Command)theEObject; | ||
86 | T result = caseCommand(command); | ||
87 | if (result == null) result = defaultCase(theEObject); | ||
88 | return result; | ||
89 | } | ||
90 | case ApplicationConfigurationPackage.DECLARATION: | ||
91 | { | ||
92 | Declaration declaration = (Declaration)theEObject; | ||
93 | T result = caseDeclaration(declaration); | ||
94 | if (result == null) result = caseCommand(declaration); | ||
95 | if (result == null) result = defaultCase(theEObject); | ||
96 | return result; | ||
97 | } | ||
98 | case ApplicationConfigurationPackage.IMPORT: | ||
99 | { | ||
100 | Import import_ = (Import)theEObject; | ||
101 | T result = caseImport(import_); | ||
102 | if (result == null) result = defaultCase(theEObject); | ||
103 | return result; | ||
104 | } | ||
105 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT: | ||
106 | { | ||
107 | EPackageImport ePackageImport = (EPackageImport)theEObject; | ||
108 | T result = caseEPackageImport(ePackageImport); | ||
109 | if (result == null) result = caseImport(ePackageImport); | ||
110 | if (result == null) result = defaultCase(theEObject); | ||
111 | return result; | ||
112 | } | ||
113 | case ApplicationConfigurationPackage.VIATRA_IMPORT: | ||
114 | { | ||
115 | ViatraImport viatraImport = (ViatraImport)theEObject; | ||
116 | T result = caseViatraImport(viatraImport); | ||
117 | if (result == null) result = caseImport(viatraImport); | ||
118 | if (result == null) result = defaultCase(theEObject); | ||
119 | return result; | ||
120 | } | ||
121 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION: | ||
122 | { | ||
123 | MetamodelSpecification metamodelSpecification = (MetamodelSpecification)theEObject; | ||
124 | T result = caseMetamodelSpecification(metamodelSpecification); | ||
125 | if (result == null) result = caseMetamodel(metamodelSpecification); | ||
126 | if (result == null) result = defaultCase(theEObject); | ||
127 | return result; | ||
128 | } | ||
129 | case ApplicationConfigurationPackage.METAMODEL_ENTRY: | ||
130 | { | ||
131 | MetamodelEntry metamodelEntry = (MetamodelEntry)theEObject; | ||
132 | T result = caseMetamodelEntry(metamodelEntry); | ||
133 | if (result == null) result = defaultCase(theEObject); | ||
134 | return result; | ||
135 | } | ||
136 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY: | ||
137 | { | ||
138 | AllPackageEntry allPackageEntry = (AllPackageEntry)theEObject; | ||
139 | T result = caseAllPackageEntry(allPackageEntry); | ||
140 | if (result == null) result = caseMetamodelEntry(allPackageEntry); | ||
141 | if (result == null) result = defaultCase(theEObject); | ||
142 | return result; | ||
143 | } | ||
144 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT: | ||
145 | { | ||
146 | MetamodelElement metamodelElement = (MetamodelElement)theEObject; | ||
147 | T result = caseMetamodelElement(metamodelElement); | ||
148 | if (result == null) result = caseMetamodelEntry(metamodelElement); | ||
149 | if (result == null) result = defaultCase(theEObject); | ||
150 | return result; | ||
151 | } | ||
152 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION: | ||
153 | { | ||
154 | MetamodelDeclaration metamodelDeclaration = (MetamodelDeclaration)theEObject; | ||
155 | T result = caseMetamodelDeclaration(metamodelDeclaration); | ||
156 | if (result == null) result = caseDeclaration(metamodelDeclaration); | ||
157 | if (result == null) result = caseCommand(metamodelDeclaration); | ||
158 | if (result == null) result = defaultCase(theEObject); | ||
159 | return result; | ||
160 | } | ||
161 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE: | ||
162 | { | ||
163 | MetamodelReference metamodelReference = (MetamodelReference)theEObject; | ||
164 | T result = caseMetamodelReference(metamodelReference); | ||
165 | if (result == null) result = caseMetamodel(metamodelReference); | ||
166 | if (result == null) result = defaultCase(theEObject); | ||
167 | return result; | ||
168 | } | ||
169 | case ApplicationConfigurationPackage.METAMODEL: | ||
170 | { | ||
171 | Metamodel metamodel = (Metamodel)theEObject; | ||
172 | T result = caseMetamodel(metamodel); | ||
173 | if (result == null) result = defaultCase(theEObject); | ||
174 | return result; | ||
175 | } | ||
176 | default: return defaultCase(theEObject); | ||
177 | } | ||
178 | } | ||
179 | |||
180 | /** | ||
181 | * Returns the result of interpreting the object as an instance of '<em>Configuration Script</em>'. | ||
182 | * <!-- begin-user-doc --> | ||
183 | * This implementation returns null; | ||
184 | * returning a non-null result will terminate the switch. | ||
185 | * <!-- end-user-doc --> | ||
186 | * @param object the target of the switch. | ||
187 | * @return the result of interpreting the object as an instance of '<em>Configuration Script</em>'. | ||
188 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
189 | * @generated | ||
190 | */ | ||
191 | public T caseConfigurationScript(ConfigurationScript object) | ||
192 | { | ||
193 | return null; | ||
194 | } | ||
195 | |||
196 | /** | ||
197 | * Returns the result of interpreting the object as an instance of '<em>Command</em>'. | ||
198 | * <!-- begin-user-doc --> | ||
199 | * This implementation returns null; | ||
200 | * returning a non-null result will terminate the switch. | ||
201 | * <!-- end-user-doc --> | ||
202 | * @param object the target of the switch. | ||
203 | * @return the result of interpreting the object as an instance of '<em>Command</em>'. | ||
204 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
205 | * @generated | ||
206 | */ | ||
207 | public T caseCommand(Command object) | ||
208 | { | ||
209 | return null; | ||
210 | } | ||
211 | |||
212 | /** | ||
213 | * Returns the result of interpreting the object as an instance of '<em>Declaration</em>'. | ||
214 | * <!-- begin-user-doc --> | ||
215 | * This implementation returns null; | ||
216 | * returning a non-null result will terminate the switch. | ||
217 | * <!-- end-user-doc --> | ||
218 | * @param object the target of the switch. | ||
219 | * @return the result of interpreting the object as an instance of '<em>Declaration</em>'. | ||
220 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
221 | * @generated | ||
222 | */ | ||
223 | public T caseDeclaration(Declaration object) | ||
224 | { | ||
225 | return null; | ||
226 | } | ||
227 | |||
228 | /** | ||
229 | * Returns the result of interpreting the object as an instance of '<em>Import</em>'. | ||
230 | * <!-- begin-user-doc --> | ||
231 | * This implementation returns null; | ||
232 | * returning a non-null result will terminate the switch. | ||
233 | * <!-- end-user-doc --> | ||
234 | * @param object the target of the switch. | ||
235 | * @return the result of interpreting the object as an instance of '<em>Import</em>'. | ||
236 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
237 | * @generated | ||
238 | */ | ||
239 | public T caseImport(Import object) | ||
240 | { | ||
241 | return null; | ||
242 | } | ||
243 | |||
244 | /** | ||
245 | * Returns the result of interpreting the object as an instance of '<em>EPackage Import</em>'. | ||
246 | * <!-- begin-user-doc --> | ||
247 | * This implementation returns null; | ||
248 | * returning a non-null result will terminate the switch. | ||
249 | * <!-- end-user-doc --> | ||
250 | * @param object the target of the switch. | ||
251 | * @return the result of interpreting the object as an instance of '<em>EPackage Import</em>'. | ||
252 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
253 | * @generated | ||
254 | */ | ||
255 | public T caseEPackageImport(EPackageImport object) | ||
256 | { | ||
257 | return null; | ||
258 | } | ||
259 | |||
260 | /** | ||
261 | * Returns the result of interpreting the object as an instance of '<em>Viatra Import</em>'. | ||
262 | * <!-- begin-user-doc --> | ||
263 | * This implementation returns null; | ||
264 | * returning a non-null result will terminate the switch. | ||
265 | * <!-- end-user-doc --> | ||
266 | * @param object the target of the switch. | ||
267 | * @return the result of interpreting the object as an instance of '<em>Viatra Import</em>'. | ||
268 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
269 | * @generated | ||
270 | */ | ||
271 | public T caseViatraImport(ViatraImport object) | ||
272 | { | ||
273 | return null; | ||
274 | } | ||
275 | |||
276 | /** | ||
277 | * Returns the result of interpreting the object as an instance of '<em>Metamodel Specification</em>'. | ||
278 | * <!-- begin-user-doc --> | ||
279 | * This implementation returns null; | ||
280 | * returning a non-null result will terminate the switch. | ||
281 | * <!-- end-user-doc --> | ||
282 | * @param object the target of the switch. | ||
283 | * @return the result of interpreting the object as an instance of '<em>Metamodel Specification</em>'. | ||
284 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
285 | * @generated | ||
286 | */ | ||
287 | public T caseMetamodelSpecification(MetamodelSpecification object) | ||
288 | { | ||
289 | return null; | ||
290 | } | ||
291 | |||
292 | /** | ||
293 | * Returns the result of interpreting the object as an instance of '<em>Metamodel Entry</em>'. | ||
294 | * <!-- begin-user-doc --> | ||
295 | * This implementation returns null; | ||
296 | * returning a non-null result will terminate the switch. | ||
297 | * <!-- end-user-doc --> | ||
298 | * @param object the target of the switch. | ||
299 | * @return the result of interpreting the object as an instance of '<em>Metamodel Entry</em>'. | ||
300 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
301 | * @generated | ||
302 | */ | ||
303 | public T caseMetamodelEntry(MetamodelEntry object) | ||
304 | { | ||
305 | return null; | ||
306 | } | ||
307 | |||
308 | /** | ||
309 | * Returns the result of interpreting the object as an instance of '<em>All Package Entry</em>'. | ||
310 | * <!-- begin-user-doc --> | ||
311 | * This implementation returns null; | ||
312 | * returning a non-null result will terminate the switch. | ||
313 | * <!-- end-user-doc --> | ||
314 | * @param object the target of the switch. | ||
315 | * @return the result of interpreting the object as an instance of '<em>All Package Entry</em>'. | ||
316 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
317 | * @generated | ||
318 | */ | ||
319 | public T caseAllPackageEntry(AllPackageEntry object) | ||
320 | { | ||
321 | return null; | ||
322 | } | ||
323 | |||
324 | /** | ||
325 | * Returns the result of interpreting the object as an instance of '<em>Metamodel Element</em>'. | ||
326 | * <!-- begin-user-doc --> | ||
327 | * This implementation returns null; | ||
328 | * returning a non-null result will terminate the switch. | ||
329 | * <!-- end-user-doc --> | ||
330 | * @param object the target of the switch. | ||
331 | * @return the result of interpreting the object as an instance of '<em>Metamodel Element</em>'. | ||
332 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
333 | * @generated | ||
334 | */ | ||
335 | public T caseMetamodelElement(MetamodelElement object) | ||
336 | { | ||
337 | return null; | ||
338 | } | ||
339 | |||
340 | /** | ||
341 | * Returns the result of interpreting the object as an instance of '<em>Metamodel Declaration</em>'. | ||
342 | * <!-- begin-user-doc --> | ||
343 | * This implementation returns null; | ||
344 | * returning a non-null result will terminate the switch. | ||
345 | * <!-- end-user-doc --> | ||
346 | * @param object the target of the switch. | ||
347 | * @return the result of interpreting the object as an instance of '<em>Metamodel Declaration</em>'. | ||
348 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
349 | * @generated | ||
350 | */ | ||
351 | public T caseMetamodelDeclaration(MetamodelDeclaration object) | ||
352 | { | ||
353 | return null; | ||
354 | } | ||
355 | |||
356 | /** | ||
357 | * Returns the result of interpreting the object as an instance of '<em>Metamodel Reference</em>'. | ||
358 | * <!-- begin-user-doc --> | ||
359 | * This implementation returns null; | ||
360 | * returning a non-null result will terminate the switch. | ||
361 | * <!-- end-user-doc --> | ||
362 | * @param object the target of the switch. | ||
363 | * @return the result of interpreting the object as an instance of '<em>Metamodel Reference</em>'. | ||
364 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
365 | * @generated | ||
366 | */ | ||
367 | public T caseMetamodelReference(MetamodelReference object) | ||
368 | { | ||
369 | return null; | ||
370 | } | ||
371 | |||
372 | /** | ||
373 | * Returns the result of interpreting the object as an instance of '<em>Metamodel</em>'. | ||
374 | * <!-- begin-user-doc --> | ||
375 | * This implementation returns null; | ||
376 | * returning a non-null result will terminate the switch. | ||
377 | * <!-- end-user-doc --> | ||
378 | * @param object the target of the switch. | ||
379 | * @return the result of interpreting the object as an instance of '<em>Metamodel</em>'. | ||
380 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | ||
381 | * @generated | ||
382 | */ | ||
383 | public T caseMetamodel(Metamodel object) | ||
384 | { | ||
385 | return null; | ||
386 | } | ||
387 | |||
388 | /** | ||
389 | * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
390 | * <!-- begin-user-doc --> | ||
391 | * This implementation returns null; | ||
392 | * returning a non-null result will terminate the switch, but this is the last case anyway. | ||
393 | * <!-- end-user-doc --> | ||
394 | * @param object the target of the switch. | ||
395 | * @return the result of interpreting the object as an instance of '<em>EObject</em>'. | ||
396 | * @see #doSwitch(org.eclipse.emf.ecore.EObject) | ||
397 | * @generated | ||
398 | */ | ||
399 | @Override | ||
400 | public T defaultCase(EObject object) | ||
401 | { | ||
402 | return null; | ||
403 | } | ||
404 | |||
405 | } //ApplicationConfigurationSwitch | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java new file mode 100644 index 00000000..5af7ceb7 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationAntlrTokenFileProvider.java | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr; | ||
5 | |||
6 | import java.io.InputStream; | ||
7 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
8 | |||
9 | public class ApplicationConfigurationAntlrTokenFileProvider implements IAntlrTokenFileProvider { | ||
10 | |||
11 | @Override | ||
12 | public InputStream getAntlrTokenFile() { | ||
13 | ClassLoader classLoader = getClass().getClassLoader(); | ||
14 | return classLoader.getResourceAsStream("hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens"); | ||
15 | } | ||
16 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java new file mode 100644 index 00000000..9d916b49 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/ApplicationConfigurationParser.java | |||
@@ -0,0 +1,40 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal.InternalApplicationConfigurationParser; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
9 | import org.eclipse.xtext.parser.antlr.AbstractAntlrParser; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
11 | |||
12 | public class ApplicationConfigurationParser extends AbstractAntlrParser { | ||
13 | |||
14 | @Inject | ||
15 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
16 | |||
17 | @Override | ||
18 | protected void setInitialHiddenTokens(XtextTokenStream tokenStream) { | ||
19 | tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT"); | ||
20 | } | ||
21 | |||
22 | |||
23 | @Override | ||
24 | protected InternalApplicationConfigurationParser createParser(XtextTokenStream stream) { | ||
25 | return new InternalApplicationConfigurationParser(stream, getGrammarAccess()); | ||
26 | } | ||
27 | |||
28 | @Override | ||
29 | protected String getDefaultRuleName() { | ||
30 | return "ConfigurationScript"; | ||
31 | } | ||
32 | |||
33 | public ApplicationConfigurationGrammarAccess getGrammarAccess() { | ||
34 | return this.grammarAccess; | ||
35 | } | ||
36 | |||
37 | public void setGrammarAccess(ApplicationConfigurationGrammarAccess grammarAccess) { | ||
38 | this.grammarAccess = grammarAccess; | ||
39 | } | ||
40 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g new file mode 100644 index 00000000..f7f57fab --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.g | |||
@@ -0,0 +1,659 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | grammar InternalApplicationConfiguration; | ||
5 | |||
6 | options { | ||
7 | superClass=AbstractInternalAntlrParser; | ||
8 | } | ||
9 | |||
10 | @lexer::header { | ||
11 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; | ||
12 | |||
13 | // Hack: Use our own Lexer superclass by means of import. | ||
14 | // Currently there is no other way to specify the superclass for the lexer. | ||
15 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
16 | } | ||
17 | |||
18 | @parser::header { | ||
19 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; | ||
20 | |||
21 | import org.eclipse.xtext.*; | ||
22 | import org.eclipse.xtext.parser.*; | ||
23 | import org.eclipse.xtext.parser.impl.*; | ||
24 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
25 | import org.eclipse.emf.ecore.EObject; | ||
26 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | ||
27 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
28 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
29 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | ||
30 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
31 | |||
32 | } | ||
33 | |||
34 | @parser::members { | ||
35 | |||
36 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
37 | |||
38 | public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { | ||
39 | this(input); | ||
40 | this.grammarAccess = grammarAccess; | ||
41 | registerRules(grammarAccess.getGrammar()); | ||
42 | } | ||
43 | |||
44 | @Override | ||
45 | protected String getFirstRuleName() { | ||
46 | return "ConfigurationScript"; | ||
47 | } | ||
48 | |||
49 | @Override | ||
50 | protected ApplicationConfigurationGrammarAccess getGrammarAccess() { | ||
51 | return grammarAccess; | ||
52 | } | ||
53 | |||
54 | } | ||
55 | |||
56 | @rulecatch { | ||
57 | catch (RecognitionException re) { | ||
58 | recover(input,re); | ||
59 | appendSkippedTokens(); | ||
60 | } | ||
61 | } | ||
62 | |||
63 | // Entry rule entryRuleConfigurationScript | ||
64 | entryRuleConfigurationScript returns [EObject current=null]: | ||
65 | { newCompositeNode(grammarAccess.getConfigurationScriptRule()); } | ||
66 | iv_ruleConfigurationScript=ruleConfigurationScript | ||
67 | { $current=$iv_ruleConfigurationScript.current; } | ||
68 | EOF; | ||
69 | |||
70 | // Rule ConfigurationScript | ||
71 | ruleConfigurationScript returns [EObject current=null] | ||
72 | @init { | ||
73 | enterRule(); | ||
74 | } | ||
75 | @after { | ||
76 | leaveRule(); | ||
77 | }: | ||
78 | ( | ||
79 | ( | ||
80 | ( | ||
81 | { | ||
82 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); | ||
83 | } | ||
84 | lv_imports_0_0=ruleImport | ||
85 | { | ||
86 | if ($current==null) { | ||
87 | $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | ||
88 | } | ||
89 | add( | ||
90 | $current, | ||
91 | "imports", | ||
92 | lv_imports_0_0, | ||
93 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); | ||
94 | afterParserOrEnumRuleCall(); | ||
95 | } | ||
96 | ) | ||
97 | )* | ||
98 | ( | ||
99 | ( | ||
100 | { | ||
101 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); | ||
102 | } | ||
103 | lv_commands_1_0=ruleCommand | ||
104 | { | ||
105 | if ($current==null) { | ||
106 | $current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | ||
107 | } | ||
108 | add( | ||
109 | $current, | ||
110 | "commands", | ||
111 | lv_commands_1_0, | ||
112 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); | ||
113 | afterParserOrEnumRuleCall(); | ||
114 | } | ||
115 | ) | ||
116 | )* | ||
117 | ) | ||
118 | ; | ||
119 | |||
120 | // Entry rule entryRuleCommand | ||
121 | entryRuleCommand returns [EObject current=null]: | ||
122 | { newCompositeNode(grammarAccess.getCommandRule()); } | ||
123 | iv_ruleCommand=ruleCommand | ||
124 | { $current=$iv_ruleCommand.current; } | ||
125 | EOF; | ||
126 | |||
127 | // Rule Command | ||
128 | ruleCommand returns [EObject current=null] | ||
129 | @init { | ||
130 | enterRule(); | ||
131 | } | ||
132 | @after { | ||
133 | leaveRule(); | ||
134 | }: | ||
135 | { | ||
136 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); | ||
137 | } | ||
138 | this_Declaration_0=ruleDeclaration | ||
139 | { | ||
140 | $current = $this_Declaration_0.current; | ||
141 | afterParserOrEnumRuleCall(); | ||
142 | } | ||
143 | ; | ||
144 | |||
145 | // Entry rule entryRuleDeclaration | ||
146 | entryRuleDeclaration returns [EObject current=null]: | ||
147 | { newCompositeNode(grammarAccess.getDeclarationRule()); } | ||
148 | iv_ruleDeclaration=ruleDeclaration | ||
149 | { $current=$iv_ruleDeclaration.current; } | ||
150 | EOF; | ||
151 | |||
152 | // Rule Declaration | ||
153 | ruleDeclaration returns [EObject current=null] | ||
154 | @init { | ||
155 | enterRule(); | ||
156 | } | ||
157 | @after { | ||
158 | leaveRule(); | ||
159 | }: | ||
160 | { | ||
161 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); | ||
162 | } | ||
163 | this_MetamodelDeclaration_0=ruleMetamodelDeclaration | ||
164 | { | ||
165 | $current = $this_MetamodelDeclaration_0.current; | ||
166 | afterParserOrEnumRuleCall(); | ||
167 | } | ||
168 | ; | ||
169 | |||
170 | // Entry rule entryRuleImport | ||
171 | entryRuleImport returns [EObject current=null]: | ||
172 | { newCompositeNode(grammarAccess.getImportRule()); } | ||
173 | iv_ruleImport=ruleImport | ||
174 | { $current=$iv_ruleImport.current; } | ||
175 | EOF; | ||
176 | |||
177 | // Rule Import | ||
178 | ruleImport returns [EObject current=null] | ||
179 | @init { | ||
180 | enterRule(); | ||
181 | } | ||
182 | @after { | ||
183 | leaveRule(); | ||
184 | }: | ||
185 | ( | ||
186 | { | ||
187 | newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); | ||
188 | } | ||
189 | this_EPackageImport_0=ruleEPackageImport | ||
190 | { | ||
191 | $current = $this_EPackageImport_0.current; | ||
192 | afterParserOrEnumRuleCall(); | ||
193 | } | ||
194 | | | ||
195 | { | ||
196 | newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); | ||
197 | } | ||
198 | this_ViatraImport_1=ruleViatraImport | ||
199 | { | ||
200 | $current = $this_ViatraImport_1.current; | ||
201 | afterParserOrEnumRuleCall(); | ||
202 | } | ||
203 | ) | ||
204 | ; | ||
205 | |||
206 | // Entry rule entryRuleEPackageImport | ||
207 | entryRuleEPackageImport returns [EObject current=null]: | ||
208 | { newCompositeNode(grammarAccess.getEPackageImportRule()); } | ||
209 | iv_ruleEPackageImport=ruleEPackageImport | ||
210 | { $current=$iv_ruleEPackageImport.current; } | ||
211 | EOF; | ||
212 | |||
213 | // Rule EPackageImport | ||
214 | ruleEPackageImport returns [EObject current=null] | ||
215 | @init { | ||
216 | enterRule(); | ||
217 | } | ||
218 | @after { | ||
219 | leaveRule(); | ||
220 | }: | ||
221 | ( | ||
222 | otherlv_0='import' | ||
223 | { | ||
224 | newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); | ||
225 | } | ||
226 | otherlv_1='epackage' | ||
227 | { | ||
228 | newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); | ||
229 | } | ||
230 | ( | ||
231 | ( | ||
232 | { | ||
233 | if ($current==null) { | ||
234 | $current = createModelElement(grammarAccess.getEPackageImportRule()); | ||
235 | } | ||
236 | } | ||
237 | otherlv_2=RULE_STRING | ||
238 | { | ||
239 | newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); | ||
240 | } | ||
241 | ) | ||
242 | ) | ||
243 | ) | ||
244 | ; | ||
245 | |||
246 | // Entry rule entryRuleViatraImport | ||
247 | entryRuleViatraImport returns [EObject current=null]: | ||
248 | { newCompositeNode(grammarAccess.getViatraImportRule()); } | ||
249 | iv_ruleViatraImport=ruleViatraImport | ||
250 | { $current=$iv_ruleViatraImport.current; } | ||
251 | EOF; | ||
252 | |||
253 | // Rule ViatraImport | ||
254 | ruleViatraImport returns [EObject current=null] | ||
255 | @init { | ||
256 | enterRule(); | ||
257 | } | ||
258 | @after { | ||
259 | leaveRule(); | ||
260 | }: | ||
261 | ( | ||
262 | otherlv_0='import' | ||
263 | { | ||
264 | newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); | ||
265 | } | ||
266 | otherlv_1='viatra' | ||
267 | { | ||
268 | newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); | ||
269 | } | ||
270 | ( | ||
271 | ( | ||
272 | { | ||
273 | if ($current==null) { | ||
274 | $current = createModelElement(grammarAccess.getViatraImportRule()); | ||
275 | } | ||
276 | } | ||
277 | otherlv_2=RULE_STRING | ||
278 | { | ||
279 | newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); | ||
280 | } | ||
281 | ) | ||
282 | ) | ||
283 | ) | ||
284 | ; | ||
285 | |||
286 | // Entry rule entryRuleMetamodelSpecification | ||
287 | entryRuleMetamodelSpecification returns [EObject current=null]: | ||
288 | { newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); } | ||
289 | iv_ruleMetamodelSpecification=ruleMetamodelSpecification | ||
290 | { $current=$iv_ruleMetamodelSpecification.current; } | ||
291 | EOF; | ||
292 | |||
293 | // Rule MetamodelSpecification | ||
294 | ruleMetamodelSpecification returns [EObject current=null] | ||
295 | @init { | ||
296 | enterRule(); | ||
297 | } | ||
298 | @after { | ||
299 | leaveRule(); | ||
300 | }: | ||
301 | ( | ||
302 | otherlv_0='{' | ||
303 | { | ||
304 | newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
305 | } | ||
306 | ( | ||
307 | ( | ||
308 | { | ||
309 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); | ||
310 | } | ||
311 | lv_entries_1_0=ruleMetamodelEntry | ||
312 | { | ||
313 | if ($current==null) { | ||
314 | $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | ||
315 | } | ||
316 | add( | ||
317 | $current, | ||
318 | "entries", | ||
319 | lv_entries_1_0, | ||
320 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
321 | afterParserOrEnumRuleCall(); | ||
322 | } | ||
323 | ) | ||
324 | ) | ||
325 | ( | ||
326 | otherlv_2=',' | ||
327 | { | ||
328 | newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); | ||
329 | } | ||
330 | ( | ||
331 | ( | ||
332 | { | ||
333 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); | ||
334 | } | ||
335 | lv_entries_3_0=ruleMetamodelEntry | ||
336 | { | ||
337 | if ($current==null) { | ||
338 | $current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | ||
339 | } | ||
340 | add( | ||
341 | $current, | ||
342 | "entries", | ||
343 | lv_entries_3_0, | ||
344 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
345 | afterParserOrEnumRuleCall(); | ||
346 | } | ||
347 | ) | ||
348 | ) | ||
349 | )* | ||
350 | otherlv_4='}' | ||
351 | { | ||
352 | newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
353 | } | ||
354 | ) | ||
355 | ; | ||
356 | |||
357 | // Entry rule entryRuleMetamodelEntry | ||
358 | entryRuleMetamodelEntry returns [EObject current=null]: | ||
359 | { newCompositeNode(grammarAccess.getMetamodelEntryRule()); } | ||
360 | iv_ruleMetamodelEntry=ruleMetamodelEntry | ||
361 | { $current=$iv_ruleMetamodelEntry.current; } | ||
362 | EOF; | ||
363 | |||
364 | // Rule MetamodelEntry | ||
365 | ruleMetamodelEntry returns [EObject current=null] | ||
366 | @init { | ||
367 | enterRule(); | ||
368 | } | ||
369 | @after { | ||
370 | leaveRule(); | ||
371 | }: | ||
372 | ( | ||
373 | { | ||
374 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); | ||
375 | } | ||
376 | this_MetamodelElement_0=ruleMetamodelElement | ||
377 | { | ||
378 | $current = $this_MetamodelElement_0.current; | ||
379 | afterParserOrEnumRuleCall(); | ||
380 | } | ||
381 | | | ||
382 | { | ||
383 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); | ||
384 | } | ||
385 | this_AllPackageEntry_1=ruleAllPackageEntry | ||
386 | { | ||
387 | $current = $this_AllPackageEntry_1.current; | ||
388 | afterParserOrEnumRuleCall(); | ||
389 | } | ||
390 | ) | ||
391 | ; | ||
392 | |||
393 | // Entry rule entryRuleAllPackageEntry | ||
394 | entryRuleAllPackageEntry returns [EObject current=null]: | ||
395 | { newCompositeNode(grammarAccess.getAllPackageEntryRule()); } | ||
396 | iv_ruleAllPackageEntry=ruleAllPackageEntry | ||
397 | { $current=$iv_ruleAllPackageEntry.current; } | ||
398 | EOF; | ||
399 | |||
400 | // Rule AllPackageEntry | ||
401 | ruleAllPackageEntry returns [EObject current=null] | ||
402 | @init { | ||
403 | enterRule(); | ||
404 | } | ||
405 | @after { | ||
406 | leaveRule(); | ||
407 | }: | ||
408 | ( | ||
409 | otherlv_0='package' | ||
410 | { | ||
411 | newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); | ||
412 | } | ||
413 | ( | ||
414 | ( | ||
415 | { | ||
416 | if ($current==null) { | ||
417 | $current = createModelElement(grammarAccess.getAllPackageEntryRule()); | ||
418 | } | ||
419 | } | ||
420 | otherlv_1=RULE_ID | ||
421 | { | ||
422 | newLeafNode(otherlv_1, grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | ||
423 | } | ||
424 | ) | ||
425 | ) | ||
426 | ( | ||
427 | otherlv_2='excluding' | ||
428 | { | ||
429 | newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); | ||
430 | } | ||
431 | otherlv_3='{' | ||
432 | { | ||
433 | newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
434 | } | ||
435 | ( | ||
436 | ( | ||
437 | { | ||
438 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); | ||
439 | } | ||
440 | lv_exclusion_4_0=ruleMetamodelElement | ||
441 | { | ||
442 | if ($current==null) { | ||
443 | $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | ||
444 | } | ||
445 | add( | ||
446 | $current, | ||
447 | "exclusion", | ||
448 | lv_exclusion_4_0, | ||
449 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
450 | afterParserOrEnumRuleCall(); | ||
451 | } | ||
452 | ) | ||
453 | ) | ||
454 | ( | ||
455 | otherlv_5=',' | ||
456 | { | ||
457 | newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); | ||
458 | } | ||
459 | ( | ||
460 | ( | ||
461 | { | ||
462 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); | ||
463 | } | ||
464 | lv_exclusion_6_0=ruleMetamodelElement | ||
465 | { | ||
466 | if ($current==null) { | ||
467 | $current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | ||
468 | } | ||
469 | add( | ||
470 | $current, | ||
471 | "exclusion", | ||
472 | lv_exclusion_6_0, | ||
473 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
474 | afterParserOrEnumRuleCall(); | ||
475 | } | ||
476 | ) | ||
477 | ) | ||
478 | )* | ||
479 | otherlv_7='}' | ||
480 | { | ||
481 | newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
482 | } | ||
483 | )? | ||
484 | ) | ||
485 | ; | ||
486 | |||
487 | // Entry rule entryRuleMetamodelElement | ||
488 | entryRuleMetamodelElement returns [EObject current=null]: | ||
489 | { newCompositeNode(grammarAccess.getMetamodelElementRule()); } | ||
490 | iv_ruleMetamodelElement=ruleMetamodelElement | ||
491 | { $current=$iv_ruleMetamodelElement.current; } | ||
492 | EOF; | ||
493 | |||
494 | // Rule MetamodelElement | ||
495 | ruleMetamodelElement returns [EObject current=null] | ||
496 | @init { | ||
497 | enterRule(); | ||
498 | } | ||
499 | @after { | ||
500 | leaveRule(); | ||
501 | }: | ||
502 | ( | ||
503 | ( | ||
504 | ( | ||
505 | ( | ||
506 | { | ||
507 | if ($current==null) { | ||
508 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
509 | } | ||
510 | } | ||
511 | otherlv_0=RULE_ID | ||
512 | { | ||
513 | newLeafNode(otherlv_0, grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | ||
514 | } | ||
515 | ) | ||
516 | ) | ||
517 | otherlv_1='::' | ||
518 | { | ||
519 | newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); | ||
520 | } | ||
521 | )? | ||
522 | ( | ||
523 | ( | ||
524 | { | ||
525 | if ($current==null) { | ||
526 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
527 | } | ||
528 | } | ||
529 | otherlv_2=RULE_ID | ||
530 | { | ||
531 | newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); | ||
532 | } | ||
533 | ) | ||
534 | ) | ||
535 | ( | ||
536 | otherlv_3='.' | ||
537 | { | ||
538 | newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); | ||
539 | } | ||
540 | ( | ||
541 | ( | ||
542 | { | ||
543 | if ($current==null) { | ||
544 | $current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
545 | } | ||
546 | } | ||
547 | otherlv_4=RULE_ID | ||
548 | { | ||
549 | newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); | ||
550 | } | ||
551 | ) | ||
552 | ) | ||
553 | )? | ||
554 | ) | ||
555 | ; | ||
556 | |||
557 | // Entry rule entryRuleMetamodelDeclaration | ||
558 | entryRuleMetamodelDeclaration returns [EObject current=null]: | ||
559 | { newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); } | ||
560 | iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration | ||
561 | { $current=$iv_ruleMetamodelDeclaration.current; } | ||
562 | EOF; | ||
563 | |||
564 | // Rule MetamodelDeclaration | ||
565 | ruleMetamodelDeclaration returns [EObject current=null] | ||
566 | @init { | ||
567 | enterRule(); | ||
568 | } | ||
569 | @after { | ||
570 | leaveRule(); | ||
571 | }: | ||
572 | ( | ||
573 | otherlv_0='metamodel' | ||
574 | { | ||
575 | newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); | ||
576 | } | ||
577 | ( | ||
578 | ( | ||
579 | lv_name_1_0=RULE_ID | ||
580 | { | ||
581 | newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
582 | } | ||
583 | { | ||
584 | if ($current==null) { | ||
585 | $current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); | ||
586 | } | ||
587 | setWithLastConsumed( | ||
588 | $current, | ||
589 | "name", | ||
590 | lv_name_1_0, | ||
591 | "org.eclipse.xtext.common.Terminals.ID"); | ||
592 | } | ||
593 | ) | ||
594 | ) | ||
595 | ( | ||
596 | ( | ||
597 | { | ||
598 | newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); | ||
599 | } | ||
600 | lv_specification_2_0=ruleMetamodelSpecification | ||
601 | { | ||
602 | if ($current==null) { | ||
603 | $current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); | ||
604 | } | ||
605 | set( | ||
606 | $current, | ||
607 | "specification", | ||
608 | lv_specification_2_0, | ||
609 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); | ||
610 | afterParserOrEnumRuleCall(); | ||
611 | } | ||
612 | ) | ||
613 | ) | ||
614 | ) | ||
615 | ; | ||
616 | |||
617 | // Entry rule entryRuleMetamodelReference | ||
618 | entryRuleMetamodelReference returns [EObject current=null]: | ||
619 | { newCompositeNode(grammarAccess.getMetamodelReferenceRule()); } | ||
620 | iv_ruleMetamodelReference=ruleMetamodelReference | ||
621 | { $current=$iv_ruleMetamodelReference.current; } | ||
622 | EOF; | ||
623 | |||
624 | // Rule MetamodelReference | ||
625 | ruleMetamodelReference returns [EObject current=null] | ||
626 | @init { | ||
627 | enterRule(); | ||
628 | } | ||
629 | @after { | ||
630 | leaveRule(); | ||
631 | }: | ||
632 | ( | ||
633 | ( | ||
634 | { | ||
635 | if ($current==null) { | ||
636 | $current = createModelElement(grammarAccess.getMetamodelReferenceRule()); | ||
637 | } | ||
638 | } | ||
639 | otherlv_0=RULE_ID | ||
640 | { | ||
641 | newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); | ||
642 | } | ||
643 | ) | ||
644 | ) | ||
645 | ; | ||
646 | |||
647 | RULE_ID : '^'? ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*; | ||
648 | |||
649 | RULE_INT : ('0'..'9')+; | ||
650 | |||
651 | RULE_STRING : ('"' ('\\' .|~(('\\'|'"')))* '"'|'\'' ('\\' .|~(('\\'|'\'')))* '\''); | ||
652 | |||
653 | RULE_ML_COMMENT : '/*' ( options {greedy=false;} : . )*'*/'; | ||
654 | |||
655 | RULE_SL_COMMENT : '//' ~(('\n'|'\r'))* ('\r'? '\n')?; | ||
656 | |||
657 | RULE_WS : (' '|'\t'|'\r'|'\n')+; | ||
658 | |||
659 | RULE_ANY_OTHER : .; | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens new file mode 100644 index 00000000..676ff381 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfiguration.tokens | |||
@@ -0,0 +1,29 @@ | |||
1 | ','=15 | ||
2 | '.'=20 | ||
3 | '::'=19 | ||
4 | 'epackage'=12 | ||
5 | 'excluding'=18 | ||
6 | 'import'=11 | ||
7 | 'metamodel'=21 | ||
8 | 'package'=17 | ||
9 | 'viatra'=13 | ||
10 | '{'=14 | ||
11 | '}'=16 | ||
12 | RULE_ANY_OTHER=10 | ||
13 | RULE_ID=5 | ||
14 | RULE_INT=6 | ||
15 | RULE_ML_COMMENT=7 | ||
16 | RULE_SL_COMMENT=8 | ||
17 | RULE_STRING=4 | ||
18 | RULE_WS=9 | ||
19 | T__11=11 | ||
20 | T__12=12 | ||
21 | T__13=13 | ||
22 | T__14=14 | ||
23 | T__15=15 | ||
24 | T__16=16 | ||
25 | T__17=17 | ||
26 | T__18=18 | ||
27 | T__19=19 | ||
28 | T__20=20 | ||
29 | T__21=21 | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java new file mode 100644 index 00000000..730041a1 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationLexer.java | |||
@@ -0,0 +1,1108 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; | ||
2 | |||
3 | // Hack: Use our own Lexer superclass by means of import. | ||
4 | // Currently there is no other way to specify the superclass for the lexer. | ||
5 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
6 | |||
7 | |||
8 | import org.antlr.runtime.*; | ||
9 | import java.util.Stack; | ||
10 | import java.util.List; | ||
11 | import java.util.ArrayList; | ||
12 | |||
13 | @SuppressWarnings("all") | ||
14 | public class InternalApplicationConfigurationLexer extends Lexer { | ||
15 | public static final int RULE_STRING=4; | ||
16 | public static final int RULE_SL_COMMENT=8; | ||
17 | public static final int T__19=19; | ||
18 | public static final int T__15=15; | ||
19 | public static final int T__16=16; | ||
20 | public static final int T__17=17; | ||
21 | public static final int T__18=18; | ||
22 | public static final int T__11=11; | ||
23 | public static final int T__12=12; | ||
24 | public static final int T__13=13; | ||
25 | public static final int T__14=14; | ||
26 | public static final int EOF=-1; | ||
27 | public static final int RULE_ID=5; | ||
28 | public static final int RULE_WS=9; | ||
29 | public static final int RULE_ANY_OTHER=10; | ||
30 | public static final int RULE_INT=6; | ||
31 | public static final int RULE_ML_COMMENT=7; | ||
32 | public static final int T__20=20; | ||
33 | public static final int T__21=21; | ||
34 | |||
35 | // delegates | ||
36 | // delegators | ||
37 | |||
38 | public InternalApplicationConfigurationLexer() {;} | ||
39 | public InternalApplicationConfigurationLexer(CharStream input) { | ||
40 | this(input, new RecognizerSharedState()); | ||
41 | } | ||
42 | public InternalApplicationConfigurationLexer(CharStream input, RecognizerSharedState state) { | ||
43 | super(input,state); | ||
44 | |||
45 | } | ||
46 | public String getGrammarFileName() { return "InternalApplicationConfiguration.g"; } | ||
47 | |||
48 | // $ANTLR start "T__11" | ||
49 | public final void mT__11() throws RecognitionException { | ||
50 | try { | ||
51 | int _type = T__11; | ||
52 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
53 | // InternalApplicationConfiguration.g:11:7: ( 'import' ) | ||
54 | // InternalApplicationConfiguration.g:11:9: 'import' | ||
55 | { | ||
56 | match("import"); | ||
57 | |||
58 | |||
59 | } | ||
60 | |||
61 | state.type = _type; | ||
62 | state.channel = _channel; | ||
63 | } | ||
64 | finally { | ||
65 | } | ||
66 | } | ||
67 | // $ANTLR end "T__11" | ||
68 | |||
69 | // $ANTLR start "T__12" | ||
70 | public final void mT__12() throws RecognitionException { | ||
71 | try { | ||
72 | int _type = T__12; | ||
73 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
74 | // InternalApplicationConfiguration.g:12:7: ( 'epackage' ) | ||
75 | // InternalApplicationConfiguration.g:12:9: 'epackage' | ||
76 | { | ||
77 | match("epackage"); | ||
78 | |||
79 | |||
80 | } | ||
81 | |||
82 | state.type = _type; | ||
83 | state.channel = _channel; | ||
84 | } | ||
85 | finally { | ||
86 | } | ||
87 | } | ||
88 | // $ANTLR end "T__12" | ||
89 | |||
90 | // $ANTLR start "T__13" | ||
91 | public final void mT__13() throws RecognitionException { | ||
92 | try { | ||
93 | int _type = T__13; | ||
94 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
95 | // InternalApplicationConfiguration.g:13:7: ( 'viatra' ) | ||
96 | // InternalApplicationConfiguration.g:13:9: 'viatra' | ||
97 | { | ||
98 | match("viatra"); | ||
99 | |||
100 | |||
101 | } | ||
102 | |||
103 | state.type = _type; | ||
104 | state.channel = _channel; | ||
105 | } | ||
106 | finally { | ||
107 | } | ||
108 | } | ||
109 | // $ANTLR end "T__13" | ||
110 | |||
111 | // $ANTLR start "T__14" | ||
112 | public final void mT__14() throws RecognitionException { | ||
113 | try { | ||
114 | int _type = T__14; | ||
115 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
116 | // InternalApplicationConfiguration.g:14:7: ( '{' ) | ||
117 | // InternalApplicationConfiguration.g:14:9: '{' | ||
118 | { | ||
119 | match('{'); | ||
120 | |||
121 | } | ||
122 | |||
123 | state.type = _type; | ||
124 | state.channel = _channel; | ||
125 | } | ||
126 | finally { | ||
127 | } | ||
128 | } | ||
129 | // $ANTLR end "T__14" | ||
130 | |||
131 | // $ANTLR start "T__15" | ||
132 | public final void mT__15() throws RecognitionException { | ||
133 | try { | ||
134 | int _type = T__15; | ||
135 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
136 | // InternalApplicationConfiguration.g:15:7: ( ',' ) | ||
137 | // InternalApplicationConfiguration.g:15:9: ',' | ||
138 | { | ||
139 | match(','); | ||
140 | |||
141 | } | ||
142 | |||
143 | state.type = _type; | ||
144 | state.channel = _channel; | ||
145 | } | ||
146 | finally { | ||
147 | } | ||
148 | } | ||
149 | // $ANTLR end "T__15" | ||
150 | |||
151 | // $ANTLR start "T__16" | ||
152 | public final void mT__16() throws RecognitionException { | ||
153 | try { | ||
154 | int _type = T__16; | ||
155 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
156 | // InternalApplicationConfiguration.g:16:7: ( '}' ) | ||
157 | // InternalApplicationConfiguration.g:16:9: '}' | ||
158 | { | ||
159 | match('}'); | ||
160 | |||
161 | } | ||
162 | |||
163 | state.type = _type; | ||
164 | state.channel = _channel; | ||
165 | } | ||
166 | finally { | ||
167 | } | ||
168 | } | ||
169 | // $ANTLR end "T__16" | ||
170 | |||
171 | // $ANTLR start "T__17" | ||
172 | public final void mT__17() throws RecognitionException { | ||
173 | try { | ||
174 | int _type = T__17; | ||
175 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
176 | // InternalApplicationConfiguration.g:17:7: ( 'package' ) | ||
177 | // InternalApplicationConfiguration.g:17:9: 'package' | ||
178 | { | ||
179 | match("package"); | ||
180 | |||
181 | |||
182 | } | ||
183 | |||
184 | state.type = _type; | ||
185 | state.channel = _channel; | ||
186 | } | ||
187 | finally { | ||
188 | } | ||
189 | } | ||
190 | // $ANTLR end "T__17" | ||
191 | |||
192 | // $ANTLR start "T__18" | ||
193 | public final void mT__18() throws RecognitionException { | ||
194 | try { | ||
195 | int _type = T__18; | ||
196 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
197 | // InternalApplicationConfiguration.g:18:7: ( 'excluding' ) | ||
198 | // InternalApplicationConfiguration.g:18:9: 'excluding' | ||
199 | { | ||
200 | match("excluding"); | ||
201 | |||
202 | |||
203 | } | ||
204 | |||
205 | state.type = _type; | ||
206 | state.channel = _channel; | ||
207 | } | ||
208 | finally { | ||
209 | } | ||
210 | } | ||
211 | // $ANTLR end "T__18" | ||
212 | |||
213 | // $ANTLR start "T__19" | ||
214 | public final void mT__19() throws RecognitionException { | ||
215 | try { | ||
216 | int _type = T__19; | ||
217 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
218 | // InternalApplicationConfiguration.g:19:7: ( '::' ) | ||
219 | // InternalApplicationConfiguration.g:19:9: '::' | ||
220 | { | ||
221 | match("::"); | ||
222 | |||
223 | |||
224 | } | ||
225 | |||
226 | state.type = _type; | ||
227 | state.channel = _channel; | ||
228 | } | ||
229 | finally { | ||
230 | } | ||
231 | } | ||
232 | // $ANTLR end "T__19" | ||
233 | |||
234 | // $ANTLR start "T__20" | ||
235 | public final void mT__20() throws RecognitionException { | ||
236 | try { | ||
237 | int _type = T__20; | ||
238 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
239 | // InternalApplicationConfiguration.g:20:7: ( '.' ) | ||
240 | // InternalApplicationConfiguration.g:20:9: '.' | ||
241 | { | ||
242 | match('.'); | ||
243 | |||
244 | } | ||
245 | |||
246 | state.type = _type; | ||
247 | state.channel = _channel; | ||
248 | } | ||
249 | finally { | ||
250 | } | ||
251 | } | ||
252 | // $ANTLR end "T__20" | ||
253 | |||
254 | // $ANTLR start "T__21" | ||
255 | public final void mT__21() throws RecognitionException { | ||
256 | try { | ||
257 | int _type = T__21; | ||
258 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
259 | // InternalApplicationConfiguration.g:21:7: ( 'metamodel' ) | ||
260 | // InternalApplicationConfiguration.g:21:9: 'metamodel' | ||
261 | { | ||
262 | match("metamodel"); | ||
263 | |||
264 | |||
265 | } | ||
266 | |||
267 | state.type = _type; | ||
268 | state.channel = _channel; | ||
269 | } | ||
270 | finally { | ||
271 | } | ||
272 | } | ||
273 | // $ANTLR end "T__21" | ||
274 | |||
275 | // $ANTLR start "RULE_ID" | ||
276 | public final void mRULE_ID() throws RecognitionException { | ||
277 | try { | ||
278 | int _type = RULE_ID; | ||
279 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
280 | // InternalApplicationConfiguration.g:647:9: ( ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* ) | ||
281 | // InternalApplicationConfiguration.g:647:11: ( '^' )? ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
282 | { | ||
283 | // InternalApplicationConfiguration.g:647:11: ( '^' )? | ||
284 | int alt1=2; | ||
285 | int LA1_0 = input.LA(1); | ||
286 | |||
287 | if ( (LA1_0=='^') ) { | ||
288 | alt1=1; | ||
289 | } | ||
290 | switch (alt1) { | ||
291 | case 1 : | ||
292 | // InternalApplicationConfiguration.g:647:11: '^' | ||
293 | { | ||
294 | match('^'); | ||
295 | |||
296 | } | ||
297 | break; | ||
298 | |||
299 | } | ||
300 | |||
301 | if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) { | ||
302 | input.consume(); | ||
303 | |||
304 | } | ||
305 | else { | ||
306 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
307 | recover(mse); | ||
308 | throw mse;} | ||
309 | |||
310 | // InternalApplicationConfiguration.g:647:40: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* | ||
311 | loop2: | ||
312 | do { | ||
313 | int alt2=2; | ||
314 | int LA2_0 = input.LA(1); | ||
315 | |||
316 | if ( ((LA2_0>='0' && LA2_0<='9')||(LA2_0>='A' && LA2_0<='Z')||LA2_0=='_'||(LA2_0>='a' && LA2_0<='z')) ) { | ||
317 | alt2=1; | ||
318 | } | ||
319 | |||
320 | |||
321 | switch (alt2) { | ||
322 | case 1 : | ||
323 | // InternalApplicationConfiguration.g: | ||
324 | { | ||
325 | 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') ) { | ||
326 | input.consume(); | ||
327 | |||
328 | } | ||
329 | else { | ||
330 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
331 | recover(mse); | ||
332 | throw mse;} | ||
333 | |||
334 | |||
335 | } | ||
336 | break; | ||
337 | |||
338 | default : | ||
339 | break loop2; | ||
340 | } | ||
341 | } while (true); | ||
342 | |||
343 | |||
344 | } | ||
345 | |||
346 | state.type = _type; | ||
347 | state.channel = _channel; | ||
348 | } | ||
349 | finally { | ||
350 | } | ||
351 | } | ||
352 | // $ANTLR end "RULE_ID" | ||
353 | |||
354 | // $ANTLR start "RULE_INT" | ||
355 | public final void mRULE_INT() throws RecognitionException { | ||
356 | try { | ||
357 | int _type = RULE_INT; | ||
358 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
359 | // InternalApplicationConfiguration.g:649:10: ( ( '0' .. '9' )+ ) | ||
360 | // InternalApplicationConfiguration.g:649:12: ( '0' .. '9' )+ | ||
361 | { | ||
362 | // InternalApplicationConfiguration.g:649:12: ( '0' .. '9' )+ | ||
363 | int cnt3=0; | ||
364 | loop3: | ||
365 | do { | ||
366 | int alt3=2; | ||
367 | int LA3_0 = input.LA(1); | ||
368 | |||
369 | if ( ((LA3_0>='0' && LA3_0<='9')) ) { | ||
370 | alt3=1; | ||
371 | } | ||
372 | |||
373 | |||
374 | switch (alt3) { | ||
375 | case 1 : | ||
376 | // InternalApplicationConfiguration.g:649:13: '0' .. '9' | ||
377 | { | ||
378 | matchRange('0','9'); | ||
379 | |||
380 | } | ||
381 | break; | ||
382 | |||
383 | default : | ||
384 | if ( cnt3 >= 1 ) break loop3; | ||
385 | EarlyExitException eee = | ||
386 | new EarlyExitException(3, input); | ||
387 | throw eee; | ||
388 | } | ||
389 | cnt3++; | ||
390 | } while (true); | ||
391 | |||
392 | |||
393 | } | ||
394 | |||
395 | state.type = _type; | ||
396 | state.channel = _channel; | ||
397 | } | ||
398 | finally { | ||
399 | } | ||
400 | } | ||
401 | // $ANTLR end "RULE_INT" | ||
402 | |||
403 | // $ANTLR start "RULE_STRING" | ||
404 | public final void mRULE_STRING() throws RecognitionException { | ||
405 | try { | ||
406 | int _type = RULE_STRING; | ||
407 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
408 | // InternalApplicationConfiguration.g:651:13: ( ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) ) | ||
409 | // InternalApplicationConfiguration.g:651:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
410 | { | ||
411 | // InternalApplicationConfiguration.g:651:15: ( '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' ) | ||
412 | int alt6=2; | ||
413 | int LA6_0 = input.LA(1); | ||
414 | |||
415 | if ( (LA6_0=='\"') ) { | ||
416 | alt6=1; | ||
417 | } | ||
418 | else if ( (LA6_0=='\'') ) { | ||
419 | alt6=2; | ||
420 | } | ||
421 | else { | ||
422 | NoViableAltException nvae = | ||
423 | new NoViableAltException("", 6, 0, input); | ||
424 | |||
425 | throw nvae; | ||
426 | } | ||
427 | switch (alt6) { | ||
428 | case 1 : | ||
429 | // InternalApplicationConfiguration.g:651:16: '\"' ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* '\"' | ||
430 | { | ||
431 | match('\"'); | ||
432 | // InternalApplicationConfiguration.g:651:20: ( '\\\\' . | ~ ( ( '\\\\' | '\"' ) ) )* | ||
433 | loop4: | ||
434 | do { | ||
435 | int alt4=3; | ||
436 | int LA4_0 = input.LA(1); | ||
437 | |||
438 | if ( (LA4_0=='\\') ) { | ||
439 | alt4=1; | ||
440 | } | ||
441 | else if ( ((LA4_0>='\u0000' && LA4_0<='!')||(LA4_0>='#' && LA4_0<='[')||(LA4_0>=']' && LA4_0<='\uFFFF')) ) { | ||
442 | alt4=2; | ||
443 | } | ||
444 | |||
445 | |||
446 | switch (alt4) { | ||
447 | case 1 : | ||
448 | // InternalApplicationConfiguration.g:651:21: '\\\\' . | ||
449 | { | ||
450 | match('\\'); | ||
451 | matchAny(); | ||
452 | |||
453 | } | ||
454 | break; | ||
455 | case 2 : | ||
456 | // InternalApplicationConfiguration.g:651:28: ~ ( ( '\\\\' | '\"' ) ) | ||
457 | { | ||
458 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
459 | input.consume(); | ||
460 | |||
461 | } | ||
462 | else { | ||
463 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
464 | recover(mse); | ||
465 | throw mse;} | ||
466 | |||
467 | |||
468 | } | ||
469 | break; | ||
470 | |||
471 | default : | ||
472 | break loop4; | ||
473 | } | ||
474 | } while (true); | ||
475 | |||
476 | match('\"'); | ||
477 | |||
478 | } | ||
479 | break; | ||
480 | case 2 : | ||
481 | // InternalApplicationConfiguration.g:651:48: '\\'' ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' | ||
482 | { | ||
483 | match('\''); | ||
484 | // InternalApplicationConfiguration.g:651:53: ( '\\\\' . | ~ ( ( '\\\\' | '\\'' ) ) )* | ||
485 | loop5: | ||
486 | do { | ||
487 | int alt5=3; | ||
488 | int LA5_0 = input.LA(1); | ||
489 | |||
490 | if ( (LA5_0=='\\') ) { | ||
491 | alt5=1; | ||
492 | } | ||
493 | else if ( ((LA5_0>='\u0000' && LA5_0<='&')||(LA5_0>='(' && LA5_0<='[')||(LA5_0>=']' && LA5_0<='\uFFFF')) ) { | ||
494 | alt5=2; | ||
495 | } | ||
496 | |||
497 | |||
498 | switch (alt5) { | ||
499 | case 1 : | ||
500 | // InternalApplicationConfiguration.g:651:54: '\\\\' . | ||
501 | { | ||
502 | match('\\'); | ||
503 | matchAny(); | ||
504 | |||
505 | } | ||
506 | break; | ||
507 | case 2 : | ||
508 | // InternalApplicationConfiguration.g:651:61: ~ ( ( '\\\\' | '\\'' ) ) | ||
509 | { | ||
510 | if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) { | ||
511 | input.consume(); | ||
512 | |||
513 | } | ||
514 | else { | ||
515 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
516 | recover(mse); | ||
517 | throw mse;} | ||
518 | |||
519 | |||
520 | } | ||
521 | break; | ||
522 | |||
523 | default : | ||
524 | break loop5; | ||
525 | } | ||
526 | } while (true); | ||
527 | |||
528 | match('\''); | ||
529 | |||
530 | } | ||
531 | break; | ||
532 | |||
533 | } | ||
534 | |||
535 | |||
536 | } | ||
537 | |||
538 | state.type = _type; | ||
539 | state.channel = _channel; | ||
540 | } | ||
541 | finally { | ||
542 | } | ||
543 | } | ||
544 | // $ANTLR end "RULE_STRING" | ||
545 | |||
546 | // $ANTLR start "RULE_ML_COMMENT" | ||
547 | public final void mRULE_ML_COMMENT() throws RecognitionException { | ||
548 | try { | ||
549 | int _type = RULE_ML_COMMENT; | ||
550 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
551 | // InternalApplicationConfiguration.g:653:17: ( '/*' ( options {greedy=false; } : . )* '*/' ) | ||
552 | // InternalApplicationConfiguration.g:653:19: '/*' ( options {greedy=false; } : . )* '*/' | ||
553 | { | ||
554 | match("/*"); | ||
555 | |||
556 | // InternalApplicationConfiguration.g:653:24: ( options {greedy=false; } : . )* | ||
557 | loop7: | ||
558 | do { | ||
559 | int alt7=2; | ||
560 | int LA7_0 = input.LA(1); | ||
561 | |||
562 | if ( (LA7_0=='*') ) { | ||
563 | int LA7_1 = input.LA(2); | ||
564 | |||
565 | if ( (LA7_1=='/') ) { | ||
566 | alt7=2; | ||
567 | } | ||
568 | else if ( ((LA7_1>='\u0000' && LA7_1<='.')||(LA7_1>='0' && LA7_1<='\uFFFF')) ) { | ||
569 | alt7=1; | ||
570 | } | ||
571 | |||
572 | |||
573 | } | ||
574 | else if ( ((LA7_0>='\u0000' && LA7_0<=')')||(LA7_0>='+' && LA7_0<='\uFFFF')) ) { | ||
575 | alt7=1; | ||
576 | } | ||
577 | |||
578 | |||
579 | switch (alt7) { | ||
580 | case 1 : | ||
581 | // InternalApplicationConfiguration.g:653:52: . | ||
582 | { | ||
583 | matchAny(); | ||
584 | |||
585 | } | ||
586 | break; | ||
587 | |||
588 | default : | ||
589 | break loop7; | ||
590 | } | ||
591 | } while (true); | ||
592 | |||
593 | match("*/"); | ||
594 | |||
595 | |||
596 | } | ||
597 | |||
598 | state.type = _type; | ||
599 | state.channel = _channel; | ||
600 | } | ||
601 | finally { | ||
602 | } | ||
603 | } | ||
604 | // $ANTLR end "RULE_ML_COMMENT" | ||
605 | |||
606 | // $ANTLR start "RULE_SL_COMMENT" | ||
607 | public final void mRULE_SL_COMMENT() throws RecognitionException { | ||
608 | try { | ||
609 | int _type = RULE_SL_COMMENT; | ||
610 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
611 | // InternalApplicationConfiguration.g:655:17: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? ) | ||
612 | // InternalApplicationConfiguration.g:655:19: '//' (~ ( ( '\\n' | '\\r' ) ) )* ( ( '\\r' )? '\\n' )? | ||
613 | { | ||
614 | match("//"); | ||
615 | |||
616 | // InternalApplicationConfiguration.g:655:24: (~ ( ( '\\n' | '\\r' ) ) )* | ||
617 | loop8: | ||
618 | do { | ||
619 | int alt8=2; | ||
620 | int LA8_0 = input.LA(1); | ||
621 | |||
622 | if ( ((LA8_0>='\u0000' && LA8_0<='\t')||(LA8_0>='\u000B' && LA8_0<='\f')||(LA8_0>='\u000E' && LA8_0<='\uFFFF')) ) { | ||
623 | alt8=1; | ||
624 | } | ||
625 | |||
626 | |||
627 | switch (alt8) { | ||
628 | case 1 : | ||
629 | // InternalApplicationConfiguration.g:655:24: ~ ( ( '\\n' | '\\r' ) ) | ||
630 | { | ||
631 | 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') ) { | ||
632 | input.consume(); | ||
633 | |||
634 | } | ||
635 | else { | ||
636 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
637 | recover(mse); | ||
638 | throw mse;} | ||
639 | |||
640 | |||
641 | } | ||
642 | break; | ||
643 | |||
644 | default : | ||
645 | break loop8; | ||
646 | } | ||
647 | } while (true); | ||
648 | |||
649 | // InternalApplicationConfiguration.g:655:40: ( ( '\\r' )? '\\n' )? | ||
650 | int alt10=2; | ||
651 | int LA10_0 = input.LA(1); | ||
652 | |||
653 | if ( (LA10_0=='\n'||LA10_0=='\r') ) { | ||
654 | alt10=1; | ||
655 | } | ||
656 | switch (alt10) { | ||
657 | case 1 : | ||
658 | // InternalApplicationConfiguration.g:655:41: ( '\\r' )? '\\n' | ||
659 | { | ||
660 | // InternalApplicationConfiguration.g:655:41: ( '\\r' )? | ||
661 | int alt9=2; | ||
662 | int LA9_0 = input.LA(1); | ||
663 | |||
664 | if ( (LA9_0=='\r') ) { | ||
665 | alt9=1; | ||
666 | } | ||
667 | switch (alt9) { | ||
668 | case 1 : | ||
669 | // InternalApplicationConfiguration.g:655:41: '\\r' | ||
670 | { | ||
671 | match('\r'); | ||
672 | |||
673 | } | ||
674 | break; | ||
675 | |||
676 | } | ||
677 | |||
678 | match('\n'); | ||
679 | |||
680 | } | ||
681 | break; | ||
682 | |||
683 | } | ||
684 | |||
685 | |||
686 | } | ||
687 | |||
688 | state.type = _type; | ||
689 | state.channel = _channel; | ||
690 | } | ||
691 | finally { | ||
692 | } | ||
693 | } | ||
694 | // $ANTLR end "RULE_SL_COMMENT" | ||
695 | |||
696 | // $ANTLR start "RULE_WS" | ||
697 | public final void mRULE_WS() throws RecognitionException { | ||
698 | try { | ||
699 | int _type = RULE_WS; | ||
700 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
701 | // InternalApplicationConfiguration.g:657:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ ) | ||
702 | // InternalApplicationConfiguration.g:657:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
703 | { | ||
704 | // InternalApplicationConfiguration.g:657:11: ( ' ' | '\\t' | '\\r' | '\\n' )+ | ||
705 | int cnt11=0; | ||
706 | loop11: | ||
707 | do { | ||
708 | int alt11=2; | ||
709 | int LA11_0 = input.LA(1); | ||
710 | |||
711 | if ( ((LA11_0>='\t' && LA11_0<='\n')||LA11_0=='\r'||LA11_0==' ') ) { | ||
712 | alt11=1; | ||
713 | } | ||
714 | |||
715 | |||
716 | switch (alt11) { | ||
717 | case 1 : | ||
718 | // InternalApplicationConfiguration.g: | ||
719 | { | ||
720 | if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) { | ||
721 | input.consume(); | ||
722 | |||
723 | } | ||
724 | else { | ||
725 | MismatchedSetException mse = new MismatchedSetException(null,input); | ||
726 | recover(mse); | ||
727 | throw mse;} | ||
728 | |||
729 | |||
730 | } | ||
731 | break; | ||
732 | |||
733 | default : | ||
734 | if ( cnt11 >= 1 ) break loop11; | ||
735 | EarlyExitException eee = | ||
736 | new EarlyExitException(11, input); | ||
737 | throw eee; | ||
738 | } | ||
739 | cnt11++; | ||
740 | } while (true); | ||
741 | |||
742 | |||
743 | } | ||
744 | |||
745 | state.type = _type; | ||
746 | state.channel = _channel; | ||
747 | } | ||
748 | finally { | ||
749 | } | ||
750 | } | ||
751 | // $ANTLR end "RULE_WS" | ||
752 | |||
753 | // $ANTLR start "RULE_ANY_OTHER" | ||
754 | public final void mRULE_ANY_OTHER() throws RecognitionException { | ||
755 | try { | ||
756 | int _type = RULE_ANY_OTHER; | ||
757 | int _channel = DEFAULT_TOKEN_CHANNEL; | ||
758 | // InternalApplicationConfiguration.g:659:16: ( . ) | ||
759 | // InternalApplicationConfiguration.g:659:18: . | ||
760 | { | ||
761 | matchAny(); | ||
762 | |||
763 | } | ||
764 | |||
765 | state.type = _type; | ||
766 | state.channel = _channel; | ||
767 | } | ||
768 | finally { | ||
769 | } | ||
770 | } | ||
771 | // $ANTLR end "RULE_ANY_OTHER" | ||
772 | |||
773 | public void mTokens() throws RecognitionException { | ||
774 | // InternalApplicationConfiguration.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 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER ) | ||
775 | int alt12=18; | ||
776 | alt12 = dfa12.predict(input); | ||
777 | switch (alt12) { | ||
778 | case 1 : | ||
779 | // InternalApplicationConfiguration.g:1:10: T__11 | ||
780 | { | ||
781 | mT__11(); | ||
782 | |||
783 | } | ||
784 | break; | ||
785 | case 2 : | ||
786 | // InternalApplicationConfiguration.g:1:16: T__12 | ||
787 | { | ||
788 | mT__12(); | ||
789 | |||
790 | } | ||
791 | break; | ||
792 | case 3 : | ||
793 | // InternalApplicationConfiguration.g:1:22: T__13 | ||
794 | { | ||
795 | mT__13(); | ||
796 | |||
797 | } | ||
798 | break; | ||
799 | case 4 : | ||
800 | // InternalApplicationConfiguration.g:1:28: T__14 | ||
801 | { | ||
802 | mT__14(); | ||
803 | |||
804 | } | ||
805 | break; | ||
806 | case 5 : | ||
807 | // InternalApplicationConfiguration.g:1:34: T__15 | ||
808 | { | ||
809 | mT__15(); | ||
810 | |||
811 | } | ||
812 | break; | ||
813 | case 6 : | ||
814 | // InternalApplicationConfiguration.g:1:40: T__16 | ||
815 | { | ||
816 | mT__16(); | ||
817 | |||
818 | } | ||
819 | break; | ||
820 | case 7 : | ||
821 | // InternalApplicationConfiguration.g:1:46: T__17 | ||
822 | { | ||
823 | mT__17(); | ||
824 | |||
825 | } | ||
826 | break; | ||
827 | case 8 : | ||
828 | // InternalApplicationConfiguration.g:1:52: T__18 | ||
829 | { | ||
830 | mT__18(); | ||
831 | |||
832 | } | ||
833 | break; | ||
834 | case 9 : | ||
835 | // InternalApplicationConfiguration.g:1:58: T__19 | ||
836 | { | ||
837 | mT__19(); | ||
838 | |||
839 | } | ||
840 | break; | ||
841 | case 10 : | ||
842 | // InternalApplicationConfiguration.g:1:64: T__20 | ||
843 | { | ||
844 | mT__20(); | ||
845 | |||
846 | } | ||
847 | break; | ||
848 | case 11 : | ||
849 | // InternalApplicationConfiguration.g:1:70: T__21 | ||
850 | { | ||
851 | mT__21(); | ||
852 | |||
853 | } | ||
854 | break; | ||
855 | case 12 : | ||
856 | // InternalApplicationConfiguration.g:1:76: RULE_ID | ||
857 | { | ||
858 | mRULE_ID(); | ||
859 | |||
860 | } | ||
861 | break; | ||
862 | case 13 : | ||
863 | // InternalApplicationConfiguration.g:1:84: RULE_INT | ||
864 | { | ||
865 | mRULE_INT(); | ||
866 | |||
867 | } | ||
868 | break; | ||
869 | case 14 : | ||
870 | // InternalApplicationConfiguration.g:1:93: RULE_STRING | ||
871 | { | ||
872 | mRULE_STRING(); | ||
873 | |||
874 | } | ||
875 | break; | ||
876 | case 15 : | ||
877 | // InternalApplicationConfiguration.g:1:105: RULE_ML_COMMENT | ||
878 | { | ||
879 | mRULE_ML_COMMENT(); | ||
880 | |||
881 | } | ||
882 | break; | ||
883 | case 16 : | ||
884 | // InternalApplicationConfiguration.g:1:121: RULE_SL_COMMENT | ||
885 | { | ||
886 | mRULE_SL_COMMENT(); | ||
887 | |||
888 | } | ||
889 | break; | ||
890 | case 17 : | ||
891 | // InternalApplicationConfiguration.g:1:137: RULE_WS | ||
892 | { | ||
893 | mRULE_WS(); | ||
894 | |||
895 | } | ||
896 | break; | ||
897 | case 18 : | ||
898 | // InternalApplicationConfiguration.g:1:145: RULE_ANY_OTHER | ||
899 | { | ||
900 | mRULE_ANY_OTHER(); | ||
901 | |||
902 | } | ||
903 | break; | ||
904 | |||
905 | } | ||
906 | |||
907 | } | ||
908 | |||
909 | |||
910 | protected DFA12 dfa12 = new DFA12(this); | ||
911 | static final String DFA12_eotS = | ||
912 | "\1\uffff\3\24\3\uffff\1\24\1\22\1\uffff\1\24\1\22\2\uffff\3\22\2\uffff\1\24\1\uffff\3\24\3\uffff\1\24\2\uffff\1\24\5\uffff\22\24\1\74\2\24\1\77\2\24\1\uffff\2\24\1\uffff\1\104\1\24\1\106\1\24\1\uffff\1\24\1\uffff\1\111\1\112\2\uffff"; | ||
913 | static final String DFA12_eofS = | ||
914 | "\113\uffff"; | ||
915 | static final String DFA12_minS = | ||
916 | "\1\0\1\155\1\160\1\151\3\uffff\1\141\1\72\1\uffff\1\145\1\101\2\uffff\2\0\1\52\2\uffff\1\160\1\uffff\1\141\1\143\1\141\3\uffff\1\143\2\uffff\1\164\5\uffff\1\157\1\143\1\154\1\164\1\153\1\141\1\162\1\153\1\165\1\162\1\141\1\155\1\164\1\141\1\144\1\141\1\147\1\157\1\60\1\147\1\151\1\60\1\145\1\144\1\uffff\1\145\1\156\1\uffff\1\60\1\145\1\60\1\147\1\uffff\1\154\1\uffff\2\60\2\uffff"; | ||
917 | static final String DFA12_maxS = | ||
918 | "\1\uffff\1\155\1\170\1\151\3\uffff\1\141\1\72\1\uffff\1\145\1\172\2\uffff\2\uffff\1\57\2\uffff\1\160\1\uffff\1\141\1\143\1\141\3\uffff\1\143\2\uffff\1\164\5\uffff\1\157\1\143\1\154\1\164\1\153\1\141\1\162\1\153\1\165\1\162\1\141\1\155\1\164\1\141\1\144\1\141\1\147\1\157\1\172\1\147\1\151\1\172\1\145\1\144\1\uffff\1\145\1\156\1\uffff\1\172\1\145\1\172\1\147\1\uffff\1\154\1\uffff\2\172\2\uffff"; | ||
919 | static final String DFA12_acceptS = | ||
920 | "\4\uffff\1\4\1\5\1\6\2\uffff\1\12\2\uffff\1\14\1\15\3\uffff\1\21\1\22\1\uffff\1\14\3\uffff\1\4\1\5\1\6\1\uffff\1\11\1\12\1\uffff\1\15\1\16\1\17\1\20\1\21\30\uffff\1\1\2\uffff\1\3\4\uffff\1\7\1\uffff\1\2\2\uffff\1\10\1\13"; | ||
921 | static final String DFA12_specialS = | ||
922 | "\1\1\15\uffff\1\0\1\2\73\uffff}>"; | ||
923 | static final String[] DFA12_transitionS = { | ||
924 | "\11\22\2\21\2\22\1\21\22\22\1\21\1\22\1\16\4\22\1\17\4\22\1\5\1\22\1\11\1\20\12\15\1\10\6\22\32\14\3\22\1\13\1\14\1\22\4\14\1\2\3\14\1\1\3\14\1\12\2\14\1\7\5\14\1\3\4\14\1\4\1\22\1\6\uff82\22", | ||
925 | "\1\23", | ||
926 | "\1\25\7\uffff\1\26", | ||
927 | "\1\27", | ||
928 | "", | ||
929 | "", | ||
930 | "", | ||
931 | "\1\33", | ||
932 | "\1\34", | ||
933 | "", | ||
934 | "\1\36", | ||
935 | "\32\24\4\uffff\1\24\1\uffff\32\24", | ||
936 | "", | ||
937 | "", | ||
938 | "\0\40", | ||
939 | "\0\40", | ||
940 | "\1\41\4\uffff\1\42", | ||
941 | "", | ||
942 | "", | ||
943 | "\1\44", | ||
944 | "", | ||
945 | "\1\45", | ||
946 | "\1\46", | ||
947 | "\1\47", | ||
948 | "", | ||
949 | "", | ||
950 | "", | ||
951 | "\1\50", | ||
952 | "", | ||
953 | "", | ||
954 | "\1\51", | ||
955 | "", | ||
956 | "", | ||
957 | "", | ||
958 | "", | ||
959 | "", | ||
960 | "\1\52", | ||
961 | "\1\53", | ||
962 | "\1\54", | ||
963 | "\1\55", | ||
964 | "\1\56", | ||
965 | "\1\57", | ||
966 | "\1\60", | ||
967 | "\1\61", | ||
968 | "\1\62", | ||
969 | "\1\63", | ||
970 | "\1\64", | ||
971 | "\1\65", | ||
972 | "\1\66", | ||
973 | "\1\67", | ||
974 | "\1\70", | ||
975 | "\1\71", | ||
976 | "\1\72", | ||
977 | "\1\73", | ||
978 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
979 | "\1\75", | ||
980 | "\1\76", | ||
981 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
982 | "\1\100", | ||
983 | "\1\101", | ||
984 | "", | ||
985 | "\1\102", | ||
986 | "\1\103", | ||
987 | "", | ||
988 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
989 | "\1\105", | ||
990 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
991 | "\1\107", | ||
992 | "", | ||
993 | "\1\110", | ||
994 | "", | ||
995 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
996 | "\12\24\7\uffff\32\24\4\uffff\1\24\1\uffff\32\24", | ||
997 | "", | ||
998 | "" | ||
999 | }; | ||
1000 | |||
1001 | static final short[] DFA12_eot = DFA.unpackEncodedString(DFA12_eotS); | ||
1002 | static final short[] DFA12_eof = DFA.unpackEncodedString(DFA12_eofS); | ||
1003 | static final char[] DFA12_min = DFA.unpackEncodedStringToUnsignedChars(DFA12_minS); | ||
1004 | static final char[] DFA12_max = DFA.unpackEncodedStringToUnsignedChars(DFA12_maxS); | ||
1005 | static final short[] DFA12_accept = DFA.unpackEncodedString(DFA12_acceptS); | ||
1006 | static final short[] DFA12_special = DFA.unpackEncodedString(DFA12_specialS); | ||
1007 | static final short[][] DFA12_transition; | ||
1008 | |||
1009 | static { | ||
1010 | int numStates = DFA12_transitionS.length; | ||
1011 | DFA12_transition = new short[numStates][]; | ||
1012 | for (int i=0; i<numStates; i++) { | ||
1013 | DFA12_transition[i] = DFA.unpackEncodedString(DFA12_transitionS[i]); | ||
1014 | } | ||
1015 | } | ||
1016 | |||
1017 | class DFA12 extends DFA { | ||
1018 | |||
1019 | public DFA12(BaseRecognizer recognizer) { | ||
1020 | this.recognizer = recognizer; | ||
1021 | this.decisionNumber = 12; | ||
1022 | this.eot = DFA12_eot; | ||
1023 | this.eof = DFA12_eof; | ||
1024 | this.min = DFA12_min; | ||
1025 | this.max = DFA12_max; | ||
1026 | this.accept = DFA12_accept; | ||
1027 | this.special = DFA12_special; | ||
1028 | this.transition = DFA12_transition; | ||
1029 | } | ||
1030 | public String getDescription() { | ||
1031 | return "1:1: Tokens : ( T__11 | T__12 | T__13 | T__14 | T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | RULE_ID | RULE_INT | RULE_STRING | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS | RULE_ANY_OTHER );"; | ||
1032 | } | ||
1033 | public int specialStateTransition(int s, IntStream _input) throws NoViableAltException { | ||
1034 | IntStream input = _input; | ||
1035 | int _s = s; | ||
1036 | switch ( s ) { | ||
1037 | case 0 : | ||
1038 | int LA12_14 = input.LA(1); | ||
1039 | |||
1040 | s = -1; | ||
1041 | if ( ((LA12_14>='\u0000' && LA12_14<='\uFFFF')) ) {s = 32;} | ||
1042 | |||
1043 | else s = 18; | ||
1044 | |||
1045 | if ( s>=0 ) return s; | ||
1046 | break; | ||
1047 | case 1 : | ||
1048 | int LA12_0 = input.LA(1); | ||
1049 | |||
1050 | s = -1; | ||
1051 | if ( (LA12_0=='i') ) {s = 1;} | ||
1052 | |||
1053 | else if ( (LA12_0=='e') ) {s = 2;} | ||
1054 | |||
1055 | else if ( (LA12_0=='v') ) {s = 3;} | ||
1056 | |||
1057 | else if ( (LA12_0=='{') ) {s = 4;} | ||
1058 | |||
1059 | else if ( (LA12_0==',') ) {s = 5;} | ||
1060 | |||
1061 | else if ( (LA12_0=='}') ) {s = 6;} | ||
1062 | |||
1063 | else if ( (LA12_0=='p') ) {s = 7;} | ||
1064 | |||
1065 | else if ( (LA12_0==':') ) {s = 8;} | ||
1066 | |||
1067 | else if ( (LA12_0=='.') ) {s = 9;} | ||
1068 | |||
1069 | else if ( (LA12_0=='m') ) {s = 10;} | ||
1070 | |||
1071 | else if ( (LA12_0=='^') ) {s = 11;} | ||
1072 | |||
1073 | else if ( ((LA12_0>='A' && LA12_0<='Z')||LA12_0=='_'||(LA12_0>='a' && LA12_0<='d')||(LA12_0>='f' && LA12_0<='h')||(LA12_0>='j' && LA12_0<='l')||(LA12_0>='n' && LA12_0<='o')||(LA12_0>='q' && LA12_0<='u')||(LA12_0>='w' && LA12_0<='z')) ) {s = 12;} | ||
1074 | |||
1075 | else if ( ((LA12_0>='0' && LA12_0<='9')) ) {s = 13;} | ||
1076 | |||
1077 | else if ( (LA12_0=='\"') ) {s = 14;} | ||
1078 | |||
1079 | else if ( (LA12_0=='\'') ) {s = 15;} | ||
1080 | |||
1081 | else if ( (LA12_0=='/') ) {s = 16;} | ||
1082 | |||
1083 | else if ( ((LA12_0>='\t' && LA12_0<='\n')||LA12_0=='\r'||LA12_0==' ') ) {s = 17;} | ||
1084 | |||
1085 | 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>='~' && LA12_0<='\uFFFF')) ) {s = 18;} | ||
1086 | |||
1087 | if ( s>=0 ) return s; | ||
1088 | break; | ||
1089 | case 2 : | ||
1090 | int LA12_15 = input.LA(1); | ||
1091 | |||
1092 | s = -1; | ||
1093 | if ( ((LA12_15>='\u0000' && LA12_15<='\uFFFF')) ) {s = 32;} | ||
1094 | |||
1095 | else s = 18; | ||
1096 | |||
1097 | if ( s>=0 ) return s; | ||
1098 | break; | ||
1099 | } | ||
1100 | NoViableAltException nvae = | ||
1101 | new NoViableAltException(getDescription(), 12, _s, input); | ||
1102 | error(nvae); | ||
1103 | throw nvae; | ||
1104 | } | ||
1105 | } | ||
1106 | |||
1107 | |||
1108 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java new file mode 100644 index 00000000..7387e45b --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/parser/antlr/internal/InternalApplicationConfigurationParser.java | |||
@@ -0,0 +1,1746 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal; | ||
2 | |||
3 | import org.eclipse.xtext.*; | ||
4 | import org.eclipse.xtext.parser.*; | ||
5 | import org.eclipse.xtext.parser.impl.*; | ||
6 | import org.eclipse.emf.ecore.util.EcoreUtil; | ||
7 | import org.eclipse.emf.ecore.EObject; | ||
8 | import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser; | ||
9 | import org.eclipse.xtext.parser.antlr.XtextTokenStream; | ||
10 | import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens; | ||
11 | import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
13 | |||
14 | |||
15 | |||
16 | import org.antlr.runtime.*; | ||
17 | import java.util.Stack; | ||
18 | import java.util.List; | ||
19 | import java.util.ArrayList; | ||
20 | |||
21 | @SuppressWarnings("all") | ||
22 | public class InternalApplicationConfigurationParser extends AbstractInternalAntlrParser { | ||
23 | public static final String[] tokenNames = new String[] { | ||
24 | "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_STRING", "RULE_ID", "RULE_INT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "RULE_ANY_OTHER", "'import'", "'epackage'", "'viatra'", "'{'", "','", "'}'", "'package'", "'excluding'", "'::'", "'.'", "'metamodel'" | ||
25 | }; | ||
26 | public static final int RULE_STRING=4; | ||
27 | public static final int RULE_SL_COMMENT=8; | ||
28 | public static final int T__19=19; | ||
29 | public static final int T__15=15; | ||
30 | public static final int T__16=16; | ||
31 | public static final int T__17=17; | ||
32 | public static final int T__18=18; | ||
33 | public static final int T__11=11; | ||
34 | public static final int T__12=12; | ||
35 | public static final int T__13=13; | ||
36 | public static final int T__14=14; | ||
37 | public static final int EOF=-1; | ||
38 | public static final int RULE_ID=5; | ||
39 | public static final int RULE_WS=9; | ||
40 | public static final int RULE_ANY_OTHER=10; | ||
41 | public static final int RULE_INT=6; | ||
42 | public static final int RULE_ML_COMMENT=7; | ||
43 | public static final int T__20=20; | ||
44 | public static final int T__21=21; | ||
45 | |||
46 | // delegates | ||
47 | // delegators | ||
48 | |||
49 | |||
50 | public InternalApplicationConfigurationParser(TokenStream input) { | ||
51 | this(input, new RecognizerSharedState()); | ||
52 | } | ||
53 | public InternalApplicationConfigurationParser(TokenStream input, RecognizerSharedState state) { | ||
54 | super(input, state); | ||
55 | |||
56 | } | ||
57 | |||
58 | |||
59 | public String[] getTokenNames() { return InternalApplicationConfigurationParser.tokenNames; } | ||
60 | public String getGrammarFileName() { return "InternalApplicationConfiguration.g"; } | ||
61 | |||
62 | |||
63 | |||
64 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
65 | |||
66 | public InternalApplicationConfigurationParser(TokenStream input, ApplicationConfigurationGrammarAccess grammarAccess) { | ||
67 | this(input); | ||
68 | this.grammarAccess = grammarAccess; | ||
69 | registerRules(grammarAccess.getGrammar()); | ||
70 | } | ||
71 | |||
72 | @Override | ||
73 | protected String getFirstRuleName() { | ||
74 | return "ConfigurationScript"; | ||
75 | } | ||
76 | |||
77 | @Override | ||
78 | protected ApplicationConfigurationGrammarAccess getGrammarAccess() { | ||
79 | return grammarAccess; | ||
80 | } | ||
81 | |||
82 | |||
83 | |||
84 | |||
85 | // $ANTLR start "entryRuleConfigurationScript" | ||
86 | // InternalApplicationConfiguration.g:64:1: entryRuleConfigurationScript returns [EObject current=null] : iv_ruleConfigurationScript= ruleConfigurationScript EOF ; | ||
87 | public final EObject entryRuleConfigurationScript() throws RecognitionException { | ||
88 | EObject current = null; | ||
89 | |||
90 | EObject iv_ruleConfigurationScript = null; | ||
91 | |||
92 | |||
93 | try { | ||
94 | // InternalApplicationConfiguration.g:64:60: (iv_ruleConfigurationScript= ruleConfigurationScript EOF ) | ||
95 | // InternalApplicationConfiguration.g:65:2: iv_ruleConfigurationScript= ruleConfigurationScript EOF | ||
96 | { | ||
97 | newCompositeNode(grammarAccess.getConfigurationScriptRule()); | ||
98 | pushFollow(FOLLOW_1); | ||
99 | iv_ruleConfigurationScript=ruleConfigurationScript(); | ||
100 | |||
101 | state._fsp--; | ||
102 | |||
103 | current =iv_ruleConfigurationScript; | ||
104 | match(input,EOF,FOLLOW_2); | ||
105 | |||
106 | } | ||
107 | |||
108 | } | ||
109 | |||
110 | catch (RecognitionException re) { | ||
111 | recover(input,re); | ||
112 | appendSkippedTokens(); | ||
113 | } | ||
114 | finally { | ||
115 | } | ||
116 | return current; | ||
117 | } | ||
118 | // $ANTLR end "entryRuleConfigurationScript" | ||
119 | |||
120 | |||
121 | // $ANTLR start "ruleConfigurationScript" | ||
122 | // InternalApplicationConfiguration.g:71:1: ruleConfigurationScript returns [EObject current=null] : ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) ; | ||
123 | public final EObject ruleConfigurationScript() throws RecognitionException { | ||
124 | EObject current = null; | ||
125 | |||
126 | EObject lv_imports_0_0 = null; | ||
127 | |||
128 | EObject lv_commands_1_0 = null; | ||
129 | |||
130 | |||
131 | |||
132 | enterRule(); | ||
133 | |||
134 | try { | ||
135 | // InternalApplicationConfiguration.g:77:2: ( ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) ) | ||
136 | // InternalApplicationConfiguration.g:78:2: ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) | ||
137 | { | ||
138 | // InternalApplicationConfiguration.g:78:2: ( ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* ) | ||
139 | // InternalApplicationConfiguration.g:79:3: ( (lv_imports_0_0= ruleImport ) )* ( (lv_commands_1_0= ruleCommand ) )* | ||
140 | { | ||
141 | // InternalApplicationConfiguration.g:79:3: ( (lv_imports_0_0= ruleImport ) )* | ||
142 | loop1: | ||
143 | do { | ||
144 | int alt1=2; | ||
145 | int LA1_0 = input.LA(1); | ||
146 | |||
147 | if ( (LA1_0==11) ) { | ||
148 | alt1=1; | ||
149 | } | ||
150 | |||
151 | |||
152 | switch (alt1) { | ||
153 | case 1 : | ||
154 | // InternalApplicationConfiguration.g:80:4: (lv_imports_0_0= ruleImport ) | ||
155 | { | ||
156 | // InternalApplicationConfiguration.g:80:4: (lv_imports_0_0= ruleImport ) | ||
157 | // InternalApplicationConfiguration.g:81:5: lv_imports_0_0= ruleImport | ||
158 | { | ||
159 | |||
160 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getImportsImportParserRuleCall_0_0()); | ||
161 | |||
162 | pushFollow(FOLLOW_3); | ||
163 | lv_imports_0_0=ruleImport(); | ||
164 | |||
165 | state._fsp--; | ||
166 | |||
167 | |||
168 | if (current==null) { | ||
169 | current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | ||
170 | } | ||
171 | add( | ||
172 | current, | ||
173 | "imports", | ||
174 | lv_imports_0_0, | ||
175 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); | ||
176 | afterParserOrEnumRuleCall(); | ||
177 | |||
178 | |||
179 | } | ||
180 | |||
181 | |||
182 | } | ||
183 | break; | ||
184 | |||
185 | default : | ||
186 | break loop1; | ||
187 | } | ||
188 | } while (true); | ||
189 | |||
190 | // InternalApplicationConfiguration.g:98:3: ( (lv_commands_1_0= ruleCommand ) )* | ||
191 | loop2: | ||
192 | do { | ||
193 | int alt2=2; | ||
194 | int LA2_0 = input.LA(1); | ||
195 | |||
196 | if ( (LA2_0==21) ) { | ||
197 | alt2=1; | ||
198 | } | ||
199 | |||
200 | |||
201 | switch (alt2) { | ||
202 | case 1 : | ||
203 | // InternalApplicationConfiguration.g:99:4: (lv_commands_1_0= ruleCommand ) | ||
204 | { | ||
205 | // InternalApplicationConfiguration.g:99:4: (lv_commands_1_0= ruleCommand ) | ||
206 | // InternalApplicationConfiguration.g:100:5: lv_commands_1_0= ruleCommand | ||
207 | { | ||
208 | |||
209 | newCompositeNode(grammarAccess.getConfigurationScriptAccess().getCommandsCommandParserRuleCall_1_0()); | ||
210 | |||
211 | pushFollow(FOLLOW_4); | ||
212 | lv_commands_1_0=ruleCommand(); | ||
213 | |||
214 | state._fsp--; | ||
215 | |||
216 | |||
217 | if (current==null) { | ||
218 | current = createModelElementForParent(grammarAccess.getConfigurationScriptRule()); | ||
219 | } | ||
220 | add( | ||
221 | current, | ||
222 | "commands", | ||
223 | lv_commands_1_0, | ||
224 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); | ||
225 | afterParserOrEnumRuleCall(); | ||
226 | |||
227 | |||
228 | } | ||
229 | |||
230 | |||
231 | } | ||
232 | break; | ||
233 | |||
234 | default : | ||
235 | break loop2; | ||
236 | } | ||
237 | } while (true); | ||
238 | |||
239 | |||
240 | } | ||
241 | |||
242 | |||
243 | } | ||
244 | |||
245 | |||
246 | leaveRule(); | ||
247 | |||
248 | } | ||
249 | |||
250 | catch (RecognitionException re) { | ||
251 | recover(input,re); | ||
252 | appendSkippedTokens(); | ||
253 | } | ||
254 | finally { | ||
255 | } | ||
256 | return current; | ||
257 | } | ||
258 | // $ANTLR end "ruleConfigurationScript" | ||
259 | |||
260 | |||
261 | // $ANTLR start "entryRuleCommand" | ||
262 | // InternalApplicationConfiguration.g:121:1: entryRuleCommand returns [EObject current=null] : iv_ruleCommand= ruleCommand EOF ; | ||
263 | public final EObject entryRuleCommand() throws RecognitionException { | ||
264 | EObject current = null; | ||
265 | |||
266 | EObject iv_ruleCommand = null; | ||
267 | |||
268 | |||
269 | try { | ||
270 | // InternalApplicationConfiguration.g:121:48: (iv_ruleCommand= ruleCommand EOF ) | ||
271 | // InternalApplicationConfiguration.g:122:2: iv_ruleCommand= ruleCommand EOF | ||
272 | { | ||
273 | newCompositeNode(grammarAccess.getCommandRule()); | ||
274 | pushFollow(FOLLOW_1); | ||
275 | iv_ruleCommand=ruleCommand(); | ||
276 | |||
277 | state._fsp--; | ||
278 | |||
279 | current =iv_ruleCommand; | ||
280 | match(input,EOF,FOLLOW_2); | ||
281 | |||
282 | } | ||
283 | |||
284 | } | ||
285 | |||
286 | catch (RecognitionException re) { | ||
287 | recover(input,re); | ||
288 | appendSkippedTokens(); | ||
289 | } | ||
290 | finally { | ||
291 | } | ||
292 | return current; | ||
293 | } | ||
294 | // $ANTLR end "entryRuleCommand" | ||
295 | |||
296 | |||
297 | // $ANTLR start "ruleCommand" | ||
298 | // InternalApplicationConfiguration.g:128:1: ruleCommand returns [EObject current=null] : this_Declaration_0= ruleDeclaration ; | ||
299 | public final EObject ruleCommand() throws RecognitionException { | ||
300 | EObject current = null; | ||
301 | |||
302 | EObject this_Declaration_0 = null; | ||
303 | |||
304 | |||
305 | |||
306 | enterRule(); | ||
307 | |||
308 | try { | ||
309 | // InternalApplicationConfiguration.g:134:2: (this_Declaration_0= ruleDeclaration ) | ||
310 | // InternalApplicationConfiguration.g:135:2: this_Declaration_0= ruleDeclaration | ||
311 | { | ||
312 | |||
313 | newCompositeNode(grammarAccess.getCommandAccess().getDeclarationParserRuleCall()); | ||
314 | |||
315 | pushFollow(FOLLOW_2); | ||
316 | this_Declaration_0=ruleDeclaration(); | ||
317 | |||
318 | state._fsp--; | ||
319 | |||
320 | |||
321 | current = this_Declaration_0; | ||
322 | afterParserOrEnumRuleCall(); | ||
323 | |||
324 | |||
325 | } | ||
326 | |||
327 | |||
328 | leaveRule(); | ||
329 | |||
330 | } | ||
331 | |||
332 | catch (RecognitionException re) { | ||
333 | recover(input,re); | ||
334 | appendSkippedTokens(); | ||
335 | } | ||
336 | finally { | ||
337 | } | ||
338 | return current; | ||
339 | } | ||
340 | // $ANTLR end "ruleCommand" | ||
341 | |||
342 | |||
343 | // $ANTLR start "entryRuleDeclaration" | ||
344 | // InternalApplicationConfiguration.g:146:1: entryRuleDeclaration returns [EObject current=null] : iv_ruleDeclaration= ruleDeclaration EOF ; | ||
345 | public final EObject entryRuleDeclaration() throws RecognitionException { | ||
346 | EObject current = null; | ||
347 | |||
348 | EObject iv_ruleDeclaration = null; | ||
349 | |||
350 | |||
351 | try { | ||
352 | // InternalApplicationConfiguration.g:146:52: (iv_ruleDeclaration= ruleDeclaration EOF ) | ||
353 | // InternalApplicationConfiguration.g:147:2: iv_ruleDeclaration= ruleDeclaration EOF | ||
354 | { | ||
355 | newCompositeNode(grammarAccess.getDeclarationRule()); | ||
356 | pushFollow(FOLLOW_1); | ||
357 | iv_ruleDeclaration=ruleDeclaration(); | ||
358 | |||
359 | state._fsp--; | ||
360 | |||
361 | current =iv_ruleDeclaration; | ||
362 | match(input,EOF,FOLLOW_2); | ||
363 | |||
364 | } | ||
365 | |||
366 | } | ||
367 | |||
368 | catch (RecognitionException re) { | ||
369 | recover(input,re); | ||
370 | appendSkippedTokens(); | ||
371 | } | ||
372 | finally { | ||
373 | } | ||
374 | return current; | ||
375 | } | ||
376 | // $ANTLR end "entryRuleDeclaration" | ||
377 | |||
378 | |||
379 | // $ANTLR start "ruleDeclaration" | ||
380 | // InternalApplicationConfiguration.g:153:1: ruleDeclaration returns [EObject current=null] : this_MetamodelDeclaration_0= ruleMetamodelDeclaration ; | ||
381 | public final EObject ruleDeclaration() throws RecognitionException { | ||
382 | EObject current = null; | ||
383 | |||
384 | EObject this_MetamodelDeclaration_0 = null; | ||
385 | |||
386 | |||
387 | |||
388 | enterRule(); | ||
389 | |||
390 | try { | ||
391 | // InternalApplicationConfiguration.g:159:2: (this_MetamodelDeclaration_0= ruleMetamodelDeclaration ) | ||
392 | // InternalApplicationConfiguration.g:160:2: this_MetamodelDeclaration_0= ruleMetamodelDeclaration | ||
393 | { | ||
394 | |||
395 | newCompositeNode(grammarAccess.getDeclarationAccess().getMetamodelDeclarationParserRuleCall()); | ||
396 | |||
397 | pushFollow(FOLLOW_2); | ||
398 | this_MetamodelDeclaration_0=ruleMetamodelDeclaration(); | ||
399 | |||
400 | state._fsp--; | ||
401 | |||
402 | |||
403 | current = this_MetamodelDeclaration_0; | ||
404 | afterParserOrEnumRuleCall(); | ||
405 | |||
406 | |||
407 | } | ||
408 | |||
409 | |||
410 | leaveRule(); | ||
411 | |||
412 | } | ||
413 | |||
414 | catch (RecognitionException re) { | ||
415 | recover(input,re); | ||
416 | appendSkippedTokens(); | ||
417 | } | ||
418 | finally { | ||
419 | } | ||
420 | return current; | ||
421 | } | ||
422 | // $ANTLR end "ruleDeclaration" | ||
423 | |||
424 | |||
425 | // $ANTLR start "entryRuleImport" | ||
426 | // InternalApplicationConfiguration.g:171:1: entryRuleImport returns [EObject current=null] : iv_ruleImport= ruleImport EOF ; | ||
427 | public final EObject entryRuleImport() throws RecognitionException { | ||
428 | EObject current = null; | ||
429 | |||
430 | EObject iv_ruleImport = null; | ||
431 | |||
432 | |||
433 | try { | ||
434 | // InternalApplicationConfiguration.g:171:47: (iv_ruleImport= ruleImport EOF ) | ||
435 | // InternalApplicationConfiguration.g:172:2: iv_ruleImport= ruleImport EOF | ||
436 | { | ||
437 | newCompositeNode(grammarAccess.getImportRule()); | ||
438 | pushFollow(FOLLOW_1); | ||
439 | iv_ruleImport=ruleImport(); | ||
440 | |||
441 | state._fsp--; | ||
442 | |||
443 | current =iv_ruleImport; | ||
444 | match(input,EOF,FOLLOW_2); | ||
445 | |||
446 | } | ||
447 | |||
448 | } | ||
449 | |||
450 | catch (RecognitionException re) { | ||
451 | recover(input,re); | ||
452 | appendSkippedTokens(); | ||
453 | } | ||
454 | finally { | ||
455 | } | ||
456 | return current; | ||
457 | } | ||
458 | // $ANTLR end "entryRuleImport" | ||
459 | |||
460 | |||
461 | // $ANTLR start "ruleImport" | ||
462 | // InternalApplicationConfiguration.g:178:1: ruleImport returns [EObject current=null] : (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) ; | ||
463 | public final EObject ruleImport() throws RecognitionException { | ||
464 | EObject current = null; | ||
465 | |||
466 | EObject this_EPackageImport_0 = null; | ||
467 | |||
468 | EObject this_ViatraImport_1 = null; | ||
469 | |||
470 | |||
471 | |||
472 | enterRule(); | ||
473 | |||
474 | try { | ||
475 | // InternalApplicationConfiguration.g:184:2: ( (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) ) | ||
476 | // InternalApplicationConfiguration.g:185:2: (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) | ||
477 | { | ||
478 | // InternalApplicationConfiguration.g:185:2: (this_EPackageImport_0= ruleEPackageImport | this_ViatraImport_1= ruleViatraImport ) | ||
479 | int alt3=2; | ||
480 | int LA3_0 = input.LA(1); | ||
481 | |||
482 | if ( (LA3_0==11) ) { | ||
483 | int LA3_1 = input.LA(2); | ||
484 | |||
485 | if ( (LA3_1==12) ) { | ||
486 | alt3=1; | ||
487 | } | ||
488 | else if ( (LA3_1==13) ) { | ||
489 | alt3=2; | ||
490 | } | ||
491 | else { | ||
492 | NoViableAltException nvae = | ||
493 | new NoViableAltException("", 3, 1, input); | ||
494 | |||
495 | throw nvae; | ||
496 | } | ||
497 | } | ||
498 | else { | ||
499 | NoViableAltException nvae = | ||
500 | new NoViableAltException("", 3, 0, input); | ||
501 | |||
502 | throw nvae; | ||
503 | } | ||
504 | switch (alt3) { | ||
505 | case 1 : | ||
506 | // InternalApplicationConfiguration.g:186:3: this_EPackageImport_0= ruleEPackageImport | ||
507 | { | ||
508 | |||
509 | newCompositeNode(grammarAccess.getImportAccess().getEPackageImportParserRuleCall_0()); | ||
510 | |||
511 | pushFollow(FOLLOW_2); | ||
512 | this_EPackageImport_0=ruleEPackageImport(); | ||
513 | |||
514 | state._fsp--; | ||
515 | |||
516 | |||
517 | current = this_EPackageImport_0; | ||
518 | afterParserOrEnumRuleCall(); | ||
519 | |||
520 | |||
521 | } | ||
522 | break; | ||
523 | case 2 : | ||
524 | // InternalApplicationConfiguration.g:195:3: this_ViatraImport_1= ruleViatraImport | ||
525 | { | ||
526 | |||
527 | newCompositeNode(grammarAccess.getImportAccess().getViatraImportParserRuleCall_1()); | ||
528 | |||
529 | pushFollow(FOLLOW_2); | ||
530 | this_ViatraImport_1=ruleViatraImport(); | ||
531 | |||
532 | state._fsp--; | ||
533 | |||
534 | |||
535 | current = this_ViatraImport_1; | ||
536 | afterParserOrEnumRuleCall(); | ||
537 | |||
538 | |||
539 | } | ||
540 | break; | ||
541 | |||
542 | } | ||
543 | |||
544 | |||
545 | } | ||
546 | |||
547 | |||
548 | leaveRule(); | ||
549 | |||
550 | } | ||
551 | |||
552 | catch (RecognitionException re) { | ||
553 | recover(input,re); | ||
554 | appendSkippedTokens(); | ||
555 | } | ||
556 | finally { | ||
557 | } | ||
558 | return current; | ||
559 | } | ||
560 | // $ANTLR end "ruleImport" | ||
561 | |||
562 | |||
563 | // $ANTLR start "entryRuleEPackageImport" | ||
564 | // InternalApplicationConfiguration.g:207:1: entryRuleEPackageImport returns [EObject current=null] : iv_ruleEPackageImport= ruleEPackageImport EOF ; | ||
565 | public final EObject entryRuleEPackageImport() throws RecognitionException { | ||
566 | EObject current = null; | ||
567 | |||
568 | EObject iv_ruleEPackageImport = null; | ||
569 | |||
570 | |||
571 | try { | ||
572 | // InternalApplicationConfiguration.g:207:55: (iv_ruleEPackageImport= ruleEPackageImport EOF ) | ||
573 | // InternalApplicationConfiguration.g:208:2: iv_ruleEPackageImport= ruleEPackageImport EOF | ||
574 | { | ||
575 | newCompositeNode(grammarAccess.getEPackageImportRule()); | ||
576 | pushFollow(FOLLOW_1); | ||
577 | iv_ruleEPackageImport=ruleEPackageImport(); | ||
578 | |||
579 | state._fsp--; | ||
580 | |||
581 | current =iv_ruleEPackageImport; | ||
582 | match(input,EOF,FOLLOW_2); | ||
583 | |||
584 | } | ||
585 | |||
586 | } | ||
587 | |||
588 | catch (RecognitionException re) { | ||
589 | recover(input,re); | ||
590 | appendSkippedTokens(); | ||
591 | } | ||
592 | finally { | ||
593 | } | ||
594 | return current; | ||
595 | } | ||
596 | // $ANTLR end "entryRuleEPackageImport" | ||
597 | |||
598 | |||
599 | // $ANTLR start "ruleEPackageImport" | ||
600 | // InternalApplicationConfiguration.g:214:1: ruleEPackageImport returns [EObject current=null] : (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) ; | ||
601 | public final EObject ruleEPackageImport() throws RecognitionException { | ||
602 | EObject current = null; | ||
603 | |||
604 | Token otherlv_0=null; | ||
605 | Token otherlv_1=null; | ||
606 | Token otherlv_2=null; | ||
607 | |||
608 | |||
609 | enterRule(); | ||
610 | |||
611 | try { | ||
612 | // InternalApplicationConfiguration.g:220:2: ( (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) ) | ||
613 | // InternalApplicationConfiguration.g:221:2: (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) | ||
614 | { | ||
615 | // InternalApplicationConfiguration.g:221:2: (otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) ) | ||
616 | // InternalApplicationConfiguration.g:222:3: otherlv_0= 'import' otherlv_1= 'epackage' ( (otherlv_2= RULE_STRING ) ) | ||
617 | { | ||
618 | otherlv_0=(Token)match(input,11,FOLLOW_5); | ||
619 | |||
620 | newLeafNode(otherlv_0, grammarAccess.getEPackageImportAccess().getImportKeyword_0()); | ||
621 | |||
622 | otherlv_1=(Token)match(input,12,FOLLOW_6); | ||
623 | |||
624 | newLeafNode(otherlv_1, grammarAccess.getEPackageImportAccess().getEpackageKeyword_1()); | ||
625 | |||
626 | // InternalApplicationConfiguration.g:230:3: ( (otherlv_2= RULE_STRING ) ) | ||
627 | // InternalApplicationConfiguration.g:231:4: (otherlv_2= RULE_STRING ) | ||
628 | { | ||
629 | // InternalApplicationConfiguration.g:231:4: (otherlv_2= RULE_STRING ) | ||
630 | // InternalApplicationConfiguration.g:232:5: otherlv_2= RULE_STRING | ||
631 | { | ||
632 | |||
633 | if (current==null) { | ||
634 | current = createModelElement(grammarAccess.getEPackageImportRule()); | ||
635 | } | ||
636 | |||
637 | otherlv_2=(Token)match(input,RULE_STRING,FOLLOW_2); | ||
638 | |||
639 | newLeafNode(otherlv_2, grammarAccess.getEPackageImportAccess().getImportedPackageEPackageCrossReference_2_0()); | ||
640 | |||
641 | |||
642 | } | ||
643 | |||
644 | |||
645 | } | ||
646 | |||
647 | |||
648 | } | ||
649 | |||
650 | |||
651 | } | ||
652 | |||
653 | |||
654 | leaveRule(); | ||
655 | |||
656 | } | ||
657 | |||
658 | catch (RecognitionException re) { | ||
659 | recover(input,re); | ||
660 | appendSkippedTokens(); | ||
661 | } | ||
662 | finally { | ||
663 | } | ||
664 | return current; | ||
665 | } | ||
666 | // $ANTLR end "ruleEPackageImport" | ||
667 | |||
668 | |||
669 | // $ANTLR start "entryRuleViatraImport" | ||
670 | // InternalApplicationConfiguration.g:247:1: entryRuleViatraImport returns [EObject current=null] : iv_ruleViatraImport= ruleViatraImport EOF ; | ||
671 | public final EObject entryRuleViatraImport() throws RecognitionException { | ||
672 | EObject current = null; | ||
673 | |||
674 | EObject iv_ruleViatraImport = null; | ||
675 | |||
676 | |||
677 | try { | ||
678 | // InternalApplicationConfiguration.g:247:53: (iv_ruleViatraImport= ruleViatraImport EOF ) | ||
679 | // InternalApplicationConfiguration.g:248:2: iv_ruleViatraImport= ruleViatraImport EOF | ||
680 | { | ||
681 | newCompositeNode(grammarAccess.getViatraImportRule()); | ||
682 | pushFollow(FOLLOW_1); | ||
683 | iv_ruleViatraImport=ruleViatraImport(); | ||
684 | |||
685 | state._fsp--; | ||
686 | |||
687 | current =iv_ruleViatraImport; | ||
688 | match(input,EOF,FOLLOW_2); | ||
689 | |||
690 | } | ||
691 | |||
692 | } | ||
693 | |||
694 | catch (RecognitionException re) { | ||
695 | recover(input,re); | ||
696 | appendSkippedTokens(); | ||
697 | } | ||
698 | finally { | ||
699 | } | ||
700 | return current; | ||
701 | } | ||
702 | // $ANTLR end "entryRuleViatraImport" | ||
703 | |||
704 | |||
705 | // $ANTLR start "ruleViatraImport" | ||
706 | // InternalApplicationConfiguration.g:254:1: ruleViatraImport returns [EObject current=null] : (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) ; | ||
707 | public final EObject ruleViatraImport() throws RecognitionException { | ||
708 | EObject current = null; | ||
709 | |||
710 | Token otherlv_0=null; | ||
711 | Token otherlv_1=null; | ||
712 | Token otherlv_2=null; | ||
713 | |||
714 | |||
715 | enterRule(); | ||
716 | |||
717 | try { | ||
718 | // InternalApplicationConfiguration.g:260:2: ( (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) ) | ||
719 | // InternalApplicationConfiguration.g:261:2: (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) | ||
720 | { | ||
721 | // InternalApplicationConfiguration.g:261:2: (otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) ) | ||
722 | // InternalApplicationConfiguration.g:262:3: otherlv_0= 'import' otherlv_1= 'viatra' ( (otherlv_2= RULE_STRING ) ) | ||
723 | { | ||
724 | otherlv_0=(Token)match(input,11,FOLLOW_7); | ||
725 | |||
726 | newLeafNode(otherlv_0, grammarAccess.getViatraImportAccess().getImportKeyword_0()); | ||
727 | |||
728 | otherlv_1=(Token)match(input,13,FOLLOW_6); | ||
729 | |||
730 | newLeafNode(otherlv_1, grammarAccess.getViatraImportAccess().getViatraKeyword_1()); | ||
731 | |||
732 | // InternalApplicationConfiguration.g:270:3: ( (otherlv_2= RULE_STRING ) ) | ||
733 | // InternalApplicationConfiguration.g:271:4: (otherlv_2= RULE_STRING ) | ||
734 | { | ||
735 | // InternalApplicationConfiguration.g:271:4: (otherlv_2= RULE_STRING ) | ||
736 | // InternalApplicationConfiguration.g:272:5: otherlv_2= RULE_STRING | ||
737 | { | ||
738 | |||
739 | if (current==null) { | ||
740 | current = createModelElement(grammarAccess.getViatraImportRule()); | ||
741 | } | ||
742 | |||
743 | otherlv_2=(Token)match(input,RULE_STRING,FOLLOW_2); | ||
744 | |||
745 | newLeafNode(otherlv_2, grammarAccess.getViatraImportAccess().getImportedViatraPatternModelCrossReference_2_0()); | ||
746 | |||
747 | |||
748 | } | ||
749 | |||
750 | |||
751 | } | ||
752 | |||
753 | |||
754 | } | ||
755 | |||
756 | |||
757 | } | ||
758 | |||
759 | |||
760 | leaveRule(); | ||
761 | |||
762 | } | ||
763 | |||
764 | catch (RecognitionException re) { | ||
765 | recover(input,re); | ||
766 | appendSkippedTokens(); | ||
767 | } | ||
768 | finally { | ||
769 | } | ||
770 | return current; | ||
771 | } | ||
772 | // $ANTLR end "ruleViatraImport" | ||
773 | |||
774 | |||
775 | // $ANTLR start "entryRuleMetamodelSpecification" | ||
776 | // InternalApplicationConfiguration.g:287:1: entryRuleMetamodelSpecification returns [EObject current=null] : iv_ruleMetamodelSpecification= ruleMetamodelSpecification EOF ; | ||
777 | public final EObject entryRuleMetamodelSpecification() throws RecognitionException { | ||
778 | EObject current = null; | ||
779 | |||
780 | EObject iv_ruleMetamodelSpecification = null; | ||
781 | |||
782 | |||
783 | try { | ||
784 | // InternalApplicationConfiguration.g:287:63: (iv_ruleMetamodelSpecification= ruleMetamodelSpecification EOF ) | ||
785 | // InternalApplicationConfiguration.g:288:2: iv_ruleMetamodelSpecification= ruleMetamodelSpecification EOF | ||
786 | { | ||
787 | newCompositeNode(grammarAccess.getMetamodelSpecificationRule()); | ||
788 | pushFollow(FOLLOW_1); | ||
789 | iv_ruleMetamodelSpecification=ruleMetamodelSpecification(); | ||
790 | |||
791 | state._fsp--; | ||
792 | |||
793 | current =iv_ruleMetamodelSpecification; | ||
794 | match(input,EOF,FOLLOW_2); | ||
795 | |||
796 | } | ||
797 | |||
798 | } | ||
799 | |||
800 | catch (RecognitionException re) { | ||
801 | recover(input,re); | ||
802 | appendSkippedTokens(); | ||
803 | } | ||
804 | finally { | ||
805 | } | ||
806 | return current; | ||
807 | } | ||
808 | // $ANTLR end "entryRuleMetamodelSpecification" | ||
809 | |||
810 | |||
811 | // $ANTLR start "ruleMetamodelSpecification" | ||
812 | // InternalApplicationConfiguration.g:294:1: ruleMetamodelSpecification returns [EObject current=null] : (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) ; | ||
813 | public final EObject ruleMetamodelSpecification() throws RecognitionException { | ||
814 | EObject current = null; | ||
815 | |||
816 | Token otherlv_0=null; | ||
817 | Token otherlv_2=null; | ||
818 | Token otherlv_4=null; | ||
819 | EObject lv_entries_1_0 = null; | ||
820 | |||
821 | EObject lv_entries_3_0 = null; | ||
822 | |||
823 | |||
824 | |||
825 | enterRule(); | ||
826 | |||
827 | try { | ||
828 | // InternalApplicationConfiguration.g:300:2: ( (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) ) | ||
829 | // InternalApplicationConfiguration.g:301:2: (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) | ||
830 | { | ||
831 | // InternalApplicationConfiguration.g:301:2: (otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' ) | ||
832 | // InternalApplicationConfiguration.g:302:3: otherlv_0= '{' ( (lv_entries_1_0= ruleMetamodelEntry ) ) (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* otherlv_4= '}' | ||
833 | { | ||
834 | otherlv_0=(Token)match(input,14,FOLLOW_8); | ||
835 | |||
836 | newLeafNode(otherlv_0, grammarAccess.getMetamodelSpecificationAccess().getLeftCurlyBracketKeyword_0()); | ||
837 | |||
838 | // InternalApplicationConfiguration.g:306:3: ( (lv_entries_1_0= ruleMetamodelEntry ) ) | ||
839 | // InternalApplicationConfiguration.g:307:4: (lv_entries_1_0= ruleMetamodelEntry ) | ||
840 | { | ||
841 | // InternalApplicationConfiguration.g:307:4: (lv_entries_1_0= ruleMetamodelEntry ) | ||
842 | // InternalApplicationConfiguration.g:308:5: lv_entries_1_0= ruleMetamodelEntry | ||
843 | { | ||
844 | |||
845 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_1_0()); | ||
846 | |||
847 | pushFollow(FOLLOW_9); | ||
848 | lv_entries_1_0=ruleMetamodelEntry(); | ||
849 | |||
850 | state._fsp--; | ||
851 | |||
852 | |||
853 | if (current==null) { | ||
854 | current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | ||
855 | } | ||
856 | add( | ||
857 | current, | ||
858 | "entries", | ||
859 | lv_entries_1_0, | ||
860 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
861 | afterParserOrEnumRuleCall(); | ||
862 | |||
863 | |||
864 | } | ||
865 | |||
866 | |||
867 | } | ||
868 | |||
869 | // InternalApplicationConfiguration.g:325:3: (otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) )* | ||
870 | loop4: | ||
871 | do { | ||
872 | int alt4=2; | ||
873 | int LA4_0 = input.LA(1); | ||
874 | |||
875 | if ( (LA4_0==15) ) { | ||
876 | alt4=1; | ||
877 | } | ||
878 | |||
879 | |||
880 | switch (alt4) { | ||
881 | case 1 : | ||
882 | // InternalApplicationConfiguration.g:326:4: otherlv_2= ',' ( (lv_entries_3_0= ruleMetamodelEntry ) ) | ||
883 | { | ||
884 | otherlv_2=(Token)match(input,15,FOLLOW_8); | ||
885 | |||
886 | newLeafNode(otherlv_2, grammarAccess.getMetamodelSpecificationAccess().getCommaKeyword_2_0()); | ||
887 | |||
888 | // InternalApplicationConfiguration.g:330:4: ( (lv_entries_3_0= ruleMetamodelEntry ) ) | ||
889 | // InternalApplicationConfiguration.g:331:5: (lv_entries_3_0= ruleMetamodelEntry ) | ||
890 | { | ||
891 | // InternalApplicationConfiguration.g:331:5: (lv_entries_3_0= ruleMetamodelEntry ) | ||
892 | // InternalApplicationConfiguration.g:332:6: lv_entries_3_0= ruleMetamodelEntry | ||
893 | { | ||
894 | |||
895 | newCompositeNode(grammarAccess.getMetamodelSpecificationAccess().getEntriesMetamodelEntryParserRuleCall_2_1_0()); | ||
896 | |||
897 | pushFollow(FOLLOW_9); | ||
898 | lv_entries_3_0=ruleMetamodelEntry(); | ||
899 | |||
900 | state._fsp--; | ||
901 | |||
902 | |||
903 | if (current==null) { | ||
904 | current = createModelElementForParent(grammarAccess.getMetamodelSpecificationRule()); | ||
905 | } | ||
906 | add( | ||
907 | current, | ||
908 | "entries", | ||
909 | lv_entries_3_0, | ||
910 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
911 | afterParserOrEnumRuleCall(); | ||
912 | |||
913 | |||
914 | } | ||
915 | |||
916 | |||
917 | } | ||
918 | |||
919 | |||
920 | } | ||
921 | break; | ||
922 | |||
923 | default : | ||
924 | break loop4; | ||
925 | } | ||
926 | } while (true); | ||
927 | |||
928 | otherlv_4=(Token)match(input,16,FOLLOW_2); | ||
929 | |||
930 | newLeafNode(otherlv_4, grammarAccess.getMetamodelSpecificationAccess().getRightCurlyBracketKeyword_3()); | ||
931 | |||
932 | |||
933 | } | ||
934 | |||
935 | |||
936 | } | ||
937 | |||
938 | |||
939 | leaveRule(); | ||
940 | |||
941 | } | ||
942 | |||
943 | catch (RecognitionException re) { | ||
944 | recover(input,re); | ||
945 | appendSkippedTokens(); | ||
946 | } | ||
947 | finally { | ||
948 | } | ||
949 | return current; | ||
950 | } | ||
951 | // $ANTLR end "ruleMetamodelSpecification" | ||
952 | |||
953 | |||
954 | // $ANTLR start "entryRuleMetamodelEntry" | ||
955 | // InternalApplicationConfiguration.g:358:1: entryRuleMetamodelEntry returns [EObject current=null] : iv_ruleMetamodelEntry= ruleMetamodelEntry EOF ; | ||
956 | public final EObject entryRuleMetamodelEntry() throws RecognitionException { | ||
957 | EObject current = null; | ||
958 | |||
959 | EObject iv_ruleMetamodelEntry = null; | ||
960 | |||
961 | |||
962 | try { | ||
963 | // InternalApplicationConfiguration.g:358:55: (iv_ruleMetamodelEntry= ruleMetamodelEntry EOF ) | ||
964 | // InternalApplicationConfiguration.g:359:2: iv_ruleMetamodelEntry= ruleMetamodelEntry EOF | ||
965 | { | ||
966 | newCompositeNode(grammarAccess.getMetamodelEntryRule()); | ||
967 | pushFollow(FOLLOW_1); | ||
968 | iv_ruleMetamodelEntry=ruleMetamodelEntry(); | ||
969 | |||
970 | state._fsp--; | ||
971 | |||
972 | current =iv_ruleMetamodelEntry; | ||
973 | match(input,EOF,FOLLOW_2); | ||
974 | |||
975 | } | ||
976 | |||
977 | } | ||
978 | |||
979 | catch (RecognitionException re) { | ||
980 | recover(input,re); | ||
981 | appendSkippedTokens(); | ||
982 | } | ||
983 | finally { | ||
984 | } | ||
985 | return current; | ||
986 | } | ||
987 | // $ANTLR end "entryRuleMetamodelEntry" | ||
988 | |||
989 | |||
990 | // $ANTLR start "ruleMetamodelEntry" | ||
991 | // InternalApplicationConfiguration.g:365:1: ruleMetamodelEntry returns [EObject current=null] : (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) ; | ||
992 | public final EObject ruleMetamodelEntry() throws RecognitionException { | ||
993 | EObject current = null; | ||
994 | |||
995 | EObject this_MetamodelElement_0 = null; | ||
996 | |||
997 | EObject this_AllPackageEntry_1 = null; | ||
998 | |||
999 | |||
1000 | |||
1001 | enterRule(); | ||
1002 | |||
1003 | try { | ||
1004 | // InternalApplicationConfiguration.g:371:2: ( (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) ) | ||
1005 | // InternalApplicationConfiguration.g:372:2: (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) | ||
1006 | { | ||
1007 | // InternalApplicationConfiguration.g:372:2: (this_MetamodelElement_0= ruleMetamodelElement | this_AllPackageEntry_1= ruleAllPackageEntry ) | ||
1008 | int alt5=2; | ||
1009 | int LA5_0 = input.LA(1); | ||
1010 | |||
1011 | if ( (LA5_0==RULE_ID) ) { | ||
1012 | alt5=1; | ||
1013 | } | ||
1014 | else if ( (LA5_0==17) ) { | ||
1015 | alt5=2; | ||
1016 | } | ||
1017 | else { | ||
1018 | NoViableAltException nvae = | ||
1019 | new NoViableAltException("", 5, 0, input); | ||
1020 | |||
1021 | throw nvae; | ||
1022 | } | ||
1023 | switch (alt5) { | ||
1024 | case 1 : | ||
1025 | // InternalApplicationConfiguration.g:373:3: this_MetamodelElement_0= ruleMetamodelElement | ||
1026 | { | ||
1027 | |||
1028 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getMetamodelElementParserRuleCall_0()); | ||
1029 | |||
1030 | pushFollow(FOLLOW_2); | ||
1031 | this_MetamodelElement_0=ruleMetamodelElement(); | ||
1032 | |||
1033 | state._fsp--; | ||
1034 | |||
1035 | |||
1036 | current = this_MetamodelElement_0; | ||
1037 | afterParserOrEnumRuleCall(); | ||
1038 | |||
1039 | |||
1040 | } | ||
1041 | break; | ||
1042 | case 2 : | ||
1043 | // InternalApplicationConfiguration.g:382:3: this_AllPackageEntry_1= ruleAllPackageEntry | ||
1044 | { | ||
1045 | |||
1046 | newCompositeNode(grammarAccess.getMetamodelEntryAccess().getAllPackageEntryParserRuleCall_1()); | ||
1047 | |||
1048 | pushFollow(FOLLOW_2); | ||
1049 | this_AllPackageEntry_1=ruleAllPackageEntry(); | ||
1050 | |||
1051 | state._fsp--; | ||
1052 | |||
1053 | |||
1054 | current = this_AllPackageEntry_1; | ||
1055 | afterParserOrEnumRuleCall(); | ||
1056 | |||
1057 | |||
1058 | } | ||
1059 | break; | ||
1060 | |||
1061 | } | ||
1062 | |||
1063 | |||
1064 | } | ||
1065 | |||
1066 | |||
1067 | leaveRule(); | ||
1068 | |||
1069 | } | ||
1070 | |||
1071 | catch (RecognitionException re) { | ||
1072 | recover(input,re); | ||
1073 | appendSkippedTokens(); | ||
1074 | } | ||
1075 | finally { | ||
1076 | } | ||
1077 | return current; | ||
1078 | } | ||
1079 | // $ANTLR end "ruleMetamodelEntry" | ||
1080 | |||
1081 | |||
1082 | // $ANTLR start "entryRuleAllPackageEntry" | ||
1083 | // InternalApplicationConfiguration.g:394:1: entryRuleAllPackageEntry returns [EObject current=null] : iv_ruleAllPackageEntry= ruleAllPackageEntry EOF ; | ||
1084 | public final EObject entryRuleAllPackageEntry() throws RecognitionException { | ||
1085 | EObject current = null; | ||
1086 | |||
1087 | EObject iv_ruleAllPackageEntry = null; | ||
1088 | |||
1089 | |||
1090 | try { | ||
1091 | // InternalApplicationConfiguration.g:394:56: (iv_ruleAllPackageEntry= ruleAllPackageEntry EOF ) | ||
1092 | // InternalApplicationConfiguration.g:395:2: iv_ruleAllPackageEntry= ruleAllPackageEntry EOF | ||
1093 | { | ||
1094 | newCompositeNode(grammarAccess.getAllPackageEntryRule()); | ||
1095 | pushFollow(FOLLOW_1); | ||
1096 | iv_ruleAllPackageEntry=ruleAllPackageEntry(); | ||
1097 | |||
1098 | state._fsp--; | ||
1099 | |||
1100 | current =iv_ruleAllPackageEntry; | ||
1101 | match(input,EOF,FOLLOW_2); | ||
1102 | |||
1103 | } | ||
1104 | |||
1105 | } | ||
1106 | |||
1107 | catch (RecognitionException re) { | ||
1108 | recover(input,re); | ||
1109 | appendSkippedTokens(); | ||
1110 | } | ||
1111 | finally { | ||
1112 | } | ||
1113 | return current; | ||
1114 | } | ||
1115 | // $ANTLR end "entryRuleAllPackageEntry" | ||
1116 | |||
1117 | |||
1118 | // $ANTLR start "ruleAllPackageEntry" | ||
1119 | // InternalApplicationConfiguration.g:401:1: ruleAllPackageEntry returns [EObject current=null] : (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) ; | ||
1120 | public final EObject ruleAllPackageEntry() throws RecognitionException { | ||
1121 | EObject current = null; | ||
1122 | |||
1123 | Token otherlv_0=null; | ||
1124 | Token otherlv_1=null; | ||
1125 | Token otherlv_2=null; | ||
1126 | Token otherlv_3=null; | ||
1127 | Token otherlv_5=null; | ||
1128 | Token otherlv_7=null; | ||
1129 | EObject lv_exclusion_4_0 = null; | ||
1130 | |||
1131 | EObject lv_exclusion_6_0 = null; | ||
1132 | |||
1133 | |||
1134 | |||
1135 | enterRule(); | ||
1136 | |||
1137 | try { | ||
1138 | // InternalApplicationConfiguration.g:407:2: ( (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) ) | ||
1139 | // InternalApplicationConfiguration.g:408:2: (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) | ||
1140 | { | ||
1141 | // InternalApplicationConfiguration.g:408:2: (otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? ) | ||
1142 | // InternalApplicationConfiguration.g:409:3: otherlv_0= 'package' ( (otherlv_1= RULE_ID ) ) (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? | ||
1143 | { | ||
1144 | otherlv_0=(Token)match(input,17,FOLLOW_10); | ||
1145 | |||
1146 | newLeafNode(otherlv_0, grammarAccess.getAllPackageEntryAccess().getPackageKeyword_0()); | ||
1147 | |||
1148 | // InternalApplicationConfiguration.g:413:3: ( (otherlv_1= RULE_ID ) ) | ||
1149 | // InternalApplicationConfiguration.g:414:4: (otherlv_1= RULE_ID ) | ||
1150 | { | ||
1151 | // InternalApplicationConfiguration.g:414:4: (otherlv_1= RULE_ID ) | ||
1152 | // InternalApplicationConfiguration.g:415:5: otherlv_1= RULE_ID | ||
1153 | { | ||
1154 | |||
1155 | if (current==null) { | ||
1156 | current = createModelElement(grammarAccess.getAllPackageEntryRule()); | ||
1157 | } | ||
1158 | |||
1159 | otherlv_1=(Token)match(input,RULE_ID,FOLLOW_11); | ||
1160 | |||
1161 | newLeafNode(otherlv_1, grammarAccess.getAllPackageEntryAccess().getPackageEPackageCrossReference_1_0()); | ||
1162 | |||
1163 | |||
1164 | } | ||
1165 | |||
1166 | |||
1167 | } | ||
1168 | |||
1169 | // InternalApplicationConfiguration.g:426:3: (otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' )? | ||
1170 | int alt7=2; | ||
1171 | int LA7_0 = input.LA(1); | ||
1172 | |||
1173 | if ( (LA7_0==18) ) { | ||
1174 | alt7=1; | ||
1175 | } | ||
1176 | switch (alt7) { | ||
1177 | case 1 : | ||
1178 | // InternalApplicationConfiguration.g:427:4: otherlv_2= 'excluding' otherlv_3= '{' ( (lv_exclusion_4_0= ruleMetamodelElement ) ) (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* otherlv_7= '}' | ||
1179 | { | ||
1180 | otherlv_2=(Token)match(input,18,FOLLOW_12); | ||
1181 | |||
1182 | newLeafNode(otherlv_2, grammarAccess.getAllPackageEntryAccess().getExcludingKeyword_2_0()); | ||
1183 | |||
1184 | otherlv_3=(Token)match(input,14,FOLLOW_10); | ||
1185 | |||
1186 | newLeafNode(otherlv_3, grammarAccess.getAllPackageEntryAccess().getLeftCurlyBracketKeyword_2_1()); | ||
1187 | |||
1188 | // InternalApplicationConfiguration.g:435:4: ( (lv_exclusion_4_0= ruleMetamodelElement ) ) | ||
1189 | // InternalApplicationConfiguration.g:436:5: (lv_exclusion_4_0= ruleMetamodelElement ) | ||
1190 | { | ||
1191 | // InternalApplicationConfiguration.g:436:5: (lv_exclusion_4_0= ruleMetamodelElement ) | ||
1192 | // InternalApplicationConfiguration.g:437:6: lv_exclusion_4_0= ruleMetamodelElement | ||
1193 | { | ||
1194 | |||
1195 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_2_0()); | ||
1196 | |||
1197 | pushFollow(FOLLOW_9); | ||
1198 | lv_exclusion_4_0=ruleMetamodelElement(); | ||
1199 | |||
1200 | state._fsp--; | ||
1201 | |||
1202 | |||
1203 | if (current==null) { | ||
1204 | current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | ||
1205 | } | ||
1206 | add( | ||
1207 | current, | ||
1208 | "exclusion", | ||
1209 | lv_exclusion_4_0, | ||
1210 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
1211 | afterParserOrEnumRuleCall(); | ||
1212 | |||
1213 | |||
1214 | } | ||
1215 | |||
1216 | |||
1217 | } | ||
1218 | |||
1219 | // InternalApplicationConfiguration.g:454:4: (otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) )* | ||
1220 | loop6: | ||
1221 | do { | ||
1222 | int alt6=2; | ||
1223 | int LA6_0 = input.LA(1); | ||
1224 | |||
1225 | if ( (LA6_0==15) ) { | ||
1226 | alt6=1; | ||
1227 | } | ||
1228 | |||
1229 | |||
1230 | switch (alt6) { | ||
1231 | case 1 : | ||
1232 | // InternalApplicationConfiguration.g:455:5: otherlv_5= ',' ( (lv_exclusion_6_0= ruleMetamodelElement ) ) | ||
1233 | { | ||
1234 | otherlv_5=(Token)match(input,15,FOLLOW_10); | ||
1235 | |||
1236 | newLeafNode(otherlv_5, grammarAccess.getAllPackageEntryAccess().getCommaKeyword_2_3_0()); | ||
1237 | |||
1238 | // InternalApplicationConfiguration.g:459:5: ( (lv_exclusion_6_0= ruleMetamodelElement ) ) | ||
1239 | // InternalApplicationConfiguration.g:460:6: (lv_exclusion_6_0= ruleMetamodelElement ) | ||
1240 | { | ||
1241 | // InternalApplicationConfiguration.g:460:6: (lv_exclusion_6_0= ruleMetamodelElement ) | ||
1242 | // InternalApplicationConfiguration.g:461:7: lv_exclusion_6_0= ruleMetamodelElement | ||
1243 | { | ||
1244 | |||
1245 | newCompositeNode(grammarAccess.getAllPackageEntryAccess().getExclusionMetamodelElementParserRuleCall_2_3_1_0()); | ||
1246 | |||
1247 | pushFollow(FOLLOW_9); | ||
1248 | lv_exclusion_6_0=ruleMetamodelElement(); | ||
1249 | |||
1250 | state._fsp--; | ||
1251 | |||
1252 | |||
1253 | if (current==null) { | ||
1254 | current = createModelElementForParent(grammarAccess.getAllPackageEntryRule()); | ||
1255 | } | ||
1256 | add( | ||
1257 | current, | ||
1258 | "exclusion", | ||
1259 | lv_exclusion_6_0, | ||
1260 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
1261 | afterParserOrEnumRuleCall(); | ||
1262 | |||
1263 | |||
1264 | } | ||
1265 | |||
1266 | |||
1267 | } | ||
1268 | |||
1269 | |||
1270 | } | ||
1271 | break; | ||
1272 | |||
1273 | default : | ||
1274 | break loop6; | ||
1275 | } | ||
1276 | } while (true); | ||
1277 | |||
1278 | otherlv_7=(Token)match(input,16,FOLLOW_2); | ||
1279 | |||
1280 | newLeafNode(otherlv_7, grammarAccess.getAllPackageEntryAccess().getRightCurlyBracketKeyword_2_4()); | ||
1281 | |||
1282 | |||
1283 | } | ||
1284 | break; | ||
1285 | |||
1286 | } | ||
1287 | |||
1288 | |||
1289 | } | ||
1290 | |||
1291 | |||
1292 | } | ||
1293 | |||
1294 | |||
1295 | leaveRule(); | ||
1296 | |||
1297 | } | ||
1298 | |||
1299 | catch (RecognitionException re) { | ||
1300 | recover(input,re); | ||
1301 | appendSkippedTokens(); | ||
1302 | } | ||
1303 | finally { | ||
1304 | } | ||
1305 | return current; | ||
1306 | } | ||
1307 | // $ANTLR end "ruleAllPackageEntry" | ||
1308 | |||
1309 | |||
1310 | // $ANTLR start "entryRuleMetamodelElement" | ||
1311 | // InternalApplicationConfiguration.g:488:1: entryRuleMetamodelElement returns [EObject current=null] : iv_ruleMetamodelElement= ruleMetamodelElement EOF ; | ||
1312 | public final EObject entryRuleMetamodelElement() throws RecognitionException { | ||
1313 | EObject current = null; | ||
1314 | |||
1315 | EObject iv_ruleMetamodelElement = null; | ||
1316 | |||
1317 | |||
1318 | try { | ||
1319 | // InternalApplicationConfiguration.g:488:57: (iv_ruleMetamodelElement= ruleMetamodelElement EOF ) | ||
1320 | // InternalApplicationConfiguration.g:489:2: iv_ruleMetamodelElement= ruleMetamodelElement EOF | ||
1321 | { | ||
1322 | newCompositeNode(grammarAccess.getMetamodelElementRule()); | ||
1323 | pushFollow(FOLLOW_1); | ||
1324 | iv_ruleMetamodelElement=ruleMetamodelElement(); | ||
1325 | |||
1326 | state._fsp--; | ||
1327 | |||
1328 | current =iv_ruleMetamodelElement; | ||
1329 | match(input,EOF,FOLLOW_2); | ||
1330 | |||
1331 | } | ||
1332 | |||
1333 | } | ||
1334 | |||
1335 | catch (RecognitionException re) { | ||
1336 | recover(input,re); | ||
1337 | appendSkippedTokens(); | ||
1338 | } | ||
1339 | finally { | ||
1340 | } | ||
1341 | return current; | ||
1342 | } | ||
1343 | // $ANTLR end "entryRuleMetamodelElement" | ||
1344 | |||
1345 | |||
1346 | // $ANTLR start "ruleMetamodelElement" | ||
1347 | // InternalApplicationConfiguration.g:495:1: ruleMetamodelElement returns [EObject current=null] : ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) ; | ||
1348 | public final EObject ruleMetamodelElement() throws RecognitionException { | ||
1349 | EObject current = null; | ||
1350 | |||
1351 | Token otherlv_0=null; | ||
1352 | Token otherlv_1=null; | ||
1353 | Token otherlv_2=null; | ||
1354 | Token otherlv_3=null; | ||
1355 | Token otherlv_4=null; | ||
1356 | |||
1357 | |||
1358 | enterRule(); | ||
1359 | |||
1360 | try { | ||
1361 | // InternalApplicationConfiguration.g:501:2: ( ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) ) | ||
1362 | // InternalApplicationConfiguration.g:502:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) | ||
1363 | { | ||
1364 | // InternalApplicationConfiguration.g:502:2: ( ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? ) | ||
1365 | // InternalApplicationConfiguration.g:503:3: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? ( (otherlv_2= RULE_ID ) ) (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? | ||
1366 | { | ||
1367 | // InternalApplicationConfiguration.g:503:3: ( ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' )? | ||
1368 | int alt8=2; | ||
1369 | int LA8_0 = input.LA(1); | ||
1370 | |||
1371 | if ( (LA8_0==RULE_ID) ) { | ||
1372 | int LA8_1 = input.LA(2); | ||
1373 | |||
1374 | if ( (LA8_1==19) ) { | ||
1375 | alt8=1; | ||
1376 | } | ||
1377 | } | ||
1378 | switch (alt8) { | ||
1379 | case 1 : | ||
1380 | // InternalApplicationConfiguration.g:504:4: ( (otherlv_0= RULE_ID ) ) otherlv_1= '::' | ||
1381 | { | ||
1382 | // InternalApplicationConfiguration.g:504:4: ( (otherlv_0= RULE_ID ) ) | ||
1383 | // InternalApplicationConfiguration.g:505:5: (otherlv_0= RULE_ID ) | ||
1384 | { | ||
1385 | // InternalApplicationConfiguration.g:505:5: (otherlv_0= RULE_ID ) | ||
1386 | // InternalApplicationConfiguration.g:506:6: otherlv_0= RULE_ID | ||
1387 | { | ||
1388 | |||
1389 | if (current==null) { | ||
1390 | current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
1391 | } | ||
1392 | |||
1393 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_13); | ||
1394 | |||
1395 | newLeafNode(otherlv_0, grammarAccess.getMetamodelElementAccess().getPackageEPackageCrossReference_0_0_0()); | ||
1396 | |||
1397 | |||
1398 | } | ||
1399 | |||
1400 | |||
1401 | } | ||
1402 | |||
1403 | otherlv_1=(Token)match(input,19,FOLLOW_10); | ||
1404 | |||
1405 | newLeafNode(otherlv_1, grammarAccess.getMetamodelElementAccess().getColonColonKeyword_0_1()); | ||
1406 | |||
1407 | |||
1408 | } | ||
1409 | break; | ||
1410 | |||
1411 | } | ||
1412 | |||
1413 | // InternalApplicationConfiguration.g:522:3: ( (otherlv_2= RULE_ID ) ) | ||
1414 | // InternalApplicationConfiguration.g:523:4: (otherlv_2= RULE_ID ) | ||
1415 | { | ||
1416 | // InternalApplicationConfiguration.g:523:4: (otherlv_2= RULE_ID ) | ||
1417 | // InternalApplicationConfiguration.g:524:5: otherlv_2= RULE_ID | ||
1418 | { | ||
1419 | |||
1420 | if (current==null) { | ||
1421 | current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
1422 | } | ||
1423 | |||
1424 | otherlv_2=(Token)match(input,RULE_ID,FOLLOW_14); | ||
1425 | |||
1426 | newLeafNode(otherlv_2, grammarAccess.getMetamodelElementAccess().getClassifierEClassifierCrossReference_1_0()); | ||
1427 | |||
1428 | |||
1429 | } | ||
1430 | |||
1431 | |||
1432 | } | ||
1433 | |||
1434 | // InternalApplicationConfiguration.g:535:3: (otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) )? | ||
1435 | int alt9=2; | ||
1436 | int LA9_0 = input.LA(1); | ||
1437 | |||
1438 | if ( (LA9_0==20) ) { | ||
1439 | alt9=1; | ||
1440 | } | ||
1441 | switch (alt9) { | ||
1442 | case 1 : | ||
1443 | // InternalApplicationConfiguration.g:536:4: otherlv_3= '.' ( (otherlv_4= RULE_ID ) ) | ||
1444 | { | ||
1445 | otherlv_3=(Token)match(input,20,FOLLOW_10); | ||
1446 | |||
1447 | newLeafNode(otherlv_3, grammarAccess.getMetamodelElementAccess().getFullStopKeyword_2_0()); | ||
1448 | |||
1449 | // InternalApplicationConfiguration.g:540:4: ( (otherlv_4= RULE_ID ) ) | ||
1450 | // InternalApplicationConfiguration.g:541:5: (otherlv_4= RULE_ID ) | ||
1451 | { | ||
1452 | // InternalApplicationConfiguration.g:541:5: (otherlv_4= RULE_ID ) | ||
1453 | // InternalApplicationConfiguration.g:542:6: otherlv_4= RULE_ID | ||
1454 | { | ||
1455 | |||
1456 | if (current==null) { | ||
1457 | current = createModelElement(grammarAccess.getMetamodelElementRule()); | ||
1458 | } | ||
1459 | |||
1460 | otherlv_4=(Token)match(input,RULE_ID,FOLLOW_2); | ||
1461 | |||
1462 | newLeafNode(otherlv_4, grammarAccess.getMetamodelElementAccess().getFeatureENamedElementCrossReference_2_1_0()); | ||
1463 | |||
1464 | |||
1465 | } | ||
1466 | |||
1467 | |||
1468 | } | ||
1469 | |||
1470 | |||
1471 | } | ||
1472 | break; | ||
1473 | |||
1474 | } | ||
1475 | |||
1476 | |||
1477 | } | ||
1478 | |||
1479 | |||
1480 | } | ||
1481 | |||
1482 | |||
1483 | leaveRule(); | ||
1484 | |||
1485 | } | ||
1486 | |||
1487 | catch (RecognitionException re) { | ||
1488 | recover(input,re); | ||
1489 | appendSkippedTokens(); | ||
1490 | } | ||
1491 | finally { | ||
1492 | } | ||
1493 | return current; | ||
1494 | } | ||
1495 | // $ANTLR end "ruleMetamodelElement" | ||
1496 | |||
1497 | |||
1498 | // $ANTLR start "entryRuleMetamodelDeclaration" | ||
1499 | // InternalApplicationConfiguration.g:558:1: entryRuleMetamodelDeclaration returns [EObject current=null] : iv_ruleMetamodelDeclaration= ruleMetamodelDeclaration EOF ; | ||
1500 | public final EObject entryRuleMetamodelDeclaration() throws RecognitionException { | ||
1501 | EObject current = null; | ||
1502 | |||
1503 | EObject iv_ruleMetamodelDeclaration = null; | ||
1504 | |||
1505 | |||
1506 | try { | ||
1507 | // InternalApplicationConfiguration.g:558:61: (iv_ruleMetamodelDeclaration= ruleMetamodelDeclaration EOF ) | ||
1508 | // InternalApplicationConfiguration.g:559:2: iv_ruleMetamodelDeclaration= ruleMetamodelDeclaration EOF | ||
1509 | { | ||
1510 | newCompositeNode(grammarAccess.getMetamodelDeclarationRule()); | ||
1511 | pushFollow(FOLLOW_1); | ||
1512 | iv_ruleMetamodelDeclaration=ruleMetamodelDeclaration(); | ||
1513 | |||
1514 | state._fsp--; | ||
1515 | |||
1516 | current =iv_ruleMetamodelDeclaration; | ||
1517 | match(input,EOF,FOLLOW_2); | ||
1518 | |||
1519 | } | ||
1520 | |||
1521 | } | ||
1522 | |||
1523 | catch (RecognitionException re) { | ||
1524 | recover(input,re); | ||
1525 | appendSkippedTokens(); | ||
1526 | } | ||
1527 | finally { | ||
1528 | } | ||
1529 | return current; | ||
1530 | } | ||
1531 | // $ANTLR end "entryRuleMetamodelDeclaration" | ||
1532 | |||
1533 | |||
1534 | // $ANTLR start "ruleMetamodelDeclaration" | ||
1535 | // InternalApplicationConfiguration.g:565:1: ruleMetamodelDeclaration returns [EObject current=null] : (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) ; | ||
1536 | public final EObject ruleMetamodelDeclaration() throws RecognitionException { | ||
1537 | EObject current = null; | ||
1538 | |||
1539 | Token otherlv_0=null; | ||
1540 | Token lv_name_1_0=null; | ||
1541 | EObject lv_specification_2_0 = null; | ||
1542 | |||
1543 | |||
1544 | |||
1545 | enterRule(); | ||
1546 | |||
1547 | try { | ||
1548 | // InternalApplicationConfiguration.g:571:2: ( (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) ) | ||
1549 | // InternalApplicationConfiguration.g:572:2: (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) | ||
1550 | { | ||
1551 | // InternalApplicationConfiguration.g:572:2: (otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) ) | ||
1552 | // InternalApplicationConfiguration.g:573:3: otherlv_0= 'metamodel' ( (lv_name_1_0= RULE_ID ) ) ( (lv_specification_2_0= ruleMetamodelSpecification ) ) | ||
1553 | { | ||
1554 | otherlv_0=(Token)match(input,21,FOLLOW_10); | ||
1555 | |||
1556 | newLeafNode(otherlv_0, grammarAccess.getMetamodelDeclarationAccess().getMetamodelKeyword_0()); | ||
1557 | |||
1558 | // InternalApplicationConfiguration.g:577:3: ( (lv_name_1_0= RULE_ID ) ) | ||
1559 | // InternalApplicationConfiguration.g:578:4: (lv_name_1_0= RULE_ID ) | ||
1560 | { | ||
1561 | // InternalApplicationConfiguration.g:578:4: (lv_name_1_0= RULE_ID ) | ||
1562 | // InternalApplicationConfiguration.g:579:5: lv_name_1_0= RULE_ID | ||
1563 | { | ||
1564 | lv_name_1_0=(Token)match(input,RULE_ID,FOLLOW_12); | ||
1565 | |||
1566 | newLeafNode(lv_name_1_0, grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0()); | ||
1567 | |||
1568 | |||
1569 | if (current==null) { | ||
1570 | current = createModelElement(grammarAccess.getMetamodelDeclarationRule()); | ||
1571 | } | ||
1572 | setWithLastConsumed( | ||
1573 | current, | ||
1574 | "name", | ||
1575 | lv_name_1_0, | ||
1576 | "org.eclipse.xtext.common.Terminals.ID"); | ||
1577 | |||
1578 | |||
1579 | } | ||
1580 | |||
1581 | |||
1582 | } | ||
1583 | |||
1584 | // InternalApplicationConfiguration.g:595:3: ( (lv_specification_2_0= ruleMetamodelSpecification ) ) | ||
1585 | // InternalApplicationConfiguration.g:596:4: (lv_specification_2_0= ruleMetamodelSpecification ) | ||
1586 | { | ||
1587 | // InternalApplicationConfiguration.g:596:4: (lv_specification_2_0= ruleMetamodelSpecification ) | ||
1588 | // InternalApplicationConfiguration.g:597:5: lv_specification_2_0= ruleMetamodelSpecification | ||
1589 | { | ||
1590 | |||
1591 | newCompositeNode(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0()); | ||
1592 | |||
1593 | pushFollow(FOLLOW_2); | ||
1594 | lv_specification_2_0=ruleMetamodelSpecification(); | ||
1595 | |||
1596 | state._fsp--; | ||
1597 | |||
1598 | |||
1599 | if (current==null) { | ||
1600 | current = createModelElementForParent(grammarAccess.getMetamodelDeclarationRule()); | ||
1601 | } | ||
1602 | set( | ||
1603 | current, | ||
1604 | "specification", | ||
1605 | lv_specification_2_0, | ||
1606 | "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); | ||
1607 | afterParserOrEnumRuleCall(); | ||
1608 | |||
1609 | |||
1610 | } | ||
1611 | |||
1612 | |||
1613 | } | ||
1614 | |||
1615 | |||
1616 | } | ||
1617 | |||
1618 | |||
1619 | } | ||
1620 | |||
1621 | |||
1622 | leaveRule(); | ||
1623 | |||
1624 | } | ||
1625 | |||
1626 | catch (RecognitionException re) { | ||
1627 | recover(input,re); | ||
1628 | appendSkippedTokens(); | ||
1629 | } | ||
1630 | finally { | ||
1631 | } | ||
1632 | return current; | ||
1633 | } | ||
1634 | // $ANTLR end "ruleMetamodelDeclaration" | ||
1635 | |||
1636 | |||
1637 | // $ANTLR start "entryRuleMetamodelReference" | ||
1638 | // InternalApplicationConfiguration.g:618:1: entryRuleMetamodelReference returns [EObject current=null] : iv_ruleMetamodelReference= ruleMetamodelReference EOF ; | ||
1639 | public final EObject entryRuleMetamodelReference() throws RecognitionException { | ||
1640 | EObject current = null; | ||
1641 | |||
1642 | EObject iv_ruleMetamodelReference = null; | ||
1643 | |||
1644 | |||
1645 | try { | ||
1646 | // InternalApplicationConfiguration.g:618:59: (iv_ruleMetamodelReference= ruleMetamodelReference EOF ) | ||
1647 | // InternalApplicationConfiguration.g:619:2: iv_ruleMetamodelReference= ruleMetamodelReference EOF | ||
1648 | { | ||
1649 | newCompositeNode(grammarAccess.getMetamodelReferenceRule()); | ||
1650 | pushFollow(FOLLOW_1); | ||
1651 | iv_ruleMetamodelReference=ruleMetamodelReference(); | ||
1652 | |||
1653 | state._fsp--; | ||
1654 | |||
1655 | current =iv_ruleMetamodelReference; | ||
1656 | match(input,EOF,FOLLOW_2); | ||
1657 | |||
1658 | } | ||
1659 | |||
1660 | } | ||
1661 | |||
1662 | catch (RecognitionException re) { | ||
1663 | recover(input,re); | ||
1664 | appendSkippedTokens(); | ||
1665 | } | ||
1666 | finally { | ||
1667 | } | ||
1668 | return current; | ||
1669 | } | ||
1670 | // $ANTLR end "entryRuleMetamodelReference" | ||
1671 | |||
1672 | |||
1673 | // $ANTLR start "ruleMetamodelReference" | ||
1674 | // InternalApplicationConfiguration.g:625:1: ruleMetamodelReference returns [EObject current=null] : ( (otherlv_0= RULE_ID ) ) ; | ||
1675 | public final EObject ruleMetamodelReference() throws RecognitionException { | ||
1676 | EObject current = null; | ||
1677 | |||
1678 | Token otherlv_0=null; | ||
1679 | |||
1680 | |||
1681 | enterRule(); | ||
1682 | |||
1683 | try { | ||
1684 | // InternalApplicationConfiguration.g:631:2: ( ( (otherlv_0= RULE_ID ) ) ) | ||
1685 | // InternalApplicationConfiguration.g:632:2: ( (otherlv_0= RULE_ID ) ) | ||
1686 | { | ||
1687 | // InternalApplicationConfiguration.g:632:2: ( (otherlv_0= RULE_ID ) ) | ||
1688 | // InternalApplicationConfiguration.g:633:3: (otherlv_0= RULE_ID ) | ||
1689 | { | ||
1690 | // InternalApplicationConfiguration.g:633:3: (otherlv_0= RULE_ID ) | ||
1691 | // InternalApplicationConfiguration.g:634:4: otherlv_0= RULE_ID | ||
1692 | { | ||
1693 | |||
1694 | if (current==null) { | ||
1695 | current = createModelElement(grammarAccess.getMetamodelReferenceRule()); | ||
1696 | } | ||
1697 | |||
1698 | otherlv_0=(Token)match(input,RULE_ID,FOLLOW_2); | ||
1699 | |||
1700 | newLeafNode(otherlv_0, grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationCrossReference_0()); | ||
1701 | |||
1702 | |||
1703 | } | ||
1704 | |||
1705 | |||
1706 | } | ||
1707 | |||
1708 | |||
1709 | } | ||
1710 | |||
1711 | |||
1712 | leaveRule(); | ||
1713 | |||
1714 | } | ||
1715 | |||
1716 | catch (RecognitionException re) { | ||
1717 | recover(input,re); | ||
1718 | appendSkippedTokens(); | ||
1719 | } | ||
1720 | finally { | ||
1721 | } | ||
1722 | return current; | ||
1723 | } | ||
1724 | // $ANTLR end "ruleMetamodelReference" | ||
1725 | |||
1726 | // Delegated rules | ||
1727 | |||
1728 | |||
1729 | |||
1730 | |||
1731 | public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L}); | ||
1732 | public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L}); | ||
1733 | public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x0000000000200802L}); | ||
1734 | public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000200002L}); | ||
1735 | public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000001000L}); | ||
1736 | public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000000010L}); | ||
1737 | public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000002000L}); | ||
1738 | public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000020020L}); | ||
1739 | public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x0000000000018000L}); | ||
1740 | public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000020L}); | ||
1741 | public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000040002L}); | ||
1742 | public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000004000L}); | ||
1743 | public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000000080000L}); | ||
1744 | public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000000100002L}); | ||
1745 | |||
1746 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/scoping/AbstractApplicationConfigurationScopeProvider.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/scoping/AbstractApplicationConfigurationScopeProvider.java new file mode 100644 index 00000000..0230c5f9 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/scoping/AbstractApplicationConfigurationScopeProvider.java | |||
@@ -0,0 +1,9 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.scoping; | ||
5 | |||
6 | import org.eclipse.xtext.scoping.impl.DelegatingScopeProvider; | ||
7 | |||
8 | public abstract class AbstractApplicationConfigurationScopeProvider extends DelegatingScopeProvider { | ||
9 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSemanticSequencer.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSemanticSequencer.java new file mode 100644 index 00000000..775726ec --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSemanticSequencer.java | |||
@@ -0,0 +1,202 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry; | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelDeclaration; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelReference; | ||
14 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification; | ||
15 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport; | ||
16 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
17 | import java.util.Set; | ||
18 | import org.eclipse.emf.ecore.EObject; | ||
19 | import org.eclipse.emf.ecore.EPackage; | ||
20 | import org.eclipse.xtext.Action; | ||
21 | import org.eclipse.xtext.Parameter; | ||
22 | import org.eclipse.xtext.ParserRule; | ||
23 | import org.eclipse.xtext.serializer.ISerializationContext; | ||
24 | import org.eclipse.xtext.serializer.acceptor.SequenceFeeder; | ||
25 | import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer; | ||
26 | import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient; | ||
27 | |||
28 | @SuppressWarnings("all") | ||
29 | public class ApplicationConfigurationSemanticSequencer extends AbstractDelegatingSemanticSequencer { | ||
30 | |||
31 | @Inject | ||
32 | private ApplicationConfigurationGrammarAccess grammarAccess; | ||
33 | |||
34 | @Override | ||
35 | public void sequence(ISerializationContext context, EObject semanticObject) { | ||
36 | EPackage epackage = semanticObject.eClass().getEPackage(); | ||
37 | ParserRule rule = context.getParserRule(); | ||
38 | Action action = context.getAssignedAction(); | ||
39 | Set<Parameter> parameters = context.getEnabledBooleanParameters(); | ||
40 | if (epackage == ApplicationConfigurationPackage.eINSTANCE) | ||
41 | switch (semanticObject.eClass().getClassifierID()) { | ||
42 | case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY: | ||
43 | sequence_AllPackageEntry(context, (AllPackageEntry) semanticObject); | ||
44 | return; | ||
45 | case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT: | ||
46 | sequence_ConfigurationScript(context, (ConfigurationScript) semanticObject); | ||
47 | return; | ||
48 | case ApplicationConfigurationPackage.EPACKAGE_IMPORT: | ||
49 | sequence_EPackageImport(context, (EPackageImport) semanticObject); | ||
50 | return; | ||
51 | case ApplicationConfigurationPackage.METAMODEL_DECLARATION: | ||
52 | sequence_MetamodelDeclaration(context, (MetamodelDeclaration) semanticObject); | ||
53 | return; | ||
54 | case ApplicationConfigurationPackage.METAMODEL_ELEMENT: | ||
55 | sequence_MetamodelElement(context, (MetamodelElement) semanticObject); | ||
56 | return; | ||
57 | case ApplicationConfigurationPackage.METAMODEL_REFERENCE: | ||
58 | sequence_MetamodelReference(context, (MetamodelReference) semanticObject); | ||
59 | return; | ||
60 | case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION: | ||
61 | sequence_MetamodelSpecification(context, (MetamodelSpecification) semanticObject); | ||
62 | return; | ||
63 | case ApplicationConfigurationPackage.VIATRA_IMPORT: | ||
64 | sequence_ViatraImport(context, (ViatraImport) semanticObject); | ||
65 | return; | ||
66 | } | ||
67 | if (errorAcceptor != null) | ||
68 | errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context)); | ||
69 | } | ||
70 | |||
71 | /** | ||
72 | * Contexts: | ||
73 | * MetamodelEntry returns AllPackageEntry | ||
74 | * AllPackageEntry returns AllPackageEntry | ||
75 | * | ||
76 | * Constraint: | ||
77 | * (package=[EPackage|ID] (exclusion+=MetamodelElement exclusion+=MetamodelElement*)?) | ||
78 | */ | ||
79 | protected void sequence_AllPackageEntry(ISerializationContext context, AllPackageEntry semanticObject) { | ||
80 | genericSequencer.createSequence(context, semanticObject); | ||
81 | } | ||
82 | |||
83 | |||
84 | /** | ||
85 | * Contexts: | ||
86 | * ConfigurationScript returns ConfigurationScript | ||
87 | * | ||
88 | * Constraint: | ||
89 | * ((imports+=Import+ commands+=Command+) | commands+=Command+)? | ||
90 | */ | ||
91 | protected void sequence_ConfigurationScript(ISerializationContext context, ConfigurationScript semanticObject) { | ||
92 | genericSequencer.createSequence(context, semanticObject); | ||
93 | } | ||
94 | |||
95 | |||
96 | /** | ||
97 | * Contexts: | ||
98 | * Import returns EPackageImport | ||
99 | * EPackageImport returns EPackageImport | ||
100 | * | ||
101 | * Constraint: | ||
102 | * importedPackage=[EPackage|STRING] | ||
103 | */ | ||
104 | protected void sequence_EPackageImport(ISerializationContext context, EPackageImport semanticObject) { | ||
105 | if (errorAcceptor != null) { | ||
106 | if (transientValues.isValueTransient(semanticObject, ApplicationConfigurationPackage.Literals.EPACKAGE_IMPORT__IMPORTED_PACKAGE) == ValueTransient.YES) | ||
107 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplicationConfigurationPackage.Literals.EPACKAGE_IMPORT__IMPORTED_PACKAGE)); | ||
108 | } | ||
109 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
110 | feeder.accept(grammarAccess.getEPackageImportAccess().getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1(), semanticObject.getImportedPackage()); | ||
111 | feeder.finish(); | ||
112 | } | ||
113 | |||
114 | |||
115 | /** | ||
116 | * Contexts: | ||
117 | * Command returns MetamodelDeclaration | ||
118 | * Declaration returns MetamodelDeclaration | ||
119 | * MetamodelDeclaration returns MetamodelDeclaration | ||
120 | * | ||
121 | * Constraint: | ||
122 | * (name=ID specification=MetamodelSpecification) | ||
123 | */ | ||
124 | protected void sequence_MetamodelDeclaration(ISerializationContext context, MetamodelDeclaration semanticObject) { | ||
125 | if (errorAcceptor != null) { | ||
126 | if (transientValues.isValueTransient(semanticObject, ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION__NAME) == ValueTransient.YES) | ||
127 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION__NAME)); | ||
128 | if (transientValues.isValueTransient(semanticObject, ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION__SPECIFICATION) == ValueTransient.YES) | ||
129 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplicationConfigurationPackage.Literals.METAMODEL_DECLARATION__SPECIFICATION)); | ||
130 | } | ||
131 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
132 | feeder.accept(grammarAccess.getMetamodelDeclarationAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName()); | ||
133 | feeder.accept(grammarAccess.getMetamodelDeclarationAccess().getSpecificationMetamodelSpecificationParserRuleCall_2_0(), semanticObject.getSpecification()); | ||
134 | feeder.finish(); | ||
135 | } | ||
136 | |||
137 | |||
138 | /** | ||
139 | * Contexts: | ||
140 | * MetamodelEntry returns MetamodelElement | ||
141 | * MetamodelElement returns MetamodelElement | ||
142 | * | ||
143 | * Constraint: | ||
144 | * (package=[EPackage|ID]? classifier=[EClassifier|ID] feature=[ENamedElement|ID]?) | ||
145 | */ | ||
146 | protected void sequence_MetamodelElement(ISerializationContext context, MetamodelElement semanticObject) { | ||
147 | genericSequencer.createSequence(context, semanticObject); | ||
148 | } | ||
149 | |||
150 | |||
151 | /** | ||
152 | * Contexts: | ||
153 | * MetamodelReference returns MetamodelReference | ||
154 | * Metamodel returns MetamodelReference | ||
155 | * | ||
156 | * Constraint: | ||
157 | * referred=[MetamodelDeclaration|ID] | ||
158 | */ | ||
159 | protected void sequence_MetamodelReference(ISerializationContext context, MetamodelReference semanticObject) { | ||
160 | if (errorAcceptor != null) { | ||
161 | if (transientValues.isValueTransient(semanticObject, ApplicationConfigurationPackage.Literals.METAMODEL_REFERENCE__REFERRED) == ValueTransient.YES) | ||
162 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplicationConfigurationPackage.Literals.METAMODEL_REFERENCE__REFERRED)); | ||
163 | } | ||
164 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
165 | feeder.accept(grammarAccess.getMetamodelReferenceAccess().getReferredMetamodelDeclarationIDTerminalRuleCall_0_1(), semanticObject.getReferred()); | ||
166 | feeder.finish(); | ||
167 | } | ||
168 | |||
169 | |||
170 | /** | ||
171 | * Contexts: | ||
172 | * MetamodelSpecification returns MetamodelSpecification | ||
173 | * Metamodel returns MetamodelSpecification | ||
174 | * | ||
175 | * Constraint: | ||
176 | * (entries+=MetamodelEntry entries+=MetamodelEntry*) | ||
177 | */ | ||
178 | protected void sequence_MetamodelSpecification(ISerializationContext context, MetamodelSpecification semanticObject) { | ||
179 | genericSequencer.createSequence(context, semanticObject); | ||
180 | } | ||
181 | |||
182 | |||
183 | /** | ||
184 | * Contexts: | ||
185 | * Import returns ViatraImport | ||
186 | * ViatraImport returns ViatraImport | ||
187 | * | ||
188 | * Constraint: | ||
189 | * importedViatra=[PatternModel|STRING] | ||
190 | */ | ||
191 | protected void sequence_ViatraImport(ISerializationContext context, ViatraImport semanticObject) { | ||
192 | if (errorAcceptor != null) { | ||
193 | if (transientValues.isValueTransient(semanticObject, ApplicationConfigurationPackage.Literals.VIATRA_IMPORT__IMPORTED_VIATRA) == ValueTransient.YES) | ||
194 | errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, ApplicationConfigurationPackage.Literals.VIATRA_IMPORT__IMPORTED_VIATRA)); | ||
195 | } | ||
196 | SequenceFeeder feeder = createSequencerFeeder(context, semanticObject); | ||
197 | feeder.accept(grammarAccess.getViatraImportAccess().getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1(), semanticObject.getImportedViatra()); | ||
198 | feeder.finish(); | ||
199 | } | ||
200 | |||
201 | |||
202 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSyntacticSequencer.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSyntacticSequencer.java new file mode 100644 index 00000000..e084eafd --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSyntacticSequencer.java | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.serializer; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
8 | import java.util.List; | ||
9 | import org.eclipse.emf.ecore.EObject; | ||
10 | import org.eclipse.xtext.IGrammarAccess; | ||
11 | import org.eclipse.xtext.RuleCall; | ||
12 | import org.eclipse.xtext.nodemodel.INode; | ||
13 | import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; | ||
14 | import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition; | ||
15 | import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer; | ||
16 | |||
17 | @SuppressWarnings("all") | ||
18 | public class ApplicationConfigurationSyntacticSequencer extends AbstractSyntacticSequencer { | ||
19 | |||
20 | protected ApplicationConfigurationGrammarAccess grammarAccess; | ||
21 | |||
22 | @Inject | ||
23 | protected void init(IGrammarAccess access) { | ||
24 | grammarAccess = (ApplicationConfigurationGrammarAccess) access; | ||
25 | } | ||
26 | |||
27 | @Override | ||
28 | protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) { | ||
29 | return ""; | ||
30 | } | ||
31 | |||
32 | |||
33 | @Override | ||
34 | protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) { | ||
35 | if (transition.getAmbiguousSyntaxes().isEmpty()) return; | ||
36 | List<INode> transitionNodes = collectNodes(fromNode, toNode); | ||
37 | for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) { | ||
38 | List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax); | ||
39 | acceptNodes(getLastNavigableState(), syntaxNodes); | ||
40 | } | ||
41 | } | ||
42 | |||
43 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java new file mode 100644 index 00000000..97717b2f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java | |||
@@ -0,0 +1,703 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.services; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import com.google.inject.Singleton; | ||
8 | import java.util.List; | ||
9 | import org.eclipse.xtext.Alternatives; | ||
10 | import org.eclipse.xtext.Assignment; | ||
11 | import org.eclipse.xtext.CrossReference; | ||
12 | import org.eclipse.xtext.Grammar; | ||
13 | import org.eclipse.xtext.GrammarUtil; | ||
14 | import org.eclipse.xtext.Group; | ||
15 | import org.eclipse.xtext.Keyword; | ||
16 | import org.eclipse.xtext.ParserRule; | ||
17 | import org.eclipse.xtext.RuleCall; | ||
18 | import org.eclipse.xtext.TerminalRule; | ||
19 | import org.eclipse.xtext.common.services.TerminalsGrammarAccess; | ||
20 | import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; | ||
21 | import org.eclipse.xtext.service.GrammarProvider; | ||
22 | |||
23 | @Singleton | ||
24 | public class ApplicationConfigurationGrammarAccess extends AbstractGrammarElementFinder { | ||
25 | |||
26 | public class ConfigurationScriptElements extends AbstractParserRuleElementFinder { | ||
27 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigurationScript"); | ||
28 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
29 | private final Assignment cImportsAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
30 | private final RuleCall cImportsImportParserRuleCall_0_0 = (RuleCall)cImportsAssignment_0.eContents().get(0); | ||
31 | private final Assignment cCommandsAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
32 | private final RuleCall cCommandsCommandParserRuleCall_1_0 = (RuleCall)cCommandsAssignment_1.eContents().get(0); | ||
33 | |||
34 | //ConfigurationScript: | ||
35 | // imports+=Import* | ||
36 | // commands+=Command*; | ||
37 | @Override public ParserRule getRule() { return rule; } | ||
38 | |||
39 | //imports+=Import* commands+=Command* | ||
40 | public Group getGroup() { return cGroup; } | ||
41 | |||
42 | //imports+=Import* | ||
43 | public Assignment getImportsAssignment_0() { return cImportsAssignment_0; } | ||
44 | |||
45 | //Import | ||
46 | public RuleCall getImportsImportParserRuleCall_0_0() { return cImportsImportParserRuleCall_0_0; } | ||
47 | |||
48 | //commands+=Command* | ||
49 | public Assignment getCommandsAssignment_1() { return cCommandsAssignment_1; } | ||
50 | |||
51 | //Command | ||
52 | public RuleCall getCommandsCommandParserRuleCall_1_0() { return cCommandsCommandParserRuleCall_1_0; } | ||
53 | } | ||
54 | public class CommandElements extends AbstractParserRuleElementFinder { | ||
55 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); | ||
56 | private final RuleCall cDeclarationParserRuleCall = (RuleCall)rule.eContents().get(1); | ||
57 | |||
58 | //Command: | ||
59 | // Declaration | ||
60 | // //| Task | ||
61 | //; | ||
62 | @Override public ParserRule getRule() { return rule; } | ||
63 | |||
64 | //Declaration | ||
65 | public RuleCall getDeclarationParserRuleCall() { return cDeclarationParserRuleCall; } | ||
66 | } | ||
67 | public class DeclarationElements extends AbstractParserRuleElementFinder { | ||
68 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Declaration"); | ||
69 | private final RuleCall cMetamodelDeclarationParserRuleCall = (RuleCall)rule.eContents().get(1); | ||
70 | |||
71 | //Declaration: | ||
72 | // MetamodelDeclaration | ||
73 | // // | PartialModelDeclaration | ||
74 | // // | GraphPatternDeclaration | ||
75 | // // | SolverConfig | ||
76 | //; | ||
77 | @Override public ParserRule getRule() { return rule; } | ||
78 | |||
79 | //// FileDeclaration | | ||
80 | //MetamodelDeclaration | ||
81 | public RuleCall getMetamodelDeclarationParserRuleCall() { return cMetamodelDeclarationParserRuleCall; } | ||
82 | } | ||
83 | public class ImportElements extends AbstractParserRuleElementFinder { | ||
84 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); | ||
85 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
86 | private final RuleCall cEPackageImportParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
87 | private final RuleCall cViatraImportParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
88 | |||
89 | ///////////////////////////////////////////////////// | ||
90 | //// Imports | ||
91 | ///////////////////////////////////////////////////// | ||
92 | //Import: | ||
93 | // EPackageImport | ViatraImport; | ||
94 | @Override public ParserRule getRule() { return rule; } | ||
95 | |||
96 | //EPackageImport | ViatraImport | ||
97 | public Alternatives getAlternatives() { return cAlternatives; } | ||
98 | |||
99 | //EPackageImport | ||
100 | public RuleCall getEPackageImportParserRuleCall_0() { return cEPackageImportParserRuleCall_0; } | ||
101 | |||
102 | //ViatraImport | ||
103 | public RuleCall getViatraImportParserRuleCall_1() { return cViatraImportParserRuleCall_1; } | ||
104 | } | ||
105 | public class EPackageImportElements extends AbstractParserRuleElementFinder { | ||
106 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.EPackageImport"); | ||
107 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
108 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
109 | private final Keyword cEpackageKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
110 | private final Assignment cImportedPackageAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
111 | private final CrossReference cImportedPackageEPackageCrossReference_2_0 = (CrossReference)cImportedPackageAssignment_2.eContents().get(0); | ||
112 | private final RuleCall cImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1 = (RuleCall)cImportedPackageEPackageCrossReference_2_0.eContents().get(1); | ||
113 | |||
114 | //EPackageImport: | ||
115 | // "import" "epackage" importedPackage=[ecore::EPackage|STRING]; | ||
116 | @Override public ParserRule getRule() { return rule; } | ||
117 | |||
118 | //"import" "epackage" importedPackage=[ecore::EPackage|STRING] | ||
119 | public Group getGroup() { return cGroup; } | ||
120 | |||
121 | //"import" | ||
122 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
123 | |||
124 | //"epackage" | ||
125 | public Keyword getEpackageKeyword_1() { return cEpackageKeyword_1; } | ||
126 | |||
127 | //importedPackage=[ecore::EPackage|STRING] | ||
128 | public Assignment getImportedPackageAssignment_2() { return cImportedPackageAssignment_2; } | ||
129 | |||
130 | //[ecore::EPackage|STRING] | ||
131 | public CrossReference getImportedPackageEPackageCrossReference_2_0() { return cImportedPackageEPackageCrossReference_2_0; } | ||
132 | |||
133 | //STRING | ||
134 | public RuleCall getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1() { return cImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1; } | ||
135 | } | ||
136 | public class ViatraImportElements extends AbstractParserRuleElementFinder { | ||
137 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ViatraImport"); | ||
138 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
139 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
140 | private final Keyword cViatraKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
141 | private final Assignment cImportedViatraAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
142 | private final CrossReference cImportedViatraPatternModelCrossReference_2_0 = (CrossReference)cImportedViatraAssignment_2.eContents().get(0); | ||
143 | private final RuleCall cImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1 = (RuleCall)cImportedViatraPatternModelCrossReference_2_0.eContents().get(1); | ||
144 | |||
145 | //ViatraImport: | ||
146 | // "import" "viatra" importedViatra=[viatra::PatternModel|STRING]; | ||
147 | @Override public ParserRule getRule() { return rule; } | ||
148 | |||
149 | //"import" "viatra" importedViatra=[viatra::PatternModel|STRING] | ||
150 | public Group getGroup() { return cGroup; } | ||
151 | |||
152 | //"import" | ||
153 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
154 | |||
155 | //"viatra" | ||
156 | public Keyword getViatraKeyword_1() { return cViatraKeyword_1; } | ||
157 | |||
158 | //importedViatra=[viatra::PatternModel|STRING] | ||
159 | public Assignment getImportedViatraAssignment_2() { return cImportedViatraAssignment_2; } | ||
160 | |||
161 | //[viatra::PatternModel|STRING] | ||
162 | public CrossReference getImportedViatraPatternModelCrossReference_2_0() { return cImportedViatraPatternModelCrossReference_2_0; } | ||
163 | |||
164 | //STRING | ||
165 | public RuleCall getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1() { return cImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1; } | ||
166 | } | ||
167 | public class MetamodelSpecificationElements extends AbstractParserRuleElementFinder { | ||
168 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); | ||
169 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
170 | private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
171 | private final Assignment cEntriesAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
172 | private final RuleCall cEntriesMetamodelEntryParserRuleCall_1_0 = (RuleCall)cEntriesAssignment_1.eContents().get(0); | ||
173 | private final Group cGroup_2 = (Group)cGroup.eContents().get(2); | ||
174 | private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); | ||
175 | private final Assignment cEntriesAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); | ||
176 | private final RuleCall cEntriesMetamodelEntryParserRuleCall_2_1_0 = (RuleCall)cEntriesAssignment_2_1.eContents().get(0); | ||
177 | private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); | ||
178 | |||
179 | ///////////////////////////////////////////////////// | ||
180 | //// Files and Folders | ||
181 | ///////////////////////////////////////////////////// | ||
182 | /// * | ||
183 | //FileSpecification: path = STRING; | ||
184 | //FileDeclaration: 'file' name = ID '=' specification = FileSpecification; | ||
185 | // | ||
186 | //FileReference: referred = [FileDeclaration]; | ||
187 | //File: FileSpecification | FileReference; | ||
188 | // * / /////////////////////////////////////////////////// | ||
189 | //// Metamodel | ||
190 | ///////////////////////////////////////////////////// | ||
191 | //MetamodelSpecification: | ||
192 | // '{' entries+=MetamodelEntry (',' entries+=MetamodelEntry)* '}'; | ||
193 | @Override public ParserRule getRule() { return rule; } | ||
194 | |||
195 | //'{' entries+=MetamodelEntry (',' entries+=MetamodelEntry)* '}' | ||
196 | public Group getGroup() { return cGroup; } | ||
197 | |||
198 | //'{' | ||
199 | public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; } | ||
200 | |||
201 | //entries+=MetamodelEntry | ||
202 | public Assignment getEntriesAssignment_1() { return cEntriesAssignment_1; } | ||
203 | |||
204 | //MetamodelEntry | ||
205 | public RuleCall getEntriesMetamodelEntryParserRuleCall_1_0() { return cEntriesMetamodelEntryParserRuleCall_1_0; } | ||
206 | |||
207 | //(',' entries+=MetamodelEntry)* | ||
208 | public Group getGroup_2() { return cGroup_2; } | ||
209 | |||
210 | //',' | ||
211 | public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; } | ||
212 | |||
213 | //entries+=MetamodelEntry | ||
214 | public Assignment getEntriesAssignment_2_1() { return cEntriesAssignment_2_1; } | ||
215 | |||
216 | //MetamodelEntry | ||
217 | public RuleCall getEntriesMetamodelEntryParserRuleCall_2_1_0() { return cEntriesMetamodelEntryParserRuleCall_2_1_0; } | ||
218 | |||
219 | //'}' | ||
220 | public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; } | ||
221 | } | ||
222 | public class MetamodelEntryElements extends AbstractParserRuleElementFinder { | ||
223 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
224 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
225 | private final RuleCall cMetamodelElementParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
226 | private final RuleCall cAllPackageEntryParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
227 | |||
228 | //MetamodelEntry: | ||
229 | // MetamodelElement | AllPackageEntry; | ||
230 | @Override public ParserRule getRule() { return rule; } | ||
231 | |||
232 | //MetamodelElement | AllPackageEntry | ||
233 | public Alternatives getAlternatives() { return cAlternatives; } | ||
234 | |||
235 | //MetamodelElement | ||
236 | public RuleCall getMetamodelElementParserRuleCall_0() { return cMetamodelElementParserRuleCall_0; } | ||
237 | |||
238 | //AllPackageEntry | ||
239 | public RuleCall getAllPackageEntryParserRuleCall_1() { return cAllPackageEntryParserRuleCall_1; } | ||
240 | } | ||
241 | public class AllPackageEntryElements extends AbstractParserRuleElementFinder { | ||
242 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.AllPackageEntry"); | ||
243 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
244 | private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
245 | private final Assignment cPackageAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
246 | private final CrossReference cPackageEPackageCrossReference_1_0 = (CrossReference)cPackageAssignment_1.eContents().get(0); | ||
247 | private final RuleCall cPackageEPackageIDTerminalRuleCall_1_0_1 = (RuleCall)cPackageEPackageCrossReference_1_0.eContents().get(1); | ||
248 | private final Group cGroup_2 = (Group)cGroup.eContents().get(2); | ||
249 | private final Keyword cExcludingKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); | ||
250 | private final Keyword cLeftCurlyBracketKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1); | ||
251 | private final Assignment cExclusionAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2); | ||
252 | private final RuleCall cExclusionMetamodelElementParserRuleCall_2_2_0 = (RuleCall)cExclusionAssignment_2_2.eContents().get(0); | ||
253 | private final Group cGroup_2_3 = (Group)cGroup_2.eContents().get(3); | ||
254 | private final Keyword cCommaKeyword_2_3_0 = (Keyword)cGroup_2_3.eContents().get(0); | ||
255 | private final Assignment cExclusionAssignment_2_3_1 = (Assignment)cGroup_2_3.eContents().get(1); | ||
256 | private final RuleCall cExclusionMetamodelElementParserRuleCall_2_3_1_0 = (RuleCall)cExclusionAssignment_2_3_1.eContents().get(0); | ||
257 | private final Keyword cRightCurlyBracketKeyword_2_4 = (Keyword)cGroup_2.eContents().get(4); | ||
258 | |||
259 | //AllPackageEntry: | ||
260 | // "package" package=[ecore::EPackage] ("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* | ||
261 | // '}')?; | ||
262 | @Override public ParserRule getRule() { return rule; } | ||
263 | |||
264 | //"package" package=[ecore::EPackage] ("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* | ||
265 | //'}')? | ||
266 | public Group getGroup() { return cGroup; } | ||
267 | |||
268 | //"package" | ||
269 | public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } | ||
270 | |||
271 | //package=[ecore::EPackage] | ||
272 | public Assignment getPackageAssignment_1() { return cPackageAssignment_1; } | ||
273 | |||
274 | //[ecore::EPackage] | ||
275 | public CrossReference getPackageEPackageCrossReference_1_0() { return cPackageEPackageCrossReference_1_0; } | ||
276 | |||
277 | //ID | ||
278 | public RuleCall getPackageEPackageIDTerminalRuleCall_1_0_1() { return cPackageEPackageIDTerminalRuleCall_1_0_1; } | ||
279 | |||
280 | //("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* '}')? | ||
281 | public Group getGroup_2() { return cGroup_2; } | ||
282 | |||
283 | //"excluding" | ||
284 | public Keyword getExcludingKeyword_2_0() { return cExcludingKeyword_2_0; } | ||
285 | |||
286 | //'{' | ||
287 | public Keyword getLeftCurlyBracketKeyword_2_1() { return cLeftCurlyBracketKeyword_2_1; } | ||
288 | |||
289 | //exclusion+=MetamodelElement | ||
290 | public Assignment getExclusionAssignment_2_2() { return cExclusionAssignment_2_2; } | ||
291 | |||
292 | //MetamodelElement | ||
293 | public RuleCall getExclusionMetamodelElementParserRuleCall_2_2_0() { return cExclusionMetamodelElementParserRuleCall_2_2_0; } | ||
294 | |||
295 | //(',' exclusion+=MetamodelElement)* | ||
296 | public Group getGroup_2_3() { return cGroup_2_3; } | ||
297 | |||
298 | //',' | ||
299 | public Keyword getCommaKeyword_2_3_0() { return cCommaKeyword_2_3_0; } | ||
300 | |||
301 | //exclusion+=MetamodelElement | ||
302 | public Assignment getExclusionAssignment_2_3_1() { return cExclusionAssignment_2_3_1; } | ||
303 | |||
304 | //MetamodelElement | ||
305 | public RuleCall getExclusionMetamodelElementParserRuleCall_2_3_1_0() { return cExclusionMetamodelElementParserRuleCall_2_3_1_0; } | ||
306 | |||
307 | //'}' | ||
308 | public Keyword getRightCurlyBracketKeyword_2_4() { return cRightCurlyBracketKeyword_2_4; } | ||
309 | } | ||
310 | public class MetamodelElementElements extends AbstractParserRuleElementFinder { | ||
311 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
312 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
313 | private final Group cGroup_0 = (Group)cGroup.eContents().get(0); | ||
314 | private final Assignment cPackageAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0); | ||
315 | private final CrossReference cPackageEPackageCrossReference_0_0_0 = (CrossReference)cPackageAssignment_0_0.eContents().get(0); | ||
316 | private final RuleCall cPackageEPackageIDTerminalRuleCall_0_0_0_1 = (RuleCall)cPackageEPackageCrossReference_0_0_0.eContents().get(1); | ||
317 | private final Keyword cColonColonKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1); | ||
318 | private final Assignment cClassifierAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
319 | private final CrossReference cClassifierEClassifierCrossReference_1_0 = (CrossReference)cClassifierAssignment_1.eContents().get(0); | ||
320 | private final RuleCall cClassifierEClassifierIDTerminalRuleCall_1_0_1 = (RuleCall)cClassifierEClassifierCrossReference_1_0.eContents().get(1); | ||
321 | private final Group cGroup_2 = (Group)cGroup.eContents().get(2); | ||
322 | private final Keyword cFullStopKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); | ||
323 | private final Assignment cFeatureAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); | ||
324 | private final CrossReference cFeatureENamedElementCrossReference_2_1_0 = (CrossReference)cFeatureAssignment_2_1.eContents().get(0); | ||
325 | private final RuleCall cFeatureENamedElementIDTerminalRuleCall_2_1_0_1 = (RuleCall)cFeatureENamedElementCrossReference_2_1_0.eContents().get(1); | ||
326 | |||
327 | //MetamodelElement: | ||
328 | // (package=[ecore::EPackage] '::')? classifier=[ecore::EClassifier] ('.' feature=[ecore::ENamedElement])?; | ||
329 | @Override public ParserRule getRule() { return rule; } | ||
330 | |||
331 | //(package=[ecore::EPackage] '::')? classifier=[ecore::EClassifier] ('.' feature=[ecore::ENamedElement])? | ||
332 | public Group getGroup() { return cGroup; } | ||
333 | |||
334 | //(package=[ecore::EPackage] '::')? | ||
335 | public Group getGroup_0() { return cGroup_0; } | ||
336 | |||
337 | //package=[ecore::EPackage] | ||
338 | public Assignment getPackageAssignment_0_0() { return cPackageAssignment_0_0; } | ||
339 | |||
340 | //[ecore::EPackage] | ||
341 | public CrossReference getPackageEPackageCrossReference_0_0_0() { return cPackageEPackageCrossReference_0_0_0; } | ||
342 | |||
343 | //ID | ||
344 | public RuleCall getPackageEPackageIDTerminalRuleCall_0_0_0_1() { return cPackageEPackageIDTerminalRuleCall_0_0_0_1; } | ||
345 | |||
346 | //'::' | ||
347 | public Keyword getColonColonKeyword_0_1() { return cColonColonKeyword_0_1; } | ||
348 | |||
349 | //classifier=[ecore::EClassifier] | ||
350 | public Assignment getClassifierAssignment_1() { return cClassifierAssignment_1; } | ||
351 | |||
352 | //[ecore::EClassifier] | ||
353 | public CrossReference getClassifierEClassifierCrossReference_1_0() { return cClassifierEClassifierCrossReference_1_0; } | ||
354 | |||
355 | //ID | ||
356 | public RuleCall getClassifierEClassifierIDTerminalRuleCall_1_0_1() { return cClassifierEClassifierIDTerminalRuleCall_1_0_1; } | ||
357 | |||
358 | //('.' feature=[ecore::ENamedElement])? | ||
359 | public Group getGroup_2() { return cGroup_2; } | ||
360 | |||
361 | //'.' | ||
362 | public Keyword getFullStopKeyword_2_0() { return cFullStopKeyword_2_0; } | ||
363 | |||
364 | //feature=[ecore::ENamedElement] | ||
365 | public Assignment getFeatureAssignment_2_1() { return cFeatureAssignment_2_1; } | ||
366 | |||
367 | //[ecore::ENamedElement] | ||
368 | public CrossReference getFeatureENamedElementCrossReference_2_1_0() { return cFeatureENamedElementCrossReference_2_1_0; } | ||
369 | |||
370 | //ID | ||
371 | public RuleCall getFeatureENamedElementIDTerminalRuleCall_2_1_0_1() { return cFeatureENamedElementIDTerminalRuleCall_2_1_0_1; } | ||
372 | } | ||
373 | public class MetamodelDeclarationElements extends AbstractParserRuleElementFinder { | ||
374 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelDeclaration"); | ||
375 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
376 | private final Keyword cMetamodelKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
377 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
378 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
379 | private final Assignment cSpecificationAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
380 | private final RuleCall cSpecificationMetamodelSpecificationParserRuleCall_2_0 = (RuleCall)cSpecificationAssignment_2.eContents().get(0); | ||
381 | |||
382 | //MetamodelDeclaration: | ||
383 | // 'metamodel' name=ID specification=MetamodelSpecification; | ||
384 | @Override public ParserRule getRule() { return rule; } | ||
385 | |||
386 | //'metamodel' name=ID specification=MetamodelSpecification | ||
387 | public Group getGroup() { return cGroup; } | ||
388 | |||
389 | //'metamodel' | ||
390 | public Keyword getMetamodelKeyword_0() { return cMetamodelKeyword_0; } | ||
391 | |||
392 | //name=ID | ||
393 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
394 | |||
395 | //ID | ||
396 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
397 | |||
398 | //specification=MetamodelSpecification | ||
399 | public Assignment getSpecificationAssignment_2() { return cSpecificationAssignment_2; } | ||
400 | |||
401 | //MetamodelSpecification | ||
402 | public RuleCall getSpecificationMetamodelSpecificationParserRuleCall_2_0() { return cSpecificationMetamodelSpecificationParserRuleCall_2_0; } | ||
403 | } | ||
404 | public class MetamodelReferenceElements extends AbstractParserRuleElementFinder { | ||
405 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelReference"); | ||
406 | private final Assignment cReferredAssignment = (Assignment)rule.eContents().get(1); | ||
407 | private final CrossReference cReferredMetamodelDeclarationCrossReference_0 = (CrossReference)cReferredAssignment.eContents().get(0); | ||
408 | private final RuleCall cReferredMetamodelDeclarationIDTerminalRuleCall_0_1 = (RuleCall)cReferredMetamodelDeclarationCrossReference_0.eContents().get(1); | ||
409 | |||
410 | //MetamodelReference: | ||
411 | // referred=[MetamodelDeclaration]; | ||
412 | @Override public ParserRule getRule() { return rule; } | ||
413 | |||
414 | //referred=[MetamodelDeclaration] | ||
415 | public Assignment getReferredAssignment() { return cReferredAssignment; } | ||
416 | |||
417 | //[MetamodelDeclaration] | ||
418 | public CrossReference getReferredMetamodelDeclarationCrossReference_0() { return cReferredMetamodelDeclarationCrossReference_0; } | ||
419 | |||
420 | //ID | ||
421 | public RuleCall getReferredMetamodelDeclarationIDTerminalRuleCall_0_1() { return cReferredMetamodelDeclarationIDTerminalRuleCall_0_1; } | ||
422 | } | ||
423 | public class MetamodelElements extends AbstractParserRuleElementFinder { | ||
424 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); | ||
425 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
426 | private final RuleCall cMetamodelReferenceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
427 | private final RuleCall cMetamodelSpecificationParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
428 | |||
429 | //Metamodel: | ||
430 | // MetamodelReference | MetamodelSpecification; | ||
431 | @Override public ParserRule getRule() { return rule; } | ||
432 | |||
433 | //MetamodelReference | MetamodelSpecification | ||
434 | public Alternatives getAlternatives() { return cAlternatives; } | ||
435 | |||
436 | //MetamodelReference | ||
437 | public RuleCall getMetamodelReferenceParserRuleCall_0() { return cMetamodelReferenceParserRuleCall_0; } | ||
438 | |||
439 | //MetamodelSpecification | ||
440 | public RuleCall getMetamodelSpecificationParserRuleCall_1() { return cMetamodelSpecificationParserRuleCall_1; } | ||
441 | } | ||
442 | |||
443 | |||
444 | private final ConfigurationScriptElements pConfigurationScript; | ||
445 | private final CommandElements pCommand; | ||
446 | private final DeclarationElements pDeclaration; | ||
447 | private final ImportElements pImport; | ||
448 | private final EPackageImportElements pEPackageImport; | ||
449 | private final ViatraImportElements pViatraImport; | ||
450 | private final MetamodelSpecificationElements pMetamodelSpecification; | ||
451 | private final MetamodelEntryElements pMetamodelEntry; | ||
452 | private final AllPackageEntryElements pAllPackageEntry; | ||
453 | private final MetamodelElementElements pMetamodelElement; | ||
454 | private final MetamodelDeclarationElements pMetamodelDeclaration; | ||
455 | private final MetamodelReferenceElements pMetamodelReference; | ||
456 | private final MetamodelElements pMetamodel; | ||
457 | |||
458 | private final Grammar grammar; | ||
459 | |||
460 | private final TerminalsGrammarAccess gaTerminals; | ||
461 | |||
462 | @Inject | ||
463 | public ApplicationConfigurationGrammarAccess(GrammarProvider grammarProvider, | ||
464 | TerminalsGrammarAccess gaTerminals) { | ||
465 | this.grammar = internalFindGrammar(grammarProvider); | ||
466 | this.gaTerminals = gaTerminals; | ||
467 | this.pConfigurationScript = new ConfigurationScriptElements(); | ||
468 | this.pCommand = new CommandElements(); | ||
469 | this.pDeclaration = new DeclarationElements(); | ||
470 | this.pImport = new ImportElements(); | ||
471 | this.pEPackageImport = new EPackageImportElements(); | ||
472 | this.pViatraImport = new ViatraImportElements(); | ||
473 | this.pMetamodelSpecification = new MetamodelSpecificationElements(); | ||
474 | this.pMetamodelEntry = new MetamodelEntryElements(); | ||
475 | this.pAllPackageEntry = new AllPackageEntryElements(); | ||
476 | this.pMetamodelElement = new MetamodelElementElements(); | ||
477 | this.pMetamodelDeclaration = new MetamodelDeclarationElements(); | ||
478 | this.pMetamodelReference = new MetamodelReferenceElements(); | ||
479 | this.pMetamodel = new MetamodelElements(); | ||
480 | } | ||
481 | |||
482 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | ||
483 | Grammar grammar = grammarProvider.getGrammar(this); | ||
484 | while (grammar != null) { | ||
485 | if ("hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration".equals(grammar.getName())) { | ||
486 | return grammar; | ||
487 | } | ||
488 | List<Grammar> grammars = grammar.getUsedGrammars(); | ||
489 | if (!grammars.isEmpty()) { | ||
490 | grammar = grammars.iterator().next(); | ||
491 | } else { | ||
492 | return null; | ||
493 | } | ||
494 | } | ||
495 | return grammar; | ||
496 | } | ||
497 | |||
498 | @Override | ||
499 | public Grammar getGrammar() { | ||
500 | return grammar; | ||
501 | } | ||
502 | |||
503 | |||
504 | public TerminalsGrammarAccess getTerminalsGrammarAccess() { | ||
505 | return gaTerminals; | ||
506 | } | ||
507 | |||
508 | |||
509 | //ConfigurationScript: | ||
510 | // imports+=Import* | ||
511 | // commands+=Command*; | ||
512 | public ConfigurationScriptElements getConfigurationScriptAccess() { | ||
513 | return pConfigurationScript; | ||
514 | } | ||
515 | |||
516 | public ParserRule getConfigurationScriptRule() { | ||
517 | return getConfigurationScriptAccess().getRule(); | ||
518 | } | ||
519 | |||
520 | //Command: | ||
521 | // Declaration | ||
522 | // //| Task | ||
523 | //; | ||
524 | public CommandElements getCommandAccess() { | ||
525 | return pCommand; | ||
526 | } | ||
527 | |||
528 | public ParserRule getCommandRule() { | ||
529 | return getCommandAccess().getRule(); | ||
530 | } | ||
531 | |||
532 | //Declaration: | ||
533 | // MetamodelDeclaration | ||
534 | // // | PartialModelDeclaration | ||
535 | // // | GraphPatternDeclaration | ||
536 | // // | SolverConfig | ||
537 | //; | ||
538 | public DeclarationElements getDeclarationAccess() { | ||
539 | return pDeclaration; | ||
540 | } | ||
541 | |||
542 | public ParserRule getDeclarationRule() { | ||
543 | return getDeclarationAccess().getRule(); | ||
544 | } | ||
545 | |||
546 | ///////////////////////////////////////////////////// | ||
547 | //// Imports | ||
548 | ///////////////////////////////////////////////////// | ||
549 | //Import: | ||
550 | // EPackageImport | ViatraImport; | ||
551 | public ImportElements getImportAccess() { | ||
552 | return pImport; | ||
553 | } | ||
554 | |||
555 | public ParserRule getImportRule() { | ||
556 | return getImportAccess().getRule(); | ||
557 | } | ||
558 | |||
559 | //EPackageImport: | ||
560 | // "import" "epackage" importedPackage=[ecore::EPackage|STRING]; | ||
561 | public EPackageImportElements getEPackageImportAccess() { | ||
562 | return pEPackageImport; | ||
563 | } | ||
564 | |||
565 | public ParserRule getEPackageImportRule() { | ||
566 | return getEPackageImportAccess().getRule(); | ||
567 | } | ||
568 | |||
569 | //ViatraImport: | ||
570 | // "import" "viatra" importedViatra=[viatra::PatternModel|STRING]; | ||
571 | public ViatraImportElements getViatraImportAccess() { | ||
572 | return pViatraImport; | ||
573 | } | ||
574 | |||
575 | public ParserRule getViatraImportRule() { | ||
576 | return getViatraImportAccess().getRule(); | ||
577 | } | ||
578 | |||
579 | ///////////////////////////////////////////////////// | ||
580 | //// Files and Folders | ||
581 | ///////////////////////////////////////////////////// | ||
582 | /// * | ||
583 | //FileSpecification: path = STRING; | ||
584 | //FileDeclaration: 'file' name = ID '=' specification = FileSpecification; | ||
585 | // | ||
586 | //FileReference: referred = [FileDeclaration]; | ||
587 | //File: FileSpecification | FileReference; | ||
588 | // * / /////////////////////////////////////////////////// | ||
589 | //// Metamodel | ||
590 | ///////////////////////////////////////////////////// | ||
591 | //MetamodelSpecification: | ||
592 | // '{' entries+=MetamodelEntry (',' entries+=MetamodelEntry)* '}'; | ||
593 | public MetamodelSpecificationElements getMetamodelSpecificationAccess() { | ||
594 | return pMetamodelSpecification; | ||
595 | } | ||
596 | |||
597 | public ParserRule getMetamodelSpecificationRule() { | ||
598 | return getMetamodelSpecificationAccess().getRule(); | ||
599 | } | ||
600 | |||
601 | //MetamodelEntry: | ||
602 | // MetamodelElement | AllPackageEntry; | ||
603 | public MetamodelEntryElements getMetamodelEntryAccess() { | ||
604 | return pMetamodelEntry; | ||
605 | } | ||
606 | |||
607 | public ParserRule getMetamodelEntryRule() { | ||
608 | return getMetamodelEntryAccess().getRule(); | ||
609 | } | ||
610 | |||
611 | //AllPackageEntry: | ||
612 | // "package" package=[ecore::EPackage] ("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* | ||
613 | // '}')?; | ||
614 | public AllPackageEntryElements getAllPackageEntryAccess() { | ||
615 | return pAllPackageEntry; | ||
616 | } | ||
617 | |||
618 | public ParserRule getAllPackageEntryRule() { | ||
619 | return getAllPackageEntryAccess().getRule(); | ||
620 | } | ||
621 | |||
622 | //MetamodelElement: | ||
623 | // (package=[ecore::EPackage] '::')? classifier=[ecore::EClassifier] ('.' feature=[ecore::ENamedElement])?; | ||
624 | public MetamodelElementElements getMetamodelElementAccess() { | ||
625 | return pMetamodelElement; | ||
626 | } | ||
627 | |||
628 | public ParserRule getMetamodelElementRule() { | ||
629 | return getMetamodelElementAccess().getRule(); | ||
630 | } | ||
631 | |||
632 | //MetamodelDeclaration: | ||
633 | // 'metamodel' name=ID specification=MetamodelSpecification; | ||
634 | public MetamodelDeclarationElements getMetamodelDeclarationAccess() { | ||
635 | return pMetamodelDeclaration; | ||
636 | } | ||
637 | |||
638 | public ParserRule getMetamodelDeclarationRule() { | ||
639 | return getMetamodelDeclarationAccess().getRule(); | ||
640 | } | ||
641 | |||
642 | //MetamodelReference: | ||
643 | // referred=[MetamodelDeclaration]; | ||
644 | public MetamodelReferenceElements getMetamodelReferenceAccess() { | ||
645 | return pMetamodelReference; | ||
646 | } | ||
647 | |||
648 | public ParserRule getMetamodelReferenceRule() { | ||
649 | return getMetamodelReferenceAccess().getRule(); | ||
650 | } | ||
651 | |||
652 | //Metamodel: | ||
653 | // MetamodelReference | MetamodelSpecification; | ||
654 | public MetamodelElements getMetamodelAccess() { | ||
655 | return pMetamodel; | ||
656 | } | ||
657 | |||
658 | public ParserRule getMetamodelRule() { | ||
659 | return getMetamodelAccess().getRule(); | ||
660 | } | ||
661 | |||
662 | //terminal ID: | ||
663 | // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; | ||
664 | public TerminalRule getIDRule() { | ||
665 | return gaTerminals.getIDRule(); | ||
666 | } | ||
667 | |||
668 | //terminal INT returns ecore::EInt: | ||
669 | // '0'..'9'+; | ||
670 | public TerminalRule getINTRule() { | ||
671 | return gaTerminals.getINTRule(); | ||
672 | } | ||
673 | |||
674 | //terminal STRING: | ||
675 | // '"' ('\\' . | !('\\' | '"'))* '"' | "'" ('\\' . | !('\\' | "'"))* "'"; | ||
676 | public TerminalRule getSTRINGRule() { | ||
677 | return gaTerminals.getSTRINGRule(); | ||
678 | } | ||
679 | |||
680 | //terminal ML_COMMENT: | ||
681 | // '/ *'->'* /'; | ||
682 | public TerminalRule getML_COMMENTRule() { | ||
683 | return gaTerminals.getML_COMMENTRule(); | ||
684 | } | ||
685 | |||
686 | //terminal SL_COMMENT: | ||
687 | // '//' !('\n' | '\r')* ('\r'? '\n')?; | ||
688 | public TerminalRule getSL_COMMENTRule() { | ||
689 | return gaTerminals.getSL_COMMENTRule(); | ||
690 | } | ||
691 | |||
692 | //terminal WS: | ||
693 | // ' ' | '\t' | '\r' | '\n'+; | ||
694 | public TerminalRule getWSRule() { | ||
695 | return gaTerminals.getWSRule(); | ||
696 | } | ||
697 | |||
698 | //terminal ANY_OTHER: | ||
699 | // .; | ||
700 | public TerminalRule getANY_OTHERRule() { | ||
701 | return gaTerminals.getANY_OTHERRule(); | ||
702 | } | ||
703 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/validation/AbstractApplicationConfigurationValidator.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/validation/AbstractApplicationConfigurationValidator.java new file mode 100644 index 00000000..66e1d11e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/validation/AbstractApplicationConfigurationValidator.java | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.validation; | ||
5 | |||
6 | import java.util.ArrayList; | ||
7 | import java.util.List; | ||
8 | import org.eclipse.emf.ecore.EPackage; | ||
9 | import org.eclipse.xtext.validation.AbstractDeclarativeValidator; | ||
10 | |||
11 | public abstract class AbstractApplicationConfigurationValidator extends AbstractDeclarativeValidator { | ||
12 | |||
13 | @Override | ||
14 | protected List<EPackage> getEPackages() { | ||
15 | List<EPackage> result = new ArrayList<EPackage>(); | ||
16 | result.add(hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage.eINSTANCE); | ||
17 | return result; | ||
18 | } | ||
19 | |||
20 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.xtext b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.xtext new file mode 100644 index 00000000..ed83419f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.xtext | |||
@@ -0,0 +1,127 @@ | |||
1 | grammar hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration with org.eclipse.xtext.common.Terminals | ||
2 | |||
3 | import "http://www.eclipse.org/emf/2002/Ecore" as ecore | ||
4 | import "http://www.eclipse.org/viatra/query/patternlanguage/PatternLanguage" as viatra | ||
5 | generate applicationConfiguration "http://www.bme.hu/mit/inf/dslreasoner/application/ApplicationConfiguration" | ||
6 | |||
7 | ConfigurationScript: | ||
8 | (imports += Import)* | ||
9 | (commands += Command)* | ||
10 | ; | ||
11 | |||
12 | Command : | ||
13 | Declaration | ||
14 | //| Task | ||
15 | ; | ||
16 | Declaration : | ||
17 | // FileDeclaration | | ||
18 | MetamodelDeclaration | ||
19 | // | PartialModelDeclaration | ||
20 | // | GraphPatternDeclaration | ||
21 | // | SolverConfig | ||
22 | ; | ||
23 | |||
24 | /////////////////////////////////////////////////// | ||
25 | // Imports | ||
26 | /////////////////////////////////////////////////// | ||
27 | |||
28 | Import: EPackageImport | ViatraImport; | ||
29 | |||
30 | EPackageImport: "import" "epackage" importedPackage=[ecore::EPackage|STRING]; | ||
31 | ViatraImport: "import" "viatra" importedViatra=[viatra::PatternModel|STRING]; | ||
32 | |||
33 | /////////////////////////////////////////////////// | ||
34 | // Files and Folders | ||
35 | /////////////////////////////////////////////////// | ||
36 | /* | ||
37 | FileSpecification: path = STRING; | ||
38 | FileDeclaration: 'file' name = ID '=' specification = FileSpecification; | ||
39 | |||
40 | FileReference: referred = [FileDeclaration]; | ||
41 | File: FileSpecification | FileReference; | ||
42 | */ | ||
43 | /////////////////////////////////////////////////// | ||
44 | // Metamodel | ||
45 | /////////////////////////////////////////////////// | ||
46 | |||
47 | MetamodelSpecification: '{' (entries += MetamodelEntry) (',' entries += MetamodelEntry)* '}'; | ||
48 | MetamodelEntry: MetamodelElement | AllPackageEntry; | ||
49 | AllPackageEntry: "package" package=[ecore::EPackage] ("excluding" '{'exclusion +=MetamodelElement (',' exclusion +=MetamodelElement)*'}')?; | ||
50 | MetamodelElement: (package=[ecore::EPackage] '::')? classifier = [ecore::EClassifier] ('.' feature= [ecore::ENamedElement])?; | ||
51 | |||
52 | MetamodelDeclaration: 'metamodel' name = ID specification = MetamodelSpecification; | ||
53 | MetamodelReference: referred = [MetamodelDeclaration]; | ||
54 | Metamodel: MetamodelReference | MetamodelSpecification; | ||
55 | |||
56 | /////////////////////////////////////////////////// | ||
57 | // Partial Model | ||
58 | /////////////////////////////////////////////////// | ||
59 | /* | ||
60 | PartialModelEntry: path = File; | ||
61 | PartialModelSpecification: entry += PartialModelEntry ('+' entry += PartialModelEntry)*; | ||
62 | PartialModelDeclaration: 'partial-model' name = ID '=' specification = PartialModelSpecification; | ||
63 | PartialModelReference : referred = [PartialModelDeclaration]; | ||
64 | PartialModel: PartialModelSpecification | PartialModelReference; | ||
65 | */ | ||
66 | /////////////////////////////////////////////////// | ||
67 | // Patterns | ||
68 | /////////////////////////////////////////////////// | ||
69 | /* | ||
70 | PatternSpecification: '{' entries += PatternEntry (',' entries += PatternEntry)* '}'; | ||
71 | PatternEntry: PatternElement | AllPatternEntry; | ||
72 | AllPatternEntry: package = [viatra::PatternModel] ('excluding' '{' exclusuion += PatternElement (',' exclusuion += PatternElement)* '}')?; | ||
73 | PatternElement: pattern = [viatra::Pattern]; | ||
74 | |||
75 | GraphPatternDeclaration: 'patterns' name = ID specification = PatternSpecification; | ||
76 | GraphPatternReference: referred = [GraphPatternDeclaration]; | ||
77 | GraphPattern: GraphPatternReference|PatternSpecification; | ||
78 | */ | ||
79 | /////////////////////////////////////////////////// | ||
80 | // SolverConfig | ||
81 | /////////////////////////////////////////////////// | ||
82 | /* | ||
83 | SolverConfig : SMTSolverConfig | AlloySolverConfig | ViatraSolverConfig; | ||
84 | |||
85 | SMTSolverConfig: | ||
86 | 'smt-solver-config' name = ID '{' | ||
87 | 'solver-path' '=' solverPath = File | ||
88 | '}' | ||
89 | ; | ||
90 | |||
91 | AlloySolverConfig: | ||
92 | 'alloy-solver-config' name = ID '{' | ||
93 | ('symmetry' '=' symmetry=INT)? | ||
94 | '}' | ||
95 | ; | ||
96 | |||
97 | ViatraSolverConfig: | ||
98 | 'viatra-solver-config' name = ID '{' | ||
99 | ('statecoding' '=' statecoding = ViatraStatecoder)? & | ||
100 | ('type-inferencing' '=' typeinferencing = ViatraTypeInferencing)? & | ||
101 | ('backtrack-chance' '=' backtrackChance = INT)? | ||
102 | '}' | ||
103 | ; | ||
104 | enum ViatraStatecoder: neighbourhood | identifier; | ||
105 | enum ViatraTypeInferencing: preliminary | online; | ||
106 | |||
107 | Solver: SMTSolver | AlloySolver | ViatraSolver; | ||
108 | |||
109 | SMTSolver: 'smt-solver' '(' (config = [SMTSolverConfig]) ')'; | ||
110 | AlloySolver: 'alloy-solver' {AlloySolver} '(' (config = [AlloySolverConfig]|'default') ')'; | ||
111 | ViatraSolver: 'viatra-solver' {ViatraSolver} '(' (config= [ViatraSolverConfig]|'default')')'; | ||
112 | |||
113 | Task: GenerationTask; | ||
114 | |||
115 | GenerationTask: 'generate' '{' | ||
116 | ('metamodel' '=' metamodel = Metamodel) & | ||
117 | ('partial-model' '=' partialModel = PartialModel)? & | ||
118 | ('patterns' '=' patterns = GraphPattern)? & | ||
119 | ('new-objects' '=' size = INT) & | ||
120 | ('number' '=' number= INT)? & | ||
121 | ('runs' '=' runs = INT)? | ||
122 | 'target-folder' '=' tagetFolder = File | ||
123 | 'debug-folder' '=' debugFolder = File | ||
124 | ('log' '=' targetLogFile = File)? | ||
125 | ('statistics' '=' targetStatisticsFile = File)? | ||
126 | '}' | ||
127 | ;*/ \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationRuntimeModule.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationRuntimeModule.xtend new file mode 100644 index 00000000..919dd297 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationRuntimeModule.xtend | |||
@@ -0,0 +1,43 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.linking.ApplicationConfigurationLinkingService | ||
7 | import com.google.inject.Binder | ||
8 | import com.google.inject.multibindings.Multibinder | ||
9 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.IMetamodelProviderInstance | ||
10 | import org.apache.log4j.Logger | ||
11 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.IMetamodelProvider | ||
12 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.CompoundMetamodelProviderService | ||
13 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.MetamodelProviderService | ||
14 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.ResourceSetMetamodelProviderService | ||
15 | import org.eclipse.viatra.query.patternlanguage.emf.IGenmodelMappingLoader | ||
16 | import org.eclipse.viatra.query.patternlanguage.emf.GenmodelExtensionLoader | ||
17 | |||
18 | /** | ||
19 | * Use this class to register components to be used at runtime / without the Equinox extension registry. | ||
20 | */ | ||
21 | class ApplicationConfigurationRuntimeModule extends AbstractApplicationConfigurationRuntimeModule { | ||
22 | override bindILinkingService() { | ||
23 | ApplicationConfigurationLinkingService | ||
24 | } | ||
25 | |||
26 | def configureLoggerImplementation(Binder binder) { | ||
27 | binder.bind(Logger).toInstance(Logger.getLogger(ApplicationConfigurationRuntimeModule)) | ||
28 | } | ||
29 | |||
30 | def Class<? extends IMetamodelProvider> bindIMetamodelProvider() { | ||
31 | CompoundMetamodelProviderService | ||
32 | } | ||
33 | |||
34 | def configureMetamodelProviderInstance(Binder binder) { | ||
35 | val metamodelProviderBinder = Multibinder.newSetBinder(binder, IMetamodelProviderInstance) | ||
36 | metamodelProviderBinder.addBinding.to(MetamodelProviderService) | ||
37 | metamodelProviderBinder.addBinding.to(ResourceSetMetamodelProviderService) | ||
38 | } | ||
39 | |||
40 | def Class<? extends IGenmodelMappingLoader> bindIGenmodelMappingLoader() { | ||
41 | GenmodelExtensionLoader | ||
42 | } | ||
43 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationStandaloneSetup.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationStandaloneSetup.xtend new file mode 100644 index 00000000..ef07c9b3 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/ApplicationConfigurationStandaloneSetup.xtend | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application | ||
5 | |||
6 | |||
7 | /** | ||
8 | * Initialization support for running Xtext languages without Equinox extension registry. | ||
9 | */ | ||
10 | class ApplicationConfigurationStandaloneSetup extends ApplicationConfigurationStandaloneSetupGenerated { | ||
11 | |||
12 | def static void doSetup() { | ||
13 | new ApplicationConfigurationStandaloneSetup().createInjectorAndDoEMFRegistration() | ||
14 | } | ||
15 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/GenerateApplicationConfiguration.mwe2 b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/GenerateApplicationConfiguration.mwe2 new file mode 100644 index 00000000..9265ce4a --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/GenerateApplicationConfiguration.mwe2 | |||
@@ -0,0 +1,43 @@ | |||
1 | module hu.bme.mit.inf.dslreasoner.application.GenerateApplicationConfiguration | ||
2 | |||
3 | import org.eclipse.xtext.xtext.generator.* | ||
4 | import org.eclipse.xtext.xtext.generator.model.project.* | ||
5 | |||
6 | var rootPath = ".." | ||
7 | |||
8 | Workflow { | ||
9 | |||
10 | component = XtextGenerator { | ||
11 | |||
12 | configuration = { | ||
13 | project = StandardProjectConfig { | ||
14 | |||
15 | baseName = "hu.bme.mit.inf.dslreasoner.application" | ||
16 | rootPath = rootPath | ||
17 | |||
18 | eclipsePlugin = { | ||
19 | enabled = true | ||
20 | } | ||
21 | createEclipseMetaData = true | ||
22 | |||
23 | } | ||
24 | code = { | ||
25 | encoding = "UTF-8" | ||
26 | fileHeader = "/*\n * generated by Xtext \${version}\n */" | ||
27 | |||
28 | } | ||
29 | } | ||
30 | language = StandardLanguage { | ||
31 | name = "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration" | ||
32 | referencedResource = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel" | ||
33 | referencedResource = "platform:/resource/org.eclipse.viatra.query.patternlanguage/model/generated/PatternLanguage.genmodel" | ||
34 | fileExtensions = "vsconfig" | ||
35 | serializer = { | ||
36 | generateStub = false | ||
37 | } | ||
38 | validator = { | ||
39 | // composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator" | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/Context.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/Context.xtend new file mode 100644 index 00000000..8f72caed --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/Context.xtend | |||
@@ -0,0 +1,18 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution | ||
2 | |||
3 | import java.io.OutputStream | ||
4 | import java.util.LinkedList | ||
5 | import java.util.List | ||
6 | import java.io.FileWriter | ||
7 | import org.eclipse.xtend.lib.annotations.Accessors | ||
8 | |||
9 | class Context { | ||
10 | @Accessors(PUBLIC_GETTER,PUBLIC_SETTER) | ||
11 | var boolean printToConsole = true | ||
12 | |||
13 | def writeError(Object object) { | ||
14 | if(printToConsole) { | ||
15 | println(object) | ||
16 | } | ||
17 | } | ||
18 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/ExecuteScript.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/ExecuteScript.xtend new file mode 100644 index 00000000..403d00d8 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/ExecuteScript.xtend | |||
@@ -0,0 +1,25 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution | ||
2 | |||
3 | import org.apache.log4j.Logger | ||
4 | import org.apache.log4j.LogManager | ||
5 | import org.apache.log4j.Level | ||
6 | import java.io.PrintStream | ||
7 | import java.io.OutputStream | ||
8 | import java.io.BufferedWriter | ||
9 | import java.io.Writer | ||
10 | |||
11 | class ExecuteScript { | ||
12 | def static void main(String[] args) { | ||
13 | val Logger logger = LogManager.getLogger(ExecuteScript); | ||
14 | logger.level = Level::DEBUG | ||
15 | |||
16 | println() | ||
17 | System.out.println("asd") | ||
18 | |||
19 | logger.debug("debug") | ||
20 | logger.info("info") | ||
21 | logger.warn("warning") | ||
22 | logger.error("error") | ||
23 | logger.fatal("fatal") | ||
24 | } | ||
25 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/Executor.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/Executor.xtend new file mode 100644 index 00000000..4d887423 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/Executor.xtend | |||
@@ -0,0 +1,95 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript | ||
4 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Task | ||
5 | import java.util.HashMap | ||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.GenerationTask | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.Metamodel | ||
8 | import hu.bme.mit.inf.dslreasoner.workspace.FileSystemWorkspace | ||
9 | import java.util.List | ||
10 | import org.eclipse.emf.ecore.EClass | ||
11 | import org.eclipse.emf.ecore.EEnumLiteral | ||
12 | import org.eclipse.emf.ecore.EReference | ||
13 | import org.eclipse.emf.ecore.EEnum | ||
14 | import org.eclipse.emf.ecore.EAttribute | ||
15 | import hu.bme.mit.inf.dslreasoner.ecore2logic.EcoreMetamodelDescriptor | ||
16 | import hu.bme.mit.inf.dslreasoner.workspace.ReasonerWorkspace | ||
17 | import org.eclipse.emf.ecore.EObject | ||
18 | import java.util.LinkedHashMap | ||
19 | import hu.bme.mit.inf.dslreasoner.viatra2logic.ViatraQuerySetDescriptor | ||
20 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2Logic | ||
21 | import hu.bme.mit.inf.dslreasoner.viatra2logic.Viatra2Logic | ||
22 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretation2logic.InstanceModel2Logic | ||
23 | import hu.bme.mit.inf.dslreasoner.ecore2logic.Ecore2LogicConfiguration | ||
24 | import hu.bme.mit.inf.dslreasoner.viatra2logic.Viatra2LogicConfiguration | ||
25 | import hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner.ViatraReasonerConfiguration | ||
26 | import hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra.TypeInferenceMethod | ||
27 | import hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner.StateCoderStrategy | ||
28 | import hu.bme.mit.inf.dslreasoner.viatrasolver.reasoner.ViatraReasoner | ||
29 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.ModelResult | ||
30 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.partialinterpretation.PartialInterpretation | ||
31 | import hu.bme.mit.inf.dslreasoner.logic.model.logicresult.LogicResult | ||
32 | import org.eclipse.emf.ecore.resource.Resource | ||
33 | import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl | ||
34 | import hu.bme.mit.inf.dslreasoner.viatrasolver.partialinterpretationlanguage.visualisation.PartialInterpretation2Gml | ||
35 | import hu.bme.mit.inf.dlsreasoner.alloy.reasoner.AlloySolverConfiguration | ||
36 | import hu.bme.mit.inf.dlsreasoner.alloy.reasoner.AlloySolver | ||
37 | import hu.bme.mit.inf.dslreasoner.logic2ecore.Logic2Ecore | ||
38 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.LogicReasoner | ||
39 | import java.util.LinkedList | ||
40 | import hu.bme.mit.inf.dslreasoner.visualisation.pi2graphviz.GraphvizVisualisation | ||
41 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.LogicStructureBuilder | ||
42 | import hu.bme.mit.inf.dslreasoner.logic.model.builder.LogicProblemBuilder | ||
43 | import org.eclipse.emf.ecore.util.EcoreUtil | ||
44 | import org.eclipse.xtext.EcoreUtil2 | ||
45 | import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl | ||
46 | import org.eclipse.emf.ecore.resource.ResourceSet | ||
47 | import org.eclipse.emf.common.util.URI | ||
48 | import org.eclipse.emf.ecore.EPackage | ||
49 | |||
50 | class Executor { | ||
51 | public def void execute(ConfigurationScript configurationScript) { | ||
52 | val tasks = configurationScript.commands.filter(Task) | ||
53 | val numberOfModels = tasks.map[it.calculateTaskSteps].reduce[p1, p2|p1+p2] | ||
54 | } | ||
55 | |||
56 | def private dispatch calculateTaskSteps(Task task) { | ||
57 | throw new UnsupportedOperationException() | ||
58 | } | ||
59 | def private dispatch calculateTaskSteps(GenerationTask task) { | ||
60 | return task.number * task.runs | ||
61 | } | ||
62 | |||
63 | def private dispatch executeTask(Task task) { | ||
64 | throw new UnsupportedOperationException() | ||
65 | } | ||
66 | def private dispatch executeTask(GenerationTask generationTask) { | ||
67 | val metamodel = generationTask.metamodel | ||
68 | if(metamodel != null) { | ||
69 | |||
70 | } | ||
71 | } | ||
72 | |||
73 | def protected loadPackage(ResourceSet rs, String path) { | ||
74 | var EObject content = null | ||
75 | |||
76 | try { | ||
77 | val resource = rs.getResource(URI.createURI(path),true) | ||
78 | content = resource.contents.get(0) | ||
79 | } catch(IllegalArgumentException e) { | ||
80 | return null | ||
81 | } catch(RuntimeException e) { | ||
82 | return null | ||
83 | } | ||
84 | |||
85 | if(content instanceof EPackage) { | ||
86 | |||
87 | } else return null | ||
88 | } | ||
89 | |||
90 | def loadPatternModel(ResourceSet rs, String path) { | ||
91 | var model = null | ||
92 | |||
93 | |||
94 | } | ||
95 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/MetamodelLoader.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/MetamodelLoader.xtend new file mode 100644 index 00000000..126dbb7d --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/MetamodelLoader.xtend | |||
@@ -0,0 +1,178 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ClassElement | ||
4 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.FeatureElement | ||
5 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelEntry | ||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification | ||
7 | import hu.bme.mit.inf.dslreasoner.ecore2logic.EcoreMetamodelDescriptor | ||
8 | import java.util.ArrayList | ||
9 | import java.util.HashMap | ||
10 | import java.util.LinkedList | ||
11 | import java.util.List | ||
12 | import java.util.Map | ||
13 | import java.util.Set | ||
14 | import org.eclipse.emf.common.util.URI | ||
15 | import org.eclipse.emf.ecore.EAttribute | ||
16 | import org.eclipse.emf.ecore.EClass | ||
17 | import org.eclipse.emf.ecore.EDataType | ||
18 | import org.eclipse.emf.ecore.EEnum | ||
19 | import org.eclipse.emf.ecore.EEnumLiteral | ||
20 | import org.eclipse.emf.ecore.ENamedElement | ||
21 | import org.eclipse.emf.ecore.EPackage | ||
22 | import org.eclipse.emf.ecore.EReference | ||
23 | import org.eclipse.emf.ecore.EcorePackage | ||
24 | import org.eclipse.emf.ecore.resource.Resource | ||
25 | import org.eclipse.emf.ecore.resource.ResourceSet | ||
26 | import org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl | ||
27 | import org.eclipse.xtend.lib.annotations.Data | ||
28 | |||
29 | @Data | ||
30 | class Metamodel { | ||
31 | List<EPackage> packages | ||
32 | EcoreMetamodelDescriptor descriptor | ||
33 | } | ||
34 | |||
35 | class MetamodelLoader { | ||
36 | |||
37 | def private static init() { | ||
38 | EcorePackage.eINSTANCE.EClass | ||
39 | Resource.Factory.Registry.INSTANCE.extensionToFactoryMap.put("ecore",new XMIResourceFactoryImpl) | ||
40 | } | ||
41 | |||
42 | public new() { init } | ||
43 | |||
44 | def loadMetamodel(List<String> specification, ResourceSet rs, Context context) { | ||
45 | |||
46 | } | ||
47 | |||
48 | def loadMetamodel(MetamodelSpecification specification, ResourceSet rs, Context context) { | ||
49 | val Map<MetamodelEntry,List<EPackage>> entry2Packages = new HashMap | ||
50 | |||
51 | for(entry : specification.entries) { | ||
52 | val packagesInEntry = entry.path.path.loadPackageFromPath(rs,context) | ||
53 | entry2Packages.put(entry,packagesInEntry) | ||
54 | } | ||
55 | |||
56 | return entry2Packages | ||
57 | } | ||
58 | |||
59 | public def pruneMetamodel(Map<MetamodelEntry,List<EPackage>> specification, ResourceSet rs, Context context) { | ||
60 | val List<EClass> classes = new LinkedList | ||
61 | val List<EEnum> enums = new LinkedList | ||
62 | val List<EEnumLiteral> literals = new LinkedList | ||
63 | val List<EReference> references = new LinkedList | ||
64 | val List<EAttribute> attributes = new LinkedList | ||
65 | |||
66 | |||
67 | /** Add all included types */ | ||
68 | for(entry : specification.entrySet) { | ||
69 | val metamodelEntry = entry.key | ||
70 | val packages = entry.value | ||
71 | |||
72 | /** Excluted types */ | ||
73 | val excludedTypeNames = metamodelEntry.excluding.filter(ClassElement).map[name].toSet | ||
74 | /** Excluded features */ | ||
75 | val excludedFeatureNames = metamodelEntry.excluding.filter(FeatureElement).map[it.container.name -> it.name].toSet | ||
76 | |||
77 | /** Load the types */ | ||
78 | for(package : packages) { | ||
79 | for(class : package.EClassifiers.filter(EClass)) { | ||
80 | classes.addIfNotExcluded(class,excludedTypeNames) | ||
81 | } | ||
82 | for(enum : package.EClassifiers.filter(EEnum)) { | ||
83 | val added = enums.addIfNotExcluded(enum,excludedTypeNames) | ||
84 | if(added) { | ||
85 | for(literal : enum.ELiterals) { | ||
86 | literals.addIfNotExcluded(literal,enum,excludedFeatureNames) | ||
87 | } | ||
88 | } | ||
89 | } | ||
90 | } | ||
91 | } | ||
92 | |||
93 | /** Add all included references and attributes*/ | ||
94 | for(entry : specification.entrySet) { | ||
95 | val metamodelEntry = entry.key | ||
96 | val packages = entry.value | ||
97 | |||
98 | /** Excluded features */ | ||
99 | val excludedFeatureNames = metamodelEntry.excluding.filter(FeatureElement).map[it.container.name -> it.name].toSet | ||
100 | |||
101 | /** See if type is included */ | ||
102 | for(package : packages) { | ||
103 | for(class : package.EClassifiers.filter(EClass)) { | ||
104 | if(classes.contains(class)) { | ||
105 | for(reference : class.EReferences) { | ||
106 | if(classes.contains(reference.EType)) { | ||
107 | references.addIfNotExcluded(reference,class,excludedFeatureNames) | ||
108 | } | ||
109 | } | ||
110 | for(attribute : class.EAttributes) { | ||
111 | val type = attribute.EType | ||
112 | if(type instanceof EEnum) { | ||
113 | if(enums.contains(type)) { | ||
114 | attributes.addIfNotExcluded(attribute,class,excludedFeatureNames) | ||
115 | } else if(type == EcorePackage.Literals) { | ||
116 | if(enums.contains(type)) { | ||
117 | attributes.addIfNotExcluded(attribute,class,excludedFeatureNames) | ||
118 | } | ||
119 | } | ||
120 | } else if(supportedEDataType(type as EDataType)) { | ||
121 | attributes.addIfNotExcluded(attribute,class,excludedFeatureNames) | ||
122 | } | ||
123 | } | ||
124 | } | ||
125 | } | ||
126 | } | ||
127 | } | ||
128 | } | ||
129 | |||
130 | private def supportedEDataType(EDataType dataType) { | ||
131 | val extension l = EcorePackage.eINSTANCE | ||
132 | return #[EInt, EBoolean, EString, EDouble, EFloat].contains(dataType) | ||
133 | } | ||
134 | |||
135 | private def <T extends ENamedElement> addIfNotExcluded( | ||
136 | List<T> target, | ||
137 | T element, | ||
138 | Set<String> excluded) | ||
139 | { | ||
140 | if(excluded.contains(element.name)) { | ||
141 | target += element | ||
142 | return true | ||
143 | } else { | ||
144 | return false | ||
145 | } | ||
146 | } | ||
147 | private def <T1 extends ENamedElement> addIfNotExcluded( | ||
148 | List<T1> target, | ||
149 | T1 element, | ||
150 | ENamedElement container, | ||
151 | Set<Pair<String,String>> excluded) | ||
152 | { | ||
153 | val pair = (container.name) -> (element.name) | ||
154 | |||
155 | if(excluded.contains(pair)) { | ||
156 | target += element | ||
157 | } | ||
158 | } | ||
159 | |||
160 | private def List<EPackage> loadPackageFromPath(String path, ResourceSet rs, Context context) throws RuntimeException { | ||
161 | var Resource resource; | ||
162 | try{ | ||
163 | resource = rs.getResource(URI.createURI(path),true) | ||
164 | } catch(RuntimeException e) { | ||
165 | context.writeError('''Unable to load EPackage: Error in path "«path»"!''') | ||
166 | return #[] | ||
167 | } | ||
168 | val res = new ArrayList<EPackage>(resource.contents.size) | ||
169 | for(content: resource.contents) { | ||
170 | if(content instanceof EPackage) { | ||
171 | res += content | ||
172 | } else { | ||
173 | context.writeError('''Unable to load EPackage: The content of "«path»" is not an EPackage, but "«content.eClass.name»"!''') | ||
174 | } | ||
175 | } | ||
176 | return res | ||
177 | } | ||
178 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/ModelLoader.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/ModelLoader.xtend new file mode 100644 index 00000000..1de7ee22 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/ModelLoader.xtend | |||
@@ -0,0 +1,11 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution | ||
2 | |||
3 | class ModelLoader { | ||
4 | //def loadMetamodels()7 | ||
5 | // val List<EClass> classes = new LinkedList | ||
6 | // val List<EReference> references = new LinkedList | ||
7 | // val List<EAttribute> attributes = new LinkedList | ||
8 | // val List<EEnum> enums = new LinkedList | ||
9 | // val List<EEnumLiteral> literals = new LinkedList | ||
10 | // | ||
11 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend new file mode 100644 index 00000000..8c064cd3 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/QueryLoader.xtend | |||
@@ -0,0 +1,28 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.PatternSpecification | ||
4 | import hu.bme.mit.inf.dslreasoner.application.execution.util.VQLParser | ||
5 | import java.util.LinkedHashMap | ||
6 | import org.eclipse.emf.ecore.resource.ResourceSet | ||
7 | |||
8 | import static extension hu.bme.mit.inf.dslreasoner.util.CollectionsUtil.* | ||
9 | |||
10 | class QueryLoader { | ||
11 | val parser = new VQLParser | ||
12 | |||
13 | def loadQueries(PatternSpecification specification, ResourceSet rs, Context context) { | ||
14 | val uris = specification.entries.map[path].toList | ||
15 | val models = parser.parse(uris,rs,context) | ||
16 | |||
17 | val res = new LinkedHashMap | ||
18 | for(entry : specification.entries) { | ||
19 | res.put(entry,entry.path.lookup(models)) | ||
20 | } | ||
21 | |||
22 | return res | ||
23 | } | ||
24 | |||
25 | def pruneQueries(PatternSpecification specification, ResourceSet rs, Context context) { | ||
26 | |||
27 | } | ||
28 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend new file mode 100644 index 00000000..9b5c538f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/execution/util/VQLParser.xtend | |||
@@ -0,0 +1,99 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.execution.util | ||
2 | |||
3 | import com.google.inject.Guice | ||
4 | import com.google.inject.Injector | ||
5 | import com.google.inject.Module | ||
6 | import java.util.LinkedHashMap | ||
7 | import org.eclipse.emf.common.util.URI | ||
8 | import org.eclipse.emf.ecore.resource.Resource | ||
9 | import org.eclipse.emf.ecore.resource.ResourceSet | ||
10 | import org.eclipse.emf.ecore.util.EcoreUtil | ||
11 | import org.eclipse.viatra.query.patternlanguage.PatternLanguageStandaloneSetup | ||
12 | import org.eclipse.viatra.query.patternlanguage.annotations.ExtensionBasedAnnotationValidatorLoader | ||
13 | import org.eclipse.viatra.query.patternlanguage.annotations.IAnnotationValidatorLoader | ||
14 | import org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageRuntimeModule | ||
15 | import org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageStandaloneSetup | ||
16 | import org.eclipse.viatra.query.patternlanguage.emf.GenmodelExtensionLoader | ||
17 | import org.eclipse.viatra.query.patternlanguage.emf.IGenmodelMappingLoader | ||
18 | import org.eclipse.viatra.query.patternlanguage.emf.eMFPatternLanguage.PatternModel | ||
19 | import org.eclipse.viatra.query.patternlanguage.emf.specification.SpecificationBuilder | ||
20 | import org.eclipse.xtext.resource.XtextResourceSet | ||
21 | import hu.bme.mit.inf.dslreasoner.application.execution.Context | ||
22 | import java.util.List | ||
23 | import java.util.HashMap | ||
24 | import org.eclipse.viatra.query.runtime.api.IQuerySpecification | ||
25 | |||
26 | class MyModule extends EMFPatternLanguageRuntimeModule implements Module { | ||
27 | def public Class<? extends IAnnotationValidatorLoader> bindAnnotationValidatorLoader() { | ||
28 | return typeof(ExtensionBasedAnnotationValidatorLoader); | ||
29 | } | ||
30 | def public Class<? extends IGenmodelMappingLoader> bindGenmodelMappingLoader() { | ||
31 | return typeof(GenmodelExtensionLoader); | ||
32 | } | ||
33 | } | ||
34 | |||
35 | class VQLParser { | ||
36 | val Injector injector; | ||
37 | val SpecificationBuilder builder = new SpecificationBuilder | ||
38 | |||
39 | new() { | ||
40 | PatternLanguageStandaloneSetup.doSetup | ||
41 | EMFPatternLanguageStandaloneSetup.doSetup; | ||
42 | |||
43 | injector = internalCreateInjector | ||
44 | } | ||
45 | |||
46 | def protected Injector internalCreateInjector() { | ||
47 | new EMFPatternLanguageStandaloneSetup().createInjectorAndDoEMFRegistration(); | ||
48 | val Module module = new MyModule | ||
49 | val newInjector = Guice.createInjector(module) | ||
50 | return newInjector; | ||
51 | } | ||
52 | |||
53 | public def createResourceSet() { | ||
54 | injector.getInstance(XtextResourceSet); | ||
55 | } | ||
56 | |||
57 | /** | ||
58 | * Load patterns in two steps: first, the pattern models are are loaded to a resource set, then | ||
59 | * the linked patterns are loaded validated and translated to a {@link IQuerySpecification} object. | ||
60 | * @returns uri -> (name -> pattern) | ||
61 | */ | ||
62 | public def parse(List<String> uris, ResourceSet resourceSet, Context context) { | ||
63 | val res = new LinkedHashMap | ||
64 | val uri2resource = new LinkedHashMap | ||
65 | |||
66 | for(uri : uris) { | ||
67 | var Resource resource | ||
68 | var PatternModel patternModel | ||
69 | try { | ||
70 | resource = resourceSet.getResource(URI.createURI(uri),true); | ||
71 | patternModel = resource.getContents().get(0) as PatternModel; | ||
72 | uri2resource.put(uri,patternModel) | ||
73 | } catch(RuntimeException e) { | ||
74 | context.writeError('''Unable to load patterns from "«uri»"!''') | ||
75 | } | ||
76 | } | ||
77 | |||
78 | for(entry : uri2resource.entrySet) { | ||
79 | val uri = entry.key | ||
80 | val model = entry.value | ||
81 | EcoreUtil.resolveAll(model.eResource) | ||
82 | model.eResource.validate(uri, context) | ||
83 | |||
84 | val map = new LinkedHashMap | ||
85 | for(pattern : model.patterns) { | ||
86 | val IQuerySpecification<?> querySpecification = (this.builder as SpecificationBuilder).getOrCreateSpecification(pattern) | ||
87 | map.put(querySpecification.fullyQualifiedName.split('.').last,querySpecification) | ||
88 | } | ||
89 | res.put(uri,map) | ||
90 | } | ||
91 | |||
92 | return res | ||
93 | } | ||
94 | |||
95 | def private validate(Resource resource, String URI, Context context) { | ||
96 | val errors = resource.errors | ||
97 | errors.forEach[context.writeError('''Error in loading pattern "«URI»": «it»''')] | ||
98 | } | ||
99 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/generator/ApplicationConfigurationGenerator.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/generator/ApplicationConfigurationGenerator.xtend new file mode 100644 index 00000000..22b46367 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/generator/ApplicationConfigurationGenerator.xtend | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.generator | ||
5 | |||
6 | import org.eclipse.emf.ecore.resource.Resource | ||
7 | import org.eclipse.xtext.generator.AbstractGenerator | ||
8 | import org.eclipse.xtext.generator.IFileSystemAccess2 | ||
9 | import org.eclipse.xtext.generator.IGeneratorContext | ||
10 | |||
11 | /** | ||
12 | * Generates code from your model files on save. | ||
13 | * | ||
14 | * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#code-generation | ||
15 | */ | ||
16 | class ApplicationConfigurationGenerator extends AbstractGenerator { | ||
17 | |||
18 | override void doGenerate(Resource resource, IFileSystemAccess2 fsa, IGeneratorContext context) { | ||
19 | // fsa.generateFile('greetings.txt', 'People to greet: ' + | ||
20 | // resource.allContents | ||
21 | // .filter(typeof(Greeting)) | ||
22 | // .map[name] | ||
23 | // .join(', ')) | ||
24 | } | ||
25 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/linking/ApplicationConfigurationLinkingService.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/linking/ApplicationConfigurationLinkingService.xtend new file mode 100644 index 00000000..15567f88 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/linking/ApplicationConfigurationLinkingService.xtend | |||
@@ -0,0 +1,56 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.application.linking | ||
2 | |||
3 | import com.google.inject.Inject | ||
4 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage | ||
5 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport | ||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ViatraImport | ||
7 | import java.util.Collections | ||
8 | import java.util.Optional | ||
9 | import org.eclipse.emf.ecore.EObject | ||
10 | import org.eclipse.emf.ecore.EReference | ||
11 | import org.eclipse.viatra.query.patternlanguage.emf.scoping.IMetamodelProvider | ||
12 | import org.eclipse.xtext.conversion.IValueConverterService | ||
13 | import org.eclipse.xtext.conversion.ValueConverterException | ||
14 | import org.eclipse.xtext.linking.impl.DefaultLinkingService | ||
15 | import org.eclipse.xtext.nodemodel.ILeafNode | ||
16 | import org.eclipse.xtext.nodemodel.INode | ||
17 | |||
18 | class ApplicationConfigurationLinkingService extends DefaultLinkingService{ | ||
19 | |||
20 | //@Inject Logger logger | ||
21 | |||
22 | @Inject IValueConverterService valueConverterService | ||
23 | |||
24 | @Inject IMetamodelProvider metamodelProvider | ||
25 | |||
26 | public static extension ApplicationConfigurationPackage pac = ApplicationConfigurationPackage.eINSTANCE | ||
27 | |||
28 | override getLinkedObjects(EObject context, EReference ref, INode node) { | ||
29 | if(context instanceof EPackageImport) { | ||
30 | if(ref == EPackageImport_ImportedPackage && node instanceof ILeafNode) { | ||
31 | return getEPackage(context as EPackageImport, node as ILeafNode) | ||
32 | } | ||
33 | } else if(context instanceof ViatraImport) { | ||
34 | super.getLinkedObjects(context, ref, node) | ||
35 | } | ||
36 | return super.getLinkedObjects(context, ref, node) | ||
37 | } | ||
38 | |||
39 | private def getEPackage(EPackageImport packageImport, ILeafNode node) { | ||
40 | getMetamodelNsUri(node).flatMap [ uri | | ||
41 | Optional.ofNullable(metamodelProvider.loadEPackage(uri, packageImport.eResource.resourceSet)) | ||
42 | ].map [ ePackage | | ||
43 | Collections.singletonList(ePackage as EObject) | ||
44 | ].orElse(emptyList) | ||
45 | } | ||
46 | |||
47 | private def getMetamodelNsUri(ILeafNode node) { | ||
48 | try { | ||
49 | val convertedValue = valueConverterService.toValue(node.text, | ||
50 | linkingHelper.getRuleNameFrom(node.grammarElement), node) | ||
51 | Optional.of(convertedValue as String) | ||
52 | } catch (ValueConverterException e) { | ||
53 | Optional.empty | ||
54 | } | ||
55 | } | ||
56 | } \ No newline at end of file | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/scoping/ApplicationConfigurationScopeProvider.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/scoping/ApplicationConfigurationScopeProvider.xtend new file mode 100644 index 00000000..4eef53d7 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/scoping/ApplicationConfigurationScopeProvider.xtend | |||
@@ -0,0 +1,94 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.scoping | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject | ||
7 | import org.eclipse.emf.ecore.EReference | ||
8 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelElement | ||
9 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage | ||
10 | import org.eclipse.xtext.EcoreUtil2 | ||
11 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigurationScript | ||
12 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.EPackageImport | ||
13 | import org.eclipse.xtext.scoping.Scopes | ||
14 | import org.eclipse.emf.ecore.EClass | ||
15 | import org.eclipse.emf.ecore.EEnum | ||
16 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.MetamodelSpecification | ||
17 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.AllPackageEntry | ||
18 | |||
19 | /** | ||
20 | * This class contains custom scoping description. | ||
21 | * | ||
22 | * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping | ||
23 | * on how and when to use it. | ||
24 | */ | ||
25 | class ApplicationConfigurationScopeProvider extends AbstractApplicationConfigurationScopeProvider { | ||
26 | |||
27 | private val language = ApplicationConfigurationPackage.eINSTANCE | ||
28 | |||
29 | override getScope(EObject context, EReference reference) { | ||
30 | val document = EcoreUtil2.getContainerOfType(context,ConfigurationScript) | ||
31 | if(context instanceof MetamodelElement) { | ||
32 | context.scopeForMetamodelElement(reference,document) | ||
33 | } else if(context instanceof MetamodelSpecification) { | ||
34 | context.scopeForMetamodelSpecification(reference,document) | ||
35 | } else if(context instanceof AllPackageEntry){ | ||
36 | context.scopeForAllPackageEntry(reference,document) | ||
37 | } else { | ||
38 | return super.getScope(context,reference) | ||
39 | } | ||
40 | } | ||
41 | |||
42 | private def allEPackages(ConfigurationScript document) { | ||
43 | return document.imports.filter(EPackageImport).map[it.importedPackage].filterNull | ||
44 | } | ||
45 | |||
46 | private def allEClassifiers(ConfigurationScript document) { | ||
47 | document.allEPackages.map[EClassifiers].flatten | ||
48 | } | ||
49 | |||
50 | protected def scopeForMetamodelElement(MetamodelElement context, EReference reference, ConfigurationScript document) { | ||
51 | if(reference === language.metamodelEntry_Package) { | ||
52 | if(context.classifier !== null) { | ||
53 | return Scopes.scopeFor(#[context.classifier.EPackage]) | ||
54 | } else { | ||
55 | return Scopes.scopeFor(document.allEPackages) | ||
56 | } | ||
57 | } if(reference === language.metamodelElement_Classifier) { | ||
58 | if(context.package != null) { | ||
59 | return Scopes.scopeFor(context.package.EClassifiers) | ||
60 | } else { | ||
61 | return Scopes.scopeFor(document.allEClassifiers) | ||
62 | } | ||
63 | } if (reference === language.metamodelElement_Feature) { | ||
64 | val referredClassifier = context.classifier | ||
65 | if(referredClassifier instanceof EClass) { | ||
66 | return Scopes.scopeFor(referredClassifier.EAllStructuralFeatures) | ||
67 | } else if(referredClassifier instanceof EEnum) { | ||
68 | return Scopes.scopeFor(referredClassifier.ELiterals) | ||
69 | } else { | ||
70 | super.getScope(context,reference) | ||
71 | } | ||
72 | } | ||
73 | } | ||
74 | |||
75 | protected def scopeForMetamodelSpecification(MetamodelSpecification context, EReference reference, ConfigurationScript document) { | ||
76 | if(reference === language.metamodelEntry_Package) { | ||
77 | return Scopes.scopeFor(document.allEPackages) | ||
78 | } else if(reference ===language.metamodelElement_Classifier) { | ||
79 | return Scopes.scopeFor(document.allEClassifiers) | ||
80 | } | ||
81 | } | ||
82 | |||
83 | protected def scopeForAllPackageEntry(AllPackageEntry context, EReference reference, ConfigurationScript document) { | ||
84 | if(reference === language.metamodelEntry_Package) { | ||
85 | return Scopes.scopeFor(document.allEPackages) | ||
86 | } else if(reference === language.metamodelEntry_Package) { | ||
87 | if(context.package === null) { | ||
88 | return Scopes.scopeFor(document.allEClassifiers) | ||
89 | } else { | ||
90 | return Scopes.scopeFor(context.package.EClassifiers) | ||
91 | } | ||
92 | } | ||
93 | } | ||
94 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/validation/ApplicationConfigurationValidator.xtend b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/validation/ApplicationConfigurationValidator.xtend new file mode 100644 index 00000000..1024cb19 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src/hu/bme/mit/inf/dslreasoner/application/validation/ApplicationConfigurationValidator.xtend | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.validation | ||
5 | |||
6 | |||
7 | /** | ||
8 | * This class contains custom validation rules. | ||
9 | * | ||
10 | * See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation | ||
11 | */ | ||
12 | class ApplicationConfigurationValidator extends AbstractApplicationConfigurationValidator { | ||
13 | |||
14 | // public static val INVALID_NAME = 'invalidName' | ||
15 | // | ||
16 | // @Check | ||
17 | // def checkGreetingStartsWithCapital(Greeting greeting) { | ||
18 | // if (!Character.isUpperCase(greeting.name.charAt(0))) { | ||
19 | // warning('Name should start with a capital', | ||
20 | // ApplicationConfigurationPackage.Literals.GREETING__NAME, | ||
21 | // INVALID_NAME) | ||
22 | // } | ||
23 | // } | ||
24 | |||
25 | } | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/.gitignore new file mode 100644 index 00000000..a7825f62 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/.gitignore | |||
@@ -0,0 +1,6 @@ | |||
1 | /.ApplicationConfigurationRuntimeModule.java._trace | ||
2 | /.ApplicationConfigurationRuntimeModule.xtendbin | ||
3 | /.ApplicationConfigurationStandaloneSetup.java._trace | ||
4 | /.ApplicationConfigurationStandaloneSetup.xtendbin | ||
5 | /ApplicationConfigurationRuntimeModule.java | ||
6 | /ApplicationConfigurationStandaloneSetup.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/execution/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/execution/.gitignore new file mode 100644 index 00000000..d1f59103 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/execution/.gitignore | |||
@@ -0,0 +1,21 @@ | |||
1 | /.Context.java._trace | ||
2 | /.Context.xtendbin | ||
3 | /.ExecuteScript.java._trace | ||
4 | /.ExecuteScript.xtendbin | ||
5 | /.Executor.java._trace | ||
6 | /.Executor.xtendbin | ||
7 | /.Metamodel.java._trace | ||
8 | /.MetamodelLoader.java._trace | ||
9 | /.MetamodelLoader.xtendbin | ||
10 | /.ModelLoader.java._trace | ||
11 | /.ModelLoader.xtendbin | ||
12 | /.ParseUtil.java._trace | ||
13 | /.QueryLoader.java._trace | ||
14 | /.QueryLoader.xtendbin | ||
15 | /Context.java | ||
16 | /ExecuteScript.java | ||
17 | /Executor.java | ||
18 | /Metamodel.java | ||
19 | /MetamodelLoader.java | ||
20 | /ModelLoader.java | ||
21 | /QueryLoader.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/execution/util/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/execution/util/.gitignore new file mode 100644 index 00000000..cf5eb575 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/execution/util/.gitignore | |||
@@ -0,0 +1,5 @@ | |||
1 | /.MyModule.java._trace | ||
2 | /.VQLParser.java._trace | ||
3 | /.VQLParser.xtendbin | ||
4 | /MyModule.java | ||
5 | /VQLParser.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/generator/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/generator/.gitignore new file mode 100644 index 00000000..2af89e3e --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/generator/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationGenerator.java._trace | ||
2 | /.ApplicationConfigurationGenerator.xtendbin | ||
3 | /ApplicationConfigurationGenerator.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/linking/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/linking/.gitignore new file mode 100644 index 00000000..d11d1e72 --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/linking/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationLinkingService.java._trace | ||
2 | /.ApplicationConfigurationLinkingService.xtendbin | ||
3 | /ApplicationConfigurationLinkingService.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/scoping/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/scoping/.gitignore new file mode 100644 index 00000000..fb3312df --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/scoping/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationScopeProvider.java._trace | ||
2 | /.ApplicationConfigurationScopeProvider.xtendbin | ||
3 | /ApplicationConfigurationScopeProvider.java | ||
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/validation/.gitignore b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/validation/.gitignore new file mode 100644 index 00000000..e80f6f0c --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/xtend-gen/hu/bme/mit/inf/dslreasoner/application/validation/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | /.ApplicationConfigurationValidator.java._trace | ||
2 | /.ApplicationConfigurationValidator.xtendbin | ||
3 | /ApplicationConfigurationValidator.java | ||
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/CanonisedFormulae.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/CanonisedFormulae.xtend new file mode 100644 index 00000000..e511a961 --- /dev/null +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/CanonisedFormulae.xtend | |||
@@ -0,0 +1,17 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra.formulacanonization | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Assertion | ||
4 | import java.util.Map | ||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.ConstantDefinition | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.FunctionDefinition | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDefinition | ||
8 | import org.eclipse.xtend.lib.annotations.Data | ||
9 | |||
10 | @Data | ||
11 | class CanonisedFormulae { | ||
12 | CharSequence viatraCode | ||
13 | Map<Assertion,String> assertion2ConstraintPattern | ||
14 | Map<ConstantDefinition,String> constant2ValuePattern | ||
15 | Map<RelationDefinition,String> relation2ValuePattern | ||
16 | Map<FunctionDefinition,String> function2ValuePattern | ||
17 | } \ No newline at end of file | ||
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/FormulaCanoniser.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/FormulaCanoniser.xtend new file mode 100644 index 00000000..0af0b36a --- /dev/null +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/FormulaCanoniser.xtend | |||
@@ -0,0 +1,21 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra.formulacanonization | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Assertion | ||
4 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.ConstantDefinition | ||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.FunctionDefinition | ||
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RelationDefinition | ||
7 | import java.util.List | ||
8 | |||
9 | /** | ||
10 | * Translates a set of assertions and definitions to viatra patterns. | ||
11 | */ | ||
12 | class FormulaCanoniser { | ||
13 | def canonise( | ||
14 | List<Assertion> assertions, | ||
15 | List<RelationDefinition> relations, | ||
16 | List<ConstantDefinition> constants, | ||
17 | List<FunctionDefinition> functions) | ||
18 | { | ||
19 | |||
20 | } | ||
21 | } \ No newline at end of file | ||
diff --git a/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/FormulaRewriter.xtend b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/FormulaRewriter.xtend new file mode 100644 index 00000000..af34a5a7 --- /dev/null +++ b/Solvers/VIATRA-Solver/hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra/src/hu/bme/mit/inf/dslreasoner/viatrasolver/logic2viatra/formulacanonization/FormulaRewriter.xtend | |||
@@ -0,0 +1,36 @@ | |||
1 | package hu.bme.mit.inf.dslreasoner.viatrasolver.logic2viatra.formulacanonization | ||
2 | |||
3 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Term | ||
4 | import org.eclipse.emf.ecore.util.EcoreUtil | ||
5 | import java.util.LinkedList | ||
6 | import java.util.List | ||
7 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.Variable | ||
8 | import org.eclipse.xtend.lib.annotations.Data | ||
9 | |||
10 | |||
11 | @Data | ||
12 | class Clause { | ||
13 | List<Term> atomicExpressions | ||
14 | } | ||
15 | |||
16 | /** | ||
17 | * Rewrites a term to a first order CNF, where F | ||
18 | * <p><table> | ||
19 | * <tr><th>Symbol</th><th>-></th><th>expression</th></tr> | ||
20 | * <tr><td>F</td><td>-></td><td>Quantified (∨ Quantified)*</td></tr> | ||
21 | * <tr><td>Quantified</td><td>-></td><td>(∃x Quantified) | Clause</td></tr> | ||
22 | * <tr><td>Clause</td><td>-></td><td> Atomic (∧ Atomic)* </td></tr> | ||
23 | * <tr><td>Atomic</td><td>-></td><td> Type(x) | Path (x,y) | x==y | x!=y | F | ¬F </td></tr> | ||
24 | * </table></p> | ||
25 | */ | ||
26 | class FormulaRewriter { | ||
27 | public def rewriteExpression(Term expression) { | ||
28 | val termToRewrite = EcoreUtil.copy(expression | ||
29 | ) | ||
30 | } | ||
31 | |||
32 | public def internalRewriteExpression(Term expression) { | ||
33 | val List<Variable> quantifiedVariables = new LinkedList | ||
34 | val List<Clause> clauses = new LinkedList | ||
35 | } | ||
36 | } \ No newline at end of file | ||